Skip to content

Commit

Permalink
➕ Add Chiliz Spicy Test Network Configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Jun 27, 2024
1 parent 5084c58 commit 00473af
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 121 deletions.
2 changes: 1 addition & 1 deletion contracts/lib/forge-std
17 changes: 17 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,12 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
chilizTestnet: {
chainId: 88882,
url: vars.get("CHILIZ_TESTNET_URL", "https://spicy-rpc.chiliz.com"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -963,6 +969,8 @@ const config: HardhatUserConfig = {
// For Rootstock testnet & mainnet
rootstock: vars.get("ROOTSTOCK_API_KEY", ""),
rootstockTestnet: vars.get("ROOTSTOCK_API_KEY", ""),
// For Chiliz testnet
chilizTestnet: vars.get("CHILIZ_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1489,6 +1497,15 @@ const config: HardhatUserConfig = {
browserURL: "https://rootstock-testnet.blockscout.com",
},
},
{
network: "chilizTestnet",
chainId: 88882,
urls: {
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/88882/etherscan/api",
browserURL: "https://testnet.chiliscan.com",
},
},
],
},
tenderly: {
Expand Down
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@
"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",
"deploy:coretestnet": "npx hardhat run --network coreTestnet scripts/deploy.ts",
"deploy:coremain": "npx hardhat run --network coreMain scripts/deploy.ts",
"deploy:telostestnet": "npx hardhat run --network telosTestnet scripts/deploy.ts",
"deploy:telosmain": "npx hardhat run --network telosMain scripts/deploy.ts",
"deploy:rootstocktestnet": "npx hardhat run --network rootstockTestnet scripts/deploy.ts",
"deploy:rootstockmain": "npx hardhat run --network rootstockMain scripts/deploy.ts",
"deploy:chiliztestnet": "npx hardhat run --network chilizTestnet 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 Down Expand Up @@ -159,7 +166,7 @@
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.16",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.8",
"@types/node": "^20.14.9",
"chai": "^4.4.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -176,7 +183,7 @@
"typechain": "^8.3.2",
"typescript": "^5.5.2",
"typescript-eslint": "^7.14.1",
"xdeployer": "^3.0.12",
"xdeployer": "^3.0.13",
"zksync-ethers": "^6.9.0"
}
}
Loading

0 comments on commit 00473af

Please sign in to comment.