Skip to content

Commit 4bf4f09

Browse files
committed
➕ Add Corn Test and Corn/Unichain Main Networks
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent 15eb523 commit 4bf4f09

File tree

4 files changed

+105
-46
lines changed

4 files changed

+105
-46
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ All files | 100 | 100 | 100 | 100 |
9393
- ZetaChain: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://explorer.zetachain.com/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
9494
- 5ireChain: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://5irescan.io/contract/evm/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
9595
- Gravity Alpha: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://explorer.gravity.xyz/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
96+
- Unichain: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://uniscan.xyz/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
9697
- **Ethereum Test Networks:**
9798
- Rinkeby (⚠️ Deprecated): [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://rinkeby.etherscan.io/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
9899
- Ropsten (⚠️ Deprecated): [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://ropsten.etherscan.io/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)

hardhat.config.ts

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,12 @@ const config: HardhatUserConfig = {
765765
accounts:
766766
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
767767
},
768+
unichainMain: {
769+
chainId: 130,
770+
url: process.env.UNICHAIN_MAINNET_URL || "",
771+
accounts:
772+
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
773+
},
768774
xdcTestnet: {
769775
chainId: 51,
770776
url: process.env.XDC_TESTNET_URL || "",
@@ -951,6 +957,24 @@ const config: HardhatUserConfig = {
951957
accounts:
952958
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
953959
},
960+
monadTestnet: {
961+
chainId: 10143,
962+
url: process.env.MONAD_TESTNET_URL || "",
963+
accounts:
964+
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
965+
},
966+
cornTestnet: {
967+
chainId: 21000001,
968+
url: process.env.CORN_TESTNET_URL || "",
969+
accounts:
970+
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
971+
},
972+
cornMain: {
973+
chainId: 21000000,
974+
url: process.env.CORN_MAINNET_URL || "",
975+
accounts:
976+
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
977+
},
954978
},
955979
gasReporter: {
956980
enabled: process.env.REPORT_GAS !== undefined,
@@ -1128,7 +1152,8 @@ const config: HardhatUserConfig = {
11281152
// For Plume testnet & mainnet
11291153
plume: process.env.PLUME_API_KEY || "",
11301154
plumeTestnet: process.env.PLUME_API_KEY || "",
1131-
// For Unichain testnet
1155+
// For Unichain testnet & mainnet
1156+
unichain: process.env.UNICHAIN_API_KEY || "",
11321157
unichainTestnet: process.env.UNICHAIN_API_KEY || "",
11331158
// For XDC testnet & mainnet
11341159
xdc: process.env.XDC_API_KEY || "",
@@ -1180,6 +1205,9 @@ const config: HardhatUserConfig = {
11801205
// For Berachain testnet & mainnet
11811206
berachain: process.env.BERACHAIN_API_KEY || "",
11821207
berachainTestnet: process.env.BERACHAIN_API_KEY || "",
1208+
// For Corn testnet & mainnet
1209+
corn: process.env.CORN_API_KEY || "",
1210+
cornTestnet: process.env.CORN_API_KEY || "",
11831211
},
11841212
customChains: [
11851213
{
@@ -1860,6 +1888,14 @@ const config: HardhatUserConfig = {
18601888
browserURL: "https://test-explorer.plumenetwork.xyz",
18611889
},
18621890
},
1891+
{
1892+
network: "unichain",
1893+
chainId: 130,
1894+
urls: {
1895+
apiURL: "https://api.uniscan.xyz/api",
1896+
browserURL: "https://uniscan.xyz",
1897+
},
1898+
},
18631899
{
18641900
network: "unichainTestnet",
18651901
chainId: 1301,
@@ -2129,10 +2165,28 @@ const config: HardhatUserConfig = {
21292165
chainId: 80084,
21302166
urls: {
21312167
apiURL:
2132-
"https://api.routescan.io/v2/network/mainnet/evm/80084/etherscan",
2168+
"https://api.routescan.io/v2/network/testnet/evm/80084/etherscan",
21332169
browserURL: "https://bartio.beratrail.io",
21342170
},
21352171
},
2172+
{
2173+
network: "corn",
2174+
chainId: 21000000,
2175+
urls: {
2176+
apiURL:
2177+
"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan",
2178+
browserURL: "https://cornscan.io",
2179+
},
2180+
},
2181+
{
2182+
network: "cornTestnet",
2183+
chainId: 21000001,
2184+
urls: {
2185+
apiURL:
2186+
"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan",
2187+
browserURL: "https://testnet.cornscan.io",
2188+
},
2189+
},
21362190
],
21372191
},
21382192
};

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
"deploy:plumetestnet": "npx hardhat run --network plumeTestnet scripts/deploy.ts",
144144
"deploy:plumemain": "npx hardhat run --network plumeMain scripts/deploy.ts",
145145
"deploy:unichaintestnet": "npx hardhat run --network unichainTestnet scripts/deploy.ts",
146+
"deploy:unichainmain": "npx hardhat run --network unichainMain scripts/deploy.ts",
146147
"deploy:xdctestnet": "npx hardhat run --network xdcTestnet scripts/deploy.ts",
147148
"deploy:xdcmain": "npx hardhat run --network xdcMain scripts/deploy.ts",
148149
"deploy:sxtestnet": "npx hardhat run --network sxTestnet scripts/deploy.ts",
@@ -174,6 +175,9 @@
174175
"deploy:hemimain": "npx hardhat run --network hemiMain scripts/deploy.ts",
175176
"deploy:berachaintestnet": "npx hardhat run --network berachainTestnet scripts/deploy.ts",
176177
"deploy:berachainmain": "npx hardhat run --network berachainMain scripts/deploy.ts",
178+
"deploy:monadtestnet": "npx hardhat run --network monadTestnet scripts/deploy.ts",
179+
"deploy:corntestnet": "npx hardhat run --network cornTestnet scripts/deploy.ts",
180+
"deploy:cornmain": "npx hardhat run --network cornMain scripts/deploy.ts",
177181
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
178182
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
179183
"solhint:check": "npx solhint \"contracts/**/*.sol\"",
@@ -199,7 +203,7 @@
199203
"@types/node": "^22.13.1",
200204
"chai": "^4.5.0",
201205
"dotenv": "^16.4.7",
202-
"eslint": "^9.20.0",
206+
"eslint": "^9.20.1",
203207
"eslint-config-prettier": "^10.0.1",
204208
"ethers": "^6.13.5",
205209
"hardhat": "^2.22.18",
@@ -214,7 +218,7 @@
214218
"typechain": "^8.3.2",
215219
"typescript": "^5.7.3",
216220
"typescript-eslint": "^8.24.0",
217-
"zksync-ethers": "^6.16.0"
221+
"zksync-ethers": "^6.16.1"
218222
},
219223
"pnpm": {
220224
"onlyBuiltDependencies": [

pnpm-lock.yaml

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)