Skip to content

Commit

Permalink
chore: Add Base Testnet data (#284)
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Rubino <[email protected]>
  • Loading branch information
julianrubino and Julian Rubino authored Aug 5, 2024
1 parent d4910bf commit 94516b3
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
10 changes: 10 additions & 0 deletions v1/data/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@
"zetaToken": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf",
"zetaTokenConsumerUniV2": "",
"zetaTokenConsumerUniV3": ""
},
"base_testnet": {
"connector": "0xc0B74d761ef4EC9e9473f65687d36B9F13DB0dCc",
"immutableCreate2Factory": "0x095a03c6a68137fE9a566bBc3e552F299d8b886d",
"erc20Custody": "0x3A1f7b35EF57543B4e86c384eF6a368Ed811a36E",
"tss": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"tssUpdater": "0xdE3fb63723f0EEed8967ff9124e1c3bA89871b03",
"zetaToken": "0xf4e63991E7475b659bd97Bba85f32a7259239D5d",
"zetaTokenConsumerUniV2": "",
"zetaTokenConsumerUniV3": ""
}
},
"non_zeta": {
Expand Down
35 changes: 35 additions & 0 deletions v1/data/addresses.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,5 +380,40 @@
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "zetaTokenConsumerUniV3"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_testnet",
"type": "tss"
},
{
"address": "0xdE3fb63723f0EEed8967ff9124e1c3bA89871b03",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_testnet",
"type": "tssUpdater"
},
{
"address": "0xf4e63991E7475b659bd97Bba85f32a7259239D5d",
"category": "messaging",
"chain_id": 84532,
"chain_name": "base_testnet",
"type": "zetaToken"
},
{
"address": "0x3A1f7b35EF57543B4e86c384eF6a368Ed811a36E",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_testnet",
"type": "erc20Custody"
},
{
"address": "0xc0B74d761ef4EC9e9473f65687d36B9F13DB0dCc",
"category": "messaging",
"chain_id": 84532,
"chain_name": "base_testnet",
"type": "connector"
}
]
9 changes: 9 additions & 0 deletions v1/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const config: HardhatUserConfig = {
etherscan: {
apiKey: {
amoy_testnet: process.env.POLYGONSCAN_API_KEY || "",
base_testnet: process.env.BASESCAN_API_KEY || "",
// BSC
bsc: process.env.BSCSCAN_API_KEY || "",

Expand All @@ -38,6 +39,14 @@ const config: HardhatUserConfig = {
browserURL: "https://amoy.polygonscan.com",
},
},
{
chainId: 84532,
network: "base_testnet",
urls: {
apiURL: "https://api-sepolia.basescan.org/api",
browserURL: "https://sepolia.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 @@ -35,13 +35,15 @@ export declare type ZetaProtocolTestNetwork =
| "bsc_testnet"
| "btc_testnet"
| "sepolia_testnet"
| "base_testnet"
| "zeta_testnet";

export const zetaProtocolTestNetworks: ZetaProtocolTestNetwork[] = [
"amoy_testnet",
"bsc_testnet",
"btc_testnet",
"sepolia_testnet",
"base_testnet",
"zeta_testnet",
];

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 @@ -66,6 +66,12 @@ const SALT_NUMBERS = {
zetaERC20Custody: "195084",
zetaToken: "29265",
},
base_testnet: {
zetaConnector: "0",
zetaConsumer: "0",
zetaERC20Custody: "0",
zetaToken: "0",
}
};

export const getSaltNumber = (contractName: string, networkName: string) => {
Expand Down

0 comments on commit 94516b3

Please sign in to comment.