diff --git a/packages/relayer/.gitignore b/packages/relayer/.gitignore index b2e94840565..ebc976485e7 100644 --- a/packages/relayer/.gitignore +++ b/packages/relayer/.gitignore @@ -66,6 +66,5 @@ terraform.rc .idea -Bridge.json -TaikoL2.json -IHeaderSync.json \ No newline at end of file +# Ignore abi files +bindings/**/*.json diff --git a/packages/relayer/ERC1155Vault.json b/packages/relayer/ERC1155Vault.json deleted file mode 100644 index ca36a1fe1d8..00000000000 --- a/packages/relayer/ERC1155Vault.json +++ /dev/null @@ -1,1031 +0,0 @@ -[ - { - "type": "function", - "name": "acceptOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "addressManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "bridgedToCanonical", - "inputs": [ - { - "name": "btoken", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "addr", - "type": "address", - "internalType": "address" - }, - { - "name": "symbol", - "type": "string", - "internalType": "string" - }, - { - "name": "name", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "canonicalToBridged", - "inputs": [ - { - "name": "chainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "ctoken", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "btoken", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "impl", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "inNonReentrant", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "init", - "inputs": [ - { - "name": "_owner", - "type": "address", - "internalType": "address" - }, - { - "name": "_addressManager", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "lastUnpausedAt", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "name", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "onERC1155BatchReceived", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "uint256[]", - "internalType": "uint256[]" - }, - { - "name": "", - "type": "uint256[]", - "internalType": "uint256[]" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "onERC1155Received", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "onMessageInvocation", - "inputs": [ - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "onMessageRecalled", - "inputs": [ - { - "name": "message", - "type": "tuple", - "internalType": "struct IBridge.Message", - "components": [ - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "srcOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ] - }, - { - "name": "msgHash", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "paused", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pendingOwner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "sendToken", - "inputs": [ - { - "name": "_op", - "type": "tuple", - "internalType": "struct BaseNFTVault.BridgeTransferOp", - "components": [ - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ] - } - ], - "outputs": [ - { - "name": "message_", - "type": "tuple", - "internalType": "struct IBridge.Message", - "components": [ - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "srcOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ] - } - ], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "supportsInterface", - "inputs": [ - { - "name": "_interfaceId", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeTo", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "event", - "name": "AdminChanged", - "inputs": [ - { - "name": "previousAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "newAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BeaconUpgraded", - "inputs": [ - { - "name": "beacon", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BridgedTokenDeployed", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "indexed": true, - "internalType": "uint64" - }, - { - "name": "ctoken", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "btoken", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "ctokenSymbol", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "ctokenName", - "type": "string", - "indexed": false, - "internalType": "string" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferStarted", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Paused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenReceived", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenReleased", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenSent", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "destChainId", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Unpaused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Upgraded", - "inputs": [ - { - "name": "implementation", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "ETH_TRANSFER_FAILED", - "inputs": [] - }, - { - "type": "error", - "name": "FUNC_NOT_IMPLEMENTED", - "inputs": [] - }, - { - "type": "error", - "name": "INVALID_PAUSE_STATUS", - "inputs": [] - }, - { - "type": "error", - "name": "REENTRANT_CALL", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_INVALID_MANAGER", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_UNEXPECTED_CHAINID", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_ZERO_ADDR", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "name", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "VAULT_INSUFFICIENT_FEE", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INTERFACE_NOT_SUPPORTED", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_AMOUNT", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_TOKEN", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_TO_ADDR", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_PERMISSION_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_TOKEN_ARRAY_MISMATCH", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_ADDRESS", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_VALUE", - "inputs": [] - } -] diff --git a/packages/relayer/ERC20Vault.json b/packages/relayer/ERC20Vault.json deleted file mode 100644 index d088f40b7ed..00000000000 --- a/packages/relayer/ERC20Vault.json +++ /dev/null @@ -1,1118 +0,0 @@ -[ - { - "type": "function", - "name": "MIN_MIGRATION_DELAY", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "acceptOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "addressManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "bridgedToCanonical", - "inputs": [ - { - "name": "btoken", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "addr", - "type": "address", - "internalType": "address" - }, - { - "name": "decimals", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "symbol", - "type": "string", - "internalType": "string" - }, - { - "name": "name", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "btokenDenylist", - "inputs": [ - { - "name": "btoken", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "denied", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "canonicalToBridged", - "inputs": [ - { - "name": "chainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "ctoken", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "btoken", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "changeBridgedToken", - "inputs": [ - { - "name": "_ctoken", - "type": "tuple", - "internalType": "struct ERC20Vault.CanonicalERC20", - "components": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "addr", - "type": "address", - "internalType": "address" - }, - { - "name": "decimals", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "symbol", - "type": "string", - "internalType": "string" - }, - { - "name": "name", - "type": "string", - "internalType": "string" - } - ] - }, - { - "name": "_btokenNew", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "btokenOld_", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "impl", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "inNonReentrant", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "init", - "inputs": [ - { - "name": "_owner", - "type": "address", - "internalType": "address" - }, - { - "name": "_addressManager", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "lastMigrationStart", - "inputs": [ - { - "name": "chainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "ctoken", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "timestamp", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "lastUnpausedAt", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "name", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "onMessageInvocation", - "inputs": [ - { - "name": "_data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "onMessageRecalled", - "inputs": [ - { - "name": "_message", - "type": "tuple", - "internalType": "struct IBridge.Message", - "components": [ - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "srcOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ] - }, - { - "name": "_msgHash", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "paused", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pendingOwner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "sendToken", - "inputs": [ - { - "name": "_op", - "type": "tuple", - "internalType": "struct ERC20Vault.BridgeTransferOp", - "components": [ - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "outputs": [ - { - "name": "message_", - "type": "tuple", - "internalType": "struct IBridge.Message", - "components": [ - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "srcOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ] - } - ], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "supportsInterface", - "inputs": [ - { - "name": "_interfaceId", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeTo", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "event", - "name": "AdminChanged", - "inputs": [ - { - "name": "previousAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "newAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BeaconUpgraded", - "inputs": [ - { - "name": "beacon", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BridgedTokenChanged", - "inputs": [ - { - "name": "srcChainId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "ctoken", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "btokenOld", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "btokenNew", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "ctokenSymbol", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "ctokenName", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "ctokenDecimal", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BridgedTokenDeployed", - "inputs": [ - { - "name": "srcChainId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "ctoken", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "btoken", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "ctokenSymbol", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "ctokenName", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "ctokenDecimal", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferStarted", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Paused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenReceived", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenReleased", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenSent", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "canonicalChainId", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - }, - { - "name": "destChainId", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Unpaused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Upgraded", - "inputs": [ - { - "name": "implementation", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "ETH_TRANSFER_FAILED", - "inputs": [] - }, - { - "type": "error", - "name": "FUNC_NOT_IMPLEMENTED", - "inputs": [] - }, - { - "type": "error", - "name": "INVALID_PAUSE_STATUS", - "inputs": [] - }, - { - "type": "error", - "name": "REENTRANT_CALL", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_INVALID_MANAGER", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_UNEXPECTED_CHAINID", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_ZERO_ADDR", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "name", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "VAULT_BTOKEN_BLACKLISTED", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_CTOKEN_MISMATCH", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INSUFFICIENT_FEE", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_AMOUNT", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_CTOKEN", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_NEW_BTOKEN", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_TOKEN", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_TO_ADDR", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_LAST_MIGRATION_TOO_CLOSE", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_PERMISSION_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_ADDRESS", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_VALUE", - "inputs": [] - } -] diff --git a/packages/relayer/ERC721Vault.json b/packages/relayer/ERC721Vault.json deleted file mode 100644 index 1c78ffc7494..00000000000 --- a/packages/relayer/ERC721Vault.json +++ /dev/null @@ -1,987 +0,0 @@ -[ - { - "type": "function", - "name": "acceptOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "addressManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "bridgedToCanonical", - "inputs": [ - { - "name": "btoken", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "addr", - "type": "address", - "internalType": "address" - }, - { - "name": "symbol", - "type": "string", - "internalType": "string" - }, - { - "name": "name", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "canonicalToBridged", - "inputs": [ - { - "name": "chainId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "ctoken", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "btoken", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "impl", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "inNonReentrant", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "init", - "inputs": [ - { - "name": "_owner", - "type": "address", - "internalType": "address" - }, - { - "name": "_addressManager", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "lastUnpausedAt", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "name", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "onERC721Received", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "onMessageInvocation", - "inputs": [ - { - "name": "_data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "onMessageRecalled", - "inputs": [ - { - "name": "_message", - "type": "tuple", - "internalType": "struct IBridge.Message", - "components": [ - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "srcOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ] - }, - { - "name": "_msgHash", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "paused", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pendingOwner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "sendToken", - "inputs": [ - { - "name": "_op", - "type": "tuple", - "internalType": "struct BaseNFTVault.BridgeTransferOp", - "components": [ - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ] - } - ], - "outputs": [ - { - "name": "message_", - "type": "tuple", - "internalType": "struct IBridge.Message", - "components": [ - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "fee", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "srcOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "destChainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "destOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ] - } - ], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "supportsInterface", - "inputs": [ - { - "name": "_interfaceId", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeTo", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "event", - "name": "AdminChanged", - "inputs": [ - { - "name": "previousAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "newAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BeaconUpgraded", - "inputs": [ - { - "name": "beacon", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BridgedTokenDeployed", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "indexed": true, - "internalType": "uint64" - }, - { - "name": "ctoken", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "btoken", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "ctokenSymbol", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "ctokenName", - "type": "string", - "indexed": false, - "internalType": "string" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferStarted", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Paused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenReceived", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "srcChainId", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenReleased", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TokenSent", - "inputs": [ - { - "name": "msgHash", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "destChainId", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - }, - { - "name": "ctoken", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "token", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Unpaused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Upgraded", - "inputs": [ - { - "name": "implementation", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "ETH_TRANSFER_FAILED", - "inputs": [] - }, - { - "type": "error", - "name": "FUNC_NOT_IMPLEMENTED", - "inputs": [] - }, - { - "type": "error", - "name": "INVALID_PAUSE_STATUS", - "inputs": [] - }, - { - "type": "error", - "name": "REENTRANT_CALL", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_INVALID_MANAGER", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_UNEXPECTED_CHAINID", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_ZERO_ADDR", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "name", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "VAULT_INSUFFICIENT_FEE", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INTERFACE_NOT_SUPPORTED", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_AMOUNT", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_TOKEN", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_INVALID_TO_ADDR", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_PERMISSION_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "VAULT_TOKEN_ARRAY_MISMATCH", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_ADDRESS", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_VALUE", - "inputs": [] - } -] diff --git a/packages/relayer/ICrossChainSync.json b/packages/relayer/ICrossChainSync.json deleted file mode 100644 index dd612d08085..00000000000 --- a/packages/relayer/ICrossChainSync.json +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "type": "function", - "name": "getSyncedSnippet", - "inputs": [ - { - "name": "blockId", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [ - { - "name": "snippet", - "type": "tuple", - "internalType": "struct ICrossChainSync.Snippet", - "components": [ - { - "name": "syncedInBlock", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "blockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "blockHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "internalType": "bytes32" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "event", - "name": "CrossChainSynced", - "inputs": [ - { - "name": "syncedInBlock", - "type": "uint64", - "indexed": true, - "internalType": "uint64" - }, - { - "name": "blockId", - "type": "uint64", - "indexed": true, - "internalType": "uint64" - }, - { - "name": "blockHash", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - } - ], - "anonymous": false - } -] diff --git a/packages/relayer/QuotaManager.json b/packages/relayer/QuotaManager.json deleted file mode 100644 index 6fe099eb55e..00000000000 --- a/packages/relayer/QuotaManager.json +++ /dev/null @@ -1,595 +0,0 @@ -[ - { - "type": "function", - "name": "acceptOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "addressManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "availableQuota", - "inputs": [ - { - "name": "_token", - "type": "address", - "internalType": "address" - }, - { - "name": "_leap", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "consumeQuota", - "inputs": [ - { - "name": "_token", - "type": "address", - "internalType": "address" - }, - { - "name": "_amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "impl", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "inNonReentrant", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "init", - "inputs": [ - { - "name": "_owner", - "type": "address", - "internalType": "address" - }, - { - "name": "_addressManager", - "type": "address", - "internalType": "address" - }, - { - "name": "_quotaPeriod", - "type": "uint24", - "internalType": "uint24" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "lastUnpausedAt", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "paused", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pendingOwner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quotaPeriod", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint24", - "internalType": "uint24" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "setQuotaPeriod", - "inputs": [ - { - "name": "_quotaPeriod", - "type": "uint24", - "internalType": "uint24" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "tokenQuota", - "inputs": [ - { - "name": "token", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "updatedAt", - "type": "uint48", - "internalType": "uint48" - }, - { - "name": "quota", - "type": "uint104", - "internalType": "uint104" - }, - { - "name": "available", - "type": "uint104", - "internalType": "uint104" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "updateQuota", - "inputs": [ - { - "name": "_token", - "type": "address", - "internalType": "address" - }, - { - "name": "_quota", - "type": "uint104", - "internalType": "uint104" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeTo", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "event", - "name": "AdminChanged", - "inputs": [ - { - "name": "previousAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "newAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BeaconUpgraded", - "inputs": [ - { - "name": "beacon", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferStarted", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Paused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "QuotaPeriodUpdated", - "inputs": [ - { - "name": "quotaPeriod", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "QuotaUpdated", - "inputs": [ - { - "name": "token", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "oldQuota", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "newQuota", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Unpaused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Upgraded", - "inputs": [ - { - "name": "implementation", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "FUNC_NOT_IMPLEMENTED", - "inputs": [] - }, - { - "type": "error", - "name": "INVALID_PAUSE_STATUS", - "inputs": [] - }, - { - "type": "error", - "name": "QM_INVALID_PARAM", - "inputs": [] - }, - { - "type": "error", - "name": "QM_OUT_OF_QUOTA", - "inputs": [] - }, - { - "type": "error", - "name": "REENTRANT_CALL", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_INVALID_MANAGER", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_UNEXPECTED_CHAINID", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_ZERO_ADDR", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "name", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "ZERO_ADDRESS", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_VALUE", - "inputs": [] - } -] diff --git a/packages/relayer/SignalService.json b/packages/relayer/SignalService.json deleted file mode 100644 index baafb1ef1c9..00000000000 --- a/packages/relayer/SignalService.json +++ /dev/null @@ -1,885 +0,0 @@ -[ - { - "type": "function", - "name": "acceptOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "addressManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "authorize", - "inputs": [ - { - "name": "_addr", - "type": "address", - "internalType": "address" - }, - { - "name": "_authorize", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "getSignalSlot", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_app", - "type": "address", - "internalType": "address" - }, - { - "name": "_signal", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "getSyncedChainData", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_kind", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_blockId", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [ - { - "name": "blockId_", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "chainData_", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "impl", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "inNonReentrant", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "init", - "inputs": [ - { - "name": "_owner", - "type": "address", - "internalType": "address" - }, - { - "name": "_addressManager", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "isAuthorized", - "inputs": [ - { - "name": "addr", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "authorized", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "isChainDataSynced", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_kind", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_blockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_chainData", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "isSignalSent", - "inputs": [ - { - "name": "_app", - "type": "address", - "internalType": "address" - }, - { - "name": "_signal", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "lastUnpausedAt", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "paused", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pendingOwner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "proveSignalReceived", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_app", - "type": "address", - "internalType": "address" - }, - { - "name": "_signal", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_proof", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "numCacheOps_", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "sendSignal", - "inputs": [ - { - "name": "_signal", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "signalForChainData", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_kind", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_blockId", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "syncChainData", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_kind", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_blockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_chainData", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "topBlockId", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "kind", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "blockId", - "type": "uint64", - "internalType": "uint64" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeTo", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "verifySignalReceived", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_app", - "type": "address", - "internalType": "address" - }, - { - "name": "_signal", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_proof", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "view" - }, - { - "type": "event", - "name": "AdminChanged", - "inputs": [ - { - "name": "previousAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "newAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Authorized", - "inputs": [ - { - "name": "addr", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "authorized", - "type": "bool", - "indexed": false, - "internalType": "bool" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BeaconUpgraded", - "inputs": [ - { - "name": "beacon", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ChainDataSynced", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "indexed": true, - "internalType": "uint64" - }, - { - "name": "blockId", - "type": "uint64", - "indexed": true, - "internalType": "uint64" - }, - { - "name": "kind", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "data", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "signal", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferStarted", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Paused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "SignalSent", - "inputs": [ - { - "name": "app", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "signal", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "slot", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "value", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Unpaused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Upgraded", - "inputs": [ - { - "name": "implementation", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "FUNC_NOT_IMPLEMENTED", - "inputs": [] - }, - { - "type": "error", - "name": "INVALID_PAUSE_STATUS", - "inputs": [] - }, - { - "type": "error", - "name": "LTP_INVALID_ACCOUNT_PROOF", - "inputs": [] - }, - { - "type": "error", - "name": "LTP_INVALID_INCLUSION_PROOF", - "inputs": [] - }, - { - "type": "error", - "name": "REENTRANT_CALL", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_INVALID_MANAGER", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_UNEXPECTED_CHAINID", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_ZERO_ADDR", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "name", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "SS_EMPTY_PROOF", - "inputs": [] - }, - { - "type": "error", - "name": "SS_INVALID_HOPS_WITH_LOOP", - "inputs": [] - }, - { - "type": "error", - "name": "SS_INVALID_LAST_HOP_CHAINID", - "inputs": [] - }, - { - "type": "error", - "name": "SS_INVALID_MID_HOP_CHAINID", - "inputs": [] - }, - { - "type": "error", - "name": "SS_INVALID_STATE", - "inputs": [] - }, - { - "type": "error", - "name": "SS_SIGNAL_NOT_FOUND", - "inputs": [] - }, - { - "type": "error", - "name": "SS_UNAUTHORIZED", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_ADDRESS", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_VALUE", - "inputs": [] - } -] diff --git a/packages/relayer/TaikoL1.json b/packages/relayer/TaikoL1.json deleted file mode 100644 index 5601a0ddab8..00000000000 --- a/packages/relayer/TaikoL1.json +++ /dev/null @@ -1,1999 +0,0 @@ -[ - { - "type": "receive", - "stateMutability": "payable" - }, - { - "type": "function", - "name": "acceptOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "addressManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getBlock", - "inputs": [ - { - "name": "_blockId", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [ - { - "name": "blk_", - "type": "tuple", - "internalType": "struct TaikoData.Block", - "components": [ - { - "name": "metaHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "assignedProver", - "type": "address", - "internalType": "address" - }, - { - "name": "livenessBond", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "blockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "proposedAt", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "proposedIn", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "nextTransitionId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "verifiedTransitionId", - "type": "uint32", - "internalType": "uint32" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getConfig", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct TaikoData.Config", - "components": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "blockMaxProposals", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "blockRingBufferSize", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "maxBlocksToVerify", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "blockMaxGasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "livenessBond", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "stateRootSyncInternal", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "checkEOAForCalldataDA", - "type": "bool", - "internalType": "bool" - } - ] - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "getLastSyncedBlock", - "inputs": [], - "outputs": [ - { - "name": "blockId_", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "blockHash_", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot_", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getLastVerifiedBlock", - "inputs": [], - "outputs": [ - { - "name": "blockId_", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "blockHash_", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot_", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getStateVariables", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct TaikoData.SlotA", - "components": [ - { - "name": "genesisHeight", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "genesisTimestamp", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "lastSyncedBlockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "lastSynecdAt", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "name": "", - "type": "tuple", - "internalType": "struct TaikoData.SlotB", - "components": [ - { - "name": "numBlocks", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "lastVerifiedBlockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "provingPaused", - "type": "bool", - "internalType": "bool" - }, - { - "name": "__reservedB1", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "__reservedB2", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "__reservedB3", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "lastUnpausedAt", - "type": "uint64", - "internalType": "uint64" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getTransition", - "inputs": [ - { - "name": "_blockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_tid", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct TaikoData.TransitionState", - "components": [ - { - "name": "key", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blockHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "prover", - "type": "address", - "internalType": "address" - }, - { - "name": "validityBond", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "contester", - "type": "address", - "internalType": "address" - }, - { - "name": "contestBond", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "timestamp", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "tier", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "__reserved1", - "type": "uint8", - "internalType": "uint8" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getTransition", - "inputs": [ - { - "name": "_blockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_parentHash", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct TaikoData.TransitionState", - "components": [ - { - "name": "key", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blockHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "prover", - "type": "address", - "internalType": "address" - }, - { - "name": "validityBond", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "contester", - "type": "address", - "internalType": "address" - }, - { - "name": "contestBond", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "timestamp", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "tier", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "__reserved1", - "type": "uint8", - "internalType": "uint8" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "impl", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "inNonReentrant", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "init", - "inputs": [ - { - "name": "_owner", - "type": "address", - "internalType": "address" - }, - { - "name": "_addressManager", - "type": "address", - "internalType": "address" - }, - { - "name": "_genesisBlockHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_toPause", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "init2", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "lastUnpausedAt", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "pauseProving", - "inputs": [ - { - "name": "_pause", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "paused", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pendingOwner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "proposeBlock", - "inputs": [ - { - "name": "_params", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "_txList", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "meta_", - "type": "tuple", - "internalType": "struct TaikoData.BlockMetadata", - "components": [ - { - "name": "l1Hash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "difficulty", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blobHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "extraData", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "depositsHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "coinbase", - "type": "address", - "internalType": "address" - }, - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "timestamp", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "l1Height", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "minTier", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "blobUsed", - "type": "bool", - "internalType": "bool" - }, - { - "name": "parentMetaHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "sender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "name": "deposits_", - "type": "tuple[]", - "internalType": "struct TaikoData.EthDeposit[]", - "components": [ - { - "name": "recipient", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - } - ] - } - ], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "proveBlock", - "inputs": [ - { - "name": "_blockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_input", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "resolve", - "inputs": [ - { - "name": "_name", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_allowZeroAddress", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address payable" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "state", - "inputs": [], - "outputs": [ - { - "name": "__reserve1", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "slotA", - "type": "tuple", - "internalType": "struct TaikoData.SlotA", - "components": [ - { - "name": "genesisHeight", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "genesisTimestamp", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "lastSyncedBlockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "lastSynecdAt", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "name": "slotB", - "type": "tuple", - "internalType": "struct TaikoData.SlotB", - "components": [ - { - "name": "numBlocks", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "lastVerifiedBlockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "provingPaused", - "type": "bool", - "internalType": "bool" - }, - { - "name": "__reservedB1", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "__reservedB2", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "__reservedB3", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "lastUnpausedAt", - "type": "uint64", - "internalType": "uint64" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeTo", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "verifyBlocks", - "inputs": [ - { - "name": "_maxBlocksToVerify", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "AdminChanged", - "inputs": [ - { - "name": "previousAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "newAdmin", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BeaconUpgraded", - "inputs": [ - { - "name": "beacon", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BlockProposed", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "assignedProver", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "livenessBond", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "meta", - "type": "tuple", - "indexed": false, - "internalType": "struct TaikoData.BlockMetadata", - "components": [ - { - "name": "l1Hash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "difficulty", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blobHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "extraData", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "depositsHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "coinbase", - "type": "address", - "internalType": "address" - }, - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "timestamp", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "l1Height", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "minTier", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "blobUsed", - "type": "bool", - "internalType": "bool" - }, - { - "name": "parentMetaHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "sender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "name": "depositsProcessed", - "type": "tuple[]", - "indexed": false, - "internalType": "struct TaikoData.EthDeposit[]", - "components": [ - { - "name": "recipient", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - } - ] - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BlockProposed", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "assignedProver", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "livenessBond", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "meta", - "type": "tuple", - "indexed": false, - "internalType": "struct TaikoData.BlockMetadata", - "components": [ - { - "name": "l1Hash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "difficulty", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blobHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "extraData", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "depositsHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "coinbase", - "type": "address", - "internalType": "address" - }, - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "gasLimit", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "timestamp", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "l1Height", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "minTier", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "blobUsed", - "type": "bool", - "internalType": "bool" - }, - { - "name": "parentMetaHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "sender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "name": "depositsProcessed", - "type": "tuple[]", - "indexed": false, - "internalType": "struct TaikoData.EthDeposit[]", - "components": [ - { - "name": "recipient", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "id", - "type": "uint64", - "internalType": "uint64" - } - ] - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BlockVerified", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "prover", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "blockHash", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "tier", - "type": "uint16", - "indexed": false, - "internalType": "uint16" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "BlockVerified", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "prover", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "blockHash", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "tier", - "type": "uint16", - "indexed": false, - "internalType": "uint16" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "CalldataTxList", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "txList", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "CalldataTxList", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "txList", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferStarted", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Paused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ProvingPaused", - "inputs": [ - { - "name": "paused", - "type": "bool", - "indexed": false, - "internalType": "bool" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ProvingPaused", - "inputs": [ - { - "name": "paused", - "type": "bool", - "indexed": false, - "internalType": "bool" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StateVariablesUpdated", - "inputs": [ - { - "name": "slotB", - "type": "tuple", - "indexed": false, - "internalType": "struct TaikoData.SlotB", - "components": [ - { - "name": "numBlocks", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "lastVerifiedBlockId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "provingPaused", - "type": "bool", - "internalType": "bool" - }, - { - "name": "__reservedB1", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "__reservedB2", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "__reservedB3", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "lastUnpausedAt", - "type": "uint64", - "internalType": "uint64" - } - ] - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransitionContested", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "tran", - "type": "tuple", - "indexed": false, - "internalType": "struct TaikoData.Transition", - "components": [ - { - "name": "parentHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blockHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "graffiti", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "name": "contester", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "contestBond", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "tier", - "type": "uint16", - "indexed": false, - "internalType": "uint16" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransitionContested", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "tran", - "type": "tuple", - "indexed": false, - "internalType": "struct TaikoData.Transition", - "components": [ - { - "name": "parentHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blockHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "graffiti", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "name": "contester", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "contestBond", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "tier", - "type": "uint16", - "indexed": false, - "internalType": "uint16" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransitionProved", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "tran", - "type": "tuple", - "indexed": false, - "internalType": "struct TaikoData.Transition", - "components": [ - { - "name": "parentHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blockHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "graffiti", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "name": "prover", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "validityBond", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "tier", - "type": "uint16", - "indexed": false, - "internalType": "uint16" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransitionProved", - "inputs": [ - { - "name": "blockId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "tran", - "type": "tuple", - "indexed": false, - "internalType": "struct TaikoData.Transition", - "components": [ - { - "name": "parentHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "blockHash", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "stateRoot", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "graffiti", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "name": "prover", - "type": "address", - "indexed": false, - "internalType": "address" - }, - { - "name": "validityBond", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "tier", - "type": "uint16", - "indexed": false, - "internalType": "uint16" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Unpaused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Upgraded", - "inputs": [ - { - "name": "implementation", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "ETH_TRANSFER_FAILED", - "inputs": [] - }, - { - "type": "error", - "name": "FUNC_NOT_IMPLEMENTED", - "inputs": [] - }, - { - "type": "error", - "name": "INVALID_PAUSE_STATUS", - "inputs": [] - }, - { - "type": "error", - "name": "L1_ALREADY_CONTESTED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_ALREADY_CONTESTED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_ALREADY_PROVED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_ALREADY_PROVED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BATCH_TRANSFER_FAILED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BATCH_TRANSFER_FAILED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BLOB_NOT_AVAILABLE", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BLOB_NOT_AVAILABLE", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BLOB_NOT_FOUND", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BLOB_NOT_FOUND", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BLOCK_MISMATCH", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BLOCK_MISMATCH", - "inputs": [] - }, - { - "type": "error", - "name": "L1_BLOCK_MISMATCH", - "inputs": [] - }, - { - "type": "error", - "name": "L1_CANNOT_CONTEST", - "inputs": [] - }, - { - "type": "error", - "name": "L1_CANNOT_CONTEST", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_BLOCK_ID", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_BLOCK_ID", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_BLOCK_ID", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_CONFIG", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_GENESIS_HASH", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_GENESIS_HASH", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_PARAM", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_PAUSE_STATUS", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_PAUSE_STATUS", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_SIG", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_SIG", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_TIER", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_TIER", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_TRANSITION", - "inputs": [] - }, - { - "type": "error", - "name": "L1_INVALID_TRANSITION", - "inputs": [] - }, - { - "type": "error", - "name": "L1_LIVENESS_BOND_NOT_RECEIVED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_NOT_ASSIGNED_PROVER", - "inputs": [] - }, - { - "type": "error", - "name": "L1_NOT_ASSIGNED_PROVER", - "inputs": [] - }, - { - "type": "error", - "name": "L1_NO_HOOKS", - "inputs": [] - }, - { - "type": "error", - "name": "L1_PROVING_PAUSED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_RECEIVE_DISABLED", - "inputs": [] - }, - { - "type": "error", - "name": "L1_TOO_LATE", - "inputs": [] - }, - { - "type": "error", - "name": "L1_TOO_MANY_BLOCKS", - "inputs": [] - }, - { - "type": "error", - "name": "L1_TOO_MANY_BLOCKS", - "inputs": [] - }, - { - "type": "error", - "name": "L1_TRANSITION_ID_ZERO", - "inputs": [] - }, - { - "type": "error", - "name": "L1_TRANSITION_ID_ZERO", - "inputs": [] - }, - { - "type": "error", - "name": "L1_TRANSITION_NOT_FOUND", - "inputs": [] - }, - { - "type": "error", - "name": "L1_TRANSITION_NOT_FOUND", - "inputs": [] - }, - { - "type": "error", - "name": "L1_UNEXPECTED_PARENT", - "inputs": [] - }, - { - "type": "error", - "name": "L1_UNEXPECTED_PARENT", - "inputs": [] - }, - { - "type": "error", - "name": "L1_UNEXPECTED_TRANSITION_ID", - "inputs": [] - }, - { - "type": "error", - "name": "L1_UNEXPECTED_TRANSITION_ID", - "inputs": [] - }, - { - "type": "error", - "name": "REENTRANT_CALL", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_DENIED", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_INVALID_MANAGER", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_UNEXPECTED_CHAINID", - "inputs": [] - }, - { - "type": "error", - "name": "RESOLVER_ZERO_ADDR", - "inputs": [ - { - "name": "chainId", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "name", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "ZERO_ADDRESS", - "inputs": [] - }, - { - "type": "error", - "name": "ZERO_VALUE", - "inputs": [] - } -] diff --git a/packages/relayer/scripts/abigen.sh b/packages/relayer/scripts/abigen.sh index d6e14be717f..57aab341fcb 100755 --- a/packages/relayer/scripts/abigen.sh +++ b/packages/relayer/scripts/abigen.sh @@ -11,9 +11,9 @@ names=("ERC1155Vault" "ERC721Vault" "ERC20Vault" "Bridge" "TaikoL2" "TaikoL1" "S for (( i = 0; i < ${#paths[@]}; ++i )); do - jq .abi ../protocol/out/${paths[i]}/${names[i]}.json > ${names[i]}.json lower=$(echo "${names[i]}" | tr '[:upper:]' '[:lower:]') - abigen --abi ${names[i]}.json \ + jq .abi ../protocol/out/${paths[i]}/${names[i]}.json > bindings/$lower/${names[i]}.json + abigen --abi bindings/$lower/${names[i]}.json \ --pkg $lower \ --type ${names[i]} \ --out bindings/$lower/${names[i]}.go