Skip to content

Commit

Permalink
💥 Add Gravity Alpha, Taiko, and ZetaChain Configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Aug 23, 2024
1 parent cdee9b5 commit d6ed5c4
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 176 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
uses: actions/checkout@v4

- name: Run codespell
uses: codespell-project/actions-codespell@v2.0
uses: codespell-project/actions-codespell@v2
with:
check_filenames: true
skip: ./.git,pnpm-lock.yaml
Expand Down
96 changes: 96 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,45 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
gravityAlphaTestnet: {
chainId: 13505,
url: vars.get(
"GRAVITY_ALPHA_TESTNET_URL",
"https://rpc-sepolia.gravity.xyz",
),
accounts,
ledgerAccounts,
},
gravityAlphaMain: {
chainId: 1625,
url: vars.get("GRAVITY_ALPHA_MAINNET_URL", "https://rpc.gravity.xyz"),
accounts,
ledgerAccounts,
},
taikoTestnet: {
chainId: 167009,
url: vars.get("TAIKO_TESTNET_URL", "https://rpc.hekla.taiko.xyz"),
accounts,
ledgerAccounts,
},
taikoMain: {
chainId: 167000,
url: vars.get("TAIKO_MAINNET_URL", "https://rpc.taiko.xyz"),
accounts,
ledgerAccounts,
},
zetaChainTestnet: {
chainId: 7001,
url: vars.get("ZETA_CHAIN_TESTNET_URL", "https://7001.rpc.thirdweb.com"),
accounts,
ledgerAccounts,
},
zetaChainMain: {
chainId: 7000,
url: vars.get("ZETA_CHAIN_MAINNET_URL", "https://7000.rpc.thirdweb.com"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -990,6 +1029,15 @@ const config: HardhatUserConfig = {
// For Chiliz testnet & mainnet
chiliz: vars.get("CHILIZ_API_KEY", ""),
chilizTestnet: vars.get("CHILIZ_API_KEY", ""),
// For Gravity Alpha testnet & mainnet
gravityAlpha: vars.get("GRAVITY_ALPHA_API_KEY", ""),
gravityAlphaTestnet: vars.get("GRAVITY_ALPHA_API_KEY", ""),
// For Taiko testnet & mainnet
taiko: vars.get("TAIKO_API_KEY", ""),
taikoTestnet: vars.get("TAIKO_API_KEY", ""),
// For ZetaChain testnet & mainnet
zetaChain: vars.get("ZETA_CHAIN_API_KEY", ""),
zetaChainTestnet: vars.get("ZETA_CHAIN_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1550,6 +1598,54 @@ const config: HardhatUserConfig = {
browserURL: "https://explorer.testnet.harmony.one",
},
},
{
network: "gravityAlpha",
chainId: 1625,
urls: {
apiURL: "https://explorer.gravity.xyz/api",
browserURL: "https://explorer.gravity.xyz",
},
},
{
network: "gravityAlphaTestnet",
chainId: 13505,
urls: {
apiURL: "https://explorer-sepolia.gravity.xyz/api",
browserURL: "https://explorer-sepolia.gravity.xyz",
},
},
{
network: "taiko",
chainId: 167000,
urls: {
apiURL: "https://api.taikoscan.io/api",
browserURL: "https://taikoscan.io",
},
},
{
network: "taikoTestnet",
chainId: 167009,
urls: {
apiURL: "https://api-hekla.taikoscan.io/api",
browserURL: "https://hekla.taikoscan.io",
},
},
{
network: "zetaChain",
chainId: 7000,
urls: {
apiURL: "https://zetachain.blockscout.com/api",
browserURL: "https://zetachain.blockscout.com",
},
},
{
network: "zetaChainTestnet",
chainId: 7001,
urls: {
apiURL: "https://zetachain-athens-3.blockscout.com/api",
browserURL: "https://zetachain-athens-3.blockscout.com",
},
},
],
},
tenderly: {
Expand Down
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@
"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",
"deploy:gravityalphatestnet": "npx hardhat run --network gravityAlphaTestnet scripts/deploy.ts",
"deploy:gravityalphamain": "npx hardhat run --network gravityAlphaMain scripts/deploy.ts",
"deploy:taikotestnet": "npx hardhat run --network taikoTestnet scripts/deploy.ts",
"deploy:taikomain": "npx hardhat run --network taikoMain scripts/deploy.ts",
"deploy:zetachaintestnet": "npx hardhat run --network zetaChainTestnet scripts/deploy.ts",
"deploy:zetachainmain": "npx hardhat run --network zetaChainMain 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 @@ -154,7 +160,7 @@
"@matterlabs/hardhat-zksync-solc": "^1.2.2",
"@matterlabs/hardhat-zksync-verify": "^1.6.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.7",
"@nomicfoundation/hardhat-ethers": "^3.0.6",
"@nomicfoundation/hardhat-ethers": "^3.0.7",
"@nomicfoundation/hardhat-foundry": "^1.1.2",
"@nomicfoundation/hardhat-ignition": "^0.15.5",
"@nomicfoundation/hardhat-ignition-ethers": "^0.15.5",
Expand All @@ -169,12 +175,12 @@
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.17",
"@types/mocha": "^10.0.7",
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"chai": "^4.5.0",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"ethers": "^6.13.2",
"hardhat": "^2.22.8",
"hardhat": "^2.22.9",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^2.2.1",
Expand All @@ -186,7 +192,7 @@
"typechain": "^8.3.2",
"typescript": "^5.5.4",
"typescript-eslint": "^8.2.0",
"xdeployer": "^3.0.15",
"xdeployer": "^3.0.16",
"zksync-ethers": "^6.11.2"
}
}
Loading

0 comments on commit d6ed5c4

Please sign in to comment.