Skip to content

Commit

Permalink
chore: add data for Base mainnet go live (part one) (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoFewka authored Oct 3, 2024
1 parent a80faa8 commit 8d665c0
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 2 deletions.
8 changes: 8 additions & 0 deletions v1/data/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
"zetaTokenConsumerUniV2": "",
"zetaTokenConsumerUniV3": ""
},
"base_mainnet": {
"connector": "",
"erc20Custody": "",
"immutableCreate2Factory": "0x095a03c6a68137fE9a566bBc3e552F299d8b886d",
"tss": "0x70e967acFcC17c3941E87562161406d41676FD83",
"tssUpdater": "0x4Ed087B3aB502475c97cF9d3f1637eFd2470B8FE",
"zetaToken": ""
},
"bsc_mainnet": {
"connector": "0x000063A6e758D9e2f438d430108377564cf4077D",
"erc20Custody": "0x00000fF8fA992424957F97688015814e707A0115",
Expand Down
14 changes: 14 additions & 0 deletions v1/data/addresses.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,20 @@
"chain_name": "polygon_mainnet",
"type": "zetaToken"
},
{
"address": "0x4Ed087B3aB502475c97cF9d3f1637eFd2470B8FE",
"category": "omnichain",
"chain_id": 8453,
"chain_name": "base_mainnet",
"type": "tssUpdater"
},
{
"address": "0x70e967acFcC17c3941E87562161406d41676FD83",
"category": "omnichain",
"chain_id": 8453,
"chain_name": "base_mainnet",
"type": "tss"
},
{
"address": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67",
"category": "messaging",
Expand Down
8 changes: 8 additions & 0 deletions v1/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ const config: HardhatUserConfig = {
browserURL: "https://sepolia.basescan.org/",
},
},
{
chainId: 8453,
network: "base_mainnet",
urls: {
apiURL: "https://api.basescan.org/api",
browserURL: "https://basescan.org/",
},
},
],
},
networks: {
Expand Down
2 changes: 2 additions & 0 deletions v1/lib/address.tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ export declare type ZetaProtocolMainNetwork =
| "btc_mainnet"
| "eth_mainnet"
| "polygon_mainnet"
| "base_mainnet"
| "zeta_mainnet";

export const zetaProtocolMainNetworks: ZetaProtocolMainNetwork[] = [
"bsc_mainnet",
"btc_mainnet",
"eth_mainnet",
"polygon_mainnet",
"base_mainnet",
"zeta_mainnet",
];

Expand Down
6 changes: 6 additions & 0 deletions v1/lib/contracts.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ const SALT_NUMBERS = {
zetaERC20Custody: "0",
zetaToken: "0",
},
base_mainnet: {
zetaConnector: "0",
zetaConsumer: "0",
zetaERC20Custody: "0",
zetaToken: "0",
},
baobab_testnet: {
zetaConnector: "71733",
zetaConsumer: "0",
Expand Down
7 changes: 5 additions & 2 deletions v1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"ethereum-waffle": "^4.0.9",
"ethereumjs-utils": "^5.2.5",
"ethers": "5.6.8",
"hardhat": "^2.17.2",
"hardhat": "^2.22.12",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-gas-reporter": "^1.0.9",
"inquirer": "^8.2.4",
Expand Down Expand Up @@ -89,5 +89,8 @@
"tsc:watch": "npx tsc --watch"
},
"types": "./dist/lib/index.d.ts",
"version": "0.0.8"
"version": "0.0.8",
"dependencies": {
"chokidar": "^4.0.1"
}
}

0 comments on commit 8d665c0

Please sign in to comment.