From b11272a327396ab65420842315a31b6367e0a352 Mon Sep 17 00:00:00 2001 From: arthcp Date: Mon, 16 Dec 2024 19:48:03 +0400 Subject: [PATCH] feat: sonic --- .env.example | 2 + deployments/prod_addresses.json | 355 ++++++++++++++++++ deployments/prod_verification.json | 125 ++++++ hardhat.config.ts | 10 + package.json | 2 +- .../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 +- 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/ethLikeChains.ts | 1 + src/enums/hardhatChainName.ts | 1 + src/enums/hardhatChainNameToSlug.ts | 1 + src/enums/mainnetIds.ts | 1 + src/enums/native-tokens.ts | 1 + 21 files changed, 509 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index df3659dc..9ae293d3 100644 --- a/.env.example +++ b/.env.example @@ -109,3 +109,5 @@ ZKSYNC_RPC=' ' ARENA_Z_RPC=' ' INK_RPC=' ' + +SONIC_RPC=' ' diff --git a/deployments/prod_addresses.json b/deployments/prod_addresses.json index 1a42c7d7..50042131 100644 --- a/deployments/prod_addresses.json +++ b/deployments/prod_addresses.json @@ -67,6 +67,18 @@ "switchboard": "0xEaa15Fd42D68b8334a3BB1E9bF8cA85BaBE83790" } }, + "146": { + "FAST": { + "capacitor": "0x07D8e9E2838D93E4e615573DFc91eDD1724DC68E", + "decapacitor": "0x60ED88d40CbebeE17769374E3BDF9821AdD6D2A5", + "switchboard": "0xD5a83a40F262E2247e6566171f9ADc76b745F5cD" + }, + "OPTIMISTIC": { + "capacitor": "0x98da37d34b95e55bcbb259D0474372e2e2bcfA6d", + "decapacitor": "0x99415bd6a7F9B8F0be28154777D65F31705b6059", + "switchboard": "0xEaa15Fd42D68b8334a3BB1E9bF8cA85BaBE83790" + } + }, "169": { "FAST": { "capacitor": "0x0eBA350db3271AE4Fd39867561755f49758De8cA", @@ -556,6 +568,18 @@ "switchboard": "0x09A6e77912a6bcFc3abfDfb841A85380Bb2A8B97" } }, + "146": { + "FAST": { + "capacitor": "0xDA07843bBbe4D602978b49fe405C5519FBAa8632", + "decapacitor": "0x1f5b0C3f28Cb8530d20f5653b4933325dfC0575C", + "switchboard": "0x09A6e77912a6bcFc3abfDfb841A85380Bb2A8B97" + }, + "OPTIMISTIC": { + "capacitor": "0xE40aEe55d89ED6813d0154191782d7b9ba8f499a", + "decapacitor": "0x193688C82Bbfe3d80176214E8dD45E864F153f31", + "switchboard": "0xb113d72896d4874111AF00c9499b5a64e9f1e3f4" + } + }, "169": { "FAST": { "capacitor": "0x3421FC33F18C72001DC11D40f8acedF101E160Bb", @@ -912,6 +936,18 @@ "switchboard": "0xCedce2e52aa6551bC407f640D8Bd9179b528347C" } }, + "146": { + "FAST": { + "capacitor": "0x7E5d1939FA70d221a3a218265Af3AA3D7914497D", + "decapacitor": "0x4Ac8bce4a41011A25d6D54871C435DCa2F1b120E", + "switchboard": "0xCedce2e52aa6551bC407f640D8Bd9179b528347C" + }, + "OPTIMISTIC": { + "capacitor": "0x5Ba774048DA629fbFcd16cd221d7ff1B87F177FF", + "decapacitor": "0x02FA9710C72709DA2cE8E2A18ACc0F625de9130e", + "switchboard": "0x5490aBcD9949833FB68e4d222ee68dc225881c25" + } + }, "169": { "FAST": { "capacitor": "0xcfB987a4AAe35b5a12c8E09614A8d92dF6707d3C", @@ -1232,6 +1268,18 @@ "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" } }, + "146": { + "FAST": { + "capacitor": "0xf955965c803F65b1AdE2A99630Fd36dec3582CF3", + "decapacitor": "0xC83D8882fBF5c38Cd33286b85184C154626baDF9", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x66FB8535e6349d18940a1c37bdf88b00F30bfFC7", + "decapacitor": "0x4FeC0DcDb2dA6e6d81CA95bE19d9e40E7002c9EF", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, "169": { "FAST": { "capacitor": "0xa28717c161332b86851ACB8961E4D605D358A56E", @@ -1427,6 +1475,18 @@ "switchboard": "0xeF7C79DF9c9AA6BC5d1d4ae308907e9B6a6B4372" } }, + "146": { + "FAST": { + "capacitor": "0xB5d93C63d2278330c711F5eE9D12a19e06054E86", + "decapacitor": "0x31F565c6C44A7568f394971682862a875bdb15F3", + "switchboard": "0x33918BBF9f5269d90b8c0AbF1Fd1134C827bA445" + }, + "OPTIMISTIC": { + "capacitor": "0x0a005530FaA4671f90cD28FE7166E0eD8bF05aC2", + "decapacitor": "0xD83356aD0883f7EbA491b2F568F584E49Ea8602e", + "switchboard": "0xeF7C79DF9c9AA6BC5d1d4ae308907e9B6a6B4372" + } + }, "169": { "FAST": { "capacitor": "0x994F8bFD59bE7F325254a8a5CD3726b1465f2710", @@ -1679,6 +1739,193 @@ "CapacitorSimulator": "0x76fA03B93Ac9b48a66C38C6075C200b750E21923", "ExecutionManagerDF": "0x5a0e01ED2be962a16cF56DFb6C3F252adED4483c" }, + "146": { + "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": 483402, + "integrations": { + "1": { + "FAST": { + "capacitor": "0x19405671F9F14a81a1112ac890E85E321a79426D", + "decapacitor": "0xFE82774f00Ce859Aad948e71D739C417Ae85B1fd", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xd9DB6A7Ff0175c68053542Dc0714967f316c3923", + "decapacitor": "0x4E04BC370629D101AAB69546a12d4D98b9d369aF", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "10": { + "FAST": { + "capacitor": "0xfDab5AD9dD96deb42f093510641a325dB65cAD10", + "decapacitor": "0xE16b17BC461C3EDF6c351c1a27FB42851F085D19", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xe056cD2C8d6172259CEf4a6bCfBa51430C930EA4", + "decapacitor": "0x9915a72206BB6f57d694d975146694C4d33aD4b1", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "56": { + "FAST": { + "capacitor": "0xe73B81e0582110A3e1e84eD48986CF8365C67F5c", + "decapacitor": "0x2e544869aD700F70E47597Aa065e562deAFcA241", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x8490EA934cC935db5252bb98D99099acBE6e1913", + "decapacitor": "0x0E26F08dE9B0BB34C483768fe5809808780Aad96", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "100": { + "FAST": { + "capacitor": "0xcf4136C6537D6e4F2b17a0035663dCDD3C08F746", + "decapacitor": "0x949c6C52A539BAD93D2a31EF4EB923fd8a09c660", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x07229718F47457B61bd6859d0C818a1A33394d76", + "decapacitor": "0x3C2b3bCB80ABC57DF4Cf06f1991684308513d72c", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "137": { + "FAST": { + "capacitor": "0xcacBE8Caaa88003544BA8d6Ebf63af256Cba9b93", + "decapacitor": "0x68e39A99221087D3585fA4493911A60683AbE32d", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xB36c60cCdc2022DB4f6e4f917E9b28e473B0402b", + "decapacitor": "0xE187cc0847880f7dEBDf00F8C5d7F001175F3445", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "324": { + "FAST": { + "capacitor": "0xCF029dbbFCeBf82C981B3Ffe78CCB38bbC57a6FC", + "decapacitor": "0xe9BE8937aDf6A92CBF464b2904097c71E480f925", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xdc666E0C861140ed69ecF5A3a32efefFb44C5854", + "decapacitor": "0xdfAbC6a129d351d0dF0858bB7F66ba4554Bcdfb5", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "1101": { + "FAST": { + "capacitor": "0xdF24b92Ad07D39344B1abA69a8acbb5DEa5BA08a", + "decapacitor": "0x03bCf41D18Cd8AA7D4b13DCc8574150329e6D130", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xa28717c161332b86851ACB8961E4D605D358A56E", + "decapacitor": "0x865dE5f98c4c1d21C18DA77560443646a4c6760D", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "5000": { + "FAST": { + "capacitor": "0xF6f648CF8164Dd7Ec04C0dba8fc91e7b66A154C0", + "decapacitor": "0xc014b5C95B790b35acbeE3E4D7807Bd556FddebE", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x77CDB3441D1EB0a98e36b8c96eDD26fB788Db502", + "decapacitor": "0xdF5Be240946f63CA107E62076B5B49148511A326", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "8453": { + "FAST": { + "capacitor": "0x9f72CAEAccc292977A0c134693AB5F63fe513202", + "decapacitor": "0x86917a199668155A7Aa1dA833499E5646c00d9dA", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x980791b85F392B2Dc11e0D75eF7f15B054F00Da1", + "decapacitor": "0xe15771e88A74Fc9E23F4d96AcAC572980FfdCf09", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "42161": { + "FAST": { + "capacitor": "0xf0C835C640715Dc5363447bF7233078991889fC8", + "decapacitor": "0x2eF42ec2c355E6E5D296Ef888aBB7904386c0B94", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x977A0B70f269CFC4576fCF38bEcafdfc9D0a0537", + "decapacitor": "0x3e02B09a328B6508C5084ff70d354aEe873a2f6D", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "43114": { + "FAST": { + "capacitor": "0x938DbeA077a5deB6a7680EBdCC85bB4bA216Cb52", + "decapacitor": "0x018FD84FFcaD3401C3465dFA7E8017218Fc55Dc9", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xa41C5493e7e433CE6c3348d3b2cd6F0a41B7989F", + "decapacitor": "0x2E2Af879435D6f9F7d6b129FDA8a8Ed4e53AE9Ff", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "57073": { + "FAST": { + "capacitor": "0x441432a93E38BdB82f71684359E59AE49c0D9a79", + "decapacitor": "0x9D44AF8a4a0fD8D86Aaa584394845a86B31007f3", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x82c25eEAFd9E4628Ae596C592E5A2101E1B95eBE", + "decapacitor": "0xF63518C49693dFB5cdcB988C6640070E13F7fD25", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "59144": { + "FAST": { + "capacitor": "0x5924cE286850adEC8ddC9f64E8e45900006D76dB", + "decapacitor": "0x2C806f22CA1CA75Fe8D7D6cEd53B199f23D43fCc", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x29017d72206Eb0Be053C565E20b54857289AEF68", + "decapacitor": "0x783c2Da3a07A29f2fb79801356F14d95F33679Dd", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, + "543210": { + "FAST": { + "capacitor": "0xb5B1514a94584864e4b76eD0ea6C70363A8F8e52", + "decapacitor": "0x8946Ccfc19c4F7b230cA9D627aFF83A183c7fD9a", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xD2CA65d78d957237768900bf196Ba571873AFDd3", + "decapacitor": "0xEc2bd1356C3DD05553f499aF685e11245b6e3217", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + } + } + }, "169": { "SignatureVerifier": "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead", "Hasher": "0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3", @@ -2089,6 +2336,18 @@ "switchboard": "0x8b1AC14d81Bdd82ceb58591549C4c1161de138F8" } }, + "146": { + "FAST": { + "capacitor": "0x193EDe0650f87db7A8731ef27da60C6224b34324", + "decapacitor": "0x112E46d5aCe781ea08DB2bE5D639AEc993221c4C", + "switchboard": "0x3153a8451E1Bb2d606e9df11EE082CFF99F88b51" + }, + "OPTIMISTIC": { + "capacitor": "0x48b612Df6dcFF067b728C049224f59418F2D8D85", + "decapacitor": "0x4C7c911444AcB50cD2e58e4946a76541357AA959", + "switchboard": "0x8b1AC14d81Bdd82ceb58591549C4c1161de138F8" + } + }, "1101": { "FAST": { "capacitor": "0xeE1054786728e573D32b52b43a99Fd1c6A2823b2", @@ -3021,6 +3280,18 @@ "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" } }, + "146": { + "FAST": { + "capacitor": "0xf955965c803F65b1AdE2A99630Fd36dec3582CF3", + "decapacitor": "0xC83D8882fBF5c38Cd33286b85184C154626baDF9", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0x66FB8535e6349d18940a1c37bdf88b00F30bfFC7", + "decapacitor": "0x4FeC0DcDb2dA6e6d81CA95bE19d9e40E7002c9EF", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, "169": { "FAST": { "capacitor": "0xa28717c161332b86851ACB8961E4D605D358A56E", @@ -3332,6 +3603,18 @@ "switchboard": "0x57D1Aeafb6a2b7Bd4954e47a556622161A8c0A65" } }, + "146": { + "FAST": { + "capacitor": "0x581a3529Eb3Ac98748704ae744060193829bd0B4", + "decapacitor": "0x0dad0024d9EE806E60525a4Ba9036563801d60C9", + "switchboard": "0x8f9EaEe5c5df888aBA3c1Ab19689a0660d042c6d" + }, + "OPTIMISTIC": { + "capacitor": "0xbB2B88Dc42383aCa919cB90b1EBf6A2b4D60B6EF", + "decapacitor": "0xA9a85aCF16E0c42A0473b2f4DcdBB921476907Ea", + "switchboard": "0x57D1Aeafb6a2b7Bd4954e47a556622161A8c0A65" + } + }, "169": { "FAST": { "capacitor": "0x621aC7525EEf3A025A9e4105aa60268a0D755dDe", @@ -3734,6 +4017,18 @@ "switchboard": "0x15A55294B7278260DdfFC659Fb39a401871EeE34" } }, + "146": { + "FAST": { + "capacitor": "0xBCBEC262540031BBcf0c7b11006D4588fFd8f0e7", + "decapacitor": "0x8A9C0087a4F53748cDfce2a86ccb924E11E148D8", + "switchboard": "0x957301825Dc21d4A92919C9E72dC9E6C6a29e7f8" + }, + "OPTIMISTIC": { + "capacitor": "0x7ED2270cEBedce31104A1F52117A31eF84f6D041", + "decapacitor": "0x8A004e80bF3ca5C8Cf145bFE8f07E56Ec8E11a3c", + "switchboard": "0x15A55294B7278260DdfFC659Fb39a401871EeE34" + } + }, "169": { "FAST": { "capacitor": "0x57DE7DaFd70f30DeB314b8353AF901596E1f0745", @@ -4219,6 +4514,18 @@ "switchboard": "0xd5e829827F665c42326EAF68Da3360bd59b42f2f" } }, + "146": { + "FAST": { + "capacitor": "0x161E7067c83F9febbA00F2378A0aaA49B0670f15", + "decapacitor": "0xDFc193b7BccE24F7b3B761CcED9233ccE827669c", + "switchboard": "0xd5e829827F665c42326EAF68Da3360bd59b42f2f" + }, + "OPTIMISTIC": { + "capacitor": "0x0116752cD9788F55F03D9ffec4b532d7808d69B2", + "decapacitor": "0x01F764ca8514CaBadEb380148D66dbA1d3e65921", + "switchboard": "0x1812ff6bd726934f18159164e2927B34949B16a8" + } + }, "169": { "FAST": { "capacitor": "0x250EC5a70a23a42bcFfa3f33cA176B9DBB549D9E", @@ -4584,6 +4891,18 @@ "switchboard": "0x525a6489a1df5fF1ae077fAf628E43b7F52298eF" } }, + "146": { + "FAST": { + "capacitor": "0xC98BB57B33B213BBc1C22F0141717DDe76Cd7a04", + "decapacitor": "0xBDf8F0f97F058439848A7a0D00Aa5b095D3a4f89", + "switchboard": "0x657e72B305Dc1c41e98d9efC2350EC10e3c83E21" + }, + "OPTIMISTIC": { + "capacitor": "0x6d4e9A9C63f3d7ce90D6925dd83dDa2703A35553", + "decapacitor": "0xcB39704920eA0Bc1CCC1F830db94f1C19134069e", + "switchboard": "0x525a6489a1df5fF1ae077fAf628E43b7F52298eF" + } + }, "324": { "FAST": { "capacitor": "0xEb48b07EcD84f20AcA861b45678E7327C0b13853", @@ -4846,6 +5165,18 @@ "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" } }, + "146": { + "FAST": { + "capacitor": "0x29017d72206Eb0Be053C565E20b54857289AEF68", + "decapacitor": "0x783c2Da3a07A29f2fb79801356F14d95F33679Dd", + "switchboard": "0xb4Ef469c9d8317851270346070dA0ecE24616E6b" + }, + "OPTIMISTIC": { + "capacitor": "0xD2CA65d78d957237768900bf196Ba571873AFDd3", + "decapacitor": "0xEc2bd1356C3DD05553f499aF685e11245b6e3217", + "switchboard": "0x0CC93650bF4D98237628DACf87f94E443956D8dF" + } + }, "324": { "FAST": { "capacitor": "0xCF029dbbFCeBf82C981B3Ffe78CCB38bbC57a6FC", @@ -5021,6 +5352,18 @@ "switchboard": "0x332901149A390D334498008449089f05fa273C3B" } }, + "146": { + "FAST": { + "capacitor": "0xa316d8f8755E3102AF78d04CFCAa8F45Cf077C6C", + "decapacitor": "0xB280650A4b929294c9ac251Cdd08f818F4712faB", + "switchboard": "0x497D0FA570c128830a3aA3C06582a94af2330A18" + }, + "OPTIMISTIC": { + "capacitor": "0x1bFE99741E482dBf885aC1bD6Ad1f2DF9C630897", + "decapacitor": "0x2f6Fe49437625F5ce889e3D8061441c381A8acD7", + "switchboard": "0x332901149A390D334498008449089f05fa273C3B" + } + }, "169": { "FAST": { "capacitor": "0xD2A7407fA8a279D026ec20f7B229825f6C403faf", @@ -5911,6 +6254,18 @@ "switchboard": "0x8b1AC14d81Bdd82ceb58591549C4c1161de138F8" } }, + "146": { + "FAST": { + "capacitor": "0x193EDe0650f87db7A8731ef27da60C6224b34324", + "decapacitor": "0x112E46d5aCe781ea08DB2bE5D639AEc993221c4C", + "switchboard": "0x3153a8451E1Bb2d606e9df11EE082CFF99F88b51" + }, + "OPTIMISTIC": { + "capacitor": "0x48b612Df6dcFF067b728C049224f59418F2D8D85", + "decapacitor": "0x4C7c911444AcB50cD2e58e4946a76541357AA959", + "switchboard": "0x8b1AC14d81Bdd82ceb58591549C4c1161de138F8" + } + }, "324": { "FAST": { "capacitor": "0x9E1869788DD817587474aaEF009e9DA958e7FfC4", diff --git a/deployments/prod_verification.json b/deployments/prod_verification.json index 62a8ce33..5531bcb3 100644 --- a/deployments/prod_verification.json +++ b/deployments/prod_verification.json @@ -829,6 +829,131 @@ ["0x5fD7D0d6b91CC4787Bcb86ca47e0Bd4ea0346d34", 10] ] ], + "146": [ + [ + "0xd9E3a8Ba9Be55919C5C0De6694e3103F5a35820E", + "SwitchboardSimulator", + "contracts/mocks/fee-updater/SwitchboardSimulator.sol", + [ + "0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", + "0x525a6489a1df5fF1ae077fAf628E43b7F52298eF", + 146, + 1000, + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead" + ] + ], + [ + "0x3043Ad9C9e01664bc3A68477f0870Df35dC4bFf8", + "SimulatorUtils", + "contracts/mocks/fee-updater/SimulatorUtils.sol", + [ + "0x525a6489a1df5fF1ae077fAf628E43b7F52298eF", + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead", + "0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", + 146 + ] + ], + [ + "0x525a6489a1df5fF1ae077fAf628E43b7F52298eF", + "SocketSimulator", + "contracts/mocks/fee-updater/SocketSimulator.sol", + [ + 146, + 146, + "0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3", + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead", + "IMLI" + ] + ], + [ + "0x657e72B305Dc1c41e98d9efC2350EC10e3c83E21", + "Counter", + "contracts/examples/Counter.sol", + ["0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE"] + ], + [ + "0xb3314456567986e657d4C65Ec9e8cB736B92d11D", + "SocketBatcher", + "contracts/socket/SocketBatcher.sol", + ["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"] + ], + [ + "0x0CC93650bF4D98237628DACf87f94E443956D8dF", + "OptimisticSwitchboard", + "contracts/switchboard/default-switchboards/OptimisticSwitchboard.sol", + [ + "0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", + "0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE", + 146, + 7200, + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead" + ] + ], + [ + "0xb4Ef469c9d8317851270346070dA0ecE24616E6b", + "FastSwitchboard", + "contracts/switchboard/default-switchboards/FastSwitchboard.sol", + [ + "0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", + "0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE", + 146, + 7200, + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead" + ] + ], + [ + "0x9B8c323468AEC7A7Cb041CeD48F92559bFF33705", + "TransmitManager", + "contracts/TransmitManager.sol", + [ + "0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", + 146, + "0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE", + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead" + ] + ], + [ + "0x1CAdCd88fC148D3966eDe75D029937C886f66009", + "ExecutionManagerDF", + "contracts/ExecutionManagerDF.sol", + [ + "0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", + 146, + "0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE", + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead" + ] + ], + [ + "0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE", + "Socket", + "contracts/socket/Socket.sol", + [ + 146, + "0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3", + "0x6C593aD4C0Fa4E293a0f1240F9ca3CF0e8a28619", + "0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", + "IMLI" + ] + ], + [ + "0x6C593aD4C0Fa4E293a0f1240F9ca3CF0e8a28619", + "CapacitorFactory", + "contracts/CapacitorFactory.sol", + ["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", 10] + ], + [ + "0x1F6bc87f3309B5D31Eb0BdaBE3ED7d3110d3B9c3", + "Hasher", + "contracts/utils/Hasher.sol", + ["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"] + ], + [ + "0xc8a4D2fd77c155fd52e65Ab07F337aBF84495Ead", + "SignatureVerifier", + "contracts/utils/SignatureVerifier.sol", + ["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"] + ] + ], "169": [ [ "0x525a6489a1df5fF1ae077fAf628E43b7F52298eF", diff --git a/hardhat.config.ts b/hardhat.config.ts index 10a206ea..a56de317 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -120,6 +120,7 @@ if (isProduction) { [HardhatChainName.MANTA_PACIFIC]: getChainConfig(ChainSlug.MANTA_PACIFIC), [HardhatChainName.OPBNB]: getChainConfig(ChainSlug.OPBNB), [HardhatChainName.GEIST]: getChainConfig(ChainSlug.GEIST), + [HardhatChainName.SONIC]: getChainConfig(ChainSlug.SONIC), }; } @@ -172,6 +173,7 @@ const config: HardhatUserConfig = { manta_pacific: process.env.MANTA_PACIFIC_API_KEY || "none", opbnb: process.env.OPBNB_API_KEY || "none", geist: process.env.GEIST_API_KEY || "none", + sonic: process.env.SONIC_API_KEY || "none", }, customChains: [ { @@ -334,6 +336,14 @@ const config: HardhatUserConfig = { browserURL: "https://geist-mainnet.explorer.alchemy.com/", }, }, + { + network: "sonic", + chainId: ChainId.SONIC, + urls: { + apiURL: "https://api.soniclabs.com/api", + browserURL: "https://rpc.soniclabs.com/", + }, + }, ], }, networks: { diff --git a/package.json b/package.json index 31017973..24b67a28 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@socket.tech/dl-core", "license": "UNLICENSED", - "version": "2.36.0", + "version": "2.37.0", "description": "Smart contracts for socket data layer.", "main": "./dist/src/index.js", "types": "./dist/src/index.d.ts", diff --git a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts index fcc45e82..88dd44ed 100644 --- a/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts +++ b/scripts/rpcConfig/constants/batcherSupportedChainSlug.ts @@ -50,4 +50,5 @@ export const batcherSupportedChainSlugs = [ ChainSlug.ZKSYNC, ChainSlug.ARENA_Z, ChainSlug.INK, + ChainSlug.SONIC, ]; diff --git a/scripts/rpcConfig/constants/explorers.ts b/scripts/rpcConfig/constants/explorers.ts index 94f394ae..5fd86362 100644 --- a/scripts/rpcConfig/constants/explorers.ts +++ b/scripts/rpcConfig/constants/explorers.ts @@ -29,4 +29,5 @@ export const explorers = { [ChainSlug.ZKSYNC]: "https://explorer.zksync.io/", [ChainSlug.ARENA_Z]: "https://explorer.arena-z.gg/", [ChainSlug.INK]: "https://explorer.inkonchain.com/", + [ChainSlug.SONIC]: "https://sonicscan.org/", }; diff --git a/scripts/rpcConfig/constants/icons.ts b/scripts/rpcConfig/constants/icons.ts index 1c3b8d44..ce0d707d 100644 --- a/scripts/rpcConfig/constants/icons.ts +++ b/scripts/rpcConfig/constants/icons.ts @@ -27,4 +27,5 @@ export const icons = { [ChainSlug.ZKSYNC]: "", [ChainSlug.ARENA_Z]: "", [ChainSlug.INK]: "", + [ChainSlug.SONIC]: "", }; diff --git a/scripts/rpcConfig/constants/rpc.ts b/scripts/rpcConfig/constants/rpc.ts index b7ced31e..2c93cf22 100644 --- a/scripts/rpcConfig/constants/rpc.ts +++ b/scripts/rpcConfig/constants/rpc.ts @@ -62,4 +62,5 @@ export const rpcs = { [ChainSlug.ZKSYNC]: checkEnvValue("ZKSYNC_RPC"), [ChainSlug.ARENA_Z]: checkEnvValue("ARENA_Z_RPC"), [ChainSlug.INK]: checkEnvValue("INK_RPC"), + [ChainSlug.SONIC]: checkEnvValue("SONIC_RPC"), }; diff --git a/scripts/rpcConfig/constants/version.ts b/scripts/rpcConfig/constants/version.ts index 0d833679..01e4c8ec 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.74", + [DeploymentMode.PROD]: "1.0.75", }; diff --git a/src/enums/chainId.ts b/src/enums/chainId.ts index 2e8b4a7c..40b65664 100644 --- a/src/enums/chainId.ts +++ b/src/enums/chainId.ts @@ -58,4 +58,5 @@ export enum ChainId { ZKSYNC = 324, ARENA_Z = 7897, INK = 57073, + SONIC = 146, } diff --git a/src/enums/chainSlug.ts b/src/enums/chainSlug.ts index 57e3306b..c5007bdc 100644 --- a/src/enums/chainSlug.ts +++ b/src/enums/chainSlug.ts @@ -60,4 +60,5 @@ export enum ChainSlug { ZKSYNC = ChainId.ZKSYNC, ARENA_Z = ChainId.ARENA_Z, INK = ChainId.INK, + SONIC = ChainId.SONIC, } diff --git a/src/enums/chainSlugToHardhatChainName.ts b/src/enums/chainSlugToHardhatChainName.ts index 9fa04675..5c08ece7 100644 --- a/src/enums/chainSlugToHardhatChainName.ts +++ b/src/enums/chainSlugToHardhatChainName.ts @@ -61,4 +61,5 @@ export const chainSlugToHardhatChainName = { [ChainSlug.ZKSYNC]: HardhatChainName.ZKSYNC, [ChainSlug.ARENA_Z]: HardhatChainName.ARENA_Z, [ChainSlug.INK]: HardhatChainName.INK, + [ChainSlug.SONIC]: HardhatChainName.SONIC, }; diff --git a/src/enums/chainSlugToId.ts b/src/enums/chainSlugToId.ts index 839d6a96..fae218ad 100644 --- a/src/enums/chainSlugToId.ts +++ b/src/enums/chainSlugToId.ts @@ -61,4 +61,5 @@ export const ChainSlugToId = { [ChainSlug.ZKSYNC]: ChainId.ZKSYNC, [ChainSlug.ARENA_Z]: ChainId.ARENA_Z, [ChainSlug.INK]: ChainId.INK, + [ChainSlug.SONIC]: ChainId.SONIC, }; diff --git a/src/enums/chainSlugToKey.ts b/src/enums/chainSlugToKey.ts index 74258ad1..e968a465 100644 --- a/src/enums/chainSlugToKey.ts +++ b/src/enums/chainSlugToKey.ts @@ -61,4 +61,5 @@ export const ChainSlugToKey = { [ChainSlug.ZKSYNC]: HardhatChainName.ZKSYNC, [ChainSlug.ARENA_Z]: HardhatChainName.ARENA_Z, [ChainSlug.INK]: HardhatChainName.INK, + [ChainSlug.SONIC]: HardhatChainName.SONIC, }; diff --git a/src/enums/currency.ts b/src/enums/currency.ts index 1f9448db..67af7886 100644 --- a/src/enums/currency.ts +++ b/src/enums/currency.ts @@ -19,4 +19,5 @@ export const Currency = { [ChainSlug.POLYGON_AMOY]: NativeTokens["matic-network"], [ChainSlug.OPBNB]: NativeTokens["binancecoin"], [ChainSlug.GEIST]: NativeTokens["aavegotchi"], + [ChainSlug.SONIC]: NativeTokens["fantom"], }; diff --git a/src/enums/ethLikeChains.ts b/src/enums/ethLikeChains.ts index db0d14b6..ef9edc83 100644 --- a/src/enums/ethLikeChains.ts +++ b/src/enums/ethLikeChains.ts @@ -24,4 +24,5 @@ export const ethLikeChains = [ ChainSlug.ZKEVM, ChainSlug.AVALANCHE, ChainSlug.POLYGON_AMOY, + ChainSlug.SONIC, ]; diff --git a/src/enums/hardhatChainName.ts b/src/enums/hardhatChainName.ts index 52f9ced5..3cd548ce 100644 --- a/src/enums/hardhatChainName.ts +++ b/src/enums/hardhatChainName.ts @@ -58,4 +58,5 @@ export enum HardhatChainName { ZKSYNC = "zksync", ARENA_Z = "arena_z", INK = "ink", + SONIC = "sonic", } diff --git a/src/enums/hardhatChainNameToSlug.ts b/src/enums/hardhatChainNameToSlug.ts index 5213e475..a1206708 100644 --- a/src/enums/hardhatChainNameToSlug.ts +++ b/src/enums/hardhatChainNameToSlug.ts @@ -61,4 +61,5 @@ export const hardhatChainNameToSlug = { [HardhatChainName.ZKSYNC]: ChainSlug.ZKSYNC, [HardhatChainName.ARENA_Z]: ChainSlug.ARENA_Z, [HardhatChainName.INK]: ChainSlug.INK, + [HardhatChainName.SONIC]: ChainSlug.SONIC, }; diff --git a/src/enums/mainnetIds.ts b/src/enums/mainnetIds.ts index 1ff56b23..f25b7fcf 100644 --- a/src/enums/mainnetIds.ts +++ b/src/enums/mainnetIds.ts @@ -33,4 +33,5 @@ export const MainnetIds: ChainSlug[] = [ ChainSlug.ZKSYNC, ChainSlug.ARENA_Z, ChainSlug.INK, + ChainSlug.SONIC, ]; diff --git a/src/enums/native-tokens.ts b/src/enums/native-tokens.ts index 1e70d1bf..1ec1600a 100644 --- a/src/enums/native-tokens.ts +++ b/src/enums/native-tokens.ts @@ -12,4 +12,5 @@ export enum NativeTokens { "avalanche-2" = "avalanche-2", "okb" = "okb", "aavegotchi" = "aavegotchi", + "fantom" = "fantom", }