From 6b23f5b5d48b122a7647ccd5356a5dee9527a124 Mon Sep 17 00:00:00 2001 From: lumtis Date: Tue, 23 Jul 2024 14:24:46 +0200 Subject: [PATCH 1/3] upgrade package --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 852b6aee..03b75e05 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@uniswap/v2-core": "^1.0.1", "@uniswap/v2-periphery": "^1.1.0-beta.0", "@uniswap/v3-periphery": "^1.4.3", - "@zetachain/networks": "^8.0.0", + "@zetachain/networks": "^9.0.0", "axios": "^1.6.5", "chai": "^4.3.6", "concurrently": "^8.2.2", diff --git a/yarn.lock b/yarn.lock index f667c550..c4ed4e16 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2152,10 +2152,10 @@ "@uniswap/v3-core" "1.0.0" base64-sol "1.0.1" -"@zetachain/networks@^8.0.0": - version "8.0.0" - resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-8.0.0.tgz#3e838bb6b14e4a8d381f95b4cbc2f1172e851e4e" - integrity sha512-I0HhH5qOGW0Jkjq5o5Mi6qGls6ycHnhWjc+r+Ud8u8YW+HU4lEUn4gvulxj+ccHKj3nV/0gEsmNrWRY9ct49nQ== +"@zetachain/networks@^9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-9.0.0.tgz#59eddb02578d784a1d76299ead600dffce87f48c" + integrity sha512-vCSkzyiubgYHK0NAJFFCv9gQziGrB+BT9q6DEu29owWxHcGLHPbI4VJ5PbkWH+z8pExVSDe2wKxGN5l2ZAcbGA== dependencies: dotenv "^16.1.4" From bafd9a7a5f0b323c510551ce872a0e5f23f5c7d3 Mon Sep 17 00:00:00 2001 From: lumtis Date: Tue, 23 Jul 2024 14:25:20 +0200 Subject: [PATCH 2/3] init new addresses --- data/addresses.mainnet.json | 44 +++++++++++++++++++++++++++++++++++++ lib/address.tools.ts | 4 ++-- lib/contracts.constants.ts | 6 +++++ 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/data/addresses.mainnet.json b/data/addresses.mainnet.json index 5911c8c0..dd2801e7 100644 --- a/data/addresses.mainnet.json +++ b/data/addresses.mainnet.json @@ -118,6 +118,50 @@ "chain_name": "bsc_mainnet", "type": "zetaToken" }, + + { + "address": "", + "category": "messaging", + "chain_id": 137, + "chain_name": "polygon_mainnet", + "type": "connector" + }, + { + "address": "", + "category": "omnichain", + "chain_id": 137, + "chain_name": "polygon_mainnet", + "type": "erc20Custody" + }, + { + "address": "", + "category": "messaging", + "chain_id": 137, + "chain_name": "polygon_mainnet", + "type": "pauser" + }, + { + "address": "", + "category": "omnichain", + "chain_id": 137, + "chain_name": "polygon_mainnet", + "type": "tss" + }, + { + "address": "", + "category": "omnichain", + "chain_id": 137, + "chain_name": "polygon_mainnet", + "type": "tssUpdater" + }, + { + "address": "", + "category": "messaging", + "chain_id": 137, + "chain_name": "polygon_mainnet", + "type": "zetaToken" + }, + { "address": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67", "category": "messaging", diff --git a/lib/address.tools.ts b/lib/address.tools.ts index ccf0d8a5..08bfeaaf 100644 --- a/lib/address.tools.ts +++ b/lib/address.tools.ts @@ -66,8 +66,8 @@ export const nonZetaAddress: NonZetaAddress[] = [ "weth9", ]; -export declare type ZetaProtocolMainNetwork = "bsc_mainnet" | "eth_mainnet" | "zeta_mainnet"; -export const zetaProtocolMainNetworks: ZetaProtocolMainNetwork[] = ["eth_mainnet", "bsc_mainnet", "zeta_mainnet"]; +export declare type ZetaProtocolMainNetwork = "bsc_mainnet" | "eth_mainnet" | "zeta_mainnet" | "polygon_mainnet"; +export const zetaProtocolMainNetworks: ZetaProtocolMainNetwork[] = ["eth_mainnet", "bsc_mainnet", "polygon_mainnet", "zeta_mainnet"]; export declare type ZetaProtocolNetwork = ZetaProtocolMainNetwork | ZetaProtocolTestNetwork; export const zetaProtocolNetworks: ZetaProtocolNetwork[] = [...zetaProtocolTestNetworks, ...zetaProtocolMainNetworks]; diff --git a/lib/contracts.constants.ts b/lib/contracts.constants.ts index 06b90cac..bb689f57 100644 --- a/lib/contracts.constants.ts +++ b/lib/contracts.constants.ts @@ -6,6 +6,12 @@ export const MAX_ETH_ADDRESS = "0xffffffffffffffffffffffffffffffffffffffff"; // dev: this values should be calculated using get-salt script const SALT_NUMBERS = { + polygon_mainnet: { + zetaConnector: "0", + zetaConsumer: "0", + zetaERC20Custody: "0", + zetaToken: "0", + }, baobab_testnet: { zetaConnector: "71733", zetaConsumer: "0", From 92404861526619d723ed384293f72078a0205235 Mon Sep 17 00:00:00 2001 From: lumtis Date: Tue, 23 Jul 2024 18:21:11 +0200 Subject: [PATCH 3/3] add contract addresses --- data/addresses.mainnet.json | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/data/addresses.mainnet.json b/data/addresses.mainnet.json index dd2801e7..e4bb7b14 100644 --- a/data/addresses.mainnet.json +++ b/data/addresses.mainnet.json @@ -118,50 +118,48 @@ "chain_name": "bsc_mainnet", "type": "zetaToken" }, - { - "address": "", + "address": "0x73cE2544d30A71D833C70D418FB5Ddf7a4A75455", "category": "messaging", "chain_id": 137, "chain_name": "polygon_mainnet", "type": "connector" }, { - "address": "", + "address": "0x69727Ef241ebD6e42Fc3A798092077069B415B2D", "category": "omnichain", "chain_id": 137, "chain_name": "polygon_mainnet", "type": "erc20Custody" }, { - "address": "", + "address": "0x7828F92E7d79E141189f24C98aceF71Bc07bad3f", "category": "messaging", "chain_id": 137, "chain_name": "polygon_mainnet", "type": "pauser" }, { - "address": "", + "address": "0x70e967acFcC17c3941E87562161406d41676FD83", "category": "omnichain", "chain_id": 137, "chain_name": "polygon_mainnet", "type": "tss" }, { - "address": "", + "address": "0x7828F92E7d79E141189f24C98aceF71Bc07bad3f", "category": "omnichain", "chain_id": 137, "chain_name": "polygon_mainnet", "type": "tssUpdater" }, { - "address": "", + "address": "0x2eff750c9D770BaBE6dBe84d05E40e4C65d7938d", "category": "messaging", "chain_id": 137, "chain_name": "polygon_mainnet", "type": "zetaToken" }, - { "address": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67", "category": "messaging",