Skip to content

Commit

Permalink
refactor: update hardhat configs with bob mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrosaturnino committed May 23, 2024
1 parent 9b54a46 commit 5ad54fa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
21 changes: 20 additions & 1 deletion packages/contracts/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,21 @@ module.exports = {
getSecret('ACCOUNT2_PRIVATEKEY', '0x3ec7cedbafd0cb9ec05bf9f7ccfa1e8b42b3e3a02c75addfccbfeb328d1b383b')
]
},
bob_mainnet: {
url: "https://rpc.gobob.xyz/",
chainId: 60808,
accounts: [
getSecret('DEPLOYER_PRIVATEKEY', '0x60ddfe7f579ab6867cbe7a2dc03853dc141d7a4ab6dbefc0dae2d2b1bd4e487f'),
getSecret('ACCOUNT2_PRIVATEKEY', '0x3ec7cedbafd0cb9ec05bf9f7ccfa1e8b42b3e3a02c75addfccbfeb328d1b383b')
]
},
},
etherscan: {
apiKey: {
bob_testnet: getSecret("ETHERSCAN_API_KEY")
hardhat: getSecret("ETHERSCAN_API_KEY"),
mainnet: getSecret("ETHERSCAN_API_KEY"),
bob_testnet: getSecret("ETHERSCAN_API_KEY"),
bob_mainnet: getSecret("ETHERSCAN_API_KEY"),
},
customChains: [
{
Expand All @@ -83,6 +94,14 @@ module.exports = {
browserURL: "https://testnet.rpc.gobob.xyz"
}
},
{
network: "bob_mainnet",
chainId: 60808,
urls: {
apiURL: "https://explorer.gobob.xyz/api?",
browserURL: "https://rpc.gobob.xyz"
}
},
],
},
mocha: {
Expand Down
10 changes: 5 additions & 5 deletions packages/lib-ethers/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ export const oracleAddresses: INetworkOracles = {
},
bob_mainnet: {
tbtc: {
chainlinkCompatible: "0x77b5887f0f545cdfaf62e168c10a8ef1c4934c2c",
tellor: "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
chainlinkCompatible: "0x2d484E029b8Ae5cA6335DAe11fC726B232bE87D1",
tellor: "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
},
eth: {
chainlinkCompatible: "0x77b5887f0f545cdfaf62e168c10a8ef1c4934c2c",
tellor: "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
chainlinkCompatible: "0x2d484E029b8Ae5cA6335DAe11fC726B232bE87D1",
tellor: "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
}
},
bob_testnet: {
Expand Down Expand Up @@ -378,7 +378,7 @@ task("deploy", "Deploys the contracts to the network")
console.log(`Hooking up PriceFeed with oracles ...`);

const tx = await contracts.priceFeed.setAddresses(
oracleAddresses[env.network.name][deployment.collateralSymbol as keyof IAssets].chainlinkCompatible,
deployment.addresses.chainlink,
tellorCallerAddress,
overrides
);
Expand Down

0 comments on commit 5ad54fa

Please sign in to comment.