diff --git a/chainConfig.ts b/chainConfig.ts index 5f95e948..358be5a4 100644 --- a/chainConfig.ts +++ b/chainConfig.ts @@ -16,6 +16,7 @@ export type ChainConfig = { }; }; +// DON'T UPDATE AND PUSH THIS FILE export const chainConfig: { [chain: string]: ChainConfig } = { "31337": { chainSlug: 31337, @@ -34,15 +35,4 @@ export const chainConfig: { [chain: string]: ChainConfig } = { gasPrice: 1000000000000, }, }, - "647": { - chainSlug: 647, - chainName: "sxn_testnet", - timeout: 7200, - rpc: "https://rpc.toronto.sx.technology/", - transmitterAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B", - executorAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B", - watcherAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B", - feeUpdaterAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B", - ownerAddress: "0xdE7f7a699F8504641eceF544B0fbc0740C37E69B", - }, }; diff --git a/deployments/prod_addresses.json b/deployments/prod_addresses.json index 906e94f2..394fe4f1 100644 --- a/deployments/prod_addresses.json +++ b/deployments/prod_addresses.json @@ -569,6 +569,18 @@ "switchboard": "0xA418D0cCFB62FE888aCf655e54d88E09059bD6c8" } }, + "421614": { + "FAST2": { + "capacitor": "0x038A6A259eeBdca09D75b5F04745e318fbd34cb5", + "decapacitor": "0x6D4f4d9bdE6dA2D24ECb95D72210aB28c468796D", + "switchboard": "0x61d921aBcaE610E38fb6e5F12aC6b7337e42F2bD" + }, + "OPTIMISTIC": { + "capacitor": "0xbecd8D7Ab133048bbc6a083bC4908412AC6B345E", + "decapacitor": "0x7Ea09dC57615090e5A9109c2e5b30F039f3fC4dc", + "switchboard": "0xA418D0cCFB62FE888aCf655e54d88E09059bD6c8" + } + }, "11155111": { "FAST2": { "capacitor": "0x906B93b51A1661740D5c178444B531dF2aD941d6", @@ -593,6 +605,18 @@ "switchboard": "0xA418D0cCFB62FE888aCf655e54d88E09059bD6c8" } }, + "11155420": { + "FAST2": { + "capacitor": "0xBBD1a27C8e970675E685fC3B4D1A1fba2C04a850", + "decapacitor": "0x1F1d9c50381fc3A399Ed00CEf9cabefdE0bfdc29", + "switchboard": "0x61d921aBcaE610E38fb6e5F12aC6b7337e42F2bD" + }, + "OPTIMISTIC": { + "capacitor": "0x70Dcb6d30B6D3e91BccC5bFB35A32F320433DEeb", + "decapacitor": "0xB0B0eBF4fbE0883e514A20aE505751F7827fAd14", + "switchboard": "0xA418D0cCFB62FE888aCf655e54d88E09059bD6c8" + } + }, "1399904803": { "FAST2": { "capacitor": "0xf91f1f70AEc71EdeF62008F3D3076a078fCF008f", @@ -676,6 +700,18 @@ "switchboard": "0x1d6E46fd4DFdfe063f9096Dc2C0862D36A25b1aD" } }, + "421614": { + "FAST2": { + "capacitor": "0x6cFB36a12E64D9C7297206a18d9C71EF021E62c9", + "decapacitor": "0xBEB0C4f5f8e5847faf6Dd9322F3099Bc41057AEe", + "switchboard": "0xB39Cb89dfD708115616fdA1a2735613931B14181" + }, + "OPTIMISTIC": { + "capacitor": "0xEDe4fD2116F50365B6C84dC5FDC6a6281BE233e7", + "decapacitor": "0xd325abfFC0Db52c3f5f8a7e61C67968d5Edc3CA0", + "switchboard": "0x1d6E46fd4DFdfe063f9096Dc2C0862D36A25b1aD" + } + }, "11155111": { "FAST2": { "capacitor": "0x477E5987b7Dd6287AAb6F10Cf58561048Aaa9474", @@ -686,6 +722,11 @@ "capacitor": "0x6726db8b2222D18f470F6DE9C76e591F15f2b531", "decapacitor": "0x69EF2784502D19e1d1e0ea256cEb150E2647D0c8", "switchboard": "0x1d6E46fd4DFdfe063f9096Dc2C0862D36A25b1aD" + }, + "NATIVE_BRIDGE": { + "switchboard": "0x5d2A7185F0f03ED88067b9Fa02252946fccaA0B8", + "capacitor": "0x98ddB190db9d59cB900140D3E39213b14Fdc1c9E", + "decapacitor": "0xCcee880c379C8017e89d872174b70e0fE601276a" } }, "11155112": { @@ -700,6 +741,18 @@ "switchboard": "0x1d6E46fd4DFdfe063f9096Dc2C0862D36A25b1aD" } }, + "11155420": { + "FAST2": { + "capacitor": "0xDf8DAe54f9C478aa4E91E78E7E8328BF20f748cE", + "decapacitor": "0x445Cb3Ae74a55263bf064bdc45fB89C7741e9FbC", + "switchboard": "0xB39Cb89dfD708115616fdA1a2735613931B14181" + }, + "OPTIMISTIC": { + "capacitor": "0x2B8a67a22D12d91Eb6FCCA22BA1f6b6A7634Da37", + "decapacitor": "0x170C1d398AFE36d162CaFAb64C4b65C80bc0584E", + "switchboard": "0x1d6E46fd4DFdfe063f9096Dc2C0862D36A25b1aD" + } + }, "1399904803": { "FAST2": { "capacitor": "0x9b4C0C726aa29f5AE565dB3C9Fd4D3FE4e637807", @@ -1119,6 +1172,97 @@ "Counter": "0x07680Ca88B8Df538A5aB564BBBD3E4F3aBbF97eE", "SocketBatcher": "0x7043637C53c7fFc96227a1943be0BeeA2baef242" }, + "421614": { + "SignatureVerifier": "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A", + "Hasher": "0x9814d1E6751ADAE2D60fF16f987ae02a25C87224", + "SocketBatcher": "0x323684c3556480F94F9232A1525eAD02fde4F0d1", + "CapacitorFactory": "0x66ffe416eB16D879EcE55B1d50C34789CB4Ab80a", + "Socket": "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "ExecutionManager": "0x6f6f4C24bE59c42F524b133d623170376b8Eed64", + "TransmitManager": "0x85778A90ec60249f10d7AEe06484ffC290d5Efd8", + "FastSwitchboard2": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d", + "OptimisticSwitchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd", + "integrations": { + "647": { + "FAST2": { + "capacitor": "0x67E2B2228945e26eb6004D3775974ba56566C94d", + "decapacitor": "0x095b78eeE618C36e3835B0BcE260B516eF6Adee8", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x6aC7Cd23d3A7eF2152d6CA117b5cA7a23549DB0A", + "decapacitor": "0xC20B2f02F3a86B8A31e129073AFd770C7f4f4B2b", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "901": { + "FAST2": { + "capacitor": "0x9be270Ef6597FF3CC09a89F06ed923967BA024f5", + "decapacitor": "0x121f7Fb7D5D396E3BE315147a23FC97584A7BE0E", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x432b80B9596f9421e8e038851Aa963F454dd9306", + "decapacitor": "0x6DF1B98E3408aab936801100622f66aE7f127cA8", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "11155111": { + "NATIVE_BRIDGE": { + "switchboard": "0xAE9bE0eA6DD7B53C88665Cb2EFf7d40dFD51cf91", + "capacitor": "0x7f72907759C81c4D2e5AE089CE4589393970604F", + "decapacitor": "0xCaE1B86ae5E9c1f316BAfA1B1209f9fe12005b6f" + }, + "FAST2": { + "capacitor": "0x48a79581c8F9B7002234AbB0E4611aA56dF111dC", + "decapacitor": "0xE744660fF2F14Bc8741F3e880FFe47F990cdEEB6", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x02d17aD4a7Ad375E47Ae28AF6386ac5D0306A260", + "decapacitor": "0xCa4E7a3a9FCfbc8FCa223Dde0122769B8807959e", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "11155112": { + "FAST2": { + "capacitor": "0x49B48753e3222B8108C45252eDD9E392812B13Ac", + "decapacitor": "0xc5E90D3e11aEbE2Ad83D1793378fB6420E8484dA", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0xddfFC53b485b75EaBE9a3E526fCF816442aEe7C3", + "decapacitor": "0x4C47775FF0d2e755f5Df5C506EA2405d3617b2C2", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "11155420": { + "FAST2": { + "capacitor": "0xfb359419f485B4d2B295a2754C65fd0b46e33fC9", + "decapacitor": "0xc3DFaDA102e384c8bCFeB0B2b9be733EE17c51dc", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x0Eba3f536ef47F62ea1bC34B6b4A314e1B75c0e7", + "decapacitor": "0x7B380817d19aa08387d77A9A514BB531bB2fFAcD", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "1399904803": { + "FAST2": { + "capacitor": "0xa4Ad8b50B305d03848750a3A39DD60D3DdFc3Dae", + "decapacitor": "0xEE130B6418aD0296f478e10e4fD854C2c0a92000", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x04Af90C90cf2b47212f81a6dD10a328C77780648", + "decapacitor": "0xe0acF0A074793bf37F262a2FBD695904fe8CB7FB", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + } + }, + "Counter": "0x0f8F4E665221528e6a444458dd098216E9ec7807" + }, "11155111": { "SignatureVerifier": "0x10d9DA6AE85eff6D582A91829f78bde2a3EC2dCC", "Hasher": "0x6ddF1d6B719323236f58B4c61D30E523fce1Fe06", @@ -1173,6 +1317,11 @@ "capacitor": "0x0369B9412CA913763aC2eFc1b4b3dacC3abfC6c7", "decapacitor": "0xB69D4C93Ea5652aDD81f521B918733Ef39414390", "switchboard": "0xd84fabe06806270Fb2dDFC2255102206e3B36865" + }, + "NATIVE_BRIDGE": { + "switchboard": "0x2b863CDA83e855078c702233E215884c4d0200dE", + "capacitor": "0x292743C9963D5e7e6582C0dd191B37A1315b720C", + "decapacitor": "0x3C03B97bdF8bAFD8939cD25d223a4d60aF658328" } }, "80001": { @@ -1199,6 +1348,23 @@ "switchboard": "0xd84fabe06806270Fb2dDFC2255102206e3B36865" } }, + "421614": { + "NATIVE_BRIDGE": { + "switchboard": "0x7727f1C58D37C69CB1Ec22E4fD1A9BBc251c1Cfb", + "capacitor": "0x6cdAbFaaC0A07b86d7F2AB986f01d2ab8ac5E9e2", + "decapacitor": "0x9240fB861f4126cC15A805e648A84C744273c677" + }, + "FAST2": { + "capacitor": "0x7394e2dA89fC372518305bC0F81039EB7f3Fe29E", + "decapacitor": "0xBd9156E901f636FF8E4D51c8879992F482cAA694", + "switchboard": "0x501fCBa3e6F92b2D1d89038FeD56EdacaaF5f7c2" + }, + "OPTIMISTIC": { + "capacitor": "0x64C80FE590Df0137C44Cd4D3Dd0e0442159F0fCA", + "decapacitor": "0x593B51048ecE71a5c3b1C023a1fd0631C6D7557b", + "switchboard": "0xd84fabe06806270Fb2dDFC2255102206e3B36865" + } + }, "11155112": { "FAST2": { "capacitor": "0x5e3d9014a1B467Be149Cd6aA6fBDE1eda718c781", @@ -1211,6 +1377,23 @@ "switchboard": "0xd84fabe06806270Fb2dDFC2255102206e3B36865" } }, + "11155420": { + "NATIVE_BRIDGE": { + "switchboard": "0x9773954b3a530568C0F6c7179f4656BF5eF89a3a", + "capacitor": "0xfbDbAa871DC0EDc58Edb4aA1C7D7f69E45e8bE7F", + "decapacitor": "0x68EdFdf81Ae56F5c2Fb3BAD60976D4eDfd1C88D0" + }, + "FAST2": { + "capacitor": "0xB2417199CeD56E3766895b727c09a6236E38f5a0", + "decapacitor": "0xd2B63BcB543eEAeb70Fe05dD4A446DFd9c9DB381", + "switchboard": "0x501fCBa3e6F92b2D1d89038FeD56EdacaaF5f7c2" + }, + "OPTIMISTIC": { + "capacitor": "0xd1dBc74b38d85451F95fD04e623A094230fB6f9c", + "decapacitor": "0x56570d91629FDf014ee1c2058C9d50c6a5D448fc", + "switchboard": "0xd84fabe06806270Fb2dDFC2255102206e3B36865" + } + }, "1399904803": { "FAST2": { "capacitor": "0xfB42955498428F33eB1F5f7e3e67ccEA2C884D34", @@ -1309,6 +1492,18 @@ "switchboard": "0xFCd8ebA25c0e0973Fd131b6bF77fd8dAEcCaC75B" } }, + "421614": { + "FAST2": { + "capacitor": "0xbAC7196355F516883Bd04b089E04a39C2816daf2", + "decapacitor": "0xEE41eA81537f6cC13b00a88fFe4bA6D542c475E7", + "switchboard": "0x61438D1E9C9127F4996E2f74bb7BF62CC7f9B32F" + }, + "OPTIMISTIC": { + "capacitor": "0xFc8305E7C2d3dECd035A392c0644E88916fCCAf5", + "decapacitor": "0xb6A93a24905d0030727161F2055889c86d6D46E1", + "switchboard": "0xFCd8ebA25c0e0973Fd131b6bF77fd8dAEcCaC75B" + } + }, "11155111": { "FAST2": { "capacitor": "0xb0018A5D6C3582d57617bB11db150c6F78ba3AB7", @@ -1321,6 +1516,18 @@ "switchboard": "0xFCd8ebA25c0e0973Fd131b6bF77fd8dAEcCaC75B" } }, + "11155420": { + "FAST2": { + "capacitor": "0xfCD5f7b994C037cEDb22707B4aF6e1154ABe0447", + "decapacitor": "0x8b0A2cBB0a69fD98C2821E4f0535f477f906269f", + "switchboard": "0x61438D1E9C9127F4996E2f74bb7BF62CC7f9B32F" + }, + "OPTIMISTIC": { + "capacitor": "0xff45787af81151865A0a0D3FeFdE196F94CB796a", + "decapacitor": "0x28bfcE77b7ea82E93375589193e6B900029C7c79", + "switchboard": "0xFCd8ebA25c0e0973Fd131b6bF77fd8dAEcCaC75B" + } + }, "1399904803": { "FAST2": { "capacitor": "0x83219c3928b287D68f6939b11B9aF69fcD987eE5", @@ -1339,6 +1546,109 @@ "Counter": "0x21abD53f1150b6DFA1111E4F2b7536F6eaA48538", "SocketBatcher": "0x2ddf16BA6d0180e5357d5e170eF1917a01b41fc0" }, + "11155420": { + "SignatureVerifier": "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A", + "Hasher": "0x9814d1E6751ADAE2D60fF16f987ae02a25C87224", + "SocketBatcher": "0x323684c3556480F94F9232A1525eAD02fde4F0d1", + "CapacitorFactory": "0x66ffe416eB16D879EcE55B1d50C34789CB4Ab80a", + "Socket": "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "ExecutionManager": "0x6f6f4C24bE59c42F524b133d623170376b8Eed64", + "TransmitManager": "0x85778A90ec60249f10d7AEe06484ffC290d5Efd8", + "FastSwitchboard2": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d", + "OptimisticSwitchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd", + "integrations": { + "647": { + "FAST2": { + "capacitor": "0x67E2B2228945e26eb6004D3775974ba56566C94d", + "decapacitor": "0x095b78eeE618C36e3835B0BcE260B516eF6Adee8", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x6aC7Cd23d3A7eF2152d6CA117b5cA7a23549DB0A", + "decapacitor": "0xC20B2f02F3a86B8A31e129073AFd770C7f4f4B2b", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "901": { + "FAST2": { + "capacitor": "0x9be270Ef6597FF3CC09a89F06ed923967BA024f5", + "decapacitor": "0x121f7Fb7D5D396E3BE315147a23FC97584A7BE0E", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x432b80B9596f9421e8e038851Aa963F454dd9306", + "decapacitor": "0x6DF1B98E3408aab936801100622f66aE7f127cA8", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "421614": { + "FAST2": { + "capacitor": "0xfb359419f485B4d2B295a2754C65fd0b46e33fC9", + "decapacitor": "0xc3DFaDA102e384c8bCFeB0B2b9be733EE17c51dc", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x0Eba3f536ef47F62ea1bC34B6b4A314e1B75c0e7", + "decapacitor": "0x7B380817d19aa08387d77A9A514BB531bB2fFAcD", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "11155111": { + "NATIVE_BRIDGE": { + "switchboard": "0xAE9bE0eA6DD7B53C88665Cb2EFf7d40dFD51cf91", + "capacitor": "0x7f72907759C81c4D2e5AE089CE4589393970604F", + "decapacitor": "0xCaE1B86ae5E9c1f316BAfA1B1209f9fe12005b6f" + }, + "FAST2": { + "capacitor": "0x48a79581c8F9B7002234AbB0E4611aA56dF111dC", + "decapacitor": "0xE744660fF2F14Bc8741F3e880FFe47F990cdEEB6", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x02d17aD4a7Ad375E47Ae28AF6386ac5D0306A260", + "decapacitor": "0xCa4E7a3a9FCfbc8FCa223Dde0122769B8807959e", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "11155112": { + "FAST2": { + "capacitor": "0x49B48753e3222B8108C45252eDD9E392812B13Ac", + "decapacitor": "0xc5E90D3e11aEbE2Ad83D1793378fB6420E8484dA", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0xddfFC53b485b75EaBE9a3E526fCF816442aEe7C3", + "decapacitor": "0x4C47775FF0d2e755f5Df5C506EA2405d3617b2C2", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + }, + "1399904803": { + "FAST2": { + "capacitor": "0xa4Ad8b50B305d03848750a3A39DD60D3DdFc3Dae", + "decapacitor": "0xEE130B6418aD0296f478e10e4fD854C2c0a92000", + "switchboard": "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d" + }, + "OPTIMISTIC": { + "capacitor": "0x04Af90C90cf2b47212f81a6dD10a328C77780648", + "decapacitor": "0xe0acF0A074793bf37F262a2FBD695904fe8CB7FB", + "switchboard": "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd" + } + } + }, + "Counter": "0x0f8F4E665221528e6a444458dd098216E9ec7807" + }, + "686669576": { + "SignatureVerifier": "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A", + "Hasher": "0x9814d1E6751ADAE2D60fF16f987ae02a25C87224", + "CapacitorFactory": "0x98472CDb864DedcF13a560Ec2b79745a6063A3aC", + "Socket": "0x834Ee253f0B926DCc1d03EbAeAfEc3a3D1eE4a86", + "ExecutionManager": "0xa5b593aE839b3fe47983Fc28da602a6dEEfBBc9D", + "TransmitManager": "0xe804b3f393EC5D2D04bac6DeED7744beB243E763", + "FastSwitchboard2": "0x61d921aBcaE610E38fb6e5F12aC6b7337e42F2bD", + "OptimisticSwitchboard": "0xA418D0cCFB62FE888aCf655e54d88E09059bD6c8", + "SocketBatcher": "0x2A2d4bEA2F0b8F7AC79bf70f98D3d054aa65f461", + "Counter": "0x323684c3556480F94F9232A1525eAD02fde4F0d1" + }, "1399904803": { "SignatureVerifier": "0x03D51955216a7E6F301e0613515fA86A6f3d59A9", "Hasher": "0x3D8F5700E0Bb2f5Ab3320c674E2B7046F85d0e1A", @@ -1422,6 +1732,18 @@ "switchboard": "0x59AcE34e5c47aEe3ec8feF2A89DcF14Ac98538C9" } }, + "421614": { + "FAST2": { + "capacitor": "0xdE716c3ACE656F682E215Cd2807695159DC8B657", + "decapacitor": "0x68E417487d4438009a6c33F30d5426784e4A52dA", + "switchboard": "0x2735d5B15066049a709e680b2D400155aA5A91BE" + }, + "OPTIMISTIC": { + "capacitor": "0xE348f13cb43A8e00C54e701262aaCc2e1882a4C0", + "decapacitor": "0x17A67adE00E4cC4fCDf473270F4451566C0B9D62", + "switchboard": "0x59AcE34e5c47aEe3ec8feF2A89DcF14Ac98538C9" + } + }, "11155111": { "FAST2": { "capacitor": "0xB2D233393123a22B0f01b7A06819746153F814bC", @@ -1445,6 +1767,18 @@ "decapacitor": "0x082c937E962502ecD881d22A5786Ed1Cefe15053", "switchboard": "0x59AcE34e5c47aEe3ec8feF2A89DcF14Ac98538C9" } + }, + "11155420": { + "FAST2": { + "capacitor": "0x72c9Daf172b4112e1a0552a7d5a182967B06Faed", + "decapacitor": "0x5E819Ca2a974c356190609A59290C7Dd8baBcb15", + "switchboard": "0x2735d5B15066049a709e680b2D400155aA5A91BE" + }, + "OPTIMISTIC": { + "capacitor": "0x2B5dE5A78c03CC3e0f7a5550E6444fF118AAd5c0", + "decapacitor": "0x85B2C0844Ee6e337E7B18C03cd25C5eC7f6d9813", + "switchboard": "0x59AcE34e5c47aEe3ec8feF2A89DcF14Ac98538C9" + } } }, "SocketBatcher": "0x6D290609b3F5F02D52F28d97C75a443ED8564cBf" diff --git a/deployments/prod_verification.json b/deployments/prod_verification.json index fb12a248..bc700396 100644 --- a/deployments/prod_verification.json +++ b/deployments/prod_verification.json @@ -650,6 +650,19 @@ ] ], "901": [ + [ + "0x5d2A7185F0f03ED88067b9Fa02252946fccaA0B8", + "OptimismSwitchboard", + "contracts/switchboard/native/OptimismSwitchboard.sol", + [ + 901, + 300000, + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0xFDC28fA368c33DEC7853d63B65FC5Cfe01B212fc", + "0x4200000000000000000000000000000000000007", + "0x19791877C020f7Cd5Ca1c97bdd5D268a52dbB0ff" + ] + ], [ "0x1D6811553Aff8231aDd04A84F300b89E15D99EA4", "SocketBatcher", @@ -1259,7 +1272,130 @@ ["0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa"] ] ], + "421614": [ + [ + "0x0f8F4E665221528e6a444458dd098216E9ec7807", + "Counter", + "contracts/examples/Counter.sol", + ["0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2"] + ], + [ + "0xAE9bE0eA6DD7B53C88665Cb2EFf7d40dFD51cf91", + "ArbitrumL2Switchboard", + "contracts/switchboard/native/ArbitrumL2Switchboard.sol", + [ + 421614, + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd", + "OptimisticSwitchboard", + "contracts/switchboard/default-switchboards/OptimisticSwitchboard.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + 421614, + 7200, + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d", + "FastSwitchboard", + "contracts/switchboard/default-switchboards/FastSwitchboard.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + 421614, + 7200, + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0x85778A90ec60249f10d7AEe06484ffC290d5Efd8", + "TransmitManager", + "contracts/TransmitManager.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + 421614, + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0x6f6f4C24bE59c42F524b133d623170376b8Eed64", + "ExecutionManager", + "contracts/ExecutionManager.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + 421614, + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "Socket", + "contracts/socket/Socket.sol", + [ + 421614, + "0x9814d1E6751ADAE2D60fF16f987ae02a25C87224", + "0x66ffe416eB16D879EcE55B1d50C34789CB4Ab80a", + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "IMLI" + ] + ], + [ + "0x66ffe416eB16D879EcE55B1d50C34789CB4Ab80a", + "CapacitorFactory", + "contracts/CapacitorFactory.sol", + ["0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", 10] + ] + ], "11155111": [ + [ + "0x2b863CDA83e855078c702233E215884c4d0200dE", + "OptimismSwitchboard", + "contracts/switchboard/native/OptimismSwitchboard.sol", + [ + 11155111, + 300000, + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0x07e11D1A1543B0D0b91684eb741d1ab7D51ae237", + "0x28976A1DF6e6689Bfe555780CD46dcFcF5552979", + "0x10d9DA6AE85eff6D582A91829f78bde2a3EC2dCC" + ] + ], + [ + "0x9773954b3a530568C0F6c7179f4656BF5eF89a3a", + "OptimismSwitchboard", + "contracts/switchboard/native/OptimismSwitchboard.sol", + [ + 11155111, + 300000, + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0x07e11D1A1543B0D0b91684eb741d1ab7D51ae237", + "0x58Cc85b8D04EA49cC6DBd3CbFFd00B4B8D6cb3ef", + "0x10d9DA6AE85eff6D582A91829f78bde2a3EC2dCC" + ] + ], + [ + "0x7727f1C58D37C69CB1Ec22E4fD1A9BBc251c1Cfb", + "ArbitrumL1Switchboard", + "contracts/switchboard/native/ArbitrumL1Switchboard.sol", + [ + 11155111, + "0xaAe29B0366299461418F5324a79Afc425BE5ae21", + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0x07e11D1A1543B0D0b91684eb741d1ab7D51ae237", + "0x38f918D0E9F1b721EDaA41302E399fa1B79333a9", + "0x65f07C7D521164a4d5DaC6eB8Fac8DA067A3B78F", + "0x10d9DA6AE85eff6D582A91829f78bde2a3EC2dCC" + ] + ], [ "0x2521b29FD8d3787Ab42141f55F6b462E6115C737", "SocketBatcher", @@ -1499,6 +1635,181 @@ ["0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa"] ] ], + "11155420": [ + [ + "0x0f8F4E665221528e6a444458dd098216E9ec7807", + "Counter", + "contracts/examples/Counter.sol", + ["0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2"] + ], + [ + "0xAE9bE0eA6DD7B53C88665Cb2EFf7d40dFD51cf91", + "OptimismSwitchboard", + "contracts/switchboard/native/OptimismSwitchboard.sol", + [ + 11155420, + 300000, + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "0x4200000000000000000000000000000000000007", + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0xEDF6dB2f3BC8deE014762e0141EE4CA19d685dBd", + "OptimisticSwitchboard", + "contracts/switchboard/default-switchboards/OptimisticSwitchboard.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + 11155420, + 7200, + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0xB9EDe9aaEaA40e35033ABBC872D141950d08cc4d", + "FastSwitchboard", + "contracts/switchboard/default-switchboards/FastSwitchboard.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + 11155420, + 7200, + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0x85778A90ec60249f10d7AEe06484ffC290d5Efd8", + "TransmitManager", + "contracts/TransmitManager.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + 11155420, + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0x6f6f4C24bE59c42F524b133d623170376b8Eed64", + "ExecutionManager", + "contracts/ExecutionManager.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + 11155420, + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0xEA59E2b1539b514290dD3dCEa989Ea36279aC6F2", + "Socket", + "contracts/socket/Socket.sol", + [ + 11155420, + "0x9814d1E6751ADAE2D60fF16f987ae02a25C87224", + "0x66ffe416eB16D879EcE55B1d50C34789CB4Ab80a", + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "IMLI" + ] + ], + [ + "0x66ffe416eB16D879EcE55B1d50C34789CB4Ab80a", + "CapacitorFactory", + "contracts/CapacitorFactory.sol", + ["0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", 10] + ] + ], + "686669576": [ + [ + "0x323684c3556480F94F9232A1525eAD02fde4F0d1", + "Counter", + "contracts/examples/Counter.sol", + ["0x834Ee253f0B926DCc1d03EbAeAfEc3a3D1eE4a86"] + ], + [ + "0x2A2d4bEA2F0b8F7AC79bf70f98D3d054aa65f461", + "SocketBatcher", + "contracts/socket/SocketBatcher.sol", + ["0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa"] + ], + [ + "0xA418D0cCFB62FE888aCf655e54d88E09059bD6c8", + "OptimisticSwitchboard", + "contracts/switchboard/default-switchboards/OptimisticSwitchboard.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0x834Ee253f0B926DCc1d03EbAeAfEc3a3D1eE4a86", + 686669576, + 7200, + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0x61d921aBcaE610E38fb6e5F12aC6b7337e42F2bD", + "FastSwitchboard", + "contracts/switchboard/default-switchboards/FastSwitchboard.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "0x834Ee253f0B926DCc1d03EbAeAfEc3a3D1eE4a86", + 686669576, + 7200, + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0xe804b3f393EC5D2D04bac6DeED7744beB243E763", + "TransmitManager", + "contracts/TransmitManager.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + 686669576, + "0x834Ee253f0B926DCc1d03EbAeAfEc3a3D1eE4a86", + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0xa5b593aE839b3fe47983Fc28da602a6dEEfBBc9D", + "ExecutionManager", + "contracts/ExecutionManager.sol", + [ + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + 686669576, + "0x834Ee253f0B926DCc1d03EbAeAfEc3a3D1eE4a86", + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A" + ] + ], + [ + "0x834Ee253f0B926DCc1d03EbAeAfEc3a3D1eE4a86", + "Socket", + "contracts/socket/Socket.sol", + [ + 686669576, + "0x9814d1E6751ADAE2D60fF16f987ae02a25C87224", + "0x98472CDb864DedcF13a560Ec2b79745a6063A3aC", + "0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", + "IMLI" + ] + ], + [ + "0x98472CDb864DedcF13a560Ec2b79745a6063A3aC", + "CapacitorFactory", + "contracts/CapacitorFactory.sol", + ["0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa", 10] + ], + [ + "0x9814d1E6751ADAE2D60fF16f987ae02a25C87224", + "Hasher", + "contracts/utils/Hasher.sol", + ["0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa"] + ], + [ + "0x47140353947Bc127c9cf36fabd61112C8Fb8db2A", + "SignatureVerifier", + "contracts/utils/SignatureVerifier.sol", + ["0x752B38FA38F53dF7fa60e6113CFd9094b7e040Aa"] + ] + ], "1399904803": [ [ "0x6D290609b3F5F02D52F28d97C75a443ED8564cBf", diff --git a/package.json b/package.json index a3edea9a..856ba01d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@socket.tech/dl-core", "license": "UNLICENSED", - "version": "2.4.10", + "version": "2.4.11-test.1", "description": "Smart contracts for socket data layer.", "main": "./dist/src/index.js", "types": "./dist/src/index.d.ts", @@ -17,7 +17,7 @@ "url": "git+https://github.com/SocketDotTech/socket-DL.git" }, "devDependencies": { - "@arbitrum/sdk": "^3.0.0", + "@arbitrum/sdk": "^3.1.13", "@eth-optimism/sdk": "^3.1.4", "@ethersproject/bytes": "^5.7.0", "@fxportal/maticjs-fxportal": "^1.1.1", diff --git a/scripts/constants/bridge.ts b/scripts/constants/bridge.ts index 49d42fd9..cf427122 100644 --- a/scripts/constants/bridge.ts +++ b/scripts/constants/bridge.ts @@ -3,25 +3,22 @@ import { ChainSlug } from "../../src"; export const bridgeConsts = { inbox: { - [ChainSlug.HARDHAT]: "0x4Dbd4fc535Ac27206064B68FfCf827b0A60BAB3f", [ChainSlug.MAINNET]: "0x4Dbd4fc535Ac27206064B68FfCf827b0A60BAB3f", - [ChainSlug.GOERLI]: "0x6BEbC4925716945D46F0Ec336D5C2564F419682C", + [ChainSlug.SEPOLIA]: "0xaAe29B0366299461418F5324a79Afc425BE5ae21", [ChainSlug.ARBITRUM]: constants.AddressZero, - [ChainSlug.ARBITRUM_GOERLI]: constants.AddressZero, + [ChainSlug.ARBITRUM_SEPOLIA]: constants.AddressZero, }, bridge: { - [ChainSlug.HARDHAT]: "0x8315177aB297bA92A06054cE80a67Ed4DBd7ed3a", [ChainSlug.MAINNET]: "0x8315177aB297bA92A06054cE80a67Ed4DBd7ed3a", - [ChainSlug.GOERLI]: "0xaf4159A80B6Cc41ED517DB1c453d1Ef5C2e4dB72", + [ChainSlug.SEPOLIA]: "0x38f918D0E9F1b721EDaA41302E399fa1B79333a9", [ChainSlug.ARBITRUM]: constants.AddressZero, - [ChainSlug.ARBITRUM_GOERLI]: constants.AddressZero, + [ChainSlug.ARBITRUM_SEPOLIA]: constants.AddressZero, }, outbox: { - [ChainSlug.HARDHAT]: constants.AddressZero, [ChainSlug.MAINNET]: "0x0B9857ae2D4A3DBe74ffE1d7DF045bb7F96E4840", - [ChainSlug.GOERLI]: "0x45Af9Ed1D03703e480CE7d328fB684bb67DA5049", + [ChainSlug.SEPOLIA]: "0x65f07C7D521164a4d5DaC6eB8Fac8DA067A3B78F", [ChainSlug.ARBITRUM]: constants.AddressZero, - [ChainSlug.ARBITRUM_GOERLI]: constants.AddressZero, + [ChainSlug.ARBITRUM_SEPOLIA]: constants.AddressZero, }, fxChild: { [ChainSlug.POLYGON_MAINNET]: "0x8397259c983751DAf40400790063935a11afa28a", @@ -38,10 +35,22 @@ export const bridgeConsts = { [ChainSlug.GOERLI]: "0x3d1d3E34f7fB6D26245E6640E1c50710eFFf15bA", }, crossDomainMessenger: { - [ChainSlug.HARDHAT]: "0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1", - [ChainSlug.MAINNET]: "0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1", - [ChainSlug.OPTIMISM]: "0x4200000000000000000000000000000000000007", - [ChainSlug.OPTIMISM_GOERLI]: "0x4200000000000000000000000000000000000007", - [ChainSlug.GOERLI]: "0x5086d1eEF304eb5284A0f6720f79403b4e9bE294", + [ChainSlug.OPTIMISM]: { + [ChainSlug.MAINNET]: "0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1", + [ChainSlug.OPTIMISM]: "0x4200000000000000000000000000000000000007", + }, + [ChainSlug.OPTIMISM_GOERLI]: { + [ChainSlug.GOERLI]: "0x5086d1eEF304eb5284A0f6720f79403b4e9bE294", + [ChainSlug.OPTIMISM_GOERLI]: "0x4200000000000000000000000000000000000007", + }, + [ChainSlug.OPTIMISM_SEPOLIA]: { + [ChainSlug.SEPOLIA]: "0x58Cc85b8D04EA49cC6DBd3CbFFd00B4B8D6cb3ef", + [ChainSlug.OPTIMISM_SEPOLIA]: + "0x4200000000000000000000000000000000000007", + }, + [ChainSlug.LYRA_TESTNET]: { + [ChainSlug.SEPOLIA]: "0x28976A1DF6e6689Bfe555780CD46dcFcF5552979", + [ChainSlug.LYRA_TESTNET]: "0x4200000000000000000000000000000000000007", + }, }, }; diff --git a/scripts/constants/config.ts b/scripts/constants/config.ts index 3d44ee0b..ace20378 100644 --- a/scripts/constants/config.ts +++ b/scripts/constants/config.ts @@ -23,8 +23,8 @@ export const getDefaultIntegrationType = ( }; export const switchboards = { - [ChainSlug.ARBITRUM_GOERLI]: { - [ChainSlug.GOERLI]: { + [ChainSlug.ARBITRUM_SEPOLIA]: { + [ChainSlug.SEPOLIA]: { switchboard: NativeSwitchboard.ARBITRUM_L2, }, }, @@ -38,8 +38,13 @@ export const switchboards = { switchboard: NativeSwitchboard.OPTIMISM, }, }, - [ChainSlug.OPTIMISM_GOERLI]: { - [ChainSlug.GOERLI]: { + [ChainSlug.OPTIMISM_SEPOLIA]: { + [ChainSlug.SEPOLIA]: { + switchboard: NativeSwitchboard.OPTIMISM, + }, + }, + [ChainSlug.LYRA_TESTNET]: { + [ChainSlug.SEPOLIA]: { switchboard: NativeSwitchboard.OPTIMISM, }, }, @@ -54,14 +59,19 @@ export const switchboards = { }, }, [ChainSlug.GOERLI]: { - [ChainSlug.ARBITRUM_GOERLI]: { + [ChainSlug.POLYGON_MUMBAI]: { + switchboard: NativeSwitchboard.POLYGON_L1, + }, + }, + [ChainSlug.SEPOLIA]: { + [ChainSlug.ARBITRUM_SEPOLIA]: { switchboard: NativeSwitchboard.ARBITRUM_L1, }, - [ChainSlug.OPTIMISM_GOERLI]: { + [ChainSlug.OPTIMISM_SEPOLIA]: { switchboard: NativeSwitchboard.OPTIMISM, }, - [ChainSlug.POLYGON_MUMBAI]: { - switchboard: NativeSwitchboard.POLYGON_L1, + [ChainSlug.LYRA_TESTNET]: { + switchboard: NativeSwitchboard.OPTIMISM, }, }, [ChainSlug.MAINNET]: { diff --git a/scripts/deploy/config.ts b/scripts/deploy/config.ts index 7e8825a9..54c3dd7a 100644 --- a/scripts/deploy/config.ts +++ b/scripts/deploy/config.ts @@ -31,8 +31,8 @@ console.log( export const chains: Array = [ ChainSlug.GOERLI, - ChainSlug.ARBITRUM_GOERLI, - ChainSlug.OPTIMISM_GOERLI, + ChainSlug.ARBITRUM_SEPOLIA, + ChainSlug.OPTIMISM_SEPOLIA, ChainSlug.POLYGON_MUMBAI, ChainSlug.SX_NETWORK_TESTNET, ChainSlug.BSC_TESTNET, @@ -40,6 +40,7 @@ export const chains: Array = [ ChainSlug.LYRA_TESTNET, ChainSlug.SEPOLIA, ChainSlug.XAI_TESTNET, + ChainSlug.CDK_TESTNET, ChainSlug.AEVO, ChainSlug.MAINNET, ChainSlug.ARBITRUM, @@ -47,8 +48,6 @@ export const chains: Array = [ ChainSlug.LYRA, ChainSlug.BSC, ChainSlug.POLYGON_MAINNET, - ChainSlug.XAI_TESTNET, - ChainSlug.SX_NETWORK_TESTNET, ]; export const executionManagerVersion = CORE_CONTRACTS.ExecutionManager; diff --git a/scripts/deploy/single-click-deploy/configureChain.ts b/scripts/deploy/single-click-deploy/configureChain.ts index f13ed05b..47d0623c 100644 --- a/scripts/deploy/single-click-deploy/configureChain.ts +++ b/scripts/deploy/single-click-deploy/configureChain.ts @@ -50,7 +50,6 @@ export const main = async () => { if (!addresses || !addresses[sibling]) throw new Error(`Sibling addresses not found! ${sibling}`); - addr = await registerSwitchboards( sibling, [chain], diff --git a/scripts/deploy/switchboards/index.ts b/scripts/deploy/switchboards/index.ts index 11d3e32c..6604ea8a 100644 --- a/scripts/deploy/switchboards/index.ts +++ b/scripts/deploy/switchboards/index.ts @@ -56,6 +56,7 @@ export const getSwitchboardDeployData = ( } else if (switchboardType === NativeSwitchboard.OPTIMISM) { return optimismSwitchboard( localChain, + remoteChain, socketAddress, sigVerifierAddress, signerAddress diff --git a/scripts/deploy/switchboards/optimismSwitchboard.ts b/scripts/deploy/switchboards/optimismSwitchboard.ts index 5abbcbff..7d566a5c 100644 --- a/scripts/deploy/switchboards/optimismSwitchboard.ts +++ b/scripts/deploy/switchboards/optimismSwitchboard.ts @@ -1,16 +1,25 @@ -import { ChainSlug } from "../../../src"; +import { ChainSlug, isL1 } from "../../../src"; import { bridgeConsts } from "../../constants"; const receiveGasLimit = 300000; export const optimismSwitchboard = ( chainSlug: ChainSlug, + remoteChainSlug: ChainSlug, socketAddress: string, sigVerifierAddress: string, signerAddress: string ) => { - let crossDomainMessengerAddress: string = - bridgeConsts.crossDomainMessenger[chainSlug]; + let crossDomainMessengerAddress: string; + if (isL1(chainSlug)) { + console.log(chainSlug, remoteChainSlug); + crossDomainMessengerAddress = + bridgeConsts.crossDomainMessenger[remoteChainSlug][chainSlug]; + console.log(crossDomainMessengerAddress); + } else { + crossDomainMessengerAddress = + bridgeConsts.crossDomainMessenger[chainSlug][chainSlug]; + } if (!crossDomainMessengerAddress || crossDomainMessengerAddress == "") { throw new Error("Wrong chainSlug - crossDomainMessengerAddress is null"); @@ -23,7 +32,7 @@ export const optimismSwitchboard = ( receiveGasLimit, signerAddress, socketAddress, - bridgeConsts.crossDomainMessenger[chainSlug], + crossDomainMessengerAddress, sigVerifierAddress, ], path: "contracts/switchboard/native/OptimismSwitchboard.sol", diff --git a/src/chain-types.ts b/src/chain-types.ts index 3e3d23c6..4b61668b 100644 --- a/src/chain-types.ts +++ b/src/chain-types.ts @@ -7,8 +7,10 @@ export enum HardhatChainName { ARBITRUM = "arbitrum", ARBITRUM_GOERLI = "arbitrum-goerli", + ARBITRUM_SEPOLIA = "arbitrum-sepolia", OPTIMISM = "optimism", OPTIMISM_GOERLI = "optimism-goerli", + OPTIMISM_SEPOLIA = "optimism-sepolia", AVALANCHE = "avalanche", AVALANCHE_TESTNET = "avalanche-testnet", BSC = "bsc", @@ -24,14 +26,17 @@ export enum HardhatChainName { LYRA = "lyra", XAI_TESTNET = "xai_testnet", SX_NETWORK_TESTNET = "sxn_testnet", + CDK_TESTNET = "cdk_testnet", HARDHAT = "hardhat", } export enum ChainId { ARBITRUM = 42161, ARBITRUM_GOERLI = 421613, + ARBITRUM_SEPOLIA = 421614, OPTIMISM = 10, OPTIMISM_GOERLI = 420, + OPTIMISM_SEPOLIA = 11155420, BSC = 56, BSC_TESTNET = 97, MAINNET = 1, @@ -46,14 +51,17 @@ export enum ChainId { LYRA_TESTNET = 901, LYRA = 0, // update this XAI_TESTNET = 47279324479, + CDK_TESTNET = 686669576, SX_NETWORK_TESTNET = 647, } export enum ChainSlug { ARBITRUM = ChainId.ARBITRUM, ARBITRUM_GOERLI = ChainId.ARBITRUM_GOERLI, + ARBITRUM_SEPOLIA = ChainId.ARBITRUM_SEPOLIA, OPTIMISM = ChainId.OPTIMISM, OPTIMISM_GOERLI = ChainId.OPTIMISM_GOERLI, + OPTIMISM_SEPOLIA = ChainId.OPTIMISM_SEPOLIA, BSC = ChainId.BSC, BSC_TESTNET = ChainId.BSC_TESTNET, MAINNET = ChainId.MAINNET, @@ -69,13 +77,16 @@ export enum ChainSlug { LYRA = ChainId.LYRA, XAI_TESTNET = 1399904803, SX_NETWORK_TESTNET = ChainId.SX_NETWORK_TESTNET, + CDK_TESTNET = ChainId.CDK_TESTNET, } export const hardhatChainNameToSlug = { [HardhatChainName.ARBITRUM]: ChainSlug.ARBITRUM, [HardhatChainName.ARBITRUM_GOERLI]: ChainSlug.ARBITRUM_GOERLI, + [HardhatChainName.ARBITRUM_SEPOLIA]: ChainSlug.ARBITRUM_SEPOLIA, [HardhatChainName.OPTIMISM]: ChainSlug.OPTIMISM, [HardhatChainName.OPTIMISM_GOERLI]: ChainSlug.OPTIMISM_GOERLI, + [HardhatChainName.OPTIMISM_SEPOLIA]: ChainSlug.OPTIMISM_SEPOLIA, [HardhatChainName.BSC]: ChainSlug.BSC, [HardhatChainName.BSC_TESTNET]: ChainSlug.BSC_TESTNET, [HardhatChainName.MAINNET]: ChainSlug.MAINNET, @@ -91,13 +102,16 @@ export const hardhatChainNameToSlug = { [HardhatChainName.LYRA]: ChainSlug.LYRA, [HardhatChainName.XAI_TESTNET]: ChainSlug.XAI_TESTNET, [HardhatChainName.SX_NETWORK_TESTNET]: ChainSlug.SX_NETWORK_TESTNET, + [HardhatChainName.CDK_TESTNET]: ChainSlug.CDK_TESTNET, }; export const ChainSlugToKey = { [ChainSlug.ARBITRUM]: HardhatChainName.ARBITRUM, [ChainSlug.ARBITRUM_GOERLI]: HardhatChainName.ARBITRUM_GOERLI, + [ChainSlug.ARBITRUM_SEPOLIA]: HardhatChainName.ARBITRUM_SEPOLIA, [ChainSlug.OPTIMISM]: HardhatChainName.OPTIMISM, [ChainSlug.OPTIMISM_GOERLI]: HardhatChainName.OPTIMISM_GOERLI, + [ChainSlug.OPTIMISM_SEPOLIA]: HardhatChainName.OPTIMISM_SEPOLIA, [ChainSlug.BSC]: HardhatChainName.BSC, [ChainSlug.BSC_TESTNET]: HardhatChainName.BSC_TESTNET, [ChainSlug.MAINNET]: HardhatChainName.MAINNET, @@ -113,6 +127,32 @@ export const ChainSlugToKey = { [ChainSlug.LYRA]: HardhatChainName.LYRA, [ChainSlug.XAI_TESTNET]: HardhatChainName.XAI_TESTNET, [ChainSlug.SX_NETWORK_TESTNET]: HardhatChainName.SX_NETWORK_TESTNET, + [ChainSlug.CDK_TESTNET]: HardhatChainName.CDK_TESTNET, +}; + +export const ChainSlugToId = { + [ChainSlug.ARBITRUM]: ChainId.ARBITRUM, + [ChainSlug.ARBITRUM_GOERLI]: ChainId.ARBITRUM_GOERLI, + [ChainSlug.ARBITRUM_SEPOLIA]: ChainId.ARBITRUM_SEPOLIA, + [ChainSlug.OPTIMISM]: ChainId.OPTIMISM, + [ChainSlug.OPTIMISM_GOERLI]: ChainId.OPTIMISM_GOERLI, + [ChainSlug.OPTIMISM_SEPOLIA]: ChainId.OPTIMISM_SEPOLIA, + [ChainSlug.BSC]: ChainId.BSC, + [ChainSlug.BSC_TESTNET]: ChainId.BSC_TESTNET, + [ChainSlug.MAINNET]: ChainId.MAINNET, + [ChainSlug.GOERLI]: ChainId.GOERLI, + [ChainSlug.SEPOLIA]: ChainId.SEPOLIA, + [ChainSlug.POLYGON_MAINNET]: ChainId.POLYGON_MAINNET, + [ChainSlug.POLYGON_MUMBAI]: ChainId.POLYGON_MUMBAI, + [ChainSlug.AEVO_TESTNET]: ChainId.AEVO_TESTNET, + [ChainSlug.AEVO]: ChainId.AEVO, + [ChainSlug.HARDHAT]: ChainId.HARDHAT, + [ChainSlug.AVALANCHE]: ChainId.AVALANCHE, + [ChainSlug.LYRA_TESTNET]: ChainId.LYRA_TESTNET, + [ChainSlug.LYRA]: ChainId.LYRA, + [ChainSlug.XAI_TESTNET]: ChainId.XAI_TESTNET, + [ChainSlug.SX_NETWORK_TESTNET]: ChainId.SX_NETWORK_TESTNET, + [ChainSlug.CDK_TESTNET]: ChainId.CDK_TESTNET, }; export const TestnetIds: ChainSlug[] = [ @@ -120,12 +160,15 @@ export const TestnetIds: ChainSlug[] = [ ChainSlug.SEPOLIA, ChainSlug.POLYGON_MUMBAI, ChainSlug.ARBITRUM_GOERLI, + ChainSlug.ARBITRUM_SEPOLIA, ChainSlug.OPTIMISM_GOERLI, + ChainSlug.OPTIMISM_SEPOLIA, ChainSlug.BSC_TESTNET, ChainSlug.AEVO_TESTNET, ChainSlug.LYRA_TESTNET, ChainSlug.XAI_TESTNET, ChainSlug.SX_NETWORK_TESTNET, + ChainSlug.CDK_TESTNET, ]; export const MainnetIds: ChainSlug[] = [ diff --git a/src/socket-types.ts b/src/socket-types.ts index a37d950f..5a84c879 100644 --- a/src/socket-types.ts +++ b/src/socket-types.ts @@ -1,11 +1,17 @@ import { ChainSlug, MainnetIds, TestnetIds } from "./chain-types"; -export const L1Ids: ChainSlug[] = [ChainSlug.MAINNET, ChainSlug.GOERLI]; +export const L1Ids: ChainSlug[] = [ + ChainSlug.MAINNET, + ChainSlug.GOERLI, + ChainSlug.SEPOLIA, +]; export const L2Ids: ChainSlug[] = [ ChainSlug.POLYGON_MUMBAI, ChainSlug.ARBITRUM_GOERLI, ChainSlug.OPTIMISM_GOERLI, + ChainSlug.ARBITRUM_SEPOLIA, + ChainSlug.OPTIMISM_SEPOLIA, ChainSlug.POLYGON_MAINNET, ChainSlug.ARBITRUM, ChainSlug.OPTIMISM, diff --git a/yarn.lock b/yarn.lock index 3a092057..cf9036ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,14 +2,15 @@ # yarn lockfile v1 -"@arbitrum/sdk@^3.0.0": - version "3.0.0" - resolved "https://registry.npmjs.org/@arbitrum/sdk/-/sdk-3.0.0.tgz" - integrity sha512-Mws5WAxxirp3vk8JH3vyQ5H6q1NNUIAAGEd9oEnQYDMyTBHLKU293GA3s9w4w6ZfIq/RZq8YCexhy4D1R+mQng== +"@arbitrum/sdk@^3.1.13": + version "3.1.13" + resolved "https://registry.yarnpkg.com/@arbitrum/sdk/-/sdk-3.1.13.tgz#a0d3d9a7b387f42547c63f6f066d8a6c4dd945cc" + integrity sha512-oE/j8ThWWEdFfV0helmR8lD0T67/CY1zMCt6RVslaCLrytFdbg3QsrHs/sQE3yiCXgisQlsx3qomCgh8PfBo8Q== dependencies: "@ethersproject/address" "^5.0.8" "@ethersproject/bignumber" "^5.1.1" "@ethersproject/bytes" "^5.0.8" + async-mutex "^0.4.0" ethers "^5.1.0" "@aws-crypto/sha256-js@1.2.2": @@ -1595,6 +1596,13 @@ async-limiter@~1.0.0: resolved "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz" integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== +async-mutex@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/async-mutex/-/async-mutex-0.4.0.tgz#ae8048cd4d04ace94347507504b3cf15e631c25f" + integrity sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA== + dependencies: + tslib "^2.4.0" + async-retry@^1.3.3: version "1.3.3" resolved "https://registry.yarnpkg.com/async-retry/-/async-retry-1.3.3.tgz#0e7f36c04d8478e7a58bdbed80cedf977785f280" @@ -8185,6 +8193,11 @@ tslib@^2.3.1, tslib@^2.5.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== +tslib@^2.4.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + tsort@0.0.1: version "0.0.1" resolved "https://registry.npmjs.org/tsort/-/tsort-0.0.1.tgz"