Configuring node
Now we need to configure these Contract Address inside /Constants
directory
Navigate to
Constants/data.js
Here we need to add the Oracle Contract Addresses for the respsective deployed Contracts
const APIOracleContractAddress = `0x25d5298617C53cA2E4f4BAB91Ee3D4FF37Ac05F6`;
const OptimisticOracleV2ContractAddress = `0x3CBb6Dbe62CB2D2Daa2019B44d5D19C46AB9Dc45`;
const OptimisticOracleV3ContractAddress = `0xa197690c527C4015e557185E42997d65348fD377`;
const PriceOracleContractAddress = `0x9eDf5612D5108dD5BcCb2da086a2C52ef58b03a0`;
const VRFOracleV2ContractAddress = `0x48749fde6370FBfc9a45C5EFB559253D72B7Cd53`;
Next is to setup
env
variables in root directory
cp .env.example .env
Set
BRIDGE_PRIVATE_KEY
as the private key of the Oracle Node interacting with the contracts , Ensure there is enough funds for gas.Set
ORIGIN_RPC_URL
as the URL from Alchemy for goerli Testnet , you can get one from hereSet
DEST_RPC_URL
as the RPC URL of your new chain , where you want to add the Oracle
Now Configuration is done , Head over to run the Node
Last updated