Skip to content

Commit

Permalink
💥 Add Taiko Test Network Deployment
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 19, 2024
1 parent 71381cf commit dfb3327
Show file tree
Hide file tree
Showing 7 changed files with 1,839 additions and 3,796 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
pnpm-lock.yaml
cache
cache-zk
artifacts
Expand Down
1 change: 1 addition & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
pnpm-lock.yaml
cache
cache-zk
artifacts
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,4 @@ All files | 100 | 100 | 100 | 100 |
- Telos Testnet: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://testnet.teloscan.io/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Rootstock Testnet: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://rootstock-testnet.blockscout.com/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Metis Testnet (Sepolia): [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://sepolia-explorer.metisdevops.link/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Taiko Testnet (Holešky): [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://hekla.taikoscan.io/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = tseslint.config(
{
ignores: [
"node_modules/**",
"pnpm-lock.yaml",
"cache/**",
"cache-zk/**",
"artifacts/**",
Expand Down
62 changes: 62 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,30 @@ const config: HardhatUserConfig = {
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
gravityAlphaTestnet: {
chainId: 13505,
url: process.env.GRAVITY_ALPHA_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
gravityAlphaMain: {
chainId: 1625,
url: process.env.GRAVITY_ALPHA_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
taikoTestnet: {
chainId: 167009,
url: process.env.TAIKO_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
taikoMain: {
chainId: 167000,
url: process.env.TAIKO_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
Expand Down Expand Up @@ -827,6 +851,12 @@ const config: HardhatUserConfig = {
chilizTestnet: process.env.CHILIZ_API_KEY || "",
// For Arthera mainnet
arthera: process.env.ARTHERA_API_KEY || "",
// For Gravity Alpha testnet & mainnet
gravityAlpha: process.env.GRAVITY_ALPHA_API_KEY || "",
gravityAlphaTestnet: process.env.GRAVITY_ALPHA_API_KEY || "",
// For Taiko testnet & mainnet
taiko: process.env.TAIKO_API_KEY || "",
taikoTestnet: process.env.TAIKO_API_KEY || "",
},
customChains: [
{
Expand Down Expand Up @@ -1395,6 +1425,38 @@ const config: HardhatUserConfig = {
browserURL: "https://explorer.arthera.net",
},
},
{
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",
},
},
],
},
};
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@
"deploy:taraxatestnet": "npx hardhat run --network taraxaTestnet scripts/deploy.ts",
"deploy:taraxamain": "npx hardhat run --network taraxaMain scripts/deploy.ts",
"deploy:artheramain": "npx hardhat run --network artheraMain 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",
"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 @@ -138,7 +142,7 @@
"@eslint/js": "^9.9.0",
"@matterlabs/hardhat-zksync-deploy": "^1.5.0",
"@matterlabs/hardhat-zksync-ethers": "1.1.0",
"@matterlabs/hardhat-zksync-solc": "^1.2.1",
"@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",
Expand All @@ -149,7 +153,7 @@
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.17",
"@types/mocha": "^10.0.7",
"@types/node": "^22.3.0",
"@types/node": "^22.4.1",
"chai": "^4.5.0",
"dotenv": "^16.4.5",
"eslint": "^9.9.0",
Expand All @@ -160,7 +164,7 @@
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^2.2.1",
"prettier": "^3.3.3",
"prettier-plugin-solidity": "^1.3.1",
"prettier-plugin-solidity": "^1.4.1",
"solhint": "^5.0.3",
"solidity-coverage": "^0.8.12",
"ts-node": "^10.9.2",
Expand Down
Loading

0 comments on commit dfb3327

Please sign in to comment.