From 177677c774b20199505611176f4db95458e23818 Mon Sep 17 00:00:00 2001 From: arthcp Date: Thu, 17 Oct 2024 19:15:51 +0400 Subject: [PATCH 1/6] feat: opbnb chain deployment --- .env.example | 2 + deployments/prod_addresses.json | 283 ++++++++++++++++++ deployments/prod_verification.json | 20 ++ hardhat.config.ts | 10 + package.json | 2 +- scripts/constants/overrides.ts | 2 +- scripts/deploy/scripts/configureRoles.ts | 2 +- .../constants/batcherSupportedChainSlug.ts | 3 +- scripts/rpcConfig/constants/explorers.ts | 1 + scripts/rpcConfig/constants/icons.ts | 1 + scripts/rpcConfig/constants/rpc.ts | 1 + scripts/rpcConfig/constants/version.ts | 2 +- src/enums/chainId.ts | 1 + src/enums/chainSlug.ts | 1 + src/enums/chainSlugToHardhatChainName.ts | 1 + src/enums/chainSlugToId.ts | 1 + src/enums/chainSlugToKey.ts | 1 + src/enums/currency.ts | 1 + src/enums/hardhatChainName.ts | 1 + src/enums/hardhatChainNameToSlug.ts | 1 + src/enums/mainnetIds.ts | 1 + src/enums/opStackChains.ts | 1 + 22 files changed, 334 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 089d240e..d54774ed 100644 --- a/.env.example +++ b/.env.example @@ -103,3 +103,5 @@ AVALANCHE_RPC=' ' XLAYER_RPC=' ' MANTA_PACIFIC_RPC=' ' + +OPBNB_RPC=' ' diff --git a/deployments/prod_addresses.json b/deployments/prod_addresses.json index c679509b..70e8686f 100644 --- a/deployments/prod_addresses.json +++ b/deployments/prod_addresses.json @@ -79,6 +79,18 @@ "switchboard": "0xEaa15Fd42D68b8334a3BB1E9bF8cA85BaBE83790" } }, + "204": { + "FAST": { + "capacitor": "0x6AbB5497413E17BcCaD8B3d6c0A14eD455817d5B", + "decapacitor": "0xA957D9d3b514dBD5559484FcAAd0fc470565f379", + "switchboard": "0xD5a83a40F262E2247e6566171f9ADc76b745F5cD" + }, + "OPTIMISTIC": { + "capacitor": "0x3546419Fa517C56265e8Ae447396020E9665C6fC", + "decapacitor": "0x53583d5Ba13ccbe8c7B856225e9e74110459E4B3", + "switchboard": "0xEaa15Fd42D68b8334a3BB1E9bF8cA85BaBE83790" + } + }, "404": { "FAST": { "capacitor": "0xCC027c92910338c379b95DACc8274994E30a748B", @@ -496,6 +508,18 @@ "switchboard": "0xb113d72896d4874111AF00c9499b5a64e9f1e3f4" } }, + "204": { + "FAST": { + "capacitor": "0x4A417b4cb4ec1be946524c2625A4D9D87fd78636", + "decapacitor": "0x4dDE1AF9C34FB8D5Ce956268E297C2E3Ee285159", + "switchboard": "0x09A6e77912a6bcFc3abfDfb841A85380Bb2A8B97" + }, + "OPTIMISTIC": { + "capacitor": "0xdD9BCe7C1D14D26bD68Cd78f090282Dca2dD7EA5", + "decapacitor": "0xD52bb5EcF8dABf662ED28eb788Ef4554a6ddA1BB", + "switchboard": "0xb113d72896d4874111AF00c9499b5a64e9f1e3f4" + } + }, "404": { "FAST": { "capacitor": "0x13754F889eF41Fda7b950af797152eCE4875007E", @@ -780,6 +804,18 @@ "switchboard": "0x5490aBcD9949833FB68e4d222ee68dc225881c25" } }, + "204": { + "FAST": { + "capacitor": "0x4A7FeEaB362d36b5576B457F40670Af69CC8C1F1", + "decapacitor": "0x184900b0F16b66946db3554dc33E01bbeb07Ef2e", + "switchboard": "0xCedce2e52aa6551bC407f640D8Bd9179b528347C" + }, + "OPTIMISTIC": { + "capacitor": "0x685Fe42E7cd261E3402EdBaC0473A8B7819E9Ed1", + "decapacitor": "0xa196603f16C446E97C57B2D30147AdED838A1F98", + "switchboard": "0x5490aBcD9949833FB68e4d222ee68dc225881c25" + } + }, "404": { "FAST": { "capacitor": "0x701Ab6e0F21B8474FDd7C9e5F9d5b9B29Ef23114", @@ -1040,6 +1076,18 @@ "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" } }, + "204": { + "FAST": { + "capacitor": "0x980791b85F392B2Dc11e0D75eF7f15B054F00Da1", + "decapacitor": "0xe15771e88A74Fc9E23F4d96AcAC572980FfdCf09", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x977A0B70f269CFC4576fCF38bEcafdfc9D0a0537", + "decapacitor": "0x3e02B09a328B6508C5084ff70d354aEe873a2f6D", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, "1101": { "FAST": { "capacitor": "0xe056cD2C8d6172259CEf4a6bCfBa51430C930EA4", @@ -1187,6 +1235,18 @@ "switchboard": "0xeF7C79DF9c9AA6BC5d1d4ae308907e9B6a6B4372" } }, + "204": { + "FAST": { + "capacitor": "0xd9a5fd169fFECd0179bCC309917D46845d4dD714", + "decapacitor": "0xd9d2690C7b4AFd6B3BF6A87F9E2810eCB0a08dbF", + "switchboard": "0x33918BBF9f5269d90b8c0AbF1Fd1134C827bA445" + }, + "OPTIMISTIC": { + "capacitor": "0x5E9FADAAefB1D518d1F152c7d799E0b02e94d88d", + "decapacitor": "0x48512277E72A37f009bb1a630db120C80a67e22E", + "switchboard": "0xeF7C79DF9c9AA6BC5d1d4ae308907e9B6a6B4372" + } + }, "404": { "FAST": { "capacitor": "0xB38f858237bc170C39334634E7d85900dBe57200", @@ -1432,6 +1492,18 @@ "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" } }, + "204": { + "FAST": { + "capacitor": "0xa28717c161332b86851ACB8961E4D605D358A56E", + "decapacitor": "0x865dE5f98c4c1d21C18DA77560443646a4c6760D", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x77CDB3441D1EB0a98e36b8c96eDD26fB788Db502", + "decapacitor": "0xdF5Be240946f63CA107E62076B5B49148511A326", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, "1101": { "FAST": { "capacitor": "0xf0C835C640715Dc5363447bF7233078991889fC8", @@ -1525,6 +1597,157 @@ } } }, + "204": { + "SignatureVerifier": "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead", + "Hasher": "0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3", + "CapacitorFactory": "0x6C593aD4C0Fa4E293a0f1240F9ca3CF0e8a28619", + "Socket": "0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE", + "ExecutionManagerDF": "0x1CAdCd88fC148D3966eDe75D029937C886f66009", + "TransmitManager": "0x9B8c323468AEC7A7Cb041CeD48F92559bFF33705", + "FastSwitchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b", + "OptimisticSwitchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF", + "SocketBatcher": "0xb3314456567986e657d4C65Ec9e8cB736B92d11D", + "Counter": "0x657e72B305Dc1c41e98d9efC2350EC10e3c83E21", + "SocketSimulator": "0x525a6489a1df5fF1ae077fAf628E43b7F52298eF", + "SimulatorUtils": "0x3043Ad9C9e01664bc3A68477f0870Df35dC4bFf8", + "SwitchboardSimulator": "0xd9E3a8Ba9Be55919C5C0De6694e3103F5a35820E", + "CapacitorSimulator": "0xD7B34Db1477797FA2Dff890afBa88a00eb89b9eE", + "startBlock": 37419484, + "integrations": { + "1": { + "FAST": { + "capacitor": "0x19405671F9F14a81a1112ac890E85E321a79426D", + "decapacitor": "0xFE82774f00Ce859Aad948e71D739C417Ae85B1fd", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x441432a93E38BdB82f71684359E59AE49c0D9a79", + "decapacitor": "0x9D44AF8a4a0fD8D86Aaa584394845a86B31007f3", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "10": { + "FAST": { + "capacitor": "0xcf4136C6537D6e4F2b17a0035663dCDD3C08F746", + "decapacitor": "0x949c6C52A539BAD93D2a31EF4EB923fd8a09c660", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xd9DB6A7Ff0175c68053542Dc0714967f316c3923", + "decapacitor": "0x4E04BC370629D101AAB69546a12d4D98b9d369aF", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "56": { + "FAST": { + "capacitor": "0xcacBE8Caaa88003544BA8d6Ebf63af256Cba9b93", + "decapacitor": "0x68e39A99221087D3585fA4493911A60683AbE32d", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xe056cD2C8d6172259CEf4a6bCfBa51430C930EA4", + "decapacitor": "0x9915a72206BB6f57d694d975146694C4d33aD4b1", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "100": { + "FAST": { + "capacitor": "0xF6f648CF8164Dd7Ec04C0dba8fc91e7b66A154C0", + "decapacitor": "0xc014b5C95B790b35acbeE3E4D7807Bd556FddebE", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xB36c60cCdc2022DB4f6e4f917E9b28e473B0402b", + "decapacitor": "0xE187cc0847880f7dEBDf00F8C5d7F001175F3445", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "137": { + "FAST": { + "capacitor": "0xfDab5AD9dD96deb42f093510641a325dB65cAD10", + "decapacitor": "0xE16b17BC461C3EDF6c351c1a27FB42851F085D19", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x5924cE286850adEC8ddC9f64E8e45900006D76dB", + "decapacitor": "0x2C806f22CA1CA75Fe8D7D6cEd53B199f23D43fCc", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "169": { + "FAST": { + "capacitor": "0x938DbeA077a5deB6a7680EBdCC85bB4bA216Cb52", + "decapacitor": "0x018FD84FFcaD3401C3465dFA7E8017218Fc55Dc9", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x77CDB3441D1EB0a98e36b8c96eDD26fB788Db502", + "decapacitor": "0xdF5Be240946f63CA107E62076B5B49148511A326", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "1101": { + "FAST": { + "capacitor": "0xf0C835C640715Dc5363447bF7233078991889fC8", + "decapacitor": "0x2eF42ec2c355E6E5D296Ef888aBB7904386c0B94", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xa28717c161332b86851ACB8961E4D605D358A56E", + "decapacitor": "0x865dE5f98c4c1d21C18DA77560443646a4c6760D", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "5000": { + "FAST": { + "capacitor": "0xdF24b92Ad07D39344B1abA69a8acbb5DEa5BA08a", + "decapacitor": "0x03bCf41D18Cd8AA7D4b13DCc8574150329e6D130", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x07229718F47457B61bd6859d0C818a1A33394d76", + "decapacitor": "0x3C2b3bCB80ABC57DF4Cf06f1991684308513d72c", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "8453": { + "FAST": { + "capacitor": "0xCF029dbbFCeBf82C981B3Ffe78CCB38bbC57a6FC", + "decapacitor": "0xe9BE8937aDf6A92CBF464b2904097c71E480f925", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x8490EA934cC935db5252bb98D99099acBE6e1913", + "decapacitor": "0x0E26F08dE9B0BB34C483768fe5809808780Aad96", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "42161": { + "FAST": { + "capacitor": "0xe73B81e0582110A3e1e84eD48986CF8365C67F5c", + "decapacitor": "0x2e544869aD700F70E47597Aa065e562deAFcA241", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xb5B1514a94584864e4b76eD0ea6C70363A8F8e52", + "decapacitor": "0x8946Ccfc19c4F7b230cA9D627aFF83A183c7fD9a", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "59144": { + "FAST": { + "capacitor": "0x9f72CAEAccc292977A0c134693AB5F63fe513202", + "decapacitor": "0x86917a199668155A7Aa1dA833499E5646c00d9dA", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xdc666E0C861140ed69ecF5A3a32efefFb44C5854", + "decapacitor": "0xdfAbC6a129d351d0dF0858bB7F66ba4554Bcdfb5", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + } + } + }, "404": { "SignatureVerifier": "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead", "Hasher": "0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3", @@ -2347,6 +2570,18 @@ "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" } }, + "204": { + "FAST": { + "capacitor": "0x980791b85F392B2Dc11e0D75eF7f15B054F00Da1", + "decapacitor": "0xe15771e88A74Fc9E23F4d96AcAC572980FfdCf09", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x977A0B70f269CFC4576fCF38bEcafdfc9D0a0537", + "decapacitor": "0x3e02B09a328B6508C5084ff70d354aEe873a2f6D", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, "5000": { "FAST": { "capacitor": "0xdF24b92Ad07D39344B1abA69a8acbb5DEa5BA08a", @@ -2610,6 +2845,18 @@ "switchboard": "0x57D1Aeafb6a2b7Bd4954e47a556622161A8c0A65" } }, + "204": { + "FAST": { + "capacitor": "0xBd3FEF336593eA0E84Be81F1A4c41856A30D5a8D", + "decapacitor": "0xb4070755C78D7Da1241a0E24B7304D035181fF81", + "switchboard": "0x8f9EaEe5c5df888aBA3c1Ab19689a0660d042c6d" + }, + "OPTIMISTIC": { + "capacitor": "0x57049AE5969f8a36f256Af721927C899a02D5B74", + "decapacitor": "0xcfD44E484c3181bE8CA168C9A3f1e69F9e2DB802", + "switchboard": "0x57D1Aeafb6a2b7Bd4954e47a556622161A8c0A65" + } + }, "1101": { "FAST": { "capacitor": "0x611DE381354427265a58BD829184476E969de103", @@ -2897,6 +3144,18 @@ "switchboard": "0x15A55294B7278260DdfFC659Fb39a401871EeE34" } }, + "204": { + "FAST": { + "capacitor": "0x4387D59D1b34409B5fEcB4E7646f472198022C13", + "decapacitor": "0x4eC54d2e41d776Ece1021207cc4Db5AC640a767D", + "switchboard": "0x957301825Dc21d4A92919C9E72dC9E6C6a29e7f8" + }, + "OPTIMISTIC": { + "capacitor": "0x5a8721Cc2B3B67C833Cf13D788D7628D533E1fc6", + "decapacitor": "0x688A10d36C4e0c49E4edBF6A446875Dab4827c02", + "switchboard": "0x15A55294B7278260DdfFC659Fb39a401871EeE34" + } + }, "404": { "FAST": { "capacitor": "0xd3a9250646CDC35C850Ef8865dB5663CC358b168", @@ -3298,6 +3557,18 @@ "switchboard": "0x1812ff6bd726934f18159164e2927B34949B16a8" } }, + "204": { + "FAST": { + "capacitor": "0x81522E2Ee6b2BAc9631e043bB386E6378a0a6f7f", + "decapacitor": "0x52f612DC85c9B95d385d0E439b12b8a45b0Fc4fb", + "switchboard": "0xd5e829827F665c42326EAF68Da3360bd59b42f2f" + }, + "OPTIMISTIC": { + "capacitor": "0xe5D19EAa9394e07ae8F86ec1B1928607d869281d", + "decapacitor": "0xB9B3909C76856e56bA796635129f3bDC7A1BadA1", + "switchboard": "0x1812ff6bd726934f18159164e2927B34949B16a8" + } + }, "404": { "FAST": { "capacitor": "0xF140a4A504c11F49A4b2F4ABd383CA20C7e6B115", @@ -3762,6 +4033,18 @@ "switchboard": "0x332901149A390D334498008449089f05fa273C3B" } }, + "204": { + "FAST": { + "capacitor": "0xeE69c2501C8332ac654F0CfeEE9fCa50163a9e4E", + "decapacitor": "0x16017886Aaa0A303c3E5fba18a9623224d588402", + "switchboard": "0x497D0FA570c128830a3aA3C06582a94af2330A18" + }, + "OPTIMISTIC": { + "capacitor": "0xd49260Db68203CD011486cd4B0dE4688a74e99a2", + "decapacitor": "0x1248b14853a93cF84B5e3101d9b41E3064C3f433", + "switchboard": "0x332901149A390D334498008449089f05fa273C3B" + } + }, "1101": { "FAST": { "capacitor": "0xFe9Bc66C4A9D3cFFCFc51EAf9A7cbE3915F46654", diff --git a/deployments/prod_verification.json b/deployments/prod_verification.json index 6f6d0550..e6713060 100644 --- a/deployments/prod_verification.json +++ b/deployments/prod_verification.json @@ -974,6 +974,26 @@ ["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"] ] ], + "204": [ + [ + "0x525a6489a1df5fF1ae077fAf628E43b7F52298eF", + "SocketSimulator", + "contracts/mocks/fee-updater/SocketSimulator.sol", + [ + 204, + 204, + "0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3", + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead", + "IMLI" + ] + ], + [ + "0x6C593aD4C0Fa4E293a0f1240F9ca3CF0e8a28619", + "CapacitorFactory", + "contracts/CapacitorFactory.sol", + ["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", 10] + ] + ], "238": [ [ "0x2a1094b6585b32FE33929cDdF7Ee3F5a1c1E163A", diff --git a/hardhat.config.ts b/hardhat.config.ts index 3ba12a1b..47196863 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -117,6 +117,7 @@ if (isProduction) { [HardhatChainName.ZKEVM]: getChainConfig(ChainSlug.ZKEVM), [HardhatChainName.AVALANCHE]: getChainConfig(ChainSlug.AVALANCHE), [HardhatChainName.MANTA_PACIFIC]: getChainConfig(ChainSlug.MANTA_PACIFIC), + [HardhatChainName.OPBNB]: getChainConfig(ChainSlug.OPBNB), }; } @@ -167,6 +168,7 @@ const config: HardhatUserConfig = { zkevm: process.env.ZKEVM_API_KEY || "", avalanche: process.env.SNOWTRACE_API_KEY || "", manta_pacific: process.env.MANTA_PACIFIC_API_KEY || "none", + opbnb: process.env.OPBNB_API_KEY || "none", }, customChains: [ { @@ -313,6 +315,14 @@ const config: HardhatUserConfig = { browserURL: "https://pacific-explorer.manta.network/", }, }, + { + network: "opbnb", + chainId: ChainId.OPBNB, + urls: { + apiURL: "https://api-opbnb.bscscan.com/api", + browserURL: "https://opbnb.bscscan.com/", + }, + }, ], }, networks: { diff --git a/package.json b/package.json index af0e8d1d..f303e231 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@socket.tech/dl-core", "license": "UNLICENSED", - "version": "2.30.0", + "version": "2.31.0", "description": "Smart contracts for socket data layer.", "main": "./dist/src/index.js", "types": "./dist/src/index.d.ts", diff --git a/scripts/constants/overrides.ts b/scripts/constants/overrides.ts index e29e7764..5b722af6 100644 --- a/scripts/constants/overrides.ts +++ b/scripts/constants/overrides.ts @@ -90,7 +90,7 @@ export const chainOverrides: { }, [ChainSlug.MANTLE]: { type: 1, - gasLimit: 100_000_000_000, + gasLimit: 10_000_000_000, gasPrice: 30_000_000, }, [ChainSlug.NEOX_TESTNET]: { diff --git a/scripts/deploy/scripts/configureRoles.ts b/scripts/deploy/scripts/configureRoles.ts index e5e7ceb8..dc4f1d06 100644 --- a/scripts/deploy/scripts/configureRoles.ts +++ b/scripts/deploy/scripts/configureRoles.ts @@ -18,7 +18,7 @@ import { import { checkAndUpdateRoles } from "./roles"; import { sleep } from "@socket.tech/dl-common"; -const sleepTime = 3000; +const sleepTime = 10000; const newRoleStatus = true; export const configureRoles = async ( diff --git a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts index b68fff8d..e5e5093b 100644 --- a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts +++ b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts @@ -26,7 +26,7 @@ export const batcherSupportedChainSlugs = [ // ChainSlug.BOB, ChainSlug.KINTO, // ChainSlug.KINTO_DEVNET, - ChainSlug.SIPHER_FUNKI_TESTNET, + // ChainSlug.SIPHER_FUNKI_TESTNET, ChainSlug.WINR, ChainSlug.BLAST, // ChainSlug.BSC_TESTNET, @@ -41,4 +41,5 @@ export const batcherSupportedChainSlugs = [ ChainSlug.AVALANCHE, ChainSlug.XLAYER, ChainSlug.MANTA_PACIFIC, + ChainSlug.OPBNB, ]; diff --git a/scripts/rpcConfig/constants/explorers.ts b/scripts/rpcConfig/constants/explorers.ts index c6f7649a..23f207da 100644 --- a/scripts/rpcConfig/constants/explorers.ts +++ b/scripts/rpcConfig/constants/explorers.ts @@ -20,4 +20,5 @@ export const explorers = { [ChainSlug.AVALANCHE]: "https://snowtrace.io/", [ChainSlug.XLAYER]: "https://www.okx.com/web3/explorer/xlayer", [ChainSlug.MANTA_PACIFIC]: "https://pacific-explorer.manta.network/", + [ChainSlug.OPBNB]: "https://opbnb.bscscan.com/", }; diff --git a/scripts/rpcConfig/constants/icons.ts b/scripts/rpcConfig/constants/icons.ts index 31aa0021..9690489d 100644 --- a/scripts/rpcConfig/constants/icons.ts +++ b/scripts/rpcConfig/constants/icons.ts @@ -18,4 +18,5 @@ export const icons = { [ChainSlug.AVALANCHE]: "", [ChainSlug.XLAYER]: "", [ChainSlug.MANTA_PACIFIC]: "", + [ChainSlug.OPBNB]: "", }; diff --git a/scripts/rpcConfig/constants/rpc.ts b/scripts/rpcConfig/constants/rpc.ts index 2e7dbca8..0473dae0 100644 --- a/scripts/rpcConfig/constants/rpc.ts +++ b/scripts/rpcConfig/constants/rpc.ts @@ -53,4 +53,5 @@ export const rpcs = { [ChainSlug.AVALANCHE]: checkEnvValue("AVALANCHE_RPC"), [ChainSlug.XLAYER]: checkEnvValue("XLAYER_RPC"), [ChainSlug.MANTA_PACIFIC]: checkEnvValue("MANTA_PACIFIC_RPC"), + [ChainSlug.OPBNB]: checkEnvValue("OPBNB_RPC"), }; diff --git a/scripts/rpcConfig/constants/version.ts b/scripts/rpcConfig/constants/version.ts index 55cfd988..ba27ffcd 100644 --- a/scripts/rpcConfig/constants/version.ts +++ b/scripts/rpcConfig/constants/version.ts @@ -2,5 +2,5 @@ import { DeploymentMode } from "../../../src"; export const version = { [DeploymentMode.DEV]: "1.0.5", - [DeploymentMode.PROD]: "1.0.60", + [DeploymentMode.PROD]: "1.0.61", }; diff --git a/src/enums/chainId.ts b/src/enums/chainId.ts index d0cd6b7d..959e196c 100644 --- a/src/enums/chainId.ts +++ b/src/enums/chainId.ts @@ -49,4 +49,5 @@ export enum ChainId { AVALANCHE = 43114, XLAYER = 196, MANTA_PACIFIC = 169, + OPBNB = 204, } diff --git a/src/enums/chainSlug.ts b/src/enums/chainSlug.ts index af77c9d3..db01d18f 100644 --- a/src/enums/chainSlug.ts +++ b/src/enums/chainSlug.ts @@ -51,4 +51,5 @@ export enum ChainSlug { AVALANCHE = ChainId.AVALANCHE, XLAYER = ChainId.XLAYER, MANTA_PACIFIC = ChainId.MANTA_PACIFIC, + OPBNB = ChainId.OPBNB, } diff --git a/src/enums/chainSlugToHardhatChainName.ts b/src/enums/chainSlugToHardhatChainName.ts index 1bbbf92a..07b4847e 100644 --- a/src/enums/chainSlugToHardhatChainName.ts +++ b/src/enums/chainSlugToHardhatChainName.ts @@ -52,4 +52,5 @@ export const chainSlugToHardhatChainName = { [ChainSlug.AVALANCHE]: [HardhatChainName.AVALANCHE], [ChainSlug.XLAYER]: [HardhatChainName.XLAYER], [ChainSlug.MANTA_PACIFIC]: [HardhatChainName.MANTA_PACIFIC], + [ChainSlug.OPBNB]: [HardhatChainName.OPBNB], }; diff --git a/src/enums/chainSlugToId.ts b/src/enums/chainSlugToId.ts index d1d5846d..d09c56a9 100644 --- a/src/enums/chainSlugToId.ts +++ b/src/enums/chainSlugToId.ts @@ -52,4 +52,5 @@ export const ChainSlugToId = { [ChainSlug.AVALANCHE]: ChainId.AVALANCHE, [ChainSlug.XLAYER]: ChainId.XLAYER, [ChainSlug.MANTA_PACIFIC]: ChainId.MANTA_PACIFIC, + [ChainSlug.OPBNB]: ChainId.OPBNB, }; diff --git a/src/enums/chainSlugToKey.ts b/src/enums/chainSlugToKey.ts index 684e25bd..b86aa3b3 100644 --- a/src/enums/chainSlugToKey.ts +++ b/src/enums/chainSlugToKey.ts @@ -52,4 +52,5 @@ export const ChainSlugToKey = { [ChainSlug.AVALANCHE]: HardhatChainName.AVALANCHE, [ChainSlug.XLAYER]: HardhatChainName.XLAYER, [ChainSlug.MANTA_PACIFIC]: HardhatChainName.MANTA_PACIFIC, + [ChainSlug.OPBNB]: HardhatChainName.OPBNB, }; diff --git a/src/enums/currency.ts b/src/enums/currency.ts index f3162213..b46ef354 100644 --- a/src/enums/currency.ts +++ b/src/enums/currency.ts @@ -15,4 +15,5 @@ export const Currency = { [ChainSlug.GNOSIS]: NativeTokens["dai"], [ChainSlug.AVALANCHE]: NativeTokens["avalanche-2"], [ChainSlug.XLAYER]: NativeTokens["okb"], + [ChainSlug.OPBNB]: NativeTokens["binancecoin"], }; diff --git a/src/enums/hardhatChainName.ts b/src/enums/hardhatChainName.ts index f55b81d8..fd5a3af7 100644 --- a/src/enums/hardhatChainName.ts +++ b/src/enums/hardhatChainName.ts @@ -49,4 +49,5 @@ export enum HardhatChainName { AVALANCHE = "avalanche", XLAYER = "xlayer", MANTA_PACIFIC = "manta_pacific", + OPBNB = "opbnb", } diff --git a/src/enums/hardhatChainNameToSlug.ts b/src/enums/hardhatChainNameToSlug.ts index 418f7ee6..f7d48d25 100644 --- a/src/enums/hardhatChainNameToSlug.ts +++ b/src/enums/hardhatChainNameToSlug.ts @@ -52,4 +52,5 @@ export const hardhatChainNameToSlug = { [HardhatChainName.AVALANCHE]: ChainSlug.AVALANCHE, [HardhatChainName.XLAYER]: ChainSlug.XLAYER, [HardhatChainName.MANTA_PACIFIC]: ChainSlug.MANTA_PACIFIC, + [HardhatChainName.OPBNB]: ChainSlug.OPBNB, }; diff --git a/src/enums/mainnetIds.ts b/src/enums/mainnetIds.ts index f9acd300..5c5c1103 100644 --- a/src/enums/mainnetIds.ts +++ b/src/enums/mainnetIds.ts @@ -27,4 +27,5 @@ export const MainnetIds: ChainSlug[] = [ ChainSlug.AVALANCHE, ChainSlug.XLAYER, ChainSlug.MANTA_PACIFIC, + ChainSlug.OPBNB, ]; diff --git a/src/enums/opStackChains.ts b/src/enums/opStackChains.ts index 61c2a7af..a1534d31 100644 --- a/src/enums/opStackChains.ts +++ b/src/enums/opStackChains.ts @@ -18,4 +18,5 @@ export const opStackL2Chain = [ ChainSlug.BLAST, ChainSlug.POLYNOMIAL, ChainSlug.MANTA_PACIFIC, + ChainSlug.OPBNB, ]; From 52ef9c1d00060d24bcf94d9fdda89e29070a8526 Mon Sep 17 00:00:00 2001 From: arthcp Date: Thu, 31 Oct 2024 04:46:11 +0530 Subject: [PATCH 2/6] feat: geist deploy --- .env.example | 2 + deployments/prod_addresses.json | 43 +++++++++++++++++++ deployments/prod_verification.json | 20 +++++++++ hardhat.config.ts | 10 +++++ package.json | 2 +- scripts/deploy/deploy.ts | 25 ++++++++--- scripts/deploy/scripts/configureRoles.ts | 13 +++--- .../deploy/scripts/configureSwitchboards.ts | 17 ++++---- scripts/deploy/scripts/connect.ts | 23 +++++----- .../constants/batcherSupportedChainSlug.ts | 1 + scripts/rpcConfig/constants/explorers.ts | 1 + scripts/rpcConfig/constants/icons.ts | 1 + scripts/rpcConfig/constants/rpc.ts | 1 + scripts/rpcConfig/constants/version.ts | 2 +- scripts/rpcConfig/rpcConfig.ts | 2 - src/enums/arbChains.ts | 1 + src/enums/chainId.ts | 1 + src/enums/chainSlug.ts | 1 + src/enums/chainSlugToHardhatChainName.ts | 1 + src/enums/chainSlugToId.ts | 1 + src/enums/chainSlugToKey.ts | 1 + src/enums/currency.ts | 1 + src/enums/hardhatChainName.ts | 1 + src/enums/hardhatChainNameToSlug.ts | 1 + src/enums/mainnetIds.ts | 1 + src/enums/native-tokens.ts | 1 + 26 files changed, 140 insertions(+), 34 deletions(-) diff --git a/.env.example b/.env.example index d54774ed..303b08f5 100644 --- a/.env.example +++ b/.env.example @@ -105,3 +105,5 @@ XLAYER_RPC=' ' MANTA_PACIFIC_RPC=' ' OPBNB_RPC=' ' + +GEIST_RPC=' ' diff --git a/deployments/prod_addresses.json b/deployments/prod_addresses.json index 70e8686f..57981fdc 100644 --- a/deployments/prod_addresses.json +++ b/deployments/prod_addresses.json @@ -1379,6 +1379,18 @@ "switchboard": "0xeF7C79DF9c9AA6BC5d1d4ae308907e9B6a6B4372" } }, + "63157": { + "FAST": { + "capacitor": "0x4785721D150482ccC651A3dF5B02c237134dcbf7", + "decapacitor": "0xfE41B1A4dB563BcA56A959706505D007E27FE672", + "switchboard": "0x33918BBF9f5269d90b8c0AbF1Fd1134C827bA445" + }, + "OPTIMISTIC": { + "capacitor": "0xa197F227283f2F7ffD3b8EF132FCEb582C6033Fa", + "decapacitor": "0x672936478a49567Dc1Ccb0d5d02eEBC9F52bCC72", + "switchboard": "0xeF7C79DF9c9AA6BC5d1d4ae308907e9B6a6B4372" + } + }, "81457": { "FAST": { "capacitor": "0x8a0f43439b49F39cA4bBF63B6eBB117aF1Ed7566", @@ -4150,6 +4162,37 @@ } } }, + "63157": { + "SignatureVerifier": "0x941f0ef5258604Fe10C76AE3858984CE0452b5f2", + "Hasher": "0xFe9DCb3dAba382f46F2Ce69ddEb3b5Df86d96f04", + "CapacitorFactory": "0x5C4186D343EeF952c9ED886E45F8243edf0A503F", + "Socket": "0x34464194a4aCD38F42060D144BF3729F625Ff047", + "ExecutionManagerDF": "0xD3B7bd2A9973b188E096dceCbB3D72FC5649FF56", + "TransmitManager": "0xe1e0d782E3b4985f1d657f77B683897AeA6b7dC9", + "FastSwitchboard": "0xEf3589Fb5CE7a5BfB01BF4F1e35a198BA7F6dF4E", + "OptimisticSwitchboard": "0x06638c0799638d64c9AfbB132f94c451A35C7c09", + "SocketBatcher": "0xc9a998F24DBa0C38293fe0418fcEaE28CD0A403E", + "Counter": "0x2CAd2eCe3A78eF1Ef6ec2E0E43E264dcBEd7E8B0", + "SocketSimulator": "0x22891c72dE565d884Dfd762B8df7C4632888a93A", + "SimulatorUtils": "0xB81598BdD2851F223625Ed2C677ccaBD8049b323", + "SwitchboardSimulator": "0x08c3e46CDbE16993d034e0BA87fD9C0dEF08F477", + "CapacitorSimulator": "0xD02F5a7a682d83504e163FCa62A66ee19B5C2AD9", + "startBlock": 70, + "integrations": { + "137": { + "FAST": { + "capacitor": "0x862ccDd5AC90d3A9CCcEE4672Cb49A343c6A5B73", + "decapacitor": "0x71e65941E04da2A88F4C0716F5cde8Af8317d94d", + "switchboard": "0xEf3589Fb5CE7a5BfB01BF4F1e35a198BA7F6dF4E" + }, + "OPTIMISTIC": { + "capacitor": "0xB40C51F025D330219811A502B6ADEdaaC9d757F7", + "decapacitor": "0xCb97B4BD183413d34406fE29277D7AAfFFDd9040", + "switchboard": "0x06638c0799638d64c9AfbB132f94c451A35C7c09" + } + } + } + }, "80008": { "SignatureVerifier": "0x2b42AFFD4b7C14d9B7C2579229495c052672Ccd3", "Hasher": "0x8537307810fC40F4073A12a38554D4Ff78EfFf41", diff --git a/deployments/prod_verification.json b/deployments/prod_verification.json index e6713060..423dc9a3 100644 --- a/deployments/prod_verification.json +++ b/deployments/prod_verification.json @@ -4266,6 +4266,26 @@ ["0x5fD7D0d6b91CC4787Bcb86ca47e0Bd4ea0346d34"] ] ], + "63157": [ + [ + "0x22891c72dE565d884Dfd762B8df7C4632888a93A", + "SocketSimulator", + "contracts/mocks/fee-updater/SocketSimulator.sol", + [ + 63157, + 63157, + "0xFe9DCb3dAba382f46F2Ce69ddEb3b5Df86d96f04", + "0x941f0ef5258604Fe10C76AE3858984CE0452b5f2", + "IMLI" + ] + ], + [ + "0x5C4186D343EeF952c9ED886E45F8243edf0A503F", + "CapacitorFactory", + "contracts/CapacitorFactory.sol", + ["0x44A44837894B5eDC2Bde64567FC62599b3b88F4C", 10] + ] + ], "80001": [ [ "0x1F0F1FC746fcd4d59b6dBDDFf67a88cde70dAeE5", diff --git a/hardhat.config.ts b/hardhat.config.ts index 47196863..4f9cf2f4 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -118,6 +118,7 @@ if (isProduction) { [HardhatChainName.AVALANCHE]: getChainConfig(ChainSlug.AVALANCHE), [HardhatChainName.MANTA_PACIFIC]: getChainConfig(ChainSlug.MANTA_PACIFIC), [HardhatChainName.OPBNB]: getChainConfig(ChainSlug.OPBNB), + [HardhatChainName.GEIST]: getChainConfig(ChainSlug.GEIST), }; } @@ -169,6 +170,7 @@ const config: HardhatUserConfig = { avalanche: process.env.SNOWTRACE_API_KEY || "", manta_pacific: process.env.MANTA_PACIFIC_API_KEY || "none", opbnb: process.env.OPBNB_API_KEY || "none", + geist: process.env.GEIST_API_KEY || "none", }, customChains: [ { @@ -323,6 +325,14 @@ const config: HardhatUserConfig = { browserURL: "https://opbnb.bscscan.com/", }, }, + { + network: "geist", + chainId: ChainId.GEIST, + urls: { + apiURL: "https://geist-mainnet.explorer.alchemy.com/api", + browserURL: "https://geist-mainnet.explorer.alchemy.com/", + }, + }, ], }, networks: { diff --git a/package.json b/package.json index f303e231..a16dc412 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@socket.tech/dl-core", "license": "UNLICENSED", - "version": "2.31.0", + "version": "2.32.0", "description": "Smart contracts for socket data layer.", "main": "./dist/src/index.js", "types": "./dist/src/index.d.ts", diff --git a/scripts/deploy/deploy.ts b/scripts/deploy/deploy.ts index 2acec3a6..06ec762f 100644 --- a/scripts/deploy/deploy.ts +++ b/scripts/deploy/deploy.ts @@ -33,18 +33,26 @@ const main = async () => { value: chain, })); - const configResponse = await prompts([ + const chainsResponse = await prompts([ { name: "chains", type: "multiselect", + message: "Select chains to connect", + choices, + }, + { + name: "siblings", + type: "multiselect", message: "Select sibling chains to connect", choices, }, ]); - const chains = [...configResponse.chains]; + const chains = chainsResponse.chains; + const siblings = chainsResponse.siblings; + const allChains = [...chains, ...siblings]; let addresses: DeploymentAddresses = await deployForChains( - chains, + allChains, executionManagerVersion ); @@ -52,13 +60,20 @@ const main = async () => { console.log("No siblings selected!"); return; } - await configureRoles(addresses, chains, true, executionManagerVersion); + await configureRoles( + addresses, + chains, + siblings, + true, + executionManagerVersion + ); addresses = await configureSwitchboards( addresses, chains, + siblings, executionManagerVersion ); - await connectPlugs(addresses, chains); + await connectPlugs(addresses, chains, siblings); } catch (error) { console.log("Error:", error); } diff --git a/scripts/deploy/scripts/configureRoles.ts b/scripts/deploy/scripts/configureRoles.ts index dc4f1d06..4c8719b9 100644 --- a/scripts/deploy/scripts/configureRoles.ts +++ b/scripts/deploy/scripts/configureRoles.ts @@ -24,6 +24,7 @@ const newRoleStatus = true; export const configureRoles = async ( addresses: DeploymentAddresses, chains: ChainSlug[], + siblings: ChainSlug[], sendTransaction: boolean, executionManagerVersion: CORE_CONTRACTS ) => { @@ -60,7 +61,7 @@ export const configureRoles = async ( ], contractName: executionManagerVersion, filterChains: chains, - filterSiblingChains: chains, + filterSiblingChains: siblings, sendTransaction, newRoleStatus, }, @@ -90,7 +91,7 @@ export const configureRoles = async ( ], contractName: CORE_CONTRACTS.TransmitManager, filterChains: chains, - filterSiblingChains: chains, + filterSiblingChains: siblings, sendTransaction, newRoleStatus, }, @@ -111,7 +112,7 @@ export const configureRoles = async ( ], contractName: CORE_CONTRACTS.Socket, filterChains: chains, - filterSiblingChains: chains, + filterSiblingChains: siblings, sendTransaction, newRoleStatus, }, @@ -152,7 +153,7 @@ export const configureRoles = async ( contractName: CORE_CONTRACTS.FastSwitchboard, filterChains: chains, - filterSiblingChains: chains, + filterSiblingChains: siblings, sendTransaction, newRoleStatus, }, @@ -191,7 +192,7 @@ export const configureRoles = async ( ], contractName: CORE_CONTRACTS.OptimisticSwitchboard, filterChains: chains, - filterSiblingChains: chains, + filterSiblingChains: siblings, sendTransaction, newRoleStatus, }, @@ -227,7 +228,7 @@ export const configureRoles = async ( ], contractName: CORE_CONTRACTS.NativeSwitchboard, filterChains: chains, - filterSiblingChains: chains, + filterSiblingChains: siblings, sendTransaction, newRoleStatus, }, diff --git a/scripts/deploy/scripts/configureSwitchboards.ts b/scripts/deploy/scripts/configureSwitchboards.ts index 8eafaf10..99accc5d 100644 --- a/scripts/deploy/scripts/configureSwitchboards.ts +++ b/scripts/deploy/scripts/configureSwitchboards.ts @@ -25,6 +25,7 @@ import { export const configureSwitchboards = async ( addresses: DeploymentAddresses, chains: ChainSlug[], + siblings: ChainSlug[], executionManagerVersion: CORE_CONTRACTS ) => { try { @@ -42,17 +43,17 @@ export const configureSwitchboards = async ( let addr: ChainSocketAddresses = addresses[chain]!; - const list = isTestnet(chain) ? TestnetIds : MainnetIds; - const siblingSlugs: ChainSlug[] = list.filter( - (chainSlug) => chainSlug !== chain && chains.includes(chainSlug) - ); + // const list = isTestnet(chain) ? TestnetIds : MainnetIds; + // const siblingSlugs: ChainSlug[] = list.filter( + // (chainSlug) => chainSlug !== chain && chains.includes(chainSlug) + // ); await configureExecutionManager( executionManagerVersion, addr[executionManagerVersion]!, addr[CORE_CONTRACTS.SocketBatcher], chain, - siblingSlugs, + siblings, socketSigner ); @@ -60,7 +61,7 @@ export const configureSwitchboards = async ( const integrations = addr["integrations"] ?? {}; const integrationList = Object.keys(integrations).filter((chain) => - chains.includes(parseInt(chain) as ChainSlug) + siblings.includes(parseInt(chain) as ChainSlug) ); console.log(`Configuring for ${chain}`); @@ -91,7 +92,7 @@ export const configureSwitchboards = async ( addr = await registerSwitchboards( chain, - siblingSlugs, + siblings, CORE_CONTRACTS.FastSwitchboard, IntegrationTypes.fast, addr, @@ -101,7 +102,7 @@ export const configureSwitchboards = async ( addr = await registerSwitchboards( chain, - siblingSlugs, + siblings, CORE_CONTRACTS.OptimisticSwitchboard, IntegrationTypes.optimistic, addr, diff --git a/scripts/deploy/scripts/connect.ts b/scripts/deploy/scripts/connect.ts index 56313799..20bff40d 100644 --- a/scripts/deploy/scripts/connect.ts +++ b/scripts/deploy/scripts/connect.ts @@ -18,7 +18,8 @@ import { overrides } from "../config/config"; export const connectPlugs = async ( addresses: DeploymentAddresses, - chains: ChainSlug[] + chains: ChainSlug[], + siblings: ChainSlug[] ) => { try { await Promise.all( @@ -34,15 +35,15 @@ export const connectPlugs = async ( const addr: ChainSocketAddresses = addresses[chain]!; if (!addr["integrations"]) return; - const list = isTestnet(chain) ? TestnetIds : MainnetIds; - const siblingSlugs: ChainSlug[] = list.filter( - (chainSlug) => - chainSlug !== chain && - addresses?.[chainSlug]?.["Counter"] && - chains.includes(chainSlug) - ); + // const list = isTestnet(chain) ? TestnetIds : MainnetIds; + // const siblingSlugs: ChainSlug[] = list.filter( + // (chainSlug) => + // chainSlug !== chain && + // addresses?.[chainSlug]?.["Counter"] && + // chains.includes(chainSlug) + // ); - const siblingIntegrationtype: IntegrationTypes[] = siblingSlugs.map( + const siblingIntegrationtype: IntegrationTypes[] = siblings.map( (chainSlug) => { return getDefaultIntegrationType(chain, chainSlug); } @@ -58,8 +59,8 @@ export const connectPlugs = async ( await getInstance("Socket", addr["Socket"]) ).connect(socketSigner); - for (let index = 0; index < siblingSlugs.length; index++) { - const sibling = siblingSlugs[index]; + for (let index = 0; index < siblings.length; index++) { + const sibling = siblings[index]; const siblingCounter = addresses?.[sibling]?.["Counter"]; let switchboard; try { diff --git a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts index e5e5093b..832d4ca7 100644 --- a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts +++ b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts @@ -42,4 +42,5 @@ export const batcherSupportedChainSlugs = [ ChainSlug.XLAYER, ChainSlug.MANTA_PACIFIC, ChainSlug.OPBNB, + ChainSlug.GEIST, ]; diff --git a/scripts/rpcConfig/constants/explorers.ts b/scripts/rpcConfig/constants/explorers.ts index 23f207da..c82ce7b0 100644 --- a/scripts/rpcConfig/constants/explorers.ts +++ b/scripts/rpcConfig/constants/explorers.ts @@ -21,4 +21,5 @@ export const explorers = { [ChainSlug.XLAYER]: "https://www.okx.com/web3/explorer/xlayer", [ChainSlug.MANTA_PACIFIC]: "https://pacific-explorer.manta.network/", [ChainSlug.OPBNB]: "https://opbnb.bscscan.com/", + [ChainSlug.GEIST]: "https://geist-mainnet.explorer.alchemy.com/", }; diff --git a/scripts/rpcConfig/constants/icons.ts b/scripts/rpcConfig/constants/icons.ts index 9690489d..cee51994 100644 --- a/scripts/rpcConfig/constants/icons.ts +++ b/scripts/rpcConfig/constants/icons.ts @@ -19,4 +19,5 @@ export const icons = { [ChainSlug.XLAYER]: "", [ChainSlug.MANTA_PACIFIC]: "", [ChainSlug.OPBNB]: "", + [ChainSlug.GEIST]: "", }; diff --git a/scripts/rpcConfig/constants/rpc.ts b/scripts/rpcConfig/constants/rpc.ts index 0473dae0..f79bd239 100644 --- a/scripts/rpcConfig/constants/rpc.ts +++ b/scripts/rpcConfig/constants/rpc.ts @@ -54,4 +54,5 @@ export const rpcs = { [ChainSlug.XLAYER]: checkEnvValue("XLAYER_RPC"), [ChainSlug.MANTA_PACIFIC]: checkEnvValue("MANTA_PACIFIC_RPC"), [ChainSlug.OPBNB]: checkEnvValue("OPBNB_RPC"), + [ChainSlug.GEIST]: checkEnvValue("GEIST_RPC"), }; diff --git a/scripts/rpcConfig/constants/version.ts b/scripts/rpcConfig/constants/version.ts index ba27ffcd..5bc12c4b 100644 --- a/scripts/rpcConfig/constants/version.ts +++ b/scripts/rpcConfig/constants/version.ts @@ -2,5 +2,5 @@ import { DeploymentMode } from "../../../src"; export const version = { [DeploymentMode.DEV]: "1.0.5", - [DeploymentMode.PROD]: "1.0.61", + [DeploymentMode.PROD]: "1.0.65", }; diff --git a/scripts/rpcConfig/rpcConfig.ts b/scripts/rpcConfig/rpcConfig.ts index d6c8eded..8d31d32e 100644 --- a/scripts/rpcConfig/rpcConfig.ts +++ b/scripts/rpcConfig/rpcConfig.ts @@ -62,8 +62,6 @@ const getOldEMVersionChainSlugs = (): ChainSlug[] => { if (!chainAddress.ExecutionManagerDF) chains.push(parseInt(chain) as ChainSlug); }); - - console.log(chains); } catch (error) { return [] as ChainSlug[]; } diff --git a/src/enums/arbChains.ts b/src/enums/arbChains.ts index a88dffd5..5a7a9e81 100644 --- a/src/enums/arbChains.ts +++ b/src/enums/arbChains.ts @@ -7,4 +7,5 @@ export const arbChains = [ ChainSlug.PARALLEL, ChainSlug.REYA_CRONOS, ChainSlug.REYA, + ChainSlug.GEIST, ]; diff --git a/src/enums/chainId.ts b/src/enums/chainId.ts index 959e196c..178fb381 100644 --- a/src/enums/chainId.ts +++ b/src/enums/chainId.ts @@ -50,4 +50,5 @@ export enum ChainId { XLAYER = 196, MANTA_PACIFIC = 169, OPBNB = 204, + GEIST = 63157, } diff --git a/src/enums/chainSlug.ts b/src/enums/chainSlug.ts index db01d18f..3c523c8c 100644 --- a/src/enums/chainSlug.ts +++ b/src/enums/chainSlug.ts @@ -52,4 +52,5 @@ export enum ChainSlug { XLAYER = ChainId.XLAYER, MANTA_PACIFIC = ChainId.MANTA_PACIFIC, OPBNB = ChainId.OPBNB, + GEIST = ChainId.GEIST, } diff --git a/src/enums/chainSlugToHardhatChainName.ts b/src/enums/chainSlugToHardhatChainName.ts index 07b4847e..a7c69003 100644 --- a/src/enums/chainSlugToHardhatChainName.ts +++ b/src/enums/chainSlugToHardhatChainName.ts @@ -53,4 +53,5 @@ export const chainSlugToHardhatChainName = { [ChainSlug.XLAYER]: [HardhatChainName.XLAYER], [ChainSlug.MANTA_PACIFIC]: [HardhatChainName.MANTA_PACIFIC], [ChainSlug.OPBNB]: [HardhatChainName.OPBNB], + [ChainSlug.GEIST]: [HardhatChainName.GEIST], }; diff --git a/src/enums/chainSlugToId.ts b/src/enums/chainSlugToId.ts index d09c56a9..01af63c6 100644 --- a/src/enums/chainSlugToId.ts +++ b/src/enums/chainSlugToId.ts @@ -53,4 +53,5 @@ export const ChainSlugToId = { [ChainSlug.XLAYER]: ChainId.XLAYER, [ChainSlug.MANTA_PACIFIC]: ChainId.MANTA_PACIFIC, [ChainSlug.OPBNB]: ChainId.OPBNB, + [ChainSlug.GEIST]: ChainId.GEIST, }; diff --git a/src/enums/chainSlugToKey.ts b/src/enums/chainSlugToKey.ts index b86aa3b3..346e4ea3 100644 --- a/src/enums/chainSlugToKey.ts +++ b/src/enums/chainSlugToKey.ts @@ -53,4 +53,5 @@ export const ChainSlugToKey = { [ChainSlug.XLAYER]: HardhatChainName.XLAYER, [ChainSlug.MANTA_PACIFIC]: HardhatChainName.MANTA_PACIFIC, [ChainSlug.OPBNB]: HardhatChainName.OPBNB, + [ChainSlug.GEIST]: HardhatChainName.GEIST, }; diff --git a/src/enums/currency.ts b/src/enums/currency.ts index b46ef354..57afb022 100644 --- a/src/enums/currency.ts +++ b/src/enums/currency.ts @@ -16,4 +16,5 @@ export const Currency = { [ChainSlug.AVALANCHE]: NativeTokens["avalanche-2"], [ChainSlug.XLAYER]: NativeTokens["okb"], [ChainSlug.OPBNB]: NativeTokens["binancecoin"], + [ChainSlug.GEIST]: NativeTokens["aavegotchi"], }; diff --git a/src/enums/hardhatChainName.ts b/src/enums/hardhatChainName.ts index fd5a3af7..eb9ef825 100644 --- a/src/enums/hardhatChainName.ts +++ b/src/enums/hardhatChainName.ts @@ -50,4 +50,5 @@ export enum HardhatChainName { XLAYER = "xlayer", MANTA_PACIFIC = "manta_pacific", OPBNB = "opbnb", + GEIST = "geist", } diff --git a/src/enums/hardhatChainNameToSlug.ts b/src/enums/hardhatChainNameToSlug.ts index f7d48d25..3e83b0fa 100644 --- a/src/enums/hardhatChainNameToSlug.ts +++ b/src/enums/hardhatChainNameToSlug.ts @@ -53,4 +53,5 @@ export const hardhatChainNameToSlug = { [HardhatChainName.XLAYER]: ChainSlug.XLAYER, [HardhatChainName.MANTA_PACIFIC]: ChainSlug.MANTA_PACIFIC, [HardhatChainName.OPBNB]: ChainSlug.OPBNB, + [HardhatChainName.GEIST]: ChainSlug.GEIST, }; diff --git a/src/enums/mainnetIds.ts b/src/enums/mainnetIds.ts index 5c5c1103..eaaeced7 100644 --- a/src/enums/mainnetIds.ts +++ b/src/enums/mainnetIds.ts @@ -28,4 +28,5 @@ export const MainnetIds: ChainSlug[] = [ ChainSlug.XLAYER, ChainSlug.MANTA_PACIFIC, ChainSlug.OPBNB, + ChainSlug.GEIST, ]; diff --git a/src/enums/native-tokens.ts b/src/enums/native-tokens.ts index c059d89a..1e70d1bf 100644 --- a/src/enums/native-tokens.ts +++ b/src/enums/native-tokens.ts @@ -11,4 +11,5 @@ export enum NativeTokens { "dai" = "dai", "avalanche-2" = "avalanche-2", "okb" = "okb", + "aavegotchi" = "aavegotchi", } From c72fb95cde9a3df4e850c0aa1113f3dcf84d045f Mon Sep 17 00:00:00 2001 From: arthcp Date: Tue, 5 Nov 2024 19:36:43 +0530 Subject: [PATCH 3/6] feat: syndr disabled --- scripts/rpcConfig/constants/batcherSupportedChainSlug.ts | 4 ++-- scripts/rpcConfig/constants/version.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts index 832d4ca7..08c10b28 100644 --- a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts +++ b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts @@ -21,7 +21,7 @@ export const batcherSupportedChainSlugs = [ ChainSlug.BASE, ChainSlug.MODE, ChainSlug.REYA_CRONOS, - ChainSlug.SYNDR_SEPOLIA_L3, + // ChainSlug.SYNDR_SEPOLIA_L3, ChainSlug.POLYNOMIAL_TESTNET, // ChainSlug.BOB, ChainSlug.KINTO, @@ -31,7 +31,7 @@ export const batcherSupportedChainSlugs = [ ChainSlug.BLAST, // ChainSlug.BSC_TESTNET, ChainSlug.POLYNOMIAL, - ChainSlug.SYNDR, + // ChainSlug.SYNDR, // ChainSlug.NEOX_TESTNET, ChainSlug.NEOX_T4_TESTNET, ChainSlug.NEOX, diff --git a/scripts/rpcConfig/constants/version.ts b/scripts/rpcConfig/constants/version.ts index 5bc12c4b..b286234a 100644 --- a/scripts/rpcConfig/constants/version.ts +++ b/scripts/rpcConfig/constants/version.ts @@ -2,5 +2,5 @@ import { DeploymentMode } from "../../../src"; export const version = { [DeploymentMode.DEV]: "1.0.5", - [DeploymentMode.PROD]: "1.0.65", + [DeploymentMode.PROD]: "1.0.66", }; From 16661e289bbd519c37ec72ed1e228df17eeace4f Mon Sep 17 00:00:00 2001 From: arthcp Date: Thu, 7 Nov 2024 17:27:59 +0530 Subject: [PATCH 4/6] feat: reenable sync chains --- scripts/rpcConfig/constants/batcherSupportedChainSlug.ts | 4 ++-- scripts/rpcConfig/constants/version.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts index 08c10b28..832d4ca7 100644 --- a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts +++ b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts @@ -21,7 +21,7 @@ export const batcherSupportedChainSlugs = [ ChainSlug.BASE, ChainSlug.MODE, ChainSlug.REYA_CRONOS, - // ChainSlug.SYNDR_SEPOLIA_L3, + ChainSlug.SYNDR_SEPOLIA_L3, ChainSlug.POLYNOMIAL_TESTNET, // ChainSlug.BOB, ChainSlug.KINTO, @@ -31,7 +31,7 @@ export const batcherSupportedChainSlugs = [ ChainSlug.BLAST, // ChainSlug.BSC_TESTNET, ChainSlug.POLYNOMIAL, - // ChainSlug.SYNDR, + ChainSlug.SYNDR, // ChainSlug.NEOX_TESTNET, ChainSlug.NEOX_T4_TESTNET, ChainSlug.NEOX, diff --git a/scripts/rpcConfig/constants/version.ts b/scripts/rpcConfig/constants/version.ts index b286234a..9fb1e2af 100644 --- a/scripts/rpcConfig/constants/version.ts +++ b/scripts/rpcConfig/constants/version.ts @@ -2,5 +2,5 @@ import { DeploymentMode } from "../../../src"; export const version = { [DeploymentMode.DEV]: "1.0.5", - [DeploymentMode.PROD]: "1.0.66", + [DeploymentMode.PROD]: "1.0.67", }; From 6dfff21194819df64fc7e41c25315943d5e95509 Mon Sep 17 00:00:00 2001 From: Ameesha Agrawal Date: Tue, 12 Nov 2024 18:04:34 +0530 Subject: [PATCH 5/6] feat: polygon amoy and polter testnets --- .env.example | 4 ++++ scripts/rpcConfig/constants/batcherSupportedChainSlug.ts | 2 ++ scripts/rpcConfig/constants/explorers.ts | 2 ++ scripts/rpcConfig/constants/icons.ts | 2 ++ scripts/rpcConfig/constants/rpc.ts | 2 ++ scripts/rpcConfig/constants/version.ts | 2 +- scripts/rpcConfig/rpcConfig.ts | 2 +- src/enums/chainId.ts | 2 ++ src/enums/chainSlug.ts | 2 ++ src/enums/chainSlugToHardhatChainName.ts | 2 ++ src/enums/chainSlugToId.ts | 2 ++ src/enums/chainSlugToKey.ts | 2 ++ src/enums/currency.ts | 2 ++ src/enums/ethLikeChains.ts | 1 + src/enums/hardhatChainName.ts | 2 ++ src/enums/hardhatChainNameToSlug.ts | 2 ++ src/enums/native-tokens.ts | 1 + src/enums/opStackChains.ts | 1 + src/enums/testnetIds.ts | 2 ++ 19 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 089d240e..32a2f622 100644 --- a/.env.example +++ b/.env.example @@ -103,3 +103,7 @@ AVALANCHE_RPC=' ' XLAYER_RPC=' ' MANTA_PACIFIC_RPC=' ' + +POLTER_TESTNET_RPC=' ' + +POLYGON_AMOY_RPC=' ' diff --git a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts index b68fff8d..4de56eae 100644 --- a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts +++ b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts @@ -41,4 +41,6 @@ export const batcherSupportedChainSlugs = [ ChainSlug.AVALANCHE, ChainSlug.XLAYER, ChainSlug.MANTA_PACIFIC, + ChainSlug.POLTER_TESTNET, + ChainSlug.POLYGON_AMOY, ]; diff --git a/scripts/rpcConfig/constants/explorers.ts b/scripts/rpcConfig/constants/explorers.ts index c6f7649a..a9aa8e9c 100644 --- a/scripts/rpcConfig/constants/explorers.ts +++ b/scripts/rpcConfig/constants/explorers.ts @@ -20,4 +20,6 @@ export const explorers = { [ChainSlug.AVALANCHE]: "https://snowtrace.io/", [ChainSlug.XLAYER]: "https://www.okx.com/web3/explorer/xlayer", [ChainSlug.MANTA_PACIFIC]: "https://pacific-explorer.manta.network/", + [ChainSlug.POLTER_TESTNET]: "https://polter-testnet.explorer.alchemy.com/", + [ChainSlug.POLYGON_AMOY]: "https://amoy.polygonscan.com/", }; diff --git a/scripts/rpcConfig/constants/icons.ts b/scripts/rpcConfig/constants/icons.ts index 31aa0021..ddfc10e0 100644 --- a/scripts/rpcConfig/constants/icons.ts +++ b/scripts/rpcConfig/constants/icons.ts @@ -18,4 +18,6 @@ export const icons = { [ChainSlug.AVALANCHE]: "", [ChainSlug.XLAYER]: "", [ChainSlug.MANTA_PACIFIC]: "", + [ChainSlug.POLTER_TESTNET]: "", + [ChainSlug.POLYGON_AMOY]: "", }; diff --git a/scripts/rpcConfig/constants/rpc.ts b/scripts/rpcConfig/constants/rpc.ts index 2e7dbca8..cef2f2c3 100644 --- a/scripts/rpcConfig/constants/rpc.ts +++ b/scripts/rpcConfig/constants/rpc.ts @@ -53,4 +53,6 @@ export const rpcs = { [ChainSlug.AVALANCHE]: checkEnvValue("AVALANCHE_RPC"), [ChainSlug.XLAYER]: checkEnvValue("XLAYER_RPC"), [ChainSlug.MANTA_PACIFIC]: checkEnvValue("MANTA_PACIFIC_RPC"), + [ChainSlug.POLTER_TESTNET]: checkEnvValue("POLTER_TESTNET_RPC"), + [ChainSlug.POLYGON_AMOY]: checkEnvValue("POLYGON_AMOY_RPC"), }; diff --git a/scripts/rpcConfig/constants/version.ts b/scripts/rpcConfig/constants/version.ts index 55cfd988..ca99e550 100644 --- a/scripts/rpcConfig/constants/version.ts +++ b/scripts/rpcConfig/constants/version.ts @@ -2,5 +2,5 @@ import { DeploymentMode } from "../../../src"; export const version = { [DeploymentMode.DEV]: "1.0.5", - [DeploymentMode.PROD]: "1.0.60", + [DeploymentMode.PROD]: "1.0.62", }; diff --git a/scripts/rpcConfig/rpcConfig.ts b/scripts/rpcConfig/rpcConfig.ts index d6c8eded..c23b4ecb 100644 --- a/scripts/rpcConfig/rpcConfig.ts +++ b/scripts/rpcConfig/rpcConfig.ts @@ -92,7 +92,7 @@ const getChainData = async ( chainName: chainSlugToHardhatChainName[chainSlug].toString(), blockNumber: getBlockNumber(deploymentMode, chainSlug), siblings: getSiblings(deploymentMode, chainSlug), - chainTxData: await getChainTxData(chainSlug, txData), + chainTxData: getChainTxData(chainSlug, txData), nativeToken: getCurrency(chainSlug), chainType: getChainType(chainSlug), reSyncInterval: getReSyncInterval(chainSlug), diff --git a/src/enums/chainId.ts b/src/enums/chainId.ts index d0cd6b7d..65baf72c 100644 --- a/src/enums/chainId.ts +++ b/src/enums/chainId.ts @@ -49,4 +49,6 @@ export enum ChainId { AVALANCHE = 43114, XLAYER = 196, MANTA_PACIFIC = 169, + POLTER_TESTNET = 631571, + POLYGON_AMOY = 80002, } diff --git a/src/enums/chainSlug.ts b/src/enums/chainSlug.ts index af77c9d3..fb8c094f 100644 --- a/src/enums/chainSlug.ts +++ b/src/enums/chainSlug.ts @@ -51,4 +51,6 @@ export enum ChainSlug { AVALANCHE = ChainId.AVALANCHE, XLAYER = ChainId.XLAYER, MANTA_PACIFIC = ChainId.MANTA_PACIFIC, + POLTER_TESTNET = ChainId.POLTER_TESTNET, + POLYGON_AMOY = ChainId.POLYGON_AMOY, } diff --git a/src/enums/chainSlugToHardhatChainName.ts b/src/enums/chainSlugToHardhatChainName.ts index 1bbbf92a..c6445538 100644 --- a/src/enums/chainSlugToHardhatChainName.ts +++ b/src/enums/chainSlugToHardhatChainName.ts @@ -52,4 +52,6 @@ export const chainSlugToHardhatChainName = { [ChainSlug.AVALANCHE]: [HardhatChainName.AVALANCHE], [ChainSlug.XLAYER]: [HardhatChainName.XLAYER], [ChainSlug.MANTA_PACIFIC]: [HardhatChainName.MANTA_PACIFIC], + [ChainSlug.POLTER_TESTNET]: [HardhatChainName.POLTER_TESTNET], + [ChainSlug.POLYGON_AMOY]: [HardhatChainName.POLYGON_AMOY], }; diff --git a/src/enums/chainSlugToId.ts b/src/enums/chainSlugToId.ts index d1d5846d..cf176317 100644 --- a/src/enums/chainSlugToId.ts +++ b/src/enums/chainSlugToId.ts @@ -52,4 +52,6 @@ export const ChainSlugToId = { [ChainSlug.AVALANCHE]: ChainId.AVALANCHE, [ChainSlug.XLAYER]: ChainId.XLAYER, [ChainSlug.MANTA_PACIFIC]: ChainId.MANTA_PACIFIC, + [ChainSlug.POLTER_TESTNET]: ChainId.POLTER_TESTNET, + [ChainSlug.POLYGON_AMOY]: ChainId.POLYGON_AMOY, }; diff --git a/src/enums/chainSlugToKey.ts b/src/enums/chainSlugToKey.ts index 684e25bd..50dd7a45 100644 --- a/src/enums/chainSlugToKey.ts +++ b/src/enums/chainSlugToKey.ts @@ -52,4 +52,6 @@ export const ChainSlugToKey = { [ChainSlug.AVALANCHE]: HardhatChainName.AVALANCHE, [ChainSlug.XLAYER]: HardhatChainName.XLAYER, [ChainSlug.MANTA_PACIFIC]: HardhatChainName.MANTA_PACIFIC, + [ChainSlug.POLTER_TESTNET]: HardhatChainName.POLTER_TESTNET, + [ChainSlug.POLYGON_AMOY]: HardhatChainName.POLYGON_AMOY, }; diff --git a/src/enums/currency.ts b/src/enums/currency.ts index f3162213..b31b31e5 100644 --- a/src/enums/currency.ts +++ b/src/enums/currency.ts @@ -15,4 +15,6 @@ export const Currency = { [ChainSlug.GNOSIS]: NativeTokens["dai"], [ChainSlug.AVALANCHE]: NativeTokens["avalanche-2"], [ChainSlug.XLAYER]: NativeTokens["okb"], + [ChainSlug.POLTER_TESTNET]: NativeTokens["aavegotchi"], + [ChainSlug.POLYGON_AMOY]: NativeTokens["matic-network"], }; diff --git a/src/enums/ethLikeChains.ts b/src/enums/ethLikeChains.ts index b21fefc2..db0d14b6 100644 --- a/src/enums/ethLikeChains.ts +++ b/src/enums/ethLikeChains.ts @@ -23,4 +23,5 @@ export const ethLikeChains = [ ChainSlug.LINEA, ChainSlug.ZKEVM, ChainSlug.AVALANCHE, + ChainSlug.POLYGON_AMOY, ]; diff --git a/src/enums/hardhatChainName.ts b/src/enums/hardhatChainName.ts index f55b81d8..3be7496e 100644 --- a/src/enums/hardhatChainName.ts +++ b/src/enums/hardhatChainName.ts @@ -49,4 +49,6 @@ export enum HardhatChainName { AVALANCHE = "avalanche", XLAYER = "xlayer", MANTA_PACIFIC = "manta_pacific", + POLTER_TESTNET = "polter_testnet", + POLYGON_AMOY = "polygon_amoy", } diff --git a/src/enums/hardhatChainNameToSlug.ts b/src/enums/hardhatChainNameToSlug.ts index 418f7ee6..27a21406 100644 --- a/src/enums/hardhatChainNameToSlug.ts +++ b/src/enums/hardhatChainNameToSlug.ts @@ -52,4 +52,6 @@ export const hardhatChainNameToSlug = { [HardhatChainName.AVALANCHE]: ChainSlug.AVALANCHE, [HardhatChainName.XLAYER]: ChainSlug.XLAYER, [HardhatChainName.MANTA_PACIFIC]: ChainSlug.MANTA_PACIFIC, + [HardhatChainName.POLTER_TESTNET]: ChainSlug.POLTER_TESTNET, + [HardhatChainName.POLYGON_AMOY]: ChainSlug.POLYGON_AMOY, }; diff --git a/src/enums/native-tokens.ts b/src/enums/native-tokens.ts index c059d89a..1e70d1bf 100644 --- a/src/enums/native-tokens.ts +++ b/src/enums/native-tokens.ts @@ -11,4 +11,5 @@ export enum NativeTokens { "dai" = "dai", "avalanche-2" = "avalanche-2", "okb" = "okb", + "aavegotchi" = "aavegotchi", } diff --git a/src/enums/opStackChains.ts b/src/enums/opStackChains.ts index 61c2a7af..92a76691 100644 --- a/src/enums/opStackChains.ts +++ b/src/enums/opStackChains.ts @@ -18,4 +18,5 @@ export const opStackL2Chain = [ ChainSlug.BLAST, ChainSlug.POLYNOMIAL, ChainSlug.MANTA_PACIFIC, + ChainSlug.POLTER_TESTNET, ]; diff --git a/src/enums/testnetIds.ts b/src/enums/testnetIds.ts index 20870b4a..d2e9ca07 100644 --- a/src/enums/testnetIds.ts +++ b/src/enums/testnetIds.ts @@ -24,4 +24,6 @@ export const TestnetIds: ChainSlug[] = [ ChainSlug.BSC_TESTNET, ChainSlug.NEOX_TESTNET, ChainSlug.NEOX_T4_TESTNET, + ChainSlug.POLTER_TESTNET, + ChainSlug.POLYGON_AMOY, ]; From ca21c8ec5271566bcc0539a9b65b9d410f993caa Mon Sep 17 00:00:00 2001 From: Ameesha Agrawal Date: Tue, 12 Nov 2024 18:19:55 +0530 Subject: [PATCH 6/6] + @socket.tech/dl-core@2.33.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a16dc412..cee1d393 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@socket.tech/dl-core", "license": "UNLICENSED", - "version": "2.32.0", + "version": "2.33.0", "description": "Smart contracts for socket data layer.", "main": "./dist/src/index.js", "types": "./dist/src/index.d.ts",