Skip to content

Commit

Permalink
➕ Add BOB Test and Main Networks
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed May 12, 2024
1 parent 87541e9 commit e3c260e
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 89 deletions.
29 changes: 29 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,16 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
bobTestnet: {
chainId: 111,
url: vars.get("BOB_TESTNET_URL", "https://testnet.rpc.gobob.xyz"),
accounts,
},
bobMain: {
chainId: 60808,
url: vars.get("BOB_MAINNET_URL", "https://rpc.gobob.xyz"),
accounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -891,6 +901,9 @@ const config: HardhatUserConfig = {
// For X Layer testnet & mainnet
xlayer: vars.get("OKLINK_API_KEY", ""),
xlayerTestnet: vars.get("OKLINK_API_KEY", ""),
// For BOB testnet & mainnet
bob: vars.get("BOB_API_KEY", ""),
bobTestnet: vars.get("BOB_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1345,6 +1358,22 @@ const config: HardhatUserConfig = {
browserURL: "https://www.oklink.com/xlayer-test",
},
},
{
network: "bob",
chainId: 60808,
urls: {
apiURL: "https://explorer.gobob.xyz/api",
browserURL: "https://explorer.gobob.xyz",
},
},
{
network: "bobTestnet",
chainId: 111,
urls: {
apiURL: "https://testnet-explorer.gobob.xyz/api",
browserURL: "https://testnet-explorer.gobob.xyz",
},
},
],
},
tenderly: {
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@
"deploy:seitestnet": "npx hardhat run --network seiTestnet scripts/deploy.ts",
"deploy:xlayertestnet": "npx hardhat run --network xlayerTestnet scripts/deploy.ts",
"deploy:xlayermain": "npx hardhat run --network xlayerMain scripts/deploy.ts",
"deploy:bobtestnet": "npx hardhat run --network bobTestnet scripts/deploy.ts",
"deploy:bobmain": "npx hardhat run --network bobMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"solhint:check": "npx solhint \"contracts/**/*.sol\"",
Expand All @@ -143,12 +145,12 @@
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-foundry": "^1.1.1",
"@nomicfoundation/hardhat-ignition": "^0.15.2",
"@nomicfoundation/hardhat-ignition-ethers": "^0.15.2",
"@nomicfoundation/hardhat-ignition": "^0.15.3",
"@nomicfoundation/hardhat-ignition-ethers": "^0.15.3",
"@nomicfoundation/hardhat-ledger": "^1.0.3",
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
"@nomicfoundation/hardhat-verify": "^2.0.6",
"@nomicfoundation/ignition-core": "^0.15.2",
"@nomicfoundation/ignition-core": "^0.15.3",
"@openzeppelin/contracts": "^5.0.2",
"@tenderly/hardhat-tenderly": "^2.2.2",
"@truffle/dashboard-hardhat-plugin": "^0.2.15",
Expand All @@ -167,13 +169,13 @@
"hardhat-gas-reporter": "^2.1.1",
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^4.5.4",
"solhint": "^5.0.0",
"solidity-coverage": "^0.8.12",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0",
"xdeployer": "^3.0.9",
"zksync-ethers": "^6.7.0"
"xdeployer": "^3.0.10",
"zksync-ethers": "^6.7.1"
}
}
Loading

0 comments on commit e3c260e

Please sign in to comment.