Skip to content

Commit

Permalink
➕ Add Chiliz Main Network Configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Jul 14, 2024
1 parent a29e38a commit d6c88d2
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 80 deletions.
18 changes: 17 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,12 @@ const config: HardhatUserConfig = {
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
chilizMain: {
chainId: 88888,
url: process.env.CHILIZ_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
taraxaTestnet: {
chainId: 842,
url: process.env.TARAXA_TESTNET_URL || "",
Expand Down Expand Up @@ -810,7 +816,8 @@ const config: HardhatUserConfig = {
// For Rootstock testnet & mainnet
rootstock: process.env.ROOTSTOCK_API_KEY || "",
rootstockTestnet: process.env.ROOTSTOCK_API_KEY || "",
// For Chiliz testnet
// For Chiliz testnet & mainnet
chiliz: process.env.CHILIZ_API_KEY || "",
chilizTestnet: process.env.CHILIZ_API_KEY || "",
},
customChains: [
Expand Down Expand Up @@ -1338,6 +1345,15 @@ const config: HardhatUserConfig = {
browserURL: "https://rootstock-testnet.blockscout.com",
},
},
{
network: "chiliz",
chainId: 88888,
urls: {
apiURL:
"https://api.routescan.io/v2/network/mainnet/evm/88888/etherscan/api",
browserURL: "https://chiliscan.com",
},
},
{
network: "chilizTestnet",
chainId: 88882,
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"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",
"deploy:chilizmain": "npx hardhat run --network chilizMain scripts/deploy.ts",
"deploy:taraxatestnet": "npx hardhat run --network taraxaTestnet scripts/deploy.ts",
"deploy:taraxamain": "npx hardhat run --network taraxaMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand All @@ -133,7 +134,7 @@
"lint:fix": "pnpm run prettier:fix && pnpm run solhint:fix && npx eslint . --fix"
},
"devDependencies": {
"@eslint/js": "^9.6.0",
"@eslint/js": "^9.7.0",
"@matterlabs/hardhat-zksync-deploy": "^1.5.0",
"@matterlabs/hardhat-zksync-ethers": "1.1.0",
"@matterlabs/hardhat-zksync-solc": "^1.2.1",
Expand All @@ -157,14 +158,14 @@
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^2.2.0",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^5.0.1",
"solidity-coverage": "^0.8.12",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.0",
"zksync-ethers": "^6.9.0"
"zksync-ethers": "^6.10.0"
}
}
Loading

0 comments on commit d6c88d2

Please sign in to comment.