Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add data for Base mainnet go live (part one) #372

Merged
merged 11 commits into from
Oct 3, 2024
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": ""
},
CryptoFewka marked this conversation as resolved.
Show resolved Hide resolved
"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 All @@ -63,7 +63,7 @@
"uniswap-v2-deploy-plugin": "^0.0.4",
"wait-on": "^7.2.0"
},
"files": [

Check failure on line 66 in v1/package.json

View workflow job for this annotation

GitHub Actions / generate

Expected object keys to be in ascending order. 'dependencies' should be before 'devDependencies'
"contracts",
"abi",
"dist"
Expand All @@ -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"
}
}
Loading