From e8769fd11b229ed3ddf2bc3f8d3e3212a42abd41 Mon Sep 17 00:00:00 2001 From: aureliusbtc <82057759+aureliusbtc@users.noreply.github.com> Date: Fri, 29 Mar 2024 18:09:34 -0400 Subject: [PATCH] v3 SIN testnet deployment (#2395) * v3 SIN testnet deployment * Chore: rename to comply with #2392 * Chore: `forge fmt` --------- Co-authored-by: ChiTimesChi <88190723+ChiTimesChi@users.noreply.github.com> --- .../eth_sepolia/ExecutionFees.json | 6 +- .../eth_sepolia/ExecutionService.json | 304 ---------- .../eth_sepolia/InterchainClientV1.json | 14 +- .../deployments/eth_sepolia/InterchainDB.json | 49 +- .../deployments/eth_sepolia/PingPongApp.json | 462 ++++++++++++--- .../ProxyAdmin.SynapseExecutionServiceV1.json | 131 +++++ ...apseExecutionServiceV1.Implementation.json | 548 ++++++++++++++++++ .../SynapseExecutionServiceV1.json | 548 ++++++++++++++++++ .../eth_sepolia/SynapseGasOracleV1.json | 6 +- .../eth_sepolia/SynapseModule.json | 8 +- ...deableProxy.SynapseExecutionServiceV1.json | 115 ++++ .../deployments/op_sepolia/ExecutionFees.json | 6 +- .../op_sepolia/ExecutionService.json | 304 ---------- .../op_sepolia/InterchainClientV1.json | 14 +- .../deployments/op_sepolia/InterchainDB.json | 49 +- .../deployments/op_sepolia/PingPongApp.json | 462 ++++++++++++--- .../ProxyAdmin.SynapseExecutionServiceV1.json | 131 +++++ ...apseExecutionServiceV1.Implementation.json | 548 ++++++++++++++++++ .../op_sepolia/SynapseExecutionServiceV1.json | 548 ++++++++++++++++++ .../op_sepolia/SynapseGasOracleV1.json | 6 +- .../deployments/op_sepolia/SynapseModule.json | 8 +- ...deableProxy.SynapseExecutionServiceV1.json | 115 ++++ .../script/config/ConfigureAppV1.s.sol | 3 +- 23 files changed, 3498 insertions(+), 887 deletions(-) delete mode 100644 packages/contracts-communication/deployments/eth_sepolia/ExecutionService.json create mode 100644 packages/contracts-communication/deployments/eth_sepolia/ProxyAdmin.SynapseExecutionServiceV1.json create mode 100644 packages/contracts-communication/deployments/eth_sepolia/SynapseExecutionServiceV1.Implementation.json create mode 100644 packages/contracts-communication/deployments/eth_sepolia/SynapseExecutionServiceV1.json create mode 100644 packages/contracts-communication/deployments/eth_sepolia/TransparentUpgradeableProxy.SynapseExecutionServiceV1.json delete mode 100644 packages/contracts-communication/deployments/op_sepolia/ExecutionService.json create mode 100644 packages/contracts-communication/deployments/op_sepolia/ProxyAdmin.SynapseExecutionServiceV1.json create mode 100644 packages/contracts-communication/deployments/op_sepolia/SynapseExecutionServiceV1.Implementation.json create mode 100644 packages/contracts-communication/deployments/op_sepolia/SynapseExecutionServiceV1.json create mode 100644 packages/contracts-communication/deployments/op_sepolia/TransparentUpgradeableProxy.SynapseExecutionServiceV1.json diff --git a/packages/contracts-communication/deployments/eth_sepolia/ExecutionFees.json b/packages/contracts-communication/deployments/eth_sepolia/ExecutionFees.json index df5d5c97c8..3faea7c73d 100644 --- a/packages/contracts-communication/deployments/eth_sepolia/ExecutionFees.json +++ b/packages/contracts-communication/deployments/eth_sepolia/ExecutionFees.json @@ -1,9 +1,9 @@ { - "address": "0xD0fd41B442Be26B15B56b47A7F0dE47328521208", + "address": "0xc46bf3759CD170b90Eb71fad8958936d11FeDCdE", "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0xb5ab461abab69b657842699771f0c9d29f8f8b419bda9e7a62f7360c05e934f8", - "blockNumber": 5532078 + "hash": "0xefea31247fe62b885ebd7f9f75dfa1b29f147a7182ff6f0eebe4ba41044935e7", + "blockNumber": 5586578 }, "abi": [ { diff --git a/packages/contracts-communication/deployments/eth_sepolia/ExecutionService.json b/packages/contracts-communication/deployments/eth_sepolia/ExecutionService.json deleted file mode 100644 index c7220095b6..0000000000 --- a/packages/contracts-communication/deployments/eth_sepolia/ExecutionService.json +++ /dev/null @@ -1,304 +0,0 @@ -{ - "address": "0x47Db180bf3bE5AeE5Da3DfA9DAF1Ba9547A5E032", - "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", - "receipt": { - "hash": "0xa11e748ee82e3defbddc51272a887c85b4c2561c81acb0b1753230c09f817ee3", - "blockNumber": 5532083 - }, - "abi": [ - { - "type": "constructor", - "inputs": [ - { - "name": "owner_", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "executorEOA", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "gasOracle", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IGasOracle" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getExecutionFee", - "inputs": [ - { - "name": "dstChainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "txPayloadSize", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "options", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "interchainClient", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "requestExecution", - "inputs": [ - { - "name": "dstChainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "txPayloadSize", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "transactionId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "executionFee", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "options", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setExecutorEOA", - "inputs": [ - { - "name": "_executorEOA", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setGasOracle", - "inputs": [ - { - "name": "_gasOracle", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setInterchainClient", - "inputs": [ - { - "name": "_interchainClient", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "ExecutionRequested", - "inputs": [ - { - "name": "transactionId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "client", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ExecutorEOAUpdated", - "inputs": [ - { - "name": "executorEOA", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "GasOracleUpdated", - "inputs": [ - { - "name": "gasOracle", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "InterchainClientUpdated", - "inputs": [ - { - "name": "interchainClient", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "OptionsLib__IncorrectVersion", - "inputs": [ - { - "name": "version", - "type": "uint8", - "internalType": "uint8" - } - ] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/eth_sepolia/InterchainClientV1.json b/packages/contracts-communication/deployments/eth_sepolia/InterchainClientV1.json index 44011fa407..ceb3cfba6b 100644 --- a/packages/contracts-communication/deployments/eth_sepolia/InterchainClientV1.json +++ b/packages/contracts-communication/deployments/eth_sepolia/InterchainClientV1.json @@ -1,9 +1,9 @@ { - "address": "0x8E3866AC8cC85AaB553700F597e7dB8F6e00C976", - "constructorArgs": "0x00000000000000000000000010e9f6a00c832b21576be31842cecba4d7e2565f000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", + "address": "0x30d74341Eb0C556b592eb8b10ef8Fb158A2E7821", + "constructorArgs": "0x000000000000000000000000e8fb38f36d298bcac2b2a9f16a91ef1074dc1710000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0x2de771b81162677a3f069a11164039c2b3fb37560f9c92258a21239723649997", - "blockNumber": 5532068 + "hash": "0xb4843a9b29510f2fd6743544d98d0bfe3d57a5b7e530ec1d65855ed280ceaee3", + "blockNumber": 5586569 }, "abi": [ { @@ -203,9 +203,9 @@ "internalType": "bytes" }, { - "name": "message", - "type": "bytes", - "internalType": "bytes" + "name": "messageLen", + "type": "uint256", + "internalType": "uint256" } ], "outputs": [ diff --git a/packages/contracts-communication/deployments/eth_sepolia/InterchainDB.json b/packages/contracts-communication/deployments/eth_sepolia/InterchainDB.json index 96d0743fac..b900c5952b 100644 --- a/packages/contracts-communication/deployments/eth_sepolia/InterchainDB.json +++ b/packages/contracts-communication/deployments/eth_sepolia/InterchainDB.json @@ -1,9 +1,9 @@ { - "address": "0x10e9F6a00C832B21576be31842ceCBa4D7e2565F", + "address": "0xe8FB38F36D298BCac2b2A9F16A91ef1074DC1710", "constructorArgs": "0x", "receipt": { - "hash": "0xed623f486c6fafa0f01ce4fbc41b07d16ffd46f02bfd49f3617484d324200e64", - "blockNumber": 5532058 + "hash": "0x7f2c9ca2bfc416fcb33e480a852659c4e8535b01e0c3c8212e5aeeff34f66b0c", + "blockNumber": 5586167 }, "abi": [ { @@ -180,7 +180,7 @@ }, { "type": "function", - "name": "getEntry", + "name": "getEntryProof", "inputs": [ { "name": "dbNonce", @@ -195,43 +195,16 @@ ], "outputs": [ { - "name": "", - "type": "tuple", - "internalType": "struct InterchainEntry", - "components": [ - { - "name": "srcChainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "dbNonce", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "entryIndex", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "srcWriter", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "dataHash", - "type": "bytes32", - "internalType": "bytes32" - } - ] + "name": "proof", + "type": "bytes32[]", + "internalType": "bytes32[]" } ], "stateMutability": "view" }, { "type": "function", - "name": "getEntryProof", + "name": "getEntryValue", "inputs": [ { "name": "dbNonce", @@ -246,9 +219,9 @@ ], "outputs": [ { - "name": "proof", - "type": "bytes32[]", - "internalType": "bytes32[]" + "name": "", + "type": "bytes32", + "internalType": "bytes32" } ], "stateMutability": "view" diff --git a/packages/contracts-communication/deployments/eth_sepolia/PingPongApp.json b/packages/contracts-communication/deployments/eth_sepolia/PingPongApp.json index b18db3a281..84dac7c406 100644 --- a/packages/contracts-communication/deployments/eth_sepolia/PingPongApp.json +++ b/packages/contracts-communication/deployments/eth_sepolia/PingPongApp.json @@ -1,16 +1,16 @@ { - "address": "0xe60609A91C613c1ca4E91f2f992a5bF40ACedb34", + "address": "0x3E13F16b8aDc75b6C3C3196769d19351AcBA4627", "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0x2e6b84f7dc1c70e8513c6218639926bbf972e4d1b012fe222f81a021a89fefa3", - "blockNumber": 5532063 + "hash": "0xa45b3c0831dafa796e10ed0e9db9c119dc51e1afe031a851eaca0427f9b28401", + "blockNumber": 5586565 }, "abi": [ { "type": "constructor", "inputs": [ { - "name": "owner_", + "name": "admin", "type": "address", "internalType": "address" } @@ -21,6 +21,50 @@ "type": "receive", "stateMutability": "payable" }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "IC_GOVERNOR_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "addInterchainClient", + "inputs": [ + { + "name": "client", + "type": "address", + "internalType": "address" + }, + { + "name": "updateLatest", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, { "type": "function", "name": "addTrustedModule", @@ -107,20 +151,33 @@ }, { "type": "function", - "name": "getAppVersion", + "name": "getExecutionService", "inputs": [], "outputs": [ { "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "address", + "internalType": "address" } ], - "stateMutability": "pure" + "stateMutability": "view" }, { "type": "function", - "name": "getExecutionService", + "name": "getInterchainClients", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getLatestInterchainClient", "inputs": [], "outputs": [ { @@ -150,6 +207,38 @@ ], "stateMutability": "view" }, + { + "type": "function", + "name": "getLinkedAppEVM", + "inputs": [ + { + "name": "chainId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "linkedAppEVM", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getModules", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, { "type": "function", "name": "getPingFee", @@ -189,56 +278,97 @@ }, { "type": "function", - "name": "getReceivingModules", - "inputs": [], + "name": "getRoleAdmin", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], "outputs": [ { "name": "", - "type": "address[]", - "internalType": "address[]" + "type": "bytes32", + "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", - "name": "getSendingModules", - "inputs": [], + "name": "getRoleMember", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "index", + "type": "uint256", + "internalType": "uint256" + } + ], "outputs": [ { "name": "", - "type": "address[]", - "internalType": "address[]" + "type": "address", + "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", - "name": "interchain", - "inputs": [], + "name": "getRoleMemberCount", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], "outputs": [ { "name": "", - "type": "address", - "internalType": "address" + "type": "uint256", + "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", - "name": "isAllowedSender", + "name": "grantRole", "inputs": [ { - "name": "srcChainId", - "type": "uint256", - "internalType": "uint256" + "name": "role", + "type": "bytes32", + "internalType": "bytes32" }, { - "name": "sender", + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "hasRole", + "inputs": [ + { + "name": "role", "type": "bytes32", "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" } ], "outputs": [ @@ -288,16 +418,16 @@ }, { "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ + "name": "removeInterchainClient", + "inputs": [ { - "name": "", + "name": "client", "type": "address", "internalType": "address" } ], - "stateMutability": "view" + "outputs": [], + "stateMutability": "nonpayable" }, { "type": "function", @@ -314,8 +444,37 @@ }, { "type": "function", - "name": "renounceOwnership", - "inputs": [], + "name": "renounceRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "revokeRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], "outputs": [], "stateMutability": "nonpayable" }, @@ -372,10 +531,10 @@ }, { "type": "function", - "name": "setInterchainClient", + "name": "setLatestInterchainClient", "inputs": [ { - "name": "interchain_", + "name": "client", "type": "address", "internalType": "address" } @@ -403,16 +562,22 @@ }, { "type": "function", - "name": "transferOwnership", + "name": "supportsInterface", "inputs": [ { - "name": "newOwner", - "type": "address", - "internalType": "address" + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" } ], - "outputs": [], - "stateMutability": "nonpayable" + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" }, { "type": "function", @@ -487,10 +652,10 @@ }, { "type": "event", - "name": "InterchainClientSet", + "name": "InterchainClientAdded", "inputs": [ { - "name": "interchainClient", + "name": "client", "type": "address", "indexed": false, "internalType": "address" @@ -500,18 +665,25 @@ }, { "type": "event", - "name": "OwnershipTransferred", + "name": "InterchainClientRemoved", "inputs": [ { - "name": "previousOwner", + "name": "client", "type": "address", - "indexed": true, + "indexed": false, "internalType": "address" - }, + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LatestClientSet", + "inputs": [ { - "name": "newOwner", + "name": "client", "type": "address", - "indexed": true, + "indexed": false, "internalType": "address" } ], @@ -580,6 +752,81 @@ ], "anonymous": false }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "previousAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "newAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleGranted", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, { "type": "event", "name": "TrustedModuleAdded", @@ -606,6 +853,27 @@ ], "anonymous": false }, + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, { "type": "error", "name": "AddressInsufficientBalance", @@ -622,6 +890,22 @@ "name": "FailedInnerCall", "inputs": [] }, + { + "type": "error", + "name": "InterchainApp__AlreadyLatestClient", + "inputs": [ + { + "name": "client", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "InterchainApp__AppZeroAddress", + "inputs": [] + }, { "type": "error", "name": "InterchainApp__BalanceTooLow", @@ -632,7 +916,7 @@ "internalType": "uint256" }, { - "name": "expected", + "name": "required", "type": "uint256", "internalType": "uint256" } @@ -640,10 +924,10 @@ }, { "type": "error", - "name": "InterchainApp__CallerNotInterchainClient", + "name": "InterchainApp__ClientAlreadyAdded", "inputs": [ { - "name": "caller", + "name": "client", "type": "address", "internalType": "address" } @@ -651,9 +935,25 @@ }, { "type": "error", - "name": "InterchainApp__InterchainClientNotSet", + "name": "InterchainApp__InterchainClientZeroAddress", "inputs": [] }, + { + "type": "error", + "name": "InterchainApp__InvalidAppConfig", + "inputs": [ + { + "name": "requiredResponses", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "optimisticPeriod", + "type": "uint256", + "internalType": "uint256" + } + ] + }, { "type": "error", "name": "InterchainApp__ModuleAlreadyAdded", @@ -678,72 +978,66 @@ }, { "type": "error", - "name": "InterchainApp__ReceiverNotSet", - "inputs": [ - { - "name": "chainId", - "type": "uint256", - "internalType": "uint256" - } - ] + "name": "InterchainApp__ModuleZeroAddress", + "inputs": [] }, { "type": "error", - "name": "InterchainApp__SameChainId", + "name": "InterchainApp__NotEVMLinkedApp", "inputs": [ { - "name": "chainId", - "type": "uint256", - "internalType": "uint256" + "name": "linkedApp", + "type": "bytes32", + "internalType": "bytes32" } ] }, { "type": "error", - "name": "InterchainApp__SenderNotAllowed", + "name": "InterchainApp__NotInterchainClient", "inputs": [ { - "name": "srcChainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" + "name": "account", + "type": "address", + "internalType": "address" } ] }, { "type": "error", - "name": "OwnableInvalidOwner", + "name": "InterchainApp__ReceiverNotSet", "inputs": [ { - "name": "owner", - "type": "address", - "internalType": "address" + "name": "chainId", + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "error", - "name": "OwnableUnauthorizedAccount", + "name": "InterchainApp__SameChainId", "inputs": [ { - "name": "account", - "type": "address", - "internalType": "address" + "name": "chainId", + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "error", - "name": "PingPongApp__LowBalance", + "name": "InterchainApp__SenderNotAllowed", "inputs": [ { - "name": "required", + "name": "srcChainId", "type": "uint256", "internalType": "uint256" + }, + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" } ] } diff --git a/packages/contracts-communication/deployments/eth_sepolia/ProxyAdmin.SynapseExecutionServiceV1.json b/packages/contracts-communication/deployments/eth_sepolia/ProxyAdmin.SynapseExecutionServiceV1.json new file mode 100644 index 0000000000..f7b18e89f6 --- /dev/null +++ b/packages/contracts-communication/deployments/eth_sepolia/ProxyAdmin.SynapseExecutionServiceV1.json @@ -0,0 +1,131 @@ +{ + "address": "0x7C24f7a03b06836c13FE9D26965B4672a5cff784", + "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", + "receipt": { + "hash": "0xc00ae78a8a699ff4608195786e42e9435905aca900d5c38526d70a643afd8e03", + "blockNumber": 5586584 + }, + "abi": [ + { + "type": "constructor", + "inputs": [ + { + "name": "initialOwner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "UPGRADE_INTERFACE_VERSION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "upgradeAndCall", + "inputs": [ + { + "name": "proxy", + "type": "address", + "internalType": "contract ITransparentUpgradeableProxy" + }, + { + "name": "implementation", + "type": "address", + "internalType": "address" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + } + ] +} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/eth_sepolia/SynapseExecutionServiceV1.Implementation.json b/packages/contracts-communication/deployments/eth_sepolia/SynapseExecutionServiceV1.Implementation.json new file mode 100644 index 0000000000..51f663fa7a --- /dev/null +++ b/packages/contracts-communication/deployments/eth_sepolia/SynapseExecutionServiceV1.Implementation.json @@ -0,0 +1,548 @@ +{ + "address": "0x86ea76bDa086F9d7912651f766a5A4512c7062EE", + "constructorArgs": "0x", + "receipt": { + "hash": "0x0a8e2041f40fd1d4831ba3dcff554eed2701ca03db3dbc9f5197ba749e45474d", + "blockNumber": 5586583 + }, + "abi": [ + { + "type": "constructor", + "inputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "GOVERNOR_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "IC_CLIENT_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "executorEOA", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "gasOracle", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getExecutionFee", + "inputs": [ + { + "name": "dstChainId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "txPayloadSize", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "executionFee", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getRoleAdmin", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "globalMarkup", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "grantRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "hasRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { + "name": "admin", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "renounceRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "requestExecution", + "inputs": [ + { + "name": "dstChainId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "txPayloadSize", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "transactionId", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "executionFee", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "revokeRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setExecutorEOA", + "inputs": [ + { + "name": "executorEOA_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setGasOracle", + "inputs": [ + { + "name": "gasOracle_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setGlobalMarkup", + "inputs": [ + { + "name": "globalMarkup_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "supportsInterface", + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "ExecutionRequested", + "inputs": [ + { + "name": "transactionId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "client", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ExecutorEOASet", + "inputs": [ + { + "name": "executorEOA", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GasOracleSet", + "inputs": [ + { + "name": "gasOracle", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GlobalMarkupSet", + "inputs": [ + { + "name": "globalMarkup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "previousAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "newAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleGranted", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OptionsLib__IncorrectVersion", + "inputs": [ + { + "name": "version", + "type": "uint8", + "internalType": "uint8" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__FeeAmountTooLow", + "inputs": [ + { + "name": "actual", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "required", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__GasOracleNotSet", + "inputs": [] + }, + { + "type": "error", + "name": "SynapseExecutionService__OptionsVersionNotSupported", + "inputs": [ + { + "name": "version", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__ZeroAddress", + "inputs": [] + } + ] +} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/eth_sepolia/SynapseExecutionServiceV1.json b/packages/contracts-communication/deployments/eth_sepolia/SynapseExecutionServiceV1.json new file mode 100644 index 0000000000..b3f1cdc15a --- /dev/null +++ b/packages/contracts-communication/deployments/eth_sepolia/SynapseExecutionServiceV1.json @@ -0,0 +1,548 @@ +{ + "address": "0x33cc7c8cF7aef0322670baEb9812012A0B83B9C8", + "constructorArgs": "0x", + "receipt": { + "hash": "0xc00ae78a8a699ff4608195786e42e9435905aca900d5c38526d70a643afd8e03", + "blockNumber": 5586584 + }, + "abi": [ + { + "type": "constructor", + "inputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "GOVERNOR_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "IC_CLIENT_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "executorEOA", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "gasOracle", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getExecutionFee", + "inputs": [ + { + "name": "dstChainId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "txPayloadSize", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "executionFee", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getRoleAdmin", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "globalMarkup", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "grantRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "hasRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { + "name": "admin", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "renounceRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "requestExecution", + "inputs": [ + { + "name": "dstChainId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "txPayloadSize", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "transactionId", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "executionFee", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "revokeRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setExecutorEOA", + "inputs": [ + { + "name": "executorEOA_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setGasOracle", + "inputs": [ + { + "name": "gasOracle_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setGlobalMarkup", + "inputs": [ + { + "name": "globalMarkup_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "supportsInterface", + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "ExecutionRequested", + "inputs": [ + { + "name": "transactionId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "client", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ExecutorEOASet", + "inputs": [ + { + "name": "executorEOA", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GasOracleSet", + "inputs": [ + { + "name": "gasOracle", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GlobalMarkupSet", + "inputs": [ + { + "name": "globalMarkup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "previousAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "newAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleGranted", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OptionsLib__IncorrectVersion", + "inputs": [ + { + "name": "version", + "type": "uint8", + "internalType": "uint8" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__FeeAmountTooLow", + "inputs": [ + { + "name": "actual", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "required", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__GasOracleNotSet", + "inputs": [] + }, + { + "type": "error", + "name": "SynapseExecutionService__OptionsVersionNotSupported", + "inputs": [ + { + "name": "version", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__ZeroAddress", + "inputs": [] + } + ] +} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/eth_sepolia/SynapseGasOracleV1.json b/packages/contracts-communication/deployments/eth_sepolia/SynapseGasOracleV1.json index 13efbfd108..aedbbfb75a 100644 --- a/packages/contracts-communication/deployments/eth_sepolia/SynapseGasOracleV1.json +++ b/packages/contracts-communication/deployments/eth_sepolia/SynapseGasOracleV1.json @@ -1,9 +1,9 @@ { - "address": "0x54fB4657A2596f17a391182e82226993bd9db639", + "address": "0x960262363A4768466a2Da2469B0C6AE8841a21Ed", "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0xade57ca8823c65bb6048270c679be284371ae290627a011e2f16bba408a983e7", - "blockNumber": 5532097 + "hash": "0xc5616e0ac6811cb46efd2295b6a0449ad49d3e095ac5631e3903faf2d47167fb", + "blockNumber": 5586659 }, "abi": [ { diff --git a/packages/contracts-communication/deployments/eth_sepolia/SynapseModule.json b/packages/contracts-communication/deployments/eth_sepolia/SynapseModule.json index 6a9e9396dc..55e2756a66 100644 --- a/packages/contracts-communication/deployments/eth_sepolia/SynapseModule.json +++ b/packages/contracts-communication/deployments/eth_sepolia/SynapseModule.json @@ -1,9 +1,9 @@ { - "address": "0xC94ee5444605254F77672175E8bC90A74d4778BA", - "constructorArgs": "0x00000000000000000000000010e9f6a00c832b21576be31842cecba4d7e2565f000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", + "address": "0x3eac3aa2a506eDa3b2eB9bBfa430fd0CC646043D", + "constructorArgs": "0x000000000000000000000000e8fb38f36d298bcac2b2a9f16a91ef1074dc1710000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0x3997cf6a486018997369d17af0fa76c9de876a769cf1b57b3385131979221e37", - "blockNumber": 5532073 + "hash": "0x1a2bf67916b54794aaacc2444ec7c2f47cafa0b68646a508e65754e9c95c4191", + "blockNumber": 5586573 }, "abi": [ { diff --git a/packages/contracts-communication/deployments/eth_sepolia/TransparentUpgradeableProxy.SynapseExecutionServiceV1.json b/packages/contracts-communication/deployments/eth_sepolia/TransparentUpgradeableProxy.SynapseExecutionServiceV1.json new file mode 100644 index 0000000000..be20bd18f0 --- /dev/null +++ b/packages/contracts-communication/deployments/eth_sepolia/TransparentUpgradeableProxy.SynapseExecutionServiceV1.json @@ -0,0 +1,115 @@ +{ + "address": "0x33cc7c8cF7aef0322670baEb9812012A0B83B9C8", + "constructorArgs": "0x00000000000000000000000086ea76bda086f9d7912651f766a5a4512c7062ee000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000024c4d66de8000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e400000000000000000000000000000000000000000000000000000000", + "receipt": { + "hash": "0xc00ae78a8a699ff4608195786e42e9435905aca900d5c38526d70a643afd8e03", + "blockNumber": 5586584 + }, + "abi": [ + { + "type": "constructor", + "inputs": [ + { + "name": "_logic", + "type": "address", + "internalType": "address" + }, + { + "name": "initialOwner", + "type": "address", + "internalType": "address" + }, + { + "name": "_data", + "type": "bytes", + "internalType": "bytes" + } + ], + "stateMutability": "payable" + }, + { + "type": "fallback", + "stateMutability": "payable" + }, + { + "type": "event", + "name": "AdminChanged", + "inputs": [ + { + "name": "previousAdmin", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "newAdmin", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Upgraded", + "inputs": [ + { + "name": "implementation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967InvalidAdmin", + "inputs": [ + { + "name": "admin", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967InvalidImplementation", + "inputs": [ + { + "name": "implementation", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967NonPayable", + "inputs": [] + }, + { + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "ProxyDeniedAdminAccess", + "inputs": [] + } + ] +} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/op_sepolia/ExecutionFees.json b/packages/contracts-communication/deployments/op_sepolia/ExecutionFees.json index 00ae090785..93b38feed6 100644 --- a/packages/contracts-communication/deployments/op_sepolia/ExecutionFees.json +++ b/packages/contracts-communication/deployments/op_sepolia/ExecutionFees.json @@ -1,9 +1,9 @@ { - "address": "0x9E97773998dc14200DF9014585eE183c3FD73f01", + "address": "0xcAfE0f484c90Be5b442C45eFB23Db44506112276", "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0x7e93bd76783eb72d783948ac8b64c910d049f7b73536055a5fc490fb57449a7e", - "blockNumber": 9617334 + "hash": "0x26357829dfb10b4775c9919d0b85b4c27e328768a19f9d5aae957914070dbb20", + "blockNumber": 9969225 }, "abi": [ { diff --git a/packages/contracts-communication/deployments/op_sepolia/ExecutionService.json b/packages/contracts-communication/deployments/op_sepolia/ExecutionService.json deleted file mode 100644 index 5f25c03ab0..0000000000 --- a/packages/contracts-communication/deployments/op_sepolia/ExecutionService.json +++ /dev/null @@ -1,304 +0,0 @@ -{ - "address": "0x0854bDdE8875B820973cb540ef367F26f8A4Eb03", - "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", - "receipt": { - "hash": "0x69a4dc6931a47f04387d876560d46128ce7ff000cd413be241ad5c3a0eb26048", - "blockNumber": 9617349 - }, - "abi": [ - { - "type": "constructor", - "inputs": [ - { - "name": "owner_", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "executorEOA", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "gasOracle", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IGasOracle" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getExecutionFee", - "inputs": [ - { - "name": "dstChainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "txPayloadSize", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "options", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "interchainClient", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "requestExecution", - "inputs": [ - { - "name": "dstChainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "txPayloadSize", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "transactionId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "executionFee", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "options", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setExecutorEOA", - "inputs": [ - { - "name": "_executorEOA", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setGasOracle", - "inputs": [ - { - "name": "_gasOracle", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setInterchainClient", - "inputs": [ - { - "name": "_interchainClient", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "ExecutionRequested", - "inputs": [ - { - "name": "transactionId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "client", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ExecutorEOAUpdated", - "inputs": [ - { - "name": "executorEOA", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "GasOracleUpdated", - "inputs": [ - { - "name": "gasOracle", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "InterchainClientUpdated", - "inputs": [ - { - "name": "interchainClient", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "OptionsLib__IncorrectVersion", - "inputs": [ - { - "name": "version", - "type": "uint8", - "internalType": "uint8" - } - ] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/op_sepolia/InterchainClientV1.json b/packages/contracts-communication/deployments/op_sepolia/InterchainClientV1.json index ab3c3b4b82..4ad1f5e34c 100644 --- a/packages/contracts-communication/deployments/op_sepolia/InterchainClientV1.json +++ b/packages/contracts-communication/deployments/op_sepolia/InterchainClientV1.json @@ -1,9 +1,9 @@ { - "address": "0x128B2edd9c1496a0369202ed4b194B71FD7fA414", - "constructorArgs": "0x000000000000000000000000026f71b34b1ebc52942ad44adc2955aea6252c68000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", + "address": "0x409DD1f2B1a5a4C5351aEb0B13D3FC1Db69342aC", + "constructorArgs": "0x000000000000000000000000cd9903c5501e4afebb6b1c4e271afa3bae1da969000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0x9cf6ecd219675d3d96642b2da8af1757ce112b5d6696fd47042914cbc359757a", - "blockNumber": 9617304 + "hash": "0xce4fedbd8faa419657468d6231fc07c0372c6c1004c86500e8e4d38bdca7cf1e", + "blockNumber": 9964141 }, "abi": [ { @@ -203,9 +203,9 @@ "internalType": "bytes" }, { - "name": "message", - "type": "bytes", - "internalType": "bytes" + "name": "messageLen", + "type": "uint256", + "internalType": "uint256" } ], "outputs": [ diff --git a/packages/contracts-communication/deployments/op_sepolia/InterchainDB.json b/packages/contracts-communication/deployments/op_sepolia/InterchainDB.json index 2b6ec9c8ff..94b55d1f99 100644 --- a/packages/contracts-communication/deployments/op_sepolia/InterchainDB.json +++ b/packages/contracts-communication/deployments/op_sepolia/InterchainDB.json @@ -1,9 +1,9 @@ { - "address": "0x026F71B34b1eBC52942Ad44aDc2955AeA6252c68", + "address": "0xcD9903C5501E4afEbB6B1c4E271Afa3bae1DA969", "constructorArgs": "0x", "receipt": { - "hash": "0x308d698fba00fde7717a6705c9dcc1772c8272e0eb2541101486247edaac60ea", - "blockNumber": 9617275 + "hash": "0xccdc9f0c4f0f70ef2ec6f357b8ccf6dce77cfbe1aba64168b85e84a4d99cab30", + "blockNumber": 9964103 }, "abi": [ { @@ -180,7 +180,7 @@ }, { "type": "function", - "name": "getEntry", + "name": "getEntryProof", "inputs": [ { "name": "dbNonce", @@ -195,43 +195,16 @@ ], "outputs": [ { - "name": "", - "type": "tuple", - "internalType": "struct InterchainEntry", - "components": [ - { - "name": "srcChainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "dbNonce", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "entryIndex", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "srcWriter", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "dataHash", - "type": "bytes32", - "internalType": "bytes32" - } - ] + "name": "proof", + "type": "bytes32[]", + "internalType": "bytes32[]" } ], "stateMutability": "view" }, { "type": "function", - "name": "getEntryProof", + "name": "getEntryValue", "inputs": [ { "name": "dbNonce", @@ -246,9 +219,9 @@ ], "outputs": [ { - "name": "proof", - "type": "bytes32[]", - "internalType": "bytes32[]" + "name": "", + "type": "bytes32", + "internalType": "bytes32" } ], "stateMutability": "view" diff --git a/packages/contracts-communication/deployments/op_sepolia/PingPongApp.json b/packages/contracts-communication/deployments/op_sepolia/PingPongApp.json index fee59bbfcc..41fa042c9a 100644 --- a/packages/contracts-communication/deployments/op_sepolia/PingPongApp.json +++ b/packages/contracts-communication/deployments/op_sepolia/PingPongApp.json @@ -1,16 +1,16 @@ { - "address": "0xB9D09eED9b8310d21F6281103E97A26b3E97c6ec", + "address": "0xC6c3C734C1322556685A36D090d5ec1ef5f7A4a7", "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0x25b1330df9203767ec2060a4bec6f3a32861a93aecbf2a1f9016e3e0385eb763", - "blockNumber": 9617290 + "hash": "0xecb5283e30879a680cb508008a1885b7366ae7a1e1faeddc7e75ccf25f2b1df7", + "blockNumber": 9964122 }, "abi": [ { "type": "constructor", "inputs": [ { - "name": "owner_", + "name": "admin", "type": "address", "internalType": "address" } @@ -21,6 +21,50 @@ "type": "receive", "stateMutability": "payable" }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "IC_GOVERNOR_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "addInterchainClient", + "inputs": [ + { + "name": "client", + "type": "address", + "internalType": "address" + }, + { + "name": "updateLatest", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, { "type": "function", "name": "addTrustedModule", @@ -107,20 +151,33 @@ }, { "type": "function", - "name": "getAppVersion", + "name": "getExecutionService", "inputs": [], "outputs": [ { "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "address", + "internalType": "address" } ], - "stateMutability": "pure" + "stateMutability": "view" }, { "type": "function", - "name": "getExecutionService", + "name": "getInterchainClients", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getLatestInterchainClient", "inputs": [], "outputs": [ { @@ -150,6 +207,38 @@ ], "stateMutability": "view" }, + { + "type": "function", + "name": "getLinkedAppEVM", + "inputs": [ + { + "name": "chainId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "linkedAppEVM", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getModules", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, { "type": "function", "name": "getPingFee", @@ -189,56 +278,97 @@ }, { "type": "function", - "name": "getReceivingModules", - "inputs": [], + "name": "getRoleAdmin", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], "outputs": [ { "name": "", - "type": "address[]", - "internalType": "address[]" + "type": "bytes32", + "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", - "name": "getSendingModules", - "inputs": [], + "name": "getRoleMember", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "index", + "type": "uint256", + "internalType": "uint256" + } + ], "outputs": [ { "name": "", - "type": "address[]", - "internalType": "address[]" + "type": "address", + "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", - "name": "interchain", - "inputs": [], + "name": "getRoleMemberCount", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], "outputs": [ { "name": "", - "type": "address", - "internalType": "address" + "type": "uint256", + "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", - "name": "isAllowedSender", + "name": "grantRole", "inputs": [ { - "name": "srcChainId", - "type": "uint256", - "internalType": "uint256" + "name": "role", + "type": "bytes32", + "internalType": "bytes32" }, { - "name": "sender", + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "hasRole", + "inputs": [ + { + "name": "role", "type": "bytes32", "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" } ], "outputs": [ @@ -288,16 +418,16 @@ }, { "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ + "name": "removeInterchainClient", + "inputs": [ { - "name": "", + "name": "client", "type": "address", "internalType": "address" } ], - "stateMutability": "view" + "outputs": [], + "stateMutability": "nonpayable" }, { "type": "function", @@ -314,8 +444,37 @@ }, { "type": "function", - "name": "renounceOwnership", - "inputs": [], + "name": "renounceRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "revokeRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], "outputs": [], "stateMutability": "nonpayable" }, @@ -372,10 +531,10 @@ }, { "type": "function", - "name": "setInterchainClient", + "name": "setLatestInterchainClient", "inputs": [ { - "name": "interchain_", + "name": "client", "type": "address", "internalType": "address" } @@ -403,16 +562,22 @@ }, { "type": "function", - "name": "transferOwnership", + "name": "supportsInterface", "inputs": [ { - "name": "newOwner", - "type": "address", - "internalType": "address" + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" } ], - "outputs": [], - "stateMutability": "nonpayable" + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" }, { "type": "function", @@ -487,10 +652,10 @@ }, { "type": "event", - "name": "InterchainClientSet", + "name": "InterchainClientAdded", "inputs": [ { - "name": "interchainClient", + "name": "client", "type": "address", "indexed": false, "internalType": "address" @@ -500,18 +665,25 @@ }, { "type": "event", - "name": "OwnershipTransferred", + "name": "InterchainClientRemoved", "inputs": [ { - "name": "previousOwner", + "name": "client", "type": "address", - "indexed": true, + "indexed": false, "internalType": "address" - }, + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LatestClientSet", + "inputs": [ { - "name": "newOwner", + "name": "client", "type": "address", - "indexed": true, + "indexed": false, "internalType": "address" } ], @@ -580,6 +752,81 @@ ], "anonymous": false }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "previousAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "newAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleGranted", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, { "type": "event", "name": "TrustedModuleAdded", @@ -606,6 +853,27 @@ ], "anonymous": false }, + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, { "type": "error", "name": "AddressInsufficientBalance", @@ -622,6 +890,22 @@ "name": "FailedInnerCall", "inputs": [] }, + { + "type": "error", + "name": "InterchainApp__AlreadyLatestClient", + "inputs": [ + { + "name": "client", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "InterchainApp__AppZeroAddress", + "inputs": [] + }, { "type": "error", "name": "InterchainApp__BalanceTooLow", @@ -632,7 +916,7 @@ "internalType": "uint256" }, { - "name": "expected", + "name": "required", "type": "uint256", "internalType": "uint256" } @@ -640,10 +924,10 @@ }, { "type": "error", - "name": "InterchainApp__CallerNotInterchainClient", + "name": "InterchainApp__ClientAlreadyAdded", "inputs": [ { - "name": "caller", + "name": "client", "type": "address", "internalType": "address" } @@ -651,9 +935,25 @@ }, { "type": "error", - "name": "InterchainApp__InterchainClientNotSet", + "name": "InterchainApp__InterchainClientZeroAddress", "inputs": [] }, + { + "type": "error", + "name": "InterchainApp__InvalidAppConfig", + "inputs": [ + { + "name": "requiredResponses", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "optimisticPeriod", + "type": "uint256", + "internalType": "uint256" + } + ] + }, { "type": "error", "name": "InterchainApp__ModuleAlreadyAdded", @@ -678,72 +978,66 @@ }, { "type": "error", - "name": "InterchainApp__ReceiverNotSet", - "inputs": [ - { - "name": "chainId", - "type": "uint256", - "internalType": "uint256" - } - ] + "name": "InterchainApp__ModuleZeroAddress", + "inputs": [] }, { "type": "error", - "name": "InterchainApp__SameChainId", + "name": "InterchainApp__NotEVMLinkedApp", "inputs": [ { - "name": "chainId", - "type": "uint256", - "internalType": "uint256" + "name": "linkedApp", + "type": "bytes32", + "internalType": "bytes32" } ] }, { "type": "error", - "name": "InterchainApp__SenderNotAllowed", + "name": "InterchainApp__NotInterchainClient", "inputs": [ { - "name": "srcChainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" + "name": "account", + "type": "address", + "internalType": "address" } ] }, { "type": "error", - "name": "OwnableInvalidOwner", + "name": "InterchainApp__ReceiverNotSet", "inputs": [ { - "name": "owner", - "type": "address", - "internalType": "address" + "name": "chainId", + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "error", - "name": "OwnableUnauthorizedAccount", + "name": "InterchainApp__SameChainId", "inputs": [ { - "name": "account", - "type": "address", - "internalType": "address" + "name": "chainId", + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "error", - "name": "PingPongApp__LowBalance", + "name": "InterchainApp__SenderNotAllowed", "inputs": [ { - "name": "required", + "name": "srcChainId", "type": "uint256", "internalType": "uint256" + }, + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" } ] } diff --git a/packages/contracts-communication/deployments/op_sepolia/ProxyAdmin.SynapseExecutionServiceV1.json b/packages/contracts-communication/deployments/op_sepolia/ProxyAdmin.SynapseExecutionServiceV1.json new file mode 100644 index 0000000000..9f6f39408c --- /dev/null +++ b/packages/contracts-communication/deployments/op_sepolia/ProxyAdmin.SynapseExecutionServiceV1.json @@ -0,0 +1,131 @@ +{ + "address": "0x409d7B35d9B431BE47F88ed85Bd803F03FC0B8a0", + "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", + "receipt": { + "hash": "0xec5d2b59ad266ccd044163737103675314d5bba4de3eb6f7a9abb0e01d154822", + "blockNumber": 9964183 + }, + "abi": [ + { + "type": "constructor", + "inputs": [ + { + "name": "initialOwner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "UPGRADE_INTERFACE_VERSION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "upgradeAndCall", + "inputs": [ + { + "name": "proxy", + "type": "address", + "internalType": "contract ITransparentUpgradeableProxy" + }, + { + "name": "implementation", + "type": "address", + "internalType": "address" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + } + ] +} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/op_sepolia/SynapseExecutionServiceV1.Implementation.json b/packages/contracts-communication/deployments/op_sepolia/SynapseExecutionServiceV1.Implementation.json new file mode 100644 index 0000000000..a37f16df8a --- /dev/null +++ b/packages/contracts-communication/deployments/op_sepolia/SynapseExecutionServiceV1.Implementation.json @@ -0,0 +1,548 @@ +{ + "address": "0x5869d8406da435D92a5213d32EfB805eF0A616b4", + "constructorArgs": "0x", + "receipt": { + "hash": "0x30870e5548e262dab8d6d21fa1c1cd5d9ac09b427e57725b76197b6e8d47744e", + "blockNumber": 9964183 + }, + "abi": [ + { + "type": "constructor", + "inputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "GOVERNOR_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "IC_CLIENT_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "executorEOA", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "gasOracle", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getExecutionFee", + "inputs": [ + { + "name": "dstChainId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "txPayloadSize", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "executionFee", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getRoleAdmin", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "globalMarkup", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "grantRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "hasRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { + "name": "admin", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "renounceRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "requestExecution", + "inputs": [ + { + "name": "dstChainId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "txPayloadSize", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "transactionId", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "executionFee", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "revokeRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setExecutorEOA", + "inputs": [ + { + "name": "executorEOA_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setGasOracle", + "inputs": [ + { + "name": "gasOracle_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setGlobalMarkup", + "inputs": [ + { + "name": "globalMarkup_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "supportsInterface", + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "ExecutionRequested", + "inputs": [ + { + "name": "transactionId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "client", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ExecutorEOASet", + "inputs": [ + { + "name": "executorEOA", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GasOracleSet", + "inputs": [ + { + "name": "gasOracle", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GlobalMarkupSet", + "inputs": [ + { + "name": "globalMarkup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "previousAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "newAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleGranted", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OptionsLib__IncorrectVersion", + "inputs": [ + { + "name": "version", + "type": "uint8", + "internalType": "uint8" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__FeeAmountTooLow", + "inputs": [ + { + "name": "actual", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "required", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__GasOracleNotSet", + "inputs": [] + }, + { + "type": "error", + "name": "SynapseExecutionService__OptionsVersionNotSupported", + "inputs": [ + { + "name": "version", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__ZeroAddress", + "inputs": [] + } + ] +} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/op_sepolia/SynapseExecutionServiceV1.json b/packages/contracts-communication/deployments/op_sepolia/SynapseExecutionServiceV1.json new file mode 100644 index 0000000000..8d82e2b778 --- /dev/null +++ b/packages/contracts-communication/deployments/op_sepolia/SynapseExecutionServiceV1.json @@ -0,0 +1,548 @@ +{ + "address": "0x3782c0AF5F7A5f96fb9451c07377b1451aAcc135", + "constructorArgs": "0x", + "receipt": { + "hash": "0xec5d2b59ad266ccd044163737103675314d5bba4de3eb6f7a9abb0e01d154822", + "blockNumber": 9964183 + }, + "abi": [ + { + "type": "constructor", + "inputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "GOVERNOR_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "IC_CLIENT_ROLE", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "executorEOA", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "gasOracle", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getExecutionFee", + "inputs": [ + { + "name": "dstChainId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "txPayloadSize", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "executionFee", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getRoleAdmin", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "globalMarkup", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "grantRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "hasRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { + "name": "admin", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "renounceRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "requestExecution", + "inputs": [ + { + "name": "dstChainId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "txPayloadSize", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "transactionId", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "executionFee", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "revokeRole", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setExecutorEOA", + "inputs": [ + { + "name": "executorEOA_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setGasOracle", + "inputs": [ + { + "name": "gasOracle_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setGlobalMarkup", + "inputs": [ + { + "name": "globalMarkup_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "supportsInterface", + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "ExecutionRequested", + "inputs": [ + { + "name": "transactionId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "client", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ExecutorEOASet", + "inputs": [ + { + "name": "executorEOA", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GasOracleSet", + "inputs": [ + { + "name": "gasOracle", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GlobalMarkupSet", + "inputs": [ + { + "name": "globalMarkup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "previousAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "newAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleGranted", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OptionsLib__IncorrectVersion", + "inputs": [ + { + "name": "version", + "type": "uint8", + "internalType": "uint8" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__FeeAmountTooLow", + "inputs": [ + { + "name": "actual", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "required", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__GasOracleNotSet", + "inputs": [] + }, + { + "type": "error", + "name": "SynapseExecutionService__OptionsVersionNotSupported", + "inputs": [ + { + "name": "version", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SynapseExecutionService__ZeroAddress", + "inputs": [] + } + ] +} \ No newline at end of file diff --git a/packages/contracts-communication/deployments/op_sepolia/SynapseGasOracleV1.json b/packages/contracts-communication/deployments/op_sepolia/SynapseGasOracleV1.json index 7e923ad3d8..8759589686 100644 --- a/packages/contracts-communication/deployments/op_sepolia/SynapseGasOracleV1.json +++ b/packages/contracts-communication/deployments/op_sepolia/SynapseGasOracleV1.json @@ -1,9 +1,9 @@ { - "address": "0x861c6faDE5cdB0a671A884FEa7d21Cf513162254", + "address": "0x89912F5004F9D865351CC5A38F021c91070fa0F7", "constructorArgs": "0x000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0x47e45bab10f18ecfde2db41affe60b9f32e0ccaac454700b82d7f927422526eb", - "blockNumber": 9617363 + "hash": "0x110cb6520d8d113e93643971e07d3fc6785a344f1b400d43b3721f8777ba4516", + "blockNumber": 9964221 }, "abi": [ { diff --git a/packages/contracts-communication/deployments/op_sepolia/SynapseModule.json b/packages/contracts-communication/deployments/op_sepolia/SynapseModule.json index c5a3032621..37a22ff2a1 100644 --- a/packages/contracts-communication/deployments/op_sepolia/SynapseModule.json +++ b/packages/contracts-communication/deployments/op_sepolia/SynapseModule.json @@ -1,9 +1,9 @@ { - "address": "0x79D5c202d2243B7d405eB1b98c79595A692bfD0E", - "constructorArgs": "0x000000000000000000000000026f71b34b1ebc52942ad44adc2955aea6252c68000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", + "address": "0xaff8E40aA053905bB80d3f25a725196608737D6e", + "constructorArgs": "0x000000000000000000000000cd9903c5501e4afebb6b1c4e271afa3bae1da969000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e4", "receipt": { - "hash": "0xdd22fbbd406749b38a6c15e4ab27c4b0e4d4c9b12dffd7edc57786ecd6713fc1", - "blockNumber": 9617319 + "hash": "0xacbcc38f29d46b5f18dd800b983d06db615ea3c8ef1aec14412271906e4dc714", + "blockNumber": 9964160 }, "abi": [ { diff --git a/packages/contracts-communication/deployments/op_sepolia/TransparentUpgradeableProxy.SynapseExecutionServiceV1.json b/packages/contracts-communication/deployments/op_sepolia/TransparentUpgradeableProxy.SynapseExecutionServiceV1.json new file mode 100644 index 0000000000..d3381bbc68 --- /dev/null +++ b/packages/contracts-communication/deployments/op_sepolia/TransparentUpgradeableProxy.SynapseExecutionServiceV1.json @@ -0,0 +1,115 @@ +{ + "address": "0x3782c0AF5F7A5f96fb9451c07377b1451aAcc135", + "constructorArgs": "0x0000000000000000000000005869d8406da435d92a5213d32efb805ef0a616b4000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000024c4d66de8000000000000000000000000e7353bedc72d29f99d6ca5cde69f807cce5d57e400000000000000000000000000000000000000000000000000000000", + "receipt": { + "hash": "0xec5d2b59ad266ccd044163737103675314d5bba4de3eb6f7a9abb0e01d154822", + "blockNumber": 9964183 + }, + "abi": [ + { + "type": "constructor", + "inputs": [ + { + "name": "_logic", + "type": "address", + "internalType": "address" + }, + { + "name": "initialOwner", + "type": "address", + "internalType": "address" + }, + { + "name": "_data", + "type": "bytes", + "internalType": "bytes" + } + ], + "stateMutability": "payable" + }, + { + "type": "fallback", + "stateMutability": "payable" + }, + { + "type": "event", + "name": "AdminChanged", + "inputs": [ + { + "name": "previousAdmin", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "newAdmin", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Upgraded", + "inputs": [ + { + "name": "implementation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967InvalidAdmin", + "inputs": [ + { + "name": "admin", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967InvalidImplementation", + "inputs": [ + { + "name": "implementation", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967NonPayable", + "inputs": [] + }, + { + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "ProxyDeniedAdminAccess", + "inputs": [] + } + ] +} \ No newline at end of file diff --git a/packages/contracts-communication/script/config/ConfigureAppV1.s.sol b/packages/contracts-communication/script/config/ConfigureAppV1.s.sol index 3ef427898e..f615304f3c 100644 --- a/packages/contracts-communication/script/config/ConfigureAppV1.s.sol +++ b/packages/contracts-communication/script/config/ConfigureAppV1.s.sol @@ -115,7 +115,8 @@ abstract contract ConfigureAppV1 is SynapseScript { function setExecutionService() internal virtual { printLog("Setting execution service"); - address executionService = getDeploymentAddress({contractName: "ExecutionService", revertIfNotFound: true}); + address executionService = + getDeploymentAddress({contractName: "SynapseExecutionServiceV1", revertIfNotFound: true}); if (app.getExecutionService() != executionService) { app.setExecutionService(executionService); printSuccessWithIndent(string.concat("Execution service set to ", vm.toString(executionService)));