From f9fa721e2f947240b509dd87fd6b6d16e10504a4 Mon Sep 17 00:00:00 2001 From: aureliusbtc <82057759+aureliusbtc@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:07:25 -0500 Subject: [PATCH] add two more chains --- .../deployments/arb_sepolia/Destination.json | 4 +- .../deployments/arb_sepolia/GasOracle.json | 4 +- .../deployments/arb_sepolia/LightInbox.json | 2 +- .../deployments/arb_sepolia/LightManager.json | 2 +- .../deployments/arb_sepolia/Origin.json | 4 +- .../arb_sepolia/PingPongClient.json | 4 +- .../deployments/arb_sepolia/TestClient.json | 4 +- .../deployments/chain_a/BondingManager.json | 949 ++++++++++++++ .../deployments/chain_a/CREATE3Factory.json | 54 + .../deployments/chain_a/Destination.json | 781 ++++++++++++ .../deployments/chain_a/GasOracle.json | 409 ++++++ .../deployments/chain_a/Inbox.json | 1134 +++++++++++++++++ .../deployments/chain_a/Origin.json | 661 ++++++++++ .../{polygon => chain_a}/PingPongClient.json | 4 +- .../deployments/chain_a/Summit.json | 881 +++++++++++++ .../{polygon => chain_a}/TestClient.json | 4 +- .../deployments/chain_b/CREATE3Factory.json | 54 + .../deployments/chain_b/Destination.json | 781 ++++++++++++ .../deployments/chain_b/GasOracle.json | 409 ++++++ .../deployments/chain_b/LightInbox.json | 890 +++++++++++++ .../deployments/chain_b/LightManager.json | 732 +++++++++++ .../deployments/chain_b/Origin.json | 661 ++++++++++ .../deployments/chain_b/PingPongClient.json | 279 ++++ .../deployments/chain_b/TestClient.json | 229 ++++ .../deployments/chain_c/CREATE3Factory.json | 54 + .../deployments/chain_c/Destination.json | 781 ++++++++++++ .../deployments/chain_c/GasOracle.json | 409 ++++++ .../deployments/chain_c/LightInbox.json | 890 +++++++++++++ .../deployments/chain_c/LightManager.json | 732 +++++++++++ .../deployments/chain_c/Origin.json | 661 ++++++++++ .../deployments/chain_c/PingPongClient.json | 279 ++++ .../deployments/chain_c/TestClient.json | 229 ++++ .../optimism_sepolia/Destination.json | 4 +- .../optimism_sepolia/GasOracle.json | 4 +- .../optimism_sepolia/LightInbox.json | 2 +- .../optimism_sepolia/LightManager.json | 2 +- .../deployments/optimism_sepolia/Origin.json | 4 +- .../optimism_sepolia/PingPongClient.json | 4 +- .../optimism_sepolia/TestClient.json | 4 +- .../deployments/polygon_mumbai/CREATE3.json | 5 + .../Destination.json | 4 +- .../GasOracle.json | 4 +- .../LightInbox.json | 4 +- .../LightManager.json | 4 +- .../{polygon => polygon_mumbai}/Origin.json | 4 +- .../polygon_mumbai/PingPongClient.json | 279 ++++ .../polygon_mumbai/TestClient.json | 229 ++++ .../deployments/scroll_sepolia/CREATE3.json | 5 + .../scroll_sepolia/Destination.json | 768 +++++++++++ .../deployments/scroll_sepolia/GasOracle.json | 396 ++++++ .../scroll_sepolia/LightInbox.json | 877 +++++++++++++ .../scroll_sepolia/LightManager.json | 719 +++++++++++ .../deployments/scroll_sepolia/Origin.json | 679 ++++++++++ .../scroll_sepolia/PingPongClient.json | 279 ++++ .../scroll_sepolia/TestClient.json | 229 ++++ .../deployments/sepolia/Destination.json | 4 +- .../deployments/sepolia/GasOracle.json | 4 +- .../deployments/sepolia/LightInbox.json | 2 +- .../deployments/sepolia/LightManager.json | 2 +- .../deployments/sepolia/Origin.json | 4 +- .../deployments/sepolia/PingPongClient.json | 4 +- .../deployments/sepolia/TestClient.json | 4 +- .../synapse_sepolia/BondingManager.json | 2 +- .../synapse_sepolia/Destination.json | 4 +- .../synapse_sepolia/GasOracle.json | 4 +- .../deployments/synapse_sepolia/Inbox.json | 2 +- .../deployments/synapse_sepolia/Origin.json | 4 +- .../synapse_sepolia/PingPongClient.json | 4 +- .../deployments/synapse_sepolia/Summit.json | 4 +- .../synapse_sepolia/TestClient.json | 4 +- packages/contracts-core/foundry.toml | 2 + .../script/DeployClients003.s.sol | 2 +- .../script/DeployMessaging003Base.s.sol | 2 +- .../script/configs/Messaging003.dc.json | 4 +- .../configs/Messaging003AgentRoot.dc.json | 30 +- 75 files changed, 17495 insertions(+), 77 deletions(-) create mode 100644 packages/contracts-core/deployments/chain_a/BondingManager.json create mode 100644 packages/contracts-core/deployments/chain_a/CREATE3Factory.json create mode 100644 packages/contracts-core/deployments/chain_a/Destination.json create mode 100644 packages/contracts-core/deployments/chain_a/GasOracle.json create mode 100644 packages/contracts-core/deployments/chain_a/Inbox.json create mode 100644 packages/contracts-core/deployments/chain_a/Origin.json rename packages/contracts-core/deployments/{polygon => chain_a}/PingPongClient.json (96%) create mode 100644 packages/contracts-core/deployments/chain_a/Summit.json rename packages/contracts-core/deployments/{polygon => chain_a}/TestClient.json (95%) create mode 100644 packages/contracts-core/deployments/chain_b/CREATE3Factory.json create mode 100644 packages/contracts-core/deployments/chain_b/Destination.json create mode 100644 packages/contracts-core/deployments/chain_b/GasOracle.json create mode 100644 packages/contracts-core/deployments/chain_b/LightInbox.json create mode 100644 packages/contracts-core/deployments/chain_b/LightManager.json create mode 100644 packages/contracts-core/deployments/chain_b/Origin.json create mode 100644 packages/contracts-core/deployments/chain_b/PingPongClient.json create mode 100644 packages/contracts-core/deployments/chain_b/TestClient.json create mode 100644 packages/contracts-core/deployments/chain_c/CREATE3Factory.json create mode 100644 packages/contracts-core/deployments/chain_c/Destination.json create mode 100644 packages/contracts-core/deployments/chain_c/GasOracle.json create mode 100644 packages/contracts-core/deployments/chain_c/LightInbox.json create mode 100644 packages/contracts-core/deployments/chain_c/LightManager.json create mode 100644 packages/contracts-core/deployments/chain_c/Origin.json create mode 100644 packages/contracts-core/deployments/chain_c/PingPongClient.json create mode 100644 packages/contracts-core/deployments/chain_c/TestClient.json create mode 100644 packages/contracts-core/deployments/polygon_mumbai/CREATE3.json rename packages/contracts-core/deployments/{polygon => polygon_mumbai}/Destination.json (98%) rename packages/contracts-core/deployments/{polygon => polygon_mumbai}/GasOracle.json (98%) rename packages/contracts-core/deployments/{polygon => polygon_mumbai}/LightInbox.json (99%) rename packages/contracts-core/deployments/{polygon => polygon_mumbai}/LightManager.json (99%) rename packages/contracts-core/deployments/{polygon => polygon_mumbai}/Origin.json (98%) create mode 100644 packages/contracts-core/deployments/polygon_mumbai/PingPongClient.json create mode 100644 packages/contracts-core/deployments/polygon_mumbai/TestClient.json create mode 100644 packages/contracts-core/deployments/scroll_sepolia/CREATE3.json create mode 100644 packages/contracts-core/deployments/scroll_sepolia/Destination.json create mode 100644 packages/contracts-core/deployments/scroll_sepolia/GasOracle.json create mode 100644 packages/contracts-core/deployments/scroll_sepolia/LightInbox.json create mode 100644 packages/contracts-core/deployments/scroll_sepolia/LightManager.json create mode 100644 packages/contracts-core/deployments/scroll_sepolia/Origin.json create mode 100644 packages/contracts-core/deployments/scroll_sepolia/PingPongClient.json create mode 100644 packages/contracts-core/deployments/scroll_sepolia/TestClient.json diff --git a/packages/contracts-core/deployments/arb_sepolia/Destination.json b/packages/contracts-core/deployments/arb_sepolia/Destination.json index 6a55e29e01..a016bf3c72 100644 --- a/packages/contracts-core/deployments/arb_sepolia/Destination.json +++ b/packages/contracts-core/deployments/arb_sepolia/Destination.json @@ -1,6 +1,6 @@ { - "address": "0xDA19cEC050314FA1e95167C39f91D10819e13193", - "args": "0x0000000000000000000000000000000000000000000000000000000000066eee000000000000000000000000b54af0013d4afdc193be447ff0aa43e4dd9e6fdb0000000000000000000000005b6fa064be102fdfbe46ca076a2dab8e34bd2c7c", + "address": "0x981661205Efd6d54A2e04f0c59137F593694D9FB", + "args": "0x0000000000000000000000000000000000000000000000000000000000066eee0000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd7", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/arb_sepolia/GasOracle.json b/packages/contracts-core/deployments/arb_sepolia/GasOracle.json index b6016a214a..6d4f7c65e3 100644 --- a/packages/contracts-core/deployments/arb_sepolia/GasOracle.json +++ b/packages/contracts-core/deployments/arb_sepolia/GasOracle.json @@ -1,6 +1,6 @@ { - "address": "0x04212B732EBd603011fEc0867d5d928850463DA4", - "args": "0x0000000000000000000000000000000000000000000000000000000000066eee000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x6880394545cbbb2e1c5c231C17210147Da7Ef50e", + "args": "0x0000000000000000000000000000000000000000000000000000000000066eee000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/arb_sepolia/LightInbox.json b/packages/contracts-core/deployments/arb_sepolia/LightInbox.json index 1834f9f4f3..803f50892d 100644 --- a/packages/contracts-core/deployments/arb_sepolia/LightInbox.json +++ b/packages/contracts-core/deployments/arb_sepolia/LightInbox.json @@ -1,5 +1,5 @@ { - "address": "0x5b6Fa064bE102fdFBE46CA076a2daB8E34bd2C7c", + "address": "0x090d03eCAa33dF3b524eD6952eBe2C8E43552BD7", "args": "0x0000000000000000000000000000000000000000000000000000000000066eee", "abi": [ { diff --git a/packages/contracts-core/deployments/arb_sepolia/LightManager.json b/packages/contracts-core/deployments/arb_sepolia/LightManager.json index e0627695df..652b137f34 100644 --- a/packages/contracts-core/deployments/arb_sepolia/LightManager.json +++ b/packages/contracts-core/deployments/arb_sepolia/LightManager.json @@ -1,5 +1,5 @@ { - "address": "0xB54af0013D4aFdC193BE447FF0aA43e4dD9E6FDB", + "address": "0x9F0A534a3e68978dc0f049D14bc013aBD02a675b", "args": "0x0000000000000000000000000000000000000000000000000000000000066eee", "abi": [ { diff --git a/packages/contracts-core/deployments/arb_sepolia/Origin.json b/packages/contracts-core/deployments/arb_sepolia/Origin.json index 1957232b13..3774879618 100644 --- a/packages/contracts-core/deployments/arb_sepolia/Origin.json +++ b/packages/contracts-core/deployments/arb_sepolia/Origin.json @@ -1,6 +1,6 @@ { - "address": "0x26FeD341E2D3db703dAF62Ec4F54Ce33e8aF31c8", - "args": "0x0000000000000000000000000000000000000000000000000000000000066eee000000000000000000000000b54af0013d4afdc193be447ff0aa43e4dd9e6fdb0000000000000000000000005b6fa064be102fdfbe46ca076a2dab8e34bd2c7c00000000000000000000000004212b732ebd603011fec0867d5d928850463da4", + "address": "0xfF1B751941C3A395a0910D7722037Ac062Ea9c39", + "args": "0x0000000000000000000000000000000000000000000000000000000000066eee0000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd70000000000000000000000006880394545cbbb2e1c5c231c17210147da7ef50e", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/arb_sepolia/PingPongClient.json b/packages/contracts-core/deployments/arb_sepolia/PingPongClient.json index 9ef60d8b6e..defdcb3220 100644 --- a/packages/contracts-core/deployments/arb_sepolia/PingPongClient.json +++ b/packages/contracts-core/deployments/arb_sepolia/PingPongClient.json @@ -1,6 +1,6 @@ { - "address": "0xEAfAdbC99226d1B5b3694775734cd94B0858e33B", - "args": "0x00000000000000000000000026fed341e2d3db703daf62ec4f54ce33e8af31c8000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x54cFFF85593eF333094dffa1677fd291f4AdF1e3", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/arb_sepolia/TestClient.json b/packages/contracts-core/deployments/arb_sepolia/TestClient.json index e601165dbd..c4c7bef1ab 100644 --- a/packages/contracts-core/deployments/arb_sepolia/TestClient.json +++ b/packages/contracts-core/deployments/arb_sepolia/TestClient.json @@ -1,6 +1,6 @@ { - "address": "0x667EdCA7336708c73b556A768D01EBdFb06ECE26", - "args": "0x00000000000000000000000026fed341e2d3db703daf62ec4f54ce33e8af31c8000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x36FD327eA1fB51aD88435dCe9FBe14293b155D4F", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/chain_a/BondingManager.json b/packages/contracts-core/deployments/chain_a/BondingManager.json new file mode 100644 index 0000000000..d4414f2737 --- /dev/null +++ b/packages/contracts-core/deployments/chain_a/BondingManager.json @@ -0,0 +1,949 @@ +{ + "address": "0x27006519C5786863fAE35612Da9E0f0622ff8c58", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AgentCantBeAdded", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotActive", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotActiveNorUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotFraudulent", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotSummit", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeAlreadyResolved", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeNotOpened", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeNotStuck", + "type": "error" + }, + { + "inputs": [], + "name": "GuardInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "LeafNotProven", + "type": "error" + }, + { + "inputs": [], + "name": "MerkleTreeFull", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeSynapseDomain", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "SlashAgentOptimisticPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "SynapseDomainForbidden", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "disputeIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "DisputeOpened", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "disputeIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "rivalIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "fraudProver", + "type": "address" + } + ], + "name": "DisputeResolved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "newRoot", + "type": "bytes32" + } + ], + "name": "RootUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "StatusUpdated", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "name": "addAgent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentLeaf", + "outputs": [ + { + "internalType": "bytes32", + "name": "leaf", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "agentRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "allLeafs", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "leafs", + "type": "bytes32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "name": "completeSlashing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "name": "completeUnstaking", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "disputeStatus", + "outputs": [ + { + "internalType": "enum DisputeFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "address", + "name": "rival", + "type": "address" + }, + { + "internalType": "address", + "name": "fraudProver", + "type": "address" + }, + { + "internalType": "uint256", + "name": "disputePtr", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getActiveAgents", + "outputs": [ + { + "internalType": "address[]", + "name": "agents", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getDispute", + "outputs": [ + { + "internalType": "address", + "name": "guard", + "type": "address" + }, + { + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "internalType": "address", + "name": "slashedAgent", + "type": "address" + }, + { + "internalType": "address", + "name": "fraudProver", + "type": "address" + }, + { + "internalType": "bytes", + "name": "reportPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "reportSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getDisputesAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "indexFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "getLeafs", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "leafs", + "type": "bytes32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "getProof", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + }, + { + "internalType": "address", + "name": "summit_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "name": "initiateUnstaking", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "leafsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "msgOrigin", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "address", + "name": "prover", + "type": "address" + } + ], + "name": "remoteSlashAgent", + "outputs": [ + { + "internalType": "bytes4", + "name": "magicValue", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "slashedAgent", + "type": "address" + } + ], + "name": "resolveStuckDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "address", + "name": "prover", + "type": "address" + } + ], + "name": "slashAgent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "summit", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawTips", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_a/CREATE3Factory.json b/packages/contracts-core/deployments/chain_a/CREATE3Factory.json new file mode 100644 index 0000000000..497b31bbf8 --- /dev/null +++ b/packages/contracts-core/deployments/chain_a/CREATE3Factory.json @@ -0,0 +1,54 @@ +{ + "address": "0x6438CB36cb18520774EfC7A172410D8BBBe9a428", + "args": "0x3078", + "abi": [ + { + "inputs": [ + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "creationCode", + "type": "bytes" + } + ], + "name": "deploy", + "outputs": [ + { + "internalType": "address", + "name": "deployed", + "type": "address" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "deployer", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "getDeployed", + "outputs": [ + { + "internalType": "address", + "name": "deployed", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_a/Destination.json b/packages/contracts-core/deployments/chain_a/Destination.json new file mode 100644 index 0000000000..334ff6817d --- /dev/null +++ b/packages/contracts-core/deployments/chain_a/Destination.json @@ -0,0 +1,781 @@ +{ + "address": "0x7219284B26F44B2A584827034422a33450635f7A", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000027006519c5786863fae35612da9e0f0622ff8c580000000000000000000000002eb68a0c21413aa78055f6f7f262de56979afbea", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AlreadyExecuted", + "type": "error" + }, + { + "inputs": [], + "name": "AlreadyFailed", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "DuplicatedSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "FlagOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "GasLimitTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "GasSuppliedTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectDestinationDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectMagicValue", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "MessageOptimisticPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedBaseMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallData", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallDataPrefix", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + } + ], + "name": "AgentRootAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "remoteDomain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "name": "Executed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + } + ], + "name": "TipsRecorded", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "sigIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + }, + { + "internalType": "ChainGas[]", + "name": "snapGas", + "type": "uint128[]" + } + ], + "name": "acceptAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "attestationsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destStatus", + "outputs": [ + { + "internalType": "uint40", + "name": "snapRootTime", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "agentRootTime", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "msgPayload", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "originProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "uint64", + "name": "gasLimit", + "type": "uint64" + } + ], + "name": "execute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAttestation", + "outputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "snapRoot", + "type": "bytes32" + } + ], + "name": "getAttestationNonce", + "outputs": [ + { + "internalType": "uint32", + "name": "attNonce", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getGasData", + "outputs": [ + { + "internalType": "GasData", + "name": "gasData", + "type": "uint96" + }, + { + "internalType": "uint256", + "name": "dataMaturity", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "name": "isValidReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "name": "messageReceipt", + "outputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "name": "messageStatus", + "outputs": [ + { + "internalType": "enum MessageStatus", + "name": "status", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "nextAgentRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "passAgentRoot", + "outputs": [ + { + "internalType": "bool", + "name": "rootPassed", + "type": "bool" + }, + { + "internalType": "bool", + "name": "rootPending", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_a/GasOracle.json b/packages/contracts-core/deployments/chain_a/GasOracle.json new file mode 100644 index 0000000000..d0f7bfbbdc --- /dev/null +++ b/packages/contracts-core/deployments/chain_a/GasOracle.json @@ -0,0 +1,409 @@ +{ + "address": "0x542eE8AF82D654a401496B3f65e631873f2c9Cd0", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000007219284b26f44b2a584827034422a33450635f7a", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "IncorrectDestinationDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "LocalGasDataNotSet", + "type": "error" + }, + { + "inputs": [], + "name": "RemoteGasDataNotSet", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paddedGasData", + "type": "uint256" + } + ], + "name": "GasDataUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "GAS_DATA_DECREASED_OPTIMISTIC_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GAS_DATA_INCREASED_OPTIMISTIC_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getDecodedGasData", + "outputs": [ + { + "internalType": "uint256", + "name": "gasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dataPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "execBuffer", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amortAttCost", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "etherPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "markup", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getGasData", + "outputs": [ + { + "internalType": "uint256", + "name": "paddedGasData", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "contentLength", + "type": "uint256" + } + ], + "name": "getMinimumTips", + "outputs": [ + { + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "gasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dataPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "execBuffer", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amortAttCost", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "etherPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "markup", + "type": "uint256" + } + ], + "name": "setGasData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "summitTipWei", + "type": "uint256" + } + ], + "name": "setSummitTip", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "updateGasData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_a/Inbox.json b/packages/contracts-core/deployments/chain_a/Inbox.json new file mode 100644 index 0000000000..46cefb0092 --- /dev/null +++ b/packages/contracts-core/deployments/chain_a/Inbox.json @@ -0,0 +1,1134 @@ +{ + "address": "0x2eB68A0C21413aA78055F6F7F262De56979aFBEa", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AgentNotActive", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotActiveNorUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotGuard", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotNotary", + "type": "error" + }, + { + "inputs": [], + "name": "AgentUnknown", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotProof", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectTipsProof", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeSynapseDomain", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedSnapshot", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "AttestationAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "InvalidAttestation", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "arPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "arSignature", + "type": "bytes" + } + ], + "name": "InvalidAttestationReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "InvalidReceipt", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "rrPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "InvalidReceiptReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "srPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + } + ], + "name": "InvalidStateReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "InvalidStateWithAttestation", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "InvalidStateWithSnapshot", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "ReceiptAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "SnapshotAccepted", + "type": "event" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getGuardReport", + "outputs": [ + { + "internalType": "bytes", + "name": "statementPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "reportSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getReportsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getStoredSignature", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + }, + { + "internalType": "address", + "name": "summit_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "attNotaryIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "attNonce", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "name": "passReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "headerHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "bodyHash", + "type": "bytes32" + } + ], + "name": "submitReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "submitReceiptReport", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "submitSnapshot", + "outputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot_", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "snapGas", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithSnapshot", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithSnapshotProof", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "summit", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "isValidAttestation", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "arSignature", + "type": "bytes" + } + ], + "name": "verifyAttestationReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "verifyReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReceipt", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "verifyReceiptReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + } + ], + "name": "verifyStateReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithSnapshot", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithSnapshotProof", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_a/Origin.json b/packages/contracts-core/deployments/chain_a/Origin.json new file mode 100644 index 0000000000..85d89c0278 --- /dev/null +++ b/packages/contracts-core/deployments/chain_a/Origin.json @@ -0,0 +1,661 @@ +{ + "address": "0xD755a6D98C4557c66ebbD9D76f1BEbC48e84afa0", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000027006519c5786863fae35612da9e0f0622ff8c580000000000000000000000002eb68a0c21413aa78055f6f7f262de56979afbea000000000000000000000000542ee8af82d654a401496b3f65e631873f2c9cd0", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + }, + { + "internalType": "address", + "name": "gasOracle_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "ContentLengthTooBig", + "type": "error" + }, + { + "inputs": [], + "name": "EthTransferFailed", + "type": "error" + }, + { + "inputs": [], + "name": "FlagOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectOriginDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientEthBalance", + "type": "error" + }, + { + "inputs": [], + "name": "MerkleTreeFull", + "type": "error" + }, + { + "inputs": [], + "name": "NotEnoughLeafs", + "type": "error" + }, + { + "inputs": [], + "name": "TipsOverflow", + "type": "error" + }, + { + "inputs": [], + "name": "TipsValueTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedBaseMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallData", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "name": "Sent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "state", + "type": "bytes" + } + ], + "name": "StateSaved", + "type": "event" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gasOracle", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "contentLength", + "type": "uint256" + } + ], + "name": "getMinimumTipsValue", + "outputs": [ + { + "internalType": "uint256", + "name": "tipsValue", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + } + ], + "name": "isValidState", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "optimisticPeriod", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "sendBaseMessage", + "outputs": [ + { + "internalType": "uint32", + "name": "messageNonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "optimisticPeriod", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "payload", + "type": "bytes" + } + ], + "name": "sendManagerMessage", + "outputs": [ + { + "internalType": "uint32", + "name": "messageNonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "statesAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "suggestLatestState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + } + ], + "name": "suggestState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawTips", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/polygon/PingPongClient.json b/packages/contracts-core/deployments/chain_a/PingPongClient.json similarity index 96% rename from packages/contracts-core/deployments/polygon/PingPongClient.json rename to packages/contracts-core/deployments/chain_a/PingPongClient.json index 2072350933..c6d8835b4b 100644 --- a/packages/contracts-core/deployments/polygon/PingPongClient.json +++ b/packages/contracts-core/deployments/chain_a/PingPongClient.json @@ -1,6 +1,6 @@ { - "address": "0x541359650e47808E557D23eAe590bd4A78d1D67B", - "args": "0x000000000000000000000000f1777e069f89b9c73f874b9d9e41fbe6fc2779d50000000000000000000000009fee2fc46550752d9a16bef631145c025df48177", + "address": "0x521F44132489CDD54c9ceC8167CfC377CbAEa351", + "args": "0x000000000000000000000000d755a6d98c4557c66ebbd9d76f1bebc48e84afa00000000000000000000000007219284b26f44b2a584827034422a33450635f7a", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/chain_a/Summit.json b/packages/contracts-core/deployments/chain_a/Summit.json new file mode 100644 index 0000000000..9ae3a0a150 --- /dev/null +++ b/packages/contracts-core/deployments/chain_a/Summit.json @@ -0,0 +1,881 @@ +{ + "address": "0x1EC96ab1Fdb92565A0839b12d42c13c8135f6c11", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000027006519c5786863fae35612da9e0f0622ff8c580000000000000000000000002eb68a0c21413aa78055f6f7f262de56979afbea", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "Empty", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectState", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectStatesAmount", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeSynapseDomain", + "type": "error" + }, + { + "inputs": [], + "name": "NonceOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "OutdatedNonce", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "TipsClaimMoreThanEarned", + "type": "error" + }, + { + "inputs": [], + "name": "TipsClaimZero", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedSnapshot", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "attestation", + "type": "bytes" + } + ], + "name": "AttestationSaved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "state", + "type": "bytes" + } + ], + "name": "StateSaved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "actor", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "origin", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tip", + "type": "uint256" + } + ], + "name": "TipAwarded", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "sigIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + } + ], + "name": "acceptGuardSnapshot", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "sigIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + } + ], + "name": "acceptNotarySnapshot", + "outputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "rcptNotaryIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "attNotaryIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "sigIndex", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "attNonce", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "name": "acceptReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "name": "actorTips", + "outputs": [ + { + "internalType": "uint128", + "name": "earned", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "claimed", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "distributeTips", + "outputs": [ + { + "internalType": "bool", + "name": "queuePopped", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "attNonce", + "type": "uint32" + } + ], + "name": "getAttestation", + "outputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "snapGas", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getGuardSnapshot", + "outputs": [ + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "getLatestAgentState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "notary", + "type": "address" + } + ], + "name": "getLatestNotaryAttestation", + "outputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "snapGas", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin", + "type": "uint32" + } + ], + "name": "getLatestState", + "outputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + } + ], + "name": "getNotarySnapshot", + "outputs": [ + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getNotarySnapshot", + "outputs": [ + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "attNonce", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + } + ], + "name": "getSnapshotProof", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + } + ], + "name": "isValidAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "receiptQueueLength", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawTips", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/polygon/TestClient.json b/packages/contracts-core/deployments/chain_a/TestClient.json similarity index 95% rename from packages/contracts-core/deployments/polygon/TestClient.json rename to packages/contracts-core/deployments/chain_a/TestClient.json index f455ea31c4..a956dfa01f 100644 --- a/packages/contracts-core/deployments/polygon/TestClient.json +++ b/packages/contracts-core/deployments/chain_a/TestClient.json @@ -1,6 +1,6 @@ { - "address": "0x3560BCCea61652c63003Bf1cb8fC7E848902b388", - "args": "0x000000000000000000000000f1777e069f89b9c73f874b9d9e41fbe6fc2779d50000000000000000000000009fee2fc46550752d9a16bef631145c025df48177", + "address": "0xEdc88f8527D08d23D5496bb808C5b78A9f252C5c", + "args": "0x000000000000000000000000d755a6d98c4557c66ebbd9d76f1bebc48e84afa00000000000000000000000007219284b26f44b2a584827034422a33450635f7a", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/chain_b/CREATE3Factory.json b/packages/contracts-core/deployments/chain_b/CREATE3Factory.json new file mode 100644 index 0000000000..497b31bbf8 --- /dev/null +++ b/packages/contracts-core/deployments/chain_b/CREATE3Factory.json @@ -0,0 +1,54 @@ +{ + "address": "0x6438CB36cb18520774EfC7A172410D8BBBe9a428", + "args": "0x3078", + "abi": [ + { + "inputs": [ + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "creationCode", + "type": "bytes" + } + ], + "name": "deploy", + "outputs": [ + { + "internalType": "address", + "name": "deployed", + "type": "address" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "deployer", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "getDeployed", + "outputs": [ + { + "internalType": "address", + "name": "deployed", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_b/Destination.json b/packages/contracts-core/deployments/chain_b/Destination.json new file mode 100644 index 0000000000..934a301b05 --- /dev/null +++ b/packages/contracts-core/deployments/chain_b/Destination.json @@ -0,0 +1,781 @@ +{ + "address": "0x7219284B26F44B2A584827034422a33450635f7A", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000807a8d4469dd803b9b2c9e3568d5e83784bec25d000000000000000000000000a6a694d8d2430964dcd11f2e649649fc9557a56b", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AlreadyExecuted", + "type": "error" + }, + { + "inputs": [], + "name": "AlreadyFailed", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "DuplicatedSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "FlagOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "GasLimitTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "GasSuppliedTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectDestinationDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectMagicValue", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "MessageOptimisticPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedBaseMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallData", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallDataPrefix", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + } + ], + "name": "AgentRootAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "remoteDomain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "name": "Executed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + } + ], + "name": "TipsRecorded", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "sigIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + }, + { + "internalType": "ChainGas[]", + "name": "snapGas", + "type": "uint128[]" + } + ], + "name": "acceptAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "attestationsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destStatus", + "outputs": [ + { + "internalType": "uint40", + "name": "snapRootTime", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "agentRootTime", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "msgPayload", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "originProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "uint64", + "name": "gasLimit", + "type": "uint64" + } + ], + "name": "execute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAttestation", + "outputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "snapRoot", + "type": "bytes32" + } + ], + "name": "getAttestationNonce", + "outputs": [ + { + "internalType": "uint32", + "name": "attNonce", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getGasData", + "outputs": [ + { + "internalType": "GasData", + "name": "gasData", + "type": "uint96" + }, + { + "internalType": "uint256", + "name": "dataMaturity", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "name": "isValidReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "name": "messageReceipt", + "outputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "name": "messageStatus", + "outputs": [ + { + "internalType": "enum MessageStatus", + "name": "status", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "nextAgentRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "passAgentRoot", + "outputs": [ + { + "internalType": "bool", + "name": "rootPassed", + "type": "bool" + }, + { + "internalType": "bool", + "name": "rootPending", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_b/GasOracle.json b/packages/contracts-core/deployments/chain_b/GasOracle.json new file mode 100644 index 0000000000..d0f7bfbbdc --- /dev/null +++ b/packages/contracts-core/deployments/chain_b/GasOracle.json @@ -0,0 +1,409 @@ +{ + "address": "0x542eE8AF82D654a401496B3f65e631873f2c9Cd0", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000007219284b26f44b2a584827034422a33450635f7a", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "IncorrectDestinationDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "LocalGasDataNotSet", + "type": "error" + }, + { + "inputs": [], + "name": "RemoteGasDataNotSet", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paddedGasData", + "type": "uint256" + } + ], + "name": "GasDataUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "GAS_DATA_DECREASED_OPTIMISTIC_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GAS_DATA_INCREASED_OPTIMISTIC_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getDecodedGasData", + "outputs": [ + { + "internalType": "uint256", + "name": "gasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dataPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "execBuffer", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amortAttCost", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "etherPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "markup", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getGasData", + "outputs": [ + { + "internalType": "uint256", + "name": "paddedGasData", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "contentLength", + "type": "uint256" + } + ], + "name": "getMinimumTips", + "outputs": [ + { + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "gasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dataPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "execBuffer", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amortAttCost", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "etherPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "markup", + "type": "uint256" + } + ], + "name": "setGasData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "summitTipWei", + "type": "uint256" + } + ], + "name": "setSummitTip", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "updateGasData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_b/LightInbox.json b/packages/contracts-core/deployments/chain_b/LightInbox.json new file mode 100644 index 0000000000..51aa6d43f7 --- /dev/null +++ b/packages/contracts-core/deployments/chain_b/LightInbox.json @@ -0,0 +1,890 @@ +{ + "address": "0xa6A694d8D2430964DcD11f2E649649Fc9557a56b", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AgentNotActive", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotActiveNorUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotGuard", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotNotary", + "type": "error" + }, + { + "inputs": [], + "name": "AgentUnknown", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectDataHash", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotProof", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "SynapseDomainForbidden", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedSnapshot", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "AttestationAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "InvalidReceipt", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "rrPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "InvalidReceiptReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "srPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + } + ], + "name": "InvalidStateReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "InvalidStateWithAttestation", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "InvalidStateWithSnapshot", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getGuardReport", + "outputs": [ + { + "internalType": "bytes", + "name": "statementPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "reportSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getReportsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getStoredSignature", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot_", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "snapGas_", + "type": "uint256[]" + } + ], + "name": "submitAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "arSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitAttestationReport", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithSnapshot", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithSnapshotProof", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "verifyReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReceipt", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "verifyReceiptReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + } + ], + "name": "verifyStateReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithSnapshot", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithSnapshotProof", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_b/LightManager.json b/packages/contracts-core/deployments/chain_b/LightManager.json new file mode 100644 index 0000000000..35792651eb --- /dev/null +++ b/packages/contracts-core/deployments/chain_b/LightManager.json @@ -0,0 +1,732 @@ +{ + "address": "0x807A8d4469DD803B9b2c9e3568D5E83784bec25D", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AgentNotActiveNorUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeAlreadyResolved", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeNotOpened", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeNotStuck", + "type": "error" + }, + { + "inputs": [], + "name": "GuardInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentIndex", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentProof", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeSynapseDomain", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "SynapseDomainForbidden", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "WithdrawTipsOptimisticPeriod", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "disputeIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "DisputeOpened", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "disputeIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "rivalIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "fraudProver", + "type": "address" + } + ], + "name": "DisputeResolved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "newRoot", + "type": "bytes32" + } + ], + "name": "RootUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "StatusUpdated", + "type": "event" + }, + { + "inputs": [], + "name": "agentRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "disputeStatus", + "outputs": [ + { + "internalType": "enum DisputeFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "address", + "name": "rival", + "type": "address" + }, + { + "internalType": "address", + "name": "fraudProver", + "type": "address" + }, + { + "internalType": "uint256", + "name": "disputePtr", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getDispute", + "outputs": [ + { + "internalType": "address", + "name": "guard", + "type": "address" + }, + { + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "internalType": "address", + "name": "slashedAgent", + "type": "address" + }, + { + "internalType": "address", + "name": "fraudProver", + "type": "address" + }, + { + "internalType": "bytes", + "name": "reportPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "reportSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getDisputesAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "msgOrigin", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "remoteWithdrawTips", + "outputs": [ + { + "internalType": "bytes4", + "name": "magicValue", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "slashedAgent", + "type": "address" + } + ], + "name": "resolveStuckDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agentRoot_", + "type": "bytes32" + } + ], + "name": "setAgentRoot", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "address", + "name": "prover", + "type": "address" + } + ], + "name": "slashAgent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "name": "updateAgentStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_b/Origin.json b/packages/contracts-core/deployments/chain_b/Origin.json new file mode 100644 index 0000000000..4bc44ed61c --- /dev/null +++ b/packages/contracts-core/deployments/chain_b/Origin.json @@ -0,0 +1,661 @@ +{ + "address": "0xD755a6D98C4557c66ebbD9D76f1BEbC48e84afa0", + "args": "0x000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000807a8d4469dd803b9b2c9e3568d5e83784bec25d000000000000000000000000a6a694d8d2430964dcd11f2e649649fc9557a56b000000000000000000000000542ee8af82d654a401496b3f65e631873f2c9cd0", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + }, + { + "internalType": "address", + "name": "gasOracle_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "ContentLengthTooBig", + "type": "error" + }, + { + "inputs": [], + "name": "EthTransferFailed", + "type": "error" + }, + { + "inputs": [], + "name": "FlagOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectOriginDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientEthBalance", + "type": "error" + }, + { + "inputs": [], + "name": "MerkleTreeFull", + "type": "error" + }, + { + "inputs": [], + "name": "NotEnoughLeafs", + "type": "error" + }, + { + "inputs": [], + "name": "TipsOverflow", + "type": "error" + }, + { + "inputs": [], + "name": "TipsValueTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedBaseMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallData", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "name": "Sent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "state", + "type": "bytes" + } + ], + "name": "StateSaved", + "type": "event" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gasOracle", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "contentLength", + "type": "uint256" + } + ], + "name": "getMinimumTipsValue", + "outputs": [ + { + "internalType": "uint256", + "name": "tipsValue", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + } + ], + "name": "isValidState", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "optimisticPeriod", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "sendBaseMessage", + "outputs": [ + { + "internalType": "uint32", + "name": "messageNonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "optimisticPeriod", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "payload", + "type": "bytes" + } + ], + "name": "sendManagerMessage", + "outputs": [ + { + "internalType": "uint32", + "name": "messageNonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "statesAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "suggestLatestState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + } + ], + "name": "suggestState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawTips", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_b/PingPongClient.json b/packages/contracts-core/deployments/chain_b/PingPongClient.json new file mode 100644 index 0000000000..c6d8835b4b --- /dev/null +++ b/packages/contracts-core/deployments/chain_b/PingPongClient.json @@ -0,0 +1,279 @@ +{ + "address": "0x521F44132489CDD54c9ceC8167CfC377CbAEa351", + "args": "0x000000000000000000000000d755a6d98c4557c66ebbd9d76f1bebc48e84afa00000000000000000000000007219284b26f44b2a584827034422a33450635f7a", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectNonce", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSender", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroProofMaturity", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PingReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PingSent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PongReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PongSent", + "type": "event" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint16", + "name": "counter", + "type": "uint16" + } + ], + "name": "doPing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "pingCount", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint16", + "name": "counter", + "type": "uint16" + } + ], + "name": "doPings", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "nextOptimisticPeriod", + "outputs": [ + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pingsReceived", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pingsSent", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pongsReceived", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "random", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "receiveBaseMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_b/TestClient.json b/packages/contracts-core/deployments/chain_b/TestClient.json new file mode 100644 index 0000000000..a956dfa01f --- /dev/null +++ b/packages/contracts-core/deployments/chain_b/TestClient.json @@ -0,0 +1,229 @@ +{ + "address": "0xEdc88f8527D08d23D5496bb808C5b78A9f252C5c", + "args": "0x000000000000000000000000d755a6d98c4557c66ebbd9d76f1bebc48e84afa00000000000000000000000007219284b26f44b2a584827034422a33450635f7a", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectNonce", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSender", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroProofMaturity", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "origin", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "MessageReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "MessageSent", + "type": "event" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "receiveBaseMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipientAddress", + "type": "address" + }, + { + "internalType": "uint32", + "name": "optimisticSeconds", + "type": "uint32" + }, + { + "internalType": "uint64", + "name": "gasLimit", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "sendMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_c/CREATE3Factory.json b/packages/contracts-core/deployments/chain_c/CREATE3Factory.json new file mode 100644 index 0000000000..eff2ec0e6c --- /dev/null +++ b/packages/contracts-core/deployments/chain_c/CREATE3Factory.json @@ -0,0 +1,54 @@ +{ + "args": "0x3078", + "address": "0x6438CB36cb18520774EfC7A172410D8BBBe9a428", + "abi": [ + { + "inputs": [ + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "creationCode", + "type": "bytes" + } + ], + "name": "deploy", + "outputs": [ + { + "internalType": "address", + "name": "deployed", + "type": "address" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "deployer", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "getDeployed", + "outputs": [ + { + "internalType": "address", + "name": "deployed", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_c/Destination.json b/packages/contracts-core/deployments/chain_c/Destination.json new file mode 100644 index 0000000000..711e1ee7ed --- /dev/null +++ b/packages/contracts-core/deployments/chain_c/Destination.json @@ -0,0 +1,781 @@ +{ + "args": "0x000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000807a8d4469dd803b9b2c9e3568d5e83784bec25d000000000000000000000000a6a694d8d2430964dcd11f2e649649fc9557a56b", + "address": "0x7219284B26F44B2A584827034422a33450635f7A", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AlreadyExecuted", + "type": "error" + }, + { + "inputs": [], + "name": "AlreadyFailed", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "DuplicatedSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "FlagOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "GasLimitTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "GasSuppliedTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectDestinationDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectMagicValue", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "MessageOptimisticPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedBaseMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallData", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallDataPrefix", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + } + ], + "name": "AgentRootAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "remoteDomain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "name": "Executed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + } + ], + "name": "TipsRecorded", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "sigIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + }, + { + "internalType": "ChainGas[]", + "name": "snapGas", + "type": "uint128[]" + } + ], + "name": "acceptAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "attestationsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destStatus", + "outputs": [ + { + "internalType": "uint40", + "name": "snapRootTime", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "agentRootTime", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "msgPayload", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "originProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "uint64", + "name": "gasLimit", + "type": "uint64" + } + ], + "name": "execute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAttestation", + "outputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "snapRoot", + "type": "bytes32" + } + ], + "name": "getAttestationNonce", + "outputs": [ + { + "internalType": "uint32", + "name": "attNonce", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getGasData", + "outputs": [ + { + "internalType": "GasData", + "name": "gasData", + "type": "uint96" + }, + { + "internalType": "uint256", + "name": "dataMaturity", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "name": "isValidReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "name": "messageReceipt", + "outputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "name": "messageStatus", + "outputs": [ + { + "internalType": "enum MessageStatus", + "name": "status", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "nextAgentRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "passAgentRoot", + "outputs": [ + { + "internalType": "bool", + "name": "rootPassed", + "type": "bool" + }, + { + "internalType": "bool", + "name": "rootPending", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_c/GasOracle.json b/packages/contracts-core/deployments/chain_c/GasOracle.json new file mode 100644 index 0000000000..890956ac73 --- /dev/null +++ b/packages/contracts-core/deployments/chain_c/GasOracle.json @@ -0,0 +1,409 @@ +{ + "args": "0x000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000007219284b26f44b2a584827034422a33450635f7a", + "address": "0x542eE8AF82D654a401496B3f65e631873f2c9Cd0", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "IncorrectDestinationDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "LocalGasDataNotSet", + "type": "error" + }, + { + "inputs": [], + "name": "RemoteGasDataNotSet", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paddedGasData", + "type": "uint256" + } + ], + "name": "GasDataUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "GAS_DATA_DECREASED_OPTIMISTIC_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GAS_DATA_INCREASED_OPTIMISTIC_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getDecodedGasData", + "outputs": [ + { + "internalType": "uint256", + "name": "gasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dataPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "execBuffer", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amortAttCost", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "etherPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "markup", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getGasData", + "outputs": [ + { + "internalType": "uint256", + "name": "paddedGasData", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "contentLength", + "type": "uint256" + } + ], + "name": "getMinimumTips", + "outputs": [ + { + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "gasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dataPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "execBuffer", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amortAttCost", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "etherPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "markup", + "type": "uint256" + } + ], + "name": "setGasData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "summitTipWei", + "type": "uint256" + } + ], + "name": "setSummitTip", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "updateGasData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_c/LightInbox.json b/packages/contracts-core/deployments/chain_c/LightInbox.json new file mode 100644 index 0000000000..895f14f090 --- /dev/null +++ b/packages/contracts-core/deployments/chain_c/LightInbox.json @@ -0,0 +1,890 @@ +{ + "args": "0x000000000000000000000000000000000000000000000000000000000000002a", + "address": "0xa6A694d8D2430964DcD11f2E649649Fc9557a56b", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AgentNotActive", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotActiveNorUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotGuard", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotNotary", + "type": "error" + }, + { + "inputs": [], + "name": "AgentUnknown", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectDataHash", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotProof", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "SynapseDomainForbidden", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedSnapshot", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "AttestationAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "InvalidReceipt", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "rrPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "InvalidReceiptReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "srPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + } + ], + "name": "InvalidStateReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "InvalidStateWithAttestation", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "InvalidStateWithSnapshot", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getGuardReport", + "outputs": [ + { + "internalType": "bytes", + "name": "statementPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "reportSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getReportsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getStoredSignature", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot_", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "snapGas_", + "type": "uint256[]" + } + ], + "name": "submitAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "arSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitAttestationReport", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithSnapshot", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithSnapshotProof", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "verifyReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReceipt", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "verifyReceiptReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + } + ], + "name": "verifyStateReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithSnapshot", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithSnapshotProof", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_c/LightManager.json b/packages/contracts-core/deployments/chain_c/LightManager.json new file mode 100644 index 0000000000..fe9eb519fd --- /dev/null +++ b/packages/contracts-core/deployments/chain_c/LightManager.json @@ -0,0 +1,732 @@ +{ + "args": "0x000000000000000000000000000000000000000000000000000000000000002a", + "address": "0x807A8d4469DD803B9b2c9e3568D5E83784bec25D", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AgentNotActiveNorUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeAlreadyResolved", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeNotOpened", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeNotStuck", + "type": "error" + }, + { + "inputs": [], + "name": "GuardInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentIndex", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentProof", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeSynapseDomain", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "SynapseDomainForbidden", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "WithdrawTipsOptimisticPeriod", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "disputeIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "DisputeOpened", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "disputeIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "rivalIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "fraudProver", + "type": "address" + } + ], + "name": "DisputeResolved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "newRoot", + "type": "bytes32" + } + ], + "name": "RootUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "StatusUpdated", + "type": "event" + }, + { + "inputs": [], + "name": "agentRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "disputeStatus", + "outputs": [ + { + "internalType": "enum DisputeFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "address", + "name": "rival", + "type": "address" + }, + { + "internalType": "address", + "name": "fraudProver", + "type": "address" + }, + { + "internalType": "uint256", + "name": "disputePtr", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getDispute", + "outputs": [ + { + "internalType": "address", + "name": "guard", + "type": "address" + }, + { + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "internalType": "address", + "name": "slashedAgent", + "type": "address" + }, + { + "internalType": "address", + "name": "fraudProver", + "type": "address" + }, + { + "internalType": "bytes", + "name": "reportPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "reportSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getDisputesAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "msgOrigin", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "remoteWithdrawTips", + "outputs": [ + { + "internalType": "bytes4", + "name": "magicValue", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "slashedAgent", + "type": "address" + } + ], + "name": "resolveStuckDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agentRoot_", + "type": "bytes32" + } + ], + "name": "setAgentRoot", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "address", + "name": "prover", + "type": "address" + } + ], + "name": "slashAgent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "name": "updateAgentStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_c/Origin.json b/packages/contracts-core/deployments/chain_c/Origin.json new file mode 100644 index 0000000000..78ba7b6c97 --- /dev/null +++ b/packages/contracts-core/deployments/chain_c/Origin.json @@ -0,0 +1,661 @@ +{ + "args": "0x000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000807a8d4469dd803b9b2c9e3568d5e83784bec25d000000000000000000000000a6a694d8d2430964dcd11f2e649649fc9557a56b000000000000000000000000542ee8af82d654a401496b3f65e631873f2c9cd0", + "address": "0xD755a6D98C4557c66ebbD9D76f1BEbC48e84afa0", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "synapseDomain_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + }, + { + "internalType": "address", + "name": "gasOracle_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "ContentLengthTooBig", + "type": "error" + }, + { + "inputs": [], + "name": "EthTransferFailed", + "type": "error" + }, + { + "inputs": [], + "name": "FlagOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectOriginDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientEthBalance", + "type": "error" + }, + { + "inputs": [], + "name": "MerkleTreeFull", + "type": "error" + }, + { + "inputs": [], + "name": "NotEnoughLeafs", + "type": "error" + }, + { + "inputs": [], + "name": "TipsOverflow", + "type": "error" + }, + { + "inputs": [], + "name": "TipsValueTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedBaseMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallData", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "name": "Sent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "state", + "type": "bytes" + } + ], + "name": "StateSaved", + "type": "event" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gasOracle", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "contentLength", + "type": "uint256" + } + ], + "name": "getMinimumTipsValue", + "outputs": [ + { + "internalType": "uint256", + "name": "tipsValue", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + } + ], + "name": "isValidState", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "optimisticPeriod", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "sendBaseMessage", + "outputs": [ + { + "internalType": "uint32", + "name": "messageNonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "optimisticPeriod", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "payload", + "type": "bytes" + } + ], + "name": "sendManagerMessage", + "outputs": [ + { + "internalType": "uint32", + "name": "messageNonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "statesAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "suggestLatestState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + } + ], + "name": "suggestState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "synapseDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawTips", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_c/PingPongClient.json b/packages/contracts-core/deployments/chain_c/PingPongClient.json new file mode 100644 index 0000000000..c6d8835b4b --- /dev/null +++ b/packages/contracts-core/deployments/chain_c/PingPongClient.json @@ -0,0 +1,279 @@ +{ + "address": "0x521F44132489CDD54c9ceC8167CfC377CbAEa351", + "args": "0x000000000000000000000000d755a6d98c4557c66ebbd9d76f1bebc48e84afa00000000000000000000000007219284b26f44b2a584827034422a33450635f7a", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectNonce", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSender", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroProofMaturity", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PingReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PingSent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PongReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PongSent", + "type": "event" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint16", + "name": "counter", + "type": "uint16" + } + ], + "name": "doPing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "pingCount", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint16", + "name": "counter", + "type": "uint16" + } + ], + "name": "doPings", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "nextOptimisticPeriod", + "outputs": [ + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pingsReceived", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pingsSent", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pongsReceived", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "random", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "receiveBaseMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/chain_c/TestClient.json b/packages/contracts-core/deployments/chain_c/TestClient.json new file mode 100644 index 0000000000..a956dfa01f --- /dev/null +++ b/packages/contracts-core/deployments/chain_c/TestClient.json @@ -0,0 +1,229 @@ +{ + "address": "0xEdc88f8527D08d23D5496bb808C5b78A9f252C5c", + "args": "0x000000000000000000000000d755a6d98c4557c66ebbd9d76f1bebc48e84afa00000000000000000000000007219284b26f44b2a584827034422a33450635f7a", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectNonce", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSender", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroProofMaturity", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "origin", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "MessageReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "MessageSent", + "type": "event" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "receiveBaseMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipientAddress", + "type": "address" + }, + { + "internalType": "uint32", + "name": "optimisticSeconds", + "type": "uint32" + }, + { + "internalType": "uint64", + "name": "gasLimit", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "sendMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/optimism_sepolia/Destination.json b/packages/contracts-core/deployments/optimism_sepolia/Destination.json index fa6a4990fb..fec219aa4a 100644 --- a/packages/contracts-core/deployments/optimism_sepolia/Destination.json +++ b/packages/contracts-core/deployments/optimism_sepolia/Destination.json @@ -1,6 +1,6 @@ { - "address": "0xDA19cEC050314FA1e95167C39f91D10819e13193", - "args": "0x0000000000000000000000000000000000000000000000000000000000aa37dc000000000000000000000000b54af0013d4afdc193be447ff0aa43e4dd9e6fdb0000000000000000000000005b6fa064be102fdfbe46ca076a2dab8e34bd2c7c", + "address": "0x981661205Efd6d54A2e04f0c59137F593694D9FB", + "args": "0x0000000000000000000000000000000000000000000000000000000000aa37dc0000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd7", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/optimism_sepolia/GasOracle.json b/packages/contracts-core/deployments/optimism_sepolia/GasOracle.json index 5f7c3f4748..27f3b64c65 100644 --- a/packages/contracts-core/deployments/optimism_sepolia/GasOracle.json +++ b/packages/contracts-core/deployments/optimism_sepolia/GasOracle.json @@ -1,6 +1,6 @@ { - "address": "0x04212B732EBd603011fEc0867d5d928850463DA4", - "args": "0x0000000000000000000000000000000000000000000000000000000000aa37dc000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x6880394545cbbb2e1c5c231C17210147Da7Ef50e", + "args": "0x0000000000000000000000000000000000000000000000000000000000aa37dc000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/optimism_sepolia/LightInbox.json b/packages/contracts-core/deployments/optimism_sepolia/LightInbox.json index 9ffaffe448..0c75b87695 100644 --- a/packages/contracts-core/deployments/optimism_sepolia/LightInbox.json +++ b/packages/contracts-core/deployments/optimism_sepolia/LightInbox.json @@ -1,5 +1,5 @@ { - "address": "0x5b6Fa064bE102fdFBE46CA076a2daB8E34bd2C7c", + "address": "0x090d03eCAa33dF3b524eD6952eBe2C8E43552BD7", "args": "0x0000000000000000000000000000000000000000000000000000000000aa37dc", "abi": [ { diff --git a/packages/contracts-core/deployments/optimism_sepolia/LightManager.json b/packages/contracts-core/deployments/optimism_sepolia/LightManager.json index 80bb08fc27..56c067fc86 100644 --- a/packages/contracts-core/deployments/optimism_sepolia/LightManager.json +++ b/packages/contracts-core/deployments/optimism_sepolia/LightManager.json @@ -1,5 +1,5 @@ { - "address": "0xB54af0013D4aFdC193BE447FF0aA43e4dD9E6FDB", + "address": "0x9F0A534a3e68978dc0f049D14bc013aBD02a675b", "args": "0x0000000000000000000000000000000000000000000000000000000000aa37dc", "abi": [ { diff --git a/packages/contracts-core/deployments/optimism_sepolia/Origin.json b/packages/contracts-core/deployments/optimism_sepolia/Origin.json index 4b634a4867..d681a727d3 100644 --- a/packages/contracts-core/deployments/optimism_sepolia/Origin.json +++ b/packages/contracts-core/deployments/optimism_sepolia/Origin.json @@ -1,6 +1,6 @@ { - "address": "0x26FeD341E2D3db703dAF62Ec4F54Ce33e8aF31c8", - "args": "0x0000000000000000000000000000000000000000000000000000000000aa37dc000000000000000000000000b54af0013d4afdc193be447ff0aa43e4dd9e6fdb0000000000000000000000005b6fa064be102fdfbe46ca076a2dab8e34bd2c7c00000000000000000000000004212b732ebd603011fec0867d5d928850463da4", + "address": "0xfF1B751941C3A395a0910D7722037Ac062Ea9c39", + "args": "0x0000000000000000000000000000000000000000000000000000000000aa37dc0000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd70000000000000000000000006880394545cbbb2e1c5c231c17210147da7ef50e", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/optimism_sepolia/PingPongClient.json b/packages/contracts-core/deployments/optimism_sepolia/PingPongClient.json index 9ef60d8b6e..defdcb3220 100644 --- a/packages/contracts-core/deployments/optimism_sepolia/PingPongClient.json +++ b/packages/contracts-core/deployments/optimism_sepolia/PingPongClient.json @@ -1,6 +1,6 @@ { - "address": "0xEAfAdbC99226d1B5b3694775734cd94B0858e33B", - "args": "0x00000000000000000000000026fed341e2d3db703daf62ec4f54ce33e8af31c8000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x54cFFF85593eF333094dffa1677fd291f4AdF1e3", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/optimism_sepolia/TestClient.json b/packages/contracts-core/deployments/optimism_sepolia/TestClient.json index e601165dbd..c4c7bef1ab 100644 --- a/packages/contracts-core/deployments/optimism_sepolia/TestClient.json +++ b/packages/contracts-core/deployments/optimism_sepolia/TestClient.json @@ -1,6 +1,6 @@ { - "address": "0x667EdCA7336708c73b556A768D01EBdFb06ECE26", - "args": "0x00000000000000000000000026fed341e2d3db703daf62ec4f54ce33e8af31c8000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x36FD327eA1fB51aD88435dCe9FBe14293b155D4F", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/polygon_mumbai/CREATE3.json b/packages/contracts-core/deployments/polygon_mumbai/CREATE3.json new file mode 100644 index 0000000000..c0e7b420a4 --- /dev/null +++ b/packages/contracts-core/deployments/polygon_mumbai/CREATE3.json @@ -0,0 +1,5 @@ +{ + "address": "0x3bA9E3Fa083133222026614C8023810c2e15aA22", + "args": "0x3078", + "abi": [] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/polygon/Destination.json b/packages/contracts-core/deployments/polygon_mumbai/Destination.json similarity index 98% rename from packages/contracts-core/deployments/polygon/Destination.json rename to packages/contracts-core/deployments/polygon_mumbai/Destination.json index 2a9a0f2e9d..0717a31c1a 100644 --- a/packages/contracts-core/deployments/polygon/Destination.json +++ b/packages/contracts-core/deployments/polygon_mumbai/Destination.json @@ -1,6 +1,6 @@ { - "address": "0x9FEE2fc46550752D9a16Bef631145c025df48177", - "args": "0x000000000000000000000000000000000000000000000000000000000000008900000000000000000000000019d49b378fd2ae1e92a92383200776f57a480ef6000000000000000000000000aebd008e03b1904c14c83eaa8a348ab6af82cb92", + "address": "0x981661205Efd6d54A2e04f0c59137F593694D9FB", + "args": "0x00000000000000000000000000000000000000000000000000000000000138810000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd7", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/polygon/GasOracle.json b/packages/contracts-core/deployments/polygon_mumbai/GasOracle.json similarity index 98% rename from packages/contracts-core/deployments/polygon/GasOracle.json rename to packages/contracts-core/deployments/polygon_mumbai/GasOracle.json index ceefbea7a7..dee1463aa6 100644 --- a/packages/contracts-core/deployments/polygon/GasOracle.json +++ b/packages/contracts-core/deployments/polygon_mumbai/GasOracle.json @@ -1,6 +1,6 @@ { - "address": "0x58D11431bf750CF2EC5D328cA9309B9B86ee6993", - "args": "0x00000000000000000000000000000000000000000000000000000000000000890000000000000000000000009fee2fc46550752d9a16bef631145c025df48177", + "address": "0x6880394545cbbb2e1c5c231C17210147Da7Ef50e", + "args": "0x0000000000000000000000000000000000000000000000000000000000013881000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/polygon/LightInbox.json b/packages/contracts-core/deployments/polygon_mumbai/LightInbox.json similarity index 99% rename from packages/contracts-core/deployments/polygon/LightInbox.json rename to packages/contracts-core/deployments/polygon_mumbai/LightInbox.json index aa13d07c17..2a0c441cb7 100644 --- a/packages/contracts-core/deployments/polygon/LightInbox.json +++ b/packages/contracts-core/deployments/polygon_mumbai/LightInbox.json @@ -1,6 +1,6 @@ { - "address": "0xaeBd008e03b1904C14C83eaa8A348AB6af82Cb92", - "args": "0x0000000000000000000000000000000000000000000000000000000000000089", + "address": "0x090d03eCAa33dF3b524eD6952eBe2C8E43552BD7", + "args": "0x0000000000000000000000000000000000000000000000000000000000013881", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/polygon/LightManager.json b/packages/contracts-core/deployments/polygon_mumbai/LightManager.json similarity index 99% rename from packages/contracts-core/deployments/polygon/LightManager.json rename to packages/contracts-core/deployments/polygon_mumbai/LightManager.json index 541551ca8d..5e1fdecb41 100644 --- a/packages/contracts-core/deployments/polygon/LightManager.json +++ b/packages/contracts-core/deployments/polygon_mumbai/LightManager.json @@ -1,6 +1,6 @@ { - "address": "0x19d49B378fD2AE1e92a92383200776f57a480ef6", - "args": "0x0000000000000000000000000000000000000000000000000000000000000089", + "address": "0x9F0A534a3e68978dc0f049D14bc013aBD02a675b", + "args": "0x0000000000000000000000000000000000000000000000000000000000013881", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/polygon/Origin.json b/packages/contracts-core/deployments/polygon_mumbai/Origin.json similarity index 98% rename from packages/contracts-core/deployments/polygon/Origin.json rename to packages/contracts-core/deployments/polygon_mumbai/Origin.json index 5550ce8e8a..c8e8e6b43d 100644 --- a/packages/contracts-core/deployments/polygon/Origin.json +++ b/packages/contracts-core/deployments/polygon_mumbai/Origin.json @@ -1,6 +1,6 @@ { - "address": "0xF1777e069F89b9C73F874b9D9e41fbe6FC2779D5", - "args": "0x000000000000000000000000000000000000000000000000000000000000008900000000000000000000000019d49b378fd2ae1e92a92383200776f57a480ef6000000000000000000000000aebd008e03b1904c14c83eaa8a348ab6af82cb9200000000000000000000000058d11431bf750cf2ec5d328ca9309b9b86ee6993", + "address": "0xfF1B751941C3A395a0910D7722037Ac062Ea9c39", + "args": "0x00000000000000000000000000000000000000000000000000000000000138810000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd70000000000000000000000006880394545cbbb2e1c5c231c17210147da7ef50e", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/polygon_mumbai/PingPongClient.json b/packages/contracts-core/deployments/polygon_mumbai/PingPongClient.json new file mode 100644 index 0000000000..defdcb3220 --- /dev/null +++ b/packages/contracts-core/deployments/polygon_mumbai/PingPongClient.json @@ -0,0 +1,279 @@ +{ + "address": "0x54cFFF85593eF333094dffa1677fd291f4AdF1e3", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectNonce", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSender", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroProofMaturity", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PingReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PingSent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PongReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PongSent", + "type": "event" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint16", + "name": "counter", + "type": "uint16" + } + ], + "name": "doPing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "pingCount", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint16", + "name": "counter", + "type": "uint16" + } + ], + "name": "doPings", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "nextOptimisticPeriod", + "outputs": [ + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pingsReceived", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pingsSent", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pongsReceived", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "random", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "receiveBaseMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/polygon_mumbai/TestClient.json b/packages/contracts-core/deployments/polygon_mumbai/TestClient.json new file mode 100644 index 0000000000..c4c7bef1ab --- /dev/null +++ b/packages/contracts-core/deployments/polygon_mumbai/TestClient.json @@ -0,0 +1,229 @@ +{ + "address": "0x36FD327eA1fB51aD88435dCe9FBe14293b155D4F", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectNonce", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSender", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroProofMaturity", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "origin", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "MessageReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "MessageSent", + "type": "event" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "receiveBaseMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipientAddress", + "type": "address" + }, + { + "internalType": "uint32", + "name": "optimisticSeconds", + "type": "uint32" + }, + { + "internalType": "uint64", + "name": "gasLimit", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "sendMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/scroll_sepolia/CREATE3.json b/packages/contracts-core/deployments/scroll_sepolia/CREATE3.json new file mode 100644 index 0000000000..c0e7b420a4 --- /dev/null +++ b/packages/contracts-core/deployments/scroll_sepolia/CREATE3.json @@ -0,0 +1,5 @@ +{ + "address": "0x3bA9E3Fa083133222026614C8023810c2e15aA22", + "args": "0x3078", + "abi": [] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/scroll_sepolia/Destination.json b/packages/contracts-core/deployments/scroll_sepolia/Destination.json new file mode 100644 index 0000000000..5e1e7dad22 --- /dev/null +++ b/packages/contracts-core/deployments/scroll_sepolia/Destination.json @@ -0,0 +1,768 @@ +{ + "address": "0x981661205Efd6d54A2e04f0c59137F593694D9FB", + "args": "0x000000000000000000000000000000000000000000000000000000000008274f0000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd7", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AlreadyExecuted", + "type": "error" + }, + { + "inputs": [], + "name": "AlreadyFailed", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "DuplicatedSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "FlagOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "GasLimitTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "GasSuppliedTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectDestinationDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectMagicValue", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "MessageOptimisticPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedBaseMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallData", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallDataPrefix", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + } + ], + "name": "AgentRootAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "remoteDomain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "name": "Executed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + } + ], + "name": "TipsRecorded", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "sigIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + }, + { + "internalType": "ChainGas[]", + "name": "snapGas", + "type": "uint128[]" + } + ], + "name": "acceptAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "attestationsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destStatus", + "outputs": [ + { + "internalType": "uint40", + "name": "snapRootTime", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "agentRootTime", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "msgPayload", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "originProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "uint64", + "name": "gasLimit", + "type": "uint64" + } + ], + "name": "execute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAttestation", + "outputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "snapRoot", + "type": "bytes32" + } + ], + "name": "getAttestationNonce", + "outputs": [ + { + "internalType": "uint32", + "name": "attNonce", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getGasData", + "outputs": [ + { + "internalType": "GasData", + "name": "gasData", + "type": "uint96" + }, + { + "internalType": "uint256", + "name": "dataMaturity", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agentRoot", + "type": "bytes32" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "name": "isValidReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "name": "messageReceipt", + "outputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "name": "messageStatus", + "outputs": [ + { + "internalType": "enum MessageStatus", + "name": "status", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "nextAgentRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "passAgentRoot", + "outputs": [ + { + "internalType": "bool", + "name": "rootPassed", + "type": "bool" + }, + { + "internalType": "bool", + "name": "rootPending", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/scroll_sepolia/GasOracle.json b/packages/contracts-core/deployments/scroll_sepolia/GasOracle.json new file mode 100644 index 0000000000..233d519b46 --- /dev/null +++ b/packages/contracts-core/deployments/scroll_sepolia/GasOracle.json @@ -0,0 +1,396 @@ +{ + "address": "0x6880394545cbbb2e1c5c231C17210147Da7Ef50e", + "args": "0x000000000000000000000000000000000000000000000000000000000008274f000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "IncorrectDestinationDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "LocalGasDataNotSet", + "type": "error" + }, + { + "inputs": [], + "name": "RemoteGasDataNotSet", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paddedGasData", + "type": "uint256" + } + ], + "name": "GasDataUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "GAS_DATA_DECREASED_OPTIMISTIC_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GAS_DATA_INCREASED_OPTIMISTIC_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "getDecodedGasData", + "outputs": [ + { + "internalType": "uint256", + "name": "gasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dataPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "execBuffer", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amortAttCost", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "etherPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "markup", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getGasData", + "outputs": [ + { + "internalType": "uint256", + "name": "paddedGasData", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "contentLength", + "type": "uint256" + } + ], + "name": "getMinimumTips", + "outputs": [ + { + "internalType": "uint256", + "name": "paddedTips", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "gasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dataPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "execBuffer", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amortAttCost", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "etherPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "markup", + "type": "uint256" + } + ], + "name": "setGasData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "summitTipWei", + "type": "uint256" + } + ], + "name": "setSummitTip", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "name": "updateGasData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/scroll_sepolia/LightInbox.json b/packages/contracts-core/deployments/scroll_sepolia/LightInbox.json new file mode 100644 index 0000000000..4f09cca6cf --- /dev/null +++ b/packages/contracts-core/deployments/scroll_sepolia/LightInbox.json @@ -0,0 +1,877 @@ +{ + "address": "0x090d03eCAa33dF3b524eD6952eBe2C8E43552BD7", + "args": "0x000000000000000000000000000000000000000000000000000000000008274f", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AgentNotActive", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotActiveNorUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotGuard", + "type": "error" + }, + { + "inputs": [], + "name": "AgentNotNotary", + "type": "error" + }, + { + "inputs": [], + "name": "AgentUnknown", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectDataHash", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotProof", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSnapshotRoot", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "OccupiedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "PrecompileOutOfGas", + "type": "error" + }, + { + "inputs": [], + "name": "SynapseDomainForbidden", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedAttestation", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedReceipt", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedSnapshot", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "AttestationAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "InvalidReceipt", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "rrPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "InvalidReceiptReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "srPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + } + ], + "name": "InvalidStateReport", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "InvalidStateWithAttestation", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "InvalidStateWithSnapshot", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getGuardReport", + "outputs": [ + { + "internalType": "bytes", + "name": "statementPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "reportSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getReportsAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getStoredSignature", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "agentRoot_", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "snapGas_", + "type": "uint256[]" + } + ], + "name": "submitAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "arSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitAttestationReport", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithSnapshot", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "submitStateReportWithSnapshotProof", + "outputs": [ + { + "internalType": "bool", + "name": "wasAccepted", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rcptSignature", + "type": "bytes" + } + ], + "name": "verifyReceipt", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReceipt", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "rcptPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "rrSignature", + "type": "bytes" + } + ], + "name": "verifyReceiptReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "srSignature", + "type": "bytes" + } + ], + "name": "verifyStateReport", + "outputs": [ + { + "internalType": "bool", + "name": "isValidReport", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithAttestation", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "snapPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "snapSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithSnapshot", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + }, + { + "internalType": "bytes32[]", + "name": "snapProof", + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "attPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "attSignature", + "type": "bytes" + } + ], + "name": "verifyStateWithSnapshotProof", + "outputs": [ + { + "internalType": "bool", + "name": "isValidState", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/scroll_sepolia/LightManager.json b/packages/contracts-core/deployments/scroll_sepolia/LightManager.json new file mode 100644 index 0000000000..bb402536c7 --- /dev/null +++ b/packages/contracts-core/deployments/scroll_sepolia/LightManager.json @@ -0,0 +1,719 @@ +{ + "address": "0x9F0A534a3e68978dc0f049D14bc013aBD02a675b", + "args": "0x000000000000000000000000000000000000000000000000000000000008274f", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AgentNotActiveNorUnstaking", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotInbox", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeAlreadyResolved", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeNotOpened", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeNotStuck", + "type": "error" + }, + { + "inputs": [], + "name": "GuardInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentIndex", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectAgentProof", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeSynapseDomain", + "type": "error" + }, + { + "inputs": [], + "name": "NotaryInDispute", + "type": "error" + }, + { + "inputs": [], + "name": "SynapseDomainForbidden", + "type": "error" + }, + { + "inputs": [], + "name": "TreeHeightTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "WithdrawTipsOptimisticPeriod", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "disputeIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "DisputeOpened", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "disputeIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "rivalIndex", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address", + "name": "fraudProver", + "type": "address" + } + ], + "name": "DisputeResolved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "newRoot", + "type": "bytes32" + } + ], + "name": "RootUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "StatusUpdated", + "type": "event" + }, + { + "inputs": [], + "name": "agentRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "disputeStatus", + "outputs": [ + { + "internalType": "enum DisputeFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "address", + "name": "rival", + "type": "address" + }, + { + "internalType": "address", + "name": "fraudProver", + "type": "address" + }, + { + "internalType": "uint256", + "name": "disputePtr", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getDispute", + "outputs": [ + { + "internalType": "address", + "name": "guard", + "type": "address" + }, + { + "internalType": "address", + "name": "notary", + "type": "address" + }, + { + "internalType": "address", + "name": "slashedAgent", + "type": "address" + }, + { + "internalType": "address", + "name": "fraudProver", + "type": "address" + }, + { + "internalType": "bytes", + "name": "reportPayload", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "reportSignature", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getDisputesAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "msgOrigin", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "remoteWithdrawTips", + "outputs": [ + { + "internalType": "bytes4", + "name": "magicValue", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "slashedAgent", + "type": "address" + } + ], + "name": "resolveStuckDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agentRoot_", + "type": "bytes32" + } + ], + "name": "setAgentRoot", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "internalType": "address", + "name": "prover", + "type": "address" + } + ], + "name": "slashAgent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "name": "updateAgentStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/scroll_sepolia/Origin.json b/packages/contracts-core/deployments/scroll_sepolia/Origin.json new file mode 100644 index 0000000000..c39f56cd66 --- /dev/null +++ b/packages/contracts-core/deployments/scroll_sepolia/Origin.json @@ -0,0 +1,679 @@ +{ + "address": "0xfF1B751941C3A395a0910D7722037Ac062Ea9c39", + "args": "0x000000000000000000000000000000000000000000000000000000000008274f0000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd70000000000000000000000006880394545cbbb2e1c5c231c17210147da7ef50e", + "abi": [ + { + "inputs": [ + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "address", + "name": "agentManager_", + "type": "address" + }, + { + "internalType": "address", + "name": "inbox_", + "type": "address" + }, + { + "internalType": "address", + "name": "gasOracle_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotAgentManager", + "type": "error" + }, + { + "inputs": [], + "name": "ContentLengthTooBig", + "type": "error" + }, + { + "inputs": [], + "name": "EthTransferFailed", + "type": "error" + }, + { + "inputs": [], + "name": "FlagOutOfRange", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectOriginDomain", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectVersionLength", + "type": "error" + }, + { + "inputs": [], + "name": "IndexedTooMuch", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientEthBalance", + "type": "error" + }, + { + "inputs": [], + "name": "MerkleTreeFull", + "type": "error" + }, + { + "inputs": [], + "name": "NotEnoughLeafs", + "type": "error" + }, + { + "inputs": [], + "name": "TipsOverflow", + "type": "error" + }, + { + "inputs": [], + "name": "TipsValueTooLow", + "type": "error" + }, + { + "inputs": [], + "name": "UnallocatedMemory", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedBaseMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedCallData", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedMessage", + "type": "error" + }, + { + "inputs": [], + "name": "UnformattedState", + "type": "error" + }, + { + "inputs": [], + "name": "ViewOverrun", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "name": "Dispatched", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "name": "Sent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "state", + "type": "bytes" + } + ], + "name": "StateSaved", + "type": "event" + }, + { + "inputs": [], + "name": "agentManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + } + ], + "name": "agentStatus", + "outputs": [ + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gasOracle", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getAgent", + "outputs": [ + { + "internalType": "address", + "name": "agent", + "type": "address" + }, + { + "components": [ + { + "internalType": "enum AgentFlag", + "name": "flag", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "domain", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "internalType": "struct AgentStatus", + "name": "status", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "contentLength", + "type": "uint256" + } + ], + "name": "getMinimumTipsValue", + "outputs": [ + { + "internalType": "uint256", + "name": "tipsValue", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "inbox", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "statePayload", + "type": "bytes" + } + ], + "name": "isValidState", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "localDomain", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "multicall", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct MultiCallable.Result[]", + "name": "callResults", + "type": "tuple[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "guardIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "notaryIndex", + "type": "uint32" + } + ], + "name": "openDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "slashedIndex", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "honestIndex", + "type": "uint32" + } + ], + "name": "resolveDispute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "optimisticPeriod", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "paddedRequest", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "sendBaseMessage", + "outputs": [ + { + "internalType": "uint32", + "name": "messageNonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "optimisticPeriod", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "payload", + "type": "bytes" + } + ], + "name": "sendManagerMessage", + "outputs": [ + { + "internalType": "uint32", + "name": "messageNonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "messageHash", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "statesAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "suggestLatestState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + } + ], + "name": "suggestState", + "outputs": [ + { + "internalType": "bytes", + "name": "stateData", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "versionString", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawTips", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/scroll_sepolia/PingPongClient.json b/packages/contracts-core/deployments/scroll_sepolia/PingPongClient.json new file mode 100644 index 0000000000..defdcb3220 --- /dev/null +++ b/packages/contracts-core/deployments/scroll_sepolia/PingPongClient.json @@ -0,0 +1,279 @@ +{ + "address": "0x54cFFF85593eF333094dffa1677fd291f4AdF1e3", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectNonce", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSender", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroProofMaturity", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PingReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PingSent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PongReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "pingId", + "type": "uint256" + } + ], + "name": "PongSent", + "type": "event" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint16", + "name": "counter", + "type": "uint16" + } + ], + "name": "doPing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "pingCount", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint16", + "name": "counter", + "type": "uint16" + } + ], + "name": "doPings", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "nextOptimisticPeriod", + "outputs": [ + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pingsReceived", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pingsSent", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pongsReceived", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "random", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "receiveBaseMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/scroll_sepolia/TestClient.json b/packages/contracts-core/deployments/scroll_sepolia/TestClient.json new file mode 100644 index 0000000000..c4c7bef1ab --- /dev/null +++ b/packages/contracts-core/deployments/scroll_sepolia/TestClient.json @@ -0,0 +1,229 @@ +{ + "address": "0x36FD327eA1fB51aD88435dCe9FBe14293b155D4F", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "origin_", + "type": "address" + }, + { + "internalType": "address", + "name": "destination_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "CallerNotDestination", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectNonce", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "IncorrectSender", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroProofMaturity", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "origin", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "MessageReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "destination", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "MessageSent", + "type": "event" + }, + { + "inputs": [], + "name": "destination", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "origin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "origin_", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "sender", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "proofMaturity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "receiveBaseMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "destination_", + "type": "uint32" + }, + { + "internalType": "address", + "name": "recipientAddress", + "type": "address" + }, + { + "internalType": "uint32", + "name": "optimisticSeconds", + "type": "uint32" + }, + { + "internalType": "uint64", + "name": "gasLimit", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "version", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "content", + "type": "bytes" + } + ], + "name": "sendMessage", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/packages/contracts-core/deployments/sepolia/Destination.json b/packages/contracts-core/deployments/sepolia/Destination.json index d73e05aa6b..b457d3862d 100644 --- a/packages/contracts-core/deployments/sepolia/Destination.json +++ b/packages/contracts-core/deployments/sepolia/Destination.json @@ -1,6 +1,6 @@ { - "address": "0xDA19cEC050314FA1e95167C39f91D10819e13193", - "args": "0x0000000000000000000000000000000000000000000000000000000000aa36a7000000000000000000000000b54af0013d4afdc193be447ff0aa43e4dd9e6fdb0000000000000000000000005b6fa064be102fdfbe46ca076a2dab8e34bd2c7c", + "address": "0x981661205Efd6d54A2e04f0c59137F593694D9FB", + "args": "0x0000000000000000000000000000000000000000000000000000000000aa36a70000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd7", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/sepolia/GasOracle.json b/packages/contracts-core/deployments/sepolia/GasOracle.json index 4dada77a92..9d0e3fa469 100644 --- a/packages/contracts-core/deployments/sepolia/GasOracle.json +++ b/packages/contracts-core/deployments/sepolia/GasOracle.json @@ -1,6 +1,6 @@ { - "address": "0x04212B732EBd603011fEc0867d5d928850463DA4", - "args": "0x0000000000000000000000000000000000000000000000000000000000aa36a7000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x6880394545cbbb2e1c5c231C17210147Da7Ef50e", + "args": "0x0000000000000000000000000000000000000000000000000000000000aa36a7000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/sepolia/LightInbox.json b/packages/contracts-core/deployments/sepolia/LightInbox.json index 73ebcd74f3..854ed781a8 100644 --- a/packages/contracts-core/deployments/sepolia/LightInbox.json +++ b/packages/contracts-core/deployments/sepolia/LightInbox.json @@ -1,5 +1,5 @@ { - "address": "0x5b6Fa064bE102fdFBE46CA076a2daB8E34bd2C7c", + "address": "0x090d03eCAa33dF3b524eD6952eBe2C8E43552BD7", "args": "0x0000000000000000000000000000000000000000000000000000000000aa36a7", "abi": [ { diff --git a/packages/contracts-core/deployments/sepolia/LightManager.json b/packages/contracts-core/deployments/sepolia/LightManager.json index b7a19a93fd..a62e468404 100644 --- a/packages/contracts-core/deployments/sepolia/LightManager.json +++ b/packages/contracts-core/deployments/sepolia/LightManager.json @@ -1,5 +1,5 @@ { - "address": "0xB54af0013D4aFdC193BE447FF0aA43e4dD9E6FDB", + "address": "0x9F0A534a3e68978dc0f049D14bc013aBD02a675b", "args": "0x0000000000000000000000000000000000000000000000000000000000aa36a7", "abi": [ { diff --git a/packages/contracts-core/deployments/sepolia/Origin.json b/packages/contracts-core/deployments/sepolia/Origin.json index 58b395ed5d..803966ff45 100644 --- a/packages/contracts-core/deployments/sepolia/Origin.json +++ b/packages/contracts-core/deployments/sepolia/Origin.json @@ -1,6 +1,6 @@ { - "address": "0x26FeD341E2D3db703dAF62Ec4F54Ce33e8aF31c8", - "args": "0x0000000000000000000000000000000000000000000000000000000000aa36a7000000000000000000000000b54af0013d4afdc193be447ff0aa43e4dd9e6fdb0000000000000000000000005b6fa064be102fdfbe46ca076a2dab8e34bd2c7c00000000000000000000000004212b732ebd603011fec0867d5d928850463da4", + "address": "0xfF1B751941C3A395a0910D7722037Ac062Ea9c39", + "args": "0x0000000000000000000000000000000000000000000000000000000000aa36a70000000000000000000000009f0a534a3e68978dc0f049d14bc013abd02a675b000000000000000000000000090d03ecaa33df3b524ed6952ebe2c8e43552bd70000000000000000000000006880394545cbbb2e1c5c231c17210147da7ef50e", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/sepolia/PingPongClient.json b/packages/contracts-core/deployments/sepolia/PingPongClient.json index 9ef60d8b6e..defdcb3220 100644 --- a/packages/contracts-core/deployments/sepolia/PingPongClient.json +++ b/packages/contracts-core/deployments/sepolia/PingPongClient.json @@ -1,6 +1,6 @@ { - "address": "0xEAfAdbC99226d1B5b3694775734cd94B0858e33B", - "args": "0x00000000000000000000000026fed341e2d3db703daf62ec4f54ce33e8af31c8000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x54cFFF85593eF333094dffa1677fd291f4AdF1e3", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/sepolia/TestClient.json b/packages/contracts-core/deployments/sepolia/TestClient.json index e601165dbd..c4c7bef1ab 100644 --- a/packages/contracts-core/deployments/sepolia/TestClient.json +++ b/packages/contracts-core/deployments/sepolia/TestClient.json @@ -1,6 +1,6 @@ { - "address": "0x667EdCA7336708c73b556A768D01EBdFb06ECE26", - "args": "0x00000000000000000000000026fed341e2d3db703daf62ec4f54ce33e8af31c8000000000000000000000000da19cec050314fa1e95167c39f91d10819e13193", + "address": "0x36FD327eA1fB51aD88435dCe9FBe14293b155D4F", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/synapse_sepolia/BondingManager.json b/packages/contracts-core/deployments/synapse_sepolia/BondingManager.json index 1b85a6ec75..317ba59489 100644 --- a/packages/contracts-core/deployments/synapse_sepolia/BondingManager.json +++ b/packages/contracts-core/deployments/synapse_sepolia/BondingManager.json @@ -1,5 +1,5 @@ { - "address": "0x04ceAd2F88E0FA74b3bB0C3E4b885dB5550d27B9", + "address": "0x3D67fe9f80c6728A8eA5cc6bAe487cc28DA4872e", "args": "0x00000000000000000000000000000000000000000000000000000000000001bc", "abi": [ { diff --git a/packages/contracts-core/deployments/synapse_sepolia/Destination.json b/packages/contracts-core/deployments/synapse_sepolia/Destination.json index 355fbcca06..9be74b8e52 100644 --- a/packages/contracts-core/deployments/synapse_sepolia/Destination.json +++ b/packages/contracts-core/deployments/synapse_sepolia/Destination.json @@ -1,6 +1,6 @@ { - "address": "0xc8eA2409A5Bf3135C139e80596B3f192A2D47230", - "args": "0x00000000000000000000000000000000000000000000000000000000000001bc00000000000000000000000004cead2f88e0fa74b3bb0c3e4b885db5550d27b9000000000000000000000000fbf1f0b35ecbd46ae07fe1aa02debfc95122910e", + "address": "0x981661205Efd6d54A2e04f0c59137F593694D9FB", + "args": "0x00000000000000000000000000000000000000000000000000000000000001bc0000000000000000000000003d67fe9f80c6728a8ea5cc6bae487cc28da4872e0000000000000000000000006a604c730e1621170abaa2bf2e4d2b5e0724b0b9", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/synapse_sepolia/GasOracle.json b/packages/contracts-core/deployments/synapse_sepolia/GasOracle.json index 78d9798748..1cb0b76299 100644 --- a/packages/contracts-core/deployments/synapse_sepolia/GasOracle.json +++ b/packages/contracts-core/deployments/synapse_sepolia/GasOracle.json @@ -1,6 +1,6 @@ { - "address": "0x0cfDcc76BB892750b75A068c8F6A1277ea05f0c5", - "args": "0x00000000000000000000000000000000000000000000000000000000000001bc000000000000000000000000c8ea2409a5bf3135c139e80596b3f192a2d47230", + "address": "0x6880394545cbbb2e1c5c231C17210147Da7Ef50e", + "args": "0x00000000000000000000000000000000000000000000000000000000000001bc000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/synapse_sepolia/Inbox.json b/packages/contracts-core/deployments/synapse_sepolia/Inbox.json index 7bdc04a67f..b4b5f1dab4 100644 --- a/packages/contracts-core/deployments/synapse_sepolia/Inbox.json +++ b/packages/contracts-core/deployments/synapse_sepolia/Inbox.json @@ -1,5 +1,5 @@ { - "address": "0xfbf1F0b35ecBD46Ae07fe1AA02DebfC95122910E", + "address": "0x6a604C730e1621170Abaa2BF2e4D2b5e0724B0b9", "args": "0x00000000000000000000000000000000000000000000000000000000000001bc", "abi": [ { diff --git a/packages/contracts-core/deployments/synapse_sepolia/Origin.json b/packages/contracts-core/deployments/synapse_sepolia/Origin.json index 703af4856f..1e540f632a 100644 --- a/packages/contracts-core/deployments/synapse_sepolia/Origin.json +++ b/packages/contracts-core/deployments/synapse_sepolia/Origin.json @@ -1,6 +1,6 @@ { - "address": "0x445cd82e637a984Be7bC1ab9856C442F13F5e511", - "args": "0x00000000000000000000000000000000000000000000000000000000000001bc00000000000000000000000004cead2f88e0fa74b3bb0c3e4b885db5550d27b9000000000000000000000000fbf1f0b35ecbd46ae07fe1aa02debfc95122910e0000000000000000000000000cfdcc76bb892750b75a068c8f6a1277ea05f0c5", + "address": "0xfF1B751941C3A395a0910D7722037Ac062Ea9c39", + "args": "0x00000000000000000000000000000000000000000000000000000000000001bc0000000000000000000000003d67fe9f80c6728a8ea5cc6bae487cc28da4872e0000000000000000000000006a604c730e1621170abaa2bf2e4d2b5e0724b0b90000000000000000000000006880394545cbbb2e1c5c231c17210147da7ef50e", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/synapse_sepolia/PingPongClient.json b/packages/contracts-core/deployments/synapse_sepolia/PingPongClient.json index d7d285004e..defdcb3220 100644 --- a/packages/contracts-core/deployments/synapse_sepolia/PingPongClient.json +++ b/packages/contracts-core/deployments/synapse_sepolia/PingPongClient.json @@ -1,6 +1,6 @@ { - "address": "0xEAfAdbC99226d1B5b3694775734cd94B0858e33B", - "args": "0x000000000000000000000000445cd82e637a984be7bc1ab9856c442f13f5e511000000000000000000000000c8ea2409a5bf3135c139e80596b3f192a2d47230", + "address": "0x54cFFF85593eF333094dffa1677fd291f4AdF1e3", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/synapse_sepolia/Summit.json b/packages/contracts-core/deployments/synapse_sepolia/Summit.json index 09c69a3a5f..cee170dc77 100644 --- a/packages/contracts-core/deployments/synapse_sepolia/Summit.json +++ b/packages/contracts-core/deployments/synapse_sepolia/Summit.json @@ -1,6 +1,6 @@ { - "address": "0x82600660Fa422236acec17c3a24a19e564FE7F81", - "args": "0x00000000000000000000000000000000000000000000000000000000000001bc00000000000000000000000004cead2f88e0fa74b3bb0c3e4b885db5550d27b9000000000000000000000000fbf1f0b35ecbd46ae07fe1aa02debfc95122910e", + "address": "0x27D1FBEEEeC94514473d3c7350952f7C6e7AD679", + "args": "0x00000000000000000000000000000000000000000000000000000000000001bc0000000000000000000000003d67fe9f80c6728a8ea5cc6bae487cc28da4872e0000000000000000000000006a604c730e1621170abaa2bf2e4d2b5e0724b0b9", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/deployments/synapse_sepolia/TestClient.json b/packages/contracts-core/deployments/synapse_sepolia/TestClient.json index 19d09257d9..c4c7bef1ab 100644 --- a/packages/contracts-core/deployments/synapse_sepolia/TestClient.json +++ b/packages/contracts-core/deployments/synapse_sepolia/TestClient.json @@ -1,6 +1,6 @@ { - "address": "0x667EdCA7336708c73b556A768D01EBdFb06ECE26", - "args": "0x000000000000000000000000445cd82e637a984be7bc1ab9856c442f13f5e511000000000000000000000000c8ea2409a5bf3135c139e80596b3f192a2d47230", + "address": "0x36FD327eA1fB51aD88435dCe9FBe14293b155D4F", + "args": "0x000000000000000000000000ff1b751941c3a395a0910d7722037ac062ea9c39000000000000000000000000981661205efd6d54a2e04f0c59137f593694d9fb", "abi": [ { "inputs": [ diff --git a/packages/contracts-core/foundry.toml b/packages/contracts-core/foundry.toml index 96f21f66c5..6242f0b7d9 100644 --- a/packages/contracts-core/foundry.toml +++ b/packages/contracts-core/foundry.toml @@ -28,6 +28,8 @@ sepolia = "${RPC_SEPOLIA}" arb_sepolia = "${RPC_ARB_SEPOLIA}" synapse_sepolia = "${RPC_SYNAPSE_SEPOLIA}" optimism_sepolia = "${RPC_OP_SEPOLIA}" +polygon_mumbai = "${RPC_POLYGON_MUMBAI}" +scroll_sepolia = "${RPC_SCROLL_SEPOLIA}" [etherscan] # avalanche = { key = "${ETHERSCAN_AVALANCHE_KEY}" } diff --git a/packages/contracts-core/script/DeployClients003.s.sol b/packages/contracts-core/script/DeployClients003.s.sol index 9bff12e3c1..8d5737b171 100644 --- a/packages/contracts-core/script/DeployClients003.s.sol +++ b/packages/contracts-core/script/DeployClients003.s.sol @@ -26,7 +26,7 @@ contract DeployClients003Script is DeployerUtils { constructor() { setupPK("MESSAGING_DEPLOYER_PRIVATE_KEY"); - deploymentSalt = keccak256("Messaging003-07"); + deploymentSalt = keccak256("Messaging003-08"); } /// @dev Function to exclude script from coverage report diff --git a/packages/contracts-core/script/DeployMessaging003Base.s.sol b/packages/contracts-core/script/DeployMessaging003Base.s.sol index 28f16fd657..f4b4a23e32 100644 --- a/packages/contracts-core/script/DeployMessaging003Base.s.sol +++ b/packages/contracts-core/script/DeployMessaging003Base.s.sol @@ -45,7 +45,7 @@ abstract contract DeployMessaging003BaseScript is DeployerUtils { constructor() { setupPK("MESSAGING_DEPLOYER_PRIVATE_KEY"); localDomain = uint32(block.chainid); - deploymentSalt = keccak256("Messaging003-07"); + deploymentSalt = keccak256("Messaging003-08"); } /// @dev Function to exclude script from coverage report diff --git a/packages/contracts-core/script/configs/Messaging003.dc.json b/packages/contracts-core/script/configs/Messaging003.dc.json index 1fd60bec38..7b5ce43d40 100644 --- a/packages/contracts-core/script/configs/Messaging003.dc.json +++ b/packages/contracts-core/script/configs/Messaging003.dc.json @@ -1,11 +1,13 @@ { "agents": { "0": ["0x342E2018071e73754285803e82E77cf8d4bA306C"], + "80001": ["0x6F2EBe46578eB898FD75f340a4004fb7bcE74369"], "421614": ["0xc77514451fe973c4B4330Cf654beb1da7014e6cb"], + "534351": ["0xCFcaEB90961feF591cD0197B0C2968EfC63a46DA"], "11155111": ["0xbFb161171246667DC713a9333A9ff8DAe75703CB"], "11155420": ["0xDCE669afd6F84f73CCaE273d8794c16f7aD9e30b"] }, "chainidSummit": 444, - "domains": [0, 421614, 11155111, 11155420], + "domains": [0, 80001, 421614, 534351, 11155111, 11155420], "owner": "0x50Bc5167E37Fa237024ea3097136D3CC0b594167" } diff --git a/packages/contracts-core/script/configs/Messaging003AgentRoot.dc.json b/packages/contracts-core/script/configs/Messaging003AgentRoot.dc.json index 63f8d34fad..cc898666dd 100644 --- a/packages/contracts-core/script/configs/Messaging003AgentRoot.dc.json +++ b/packages/contracts-core/script/configs/Messaging003AgentRoot.dc.json @@ -1,25 +1,35 @@ { - "initialAgentRoot": "0xf0e219b828b99c6ff0226f6e138e35a4038c90e376ac257041855f5c03c75e1e", + "initialAgentRoot": "0x786f60b866f0e4cd5788f65030cdf1eb5a00b38e8c326c5c44bce919d11a38e7", "proofs": { "0x342E2018071e73754285803e82E77cf8d4bA306C": [ "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x4b468803d448f382f86b71f470ad9ad11fde71a3555331cdcf8343a5337ad633", - "0x8684a171894930a988273d3c28e3df03c1cbd03172f51369b12f36dce9e74993" + "0x69eccebc0b208dab45ade9b16cd6d94f598c9b5c0e9ee964d38dcbfe2c0e53f3", + "0x1373b23d86491e22ecc9d5af8799b511fc951d84d9e1321e14cd7eb6576e8ddf" + ], + "0x6F2EBe46578eB898FD75f340a4004fb7bcE74369": [ + "0xa11d000692a9fa0655d06dafabed2d1a05b142461bcb7863b9a738253a6ef9cf", + "0xf871223f57eaf7cfb0746279ccfec046e832c8898245fe195ffb0f9f90b730c0", + "0x1373b23d86491e22ecc9d5af8799b511fc951d84d9e1321e14cd7eb6576e8ddf" + ], + "0xCFcaEB90961feF591cD0197B0C2968EfC63a46DA": [ + "0x6e4c0c798f87e10bbf3453d0a3d2a7a970ba724faf014985e68299f96eb0d0ce", + "0x6895137875b614f560ddc1f59535093c2c57ad6ac1a6d3f60568dd15a3001624", + "0xa0217ec73ac1a5b5d71380ababd0ec58b885887dd7fad9b90385b3a674431cfa" ], "0xDCE669afd6F84f73CCaE273d8794c16f7aD9e30b": [ "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x1f9685f4daeefec333894e0f9a937f3b655aaa68d7fb6e7025bd692520b96953" + "0xc8012d3fc05f241dc56c0e680af6b6306299abec02e28fa8f2d537a379673fb4", + "0xa0217ec73ac1a5b5d71380ababd0ec58b885887dd7fad9b90385b3a674431cfa" ], "0xbFb161171246667DC713a9333A9ff8DAe75703CB": [ - "0xa11d000692a9fa0655d06dafabed2d1a05b142461bcb7863b9a738253a6ef9cf", - "0xf871223f57eaf7cfb0746279ccfec046e832c8898245fe195ffb0f9f90b730c0", - "0x8684a171894930a988273d3c28e3df03c1cbd03172f51369b12f36dce9e74993" + "0x68429f610ba67f2c5f899ee80cd9f4f3002eee3dfd3048dda1c23fa71b6efe23", + "0x6895137875b614f560ddc1f59535093c2c57ad6ac1a6d3f60568dd15a3001624", + "0xa0217ec73ac1a5b5d71380ababd0ec58b885887dd7fad9b90385b3a674431cfa" ], "0xc77514451fe973c4B4330Cf654beb1da7014e6cb": [ - "0x6e4c0c798f87e10bbf3453d0a3d2a7a970ba724faf014985e68299f96eb0d0ce", + "0xded4c8692d0d2e5f894fe467374713f0339a414149a94596c703b162f5757b63", "0xf871223f57eaf7cfb0746279ccfec046e832c8898245fe195ffb0f9f90b730c0", - "0x8684a171894930a988273d3c28e3df03c1cbd03172f51369b12f36dce9e74993" + "0x1373b23d86491e22ecc9d5af8799b511fc951d84d9e1321e14cd7eb6576e8ddf" ] } } \ No newline at end of file