diff --git a/v1/data/addresses.json b/v1/data/addresses.json index b78c7b76..4eaac336 100644 --- a/v1/data/addresses.json +++ b/v1/data/addresses.json @@ -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": { diff --git a/v1/data/addresses.testnet.json b/v1/data/addresses.testnet.json index f75c2719..95ab606f 100644 --- a/v1/data/addresses.testnet.json +++ b/v1/data/addresses.testnet.json @@ -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" } ] diff --git a/v1/hardhat.config.ts b/v1/hardhat.config.ts index 864adeb3..d98a278d 100644 --- a/v1/hardhat.config.ts +++ b/v1/hardhat.config.ts @@ -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 || "", @@ -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: { diff --git a/v1/lib/address.tools.ts b/v1/lib/address.tools.ts index 467cd28e..2de148e3 100644 --- a/v1/lib/address.tools.ts +++ b/v1/lib/address.tools.ts @@ -35,6 +35,7 @@ export declare type ZetaProtocolTestNetwork = | "bsc_testnet" | "btc_testnet" | "sepolia_testnet" + | "base_testnet" | "zeta_testnet"; export const zetaProtocolTestNetworks: ZetaProtocolTestNetwork[] = [ @@ -42,6 +43,7 @@ export const zetaProtocolTestNetworks: ZetaProtocolTestNetwork[] = [ "bsc_testnet", "btc_testnet", "sepolia_testnet", + "base_testnet", "zeta_testnet", ]; diff --git a/v1/lib/contracts.constants.ts b/v1/lib/contracts.constants.ts index bb689f57..bdfa6066 100644 --- a/v1/lib/contracts.constants.ts +++ b/v1/lib/contracts.constants.ts @@ -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) => {