From ad4ec0e482fe062755eb6d5d0f9a9163cc5b05ab Mon Sep 17 00:00:00 2001 From: RnkSngh Date: Thu, 18 Jul 2024 14:24:06 -0400 Subject: [PATCH] change gasLimits and gasPrices from calldata to memory in example contracts --- bindings/go/mars/Mars.go | 56 +- bindings/go/mars/PanickingMars.go | 56 +- bindings/go/mars/RevertingBytesMars.go | 56 +- bindings/go/mars/RevertingEmptyMars.go | 56 +- .../mars/RevertingStringCloseChannelMars.go | 38 +- bindings/go/mars/RevertingStringMars.go | 20 +- bindings/go/moon/Moon.go | 56 +- contracts/base/GeneralMiddleware.sol | 4 +- contracts/examples/Mars.sol | 34 +- .../implementation_templates/FeeSender.sol | 6 +- src/evm/contracts/Dispatcher.ts | 1751 ------------- src/evm/contracts/DummyLightClient.ts | 272 -- src/evm/contracts/DummyProofVerifier.ts | 231 -- src/evm/contracts/ERC1967Proxy.ts | 168 -- src/evm/contracts/Earth.ts | 493 ---- src/evm/contracts/FeeVault.ts | 339 --- src/evm/contracts/IDispatcher.ts | 1466 ----------- src/evm/contracts/IFeeVault.ts | 265 -- src/evm/contracts/ILightClient.ts | 272 -- src/evm/contracts/IProofVerifier.ts | 241 -- src/evm/contracts/IUniversalChannelHandler.ts | 572 ----- src/evm/contracts/Ibc.ts | 359 --- .../IbcDispatcher.sol/IbcDispatcher.ts | 229 -- .../IbcDispatcher.sol/IbcEventsEmitter.ts | 844 ------- .../IbcDispatcher.sol/IbcPacketSender.ts | 96 - src/evm/contracts/IbcDispatcher.sol/index.ts | 6 - src/evm/contracts/IbcUtils.ts | 133 - src/evm/contracts/Mars.sol/Mars.ts | 747 ------ src/evm/contracts/Mars.sol/PanickingMars.ts | 747 ------ .../contracts/Mars.sol/RevertingBytesMars.ts | 743 ------ .../contracts/Mars.sol/RevertingEmptyMars.ts | 747 ------ .../RevertingStringCloseChannelMars.ts | 739 ------ .../contracts/Mars.sol/RevertingStringMars.ts | 737 ------ src/evm/contracts/Mars.sol/index.ts | 9 - src/evm/contracts/Moon.ts | 747 ------ src/evm/contracts/OptimisticLightClient.ts | 374 --- src/evm/contracts/OptimisticProofVerifier.ts | 255 -- src/evm/contracts/UniversalChannelHandler.ts | 812 ------ src/evm/contracts/common.ts | 131 - .../factories/Dispatcher__factory.ts | 2195 ----------------- .../factories/DummyLightClient__factory.ts | 341 --- .../factories/DummyProofVerifier__factory.ts | 332 --- .../factories/ERC1967Proxy__factory.ts | 145 -- src/evm/contracts/factories/Earth__factory.ts | 648 ----- .../contracts/factories/FeeVault__factory.ts | 281 --- .../factories/IDispatcher__factory.ts | 1822 -------------- .../contracts/factories/IFeeVault__factory.ts | 187 -- .../factories/ILightClient__factory.ts | 281 --- .../factories/IProofVerifier__factory.ts | 290 --- .../IUniversalChannelHandler__factory.ts | 672 ----- .../IbcDispatcher__factory.ts | 195 -- .../IbcEventsEmitter__factory.ts | 549 ----- .../IbcPacketSender__factory.ts | 54 - .../factories/IbcDispatcher.sol/index.ts | 6 - .../contracts/factories/IbcUtils__factory.ts | 136 - src/evm/contracts/factories/Ibc__factory.ts | 546 ---- .../factories/Mars.sol/Mars__factory.ts | 972 -------- .../Mars.sol/PanickingMars__factory.ts | 978 -------- .../Mars.sol/RevertingBytesMars__factory.ts | 988 -------- .../Mars.sol/RevertingEmptyMars__factory.ts | 978 -------- ...evertingStringCloseChannelMars__factory.ts | 984 -------- .../Mars.sol/RevertingStringMars__factory.ts | 984 -------- src/evm/contracts/factories/Mars.sol/index.ts | 9 - src/evm/contracts/factories/Moon__factory.ts | 972 -------- .../OptimisticLightClient__factory.ts | 493 ---- .../OptimisticProofVerifier__factory.ts | 371 --- .../UniversalChannelHandler__factory.ts | 940 ------- src/evm/contracts/factories/index.ts | 22 - src/evm/contracts/index.ts | 60 - 69 files changed, 186 insertions(+), 32152 deletions(-) delete mode 100644 src/evm/contracts/Dispatcher.ts delete mode 100644 src/evm/contracts/DummyLightClient.ts delete mode 100644 src/evm/contracts/DummyProofVerifier.ts delete mode 100644 src/evm/contracts/ERC1967Proxy.ts delete mode 100644 src/evm/contracts/Earth.ts delete mode 100644 src/evm/contracts/FeeVault.ts delete mode 100644 src/evm/contracts/IDispatcher.ts delete mode 100644 src/evm/contracts/IFeeVault.ts delete mode 100644 src/evm/contracts/ILightClient.ts delete mode 100644 src/evm/contracts/IProofVerifier.ts delete mode 100644 src/evm/contracts/IUniversalChannelHandler.ts delete mode 100644 src/evm/contracts/Ibc.ts delete mode 100644 src/evm/contracts/IbcDispatcher.sol/IbcDispatcher.ts delete mode 100644 src/evm/contracts/IbcDispatcher.sol/IbcEventsEmitter.ts delete mode 100644 src/evm/contracts/IbcDispatcher.sol/IbcPacketSender.ts delete mode 100644 src/evm/contracts/IbcDispatcher.sol/index.ts delete mode 100644 src/evm/contracts/IbcUtils.ts delete mode 100644 src/evm/contracts/Mars.sol/Mars.ts delete mode 100644 src/evm/contracts/Mars.sol/PanickingMars.ts delete mode 100644 src/evm/contracts/Mars.sol/RevertingBytesMars.ts delete mode 100644 src/evm/contracts/Mars.sol/RevertingEmptyMars.ts delete mode 100644 src/evm/contracts/Mars.sol/RevertingStringCloseChannelMars.ts delete mode 100644 src/evm/contracts/Mars.sol/RevertingStringMars.ts delete mode 100644 src/evm/contracts/Mars.sol/index.ts delete mode 100644 src/evm/contracts/Moon.ts delete mode 100644 src/evm/contracts/OptimisticLightClient.ts delete mode 100644 src/evm/contracts/OptimisticProofVerifier.ts delete mode 100644 src/evm/contracts/UniversalChannelHandler.ts delete mode 100644 src/evm/contracts/common.ts delete mode 100644 src/evm/contracts/factories/Dispatcher__factory.ts delete mode 100644 src/evm/contracts/factories/DummyLightClient__factory.ts delete mode 100644 src/evm/contracts/factories/DummyProofVerifier__factory.ts delete mode 100644 src/evm/contracts/factories/ERC1967Proxy__factory.ts delete mode 100644 src/evm/contracts/factories/Earth__factory.ts delete mode 100644 src/evm/contracts/factories/FeeVault__factory.ts delete mode 100644 src/evm/contracts/factories/IDispatcher__factory.ts delete mode 100644 src/evm/contracts/factories/IFeeVault__factory.ts delete mode 100644 src/evm/contracts/factories/ILightClient__factory.ts delete mode 100644 src/evm/contracts/factories/IProofVerifier__factory.ts delete mode 100644 src/evm/contracts/factories/IUniversalChannelHandler__factory.ts delete mode 100644 src/evm/contracts/factories/IbcDispatcher.sol/IbcDispatcher__factory.ts delete mode 100644 src/evm/contracts/factories/IbcDispatcher.sol/IbcEventsEmitter__factory.ts delete mode 100644 src/evm/contracts/factories/IbcDispatcher.sol/IbcPacketSender__factory.ts delete mode 100644 src/evm/contracts/factories/IbcDispatcher.sol/index.ts delete mode 100644 src/evm/contracts/factories/IbcUtils__factory.ts delete mode 100644 src/evm/contracts/factories/Ibc__factory.ts delete mode 100644 src/evm/contracts/factories/Mars.sol/Mars__factory.ts delete mode 100644 src/evm/contracts/factories/Mars.sol/PanickingMars__factory.ts delete mode 100644 src/evm/contracts/factories/Mars.sol/RevertingBytesMars__factory.ts delete mode 100644 src/evm/contracts/factories/Mars.sol/RevertingEmptyMars__factory.ts delete mode 100644 src/evm/contracts/factories/Mars.sol/RevertingStringCloseChannelMars__factory.ts delete mode 100644 src/evm/contracts/factories/Mars.sol/RevertingStringMars__factory.ts delete mode 100644 src/evm/contracts/factories/Mars.sol/index.ts delete mode 100644 src/evm/contracts/factories/Moon__factory.ts delete mode 100644 src/evm/contracts/factories/OptimisticLightClient__factory.ts delete mode 100644 src/evm/contracts/factories/OptimisticProofVerifier__factory.ts delete mode 100644 src/evm/contracts/factories/UniversalChannelHandler__factory.ts delete mode 100644 src/evm/contracts/factories/index.ts delete mode 100644 src/evm/contracts/index.ts diff --git a/bindings/go/mars/Mars.go b/bindings/go/mars/Mars.go index c6a75226..5783890a 100644 --- a/bindings/go/mars/Mars.go +++ b/bindings/go/mars/Mars.go @@ -59,7 +59,7 @@ type IbcPacket struct { // MarsMetaData contains all meta data concerning the Mars contract. var MarsMetaData = &bind.MetaData{ - ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"counterpartyChannelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", + ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", } // MarsABI is the input ABI used to generate the binding from. @@ -317,10 +317,10 @@ func (_Mars *MarsCallerSession) Dispatcher() (common.Address, error) { // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_Mars *MarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_Mars *MarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { var out []interface{} - err := _Mars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, counterpartyPortIdentifier, version) + err := _Mars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, arg2, version) if err != nil { return *new(string), err @@ -334,16 +334,16 @@ func (_Mars *MarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 [] // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_Mars *MarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _Mars.Contract.OnChanOpenInit(&_Mars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_Mars *MarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _Mars.Contract.OnChanOpenInit(&_Mars.CallOpts, arg0, arg1, arg2, version) } // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_Mars *MarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _Mars.Contract.OnChanOpenInit(&_Mars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_Mars *MarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _Mars.Contract.OnChanOpenInit(&_Mars.CallOpts, arg0, arg1, arg2, version) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. @@ -582,44 +582,44 @@ func (_Mars *MarsTransactorSession) GreetWithFee(message string, channelId [32]b // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Mars *MarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Mars.contract.Transact(opts, "onAcknowledgementPacket", packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_Mars *MarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _Mars.contract.Transact(opts, "onAcknowledgementPacket", arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Mars *MarsSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Mars.Contract.OnAcknowledgementPacket(&_Mars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_Mars *MarsSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _Mars.Contract.OnAcknowledgementPacket(&_Mars.TransactOpts, arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Mars *MarsTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Mars.Contract.OnAcknowledgementPacket(&_Mars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_Mars *MarsTransactorSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _Mars.Contract.OnAcknowledgementPacket(&_Mars.TransactOpts, arg0, ack) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_Mars *MarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _Mars.contract.Transact(opts, "onChanCloseConfirm", channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_Mars *MarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _Mars.contract.Transact(opts, "onChanCloseConfirm", channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_Mars *MarsSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _Mars.Contract.OnChanCloseConfirm(&_Mars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_Mars *MarsSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _Mars.Contract.OnChanCloseConfirm(&_Mars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_Mars *MarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _Mars.Contract.OnChanCloseConfirm(&_Mars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_Mars *MarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _Mars.Contract.OnChanCloseConfirm(&_Mars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. diff --git a/bindings/go/mars/PanickingMars.go b/bindings/go/mars/PanickingMars.go index bda80149..68a839b8 100644 --- a/bindings/go/mars/PanickingMars.go +++ b/bindings/go/mars/PanickingMars.go @@ -59,7 +59,7 @@ type IbcPacket struct { // PanickingMarsMetaData contains all meta data concerning the PanickingMars contract. var PanickingMarsMetaData = &bind.MetaData{ - ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"counterpartyChannelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", + ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", } // PanickingMarsABI is the input ABI used to generate the binding from. @@ -317,10 +317,10 @@ func (_PanickingMars *PanickingMarsCallerSession) Dispatcher() (common.Address, // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_PanickingMars *PanickingMarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_PanickingMars *PanickingMarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { var out []interface{} - err := _PanickingMars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, counterpartyPortIdentifier, version) + err := _PanickingMars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, arg2, version) if err != nil { return *new(string), err @@ -334,16 +334,16 @@ func (_PanickingMars *PanickingMarsCaller) OnChanOpenInit(opts *bind.CallOpts, a // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_PanickingMars *PanickingMarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _PanickingMars.Contract.OnChanOpenInit(&_PanickingMars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_PanickingMars *PanickingMarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _PanickingMars.Contract.OnChanOpenInit(&_PanickingMars.CallOpts, arg0, arg1, arg2, version) } // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_PanickingMars *PanickingMarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _PanickingMars.Contract.OnChanOpenInit(&_PanickingMars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_PanickingMars *PanickingMarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _PanickingMars.Contract.OnChanOpenInit(&_PanickingMars.CallOpts, arg0, arg1, arg2, version) } // OnRecvPacket is a free data retrieval call binding the contract method 0x4dcc0aa6. @@ -613,44 +613,44 @@ func (_PanickingMars *PanickingMarsTransactorSession) GreetWithFee(message strin // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_PanickingMars *PanickingMarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _PanickingMars.contract.Transact(opts, "onAcknowledgementPacket", packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_PanickingMars *PanickingMarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _PanickingMars.contract.Transact(opts, "onAcknowledgementPacket", arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_PanickingMars *PanickingMarsSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _PanickingMars.Contract.OnAcknowledgementPacket(&_PanickingMars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_PanickingMars *PanickingMarsSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _PanickingMars.Contract.OnAcknowledgementPacket(&_PanickingMars.TransactOpts, arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_PanickingMars *PanickingMarsTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _PanickingMars.Contract.OnAcknowledgementPacket(&_PanickingMars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_PanickingMars *PanickingMarsTransactorSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _PanickingMars.Contract.OnAcknowledgementPacket(&_PanickingMars.TransactOpts, arg0, ack) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_PanickingMars *PanickingMarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _PanickingMars.contract.Transact(opts, "onChanCloseConfirm", channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_PanickingMars *PanickingMarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _PanickingMars.contract.Transact(opts, "onChanCloseConfirm", channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_PanickingMars *PanickingMarsSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _PanickingMars.Contract.OnChanCloseConfirm(&_PanickingMars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_PanickingMars *PanickingMarsSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _PanickingMars.Contract.OnChanCloseConfirm(&_PanickingMars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_PanickingMars *PanickingMarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _PanickingMars.Contract.OnChanCloseConfirm(&_PanickingMars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_PanickingMars *PanickingMarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _PanickingMars.Contract.OnChanCloseConfirm(&_PanickingMars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. diff --git a/bindings/go/mars/RevertingBytesMars.go b/bindings/go/mars/RevertingBytesMars.go index 5aed47d1..0d2ed43f 100644 --- a/bindings/go/mars/RevertingBytesMars.go +++ b/bindings/go/mars/RevertingBytesMars.go @@ -59,7 +59,7 @@ type IbcPacket struct { // RevertingBytesMarsMetaData contains all meta data concerning the RevertingBytesMars contract. var RevertingBytesMarsMetaData = &bind.MetaData{ - ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"counterpartyChannelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OnRecvPacketRevert\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OnTimeoutPacket\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", + ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OnRecvPacketRevert\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OnTimeoutPacket\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", } // RevertingBytesMarsABI is the input ABI used to generate the binding from. @@ -317,10 +317,10 @@ func (_RevertingBytesMars *RevertingBytesMarsCallerSession) Dispatcher() (common // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingBytesMars *RevertingBytesMarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingBytesMars *RevertingBytesMarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { var out []interface{} - err := _RevertingBytesMars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, counterpartyPortIdentifier, version) + err := _RevertingBytesMars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, arg2, version) if err != nil { return *new(string), err @@ -334,16 +334,16 @@ func (_RevertingBytesMars *RevertingBytesMarsCaller) OnChanOpenInit(opts *bind.C // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingBytesMars *RevertingBytesMarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _RevertingBytesMars.Contract.OnChanOpenInit(&_RevertingBytesMars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingBytesMars *RevertingBytesMarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _RevertingBytesMars.Contract.OnChanOpenInit(&_RevertingBytesMars.CallOpts, arg0, arg1, arg2, version) } // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingBytesMars *RevertingBytesMarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _RevertingBytesMars.Contract.OnChanOpenInit(&_RevertingBytesMars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingBytesMars *RevertingBytesMarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _RevertingBytesMars.Contract.OnChanOpenInit(&_RevertingBytesMars.CallOpts, arg0, arg1, arg2, version) } // OnRecvPacket is a free data retrieval call binding the contract method 0x4dcc0aa6. @@ -642,44 +642,44 @@ func (_RevertingBytesMars *RevertingBytesMarsTransactorSession) GreetWithFee(mes // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingBytesMars *RevertingBytesMarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingBytesMars.contract.Transact(opts, "onAcknowledgementPacket", packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingBytesMars *RevertingBytesMarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingBytesMars.contract.Transact(opts, "onAcknowledgementPacket", arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingBytesMars *RevertingBytesMarsSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingBytesMars.Contract.OnAcknowledgementPacket(&_RevertingBytesMars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingBytesMars *RevertingBytesMarsSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingBytesMars.Contract.OnAcknowledgementPacket(&_RevertingBytesMars.TransactOpts, arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingBytesMars *RevertingBytesMarsTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingBytesMars.Contract.OnAcknowledgementPacket(&_RevertingBytesMars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingBytesMars *RevertingBytesMarsTransactorSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingBytesMars.Contract.OnAcknowledgementPacket(&_RevertingBytesMars.TransactOpts, arg0, ack) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingBytesMars *RevertingBytesMarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingBytesMars.contract.Transact(opts, "onChanCloseConfirm", channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingBytesMars *RevertingBytesMarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingBytesMars.contract.Transact(opts, "onChanCloseConfirm", channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingBytesMars *RevertingBytesMarsSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingBytesMars.Contract.OnChanCloseConfirm(&_RevertingBytesMars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingBytesMars *RevertingBytesMarsSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingBytesMars.Contract.OnChanCloseConfirm(&_RevertingBytesMars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingBytesMars *RevertingBytesMarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingBytesMars.Contract.OnChanCloseConfirm(&_RevertingBytesMars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingBytesMars *RevertingBytesMarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingBytesMars.Contract.OnChanCloseConfirm(&_RevertingBytesMars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. diff --git a/bindings/go/mars/RevertingEmptyMars.go b/bindings/go/mars/RevertingEmptyMars.go index 9880f54b..87b25f64 100644 --- a/bindings/go/mars/RevertingEmptyMars.go +++ b/bindings/go/mars/RevertingEmptyMars.go @@ -59,7 +59,7 @@ type IbcPacket struct { // RevertingEmptyMarsMetaData contains all meta data concerning the RevertingEmptyMars contract. var RevertingEmptyMarsMetaData = &bind.MetaData{ - ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"counterpartyChannelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", + ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", } // RevertingEmptyMarsABI is the input ABI used to generate the binding from. @@ -317,10 +317,10 @@ func (_RevertingEmptyMars *RevertingEmptyMarsCallerSession) Dispatcher() (common // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingEmptyMars *RevertingEmptyMarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingEmptyMars *RevertingEmptyMarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { var out []interface{} - err := _RevertingEmptyMars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, counterpartyPortIdentifier, version) + err := _RevertingEmptyMars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, arg2, version) if err != nil { return *new(string), err @@ -334,16 +334,16 @@ func (_RevertingEmptyMars *RevertingEmptyMarsCaller) OnChanOpenInit(opts *bind.C // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingEmptyMars *RevertingEmptyMarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _RevertingEmptyMars.Contract.OnChanOpenInit(&_RevertingEmptyMars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingEmptyMars *RevertingEmptyMarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _RevertingEmptyMars.Contract.OnChanOpenInit(&_RevertingEmptyMars.CallOpts, arg0, arg1, arg2, version) } // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingEmptyMars *RevertingEmptyMarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _RevertingEmptyMars.Contract.OnChanOpenInit(&_RevertingEmptyMars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingEmptyMars *RevertingEmptyMarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _RevertingEmptyMars.Contract.OnChanOpenInit(&_RevertingEmptyMars.CallOpts, arg0, arg1, arg2, version) } // OnRecvPacket is a free data retrieval call binding the contract method 0x4dcc0aa6. @@ -613,44 +613,44 @@ func (_RevertingEmptyMars *RevertingEmptyMarsTransactorSession) GreetWithFee(mes // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingEmptyMars *RevertingEmptyMarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingEmptyMars.contract.Transact(opts, "onAcknowledgementPacket", packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingEmptyMars *RevertingEmptyMarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingEmptyMars.contract.Transact(opts, "onAcknowledgementPacket", arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingEmptyMars *RevertingEmptyMarsSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingEmptyMars.Contract.OnAcknowledgementPacket(&_RevertingEmptyMars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingEmptyMars *RevertingEmptyMarsSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingEmptyMars.Contract.OnAcknowledgementPacket(&_RevertingEmptyMars.TransactOpts, arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingEmptyMars *RevertingEmptyMarsTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingEmptyMars.Contract.OnAcknowledgementPacket(&_RevertingEmptyMars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingEmptyMars *RevertingEmptyMarsTransactorSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingEmptyMars.Contract.OnAcknowledgementPacket(&_RevertingEmptyMars.TransactOpts, arg0, ack) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingEmptyMars *RevertingEmptyMarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingEmptyMars.contract.Transact(opts, "onChanCloseConfirm", channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingEmptyMars *RevertingEmptyMarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingEmptyMars.contract.Transact(opts, "onChanCloseConfirm", channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingEmptyMars *RevertingEmptyMarsSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingEmptyMars.Contract.OnChanCloseConfirm(&_RevertingEmptyMars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingEmptyMars *RevertingEmptyMarsSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingEmptyMars.Contract.OnChanCloseConfirm(&_RevertingEmptyMars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingEmptyMars *RevertingEmptyMarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingEmptyMars.Contract.OnChanCloseConfirm(&_RevertingEmptyMars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingEmptyMars *RevertingEmptyMarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingEmptyMars.Contract.OnChanCloseConfirm(&_RevertingEmptyMars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. diff --git a/bindings/go/mars/RevertingStringCloseChannelMars.go b/bindings/go/mars/RevertingStringCloseChannelMars.go index 5cf8798c..3bfd37e0 100644 --- a/bindings/go/mars/RevertingStringCloseChannelMars.go +++ b/bindings/go/mars/RevertingStringCloseChannelMars.go @@ -59,7 +59,7 @@ type IbcPacket struct { // RevertingStringCloseChannelMarsMetaData contains all meta data concerning the RevertingStringCloseChannelMars contract. var RevertingStringCloseChannelMarsMetaData = &bind.MetaData{ - ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", + ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", } // RevertingStringCloseChannelMarsABI is the input ABI used to generate the binding from. @@ -375,10 +375,10 @@ func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsCallerSes // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { var out []interface{} - err := _RevertingStringCloseChannelMars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, counterpartyPortIdentifier, version) + err := _RevertingStringCloseChannelMars.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, arg2, version) if err != nil { return *new(string), err @@ -392,16 +392,16 @@ func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsCaller) O // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _RevertingStringCloseChannelMars.Contract.OnChanOpenInit(&_RevertingStringCloseChannelMars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _RevertingStringCloseChannelMars.Contract.OnChanOpenInit(&_RevertingStringCloseChannelMars.CallOpts, arg0, arg1, arg2, version) } // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _RevertingStringCloseChannelMars.Contract.OnChanOpenInit(&_RevertingStringCloseChannelMars.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _RevertingStringCloseChannelMars.Contract.OnChanOpenInit(&_RevertingStringCloseChannelMars.CallOpts, arg0, arg1, arg2, version) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. @@ -640,23 +640,23 @@ func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsTransacto // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingStringCloseChannelMars.contract.Transact(opts, "onAcknowledgementPacket", packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingStringCloseChannelMars.contract.Transact(opts, "onAcknowledgementPacket", arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingStringCloseChannelMars.Contract.OnAcknowledgementPacket(&_RevertingStringCloseChannelMars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingStringCloseChannelMars.Contract.OnAcknowledgementPacket(&_RevertingStringCloseChannelMars.TransactOpts, arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _RevertingStringCloseChannelMars.Contract.OnAcknowledgementPacket(&_RevertingStringCloseChannelMars.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_RevertingStringCloseChannelMars *RevertingStringCloseChannelMarsTransactorSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _RevertingStringCloseChannelMars.Contract.OnAcknowledgementPacket(&_RevertingStringCloseChannelMars.TransactOpts, arg0, ack) } // OnChanOpenAck is a paid mutator transaction binding the contract method 0xe847e280. diff --git a/bindings/go/mars/RevertingStringMars.go b/bindings/go/mars/RevertingStringMars.go index 8c87043a..f570b3da 100644 --- a/bindings/go/mars/RevertingStringMars.go +++ b/bindings/go/mars/RevertingStringMars.go @@ -59,7 +59,7 @@ type IbcPacket struct { // RevertingStringMarsMetaData contains all meta data concerning the RevertingStringMars contract. var RevertingStringMarsMetaData = &bind.MetaData{ - ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"counterpartyChannelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", + ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", } // RevertingStringMarsABI is the input ABI used to generate the binding from. @@ -671,23 +671,23 @@ func (_RevertingStringMars *RevertingStringMarsTransactorSession) GreetWithFee(m // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingStringMars *RevertingStringMarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingStringMars.contract.Transact(opts, "onChanCloseConfirm", channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingStringMars *RevertingStringMarsTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingStringMars.contract.Transact(opts, "onChanCloseConfirm", channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingStringMars *RevertingStringMarsSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingStringMars.Contract.OnChanCloseConfirm(&_RevertingStringMars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingStringMars *RevertingStringMarsSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingStringMars.Contract.OnChanCloseConfirm(&_RevertingStringMars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_RevertingStringMars *RevertingStringMarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _RevertingStringMars.Contract.OnChanCloseConfirm(&_RevertingStringMars.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_RevertingStringMars *RevertingStringMarsTransactorSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _RevertingStringMars.Contract.OnChanCloseConfirm(&_RevertingStringMars.TransactOpts, channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. diff --git a/bindings/go/moon/Moon.go b/bindings/go/moon/Moon.go index 45629d42..c8448e26 100644 --- a/bindings/go/moon/Moon.go +++ b/bindings/go/moon/Moon.go @@ -59,7 +59,7 @@ type IbcPacket struct { // MoonMetaData contains all meta data concerning the Moon contract. var MoonMetaData = &bind.MetaData{ - ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"counterpartyChannelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", + ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"connectedChannels\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"message\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportedVersions\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelClose\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInit\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"triggerChannelInitWithFee\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", } // MoonABI is the input ABI used to generate the binding from. @@ -317,10 +317,10 @@ func (_Moon *MoonCallerSession) Dispatcher() (common.Address, error) { // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_Moon *MoonCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_Moon *MoonCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { var out []interface{} - err := _Moon.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, counterpartyPortIdentifier, version) + err := _Moon.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, arg2, version) if err != nil { return *new(string), err @@ -334,16 +334,16 @@ func (_Moon *MoonCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 [] // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_Moon *MoonSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _Moon.Contract.OnChanOpenInit(&_Moon.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_Moon *MoonSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _Moon.Contract.OnChanOpenInit(&_Moon.CallOpts, arg0, arg1, arg2, version) } // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // -// Solidity: function onChanOpenInit(uint8 , string[] , string counterpartyPortIdentifier, string version) view returns(string selectedVersion) -func (_Moon *MoonCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, counterpartyPortIdentifier string, version string) (string, error) { - return _Moon.Contract.OnChanOpenInit(&_Moon.CallOpts, arg0, arg1, counterpartyPortIdentifier, version) +// Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) +func (_Moon *MoonCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _Moon.Contract.OnChanOpenInit(&_Moon.CallOpts, arg0, arg1, arg2, version) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. @@ -582,44 +582,44 @@ func (_Moon *MoonTransactorSession) GreetWithFee(message string, channelId [32]b // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Moon *MoonTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Moon.contract.Transact(opts, "onAcknowledgementPacket", packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_Moon *MoonTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _Moon.contract.Transact(opts, "onAcknowledgementPacket", arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Moon *MoonSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Moon.Contract.OnAcknowledgementPacket(&_Moon.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_Moon *MoonSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _Moon.Contract.OnAcknowledgementPacket(&_Moon.TransactOpts, arg0, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // -// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Moon *MoonTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Moon.Contract.OnAcknowledgementPacket(&_Moon.TransactOpts, packet, ack) +// Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) , (bool,bytes) ack) returns() +func (_Moon *MoonTransactorSession) OnAcknowledgementPacket(arg0 IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _Moon.Contract.OnAcknowledgementPacket(&_Moon.TransactOpts, arg0, ack) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_Moon *MoonTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _Moon.contract.Transact(opts, "onChanCloseConfirm", channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_Moon *MoonTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _Moon.contract.Transact(opts, "onChanCloseConfirm", channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_Moon *MoonSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _Moon.Contract.OnChanCloseConfirm(&_Moon.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_Moon *MoonSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _Moon.Contract.OnChanCloseConfirm(&_Moon.TransactOpts, channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // -// Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns() -func (_Moon *MoonTransactorSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error) { - return _Moon.Contract.OnChanCloseConfirm(&_Moon.TransactOpts, channelId, counterpartyPortId, counterpartyChannelId) +// Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() +func (_Moon *MoonTransactorSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _Moon.Contract.OnChanCloseConfirm(&_Moon.TransactOpts, channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. diff --git a/contracts/base/GeneralMiddleware.sol b/contracts/base/GeneralMiddleware.sol index 3d00a7c4..1259411e 100644 --- a/contracts/base/GeneralMiddleware.sol +++ b/contracts/base/GeneralMiddleware.sol @@ -71,8 +71,8 @@ contract GeneralMiddleware is IbcMwUser, IbcMiddleware, IbcMwEventsEmitter, IbcM bytes32 destPortAddr, bytes calldata appData, uint64 timeoutTimestamp, - uint256[2] calldata gasLimits, - uint256[2] calldata gasPrices + uint256[2] memory gasLimits, + uint256[2] memory gasPrices ) external payable override returns (uint64 sequence) {} function sendMWPacket( diff --git a/contracts/examples/Mars.sol b/contracts/examples/Mars.sol index 9b3928ef..f4a7a532 100644 --- a/contracts/examples/Mars.sol +++ b/contracts/examples/Mars.sol @@ -92,15 +92,9 @@ contract Mars is IbcReceiverBase, IbcReceiver, FeeSender { /** * @notice Callback for acknowledging a packet; triggered on reciept of an IBC packet by the counterparty - * @param packet The IBC packet for which acknowledgement is received - * @param ack The acknowledgement packet received * @dev Make sure to validate packet's source and destiation channels and ports. */ - function onAcknowledgementPacket(IbcPacket calldata packet, AckPacket calldata ack) - external - virtual - onlyIbcDispatcher - { + function onAcknowledgementPacket(IbcPacket calldata, AckPacket calldata ack) external virtual onlyIbcDispatcher { ackPackets.push(ack); } @@ -119,14 +113,8 @@ contract Mars is IbcReceiverBase, IbcReceiver, FeeSender { * @notice Handles channel close callback on the dest chain * @param channelId The unique identifier of the channel * @dev Make sure to validate channelId and counterpartyVersion - * @param counterpartyPortId The unique identifier of the counterparty's port - * @param counterpartyChannelId The unique identifier of the counterparty's channel */ - function onChanCloseConfirm(bytes32 channelId, string calldata counterpartyPortId, bytes32 counterpartyChannelId) - external - virtual - onlyIbcDispatcher - { + function onChanCloseConfirm(bytes32 channelId, string calldata, bytes32) external virtual onlyIbcDispatcher { // logic to determine if the channel should be closed bool channelFound = false; for (uint256 i = 0; i < connectedChannels.length; i++) { @@ -182,8 +170,8 @@ contract Mars is IbcReceiverBase, IbcReceiver, FeeSender { string calldata message, bytes32 channelId, uint64 timeoutTimestamp, - uint256[2] calldata gasLimits, - uint256[2] calldata gasPrices + uint256[2] memory gasLimits, + uint256[2] memory gasPrices ) external payable returns (uint64 sequence) { sequence = dispatcher.sendPacket(channelId, bytes(message), timeoutTimestamp); _depositSendPacketFee(dispatcher, channelId, sequence, gasLimits, gasPrices); @@ -192,15 +180,15 @@ contract Mars is IbcReceiverBase, IbcReceiver, FeeSender { /** * @notice Handles the channel close init event * @dev Make sure to validate channelId and counterpartyVersion - * @param counterpartyPortIdentifier The unique identifier of the counterparty's channel * @param version The channel version */ - function onChanOpenInit( - ChannelOrder, - string[] calldata, - string calldata counterpartyPortIdentifier, - string calldata version - ) external view virtual onlyIbcDispatcher returns (string memory selectedVersion) { + function onChanOpenInit(ChannelOrder, string[] calldata, string calldata, string calldata version) + external + view + virtual + onlyIbcDispatcher + returns (string memory selectedVersion) + { return _openChannel(version); } diff --git a/contracts/implementation_templates/FeeSender.sol b/contracts/implementation_templates/FeeSender.sol index 1e204416..8da2550d 100644 --- a/contracts/implementation_templates/FeeSender.sol +++ b/contracts/implementation_templates/FeeSender.sol @@ -45,14 +45,16 @@ abstract contract FeeSender { * - gasPrices[1] for `ackPacket` fees, for the src chain * @notice The total fees sent in the msg.value should be equal to the total gasLimits[0] * gasPrices[0] + * @notice Use the Polymer fee estimation api to get the required fees to ensure that enough fees are sent. + * @dev Note: We have to have gasLimits and gasPrices as memory arrays. We cannot have them as calldata arrays + * because solidity has weird behavior with using too much calldata in stacked calls * gasLimits[1] * gasPrices[1]. The transaction will revert if a higher or lower value is sent */ function _depositSendPacketFee( IbcDispatcher dispatcher, bytes32 channelId, uint64 sequence, - uint256[2] calldata gasLimits, - uint256[2] calldata gasPrices + uint256[2] memory gasLimits, + uint256[2] memory gasPrices ) internal { dispatcher.feeVault().depositSendPacketFee{value: msg.value}(channelId, sequence, gasLimits, gasPrices); } diff --git a/src/evm/contracts/Dispatcher.ts b/src/evm/contracts/Dispatcher.ts deleted file mode 100644 index 9c79a68f..00000000 --- a/src/evm/contracts/Dispatcher.ts +++ /dev/null @@ -1,1751 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export type ChannelEndStruct = { - portId: string; - channelId: BytesLike; - version: string; -}; - -export type ChannelEndStructOutput = [ - portId: string, - channelId: string, - version: string -] & { portId: string; channelId: string; version: string }; - -export type ChannelStruct = { - version: string; - ordering: BigNumberish; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - counterpartyChannelId: BytesLike; - portId: string; -}; - -export type ChannelStructOutput = [ - version: string, - ordering: bigint, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: string, - portId: string -] & { - version: string; - ordering: bigint; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - counterpartyChannelId: string; - portId: string; -}; - -export type L1HeaderStruct = { - header: BytesLike[]; - stateRoot: BytesLike; - number: BigNumberish; -}; - -export type L1HeaderStructOutput = [ - header: string[], - stateRoot: string, - number: bigint -] & { header: string[]; stateRoot: string; number: bigint }; - -export type OpL2StateProofStruct = { - accountProof: BytesLike[]; - outputRootProof: BytesLike[]; - l2OutputProposalKey: BytesLike; - l2BlockHash: BytesLike; -}; - -export type OpL2StateProofStructOutput = [ - accountProof: string[], - outputRootProof: string[], - l2OutputProposalKey: string, - l2BlockHash: string -] & { - accountProof: string[]; - outputRootProof: string[]; - l2OutputProposalKey: string; - l2BlockHash: string; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface DispatcherInterface extends Interface { - getFunction( - nameOrSignature: - | "acknowledgement" - | "channelCloseConfirm" - | "channelCloseInit" - | "channelOpenAck" - | "channelOpenConfirm" - | "channelOpenInit" - | "channelOpenTry" - | "feeVault" - | "getChannel" - | "getOptimisticConsensusState" - | "initialize" - | "owner" - | "portPrefix" - | "portPrefixLen" - | "proxiableUUID" - | "recvPacket" - | "removeConnection" - | "renounceOwnership" - | "sendPacket" - | "setClientForConnection" - | "setPortPrefix" - | "timeout" - | "transferOwnership" - | "updateClientWithOptimisticConsensusState" - | "upgradeTo" - | "upgradeToAndCall" - | "writeTimeoutPacket" - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "Acknowledgement" - | "AcknowledgementError" - | "AdminChanged" - | "BeaconUpgraded" - | "ChannelCloseConfirm" - | "ChannelCloseConfirmError" - | "ChannelCloseInit" - | "ChannelCloseInitError" - | "ChannelOpenAck" - | "ChannelOpenAckError" - | "ChannelOpenConfirm" - | "ChannelOpenConfirmError" - | "ChannelOpenInit" - | "ChannelOpenInitError" - | "ChannelOpenTry" - | "ChannelOpenTryError" - | "Initialized" - | "OwnershipTransferred" - | "RecvPacket" - | "SendPacket" - | "Timeout" - | "TimeoutError" - | "Upgraded" - | "WriteAckPacket" - | "WriteTimeoutPacket" - ): EventFragment; - - encodeFunctionData( - functionFragment: "acknowledgement", - values: [IbcPacketStruct, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "channelCloseConfirm", - values: [AddressLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "channelCloseInit", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "channelOpenAck", - values: [ - ChannelEndStruct, - string[], - BigNumberish, - boolean, - ChannelEndStruct, - Ics23ProofStruct - ] - ): string; - encodeFunctionData( - functionFragment: "channelOpenConfirm", - values: [ - ChannelEndStruct, - string[], - BigNumberish, - boolean, - ChannelEndStruct, - Ics23ProofStruct - ] - ): string; - encodeFunctionData( - functionFragment: "channelOpenInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "channelOpenTry", - values: [ - ChannelEndStruct, - BigNumberish, - boolean, - string[], - ChannelEndStruct, - Ics23ProofStruct - ] - ): string; - encodeFunctionData(functionFragment: "feeVault", values?: undefined): string; - encodeFunctionData( - functionFragment: "getChannel", - values: [AddressLike, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "getOptimisticConsensusState", - values: [BigNumberish, string] - ): string; - encodeFunctionData( - functionFragment: "initialize", - values: [string, AddressLike] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "portPrefix", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "portPrefixLen", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "proxiableUUID", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "recvPacket", - values: [IbcPacketStruct, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "removeConnection", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "sendPacket", - values: [BytesLike, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "setClientForConnection", - values: [string, AddressLike] - ): string; - encodeFunctionData( - functionFragment: "setPortPrefix", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "timeout", - values: [IbcPacketStruct, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "updateClientWithOptimisticConsensusState", - values: [ - L1HeaderStruct, - OpL2StateProofStruct, - BigNumberish, - BigNumberish, - string - ] - ): string; - encodeFunctionData( - functionFragment: "upgradeTo", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "upgradeToAndCall", - values: [AddressLike, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "writeTimeoutPacket", - values: [IbcPacketStruct, Ics23ProofStruct] - ): string; - - decodeFunctionResult( - functionFragment: "acknowledgement", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "feeVault", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "getChannel", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getOptimisticConsensusState", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "portPrefix", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "portPrefixLen", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "proxiableUUID", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "recvPacket", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "removeConnection", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "sendPacket", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setClientForConnection", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setPortPrefix", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "timeout", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateClientWithOptimisticConsensusState", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "upgradeToAndCall", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "writeTimeoutPacket", - data: BytesLike - ): Result; -} - -export namespace AcknowledgementEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AcknowledgementErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AdminChangedEvent { - export type InputTuple = [previousAdmin: AddressLike, newAdmin: AddressLike]; - export type OutputTuple = [previousAdmin: string, newAdmin: string]; - export interface OutputObject { - previousAdmin: string; - newAdmin: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace BeaconUpgradedEvent { - export type InputTuple = [beacon: AddressLike]; - export type OutputTuple = [beacon: string]; - export interface OutputObject { - beacon: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseConfirmEvent { - export type InputTuple = [portAddress: AddressLike, channelId: BytesLike]; - export type OutputTuple = [portAddress: string, channelId: string]; - export interface OutputObject { - portAddress: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseConfirmErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseInitEvent { - export type InputTuple = [portAddress: AddressLike, channelId: BytesLike]; - export type OutputTuple = [portAddress: string, channelId: string]; - export interface OutputObject { - portAddress: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseInitErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenAckEvent { - export type InputTuple = [receiver: AddressLike, channelId: BytesLike]; - export type OutputTuple = [receiver: string, channelId: string]; - export interface OutputObject { - receiver: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenAckErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenConfirmEvent { - export type InputTuple = [receiver: AddressLike, channelId: BytesLike]; - export type OutputTuple = [receiver: string, channelId: string]; - export interface OutputObject { - receiver: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenConfirmErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenInitEvent { - export type InputTuple = [ - receiver: AddressLike, - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ]; - export type OutputTuple = [ - receiver: string, - version: string, - ordering: bigint, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ]; - export interface OutputObject { - receiver: string; - version: string; - ordering: bigint; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenInitErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenTryEvent { - export type InputTuple = [ - receiver: AddressLike, - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ]; - export type OutputTuple = [ - receiver: string, - version: string, - ordering: bigint, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: string - ]; - export interface OutputObject { - receiver: string; - version: string; - ordering: bigint; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - counterpartyChannelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenTryErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace InitializedEvent { - export type InputTuple = [version: BigNumberish]; - export type OutputTuple = [version: bigint]; - export interface OutputObject { - version: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RecvPacketEvent { - export type InputTuple = [ - destPortAddress: AddressLike, - destChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - destPortAddress: string, - destChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - destPortAddress: string; - destChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace SendPacketEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - packet: BytesLike, - sequence: BigNumberish, - timeoutTimestamp: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - packet: string, - sequence: bigint, - timeoutTimestamp: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - packet: string; - sequence: bigint; - timeoutTimestamp: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TimeoutEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TimeoutErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace UpgradedEvent { - export type InputTuple = [implementation: AddressLike]; - export type OutputTuple = [implementation: string]; - export interface OutputObject { - implementation: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace WriteAckPacketEvent { - export type InputTuple = [ - writerPortAddress: AddressLike, - writerChannelId: BytesLike, - sequence: BigNumberish, - ackPacket: AckPacketStruct - ]; - export type OutputTuple = [ - writerPortAddress: string, - writerChannelId: string, - sequence: bigint, - ackPacket: AckPacketStructOutput - ]; - export interface OutputObject { - writerPortAddress: string; - writerChannelId: string; - sequence: bigint; - ackPacket: AckPacketStructOutput; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace WriteTimeoutPacketEvent { - export type InputTuple = [ - writerPortAddress: AddressLike, - writerChannelId: BytesLike, - sequence: BigNumberish, - timeoutHeight: HeightStruct, - timeoutTimestamp: BigNumberish - ]; - export type OutputTuple = [ - writerPortAddress: string, - writerChannelId: string, - sequence: bigint, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint - ]; - export interface OutputObject { - writerPortAddress: string; - writerChannelId: string; - sequence: bigint; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface Dispatcher extends BaseContract { - connect(runner?: ContractRunner | null): Dispatcher; - waitForDeployment(): Promise; - - interface: DispatcherInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - acknowledgement: TypedContractMethod< - [packet: IbcPacketStruct, ack: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - channelCloseConfirm: TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - channelCloseInit: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - channelOpenAck: TypedContractMethod< - [ - local: ChannelEndStruct, - connectionHops: string[], - ordering: BigNumberish, - feeEnabled: boolean, - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - - channelOpenConfirm: TypedContractMethod< - [ - local: ChannelEndStruct, - connectionHops: string[], - ordering: BigNumberish, - feeEnabled: boolean, - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - - channelOpenInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - channelOpenTry: TypedContractMethod< - [ - local: ChannelEndStruct, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - - feeVault: TypedContractMethod<[], [string], "view">; - - getChannel: TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike], - [ChannelStructOutput], - "view" - >; - - getOptimisticConsensusState: TypedContractMethod< - [height: BigNumberish, connection: string], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - - initialize: TypedContractMethod< - [initPortPrefix: string, _feeVault: AddressLike], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - portPrefix: TypedContractMethod<[], [string], "view">; - - portPrefixLen: TypedContractMethod<[], [bigint], "view">; - - proxiableUUID: TypedContractMethod<[], [string], "view">; - - recvPacket: TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - removeConnection: TypedContractMethod< - [connection: string], - [void], - "nonpayable" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - sendPacket: TypedContractMethod< - [channelId: BytesLike, packet: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - setClientForConnection: TypedContractMethod< - [connection: string, lightClient: AddressLike], - [void], - "nonpayable" - >; - - setPortPrefix: TypedContractMethod< - [_portPrefix: string], - [void], - "nonpayable" - >; - - timeout: TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - updateClientWithOptimisticConsensusState: TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - height: BigNumberish, - appHash: BigNumberish, - connection: string - ], - [[bigint, boolean] & { fraudProofEndTime: bigint; ended: boolean }], - "nonpayable" - >; - - upgradeTo: TypedContractMethod< - [newImplementation: AddressLike], - [void], - "nonpayable" - >; - - upgradeToAndCall: TypedContractMethod< - [newImplementation: AddressLike, data: BytesLike], - [void], - "payable" - >; - - writeTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "acknowledgement" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelCloseConfirm" - ): TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelCloseInit" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "channelOpenAck" - ): TypedContractMethod< - [ - local: ChannelEndStruct, - connectionHops: string[], - ordering: BigNumberish, - feeEnabled: boolean, - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelOpenConfirm" - ): TypedContractMethod< - [ - local: ChannelEndStruct, - connectionHops: string[], - ordering: BigNumberish, - feeEnabled: boolean, - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelOpenInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelOpenTry" - ): TypedContractMethod< - [ - local: ChannelEndStruct, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "feeVault" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "getChannel" - ): TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike], - [ChannelStructOutput], - "view" - >; - getFunction( - nameOrSignature: "getOptimisticConsensusState" - ): TypedContractMethod< - [height: BigNumberish, connection: string], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - getFunction( - nameOrSignature: "initialize" - ): TypedContractMethod< - [initPortPrefix: string, _feeVault: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "portPrefix" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "portPrefixLen" - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "proxiableUUID" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "removeConnection" - ): TypedContractMethod<[connection: string], [void], "nonpayable">; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "sendPacket" - ): TypedContractMethod< - [channelId: BytesLike, packet: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "setClientForConnection" - ): TypedContractMethod< - [connection: string, lightClient: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "setPortPrefix" - ): TypedContractMethod<[_portPrefix: string], [void], "nonpayable">; - getFunction( - nameOrSignature: "timeout" - ): TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "updateClientWithOptimisticConsensusState" - ): TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - height: BigNumberish, - appHash: BigNumberish, - connection: string - ], - [[bigint, boolean] & { fraudProofEndTime: bigint; ended: boolean }], - "nonpayable" - >; - getFunction( - nameOrSignature: "upgradeTo" - ): TypedContractMethod< - [newImplementation: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "upgradeToAndCall" - ): TypedContractMethod< - [newImplementation: AddressLike, data: BytesLike], - [void], - "payable" - >; - getFunction( - nameOrSignature: "writeTimeoutPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - getEvent( - key: "Acknowledgement" - ): TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - getEvent( - key: "AcknowledgementError" - ): TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - getEvent( - key: "AdminChanged" - ): TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - getEvent( - key: "BeaconUpgraded" - ): TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - getEvent( - key: "ChannelCloseConfirm" - ): TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - getEvent( - key: "ChannelCloseConfirmError" - ): TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - getEvent( - key: "ChannelCloseInit" - ): TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - getEvent( - key: "ChannelCloseInitError" - ): TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenAck" - ): TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - getEvent( - key: "ChannelOpenAckError" - ): TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenConfirm" - ): TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - getEvent( - key: "ChannelOpenConfirmError" - ): TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenInit" - ): TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - getEvent( - key: "ChannelOpenInitError" - ): TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenTry" - ): TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - getEvent( - key: "ChannelOpenTryError" - ): TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - getEvent( - key: "Initialized" - ): TypedContractEvent< - InitializedEvent.InputTuple, - InitializedEvent.OutputTuple, - InitializedEvent.OutputObject - >; - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - getEvent( - key: "RecvPacket" - ): TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - getEvent( - key: "SendPacket" - ): TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - getEvent( - key: "Timeout" - ): TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - getEvent( - key: "TimeoutError" - ): TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - getEvent( - key: "Upgraded" - ): TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - getEvent( - key: "WriteAckPacket" - ): TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - getEvent( - key: "WriteTimeoutPacket" - ): TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - - filters: { - "Acknowledgement(address,bytes32,uint64)": TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - Acknowledgement: TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - - "AcknowledgementError(address,bytes)": TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - AcknowledgementError: TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - - "AdminChanged(address,address)": TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - AdminChanged: TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - - "BeaconUpgraded(address)": TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - BeaconUpgraded: TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - - "ChannelCloseConfirm(address,bytes32)": TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - ChannelCloseConfirm: TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - - "ChannelCloseConfirmError(address,bytes)": TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - ChannelCloseConfirmError: TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - - "ChannelCloseInit(address,bytes32)": TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - ChannelCloseInit: TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - - "ChannelCloseInitError(address,bytes)": TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - ChannelCloseInitError: TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - - "ChannelOpenAck(address,bytes32)": TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - ChannelOpenAck: TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - - "ChannelOpenAckError(address,bytes)": TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - ChannelOpenAckError: TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - - "ChannelOpenConfirm(address,bytes32)": TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - ChannelOpenConfirm: TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - - "ChannelOpenConfirmError(address,bytes)": TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - ChannelOpenConfirmError: TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - - "ChannelOpenInit(address,string,uint8,bool,string[],string)": TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - ChannelOpenInit: TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - - "ChannelOpenInitError(address,bytes)": TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - ChannelOpenInitError: TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - - "ChannelOpenTry(address,string,uint8,bool,string[],string,bytes32)": TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - ChannelOpenTry: TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - - "ChannelOpenTryError(address,bytes)": TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - ChannelOpenTryError: TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - - "Initialized(uint8)": TypedContractEvent< - InitializedEvent.InputTuple, - InitializedEvent.OutputTuple, - InitializedEvent.OutputObject - >; - Initialized: TypedContractEvent< - InitializedEvent.InputTuple, - InitializedEvent.OutputTuple, - InitializedEvent.OutputObject - >; - - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - "RecvPacket(address,bytes32,uint64)": TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - RecvPacket: TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - - "SendPacket(address,bytes32,bytes,uint64,uint64)": TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - SendPacket: TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - - "Timeout(address,bytes32,uint64)": TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - Timeout: TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - - "TimeoutError(address,bytes)": TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - TimeoutError: TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - - "Upgraded(address)": TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - Upgraded: TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - - "WriteAckPacket(address,bytes32,uint64,tuple)": TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - WriteAckPacket: TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - - "WriteTimeoutPacket(address,bytes32,uint64,tuple,uint64)": TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - WriteTimeoutPacket: TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/DummyLightClient.ts b/src/evm/contracts/DummyLightClient.ts deleted file mode 100644 index f3dfbec3..00000000 --- a/src/evm/contracts/DummyLightClient.ts +++ /dev/null @@ -1,272 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type L1HeaderStruct = { - header: BytesLike[]; - stateRoot: BytesLike; - number: BigNumberish; -}; - -export type L1HeaderStructOutput = [ - header: string[], - stateRoot: string, - number: bigint -] & { header: string[]; stateRoot: string; number: bigint }; - -export type OpL2StateProofStruct = { - accountProof: BytesLike[]; - outputRootProof: BytesLike[]; - l2OutputProposalKey: BytesLike; - l2BlockHash: BytesLike; -}; - -export type OpL2StateProofStructOutput = [ - accountProof: string[], - outputRootProof: string[], - l2OutputProposalKey: string, - l2BlockHash: string -] & { - accountProof: string[]; - outputRootProof: string[]; - l2OutputProposalKey: string; - l2BlockHash: string; -}; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export interface DummyLightClientInterface extends Interface { - getFunction( - nameOrSignature: - | "addOpConsensusState" - | "getFraudProofEndtime" - | "getState" - | "verifyMembership" - | "verifyNonMembership" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "addOpConsensusState", - values: [L1HeaderStruct, OpL2StateProofStruct, BigNumberish, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getFraudProofEndtime", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getState", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "verifyMembership", - values: [Ics23ProofStruct, BytesLike, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "verifyNonMembership", - values: [Ics23ProofStruct, BytesLike] - ): string; - - decodeFunctionResult( - functionFragment: "addOpConsensusState", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getFraudProofEndtime", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getState", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "verifyMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyNonMembership", - data: BytesLike - ): Result; -} - -export interface DummyLightClient extends BaseContract { - connect(runner?: ContractRunner | null): DummyLightClient; - waitForDeployment(): Promise; - - interface: DummyLightClientInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - addOpConsensusState: TypedContractMethod< - [ - arg0: L1HeaderStruct, - arg1: OpL2StateProofStruct, - arg2: BigNumberish, - arg3: BigNumberish - ], - [[bigint, boolean] & { endTime: bigint; ended: boolean }], - "view" - >; - - getFraudProofEndtime: TypedContractMethod< - [arg0: BigNumberish], - [bigint], - "view" - >; - - getState: TypedContractMethod< - [arg0: BigNumberish], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndtime: bigint; - ended: boolean; - } - ], - "view" - >; - - verifyMembership: TypedContractMethod< - [proof: Ics23ProofStruct, arg1: BytesLike, arg2: BytesLike], - [void], - "view" - >; - - verifyNonMembership: TypedContractMethod< - [proof: Ics23ProofStruct, arg1: BytesLike], - [void], - "view" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "addOpConsensusState" - ): TypedContractMethod< - [ - arg0: L1HeaderStruct, - arg1: OpL2StateProofStruct, - arg2: BigNumberish, - arg3: BigNumberish - ], - [[bigint, boolean] & { endTime: bigint; ended: boolean }], - "view" - >; - getFunction( - nameOrSignature: "getFraudProofEndtime" - ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">; - getFunction( - nameOrSignature: "getState" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndtime: bigint; - ended: boolean; - } - ], - "view" - >; - getFunction( - nameOrSignature: "verifyMembership" - ): TypedContractMethod< - [proof: Ics23ProofStruct, arg1: BytesLike, arg2: BytesLike], - [void], - "view" - >; - getFunction( - nameOrSignature: "verifyNonMembership" - ): TypedContractMethod< - [proof: Ics23ProofStruct, arg1: BytesLike], - [void], - "view" - >; - - filters: {}; -} diff --git a/src/evm/contracts/DummyProofVerifier.ts b/src/evm/contracts/DummyProofVerifier.ts deleted file mode 100644 index 777e2000..00000000 --- a/src/evm/contracts/DummyProofVerifier.ts +++ /dev/null @@ -1,231 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export type L1HeaderStruct = { - header: BytesLike[]; - stateRoot: BytesLike; - number: BigNumberish; -}; - -export type L1HeaderStructOutput = [ - header: string[], - stateRoot: string, - number: bigint -] & { header: string[]; stateRoot: string; number: bigint }; - -export type OpL2StateProofStruct = { - accountProof: BytesLike[]; - outputRootProof: BytesLike[]; - l2OutputProposalKey: BytesLike; - l2BlockHash: BytesLike; -}; - -export type OpL2StateProofStructOutput = [ - accountProof: string[], - outputRootProof: string[], - l2OutputProposalKey: string, - l2BlockHash: string -] & { - accountProof: string[]; - outputRootProof: string[]; - l2OutputProposalKey: string; - l2BlockHash: string; -}; - -export interface DummyProofVerifierInterface extends Interface { - getFunction( - nameOrSignature: - | "verifyMembership" - | "verifyNonMembership" - | "verifyStateUpdate" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "verifyMembership", - values: [BytesLike, BytesLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "verifyNonMembership", - values: [BytesLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "verifyStateUpdate", - values: [ - L1HeaderStruct, - OpL2StateProofStruct, - BytesLike, - BytesLike, - BigNumberish - ] - ): string; - - decodeFunctionResult( - functionFragment: "verifyMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyNonMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyStateUpdate", - data: BytesLike - ): Result; -} - -export interface DummyProofVerifier extends BaseContract { - connect(runner?: ContractRunner | null): DummyProofVerifier; - waitForDeployment(): Promise; - - interface: DummyProofVerifierInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - verifyMembership: TypedContractMethod< - [arg0: BytesLike, arg1: BytesLike, arg2: BytesLike, arg3: Ics23ProofStruct], - [void], - "view" - >; - - verifyNonMembership: TypedContractMethod< - [arg0: BytesLike, arg1: BytesLike, arg2: Ics23ProofStruct], - [void], - "view" - >; - - verifyStateUpdate: TypedContractMethod< - [ - arg0: L1HeaderStruct, - arg1: OpL2StateProofStruct, - arg2: BytesLike, - arg3: BytesLike, - arg4: BigNumberish - ], - [void], - "view" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "verifyMembership" - ): TypedContractMethod< - [arg0: BytesLike, arg1: BytesLike, arg2: BytesLike, arg3: Ics23ProofStruct], - [void], - "view" - >; - getFunction( - nameOrSignature: "verifyNonMembership" - ): TypedContractMethod< - [arg0: BytesLike, arg1: BytesLike, arg2: Ics23ProofStruct], - [void], - "view" - >; - getFunction( - nameOrSignature: "verifyStateUpdate" - ): TypedContractMethod< - [ - arg0: L1HeaderStruct, - arg1: OpL2StateProofStruct, - arg2: BytesLike, - arg3: BytesLike, - arg4: BigNumberish - ], - [void], - "view" - >; - - filters: {}; -} diff --git a/src/evm/contracts/ERC1967Proxy.ts b/src/evm/contracts/ERC1967Proxy.ts deleted file mode 100644 index 0ef8f02b..00000000 --- a/src/evm/contracts/ERC1967Proxy.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - FunctionFragment, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, -} from "./common"; - -export interface ERC1967ProxyInterface extends Interface { - getEvent( - nameOrSignatureOrTopic: "AdminChanged" | "BeaconUpgraded" | "Upgraded" - ): EventFragment; -} - -export namespace AdminChangedEvent { - export type InputTuple = [previousAdmin: AddressLike, newAdmin: AddressLike]; - export type OutputTuple = [previousAdmin: string, newAdmin: string]; - export interface OutputObject { - previousAdmin: string; - newAdmin: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace BeaconUpgradedEvent { - export type InputTuple = [beacon: AddressLike]; - export type OutputTuple = [beacon: string]; - export interface OutputObject { - beacon: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace UpgradedEvent { - export type InputTuple = [implementation: AddressLike]; - export type OutputTuple = [implementation: string]; - export interface OutputObject { - implementation: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface ERC1967Proxy extends BaseContract { - connect(runner?: ContractRunner | null): ERC1967Proxy; - waitForDeployment(): Promise; - - interface: ERC1967ProxyInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - getFunction( - key: string | FunctionFragment - ): T; - - getEvent( - key: "AdminChanged" - ): TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - getEvent( - key: "BeaconUpgraded" - ): TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - getEvent( - key: "Upgraded" - ): TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - - filters: { - "AdminChanged(address,address)": TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - AdminChanged: TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - - "BeaconUpgraded(address)": TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - BeaconUpgraded: TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - - "Upgraded(address)": TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - Upgraded: TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/Earth.ts b/src/evm/contracts/Earth.ts deleted file mode 100644 index c141c3f6..00000000 --- a/src/evm/contracts/Earth.ts +++ /dev/null @@ -1,493 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type UniversalPacketStruct = { - srcPortAddr: BytesLike; - mwBitmap: BigNumberish; - destPortAddr: BytesLike; - appData: BytesLike; -}; - -export type UniversalPacketStructOutput = [ - srcPortAddr: string, - mwBitmap: bigint, - destPortAddr: string, - appData: string -] & { - srcPortAddr: string; - mwBitmap: bigint; - destPortAddr: string; - appData: string; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface EarthInterface extends Interface { - getFunction( - nameOrSignature: - | "ackPackets" - | "authorizeChannel" - | "authorizedChannelIds" - | "generateAckPacket" - | "greet" - | "greetWithFee" - | "onRecvUniversalPacket" - | "onTimeoutUniversalPacket" - | "onUniversalAcknowledgement" - | "owner" - | "recvedPackets" - | "renounceOwnership" - | "timeoutPackets" - | "transferOwnership" - | "uch" - | "updateUch" - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - - encodeFunctionData( - functionFragment: "ackPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "authorizeChannel", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "authorizedChannelIds", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "generateAckPacket", - values: [BytesLike, AddressLike, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "greet", - values: [AddressLike, BytesLike, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "greetWithFee", - values: [ - AddressLike, - BytesLike, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "onRecvUniversalPacket", - values: [BytesLike, UniversalPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutUniversalPacket", - values: [BytesLike, UniversalPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onUniversalAcknowledgement", - values: [BytesLike, UniversalPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "recvedPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "timeoutPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData(functionFragment: "uch", values?: undefined): string; - encodeFunctionData( - functionFragment: "updateUch", - values: [AddressLike] - ): string; - - decodeFunctionResult(functionFragment: "ackPackets", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "authorizeChannel", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "authorizedChannelIds", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "generateAckPacket", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "greetWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvUniversalPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutUniversalPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onUniversalAcknowledgement", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "recvedPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "timeoutPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "uch", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "updateUch", data: BytesLike): Result; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface Earth extends BaseContract { - connect(runner?: ContractRunner | null): Earth; - waitForDeployment(): Promise; - - interface: EarthInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [string, UniversalPacketStructOutput, AckPacketStructOutput] & { - channelId: string; - packet: UniversalPacketStructOutput; - ack: AckPacketStructOutput; - } - ], - "view" - >; - - authorizeChannel: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - authorizedChannelIds: TypedContractMethod< - [arg0: BytesLike], - [boolean], - "view" - >; - - generateAckPacket: TypedContractMethod< - [arg0: BytesLike, srcPortAddr: AddressLike, appData: BytesLike], - [AckPacketStructOutput], - "view" - >; - - greet: TypedContractMethod< - [ - destPortAddr: AddressLike, - channelId: BytesLike, - message: BytesLike, - timeoutTimestamp: BigNumberish - ], - [void], - "nonpayable" - >; - - greetWithFee: TypedContractMethod< - [ - destPortAddr: AddressLike, - channelId: BytesLike, - message: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - onRecvUniversalPacket: TypedContractMethod< - [channelId: BytesLike, packet: UniversalPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - - onTimeoutUniversalPacket: TypedContractMethod< - [channelId: BytesLike, packet: UniversalPacketStruct], - [void], - "nonpayable" - >; - - onUniversalAcknowledgement: TypedContractMethod< - [channelId: BytesLike, packet: UniversalPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - recvedPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [string, UniversalPacketStructOutput] & { - channelId: string; - packet: UniversalPacketStructOutput; - } - ], - "view" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - timeoutPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [string, UniversalPacketStructOutput] & { - channelId: string; - packet: UniversalPacketStructOutput; - } - ], - "view" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - uch: TypedContractMethod<[], [string], "view">; - - updateUch: TypedContractMethod<[_newUch: AddressLike], [void], "nonpayable">; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [string, UniversalPacketStructOutput, AckPacketStructOutput] & { - channelId: string; - packet: UniversalPacketStructOutput; - ack: AckPacketStructOutput; - } - ], - "view" - >; - getFunction( - nameOrSignature: "authorizeChannel" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "authorizedChannelIds" - ): TypedContractMethod<[arg0: BytesLike], [boolean], "view">; - getFunction( - nameOrSignature: "generateAckPacket" - ): TypedContractMethod< - [arg0: BytesLike, srcPortAddr: AddressLike, appData: BytesLike], - [AckPacketStructOutput], - "view" - >; - getFunction( - nameOrSignature: "greet" - ): TypedContractMethod< - [ - destPortAddr: AddressLike, - channelId: BytesLike, - message: BytesLike, - timeoutTimestamp: BigNumberish - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "greetWithFee" - ): TypedContractMethod< - [ - destPortAddr: AddressLike, - channelId: BytesLike, - message: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "onRecvUniversalPacket" - ): TypedContractMethod< - [channelId: BytesLike, packet: UniversalPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - getFunction( - nameOrSignature: "onTimeoutUniversalPacket" - ): TypedContractMethod< - [channelId: BytesLike, packet: UniversalPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onUniversalAcknowledgement" - ): TypedContractMethod< - [channelId: BytesLike, packet: UniversalPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvedPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [string, UniversalPacketStructOutput] & { - channelId: string; - packet: UniversalPacketStructOutput; - } - ], - "view" - >; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "timeoutPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [string, UniversalPacketStructOutput] & { - channelId: string; - packet: UniversalPacketStructOutput; - } - ], - "view" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "uch" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "updateUch" - ): TypedContractMethod<[_newUch: AddressLike], [void], "nonpayable">; - - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - filters: { - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/FeeVault.ts b/src/evm/contracts/FeeVault.ts deleted file mode 100644 index 457afbd4..00000000 --- a/src/evm/contracts/FeeVault.ts +++ /dev/null @@ -1,339 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "./common"; - -export interface FeeVaultInterface extends Interface { - getFunction( - nameOrSignature: - | "depositOpenChannelFee" - | "depositSendPacketFee" - | "owner" - | "renounceOwnership" - | "transferOwnership" - | "withdrawFeesToOwner" - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "OpenChannelFeeDeposited" - | "OwnershipTransferred" - | "SendPacketFeeDeposited" - ): EventFragment; - - encodeFunctionData( - functionFragment: "depositOpenChannelFee", - values: [AddressLike, string, BigNumberish, string[], string] - ): string; - encodeFunctionData( - functionFragment: "depositSendPacketFee", - values: [ - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "withdrawFeesToOwner", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "depositOpenChannelFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "depositSendPacketFee", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "withdrawFeesToOwner", - data: BytesLike - ): Result; -} - -export namespace OpenChannelFeeDepositedEvent { - export type InputTuple = [ - sourceAddress: AddressLike, - version: string, - ordering: BigNumberish, - connectionHops: string[], - counterpartyPortId: string, - feeAmount: BigNumberish - ]; - export type OutputTuple = [ - sourceAddress: string, - version: string, - ordering: bigint, - connectionHops: string[], - counterpartyPortId: string, - feeAmount: bigint - ]; - export interface OutputObject { - sourceAddress: string; - version: string; - ordering: bigint; - connectionHops: string[]; - counterpartyPortId: string; - feeAmount: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace SendPacketFeeDepositedEvent { - export type InputTuple = [ - channelId: BytesLike, - sequence: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ]; - export type OutputTuple = [ - channelId: string, - sequence: bigint, - gasLimits: [bigint, bigint], - gasPrices: [bigint, bigint] - ]; - export interface OutputObject { - channelId: string; - sequence: bigint; - gasLimits: [bigint, bigint]; - gasPrices: [bigint, bigint]; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface FeeVault extends BaseContract { - connect(runner?: ContractRunner | null): FeeVault; - waitForDeployment(): Promise; - - interface: FeeVaultInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - depositOpenChannelFee: TypedContractMethod< - [ - src: AddressLike, - version: string, - ordering: BigNumberish, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - depositSendPacketFee: TypedContractMethod< - [ - channelId: BytesLike, - sequence: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [void], - "payable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - withdrawFeesToOwner: TypedContractMethod<[], [void], "nonpayable">; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "depositOpenChannelFee" - ): TypedContractMethod< - [ - src: AddressLike, - version: string, - ordering: BigNumberish, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - getFunction( - nameOrSignature: "depositSendPacketFee" - ): TypedContractMethod< - [ - channelId: BytesLike, - sequence: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [void], - "payable" - >; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "withdrawFeesToOwner" - ): TypedContractMethod<[], [void], "nonpayable">; - - getEvent( - key: "OpenChannelFeeDeposited" - ): TypedContractEvent< - OpenChannelFeeDepositedEvent.InputTuple, - OpenChannelFeeDepositedEvent.OutputTuple, - OpenChannelFeeDepositedEvent.OutputObject - >; - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - getEvent( - key: "SendPacketFeeDeposited" - ): TypedContractEvent< - SendPacketFeeDepositedEvent.InputTuple, - SendPacketFeeDepositedEvent.OutputTuple, - SendPacketFeeDepositedEvent.OutputObject - >; - - filters: { - "OpenChannelFeeDeposited(address,string,uint8,string[],string,uint256)": TypedContractEvent< - OpenChannelFeeDepositedEvent.InputTuple, - OpenChannelFeeDepositedEvent.OutputTuple, - OpenChannelFeeDepositedEvent.OutputObject - >; - OpenChannelFeeDeposited: TypedContractEvent< - OpenChannelFeeDepositedEvent.InputTuple, - OpenChannelFeeDepositedEvent.OutputTuple, - OpenChannelFeeDepositedEvent.OutputObject - >; - - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - "SendPacketFeeDeposited(bytes32,uint64,uint256[2],uint256[2])": TypedContractEvent< - SendPacketFeeDepositedEvent.InputTuple, - SendPacketFeeDepositedEvent.OutputTuple, - SendPacketFeeDepositedEvent.OutputObject - >; - SendPacketFeeDeposited: TypedContractEvent< - SendPacketFeeDepositedEvent.InputTuple, - SendPacketFeeDepositedEvent.OutputTuple, - SendPacketFeeDepositedEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/IDispatcher.ts b/src/evm/contracts/IDispatcher.ts deleted file mode 100644 index 241103e1..00000000 --- a/src/evm/contracts/IDispatcher.ts +++ /dev/null @@ -1,1466 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export type ChannelEndStruct = { - portId: string; - channelId: BytesLike; - version: string; -}; - -export type ChannelEndStructOutput = [ - portId: string, - channelId: string, - version: string -] & { portId: string; channelId: string; version: string }; - -export type ChannelStruct = { - version: string; - ordering: BigNumberish; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - counterpartyChannelId: BytesLike; - portId: string; -}; - -export type ChannelStructOutput = [ - version: string, - ordering: bigint, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: string, - portId: string -] & { - version: string; - ordering: bigint; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - counterpartyChannelId: string; - portId: string; -}; - -export type L1HeaderStruct = { - header: BytesLike[]; - stateRoot: BytesLike; - number: BigNumberish; -}; - -export type L1HeaderStructOutput = [ - header: string[], - stateRoot: string, - number: bigint -] & { header: string[]; stateRoot: string; number: bigint }; - -export type OpL2StateProofStruct = { - accountProof: BytesLike[]; - outputRootProof: BytesLike[]; - l2OutputProposalKey: BytesLike; - l2BlockHash: BytesLike; -}; - -export type OpL2StateProofStructOutput = [ - accountProof: string[], - outputRootProof: string[], - l2OutputProposalKey: string, - l2BlockHash: string -] & { - accountProof: string[]; - outputRootProof: string[]; - l2OutputProposalKey: string; - l2BlockHash: string; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface IDispatcherInterface extends Interface { - getFunction( - nameOrSignature: - | "acknowledgement" - | "channelCloseConfirm" - | "channelCloseInit" - | "channelOpenAck" - | "channelOpenConfirm" - | "channelOpenInit" - | "channelOpenTry" - | "feeVault" - | "getChannel" - | "getOptimisticConsensusState" - | "portPrefix" - | "recvPacket" - | "removeConnection" - | "sendPacket" - | "setClientForConnection" - | "setPortPrefix" - | "timeout" - | "updateClientWithOptimisticConsensusState" - | "writeTimeoutPacket" - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "Acknowledgement" - | "AcknowledgementError" - | "ChannelCloseConfirm" - | "ChannelCloseConfirmError" - | "ChannelCloseInit" - | "ChannelCloseInitError" - | "ChannelOpenAck" - | "ChannelOpenAckError" - | "ChannelOpenConfirm" - | "ChannelOpenConfirmError" - | "ChannelOpenInit" - | "ChannelOpenInitError" - | "ChannelOpenTry" - | "ChannelOpenTryError" - | "RecvPacket" - | "SendPacket" - | "Timeout" - | "TimeoutError" - | "WriteAckPacket" - | "WriteTimeoutPacket" - ): EventFragment; - - encodeFunctionData( - functionFragment: "acknowledgement", - values: [IbcPacketStruct, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "channelCloseConfirm", - values: [AddressLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "channelCloseInit", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "channelOpenAck", - values: [ - ChannelEndStruct, - string[], - BigNumberish, - boolean, - ChannelEndStruct, - Ics23ProofStruct - ] - ): string; - encodeFunctionData( - functionFragment: "channelOpenConfirm", - values: [ - ChannelEndStruct, - string[], - BigNumberish, - boolean, - ChannelEndStruct, - Ics23ProofStruct - ] - ): string; - encodeFunctionData( - functionFragment: "channelOpenInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "channelOpenTry", - values: [ - ChannelEndStruct, - BigNumberish, - boolean, - string[], - ChannelEndStruct, - Ics23ProofStruct - ] - ): string; - encodeFunctionData(functionFragment: "feeVault", values?: undefined): string; - encodeFunctionData( - functionFragment: "getChannel", - values: [AddressLike, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "getOptimisticConsensusState", - values: [BigNumberish, string] - ): string; - encodeFunctionData( - functionFragment: "portPrefix", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "recvPacket", - values: [IbcPacketStruct, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "removeConnection", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "sendPacket", - values: [BytesLike, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "setClientForConnection", - values: [string, AddressLike] - ): string; - encodeFunctionData( - functionFragment: "setPortPrefix", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "timeout", - values: [IbcPacketStruct, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "updateClientWithOptimisticConsensusState", - values: [ - L1HeaderStruct, - OpL2StateProofStruct, - BigNumberish, - BigNumberish, - string - ] - ): string; - encodeFunctionData( - functionFragment: "writeTimeoutPacket", - values: [IbcPacketStruct, Ics23ProofStruct] - ): string; - - decodeFunctionResult( - functionFragment: "acknowledgement", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "feeVault", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "getChannel", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getOptimisticConsensusState", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "portPrefix", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "recvPacket", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "removeConnection", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "sendPacket", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setClientForConnection", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setPortPrefix", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "timeout", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "updateClientWithOptimisticConsensusState", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "writeTimeoutPacket", - data: BytesLike - ): Result; -} - -export namespace AcknowledgementEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AcknowledgementErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseConfirmEvent { - export type InputTuple = [portAddress: AddressLike, channelId: BytesLike]; - export type OutputTuple = [portAddress: string, channelId: string]; - export interface OutputObject { - portAddress: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseConfirmErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseInitEvent { - export type InputTuple = [portAddress: AddressLike, channelId: BytesLike]; - export type OutputTuple = [portAddress: string, channelId: string]; - export interface OutputObject { - portAddress: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseInitErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenAckEvent { - export type InputTuple = [receiver: AddressLike, channelId: BytesLike]; - export type OutputTuple = [receiver: string, channelId: string]; - export interface OutputObject { - receiver: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenAckErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenConfirmEvent { - export type InputTuple = [receiver: AddressLike, channelId: BytesLike]; - export type OutputTuple = [receiver: string, channelId: string]; - export interface OutputObject { - receiver: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenConfirmErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenInitEvent { - export type InputTuple = [ - receiver: AddressLike, - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ]; - export type OutputTuple = [ - receiver: string, - version: string, - ordering: bigint, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ]; - export interface OutputObject { - receiver: string; - version: string; - ordering: bigint; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenInitErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenTryEvent { - export type InputTuple = [ - receiver: AddressLike, - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ]; - export type OutputTuple = [ - receiver: string, - version: string, - ordering: bigint, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: string - ]; - export interface OutputObject { - receiver: string; - version: string; - ordering: bigint; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - counterpartyChannelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenTryErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RecvPacketEvent { - export type InputTuple = [ - destPortAddress: AddressLike, - destChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - destPortAddress: string, - destChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - destPortAddress: string; - destChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace SendPacketEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - packet: BytesLike, - sequence: BigNumberish, - timeoutTimestamp: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - packet: string, - sequence: bigint, - timeoutTimestamp: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - packet: string; - sequence: bigint; - timeoutTimestamp: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TimeoutEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TimeoutErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace WriteAckPacketEvent { - export type InputTuple = [ - writerPortAddress: AddressLike, - writerChannelId: BytesLike, - sequence: BigNumberish, - ackPacket: AckPacketStruct - ]; - export type OutputTuple = [ - writerPortAddress: string, - writerChannelId: string, - sequence: bigint, - ackPacket: AckPacketStructOutput - ]; - export interface OutputObject { - writerPortAddress: string; - writerChannelId: string; - sequence: bigint; - ackPacket: AckPacketStructOutput; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace WriteTimeoutPacketEvent { - export type InputTuple = [ - writerPortAddress: AddressLike, - writerChannelId: BytesLike, - sequence: BigNumberish, - timeoutHeight: HeightStruct, - timeoutTimestamp: BigNumberish - ]; - export type OutputTuple = [ - writerPortAddress: string, - writerChannelId: string, - sequence: bigint, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint - ]; - export interface OutputObject { - writerPortAddress: string; - writerChannelId: string; - sequence: bigint; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface IDispatcher extends BaseContract { - connect(runner?: ContractRunner | null): IDispatcher; - waitForDeployment(): Promise; - - interface: IDispatcherInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - acknowledgement: TypedContractMethod< - [packet: IbcPacketStruct, ack: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - channelCloseConfirm: TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - channelCloseInit: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - channelOpenAck: TypedContractMethod< - [ - local: ChannelEndStruct, - connectionHops: string[], - ordering: BigNumberish, - feeEnabled: boolean, - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - - channelOpenConfirm: TypedContractMethod< - [ - local: ChannelEndStruct, - connectionHops: string[], - ordering: BigNumberish, - feeEnabled: boolean, - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - - channelOpenInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - channelOpenTry: TypedContractMethod< - [ - local: ChannelEndStruct, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - - feeVault: TypedContractMethod<[], [string], "nonpayable">; - - getChannel: TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike], - [ChannelStructOutput], - "view" - >; - - getOptimisticConsensusState: TypedContractMethod< - [height: BigNumberish, connection: string], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - - portPrefix: TypedContractMethod<[], [string], "view">; - - recvPacket: TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - removeConnection: TypedContractMethod< - [connection: string], - [void], - "nonpayable" - >; - - sendPacket: TypedContractMethod< - [channelId: BytesLike, packet: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - setClientForConnection: TypedContractMethod< - [connection: string, lightClient: AddressLike], - [void], - "nonpayable" - >; - - setPortPrefix: TypedContractMethod< - [_portPrefix: string], - [void], - "nonpayable" - >; - - timeout: TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - updateClientWithOptimisticConsensusState: TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - height: BigNumberish, - appHash: BigNumberish, - connection: string - ], - [[bigint, boolean] & { fraudProofEndTime: bigint; ended: boolean }], - "nonpayable" - >; - - writeTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "acknowledgement" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelCloseConfirm" - ): TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelCloseInit" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "channelOpenAck" - ): TypedContractMethod< - [ - local: ChannelEndStruct, - connectionHops: string[], - ordering: BigNumberish, - feeEnabled: boolean, - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelOpenConfirm" - ): TypedContractMethod< - [ - local: ChannelEndStruct, - connectionHops: string[], - ordering: BigNumberish, - feeEnabled: boolean, - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelOpenInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelOpenTry" - ): TypedContractMethod< - [ - local: ChannelEndStruct, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterparty: ChannelEndStruct, - proof: Ics23ProofStruct - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "feeVault" - ): TypedContractMethod<[], [string], "nonpayable">; - getFunction( - nameOrSignature: "getChannel" - ): TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike], - [ChannelStructOutput], - "view" - >; - getFunction( - nameOrSignature: "getOptimisticConsensusState" - ): TypedContractMethod< - [height: BigNumberish, connection: string], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - getFunction( - nameOrSignature: "portPrefix" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "removeConnection" - ): TypedContractMethod<[connection: string], [void], "nonpayable">; - getFunction( - nameOrSignature: "sendPacket" - ): TypedContractMethod< - [channelId: BytesLike, packet: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "setClientForConnection" - ): TypedContractMethod< - [connection: string, lightClient: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "setPortPrefix" - ): TypedContractMethod<[_portPrefix: string], [void], "nonpayable">; - getFunction( - nameOrSignature: "timeout" - ): TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "updateClientWithOptimisticConsensusState" - ): TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - height: BigNumberish, - appHash: BigNumberish, - connection: string - ], - [[bigint, boolean] & { fraudProofEndTime: bigint; ended: boolean }], - "nonpayable" - >; - getFunction( - nameOrSignature: "writeTimeoutPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - getEvent( - key: "Acknowledgement" - ): TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - getEvent( - key: "AcknowledgementError" - ): TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - getEvent( - key: "ChannelCloseConfirm" - ): TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - getEvent( - key: "ChannelCloseConfirmError" - ): TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - getEvent( - key: "ChannelCloseInit" - ): TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - getEvent( - key: "ChannelCloseInitError" - ): TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenAck" - ): TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - getEvent( - key: "ChannelOpenAckError" - ): TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenConfirm" - ): TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - getEvent( - key: "ChannelOpenConfirmError" - ): TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenInit" - ): TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - getEvent( - key: "ChannelOpenInitError" - ): TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenTry" - ): TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - getEvent( - key: "ChannelOpenTryError" - ): TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - getEvent( - key: "RecvPacket" - ): TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - getEvent( - key: "SendPacket" - ): TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - getEvent( - key: "Timeout" - ): TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - getEvent( - key: "TimeoutError" - ): TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - getEvent( - key: "WriteAckPacket" - ): TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - getEvent( - key: "WriteTimeoutPacket" - ): TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - - filters: { - "Acknowledgement(address,bytes32,uint64)": TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - Acknowledgement: TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - - "AcknowledgementError(address,bytes)": TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - AcknowledgementError: TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - - "ChannelCloseConfirm(address,bytes32)": TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - ChannelCloseConfirm: TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - - "ChannelCloseConfirmError(address,bytes)": TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - ChannelCloseConfirmError: TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - - "ChannelCloseInit(address,bytes32)": TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - ChannelCloseInit: TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - - "ChannelCloseInitError(address,bytes)": TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - ChannelCloseInitError: TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - - "ChannelOpenAck(address,bytes32)": TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - ChannelOpenAck: TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - - "ChannelOpenAckError(address,bytes)": TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - ChannelOpenAckError: TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - - "ChannelOpenConfirm(address,bytes32)": TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - ChannelOpenConfirm: TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - - "ChannelOpenConfirmError(address,bytes)": TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - ChannelOpenConfirmError: TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - - "ChannelOpenInit(address,string,uint8,bool,string[],string)": TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - ChannelOpenInit: TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - - "ChannelOpenInitError(address,bytes)": TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - ChannelOpenInitError: TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - - "ChannelOpenTry(address,string,uint8,bool,string[],string,bytes32)": TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - ChannelOpenTry: TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - - "ChannelOpenTryError(address,bytes)": TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - ChannelOpenTryError: TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - - "RecvPacket(address,bytes32,uint64)": TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - RecvPacket: TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - - "SendPacket(address,bytes32,bytes,uint64,uint64)": TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - SendPacket: TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - - "Timeout(address,bytes32,uint64)": TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - Timeout: TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - - "TimeoutError(address,bytes)": TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - TimeoutError: TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - - "WriteAckPacket(address,bytes32,uint64,tuple)": TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - WriteAckPacket: TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - - "WriteTimeoutPacket(address,bytes32,uint64,tuple,uint64)": TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - WriteTimeoutPacket: TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/IFeeVault.ts b/src/evm/contracts/IFeeVault.ts deleted file mode 100644 index 891f7f3e..00000000 --- a/src/evm/contracts/IFeeVault.ts +++ /dev/null @@ -1,265 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "./common"; - -export interface IFeeVaultInterface extends Interface { - getFunction( - nameOrSignature: - | "depositOpenChannelFee" - | "depositSendPacketFee" - | "withdrawFeesToOwner" - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: "OpenChannelFeeDeposited" | "SendPacketFeeDeposited" - ): EventFragment; - - encodeFunctionData( - functionFragment: "depositOpenChannelFee", - values: [AddressLike, string, BigNumberish, string[], string] - ): string; - encodeFunctionData( - functionFragment: "depositSendPacketFee", - values: [ - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "withdrawFeesToOwner", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "depositOpenChannelFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "depositSendPacketFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "withdrawFeesToOwner", - data: BytesLike - ): Result; -} - -export namespace OpenChannelFeeDepositedEvent { - export type InputTuple = [ - sourceAddress: AddressLike, - version: string, - ordering: BigNumberish, - connectionHops: string[], - counterpartyPortId: string, - feeAmount: BigNumberish - ]; - export type OutputTuple = [ - sourceAddress: string, - version: string, - ordering: bigint, - connectionHops: string[], - counterpartyPortId: string, - feeAmount: bigint - ]; - export interface OutputObject { - sourceAddress: string; - version: string; - ordering: bigint; - connectionHops: string[]; - counterpartyPortId: string; - feeAmount: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace SendPacketFeeDepositedEvent { - export type InputTuple = [ - channelId: BytesLike, - sequence: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ]; - export type OutputTuple = [ - channelId: string, - sequence: bigint, - gasLimits: [bigint, bigint], - gasPrices: [bigint, bigint] - ]; - export interface OutputObject { - channelId: string; - sequence: bigint; - gasLimits: [bigint, bigint]; - gasPrices: [bigint, bigint]; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface IFeeVault extends BaseContract { - connect(runner?: ContractRunner | null): IFeeVault; - waitForDeployment(): Promise; - - interface: IFeeVaultInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - depositOpenChannelFee: TypedContractMethod< - [ - sender: AddressLike, - version: string, - ordering: BigNumberish, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - depositSendPacketFee: TypedContractMethod< - [ - channelId: BytesLike, - sequence: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [void], - "payable" - >; - - withdrawFeesToOwner: TypedContractMethod<[], [void], "nonpayable">; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "depositOpenChannelFee" - ): TypedContractMethod< - [ - sender: AddressLike, - version: string, - ordering: BigNumberish, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - getFunction( - nameOrSignature: "depositSendPacketFee" - ): TypedContractMethod< - [ - channelId: BytesLike, - sequence: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [void], - "payable" - >; - getFunction( - nameOrSignature: "withdrawFeesToOwner" - ): TypedContractMethod<[], [void], "nonpayable">; - - getEvent( - key: "OpenChannelFeeDeposited" - ): TypedContractEvent< - OpenChannelFeeDepositedEvent.InputTuple, - OpenChannelFeeDepositedEvent.OutputTuple, - OpenChannelFeeDepositedEvent.OutputObject - >; - getEvent( - key: "SendPacketFeeDeposited" - ): TypedContractEvent< - SendPacketFeeDepositedEvent.InputTuple, - SendPacketFeeDepositedEvent.OutputTuple, - SendPacketFeeDepositedEvent.OutputObject - >; - - filters: { - "OpenChannelFeeDeposited(address,string,uint8,string[],string,uint256)": TypedContractEvent< - OpenChannelFeeDepositedEvent.InputTuple, - OpenChannelFeeDepositedEvent.OutputTuple, - OpenChannelFeeDepositedEvent.OutputObject - >; - OpenChannelFeeDeposited: TypedContractEvent< - OpenChannelFeeDepositedEvent.InputTuple, - OpenChannelFeeDepositedEvent.OutputTuple, - OpenChannelFeeDepositedEvent.OutputObject - >; - - "SendPacketFeeDeposited(bytes32,uint64,uint256[2],uint256[2])": TypedContractEvent< - SendPacketFeeDepositedEvent.InputTuple, - SendPacketFeeDepositedEvent.OutputTuple, - SendPacketFeeDepositedEvent.OutputObject - >; - SendPacketFeeDeposited: TypedContractEvent< - SendPacketFeeDepositedEvent.InputTuple, - SendPacketFeeDepositedEvent.OutputTuple, - SendPacketFeeDepositedEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/ILightClient.ts b/src/evm/contracts/ILightClient.ts deleted file mode 100644 index 8f532491..00000000 --- a/src/evm/contracts/ILightClient.ts +++ /dev/null @@ -1,272 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type L1HeaderStruct = { - header: BytesLike[]; - stateRoot: BytesLike; - number: BigNumberish; -}; - -export type L1HeaderStructOutput = [ - header: string[], - stateRoot: string, - number: bigint -] & { header: string[]; stateRoot: string; number: bigint }; - -export type OpL2StateProofStruct = { - accountProof: BytesLike[]; - outputRootProof: BytesLike[]; - l2OutputProposalKey: BytesLike; - l2BlockHash: BytesLike; -}; - -export type OpL2StateProofStructOutput = [ - accountProof: string[], - outputRootProof: string[], - l2OutputProposalKey: string, - l2BlockHash: string -] & { - accountProof: string[]; - outputRootProof: string[]; - l2OutputProposalKey: string; - l2BlockHash: string; -}; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export interface ILightClientInterface extends Interface { - getFunction( - nameOrSignature: - | "addOpConsensusState" - | "getFraudProofEndtime" - | "getState" - | "verifyMembership" - | "verifyNonMembership" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "addOpConsensusState", - values: [L1HeaderStruct, OpL2StateProofStruct, BigNumberish, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getFraudProofEndtime", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getState", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "verifyMembership", - values: [Ics23ProofStruct, BytesLike, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "verifyNonMembership", - values: [Ics23ProofStruct, BytesLike] - ): string; - - decodeFunctionResult( - functionFragment: "addOpConsensusState", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getFraudProofEndtime", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getState", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "verifyMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyNonMembership", - data: BytesLike - ): Result; -} - -export interface ILightClient extends BaseContract { - connect(runner?: ContractRunner | null): ILightClient; - waitForDeployment(): Promise; - - interface: ILightClientInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - addOpConsensusState: TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - height: BigNumberish, - appHash: BigNumberish - ], - [[bigint, boolean] & { fraudProofEndTime: bigint; ended: boolean }], - "nonpayable" - >; - - getFraudProofEndtime: TypedContractMethod< - [height: BigNumberish], - [bigint], - "nonpayable" - >; - - getState: TypedContractMethod< - [height: BigNumberish], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - - verifyMembership: TypedContractMethod< - [proof: Ics23ProofStruct, key: BytesLike, expectedValue: BytesLike], - [void], - "nonpayable" - >; - - verifyNonMembership: TypedContractMethod< - [proof: Ics23ProofStruct, key: BytesLike], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "addOpConsensusState" - ): TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - height: BigNumberish, - appHash: BigNumberish - ], - [[bigint, boolean] & { fraudProofEndTime: bigint; ended: boolean }], - "nonpayable" - >; - getFunction( - nameOrSignature: "getFraudProofEndtime" - ): TypedContractMethod<[height: BigNumberish], [bigint], "nonpayable">; - getFunction( - nameOrSignature: "getState" - ): TypedContractMethod< - [height: BigNumberish], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - getFunction( - nameOrSignature: "verifyMembership" - ): TypedContractMethod< - [proof: Ics23ProofStruct, key: BytesLike, expectedValue: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "verifyNonMembership" - ): TypedContractMethod< - [proof: Ics23ProofStruct, key: BytesLike], - [void], - "nonpayable" - >; - - filters: {}; -} diff --git a/src/evm/contracts/IProofVerifier.ts b/src/evm/contracts/IProofVerifier.ts deleted file mode 100644 index c7627d5e..00000000 --- a/src/evm/contracts/IProofVerifier.ts +++ /dev/null @@ -1,241 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export type L1HeaderStruct = { - header: BytesLike[]; - stateRoot: BytesLike; - number: BigNumberish; -}; - -export type L1HeaderStructOutput = [ - header: string[], - stateRoot: string, - number: bigint -] & { header: string[]; stateRoot: string; number: bigint }; - -export type OpL2StateProofStruct = { - accountProof: BytesLike[]; - outputRootProof: BytesLike[]; - l2OutputProposalKey: BytesLike; - l2BlockHash: BytesLike; -}; - -export type OpL2StateProofStructOutput = [ - accountProof: string[], - outputRootProof: string[], - l2OutputProposalKey: string, - l2BlockHash: string -] & { - accountProof: string[]; - outputRootProof: string[]; - l2OutputProposalKey: string; - l2BlockHash: string; -}; - -export interface IProofVerifierInterface extends Interface { - getFunction( - nameOrSignature: - | "verifyMembership" - | "verifyNonMembership" - | "verifyStateUpdate" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "verifyMembership", - values: [BytesLike, BytesLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "verifyNonMembership", - values: [BytesLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "verifyStateUpdate", - values: [ - L1HeaderStruct, - OpL2StateProofStruct, - BytesLike, - BytesLike, - BigNumberish - ] - ): string; - - decodeFunctionResult( - functionFragment: "verifyMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyNonMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyStateUpdate", - data: BytesLike - ): Result; -} - -export interface IProofVerifier extends BaseContract { - connect(runner?: ContractRunner | null): IProofVerifier; - waitForDeployment(): Promise; - - interface: IProofVerifierInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - verifyMembership: TypedContractMethod< - [ - appHash: BytesLike, - key: BytesLike, - value: BytesLike, - proof: Ics23ProofStruct - ], - [void], - "view" - >; - - verifyNonMembership: TypedContractMethod< - [appHash: BytesLike, key: BytesLike, proof: Ics23ProofStruct], - [void], - "view" - >; - - verifyStateUpdate: TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - appHash: BytesLike, - trustedL1BlockHash: BytesLike, - trustedL1BlockNumber: BigNumberish - ], - [void], - "view" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "verifyMembership" - ): TypedContractMethod< - [ - appHash: BytesLike, - key: BytesLike, - value: BytesLike, - proof: Ics23ProofStruct - ], - [void], - "view" - >; - getFunction( - nameOrSignature: "verifyNonMembership" - ): TypedContractMethod< - [appHash: BytesLike, key: BytesLike, proof: Ics23ProofStruct], - [void], - "view" - >; - getFunction( - nameOrSignature: "verifyStateUpdate" - ): TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - appHash: BytesLike, - trustedL1BlockHash: BytesLike, - trustedL1BlockNumber: BigNumberish - ], - [void], - "view" - >; - - filters: {}; -} diff --git a/src/evm/contracts/IUniversalChannelHandler.ts b/src/evm/contracts/IUniversalChannelHandler.ts deleted file mode 100644 index adeb274b..00000000 --- a/src/evm/contracts/IUniversalChannelHandler.ts +++ /dev/null @@ -1,572 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface IUniversalChannelHandlerInterface extends Interface { - getFunction( - nameOrSignature: - | "MW_ID" - | "closeChannel" - | "connectedChannels" - | "dispatcher" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "openChannel" - | "registerMwStack" - | "sendUniversalPacket" - | "sendUniversalPacketWithFee" - | "setDispatcher" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "MW_ID", values?: undefined): string; - encodeFunctionData( - functionFragment: "closeChannel", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "connectedChannels", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "openChannel", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "registerMwStack", - values: [BigNumberish, AddressLike[]] - ): string; - encodeFunctionData( - functionFragment: "sendUniversalPacket", - values: [BytesLike, BytesLike, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "sendUniversalPacketWithFee", - values: [ - BytesLike, - BytesLike, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "setDispatcher", - values: [AddressLike] - ): string; - - decodeFunctionResult(functionFragment: "MW_ID", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "closeChannel", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "connectedChannels", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "openChannel", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerMwStack", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "sendUniversalPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "sendUniversalPacketWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setDispatcher", - data: BytesLike - ): Result; -} - -export interface IUniversalChannelHandler extends BaseContract { - connect(runner?: ContractRunner | null): IUniversalChannelHandler; - waitForDeployment(): Promise; - - interface: IUniversalChannelHandlerInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - MW_ID: TypedContractMethod<[], [bigint], "view">; - - closeChannel: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - connectedChannels: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - dispatcher: TypedContractMethod<[], [string], "nonpayable">; - - onAcknowledgementPacket: TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - onChanCloseConfirm: TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - - onChanCloseInit: TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - - onChanOpenAck: TypedContractMethod< - [ - channelId: BytesLike, - counterpartychannelId: BytesLike, - counterpartyVersion: string - ], - [void], - "nonpayable" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [ - order: BigNumberish, - connectionHops: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "nonpayable" - >; - - onChanOpenTry: TypedContractMethod< - [ - order: BigNumberish, - connectionHops: string[], - channelId: BytesLike, - counterpartyPortIdentifier: string, - counterpartychannelId: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - - onRecvPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - - onTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [void], - "nonpayable" - >; - - openChannel: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortIdentifier: string - ], - [void], - "nonpayable" - >; - - registerMwStack: TypedContractMethod< - [mwBitmap: BigNumberish, mwAddrs: AddressLike[]], - [void], - "nonpayable" - >; - - sendUniversalPacket: TypedContractMethod< - [ - channelId: BytesLike, - destPortAddr: BytesLike, - appData: BytesLike, - timeoutTimestamp: BigNumberish - ], - [bigint], - "nonpayable" - >; - - sendUniversalPacketWithFee: TypedContractMethod< - [ - channelId: BytesLike, - destPortAddr: BytesLike, - appData: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - setDispatcher: TypedContractMethod< - [dispatcher: AddressLike], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "MW_ID" - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "closeChannel" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "connectedChannels" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "nonpayable">; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartychannelId: BytesLike, - counterpartyVersion: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [ - order: BigNumberish, - connectionHops: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - order: BigNumberish, - connectionHops: string[], - channelId: BytesLike, - counterpartyPortIdentifier: string, - counterpartychannelId: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[packet: IbcPacketStruct], [void], "nonpayable">; - getFunction( - nameOrSignature: "openChannel" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortIdentifier: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "registerMwStack" - ): TypedContractMethod< - [mwBitmap: BigNumberish, mwAddrs: AddressLike[]], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "sendUniversalPacket" - ): TypedContractMethod< - [ - channelId: BytesLike, - destPortAddr: BytesLike, - appData: BytesLike, - timeoutTimestamp: BigNumberish - ], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "sendUniversalPacketWithFee" - ): TypedContractMethod< - [ - channelId: BytesLike, - destPortAddr: BytesLike, - appData: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "setDispatcher" - ): TypedContractMethod<[dispatcher: AddressLike], [void], "nonpayable">; - - filters: {}; -} diff --git a/src/evm/contracts/Ibc.ts b/src/evm/contracts/Ibc.ts deleted file mode 100644 index d945ee86..00000000 --- a/src/evm/contracts/Ibc.ts +++ /dev/null @@ -1,359 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface IbcInterface extends Interface { - getFunction( - nameOrSignature: - | "ackProofKey" - | "ackProofValue" - | "channelProofKey" - | "channelProofKeyMemory" - | "channelProofValue" - | "channelProofValueMemory" - | "packetCommitmentProofKey" - | "packetCommitmentProofValue" - | "parseAckData" - | "toStr(bytes32)" - | "toStr(uint256)" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "ackProofKey", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "ackProofValue", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "channelProofKey", - values: [string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "channelProofKeyMemory", - values: [string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "channelProofValue", - values: [BigNumberish, BigNumberish, string, string[], string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "channelProofValueMemory", - values: [BigNumberish, BigNumberish, string, string[], string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "packetCommitmentProofKey", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "packetCommitmentProofValue", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "parseAckData", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "toStr(bytes32)", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "toStr(uint256)", - values: [BigNumberish] - ): string; - - decodeFunctionResult( - functionFragment: "ackProofKey", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "ackProofValue", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelProofKey", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelProofKeyMemory", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelProofValue", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelProofValueMemory", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "packetCommitmentProofKey", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "packetCommitmentProofValue", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "parseAckData", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "toStr(bytes32)", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "toStr(uint256)", - data: BytesLike - ): Result; -} - -export interface Ibc extends BaseContract { - connect(runner?: ContractRunner | null): Ibc; - waitForDeployment(): Promise; - - interface: IbcInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackProofKey: TypedContractMethod<[packet: IbcPacketStruct], [string], "view">; - - ackProofValue: TypedContractMethod<[ack: BytesLike], [string], "view">; - - channelProofKey: TypedContractMethod< - [portId: string, channelId: BytesLike], - [string], - "view" - >; - - channelProofKeyMemory: TypedContractMethod< - [portId: string, channelId: BytesLike], - [string], - "view" - >; - - channelProofValue: TypedContractMethod< - [ - state: BigNumberish, - ordering: BigNumberish, - version: string, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [string], - "view" - >; - - channelProofValueMemory: TypedContractMethod< - [ - state: BigNumberish, - ordering: BigNumberish, - version: string, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [string], - "view" - >; - - packetCommitmentProofKey: TypedContractMethod< - [packet: IbcPacketStruct], - [string], - "view" - >; - - packetCommitmentProofValue: TypedContractMethod< - [packet: IbcPacketStruct], - [string], - "view" - >; - - parseAckData: TypedContractMethod< - [ack: BytesLike], - [AckPacketStructOutput], - "view" - >; - - "toStr(bytes32)": TypedContractMethod<[b: BytesLike], [string], "view">; - - "toStr(uint256)": TypedContractMethod< - [_number: BigNumberish], - [string], - "view" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackProofKey" - ): TypedContractMethod<[packet: IbcPacketStruct], [string], "view">; - getFunction( - nameOrSignature: "ackProofValue" - ): TypedContractMethod<[ack: BytesLike], [string], "view">; - getFunction( - nameOrSignature: "channelProofKey" - ): TypedContractMethod< - [portId: string, channelId: BytesLike], - [string], - "view" - >; - getFunction( - nameOrSignature: "channelProofKeyMemory" - ): TypedContractMethod< - [portId: string, channelId: BytesLike], - [string], - "view" - >; - getFunction( - nameOrSignature: "channelProofValue" - ): TypedContractMethod< - [ - state: BigNumberish, - ordering: BigNumberish, - version: string, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "channelProofValueMemory" - ): TypedContractMethod< - [ - state: BigNumberish, - ordering: BigNumberish, - version: string, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "packetCommitmentProofKey" - ): TypedContractMethod<[packet: IbcPacketStruct], [string], "view">; - getFunction( - nameOrSignature: "packetCommitmentProofValue" - ): TypedContractMethod<[packet: IbcPacketStruct], [string], "view">; - getFunction( - nameOrSignature: "parseAckData" - ): TypedContractMethod<[ack: BytesLike], [AckPacketStructOutput], "view">; - getFunction( - nameOrSignature: "toStr(bytes32)" - ): TypedContractMethod<[b: BytesLike], [string], "view">; - getFunction( - nameOrSignature: "toStr(uint256)" - ): TypedContractMethod<[_number: BigNumberish], [string], "view">; - - filters: {}; -} diff --git a/src/evm/contracts/IbcDispatcher.sol/IbcDispatcher.ts b/src/evm/contracts/IbcDispatcher.sol/IbcDispatcher.ts deleted file mode 100644 index 14825681..00000000 --- a/src/evm/contracts/IbcDispatcher.sol/IbcDispatcher.ts +++ /dev/null @@ -1,229 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../common"; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export interface IbcDispatcherInterface extends Interface { - getFunction( - nameOrSignature: - | "channelCloseConfirm" - | "channelCloseInit" - | "channelOpenInit" - | "feeVault" - | "portPrefix" - | "sendPacket" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "channelCloseConfirm", - values: [AddressLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "channelCloseInit", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "channelOpenInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData(functionFragment: "feeVault", values?: undefined): string; - encodeFunctionData( - functionFragment: "portPrefix", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "sendPacket", - values: [BytesLike, BytesLike, BigNumberish] - ): string; - - decodeFunctionResult( - functionFragment: "channelCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "channelOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "feeVault", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "portPrefix", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "sendPacket", data: BytesLike): Result; -} - -export interface IbcDispatcher extends BaseContract { - connect(runner?: ContractRunner | null): IbcDispatcher; - waitForDeployment(): Promise; - - interface: IbcDispatcherInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - channelCloseConfirm: TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - - channelCloseInit: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - channelOpenInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - feeVault: TypedContractMethod<[], [string], "nonpayable">; - - portPrefix: TypedContractMethod<[], [string], "view">; - - sendPacket: TypedContractMethod< - [channelId: BytesLike, payload: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "channelCloseConfirm" - ): TypedContractMethod< - [portAddress: AddressLike, channelId: BytesLike, proof: Ics23ProofStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "channelCloseInit" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "channelOpenInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "feeVault" - ): TypedContractMethod<[], [string], "nonpayable">; - getFunction( - nameOrSignature: "portPrefix" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "sendPacket" - ): TypedContractMethod< - [channelId: BytesLike, payload: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - filters: {}; -} diff --git a/src/evm/contracts/IbcDispatcher.sol/IbcEventsEmitter.ts b/src/evm/contracts/IbcDispatcher.sol/IbcEventsEmitter.ts deleted file mode 100644 index 9db38768..00000000 --- a/src/evm/contracts/IbcDispatcher.sol/IbcEventsEmitter.ts +++ /dev/null @@ -1,844 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, -} from "../common"; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export interface IbcEventsEmitterInterface extends Interface { - getEvent( - nameOrSignatureOrTopic: - | "Acknowledgement" - | "AcknowledgementError" - | "ChannelCloseConfirm" - | "ChannelCloseConfirmError" - | "ChannelCloseInit" - | "ChannelCloseInitError" - | "ChannelOpenAck" - | "ChannelOpenAckError" - | "ChannelOpenConfirm" - | "ChannelOpenConfirmError" - | "ChannelOpenInit" - | "ChannelOpenInitError" - | "ChannelOpenTry" - | "ChannelOpenTryError" - | "RecvPacket" - | "SendPacket" - | "Timeout" - | "TimeoutError" - | "WriteAckPacket" - | "WriteTimeoutPacket" - ): EventFragment; -} - -export namespace AcknowledgementEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AcknowledgementErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseConfirmEvent { - export type InputTuple = [portAddress: AddressLike, channelId: BytesLike]; - export type OutputTuple = [portAddress: string, channelId: string]; - export interface OutputObject { - portAddress: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseConfirmErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseInitEvent { - export type InputTuple = [portAddress: AddressLike, channelId: BytesLike]; - export type OutputTuple = [portAddress: string, channelId: string]; - export interface OutputObject { - portAddress: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelCloseInitErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenAckEvent { - export type InputTuple = [receiver: AddressLike, channelId: BytesLike]; - export type OutputTuple = [receiver: string, channelId: string]; - export interface OutputObject { - receiver: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenAckErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenConfirmEvent { - export type InputTuple = [receiver: AddressLike, channelId: BytesLike]; - export type OutputTuple = [receiver: string, channelId: string]; - export interface OutputObject { - receiver: string; - channelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenConfirmErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenInitEvent { - export type InputTuple = [ - receiver: AddressLike, - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ]; - export type OutputTuple = [ - receiver: string, - version: string, - ordering: bigint, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ]; - export interface OutputObject { - receiver: string; - version: string; - ordering: bigint; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenInitErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenTryEvent { - export type InputTuple = [ - receiver: AddressLike, - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ]; - export type OutputTuple = [ - receiver: string, - version: string, - ordering: bigint, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string, - counterpartyChannelId: string - ]; - export interface OutputObject { - receiver: string; - version: string; - ordering: bigint; - feeEnabled: boolean; - connectionHops: string[]; - counterpartyPortId: string; - counterpartyChannelId: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ChannelOpenTryErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RecvPacketEvent { - export type InputTuple = [ - destPortAddress: AddressLike, - destChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - destPortAddress: string, - destChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - destPortAddress: string; - destChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace SendPacketEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - packet: BytesLike, - sequence: BigNumberish, - timeoutTimestamp: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - packet: string, - sequence: bigint, - timeoutTimestamp: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - packet: string; - sequence: bigint; - timeoutTimestamp: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TimeoutEvent { - export type InputTuple = [ - sourcePortAddress: AddressLike, - sourceChannelId: BytesLike, - sequence: BigNumberish - ]; - export type OutputTuple = [ - sourcePortAddress: string, - sourceChannelId: string, - sequence: bigint - ]; - export interface OutputObject { - sourcePortAddress: string; - sourceChannelId: string; - sequence: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TimeoutErrorEvent { - export type InputTuple = [receiver: AddressLike, error: BytesLike]; - export type OutputTuple = [receiver: string, error: string]; - export interface OutputObject { - receiver: string; - error: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace WriteAckPacketEvent { - export type InputTuple = [ - writerPortAddress: AddressLike, - writerChannelId: BytesLike, - sequence: BigNumberish, - ackPacket: AckPacketStruct - ]; - export type OutputTuple = [ - writerPortAddress: string, - writerChannelId: string, - sequence: bigint, - ackPacket: AckPacketStructOutput - ]; - export interface OutputObject { - writerPortAddress: string; - writerChannelId: string; - sequence: bigint; - ackPacket: AckPacketStructOutput; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace WriteTimeoutPacketEvent { - export type InputTuple = [ - writerPortAddress: AddressLike, - writerChannelId: BytesLike, - sequence: BigNumberish, - timeoutHeight: HeightStruct, - timeoutTimestamp: BigNumberish - ]; - export type OutputTuple = [ - writerPortAddress: string, - writerChannelId: string, - sequence: bigint, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint - ]; - export interface OutputObject { - writerPortAddress: string; - writerChannelId: string; - sequence: bigint; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface IbcEventsEmitter extends BaseContract { - connect(runner?: ContractRunner | null): IbcEventsEmitter; - waitForDeployment(): Promise; - - interface: IbcEventsEmitterInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - getFunction( - key: string | FunctionFragment - ): T; - - getEvent( - key: "Acknowledgement" - ): TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - getEvent( - key: "AcknowledgementError" - ): TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - getEvent( - key: "ChannelCloseConfirm" - ): TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - getEvent( - key: "ChannelCloseConfirmError" - ): TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - getEvent( - key: "ChannelCloseInit" - ): TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - getEvent( - key: "ChannelCloseInitError" - ): TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenAck" - ): TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - getEvent( - key: "ChannelOpenAckError" - ): TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenConfirm" - ): TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - getEvent( - key: "ChannelOpenConfirmError" - ): TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenInit" - ): TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - getEvent( - key: "ChannelOpenInitError" - ): TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - getEvent( - key: "ChannelOpenTry" - ): TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - getEvent( - key: "ChannelOpenTryError" - ): TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - getEvent( - key: "RecvPacket" - ): TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - getEvent( - key: "SendPacket" - ): TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - getEvent( - key: "Timeout" - ): TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - getEvent( - key: "TimeoutError" - ): TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - getEvent( - key: "WriteAckPacket" - ): TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - getEvent( - key: "WriteTimeoutPacket" - ): TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - - filters: { - "Acknowledgement(address,bytes32,uint64)": TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - Acknowledgement: TypedContractEvent< - AcknowledgementEvent.InputTuple, - AcknowledgementEvent.OutputTuple, - AcknowledgementEvent.OutputObject - >; - - "AcknowledgementError(address,bytes)": TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - AcknowledgementError: TypedContractEvent< - AcknowledgementErrorEvent.InputTuple, - AcknowledgementErrorEvent.OutputTuple, - AcknowledgementErrorEvent.OutputObject - >; - - "ChannelCloseConfirm(address,bytes32)": TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - ChannelCloseConfirm: TypedContractEvent< - ChannelCloseConfirmEvent.InputTuple, - ChannelCloseConfirmEvent.OutputTuple, - ChannelCloseConfirmEvent.OutputObject - >; - - "ChannelCloseConfirmError(address,bytes)": TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - ChannelCloseConfirmError: TypedContractEvent< - ChannelCloseConfirmErrorEvent.InputTuple, - ChannelCloseConfirmErrorEvent.OutputTuple, - ChannelCloseConfirmErrorEvent.OutputObject - >; - - "ChannelCloseInit(address,bytes32)": TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - ChannelCloseInit: TypedContractEvent< - ChannelCloseInitEvent.InputTuple, - ChannelCloseInitEvent.OutputTuple, - ChannelCloseInitEvent.OutputObject - >; - - "ChannelCloseInitError(address,bytes)": TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - ChannelCloseInitError: TypedContractEvent< - ChannelCloseInitErrorEvent.InputTuple, - ChannelCloseInitErrorEvent.OutputTuple, - ChannelCloseInitErrorEvent.OutputObject - >; - - "ChannelOpenAck(address,bytes32)": TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - ChannelOpenAck: TypedContractEvent< - ChannelOpenAckEvent.InputTuple, - ChannelOpenAckEvent.OutputTuple, - ChannelOpenAckEvent.OutputObject - >; - - "ChannelOpenAckError(address,bytes)": TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - ChannelOpenAckError: TypedContractEvent< - ChannelOpenAckErrorEvent.InputTuple, - ChannelOpenAckErrorEvent.OutputTuple, - ChannelOpenAckErrorEvent.OutputObject - >; - - "ChannelOpenConfirm(address,bytes32)": TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - ChannelOpenConfirm: TypedContractEvent< - ChannelOpenConfirmEvent.InputTuple, - ChannelOpenConfirmEvent.OutputTuple, - ChannelOpenConfirmEvent.OutputObject - >; - - "ChannelOpenConfirmError(address,bytes)": TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - ChannelOpenConfirmError: TypedContractEvent< - ChannelOpenConfirmErrorEvent.InputTuple, - ChannelOpenConfirmErrorEvent.OutputTuple, - ChannelOpenConfirmErrorEvent.OutputObject - >; - - "ChannelOpenInit(address,string,uint8,bool,string[],string)": TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - ChannelOpenInit: TypedContractEvent< - ChannelOpenInitEvent.InputTuple, - ChannelOpenInitEvent.OutputTuple, - ChannelOpenInitEvent.OutputObject - >; - - "ChannelOpenInitError(address,bytes)": TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - ChannelOpenInitError: TypedContractEvent< - ChannelOpenInitErrorEvent.InputTuple, - ChannelOpenInitErrorEvent.OutputTuple, - ChannelOpenInitErrorEvent.OutputObject - >; - - "ChannelOpenTry(address,string,uint8,bool,string[],string,bytes32)": TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - ChannelOpenTry: TypedContractEvent< - ChannelOpenTryEvent.InputTuple, - ChannelOpenTryEvent.OutputTuple, - ChannelOpenTryEvent.OutputObject - >; - - "ChannelOpenTryError(address,bytes)": TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - ChannelOpenTryError: TypedContractEvent< - ChannelOpenTryErrorEvent.InputTuple, - ChannelOpenTryErrorEvent.OutputTuple, - ChannelOpenTryErrorEvent.OutputObject - >; - - "RecvPacket(address,bytes32,uint64)": TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - RecvPacket: TypedContractEvent< - RecvPacketEvent.InputTuple, - RecvPacketEvent.OutputTuple, - RecvPacketEvent.OutputObject - >; - - "SendPacket(address,bytes32,bytes,uint64,uint64)": TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - SendPacket: TypedContractEvent< - SendPacketEvent.InputTuple, - SendPacketEvent.OutputTuple, - SendPacketEvent.OutputObject - >; - - "Timeout(address,bytes32,uint64)": TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - Timeout: TypedContractEvent< - TimeoutEvent.InputTuple, - TimeoutEvent.OutputTuple, - TimeoutEvent.OutputObject - >; - - "TimeoutError(address,bytes)": TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - TimeoutError: TypedContractEvent< - TimeoutErrorEvent.InputTuple, - TimeoutErrorEvent.OutputTuple, - TimeoutErrorEvent.OutputObject - >; - - "WriteAckPacket(address,bytes32,uint64,tuple)": TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - WriteAckPacket: TypedContractEvent< - WriteAckPacketEvent.InputTuple, - WriteAckPacketEvent.OutputTuple, - WriteAckPacketEvent.OutputObject - >; - - "WriteTimeoutPacket(address,bytes32,uint64,tuple,uint64)": TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - WriteTimeoutPacket: TypedContractEvent< - WriteTimeoutPacketEvent.InputTuple, - WriteTimeoutPacketEvent.OutputTuple, - WriteTimeoutPacketEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/IbcDispatcher.sol/IbcPacketSender.ts b/src/evm/contracts/IbcDispatcher.sol/IbcPacketSender.ts deleted file mode 100644 index a77db657..00000000 --- a/src/evm/contracts/IbcDispatcher.sol/IbcPacketSender.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../common"; - -export interface IbcPacketSenderInterface extends Interface { - getFunction(nameOrSignature: "sendPacket"): FunctionFragment; - - encodeFunctionData( - functionFragment: "sendPacket", - values: [BytesLike, BytesLike, BigNumberish] - ): string; - - decodeFunctionResult(functionFragment: "sendPacket", data: BytesLike): Result; -} - -export interface IbcPacketSender extends BaseContract { - connect(runner?: ContractRunner | null): IbcPacketSender; - waitForDeployment(): Promise; - - interface: IbcPacketSenderInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - sendPacket: TypedContractMethod< - [channelId: BytesLike, payload: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "sendPacket" - ): TypedContractMethod< - [channelId: BytesLike, payload: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - filters: {}; -} diff --git a/src/evm/contracts/IbcDispatcher.sol/index.ts b/src/evm/contracts/IbcDispatcher.sol/index.ts deleted file mode 100644 index 61f957df..00000000 --- a/src/evm/contracts/IbcDispatcher.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IbcDispatcher } from "./IbcDispatcher"; -export type { IbcEventsEmitter } from "./IbcEventsEmitter"; -export type { IbcPacketSender } from "./IbcPacketSender"; diff --git a/src/evm/contracts/IbcUtils.ts b/src/evm/contracts/IbcUtils.ts deleted file mode 100644 index 40327890..00000000 --- a/src/evm/contracts/IbcUtils.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type UniversalPacketStruct = { - srcPortAddr: BytesLike; - mwBitmap: BigNumberish; - destPortAddr: BytesLike; - appData: BytesLike; -}; - -export type UniversalPacketStructOutput = [ - srcPortAddr: string, - mwBitmap: bigint, - destPortAddr: string, - appData: string -] & { - srcPortAddr: string; - mwBitmap: bigint; - destPortAddr: string; - appData: string; -}; - -export interface IbcUtilsInterface extends Interface { - getFunction( - nameOrSignature: "fromUniversalPacketBytes" | "hexStrToAddress" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "fromUniversalPacketBytes", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "hexStrToAddress", - values: [string] - ): string; - - decodeFunctionResult( - functionFragment: "fromUniversalPacketBytes", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "hexStrToAddress", - data: BytesLike - ): Result; -} - -export interface IbcUtils extends BaseContract { - connect(runner?: ContractRunner | null): IbcUtils; - waitForDeployment(): Promise; - - interface: IbcUtilsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - fromUniversalPacketBytes: TypedContractMethod< - [data: BytesLike], - [UniversalPacketStructOutput], - "view" - >; - - hexStrToAddress: TypedContractMethod<[hexStr: string], [string], "view">; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "fromUniversalPacketBytes" - ): TypedContractMethod< - [data: BytesLike], - [UniversalPacketStructOutput], - "view" - >; - getFunction( - nameOrSignature: "hexStrToAddress" - ): TypedContractMethod<[hexStr: string], [string], "view">; - - filters: {}; -} diff --git a/src/evm/contracts/Mars.sol/Mars.ts b/src/evm/contracts/Mars.sol/Mars.ts deleted file mode 100644 index eaf26c51..00000000 --- a/src/evm/contracts/Mars.sol/Mars.ts +++ /dev/null @@ -1,747 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface MarsInterface extends Interface { - getFunction( - nameOrSignature: - | "ackPackets" - | "connectedChannels" - | "dispatcher" - | "greet" - | "greetWithFee" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "owner" - | "recvedPackets" - | "renounceOwnership" - | "supportedVersions" - | "timeoutPackets" - | "transferOwnership" - | "triggerChannelClose" - | "triggerChannelInit" - | "triggerChannelInitWithFee" - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - - encodeFunctionData( - functionFragment: "ackPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "connectedChannels", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "greet", - values: [string, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "greetWithFee", - values: [ - string, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "recvedPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportedVersions", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "timeoutPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelClose", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInitWithFee", - values: [string, BigNumberish, boolean, string[], string] - ): string; - - decodeFunctionResult(functionFragment: "ackPackets", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "connectedChannels", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "greetWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "recvedPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportedVersions", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "timeoutPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelClose", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInitWithFee", - data: BytesLike - ): Result; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface Mars extends BaseContract { - connect(runner?: ContractRunner | null): Mars; - waitForDeployment(): Promise; - - interface: MarsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackPackets: TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - - connectedChannels: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - dispatcher: TypedContractMethod<[], [string], "view">; - - greet: TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - greetWithFee: TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - onAcknowledgementPacket: TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - onChanCloseConfirm: TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - - onChanCloseInit: TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenAck: TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - - onChanOpenTry: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - - onRecvPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - - onTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - recvedPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - supportedVersions: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - timeoutPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - triggerChannelClose: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - triggerChannelInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - triggerChannelInitWithFee: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - getFunction( - nameOrSignature: "connectedChannels" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "greet" - ): TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "greetWithFee" - ): TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[packet: IbcPacketStruct], [void], "nonpayable">; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvedPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "supportedVersions" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "timeoutPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelClose" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "triggerChannelInitWithFee" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - filters: { - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/Mars.sol/PanickingMars.ts b/src/evm/contracts/Mars.sol/PanickingMars.ts deleted file mode 100644 index f5869e20..00000000 --- a/src/evm/contracts/Mars.sol/PanickingMars.ts +++ /dev/null @@ -1,747 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface PanickingMarsInterface extends Interface { - getFunction( - nameOrSignature: - | "ackPackets" - | "connectedChannels" - | "dispatcher" - | "greet" - | "greetWithFee" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "owner" - | "recvedPackets" - | "renounceOwnership" - | "supportedVersions" - | "timeoutPackets" - | "transferOwnership" - | "triggerChannelClose" - | "triggerChannelInit" - | "triggerChannelInitWithFee" - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - - encodeFunctionData( - functionFragment: "ackPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "connectedChannels", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "greet", - values: [string, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "greetWithFee", - values: [ - string, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "recvedPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportedVersions", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "timeoutPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelClose", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInitWithFee", - values: [string, BigNumberish, boolean, string[], string] - ): string; - - decodeFunctionResult(functionFragment: "ackPackets", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "connectedChannels", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "greetWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "recvedPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportedVersions", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "timeoutPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelClose", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInitWithFee", - data: BytesLike - ): Result; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface PanickingMars extends BaseContract { - connect(runner?: ContractRunner | null): PanickingMars; - waitForDeployment(): Promise; - - interface: PanickingMarsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackPackets: TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - - connectedChannels: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - dispatcher: TypedContractMethod<[], [string], "view">; - - greet: TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - greetWithFee: TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - onAcknowledgementPacket: TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - onChanCloseConfirm: TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - - onChanCloseInit: TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenAck: TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - - onChanOpenTry: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - - onRecvPacket: TypedContractMethod< - [arg0: IbcPacketStruct], - [AckPacketStructOutput], - "view" - >; - - onTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - recvedPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - supportedVersions: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - timeoutPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - triggerChannelClose: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - triggerChannelInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - triggerChannelInitWithFee: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - getFunction( - nameOrSignature: "connectedChannels" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "greet" - ): TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "greetWithFee" - ): TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [arg0: IbcPacketStruct], - [AckPacketStructOutput], - "view" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[packet: IbcPacketStruct], [void], "nonpayable">; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvedPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "supportedVersions" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "timeoutPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelClose" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "triggerChannelInitWithFee" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - filters: { - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/Mars.sol/RevertingBytesMars.ts b/src/evm/contracts/Mars.sol/RevertingBytesMars.ts deleted file mode 100644 index 57e5683f..00000000 --- a/src/evm/contracts/Mars.sol/RevertingBytesMars.ts +++ /dev/null @@ -1,743 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface RevertingBytesMarsInterface extends Interface { - getFunction( - nameOrSignature: - | "ackPackets" - | "connectedChannels" - | "dispatcher" - | "greet" - | "greetWithFee" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "owner" - | "recvedPackets" - | "renounceOwnership" - | "supportedVersions" - | "timeoutPackets" - | "transferOwnership" - | "triggerChannelClose" - | "triggerChannelInit" - | "triggerChannelInitWithFee" - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - - encodeFunctionData( - functionFragment: "ackPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "connectedChannels", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "greet", - values: [string, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "greetWithFee", - values: [ - string, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "recvedPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportedVersions", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "timeoutPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelClose", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInitWithFee", - values: [string, BigNumberish, boolean, string[], string] - ): string; - - decodeFunctionResult(functionFragment: "ackPackets", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "connectedChannels", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "greetWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "recvedPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportedVersions", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "timeoutPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelClose", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInitWithFee", - data: BytesLike - ): Result; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface RevertingBytesMars extends BaseContract { - connect(runner?: ContractRunner | null): RevertingBytesMars; - waitForDeployment(): Promise; - - interface: RevertingBytesMarsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackPackets: TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - - connectedChannels: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - dispatcher: TypedContractMethod<[], [string], "view">; - - greet: TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - greetWithFee: TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - onAcknowledgementPacket: TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - onChanCloseConfirm: TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - - onChanCloseInit: TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenAck: TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - - onChanOpenTry: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - - onRecvPacket: TypedContractMethod< - [arg0: IbcPacketStruct], - [AckPacketStructOutput], - "view" - >; - - onTimeoutPacket: TypedContractMethod<[arg0: IbcPacketStruct], [void], "view">; - - owner: TypedContractMethod<[], [string], "view">; - - recvedPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - supportedVersions: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - timeoutPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - triggerChannelClose: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - triggerChannelInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - triggerChannelInitWithFee: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - getFunction( - nameOrSignature: "connectedChannels" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "greet" - ): TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "greetWithFee" - ): TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [arg0: IbcPacketStruct], - [AckPacketStructOutput], - "view" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[arg0: IbcPacketStruct], [void], "view">; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvedPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "supportedVersions" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "timeoutPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelClose" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "triggerChannelInitWithFee" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - filters: { - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/Mars.sol/RevertingEmptyMars.ts b/src/evm/contracts/Mars.sol/RevertingEmptyMars.ts deleted file mode 100644 index ff0e7b28..00000000 --- a/src/evm/contracts/Mars.sol/RevertingEmptyMars.ts +++ /dev/null @@ -1,747 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface RevertingEmptyMarsInterface extends Interface { - getFunction( - nameOrSignature: - | "ackPackets" - | "connectedChannels" - | "dispatcher" - | "greet" - | "greetWithFee" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "owner" - | "recvedPackets" - | "renounceOwnership" - | "supportedVersions" - | "timeoutPackets" - | "transferOwnership" - | "triggerChannelClose" - | "triggerChannelInit" - | "triggerChannelInitWithFee" - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - - encodeFunctionData( - functionFragment: "ackPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "connectedChannels", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "greet", - values: [string, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "greetWithFee", - values: [ - string, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "recvedPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportedVersions", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "timeoutPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelClose", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInitWithFee", - values: [string, BigNumberish, boolean, string[], string] - ): string; - - decodeFunctionResult(functionFragment: "ackPackets", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "connectedChannels", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "greetWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "recvedPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportedVersions", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "timeoutPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelClose", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInitWithFee", - data: BytesLike - ): Result; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface RevertingEmptyMars extends BaseContract { - connect(runner?: ContractRunner | null): RevertingEmptyMars; - waitForDeployment(): Promise; - - interface: RevertingEmptyMarsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackPackets: TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - - connectedChannels: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - dispatcher: TypedContractMethod<[], [string], "view">; - - greet: TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - greetWithFee: TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - onAcknowledgementPacket: TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - onChanCloseConfirm: TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - - onChanCloseInit: TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenAck: TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - - onChanOpenTry: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - - onRecvPacket: TypedContractMethod< - [arg0: IbcPacketStruct], - [AckPacketStructOutput], - "view" - >; - - onTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - recvedPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - supportedVersions: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - timeoutPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - triggerChannelClose: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - triggerChannelInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - triggerChannelInitWithFee: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - getFunction( - nameOrSignature: "connectedChannels" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "greet" - ): TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "greetWithFee" - ): TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [arg0: IbcPacketStruct], - [AckPacketStructOutput], - "view" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[packet: IbcPacketStruct], [void], "nonpayable">; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvedPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "supportedVersions" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "timeoutPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelClose" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "triggerChannelInitWithFee" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - filters: { - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/Mars.sol/RevertingStringCloseChannelMars.ts b/src/evm/contracts/Mars.sol/RevertingStringCloseChannelMars.ts deleted file mode 100644 index fbd67ecb..00000000 --- a/src/evm/contracts/Mars.sol/RevertingStringCloseChannelMars.ts +++ /dev/null @@ -1,739 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface RevertingStringCloseChannelMarsInterface extends Interface { - getFunction( - nameOrSignature: - | "ackPackets" - | "connectedChannels" - | "dispatcher" - | "greet" - | "greetWithFee" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "owner" - | "recvedPackets" - | "renounceOwnership" - | "supportedVersions" - | "timeoutPackets" - | "transferOwnership" - | "triggerChannelClose" - | "triggerChannelInit" - | "triggerChannelInitWithFee" - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - - encodeFunctionData( - functionFragment: "ackPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "connectedChannels", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "greet", - values: [string, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "greetWithFee", - values: [ - string, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "recvedPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportedVersions", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "timeoutPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelClose", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInitWithFee", - values: [string, BigNumberish, boolean, string[], string] - ): string; - - decodeFunctionResult(functionFragment: "ackPackets", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "connectedChannels", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "greetWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "recvedPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportedVersions", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "timeoutPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelClose", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInitWithFee", - data: BytesLike - ): Result; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface RevertingStringCloseChannelMars extends BaseContract { - connect(runner?: ContractRunner | null): RevertingStringCloseChannelMars; - waitForDeployment(): Promise; - - interface: RevertingStringCloseChannelMarsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackPackets: TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - - connectedChannels: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - dispatcher: TypedContractMethod<[], [string], "view">; - - greet: TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - greetWithFee: TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - onAcknowledgementPacket: TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - onChanCloseConfirm: TypedContractMethod< - [arg0: BytesLike, arg1: string, arg2: BytesLike], - [void], - "view" - >; - - onChanCloseInit: TypedContractMethod< - [arg0: BytesLike, arg1: string, arg2: BytesLike], - [void], - "view" - >; - - onChanOpenAck: TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - - onChanOpenTry: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - - onRecvPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - - onTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - recvedPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - supportedVersions: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - timeoutPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - triggerChannelClose: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - triggerChannelInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - triggerChannelInitWithFee: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - getFunction( - nameOrSignature: "connectedChannels" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "greet" - ): TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "greetWithFee" - ): TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [arg0: BytesLike, arg1: string, arg2: BytesLike], - [void], - "view" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [arg0: BytesLike, arg1: string, arg2: BytesLike], - [void], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[packet: IbcPacketStruct], [void], "nonpayable">; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvedPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "supportedVersions" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "timeoutPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelClose" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "triggerChannelInitWithFee" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - filters: { - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/Mars.sol/RevertingStringMars.ts b/src/evm/contracts/Mars.sol/RevertingStringMars.ts deleted file mode 100644 index 25c42136..00000000 --- a/src/evm/contracts/Mars.sol/RevertingStringMars.ts +++ /dev/null @@ -1,737 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface RevertingStringMarsInterface extends Interface { - getFunction( - nameOrSignature: - | "ackPackets" - | "connectedChannels" - | "dispatcher" - | "greet" - | "greetWithFee" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "owner" - | "recvedPackets" - | "renounceOwnership" - | "supportedVersions" - | "timeoutPackets" - | "transferOwnership" - | "triggerChannelClose" - | "triggerChannelInit" - | "triggerChannelInitWithFee" - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - - encodeFunctionData( - functionFragment: "ackPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "connectedChannels", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "greet", - values: [string, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "greetWithFee", - values: [ - string, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "recvedPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportedVersions", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "timeoutPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelClose", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInitWithFee", - values: [string, BigNumberish, boolean, string[], string] - ): string; - - decodeFunctionResult(functionFragment: "ackPackets", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "connectedChannels", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "greetWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "recvedPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportedVersions", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "timeoutPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelClose", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInitWithFee", - data: BytesLike - ): Result; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface RevertingStringMars extends BaseContract { - connect(runner?: ContractRunner | null): RevertingStringMars; - waitForDeployment(): Promise; - - interface: RevertingStringMarsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackPackets: TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - - connectedChannels: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - dispatcher: TypedContractMethod<[], [string], "view">; - - greet: TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - greetWithFee: TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - onAcknowledgementPacket: TypedContractMethod< - [arg0: IbcPacketStruct, arg1: AckPacketStruct], - [void], - "view" - >; - - onChanCloseConfirm: TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - - onChanCloseInit: TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenAck: TypedContractMethod< - [arg0: BytesLike, arg1: BytesLike, arg2: string], - [void], - "view" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [arg0: BigNumberish, arg1: string[], arg2: string, arg3: string], - [string], - "view" - >; - - onChanOpenTry: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - - onRecvPacket: TypedContractMethod< - [arg0: IbcPacketStruct], - [AckPacketStructOutput], - "view" - >; - - onTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - recvedPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - supportedVersions: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - timeoutPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - triggerChannelClose: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - triggerChannelInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - triggerChannelInitWithFee: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - getFunction( - nameOrSignature: "connectedChannels" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "greet" - ): TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "greetWithFee" - ): TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [arg0: IbcPacketStruct, arg1: AckPacketStruct], - [void], - "view" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [arg0: BytesLike, arg1: BytesLike, arg2: string], - [void], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [arg0: BigNumberish, arg1: string[], arg2: string, arg3: string], - [string], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [arg0: IbcPacketStruct], - [AckPacketStructOutput], - "view" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[packet: IbcPacketStruct], [void], "nonpayable">; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvedPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "supportedVersions" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "timeoutPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelClose" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "triggerChannelInitWithFee" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - filters: { - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/Mars.sol/index.ts b/src/evm/contracts/Mars.sol/index.ts deleted file mode 100644 index e8f9b278..00000000 --- a/src/evm/contracts/Mars.sol/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Mars } from "./Mars"; -export type { PanickingMars } from "./PanickingMars"; -export type { RevertingBytesMars } from "./RevertingBytesMars"; -export type { RevertingEmptyMars } from "./RevertingEmptyMars"; -export type { RevertingStringCloseChannelMars } from "./RevertingStringCloseChannelMars"; -export type { RevertingStringMars } from "./RevertingStringMars"; diff --git a/src/evm/contracts/Moon.ts b/src/evm/contracts/Moon.ts deleted file mode 100644 index 37075b74..00000000 --- a/src/evm/contracts/Moon.ts +++ /dev/null @@ -1,747 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface MoonInterface extends Interface { - getFunction( - nameOrSignature: - | "ackPackets" - | "connectedChannels" - | "dispatcher" - | "greet" - | "greetWithFee" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "owner" - | "recvedPackets" - | "renounceOwnership" - | "supportedVersions" - | "timeoutPackets" - | "transferOwnership" - | "triggerChannelClose" - | "triggerChannelInit" - | "triggerChannelInitWithFee" - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - - encodeFunctionData( - functionFragment: "ackPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "connectedChannels", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "greet", - values: [string, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "greetWithFee", - values: [ - string, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "recvedPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportedVersions", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "timeoutPackets", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelClose", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInit", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData( - functionFragment: "triggerChannelInitWithFee", - values: [string, BigNumberish, boolean, string[], string] - ): string; - - decodeFunctionResult(functionFragment: "ackPackets", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "connectedChannels", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "greetWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "recvedPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportedVersions", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "timeoutPackets", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelClose", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "triggerChannelInitWithFee", - data: BytesLike - ): Result; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface Moon extends BaseContract { - connect(runner?: ContractRunner | null): Moon; - waitForDeployment(): Promise; - - interface: MoonInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - ackPackets: TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - - connectedChannels: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - dispatcher: TypedContractMethod<[], [string], "view">; - - greet: TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - - greetWithFee: TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - onAcknowledgementPacket: TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - onChanCloseConfirm: TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - - onChanCloseInit: TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenAck: TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - - onChanOpenTry: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - - onRecvPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - - onTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - recvedPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - supportedVersions: TypedContractMethod< - [arg0: BigNumberish], - [string], - "view" - >; - - timeoutPackets: TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - triggerChannelClose: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - triggerChannelInit: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - - triggerChannelInitWithFee: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "ackPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [[boolean, string] & { success: boolean; data: string }], - "view" - >; - getFunction( - nameOrSignature: "connectedChannels" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "greet" - ): TypedContractMethod< - [message: string, channelId: BytesLike, timeoutTimestamp: BigNumberish], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "greetWithFee" - ): TypedContractMethod< - [ - message: string, - channelId: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [ - channelId: BytesLike, - counterpartyPortId: string, - counterpartyChannelId: BytesLike - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - counterpartyPortIdentifier: string, - version: string - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "nonpayable" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[packet: IbcPacketStruct], [void], "nonpayable">; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "recvedPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "supportedVersions" - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "timeoutPackets" - ): TypedContractMethod< - [arg0: BigNumberish], - [ - [ - IbcEndpointStructOutput, - IbcEndpointStructOutput, - bigint, - string, - HeightStructOutput, - bigint - ] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; - } - ], - "view" - >; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelClose" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "triggerChannelInit" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "triggerChannelInitWithFee" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortId: string - ], - [void], - "payable" - >; - - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - filters: { - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/OptimisticLightClient.ts b/src/evm/contracts/OptimisticLightClient.ts deleted file mode 100644 index b88eff47..00000000 --- a/src/evm/contracts/OptimisticLightClient.ts +++ /dev/null @@ -1,374 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type L1HeaderStruct = { - header: BytesLike[]; - stateRoot: BytesLike; - number: BigNumberish; -}; - -export type L1HeaderStructOutput = [ - header: string[], - stateRoot: string, - number: bigint -] & { header: string[]; stateRoot: string; number: bigint }; - -export type OpL2StateProofStruct = { - accountProof: BytesLike[]; - outputRootProof: BytesLike[]; - l2OutputProposalKey: BytesLike; - l2BlockHash: BytesLike; -}; - -export type OpL2StateProofStructOutput = [ - accountProof: string[], - outputRootProof: string[], - l2OutputProposalKey: string, - l2BlockHash: string -] & { - accountProof: string[]; - outputRootProof: string[]; - l2OutputProposalKey: string; - l2BlockHash: string; -}; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export interface OptimisticLightClientInterface extends Interface { - getFunction( - nameOrSignature: - | "addOpConsensusState" - | "consensusStates" - | "fraudProofEndtime" - | "fraudProofWindowSeconds" - | "getFraudProofEndtime" - | "getInternalState" - | "getState" - | "l1BlockProvider" - | "verifier" - | "verifyMembership" - | "verifyNonMembership" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "addOpConsensusState", - values: [L1HeaderStruct, OpL2StateProofStruct, BigNumberish, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "consensusStates", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "fraudProofEndtime", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "fraudProofWindowSeconds", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getFraudProofEndtime", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getInternalState", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getState", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "l1BlockProvider", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "verifier", values?: undefined): string; - encodeFunctionData( - functionFragment: "verifyMembership", - values: [Ics23ProofStruct, BytesLike, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "verifyNonMembership", - values: [Ics23ProofStruct, BytesLike] - ): string; - - decodeFunctionResult( - functionFragment: "addOpConsensusState", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "consensusStates", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "fraudProofEndtime", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "fraudProofWindowSeconds", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getFraudProofEndtime", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getInternalState", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getState", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "l1BlockProvider", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "verifier", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "verifyMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyNonMembership", - data: BytesLike - ): Result; -} - -export interface OptimisticLightClient extends BaseContract { - connect(runner?: ContractRunner | null): OptimisticLightClient; - waitForDeployment(): Promise; - - interface: OptimisticLightClientInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - addOpConsensusState: TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - height: BigNumberish, - appHash: BigNumberish - ], - [[bigint, boolean] & { fraudProofEndTime: bigint; ended: boolean }], - "nonpayable" - >; - - consensusStates: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">; - - fraudProofEndtime: TypedContractMethod< - [arg0: BigNumberish], - [bigint], - "view" - >; - - fraudProofWindowSeconds: TypedContractMethod<[], [bigint], "view">; - - getFraudProofEndtime: TypedContractMethod< - [height: BigNumberish], - [bigint], - "view" - >; - - getInternalState: TypedContractMethod< - [height: BigNumberish], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - - getState: TypedContractMethod< - [height: BigNumberish], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - - l1BlockProvider: TypedContractMethod<[], [string], "view">; - - verifier: TypedContractMethod<[], [string], "view">; - - verifyMembership: TypedContractMethod< - [proof: Ics23ProofStruct, key: BytesLike, expectedValue: BytesLike], - [void], - "view" - >; - - verifyNonMembership: TypedContractMethod< - [proof: Ics23ProofStruct, key: BytesLike], - [void], - "view" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "addOpConsensusState" - ): TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - height: BigNumberish, - appHash: BigNumberish - ], - [[bigint, boolean] & { fraudProofEndTime: bigint; ended: boolean }], - "nonpayable" - >; - getFunction( - nameOrSignature: "consensusStates" - ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">; - getFunction( - nameOrSignature: "fraudProofEndtime" - ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">; - getFunction( - nameOrSignature: "fraudProofWindowSeconds" - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "getFraudProofEndtime" - ): TypedContractMethod<[height: BigNumberish], [bigint], "view">; - getFunction( - nameOrSignature: "getInternalState" - ): TypedContractMethod< - [height: BigNumberish], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - getFunction( - nameOrSignature: "getState" - ): TypedContractMethod< - [height: BigNumberish], - [ - [bigint, bigint, boolean] & { - appHash: bigint; - fraudProofEndTime: bigint; - ended: boolean; - } - ], - "view" - >; - getFunction( - nameOrSignature: "l1BlockProvider" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "verifier" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "verifyMembership" - ): TypedContractMethod< - [proof: Ics23ProofStruct, key: BytesLike, expectedValue: BytesLike], - [void], - "view" - >; - getFunction( - nameOrSignature: "verifyNonMembership" - ): TypedContractMethod< - [proof: Ics23ProofStruct, key: BytesLike], - [void], - "view" - >; - - filters: {}; -} diff --git a/src/evm/contracts/OptimisticProofVerifier.ts b/src/evm/contracts/OptimisticProofVerifier.ts deleted file mode 100644 index db46db96..00000000 --- a/src/evm/contracts/OptimisticProofVerifier.ts +++ /dev/null @@ -1,255 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike }; - -export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & { - prefix: string; - suffix: string; -}; - -export type OpIcs23ProofStruct = { - path: OpIcs23ProofPathStruct[]; - key: BytesLike; - value: BytesLike; - prefix: BytesLike; -}; - -export type OpIcs23ProofStructOutput = [ - path: OpIcs23ProofPathStructOutput[], - key: string, - value: string, - prefix: string -] & { - path: OpIcs23ProofPathStructOutput[]; - key: string; - value: string; - prefix: string; -}; - -export type Ics23ProofStruct = { - proof: OpIcs23ProofStruct[]; - height: BigNumberish; -}; - -export type Ics23ProofStructOutput = [ - proof: OpIcs23ProofStructOutput[], - height: bigint -] & { proof: OpIcs23ProofStructOutput[]; height: bigint }; - -export type L1HeaderStruct = { - header: BytesLike[]; - stateRoot: BytesLike; - number: BigNumberish; -}; - -export type L1HeaderStructOutput = [ - header: string[], - stateRoot: string, - number: bigint -] & { header: string[]; stateRoot: string; number: bigint }; - -export type OpL2StateProofStruct = { - accountProof: BytesLike[]; - outputRootProof: BytesLike[]; - l2OutputProposalKey: BytesLike; - l2BlockHash: BytesLike; -}; - -export type OpL2StateProofStructOutput = [ - accountProof: string[], - outputRootProof: string[], - l2OutputProposalKey: string, - l2BlockHash: string -] & { - accountProof: string[]; - outputRootProof: string[]; - l2OutputProposalKey: string; - l2BlockHash: string; -}; - -export interface OptimisticProofVerifierInterface extends Interface { - getFunction( - nameOrSignature: - | "l2OutputOracleAddress" - | "verifyMembership" - | "verifyNonMembership" - | "verifyStateUpdate" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "l2OutputOracleAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "verifyMembership", - values: [BytesLike, BytesLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "verifyNonMembership", - values: [BytesLike, BytesLike, Ics23ProofStruct] - ): string; - encodeFunctionData( - functionFragment: "verifyStateUpdate", - values: [ - L1HeaderStruct, - OpL2StateProofStruct, - BytesLike, - BytesLike, - BigNumberish - ] - ): string; - - decodeFunctionResult( - functionFragment: "l2OutputOracleAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyNonMembership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "verifyStateUpdate", - data: BytesLike - ): Result; -} - -export interface OptimisticProofVerifier extends BaseContract { - connect(runner?: ContractRunner | null): OptimisticProofVerifier; - waitForDeployment(): Promise; - - interface: OptimisticProofVerifierInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - l2OutputOracleAddress: TypedContractMethod<[], [string], "view">; - - verifyMembership: TypedContractMethod< - [ - appHash: BytesLike, - key: BytesLike, - value: BytesLike, - proofs: Ics23ProofStruct - ], - [void], - "view" - >; - - verifyNonMembership: TypedContractMethod< - [arg0: BytesLike, arg1: BytesLike, arg2: Ics23ProofStruct], - [void], - "view" - >; - - verifyStateUpdate: TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - appHash: BytesLike, - trustedL1BlockHash: BytesLike, - trustedL1BlockNumber: BigNumberish - ], - [void], - "view" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "l2OutputOracleAddress" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "verifyMembership" - ): TypedContractMethod< - [ - appHash: BytesLike, - key: BytesLike, - value: BytesLike, - proofs: Ics23ProofStruct - ], - [void], - "view" - >; - getFunction( - nameOrSignature: "verifyNonMembership" - ): TypedContractMethod< - [arg0: BytesLike, arg1: BytesLike, arg2: Ics23ProofStruct], - [void], - "view" - >; - getFunction( - nameOrSignature: "verifyStateUpdate" - ): TypedContractMethod< - [ - l1header: L1HeaderStruct, - proof: OpL2StateProofStruct, - appHash: BytesLike, - trustedL1BlockHash: BytesLike, - trustedL1BlockNumber: BigNumberish - ], - [void], - "view" - >; - - filters: {}; -} diff --git a/src/evm/contracts/UniversalChannelHandler.ts b/src/evm/contracts/UniversalChannelHandler.ts deleted file mode 100644 index a5543e63..00000000 --- a/src/evm/contracts/UniversalChannelHandler.ts +++ /dev/null @@ -1,812 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "./common"; - -export type IbcEndpointStruct = { portId: string; channelId: BytesLike }; - -export type IbcEndpointStructOutput = [portId: string, channelId: string] & { - portId: string; - channelId: string; -}; - -export type HeightStruct = { - revision_number: BigNumberish; - revision_height: BigNumberish; -}; - -export type HeightStructOutput = [ - revision_number: bigint, - revision_height: bigint -] & { revision_number: bigint; revision_height: bigint }; - -export type IbcPacketStruct = { - src: IbcEndpointStruct; - dest: IbcEndpointStruct; - sequence: BigNumberish; - data: BytesLike; - timeoutHeight: HeightStruct; - timeoutTimestamp: BigNumberish; -}; - -export type IbcPacketStructOutput = [ - src: IbcEndpointStructOutput, - dest: IbcEndpointStructOutput, - sequence: bigint, - data: string, - timeoutHeight: HeightStructOutput, - timeoutTimestamp: bigint -] & { - src: IbcEndpointStructOutput; - dest: IbcEndpointStructOutput; - sequence: bigint; - data: string; - timeoutHeight: HeightStructOutput; - timeoutTimestamp: bigint; -}; - -export type AckPacketStruct = { success: boolean; data: BytesLike }; - -export type AckPacketStructOutput = [success: boolean, data: string] & { - success: boolean; - data: string; -}; - -export interface UniversalChannelHandlerInterface extends Interface { - getFunction( - nameOrSignature: - | "MW_ID" - | "VERSION" - | "closeChannel" - | "dispatcher" - | "initialize" - | "onAcknowledgementPacket" - | "onChanCloseConfirm" - | "onChanCloseInit" - | "onChanOpenAck" - | "onChanOpenConfirm" - | "onChanOpenInit" - | "onChanOpenTry" - | "onRecvPacket" - | "onTimeoutPacket" - | "openChannel" - | "owner" - | "proxiableUUID" - | "renounceOwnership" - | "sendUniversalPacket" - | "sendUniversalPacketWithFee" - | "setDispatcher" - | "transferOwnership" - | "upgradeTo" - | "upgradeToAndCall" - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "AdminChanged" - | "BeaconUpgraded" - | "Initialized" - | "OwnershipTransferred" - | "UCHPacketSent" - | "Upgraded" - ): EventFragment; - - encodeFunctionData(functionFragment: "MW_ID", values?: undefined): string; - encodeFunctionData(functionFragment: "VERSION", values?: undefined): string; - encodeFunctionData( - functionFragment: "closeChannel", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "dispatcher", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "initialize", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "onAcknowledgementPacket", - values: [IbcPacketStruct, AckPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseConfirm", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanCloseInit", - values: [BytesLike, string, BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenAck", - values: [BytesLike, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenConfirm", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenInit", - values: [BigNumberish, string[], string, string] - ): string; - encodeFunctionData( - functionFragment: "onChanOpenTry", - values: [BigNumberish, string[], BytesLike, string, BytesLike, string] - ): string; - encodeFunctionData( - functionFragment: "onRecvPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "onTimeoutPacket", - values: [IbcPacketStruct] - ): string; - encodeFunctionData( - functionFragment: "openChannel", - values: [string, BigNumberish, boolean, string[], string] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "proxiableUUID", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "sendUniversalPacket", - values: [BytesLike, BytesLike, BytesLike, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "sendUniversalPacketWithFee", - values: [ - BytesLike, - BytesLike, - BytesLike, - BigNumberish, - [BigNumberish, BigNumberish], - [BigNumberish, BigNumberish] - ] - ): string; - encodeFunctionData( - functionFragment: "setDispatcher", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "upgradeTo", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "upgradeToAndCall", - values: [AddressLike, BytesLike] - ): string; - - decodeFunctionResult(functionFragment: "MW_ID", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "VERSION", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "closeChannel", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "dispatcher", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "onAcknowledgementPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanCloseInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenAck", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenConfirm", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenInit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onChanOpenTry", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onRecvPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onTimeoutPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "openChannel", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "proxiableUUID", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "sendUniversalPacket", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "sendUniversalPacketWithFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setDispatcher", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "upgradeToAndCall", - data: BytesLike - ): Result; -} - -export namespace AdminChangedEvent { - export type InputTuple = [previousAdmin: AddressLike, newAdmin: AddressLike]; - export type OutputTuple = [previousAdmin: string, newAdmin: string]; - export interface OutputObject { - previousAdmin: string; - newAdmin: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace BeaconUpgradedEvent { - export type InputTuple = [beacon: AddressLike]; - export type OutputTuple = [beacon: string]; - export interface OutputObject { - beacon: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace InitializedEvent { - export type InputTuple = [version: BigNumberish]; - export type OutputTuple = [version: bigint]; - export interface OutputObject { - version: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace OwnershipTransferredEvent { - export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; - export type OutputTuple = [previousOwner: string, newOwner: string]; - export interface OutputObject { - previousOwner: string; - newOwner: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace UCHPacketSentEvent { - export type InputTuple = [source: AddressLike, destination: BytesLike]; - export type OutputTuple = [source: string, destination: string]; - export interface OutputObject { - source: string; - destination: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace UpgradedEvent { - export type InputTuple = [implementation: AddressLike]; - export type OutputTuple = [implementation: string]; - export interface OutputObject { - implementation: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface UniversalChannelHandler extends BaseContract { - connect(runner?: ContractRunner | null): UniversalChannelHandler; - waitForDeployment(): Promise; - - interface: UniversalChannelHandlerInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - MW_ID: TypedContractMethod<[], [bigint], "view">; - - VERSION: TypedContractMethod<[], [string], "view">; - - closeChannel: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - dispatcher: TypedContractMethod<[], [string], "view">; - - initialize: TypedContractMethod< - [_dispatcher: AddressLike], - [void], - "nonpayable" - >; - - onAcknowledgementPacket: TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - - onChanCloseConfirm: TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - - onChanCloseInit: TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenAck: TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "view" - >; - - onChanOpenConfirm: TypedContractMethod< - [channelId: BytesLike], - [void], - "nonpayable" - >; - - onChanOpenInit: TypedContractMethod< - [arg0: BigNumberish, arg1: string[], arg2: string, version: string], - [string], - "view" - >; - - onChanOpenTry: TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "view" - >; - - onRecvPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - - onTimeoutPacket: TypedContractMethod< - [packet: IbcPacketStruct], - [void], - "nonpayable" - >; - - openChannel: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortIdentifier: string - ], - [void], - "nonpayable" - >; - - owner: TypedContractMethod<[], [string], "view">; - - proxiableUUID: TypedContractMethod<[], [string], "view">; - - renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; - - sendUniversalPacket: TypedContractMethod< - [ - channelId: BytesLike, - destPortAddr: BytesLike, - appData: BytesLike, - timeoutTimestamp: BigNumberish - ], - [bigint], - "nonpayable" - >; - - sendUniversalPacketWithFee: TypedContractMethod< - [ - channelId: BytesLike, - destPortAddr: BytesLike, - appData: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - - setDispatcher: TypedContractMethod< - [_dispatcher: AddressLike], - [void], - "nonpayable" - >; - - transferOwnership: TypedContractMethod< - [newOwner: AddressLike], - [void], - "nonpayable" - >; - - upgradeTo: TypedContractMethod< - [newImplementation: AddressLike], - [void], - "nonpayable" - >; - - upgradeToAndCall: TypedContractMethod< - [newImplementation: AddressLike, data: BytesLike], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "MW_ID" - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "VERSION" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "closeChannel" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "dispatcher" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "initialize" - ): TypedContractMethod<[_dispatcher: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onAcknowledgementPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct, ack: AckPacketStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseConfirm" - ): TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanCloseInit" - ): TypedContractMethod< - [channelId: BytesLike, arg1: string, arg2: BytesLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "onChanOpenAck" - ): TypedContractMethod< - [channelId: BytesLike, arg1: BytesLike, counterpartyVersion: string], - [void], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenConfirm" - ): TypedContractMethod<[channelId: BytesLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "onChanOpenInit" - ): TypedContractMethod< - [arg0: BigNumberish, arg1: string[], arg2: string, version: string], - [string], - "view" - >; - getFunction( - nameOrSignature: "onChanOpenTry" - ): TypedContractMethod< - [ - arg0: BigNumberish, - arg1: string[], - channelId: BytesLike, - arg3: string, - arg4: BytesLike, - counterpartyVersion: string - ], - [string], - "view" - >; - getFunction( - nameOrSignature: "onRecvPacket" - ): TypedContractMethod< - [packet: IbcPacketStruct], - [AckPacketStructOutput], - "nonpayable" - >; - getFunction( - nameOrSignature: "onTimeoutPacket" - ): TypedContractMethod<[packet: IbcPacketStruct], [void], "nonpayable">; - getFunction( - nameOrSignature: "openChannel" - ): TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortIdentifier: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "owner" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "proxiableUUID" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "renounceOwnership" - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "sendUniversalPacket" - ): TypedContractMethod< - [ - channelId: BytesLike, - destPortAddr: BytesLike, - appData: BytesLike, - timeoutTimestamp: BigNumberish - ], - [bigint], - "nonpayable" - >; - getFunction( - nameOrSignature: "sendUniversalPacketWithFee" - ): TypedContractMethod< - [ - channelId: BytesLike, - destPortAddr: BytesLike, - appData: BytesLike, - timeoutTimestamp: BigNumberish, - gasLimits: [BigNumberish, BigNumberish], - gasPrices: [BigNumberish, BigNumberish] - ], - [bigint], - "payable" - >; - getFunction( - nameOrSignature: "setDispatcher" - ): TypedContractMethod<[_dispatcher: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "transferOwnership" - ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "upgradeTo" - ): TypedContractMethod< - [newImplementation: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "upgradeToAndCall" - ): TypedContractMethod< - [newImplementation: AddressLike, data: BytesLike], - [void], - "payable" - >; - - getEvent( - key: "AdminChanged" - ): TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - getEvent( - key: "BeaconUpgraded" - ): TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - getEvent( - key: "Initialized" - ): TypedContractEvent< - InitializedEvent.InputTuple, - InitializedEvent.OutputTuple, - InitializedEvent.OutputObject - >; - getEvent( - key: "OwnershipTransferred" - ): TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - getEvent( - key: "UCHPacketSent" - ): TypedContractEvent< - UCHPacketSentEvent.InputTuple, - UCHPacketSentEvent.OutputTuple, - UCHPacketSentEvent.OutputObject - >; - getEvent( - key: "Upgraded" - ): TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - - filters: { - "AdminChanged(address,address)": TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - AdminChanged: TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - - "BeaconUpgraded(address)": TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - BeaconUpgraded: TypedContractEvent< - BeaconUpgradedEvent.InputTuple, - BeaconUpgradedEvent.OutputTuple, - BeaconUpgradedEvent.OutputObject - >; - - "Initialized(uint8)": TypedContractEvent< - InitializedEvent.InputTuple, - InitializedEvent.OutputTuple, - InitializedEvent.OutputObject - >; - Initialized: TypedContractEvent< - InitializedEvent.InputTuple, - InitializedEvent.OutputTuple, - InitializedEvent.OutputObject - >; - - "OwnershipTransferred(address,address)": TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - OwnershipTransferred: TypedContractEvent< - OwnershipTransferredEvent.InputTuple, - OwnershipTransferredEvent.OutputTuple, - OwnershipTransferredEvent.OutputObject - >; - - "UCHPacketSent(address,bytes32)": TypedContractEvent< - UCHPacketSentEvent.InputTuple, - UCHPacketSentEvent.OutputTuple, - UCHPacketSentEvent.OutputObject - >; - UCHPacketSent: TypedContractEvent< - UCHPacketSentEvent.InputTuple, - UCHPacketSentEvent.OutputTuple, - UCHPacketSentEvent.OutputObject - >; - - "Upgraded(address)": TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - Upgraded: TypedContractEvent< - UpgradedEvent.InputTuple, - UpgradedEvent.OutputTuple, - UpgradedEvent.OutputObject - >; - }; -} diff --git a/src/evm/contracts/common.ts b/src/evm/contracts/common.ts deleted file mode 100644 index 56b5f21e..00000000 --- a/src/evm/contracts/common.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - FunctionFragment, - Typed, - EventFragment, - ContractTransaction, - ContractTransactionResponse, - DeferredTopicFilter, - EventLog, - TransactionRequest, - LogDescription, -} from "ethers"; - -export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> - extends DeferredTopicFilter {} - -export interface TypedContractEvent< - InputTuple extends Array = any, - OutputTuple extends Array = any, - OutputObject = any -> { - (...args: Partial): TypedDeferredTopicFilter< - TypedContractEvent - >; - name: string; - fragment: EventFragment; - getFragment(...args: Partial): EventFragment; -} - -type __TypechainAOutputTuple = T extends TypedContractEvent< - infer _U, - infer W -> - ? W - : never; -type __TypechainOutputObject = T extends TypedContractEvent< - infer _U, - infer _W, - infer V -> - ? V - : never; - -export interface TypedEventLog - extends Omit { - args: __TypechainAOutputTuple & __TypechainOutputObject; -} - -export interface TypedLogDescription - extends Omit { - args: __TypechainAOutputTuple & __TypechainOutputObject; -} - -export type TypedListener = ( - ...listenerArg: [ - ...__TypechainAOutputTuple, - TypedEventLog, - ...undefined[] - ] -) => void; - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory< - infer C, - any -> - ? C - : never; -export type GetARGsTypeFromFactory = F extends MinEthersFactory - ? Parameters - : never; - -export type StateMutability = "nonpayable" | "payable" | "view"; - -export type BaseOverrides = Omit; -export type NonPayableOverrides = Omit< - BaseOverrides, - "value" | "blockTag" | "enableCcipRead" ->; -export type PayableOverrides = Omit< - BaseOverrides, - "blockTag" | "enableCcipRead" ->; -export type ViewOverrides = Omit; -export type Overrides = S extends "nonpayable" - ? NonPayableOverrides - : S extends "payable" - ? PayableOverrides - : ViewOverrides; - -export type PostfixOverrides, S extends StateMutability> = - | A - | [...A, Overrides]; -export type ContractMethodArgs< - A extends Array, - S extends StateMutability -> = PostfixOverrides<{ [I in keyof A]-?: A[I] | Typed }, S>; - -export type DefaultReturnType = R extends Array ? R[0] : R; - -// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { -export interface TypedContractMethod< - A extends Array = Array, - R = any, - S extends StateMutability = "payable" -> { - (...args: ContractMethodArgs): S extends "view" - ? Promise> - : Promise; - - name: string; - - fragment: FunctionFragment; - - getFragment(...args: ContractMethodArgs): FunctionFragment; - - populateTransaction( - ...args: ContractMethodArgs - ): Promise; - staticCall( - ...args: ContractMethodArgs - ): Promise>; - send(...args: ContractMethodArgs): Promise; - estimateGas(...args: ContractMethodArgs): Promise; - staticCallResult(...args: ContractMethodArgs): Promise; -} diff --git a/src/evm/contracts/factories/Dispatcher__factory.ts b/src/evm/contracts/factories/Dispatcher__factory.ts deleted file mode 100644 index 9b65ff6a..00000000 --- a/src/evm/contracts/factories/Dispatcher__factory.ts +++ /dev/null @@ -1,2195 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { Dispatcher, DispatcherInterface } from "../Dispatcher"; - -const _abi = [ - { - type: "constructor", - inputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "acknowledgement", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "bytes", - internalType: "bytes", - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelCloseConfirm", - inputs: [ - { - name: "portAddress", - type: "address", - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenAck", - inputs: [ - { - name: "local", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "counterparty", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenConfirm", - inputs: [ - { - name: "local", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "counterparty", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenTry", - inputs: [ - { - name: "local", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterparty", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "feeVault", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IFeeVault", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "getChannel", - inputs: [ - { - name: "portAddress", - type: "address", - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [ - { - name: "channel", - type: "tuple", - internalType: "struct Channel", - components: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "portId", - type: "string", - internalType: "string", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "getOptimisticConsensusState", - inputs: [ - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - { - name: "connection", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "initialize", - inputs: [ - { - name: "initPortPrefix", - type: "string", - internalType: "string", - }, - { - name: "_feeVault", - type: "address", - internalType: "contract IFeeVault", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "portPrefix", - inputs: [], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "portPrefixLen", - inputs: [], - outputs: [ - { - name: "", - type: "uint32", - internalType: "uint32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "proxiableUUID", - inputs: [], - outputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "removeConnection", - inputs: [ - { - name: "connection", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "sendPacket", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "packet", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "setClientForConnection", - inputs: [ - { - name: "connection", - type: "string", - internalType: "string", - }, - { - name: "lightClient", - type: "address", - internalType: "contract ILightClient", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "setPortPrefix", - inputs: [ - { - name: "_portPrefix", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "timeout", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "updateClientWithOptimisticConsensusState", - inputs: [ - { - name: "l1header", - type: "tuple", - internalType: "struct L1Header", - components: [ - { - name: "header", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "stateRoot", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "number", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct OpL2StateProof", - components: [ - { - name: "accountProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "outputRootProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "l2OutputProposalKey", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "l2BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "connection", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - 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: "writeTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "event", - name: "Acknowledgement", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "AcknowledgementError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - 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: "ChannelCloseConfirm", - inputs: [ - { - name: "portAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseConfirmError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseInit", - inputs: [ - { - name: "portAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseInitError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenAck", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenAckError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenConfirm", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenConfirmError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenInit", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "version", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - indexed: false, - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - indexed: false, - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - indexed: false, - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - indexed: false, - internalType: "string", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenInitError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenTry", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "version", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - indexed: false, - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - indexed: false, - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - indexed: false, - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenTryError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - 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: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "RecvPacket", - inputs: [ - { - name: "destPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "destChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "SendPacket", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "packet", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "timeoutTimestamp", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "Timeout", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: true, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "TimeoutError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "Upgraded", - inputs: [ - { - name: "implementation", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "WriteAckPacket", - inputs: [ - { - name: "writerPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "writerChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "ackPacket", - type: "tuple", - indexed: false, - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - anonymous: false, - }, - { - type: "event", - name: "WriteTimeoutPacket", - inputs: [ - { - name: "writerPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "writerChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "timeoutHeight", - type: "tuple", - indexed: false, - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ackPacketCommitmentAlreadyExists", - inputs: [], - }, - { - type: "error", - name: "channelIdNotFound", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - type: "error", - name: "channelNotOwnedByPortAddress", - inputs: [], - }, - { - type: "error", - name: "channelNotOwnedBySender", - inputs: [], - }, - { - type: "error", - name: "invalidAddress", - inputs: [], - }, - { - type: "error", - name: "invalidConnection", - inputs: [ - { - name: "connection", - type: "string", - internalType: "string", - }, - ], - }, - { - type: "error", - name: "invalidConnectionHops", - inputs: [], - }, - { - type: "error", - name: "invalidCounterParty", - inputs: [], - }, - { - type: "error", - name: "invalidPacket", - inputs: [], - }, - { - type: "error", - name: "invalidPacketSequence", - inputs: [], - }, - { - type: "error", - name: "invalidPortPrefix", - inputs: [], - }, - { - type: "error", - name: "lightClientNotFound", - inputs: [ - { - name: "connection", - type: "string", - internalType: "string", - }, - ], - }, - { - type: "error", - name: "notEnoughGas", - inputs: [], - }, - { - type: "error", - name: "packetCommitmentNotFound", - inputs: [], - }, - { - type: "error", - name: "packetNotTimedOut", - inputs: [], - }, - { - type: "error", - name: "packetReceiptAlreadyExists", - inputs: [], - }, - { - type: "error", - name: "unexpectedPacketSequence", - inputs: [], - }, -] as const; - -const _bytecode = - "0x60a0604052306080523480156200001557600080fd5b506001606555620000256200002b565b620000ec565b600054610100900460ff1615620000985760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000ea576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051615d6f6200012460003960008181610bf801528181610c41015281816114420152818161148201526115150152615d6f6000f3fe60806040526004361061019c5760003560e01c80636b67055e116100ec578063940265cb1161008a578063c00fa7c011610064578063c00fa7c0146104dc578063c3e1155c146104fc578063f2fde38b14610534578063f90b8e961461055457600080fd5b8063940265cb146104675780639f59ae711461049c578063ba5a4d25146104bc57600080fd5b80637ab4339d116100c65780637ab4339d146103cc57806381bc079b146103ec5780638da5cb5b1461040c5780638dd34bb41461042a57600080fd5b80636b67055e14610375578063715018a6146103955780637774a6d3146103aa57600080fd5b8063429446b61161015957806352d1902d1161013357806352d1902d146102f2578063556d5178146103155780635d7adf96146103355780636050b5f31461035557600080fd5b8063429446b614610287578063478222c2146102a75780634f1ef286146102df57600080fd5b80631eb9fc86146101a15780632494546b146101c35780632bf5d19d146101fa5780633659cfe61461021a578063418925b71461023a57806342852d241461025a575b600080fd5b3480156101ad57600080fd5b506101c16101bc3660046142c9565b610574565b005b3480156101cf57600080fd5b506097546101e09063ffffffff1681565b60405163ffffffff90911681526020015b60405180910390f35b34801561020657600080fd5b506101c161021536600461439f565b6108fe565b34801561022657600080fd5b506101c1610235366004614449565b610bee565b34801561024657600080fd5b506101c16102553660046144a7565b610cd6565b34801561026657600080fd5b5061027a610275366004614568565b610e36565b6040516101f1919061466b565b34801561029357600080fd5b506101c16102a23660046142c9565b61118e565b3480156102b357600080fd5b5060a2546102c7906001600160a01b031681565b6040516001600160a01b0390911681526020016101f1565b6101c16102ed3660046147be565b611438565b3480156102fe57600080fd5b50610307611508565b6040519081526020016101f1565b34801561032157600080fd5b506101c1610330366004614821565b6115bb565b34801561034157600080fd5b506101c1610350366004614889565b6115d3565b34801561036157600080fd5b506101c1610370366004614889565b6118e2565b34801561038157600080fd5b506101c1610390366004614889565b6118f4565b3480156103a157600080fd5b506101c1611fe2565b3480156103b657600080fd5b506103bf611ff6565b6040516101f191906148e2565b3480156103d857600080fd5b506101c16103e7366004614915565b612084565b3480156103f857600080fd5b506101c1610407366004614966565b612204565b34801561041857600080fd5b506033546001600160a01b03166102c7565b34801561043657600080fd5b5061044a61044536600461497f565b612652565b6040805193845260208401929092521515908201526060016101f1565b34801561047357600080fd5b506104876104823660046149ca565b612713565b604080519283529015156020830152016101f1565b3480156104a857600080fd5b506101c16104b7366004614a73565b6127d7565b3480156104c857600080fd5b506101c16104d7366004614ab4565b61282c565b3480156104e857600080fd5b506101c16104f7366004614a73565b612d68565b34801561050857600080fd5b5061051c610517366004614b58565b612da3565b6040516001600160401b0390911681526020016101f1565b34801561054057600080fd5b506101c161054f366004614449565b612f29565b34801561056057600080fd5b506101c161056f366004614bb5565b612f9f565b61057c6135b4565b600285101561059e5760405163af0ba14d60e01b815260040160405180910390fd5b6105c46105ab8880614c0d565b60208a01356105ba8680614c0d565b876020013561360d565b610626868660008181106105da576105da614c53565b90506020028101906105ec9190614c0d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061365092505050565b6001600160a01b031663cb535ab58273__$d825222459c46c14afb2efe0967c30e98d$__634f9b0fb36106598c80614c0d565b8d602001356040518463ffffffff1660e01b815260040161067c93929190614c92565b600060405180830381865af4158015610699573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106c19190810190614d06565b73__$d825222459c46c14afb2efe0967c30e98d$__6325e0dd0e60078a8e80604001906106ee9190614c0d565b8f8f6106fa8e80614c0d565b8f602001356040518a63ffffffff1660e01b815260040161072399989796959493929190614d8f565b600060405180830381865af4158015610740573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107689190810190614d06565b6040518463ffffffff1660e01b815260040161078693929190614ea9565b600060405180830381600087803b1580156107a057600080fd5b505af11580156107b4573d6000803e3d6000fd5b50600092506107cf91506107ca90508980614c0d565b6136ce565b9050600080610841836301d08fc560e71b6020808e0135908901356107f760408b018b614c0d565b60405160240161080a9493929190615057565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613768565b9150915081156108a65761085a838b8b8b8b8b8b613854565b826001600160a01b03167fcf8be9ab2b5edf8beb2c45abe8e0cc7646318ac19f6c3164ba2e19e93a8a32af8b6020013560405161089991815260200190565b60405180910390a26108e8565b826001600160a01b03167f971a4433f5bff5f011728a4123aeeca4b5275ac20b013cf276e65510491ac26f826040516108df91906148e2565b60405180910390a25b5050506108f56001606555565b50505050505050565b6109066135b4565b60028310156109285760405163af0ba14d60e01b815260040160405180910390fd5b6109356105ab8880614c0d565b61094b848460008181106105da576105da614c53565b6001600160a01b031663cb535ab58273__$d825222459c46c14afb2efe0967c30e98d$__634f9b0fb361097e8c80614c0d565b8d602001356040518463ffffffff1660e01b81526004016109a193929190614c92565b600060405180830381865af41580156109be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109e69190810190614d06565b73__$d825222459c46c14afb2efe0967c30e98d$__6325e0dd0e60068c8e8060400190610a139190614c0d565b8d8d610a1f8e80614c0d565b8f602001356040518a63ffffffff1660e01b8152600401610a4899989796959493929190614d8f565b600060405180830381865af4158015610a65573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a8d9190810190614d06565b6040518463ffffffff1660e01b8152600401610aab93929190614ea9565b600060405180830381600087803b158015610ac557600080fd5b505af1158015610ad9573d6000803e3d6000fd5b5060009250610aef91506107ca90508980614c0d565b9050600080610b4583634bdb559760e01b8b8a8a8f602001358b8060000190610b189190614c0d565b8d602001358e8060400190610b2d9190614c0d565b60405160240161080a999897969594939291906150c7565b915091508115610bb557826001600160a01b03167ff910705a7a768eb5958f281a5f84cae8bffc5dd811ca5cd303dda140a423698c82806020019051810190610b8e919061512c565b8b8b8b8b610b9c8c80614c0d565b8d60200135604051610899989796959493929190615174565b826001600160a01b03167f9e2fe55a3b54b57f82334c273f8d048cd7f05ad19c16cf334276a8c1fec4b6fd826040516108df91906148e2565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610c3f5760405162461bcd60e51b8152600401610c36906151da565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c88600080516020615cf3833981519152546001600160a01b031690565b6001600160a01b031614610cae5760405162461bcd60e51b8152600401610c3690615226565b610cb781613aec565b60408051600080825260208201909252610cd391839190613af4565b50565b610cde6135b4565b6002831080610ceb575080155b15610d0957604051637d6ba8a560e01b815260040160405180910390fd5b600086858585858d8d604051602001610d289796959493929190615272565b6040516020818303038152906040529050600080610d6e33637a9ccc4b60e01b85604051602001610d5a9291906152c9565b604051602081830303815290604052613768565b915091508115610ddd57336001600160a01b03167f20fd8a5856711b18d00def4aa6abafbe00ce6d60795e015cc1cad35eb9b4635982806020019051810190610db7919061512c565b8b8b8b8b8b8b604051610dd097969594939291906152fa565b60405180910390a2610e1f565b336001600160a01b03167f69c1283cce89382f0f9ddf19b7c4f05b4d9b3c30c84fc148b1ec800284be58d582604051610e1691906148e2565b60405180910390a25b505050610e2c6001606555565b5050505050505050565b610e7c6040805160e08101909152606081526020810160008152602001600015158152602001606081526020016060815260200160008019168152602001606081525090565b6001600160a01b038316600090815260986020908152604080832085845290915290819020815160e08101909252805482908290610eb99061534a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee59061534a565b8015610f325780601f10610f0757610100808354040283529160200191610f32565b820191906000526020600020905b815481529060010190602001808311610f1557829003601f168201915b5050509183525050600182015460209091019060ff166002811115610f5957610f596145ec565b6002811115610f6a57610f6a6145ec565b81526001820154610100900460ff161515602080830191909152600283018054604080518285028101850182528281529401939260009084015b82821015611050578382906000526020600020018054610fc39061534a565b80601f0160208091040260200160405190810160405280929190818152602001828054610fef9061534a565b801561103c5780601f106110115761010080835404028352916020019161103c565b820191906000526020600020905b81548152906001019060200180831161101f57829003601f168201915b505050505081526020019060010190610fa4565b5050505081526020016003820180546110689061534a565b80601f01602080910402602001604051908101604052809291908181526020018280546110949061534a565b80156110e15780601f106110b6576101008083540402835291602001916110e1565b820191906000526020600020905b8154815290600101906020018083116110c457829003601f168201915b50505050508152602001600482015481526020016005820180546111049061534a565b80601f01602080910402602001604051908101604052809291908181526020018280546111309061534a565b801561117d5780601f106111525761010080835404028352916020019161117d565b820191906000526020600020905b81548152906001019060200180831161116057829003601f168201915b505050505081525050905092915050565b6111966135b4565b60028510156111b85760405163af0ba14d60e01b815260040160405180910390fd5b6111c56105ab8880614c0d565b6111db868660008181106105da576105da614c53565b6001600160a01b031663cb535ab58273__$d825222459c46c14afb2efe0967c30e98d$__634f9b0fb361120e8c80614c0d565b8d602001356040518463ffffffff1660e01b815260040161123193929190614c92565b600060405180830381865af415801561124e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112769190810190614d06565b73__$d825222459c46c14afb2efe0967c30e98d$__6325e0dd0e60088a8e80604001906112a39190614c0d565b8f8f6112af8e80614c0d565b8f602001356040518a63ffffffff1660e01b81526004016112d899989796959493929190614d8f565b600060405180830381865af41580156112f5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261131d9190810190614d06565b6040518463ffffffff1660e01b815260040161133b93929190614ea9565b600060405180830381600087803b15801561135557600080fd5b505af1158015611369573d6000803e3d6000fd5b506000925061137f91506107ca90508980614c0d565b90506000806113a78363fad28a2460e01b8c6020013560405160240161080a91815260200190565b9150915081156113ff576113c0838b8b8b8b8b8b613854565b826001600160a01b03167fe80f571f70f7cabf9d7ac60ece08421be374117776c311c327a083ca398f802f8b6020013560405161089991815260200190565b826001600160a01b03167ff6a58ef30f66943749e8c29c661c84da143a1c8ed017f5faa92b509e0000875a826040516108df91906148e2565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114805760405162461bcd60e51b8152600401610c36906151da565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166114c9600080516020615cf3833981519152546001600160a01b031690565b6001600160a01b0316146114ef5760405162461bcd60e51b8152600401610c3690615226565b6114f882613aec565b61150482826001613af4565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146115a85760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610c36565b50600080516020615cf383398151915290565b6115c3613c5f565b6115ce838383613cb9565b505050565b6115db6135b4565b6115f46115eb602084018461537e565b60200135613d53565b6001600160a01b031663cb535ab58273__$d825222459c46c14afb2efe0967c30e98d$__634b5728d1866040518263ffffffff1660e01b815260040161163a9190615400565b600060405180830381865af4158015611657573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261167f9190810190614d06565b604051637e4794ed60e11b815273__$d825222459c46c14afb2efe0967c30e98d$__9063fc8f29da906116b6908990600401615400565b602060405180830381865af41580156116d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f791906154c2565b60405160200161170991815260200190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161173693929190614ea9565b600060405180830381600087803b15801561175057600080fd5b505af1158015611764573d6000803e3d6000fd5b50505050600061178783806020019061177d919061537e565b6107ca9080614c0d565b6001600160a01b0381166000908152609d60209081526040822092935090919082906117b59087018761537e565b60200135815260200190815260200160002060008560400160208101906117dc91906154db565b6001600160401b0316815260208101919091526040016000205460ff169050801561181a5760405163066c745760e01b815260040160405180910390fd5b61184261182d60e0860160c087016154db565b61183d60c0870160a088016154db565b613e1d565b61185f576040516312c9cc9f60e01b815260040160405180910390fd5b61186c602085018561537e565b602001356001600160a01b0383167fedbcd9eeb09d85c3ea1b5bf002c04478059cb261cab82c903885cefccae374bc6118ab60608801604089016154db565b608088016118bf60e08a0160c08b016154db565b6040516118ce939291906154f6565b60405180910390a350506115046001606555565b6118ea6135b4565b6115046001606555565b6118fc6135b4565b61190c6115eb602084018461537e565b6001600160a01b031663cb535ab58273__$d825222459c46c14afb2efe0967c30e98d$__634b5728d1866040518263ffffffff1660e01b81526004016119529190615400565b600060405180830381865af415801561196f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119979190810190614d06565b604051637e4794ed60e11b815273__$d825222459c46c14afb2efe0967c30e98d$__9063fc8f29da906119ce908990600401615400565b602060405180830381865af41580156119eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0f91906154c2565b604051602001611a2191815260200190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611a4e93929190614ea9565b600060405180830381600087803b158015611a6857600080fd5b505af1158015611a7c573d6000803e3d6000fd5b505050506000611a9583806020019061177d919061537e565b6001600160a01b0381166000908152609d6020908152604082209293509091908290611ac39087018761537e565b6020013581526020019081526020016000206000856040016020810190611aea91906154db565b6001600160401b0316815260208101919091526040016000205460ff1690508015611b285760405163066c745760e01b815260040160405180910390fd5b6001600160a01b0382166000908152609d6020908152604082206001929091611b539088018861537e565b6020013581526020019081526020016000206000866040016020810190611b7a91906154db565b6001600160401b031681526020810191909152604001600020805460ff191691151591909117905560026001600160a01b038316600090815260986020908152604082209190611bcc9088018861537e565b60209081013582528101919091526040016000206001015460ff166002811115611bf857611bf86145ec565b03611cf7576001600160a01b0382166000908152609a6020908152604082209190611c259087018761537e565b60209081013582528101919091526040908101600020546001600160401b031690611c5690606087019087016154db565b6001600160401b031614611c7d5760405163362a414d60e01b815260040160405180910390fd5b611c8d60608501604086016154db565b611c98906001615526565b6001600160a01b0383166000908152609a6020908152604082209190611cc09088018861537e565b60200135815260200190815260200160002060006101000a8154816001600160401b0302191690836001600160401b031602179055505b611d04602085018561537e565b602001356001600160a01b0383167fde5b57e6566d68a30b0979431df3d5df6db3b9aa89f8820f595b9315bf86d067611d4360608801604089016154db565b6040516001600160401b03909116815260200160405180910390a3611d7161182d60e0860160c087016154db565b15611df457611d83602085018561537e565b602001356001600160a01b0383167fedbcd9eeb09d85c3ea1b5bf002c04478059cb261cab82c903885cefccae374bc611dc260608801604089016154db565b60808801611dd660e08a0160c08b016154db565b604051611de5939291906154f6565b60405180910390a350506118ea565b604080518082019091526000815260606020820152600080611e2985634dcc0aa660e01b8960405160240161080a9190615610565b915091508115611e4e5780806020019051810190611e479190615623565b9250611e66565b60408051808201909152600081526020810182905292505b6001600160a01b0385166000908152609e602090815260408220908290611e8f908b018b61537e565b6020013581526020019081526020016000206000896040016020810190611eb691906154db565b6001600160401b0316815260208101919091526040016000205460ff1690508015611ef457604051637aa549d360e01b815260040160405180910390fd5b6001600160a01b0386166000908152609e6020908152604082206001929091611f1f908c018c61537e565b60200135815260200190815260200160002060008a6040016020810190611f4691906154db565b6001600160401b03168152602080820192909252604001600020805460ff191692151592909217909155611f7c9089018961537e565b602001356001600160a01b0387167fa32e6f42b1d63fb83ad73b009a6dbb9413d1da02e95b1bb08f081815eea8db20611fbb60608c0160408d016154db565b87604051611fca9291906156d9565b60405180910390a35050505050506115046001606555565b611fea613c5f565b611ff46000613e6b565b565b609680546120039061534a565b80601f016020809104026020016040519081016040528092919081815260200182805461202f9061534a565b801561207c5780601f106120515761010080835404028352916020019161207c565b820191906000526020600020905b81548152906001019060200180831161205f57829003601f168201915b505050505081565b600054600290610100900460ff161580156120a6575060005460ff8083169116105b6121095760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610c36565b6000805461ffff191660ff8316176101001790556121256135b4565b82516000036121475760405163e8cf362360e01b815260040160405180910390fd5b6001600160a01b03821661216e5760405163cbdd34cf60e01b815260040160405180910390fd5b612176613ebd565b60966121828482615741565b5082516097805463ffffffff191663ffffffff90921691909117905560a280546001600160a01b0319166001600160a01b03841617905560016065556000805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b61220c6135b4565b336000908152609860209081526040808320848452909152808220815160e0810190925280548290829061223f9061534a565b80601f016020809104026020016040519081016040528092919081815260200182805461226b9061534a565b80156122b85780601f1061228d576101008083540402835291602001916122b8565b820191906000526020600020905b81548152906001019060200180831161229b57829003601f168201915b5050509183525050600182015460209091019060ff1660028111156122df576122df6145ec565b60028111156122f0576122f06145ec565b81526001820154610100900460ff161515602080830191909152600283018054604080518285028101850182528281529401939260009084015b828210156123d65783829060005260206000200180546123499061534a565b80601f01602080910402602001604051908101604052809291908181526020018280546123759061534a565b80156123c25780601f10612397576101008083540402835291602001916123c2565b820191906000526020600020905b8154815290600101906020018083116123a557829003601f168201915b50505050508152602001906001019061232a565b5050505081526020016003820180546123ee9061534a565b80601f016020809104026020016040519081016040528092919081815260200182805461241a9061534a565b80156124675780601f1061243c57610100808354040283529160200191612467565b820191906000526020600020905b81548152906001019060200180831161244a57829003601f168201915b505050505081526020016004820154815260200160058201805461248a9061534a565b80601f01602080910402602001604051908101604052809291908181526020018280546124b69061534a565b80156125035780601f106124d857610100808354040283529160200191612503565b820191906000526020600020905b8154815290600101906020018083116124e657829003601f168201915b5050509190925250505060a081015190915061253257604051631109bfb360e31b815260040160405180910390fd5b60008061255e33631eb7dd5e60e01b8686608001518760a0015160405160240161080a93929190615800565b33600090815260986020908152604080832089845290915281209294509092506125888282614153565b60018201805461ffff191690556125a360028301600061418d565b6125b1600383016000614153565b60048201600090556005820160006125c99190614153565b5050811561260357604051849033907f21372e37743553ba8e5f61239803174a827c7732d53ec8adcb76c6b3bb2c13f190600090a3612645565b336001600160a01b03167fb1be59c1bcd39c54c7132a8e0d321af5db427575ddb3265560d8862804f4381b8260405161263c91906148e2565b60405180910390a25b505050610cd36001606555565b600080600061269685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061365092505050565b6001600160a01b03166344c9af28876040518263ffffffff1660e01b81526004016126c391815260200190565b606060405180830381865afa1580156126e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127049190615829565b92509250925093509350939050565b60008061275584848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061365092505050565b6001600160a01b0316635922f420898989896040518563ffffffff1660e01b815260040161278694939291906158b7565b60408051808303816000875af11580156127a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c8919061597c565b91509150965096945050505050565b6127df613c5f565b60008190036128015760405163e8cf362360e01b815260040160405180910390fd5b609661280e8284836159a1565b506097805463ffffffff191663ffffffff9290921691909117905550565b6128346135b4565b600061284361177d868061537e565b90506128526115eb868061537e565b6001600160a01b031663cb535ab58373__$d825222459c46c14afb2efe0967c30e98d$__6311a7a373896040518263ffffffff1660e01b81526004016128989190615400565b600060405180830381865af41580156128b5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128dd9190810190614d06565b6040516374e9704560e01b815273__$d825222459c46c14afb2efe0967c30e98d$__906374e9704590612916908b908b90600401615a61565b602060405180830381865af4158015612933573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295791906154c2565b60405160200161296991815260200190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161299693929190614ea9565b600060405180830381600087803b1580156129b057600080fd5b505af11580156129c4573d6000803e3d6000fd5b505050506001600160a01b0381166000908152609c60205260408120816129eb888061537e565b6020013581526020019081526020016000206000876040016020810190612a1291906154db565b6001600160401b0316815260208101919091526040016000205460ff16905080612a4f5760405163ca89746b60e01b815260040160405180910390fd5b600080612aee84637e1d42b560e01b8a73__$d825222459c46c14afb2efe0967c30e98d$__63360b8cd78c8c6040518363ffffffff1660e01b8152600401612a98929190615a61565b600060405180830381865af4158015612ab5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612add9190810190615623565b60405160240161080a929190615a75565b915091508115612d125760026001600160a01b038516600090815260986020526040812090612b1d8b8061537e565b60209081013582528101919091526040016000206001015460ff166002811115612b4957612b496145ec565b03612c3e576001600160a01b0384166000908152609b6020526040812090612b718a8061537e565b60209081013582528101919091526040908101600020546001600160401b031690612ba29060608b01908b016154db565b6001600160401b031614612bc95760405163362a414d60e01b815260040160405180910390fd5b612bd96060890160408a016154db565b612be4906001615526565b6001600160a01b0385166000908152609b6020526040812090612c078b8061537e565b60200135815260200190815260200160002060006101000a8154816001600160401b0302191690836001600160401b031602179055505b6001600160a01b0384166000908152609c6020526040812090612c618a8061537e565b6020013581526020019081526020016000206000896040016020810190612c8891906154db565b6001600160401b031681526020810191909152604001600020805460ff19169055612cb3888061537e565b602001356001600160a01b0385167fe46f6591236abe528fe47a3b281fb002524dadd3e62b1f317ed285d07273c3b1612cf260608c0160408d016154db565b6040516001600160401b03909116815260200160405180910390a3612d54565b836001600160a01b03167f625eea143c9dae6915c809da47016c22d9cd006c3ace7c345c5cbcf57d3aefbc82604051612d4b91906148e2565b60405180910390a25b50505050612d626001606555565b50505050565b612d70613c5f565b60a18282604051612d82929190615a9a565b90815260405190819003602001902080546001600160a01b03191690555050565b6000612dad6135b4565b336000908152609860209081526040808320888452909152902060040154612de857604051631109bfb360e31b815260040160405180910390fd5b42826001600160401b031611612e115760405163551ea0fb60e11b815260040160405180910390fd5b503360009081526099602090815260408083208784529091528120546001600160401b031690819003612e5757604051631e510bfb60e21b815260040160405180910390fd5b336000908152609c6020908152604080832088845282528083206001600160401b03851684529091529020805460ff19166001908117909155612e9b908290615526565b3360008181526099602090815260408083208a845290915290819020805467ffffffffffffffff19166001600160401b03949094169390931790925590518691907fb5bff96e18da044e4e34510d16df9053b9f1920f6a960732e5aaf22fe9b8013690612f0f908890889087908990615aaa565b60405180910390a3612f216001606555565b949350505050565b612f31613c5f565b6001600160a01b038116612f965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c36565b610cd381613e6b565b612fa76135b4565b6001600160a01b038316612fce5760405163cbdd34cf60e01b815260040160405180910390fd5b6001600160a01b0383166000908152609860209081526040808320858452909152808220815160e0810190925280548290829061300a9061534a565b80601f01602080910402602001604051908101604052809291908181526020018280546130369061534a565b80156130835780601f1061305857610100808354040283529160200191613083565b820191906000526020600020905b81548152906001019060200180831161306657829003601f168201915b5050509183525050600182015460209091019060ff1660028111156130aa576130aa6145ec565b60028111156130bb576130bb6145ec565b81526001820154610100900460ff161515602080830191909152600283018054604080518285028101850182528281529401939260009084015b828210156131a15783829060005260206000200180546131149061534a565b80601f01602080910402602001604051908101604052809291908181526020018280546131409061534a565b801561318d5780601f106131625761010080835404028352916020019161318d565b820191906000526020600020905b81548152906001019060200180831161317057829003601f168201915b5050505050815260200190600101906130f5565b5050505081526020016003820180546131b99061534a565b80601f01602080910402602001604051908101604052809291908181526020018280546131e59061534a565b80156132325780601f1061320757610100808354040283529160200191613232565b820191906000526020600020905b81548152906001019060200180831161321557829003601f168201915b50505050508152602001600482015481526020016005820180546132559061534a565b80601f01602080910402602001604051908101604052809291908181526020018280546132819061534a565b80156132ce5780601f106132a3576101008083540402835291602001916132ce565b820191906000526020600020905b8154815290600101906020018083116132b157829003601f168201915b5050509190925250505060a08101519091506132fd57604051634d93b09d60e11b815260040160405180910390fd5b61330683613d53565b6001600160a01b031663cb535ab58373__$d825222459c46c14afb2efe0967c30e98d$__636f6547268560c00151886040518363ffffffff1660e01b8152600401613352929190615adf565b600060405180830381865af415801561336f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526133979190810190614d06565b602085015185516060870151608088015160a0890151604051631f621e1560e31b815273__$d825222459c46c14afb2efe0967c30e98d$__9563fb10f0a8956133ed956009959294919390929190600401615b01565b600060405180830381865af415801561340a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526134329190810190614d06565b6040518463ffffffff1660e01b815260040161345093929190614ea9565b600060405180830381600087803b15801561346a57600080fd5b505af115801561347e573d6000803e3d6000fd5b505050506000806134ae86633f9fdbe460e01b8786608001518760a0015160405160240161080a93929190615800565b6001600160a01b03881660009081526098602090815260408083208a845290915281209294509092506134e18282614153565b60018201805461ffff191690556134fc60028301600061418d565b61350a600383016000614153565b60048201600090556005820160006135229190614153565b505081156135655760405185906001600160a01b038816907f5f010dbbd6bf46aec8131c5456301a75cd688d3cca9bc8380c9e26301be2072990600090a36135a7565b856001600160a01b03167fc9d36d7a317cb116925d5cb66f0069fe825822fe23e9cf3f421c38cf444caa308260405161359e91906148e2565b60405180910390a25b5050506115ce6001606555565b6002606554036136065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c36565b6002606555565b841580613618575081155b80613621575083155b8061362a575080155b1561364857604051637d6ba8a560e01b815260040160405180910390fd5b505050505050565b6000815160000361367e5760405163524e171160e01b81526020600482015260006024820152604401610c36565b60a18260405161368e9190615ba9565b908152604051908190036020019020546001600160a01b03169050806136c9578160405163036c4d8760e11b8152600401610c3691906148e2565b919050565b60975460009073__$f61eb90c6f674e787d51c07f105fa231e2$__9063a1ef9a989061370390859063ffffffff168188615bbb565b6040518363ffffffff1660e01b8152600401613720929190615a61565b602060405180830381865af415801561373d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137619190615be5565b9392505050565b600060606001600160a01b0384163b6137b057505060408051808201909152601481527318d85b1b081d1bc81b9bdb8b58dbdb9d1c9858dd60621b602082015260009061384d565b60005a9050846001600160a01b0316846040516137cd9190615ba9565b6000604051808303816000865af19150503d806000811461380a576040519150601f19603f3d011682016040523d82523d6000602084013e61380f565b606091505b5090935091508215801561382d5750613829604082615c02565b5a11155b1561384b5760405163b08ede0960e01b815260040160405180910390fd5b505b9250929050565b6040518060e0016040528087806040019061386f9190614c0d565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506020018460028111156138bb576138bb6145ec565b815283151560208201526040016138d28688615c24565b81526020016138e18380614c0d565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506020838101359082015260400161392f8880614c0d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506001600160a01b038a1681526098602090815260408083208b83013584529091529020825190915081906139999082615741565b50602082015160018083018054909160ff19909116908360028111156139c1576139c16145ec565b021790555060408201516001820180549115156101000261ff001990921691909117905560608201518051613a009160028401916020909101906141ab565b5060808201516003820190613a159082615741565b5060a0820151600482015560c08201516005820190613a349082615741565b5050506001600160a01b03871660008181526099602090815260408083208a8301358085529083528184208054600167ffffffffffffffff199182168117909255868652609a855283862083875285528386208054821683179055958552609b8452828520918552925282208054909316179091558590859081613aba57613aba614c53565b9050602002810190613acc9190614c0d565b602080890135600090815260a09091526040902091610e2c9190836159a1565b610cd3613c5f565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615613b27576115ce83613eec565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015613b81575060408051601f3d908101601f19168201909252613b7e918101906154c2565b60015b613be45760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610c36565b600080516020615cf38339815191528114613c535760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610c36565b506115ce838383613f88565b6033546001600160a01b03163314611ff45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c36565b6000829003613ce55760405163524e171160e01b81526020600482015260006024820152604401610c36565b6001600160a01b038116613d0c5760405163cbdd34cf60e01b815260040160405180910390fd5b8060a18484604051613d1f929190615a9a565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b0319909216919091179055505050565b600081815260a0602052604081208054829190613d6f9061534a565b80601f0160208091040260200160405190810160405280929190818152602001828054613d9b9061534a565b8015613de85780601f10613dbd57610100808354040283529160200191613de8565b820191906000526020600020905b815481529060010190602001808311613dcb57829003601f168201915b505050505090508051600003613e14576040516363b99a9d60e11b815260048101849052602401610c36565b61376181613650565b60006001600160401b03831615801590613e405750826001600160401b03164210155b8061376157506001600160401b038216158015906137615750506001600160401b0316431015919050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16613ee45760405162461bcd60e51b8152600401610c3690615ca7565b611ff4613fad565b6001600160a01b0381163b613f595760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610c36565b600080516020615cf383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b613f9183613fdd565b600082511180613f9e5750805b156115ce57612d62838361401d565b600054610100900460ff16613fd45760405162461bcd60e51b8152600401610c3690615ca7565b611ff433613e6b565b613fe681613eec565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606137618383604051806060016040528060278152602001615d13602791396060600080856001600160a01b03168560405161405a9190615ba9565b600060405180830381855af49150503d8060008114614095576040519150601f19603f3d011682016040523d82523d6000602084013e61409a565b606091505b50915091506140ab868383876140b5565b9695505050505050565b6060831561412457825160000361411d576001600160a01b0385163b61411d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c36565b5081612f21565b612f2183838151156141395781518083602001fd5b8060405162461bcd60e51b8152600401610c3691906148e2565b50805461415f9061534a565b6000825580601f1061416f575050565b601f016020900490600052602060002090810190610cd39190614201565b5080546000825590600052602060002090810190610cd39190614216565b8280548282559060005260206000209081019282156141f1579160200282015b828111156141f157825182906141e19082615741565b50916020019190600101906141cb565b506141fd929150614216565b5090565b5b808211156141fd5760008155600101614202565b808211156141fd57600061422a8282614153565b50600101614216565b60006060828403121561424557600080fd5b50919050565b60008083601f84011261425d57600080fd5b5081356001600160401b0381111561427457600080fd5b6020830191508360208260051b850101111561384d57600080fd5b8035600381106136c957600080fd5b8015158114610cd357600080fd5b80356136c98161429e565b60006040828403121561424557600080fd5b600080600080600080600060c0888a0312156142e457600080fd5b87356001600160401b03808211156142fb57600080fd5b6143078b838c01614233565b985060208a013591508082111561431d57600080fd5b6143298b838c0161424b565b909850965086915061433d60408b0161428f565b955061434b60608b016142ac565b945060808a013591508082111561436157600080fd5b61436d8b838c01614233565b935060a08a013591508082111561438357600080fd5b506143908a828b016142b7565b91505092959891949750929550565b600080600080600080600060c0888a0312156143ba57600080fd5b87356001600160401b03808211156143d157600080fd5b6143dd8b838c01614233565b98506143eb60208b0161428f565b97506143f960408b016142ac565b965060608a013591508082111561440f57600080fd5b61441b8b838c0161424b565b909650945060808a013591508082111561436157600080fd5b6001600160a01b0381168114610cd357600080fd5b60006020828403121561445b57600080fd5b813561376181614434565b60008083601f84011261447857600080fd5b5081356001600160401b0381111561448f57600080fd5b60208301915083602082850101111561384d57600080fd5b60008060008060008060008060a0898b0312156144c357600080fd5b88356001600160401b03808211156144da57600080fd5b6144e68c838d01614466565b909a5098508891506144fa60208c0161428f565b975060408b0135915061450c8261429e565b90955060608a0135908082111561452257600080fd5b61452e8c838d0161424b565b909650945060808b013591508082111561454757600080fd5b506145548b828c01614466565b999c989b5096995094979396929594505050565b6000806040838503121561457b57600080fd5b823561458681614434565b946020939093013593505050565b60005b838110156145af578181015183820152602001614597565b83811115612d625750506000910152565b600081518084526145d8816020860160208601614594565b601f01601f19169290920160200192915050565b634e487b7160e01b600052602160045260246000fd5b60038110614612576146126145ec565b9052565b600081518084526020808501808196508360051b8101915082860160005b8581101561465e57828403895261464c8483516145c0565b98850198935090840190600101614634565b5091979650505050505050565b602081526000825160e060208401526146886101008401826145c0565b9050602084015161469c6040850182614602565b506040840151151560608401526060840151601f19808584030160808601526146c58383614616565b925060808601519150808584030160a08601526146e283836145c0565b925060a086015160c086015260c08601519150808584030160e08601525061470a82826145c0565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561475157614751614713565b604052919050565b60006001600160401b0382111561477257614772614713565b50601f01601f191660200190565b600061479361478e84614759565b614729565b90508281528383830111156147a757600080fd5b828260208301376000602084830101529392505050565b600080604083850312156147d157600080fd5b82356147dc81614434565b915060208301356001600160401b038111156147f757600080fd5b8301601f8101851361480857600080fd5b61481785823560208401614780565b9150509250929050565b60008060006040848603121561483657600080fd5b83356001600160401b0381111561484c57600080fd5b61485886828701614466565b909450925050602084013561486c81614434565b809150509250925092565b600060e0828403121561424557600080fd5b6000806040838503121561489c57600080fd5b82356001600160401b03808211156148b357600080fd5b6148bf86838701614877565b935060208501359150808211156148d557600080fd5b50614817858286016142b7565b60208152600061376160208301846145c0565b600082601f83011261490657600080fd5b61376183833560208501614780565b6000806040838503121561492857600080fd5b82356001600160401b0381111561493e57600080fd5b61494a858286016148f5565b925050602083013561495b81614434565b809150509250929050565b60006020828403121561497857600080fd5b5035919050565b60008060006040848603121561499457600080fd5b8335925060208401356001600160401b038111156149b157600080fd5b6149bd86828701614466565b9497909650939450505050565b60008060008060008060a087890312156149e357600080fd5b86356001600160401b03808211156149fa57600080fd5b614a068a838b01614233565b97506020890135915080821115614a1c57600080fd5b908801906080828b031215614a3057600080fd5b909550604088013594506060880135935060808801359080821115614a5457600080fd5b50614a6189828a01614466565b979a9699509497509295939492505050565b60008060208385031215614a8657600080fd5b82356001600160401b03811115614a9c57600080fd5b614aa885828601614466565b90969095509350505050565b60008060008060608587031215614aca57600080fd5b84356001600160401b0380821115614ae157600080fd5b614aed88838901614877565b95506020870135915080821115614b0357600080fd5b614b0f88838901614466565b90955093506040870135915080821115614b2857600080fd5b50614b35878288016142b7565b91505092959194509250565b80356001600160401b03811681146136c957600080fd5b60008060008060608587031215614b6e57600080fd5b8435935060208501356001600160401b03811115614b8b57600080fd5b614b9787828801614466565b9094509250614baa905060408601614b41565b905092959194509250565b600080600060608486031215614bca57600080fd5b8335614bd581614434565b92506020840135915060408401356001600160401b03811115614bf757600080fd5b614c03868287016142b7565b9150509250925092565b6000808335601e19843603018112614c2457600080fd5b8301803591506001600160401b03821115614c3e57600080fd5b60200191503681900382131561384d57600080fd5b634e487b7160e01b600052603260045260246000fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b604081526000614ca6604083018587614c69565b9050826020830152949350505050565b6000614cc461478e84614759565b9050828152838383011115614cd857600080fd5b613761836020830184614594565b600082601f830112614cf757600080fd5b61376183835160208501614cb6565b600060208284031215614d1857600080fd5b81516001600160401b03811115614d2e57600080fd5b612f2184828501614ce6565b600a8110614612576146126145ec565b6000808335601e19843603018112614d6157600080fd5b83016020810192503590506001600160401b03811115614d8057600080fd5b80360382131561384d57600080fd5b614d99818b614d3a565b60006020614da98184018c614602565b60c06040840152614dbe60c084018a8c614c69565b8381036060850152878152818101600589901b820183018a60005b8b811015614e1357848303601f19018452614df4828e614d4a565b614dff858284614c69565b958801959450505090850190600101614dd9565b50508581036080870152614e2881898b614c69565b9450505050508260a08301529a9950505050505050505050565b6000808335601e19843603018112614e5957600080fd5b83016020810192503590506001600160401b03811115614e7857600080fd5b8060051b360382131561384d57600080fd5b60008235603e19833603018112614ea057600080fd5b90910192915050565b6000606080835260a0808401614ebf8889614e42565b60408786018190529281905260059260c08089019083861b8a01018460005b8581101561501f578b830360bf19018452813536889003607e19018112614f0457600080fd5b87016080848101614f158380614e42565b928752908290528b860191808c1b87018d0191908160005b82811015614f9d57898503609f19018652614f488285614e8a565b614f528182614d4a565b8e8852614f628f89018284614c69565b9150506020614f7381840184614d4a565b9350888303828a0152614f87838583614c69565b9982019998505093909301925050600101614f2d565b5050505060209150614fb182840184614d4a565b87830384890152614fc3838284614c69565b92505050614fd388840184614d4a565b8783038a890152614fe5838284614c69565b92505050614ff58d840184614d4a565b93508682038e880152615009828583614c69565b9783019796505050929092019150600101614ede565b505060208d013560808b015289810360208b015261503d818d6145c0565b975050508786038189015250505050506140ab81856145c0565b8481528360208201526060604082015260006140ab606083018486614c69565b81835260006020808501808196508560051b810191508460005b8781101561465e5782840389526150a88288614d4a565b6150b3868284614c69565b9a87019a9550505090840190600101615091565b6150d1818b614602565b60c0602082015260006150e860c083018a8c615077565b886040840152828103606084015261510181888a614c69565b905085608084015282810360a084015261511c818587614c69565b9c9b505050505050505050505050565b60006020828403121561513e57600080fd5b81516001600160401b0381111561515457600080fd5b8201601f8101841361516557600080fd5b612f2184825160208401614cb6565b60c08152600061518760c083018b6145c0565b615194602084018b614602565b881515604084015282810360608401526151af81888a615077565b905082810360808401526151c4818688614c69565b9150508260a08301529998505050505050505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b61527c8189614602565b60806020820152600061529360808301888a615077565b82810360408401526152a6818789614c69565b905082810360608401526152bb818587614c69565b9a9950505050505050505050565b6001600160e01b03198316815281516000906152ec816004850160208701614594565b919091016004019392505050565b60a08152600061530d60a083018a6145c0565b61531a602084018a614602565b87151560408401528281036060840152615335818789615077565b905082810360808401526152bb818587614c69565b600181811c9082168061535e57607f821691505b60208210810361424557634e487b7160e01b600052602260045260246000fd5b60008235603e1983360301811261539457600080fd5b9190910192915050565b60006153aa8283614d4a565b604085526153bc604086018284614c69565b915050602083013560208501528091505092915050565b6001600160401b03806153e583614b41565b168352806153f560208401614b41565b166020840152505050565b6020815260006154108384614e8a565b60e0602084015261542561010084018261539e565b90506154346020850185614e8a565b601f198085840301604086015261544b838361539e565b925061545960408701614b41565b91506001600160401b0380831660608701526154786060880188614d4a565b93508287860301608088015261548f858583614c69565b9450506154a260a08701608089016153d3565b806154af60c08901614b41565b1660e08701525050508091505092915050565b6000602082840312156154d457600080fd5b5051919050565b6000602082840312156154ed57600080fd5b61376182614b41565b6001600160401b038481168252608082019061551560208401866153d3565b808416606084015250949350505050565b60006001600160401b0380831681851680830382111561555657634e487b7160e01b600052601160045260246000fd5b01949350505050565b600061556b8283614e8a565b60e0845261557c60e085018261539e565b905061558b6020840184614e8a565b848203602086015261559d828261539e565b9150506155ac60408401614b41565b6001600160401b0380821660408701526155c96060860186614d4a565b925086840360608801526155de848483614c69565b9350506155f160808701608087016153d3565b806155fe60c08701614b41565b1660c087015250508091505092915050565b602081526000613761602083018461555f565b60006020828403121561563557600080fd5b81516001600160401b038082111561564c57600080fd5b908301906040828603121561566057600080fd5b60405160408101818110838211171561567b5761567b614713565b60405282516156898161429e565b815260208301518281111561569d57600080fd5b6156a987828601614ce6565b60208301525095945050505050565b8051151582526000602082015160406020850152612f2160408501826145c0565b6001600160401b0383168152604060208201526000612f2160408301846156b8565b601f8211156115ce57600081815260208120601f850160051c810160208610156157225750805b601f850160051c820191505b818110156136485782815560010161572e565b81516001600160401b0381111561575a5761575a614713565b61576e81615768845461534a565b846156fb565b602080601f8311600181146157a3576000841561578b5750858301515b600019600386901b1c1916600185901b178555613648565b600085815260208120601f198616915b828110156157d2578886015182559484019460019091019084016157b3565b50858210156157f05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b83815260606020820152600061581960608301856145c0565b9050826040830152949350505050565b60008060006060848603121561583e57600080fd5b8351925060208401519150604084015161486c8161429e565b60008383855260208086019550808560051b8301018460005b878110156158aa57848303601f1901895261588b8288614d4a565b615896858284614c69565b9a86019a9450505090830190600101615870565b5090979650505050505050565b6080815260006158c78687614e42565b606060808501526158dc60e085018284615857565b915050602087013560a08401526001600160401b036158fd60408901614b41565b1660c084015282810360208401526159158687614e42565b60808352615927608084018284615857565b9150506159376020880188614e42565b838303602085015261594a838284615857565b925050506040870135604083015260608701356060830152809250505083604083015282606083015295945050505050565b6000806040838503121561598f57600080fd5b82519150602083015161495b8161429e565b6001600160401b038311156159b8576159b8614713565b6159cc836159c6835461534a565b836156fb565b6000601f841160018114615a0057600085156159e85750838201355b600019600387901b1c1916600186901b178355615a5a565b600083815260209020601f19861690835b82811015615a315786850135825560209485019460019092019101615a11565b5086821015615a4e5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b602081526000612f21602083018486614c69565b604081526000615a88604083018561555f565b828103602084015261470a81856156b8565b8183823760009101908152919050565b606081526000615abe606083018688614c69565b6001600160401b039485166020840152929093166040909101529392505050565b604081526000615af260408301856145c0565b90508260208301529392505050565b615b0b8188614d3a565b60006020615b1b81840189614602565b60c06040840152615b2f60c08401886145c0565b8381036060850152865180825282820190600581901b83018401848a0160005b83811015615b7d57601f19868403018552615b6b8383516145c0565b94870194925090860190600101615b4f565b50508681036080880152615b91818a6145c0565b955050505050508260a0830152979650505050505050565b60008251615394818460208701614594565b60008085851115615bcb57600080fd5b83861115615bd857600080fd5b5050820193919092039150565b600060208284031215615bf757600080fd5b815161376181614434565b600082615c1f57634e487b7160e01b600052601260045260246000fd5b500490565b60006001600160401b0380841115615c3e57615c3e614713565b8360051b6020615c4f818301614729565b868152918501918181019036841115615c6757600080fd5b865b84811015615c9b57803586811115615c815760008081fd5b615c8d36828b016148f5565b845250918301918301615c69565b50979650505050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122046a1de6eec515cb64065849fa7275b14dbe64e214f04b50b21f8374313466ab564736f6c634300080f0033"; - -type DispatcherConstructorParams = - | [linkLibraryAddresses: DispatcherLibraryAddresses, signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: DispatcherConstructorParams -): xs is ConstructorParameters => { - return ( - typeof xs[0] === "string" || - (Array.isArray as (arg: any) => arg is readonly any[])(xs[0]) || - "_isInterface" in xs[0] - ); -}; - -export class Dispatcher__factory extends ContractFactory { - constructor(...args: DispatcherConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - const [linkLibraryAddresses, signer] = args; - super( - _abi, - Dispatcher__factory.linkBytecode(linkLibraryAddresses), - signer - ); - } - } - - static linkBytecode( - linkLibraryAddresses: DispatcherLibraryAddresses - ): string { - let linkedBytecode = _bytecode; - - linkedBytecode = linkedBytecode.replace( - new RegExp("__\\$d825222459c46c14afb2efe0967c30e98d\\$__", "g"), - linkLibraryAddresses["contracts/libs/Ibc.sol:Ibc"] - .replace(/^0x/, "") - .toLowerCase() - ); - - linkedBytecode = linkedBytecode.replace( - new RegExp("__\\$f61eb90c6f674e787d51c07f105fa231e2\\$__", "g"), - linkLibraryAddresses["contracts/libs/IbcUtils.sol:IbcUtils"] - .replace(/^0x/, "") - .toLowerCase() - ); - - return linkedBytecode; - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - Dispatcher & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): Dispatcher__factory { - return super.connect(runner) as Dispatcher__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): DispatcherInterface { - return new Interface(_abi) as DispatcherInterface; - } - static connect(address: string, runner?: ContractRunner | null): Dispatcher { - return new Contract(address, _abi, runner) as unknown as Dispatcher; - } -} - -export interface DispatcherLibraryAddresses { - ["contracts/libs/Ibc.sol:Ibc"]: string; - ["contracts/libs/IbcUtils.sol:IbcUtils"]: string; -} diff --git a/src/evm/contracts/factories/DummyLightClient__factory.ts b/src/evm/contracts/factories/DummyLightClient__factory.ts deleted file mode 100644 index 578636ca..00000000 --- a/src/evm/contracts/factories/DummyLightClient__factory.ts +++ /dev/null @@ -1,341 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { - DummyLightClient, - DummyLightClientInterface, -} from "../DummyLightClient"; - -const _abi = [ - { - type: "constructor", - inputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "addOpConsensusState", - inputs: [ - { - name: "", - type: "tuple", - internalType: "struct L1Header", - components: [ - { - name: "header", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "stateRoot", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "number", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "", - type: "tuple", - internalType: "struct OpL2StateProof", - components: [ - { - name: "accountProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "outputRootProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "l2OutputProposalKey", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "l2BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "", - type: "uint256", - internalType: "uint256", - }, - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "endTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "getFraudProofEndtime", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "endTime", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "getState", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "fraudProofEndtime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "verifyMembership", - inputs: [ - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - { - name: "", - type: "bytes", - internalType: "bytes", - }, - { - name: "", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "function", - name: "verifyNonMembership", - inputs: [ - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - { - name: "", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "error", - name: "InvalidDummyMembershipProof", - inputs: [], - }, - { - type: "error", - name: "InvalidDummyNonMembershipProof", - inputs: [], - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b506103d8806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806344c9af281461005c5780635922f42014610096578063cb535ab5146100c5578063d56ff842146100da578063fdaab4e5146100fc575b600080fd5b61007461006a366004610162565b5060009081908190565b6040805193845260208401929092521515908201526060015b60405180910390f35b6100b06100a436600461017b565b60008094509492505050565b6040805192835290151560208301520161008d565b6100d86100d33660046102b6565b61010f565b005b6100ee6100e8366004610162565b50600090565b60405190815260200161008d565b6100d861010a36600461033e565b610139565b826020013560000361013457604051636cb681eb60e01b815260040160405180910390fd5b505050565b816020013560000361015e57604051631e76ddb960e21b815260040160405180910390fd5b5050565b60006020828403121561017457600080fd5b5035919050565b6000806000806080858703121561019157600080fd5b843567ffffffffffffffff808211156101a957600080fd5b90860190606082890312156101bd57600080fd5b909450602086013590808211156101d357600080fd5b508501608081880312156101e657600080fd5b93969395505050506040820135916060013590565b60006040828403121561020d57600080fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261023a57600080fd5b813567ffffffffffffffff8082111561025557610255610213565b604051601f8301601f19908116603f0116810190828211818310171561027d5761027d610213565b8160405283815286602085880101111561029657600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156102cb57600080fd5b833567ffffffffffffffff808211156102e357600080fd5b6102ef878388016101fb565b9450602086013591508082111561030557600080fd5b61031187838801610229565b9350604086013591508082111561032757600080fd5b5061033486828701610229565b9150509250925092565b6000806040838503121561035157600080fd5b823567ffffffffffffffff8082111561036957600080fd5b610375868387016101fb565b9350602085013591508082111561038b57600080fd5b5061039885828601610229565b915050925092905056fea26469706673582212207befcacce43d382e609d84ddbf6d951e607548e6d657d90ebabbf78b5a72f52e64736f6c634300080f0033"; - -type DummyLightClientConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: DummyLightClientConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class DummyLightClient__factory extends ContractFactory { - constructor(...args: DummyLightClientConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - DummyLightClient & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): DummyLightClient__factory { - return super.connect(runner) as DummyLightClient__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): DummyLightClientInterface { - return new Interface(_abi) as DummyLightClientInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): DummyLightClient { - return new Contract(address, _abi, runner) as unknown as DummyLightClient; - } -} diff --git a/src/evm/contracts/factories/DummyProofVerifier__factory.ts b/src/evm/contracts/factories/DummyProofVerifier__factory.ts deleted file mode 100644 index db595d27..00000000 --- a/src/evm/contracts/factories/DummyProofVerifier__factory.ts +++ /dev/null @@ -1,332 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { - DummyProofVerifier, - DummyProofVerifierInterface, -} from "../DummyProofVerifier"; - -const _abi = [ - { - type: "function", - name: "verifyMembership", - inputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes", - internalType: "bytes", - }, - { - name: "", - type: "bytes", - internalType: "bytes", - }, - { - name: "", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "function", - name: "verifyNonMembership", - inputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes", - internalType: "bytes", - }, - { - name: "", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "function", - name: "verifyStateUpdate", - inputs: [ - { - name: "", - type: "tuple", - internalType: "struct L1Header", - components: [ - { - name: "header", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "stateRoot", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "number", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "", - type: "tuple", - internalType: "struct OpL2StateProof", - components: [ - { - name: "accountProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "outputRootProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "l2OutputProposalKey", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "l2BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "error", - name: "InvalidAppHash", - inputs: [], - }, - { - type: "error", - name: "InvalidIbcStateProof", - inputs: [], - }, - { - type: "error", - name: "InvalidL1BlockHash", - inputs: [], - }, - { - type: "error", - name: "InvalidL1BlockNumber", - inputs: [], - }, - { - type: "error", - name: "InvalidPacketProof", - inputs: [], - }, - { - type: "error", - name: "InvalidProofKey", - inputs: [], - }, - { - type: "error", - name: "InvalidProofValue", - inputs: [], - }, - { - type: "error", - name: "InvalidRLPEncodedL1BlockNumber", - inputs: [], - }, - { - type: "error", - name: "InvalidRLPEncodedL1StateRoot", - inputs: [], - }, - { - type: "error", - name: "MethodNotImplemented", - inputs: [], - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b506102cf806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630a1bb8b5146100465780632a6ded741461005d578063c2f0329f14610071575b600080fd5b61005b610054366004610087565b5050505050565b005b61005b61006b36600461018a565b50505050565b61005b61007f3660046101fd565b505050505050565b600080600080600060a0868803121561009f57600080fd5b853567ffffffffffffffff808211156100b757600080fd5b908701906060828a0312156100cb57600080fd5b909550602087013590808211156100e157600080fd5b908701906080828a0312156100f557600080fd5b9094506040870135935060608701359250608087013590808216821461011a57600080fd5b50809150509295509295909350565b60008083601f84011261013b57600080fd5b50813567ffffffffffffffff81111561015357600080fd5b60208301915083602082850101111561016b57600080fd5b9250929050565b60006040828403121561018457600080fd5b50919050565b600080600080606085870312156101a057600080fd5b84359350602085013567ffffffffffffffff808211156101bf57600080fd5b6101cb88838901610129565b909550935060408701359150808211156101e457600080fd5b506101f187828801610172565b91505092959194509250565b6000806000806000806080878903121561021657600080fd5b86359550602087013567ffffffffffffffff8082111561023557600080fd5b6102418a838b01610129565b9097509550604089013591508082111561025a57600080fd5b6102668a838b01610129565b9095509350606089013591508082111561027f57600080fd5b5061028c89828a01610172565b915050929550929550929556fea2646970667358221220d603bd2a2a3dcd871942da86de6e1f367f5c11b25842f2becb53941776c99e9364736f6c634300080f0033"; - -type DummyProofVerifierConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: DummyProofVerifierConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class DummyProofVerifier__factory extends ContractFactory { - constructor(...args: DummyProofVerifierConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - DummyProofVerifier & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): DummyProofVerifier__factory { - return super.connect(runner) as DummyProofVerifier__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): DummyProofVerifierInterface { - return new Interface(_abi) as DummyProofVerifierInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): DummyProofVerifier { - return new Contract(address, _abi, runner) as unknown as DummyProofVerifier; - } -} diff --git a/src/evm/contracts/factories/ERC1967Proxy__factory.ts b/src/evm/contracts/factories/ERC1967Proxy__factory.ts deleted file mode 100644 index a6192e42..00000000 --- a/src/evm/contracts/factories/ERC1967Proxy__factory.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - BytesLike, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { PayableOverrides } from "../common"; -import type { ERC1967Proxy, ERC1967ProxyInterface } from "../ERC1967Proxy"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_logic", - type: "address", - internalType: "address", - }, - { - name: "_data", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "payable", - }, - { - type: "fallback", - stateMutability: "payable", - }, - { - type: "receive", - 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: "Upgraded", - inputs: [ - { - name: "implementation", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, -] as const; - -const _bytecode = - "0x608060405260405161073b38038061073b83398101604081905261002291610321565b61002e82826000610035565b505061043e565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d08383604051806060016040528060278152602001610714602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ef565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a357825160000361029c576001600160a01b0385163b61029c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102ad565b6102ad83836102b5565b949350505050565b8151156102c55781518083602001fd5b8060405162461bcd60e51b8152600401610148919061040b565b634e487b7160e01b600052604160045260246000fd5b60005b838110156103105781810151838201526020016102f8565b838111156100645750506000910152565b6000806040838503121561033457600080fd5b82516001600160a01b038116811461034b57600080fd5b60208401519092506001600160401b038082111561036857600080fd5b818501915085601f83011261037c57600080fd5b81518181111561038e5761038e6102df565b604051601f8201601f19908116603f011681019083821181831017156103b6576103b66102df565b816040528281528860208487010111156103cf57600080fd5b6103e08360208301602088016102f5565b80955050505050509250929050565b600082516104018184602087016102f5565b9190910192915050565b602081526000825180602084015261042a8160408501602087016102f5565b601f01601f19169190910160400192915050565b6102c78061044d6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e838360405180606001604052806027815260200161026b602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e0919061021b565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101af5782516000036101a8576001600160a01b0385163b6101a85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b9565b6101b983836101c1565b949350505050565b8151156101d15781518083602001fd5b8060405162461bcd60e51b815260040161019f9190610237565b60005b838110156102065781810151838201526020016101ee565b83811115610215576000848401525b50505050565b6000825161022d8184602087016101eb565b9190910192915050565b60208152600082518060208401526102568160408501602087016101eb565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122004fff0a0fbcac555b3339e2ed106c9314c88cea46e493b3f8c0eed46c362d76264736f6c634300080f0033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564"; - -type ERC1967ProxyConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ERC1967ProxyConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ERC1967Proxy__factory extends ContractFactory { - constructor(...args: ERC1967ProxyConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _logic: AddressLike, - _data: BytesLike, - overrides?: PayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_logic, _data, overrides || {}); - } - override deploy( - _logic: AddressLike, - _data: BytesLike, - overrides?: PayableOverrides & { from?: string } - ) { - return super.deploy(_logic, _data, overrides || {}) as Promise< - ERC1967Proxy & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): ERC1967Proxy__factory { - return super.connect(runner) as ERC1967Proxy__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ERC1967ProxyInterface { - return new Interface(_abi) as ERC1967ProxyInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): ERC1967Proxy { - return new Contract(address, _abi, runner) as unknown as ERC1967Proxy; - } -} diff --git a/src/evm/contracts/factories/Earth__factory.ts b/src/evm/contracts/factories/Earth__factory.ts deleted file mode 100644 index c8646a2b..00000000 --- a/src/evm/contracts/factories/Earth__factory.ts +++ /dev/null @@ -1,648 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { Earth, EarthInterface } from "../Earth"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_middleware", - type: "address", - internalType: "address", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "ackPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "packet", - type: "tuple", - internalType: "struct UniversalPacket", - components: [ - { - name: "srcPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "mwBitmap", - type: "uint256", - internalType: "uint256", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "authorizeChannel", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "authorizedChannelIds", - inputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [ - { - name: "", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "generateAckPacket", - inputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "srcPortAddr", - type: "address", - internalType: "address", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [ - { - name: "ackPacket", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "greet", - inputs: [ - { - name: "destPortAddr", - type: "address", - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "message", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "greetWithFee", - inputs: [ - { - name: "destPortAddr", - type: "address", - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "message", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "onRecvUniversalPacket", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "packet", - type: "tuple", - internalType: "struct UniversalPacket", - components: [ - { - name: "srcPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "mwBitmap", - type: "uint256", - internalType: "uint256", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [ - { - name: "ackPacket", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onTimeoutUniversalPacket", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "packet", - type: "tuple", - internalType: "struct UniversalPacket", - components: [ - { - name: "srcPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "mwBitmap", - type: "uint256", - internalType: "uint256", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onUniversalAcknowledgement", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "packet", - type: "tuple", - internalType: "struct UniversalPacket", - components: [ - { - name: "srcPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "mwBitmap", - type: "uint256", - internalType: "uint256", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvedPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "packet", - type: "tuple", - internalType: "struct UniversalPacket", - components: [ - { - name: "srcPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "mwBitmap", - type: "uint256", - internalType: "uint256", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "timeoutPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "packet", - type: "tuple", - internalType: "struct UniversalPacket", - components: [ - { - name: "srcPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "mwBitmap", - type: "uint256", - internalType: "uint256", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "uch", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "updateUch", - inputs: [ - { - name: "_newUch", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "event", - name: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "CallerNotUCH", - inputs: [], - }, - { - type: "error", - name: "InvalidUCHAddress", - inputs: [], - }, - { - type: "error", - name: "ackAddressMismatch", - inputs: [], - }, - { - type: "error", - name: "ackDataTooShort", - inputs: [], - }, - { - type: "error", - name: "invalidChannelId", - inputs: [], - }, - { - type: "error", - name: "unauthorizedChannel", - inputs: [], - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b5060405161195538038061195583398101604081905261002f916100b2565b808061003a33610062565b600180546001600160a01b0319166001600160a01b0392909216919091179055506100e29050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c457600080fd5b81516001600160a01b03811681146100db57600080fd5b9392505050565b611864806100f16000396000f3fe6080604052600436106100f75760003560e01c80635b7615851161008a57806392dfa3921161005957806392dfa392146102ea578063d24ba0241461030a578063f12b758a1461032a578063f2fde38b1461034a57600080fd5b80635b7615851461026a578063715018a614610297578063866f3f97146102ac5780638da5cb5b146102cc57600080fd5b8063400d9f5d116100c6578063400d9f5d146101cd5780634252ae9b146101ed5780634eeb73911461021c578063588152ca1461024a57600080fd5b80631b2f37d0146101035780632466911c146101255780632cc422d9146101555780632eed7c701461018d57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004610e0e565b61036a565b005b610138610133366004610f6a565b6103bb565b6040516001600160401b0390911681526020015b60405180910390f35b34801561016157600080fd5b50600154610175906001600160a01b031681565b6040516001600160a01b03909116815260200161014c565b34801561019957600080fd5b506101bd6101a8366004610ffd565b60026020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156101d957600080fd5b506101236101e8366004611016565b610457565b3480156101f957600080fd5b5061020d610208366004610ffd565b610532565b60405161014c93929190611113565b34801561022857600080fd5b5061023c610237366004610ffd565b6106d6565b60405161014c929190611148565b34801561025657600080fd5b50610123610265366004611260565b6107c4565b34801561027657600080fd5b5061028a610285366004611016565b610972565b60405161014c91906112d3565b3480156102a357600080fd5b50610123610af3565b3480156102b857600080fd5b5061028a6102c73660046112e6565b610b07565b3480156102d857600080fd5b506000546001600160a01b0316610175565b3480156102f657600080fd5b50610123610305366004610ffd565b610b62565b34801561031657600080fd5b5061012361032536600461133f565b610b76565b34801561033657600080fd5b5061023c610345366004610ffd565b610c06565b34801561035657600080fd5b50610123610365366004610e0e565b610c16565b610372610c91565b6001600160a01b0381166103995760405163a944796960e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546000906001600160a01b031663462fdf8334896103e18c6001600160a01b031690565b8a8a8a8a8a6040518963ffffffff1660e01b815260040161040897969594939291906113fc565b60206040518083038185885af1158015610426573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061044b9190611449565b98975050505050505050565b6001546001600160a01b0316331461048257604051631323efc560e01b815260040160405180910390fd5b600082815260026020526040902054829060ff166104b357604051630100e70560e51b815260040160405180910390fd5b60056040518060400160405280858152602001846104d090611466565b90528154600181810184556000938452602093849020835160059093020191825583830151805191830191825593840151600283015560408401516003830155606084015192939192600484019061052890826114f7565b5050505050505050565b6004818154811061054257600080fd5b90600052602060002090600702016000915090508060000154908060010160405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201805461059990611472565b80601f01602080910402602001604051908101604052809291908181526020018280546105c590611472565b80156106125780601f106105e757610100808354040283529160200191610612565b820191906000526020600020905b8154815290600101906020018083116105f557829003601f168201915b5050509190925250506040805180820190915260058401805460ff1615158252600685018054949594929350909160208401919061064f90611472565b80601f016020809104026020016040519081016040528092919081815260200182805461067b90611472565b80156106c85780601f1061069d576101008083540402835291602001916106c8565b820191906000526020600020905b8154815290600101906020018083116106ab57829003601f168201915b505050505081525050905083565b600581815481106106e657600080fd5b90600052602060002090600502016000915090508060000154908060010160405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201805461073d90611472565b80601f016020809104026020016040519081016040528092919081815260200182805461076990611472565b80156107b65780601f1061078b576101008083540402835291602001916107b6565b820191906000526020600020905b81548152906001019060200180831161079957829003601f168201915b505050505081525050905082565b6001546001600160a01b031633146107ef57604051631323efc560e01b815260040160405180910390fd5b600083815260026020526040902054839060ff1661082057604051630100e70560e51b815260040160405180910390fd5b601461082f60208401846115b6565b905010156108505760405163503b43db60e01b815260040160405180910390fd5b600061085f60208401846115b6565b61086e916014916000916115fc565b61087791611626565b60601c9050806001600160a01b03166108938560400151610ceb565b6001600160a01b0316146108ba57604051631863a42d60e31b815260040160405180910390fd5b60046040518060600160405280878152602001868152602001856108dd90611669565b90528154600181810184556000938452602093849020835160079093020191825583830151805191830191825593840151600283015560408401516003830155606084015192939192600484019061093590826114f7565b5050506040820151805160058301805460ff19169115159190911781556020820151600684019061096690826114f7565b50505050505050505050565b6040805180820190915260008152606060208201526001546001600160a01b031633146109b257604051631323efc560e01b815260040160405180910390fd5b600083815260026020526040902054839060ff166109e357604051630100e70560e51b815260040160405180910390fd5b6003604051806040016040528086815260200185610a0090611466565b905281546001818101845560009384526020938490208351600590930201918255838301518051918301918255938401516002830155604084015160038301556060840151929391926004840190610a5890826114f7565b5050505050306001600160a01b031663866f3f9785610a7a8660000135610ceb565b610a8760608801886115b6565b6040518563ffffffff1660e01b8152600401610aa694939291906116c1565b600060405180830381865afa158015610ac3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610aeb91908101906116ec565b949350505050565b610afb610c91565b610b056000610cfc565b565b604080518082019091526000815260606020820152604051806040016040528060011515815260200130868686604051602001610b4794939291906117a9565b60408051601f19818403018152919052905295945050505050565b610b6a610c91565b610b7381610d4c565b50565b6001546001600160a01b0316631f3a583085610b98886001600160a01b031690565b8686866040518663ffffffff1660e01b8152600401610bbb9594939291906117f3565b6020604051808303816000875af1158015610bda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfe9190611449565b505050505050565b600381815481106106e657600080fd5b610c1e610c91565b6001600160a01b038116610c885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610b7381610cfc565b6000546001600160a01b03163314610b055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7f565b6000610cf682610d85565b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80610d6a57604051631d6f5e8b60e01b815260040160405180910390fd5b6000908152600260205260409020805460ff19166001179055565b60006001600160a01b03821115610dee5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663630206269747360c81b6064820152608401610c7f565b5090565b80356001600160a01b0381168114610e0957600080fd5b919050565b600060208284031215610e2057600080fd5b610e2982610df2565b9392505050565b60008083601f840112610e4257600080fd5b5081356001600160401b03811115610e5957600080fd5b602083019150836020828501011115610e7157600080fd5b9250929050565b6001600160401b0381168114610b7357600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715610ec557610ec5610e8d565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610ef357610ef3610e8d565b604052919050565b600082601f830112610f0c57600080fd5b604051604081018181106001600160401b0382111715610f2e57610f2e610e8d565b8060405250806040840185811115610f4557600080fd5b845b81811015610f5f578035835260209283019201610f47565b509195945050505050565b6000806000806000806000610100888a031215610f8657600080fd5b610f8f88610df2565b96506020880135955060408801356001600160401b03811115610fb157600080fd5b610fbd8a828b01610e30565b9096509450506060880135610fd181610e78565b9250610fe08960808a01610efb565b9150610fef8960c08a01610efb565b905092959891949750929550565b60006020828403121561100f57600080fd5b5035919050565b6000806040838503121561102957600080fd5b8235915060208301356001600160401b0381111561104657600080fd5b83016080818603121561105857600080fd5b809150509250929050565b60005b8381101561107e578181015183820152602001611066565b8381111561108d576000848401525b50505050565b600081518084526110ab816020860160208601611063565b601f01601f19169290920160200192915050565b8051825260208101516020830152604081015160408301526000606082015160806060850152610aeb6080850182611093565b8051151582526000602082015160406020850152610aeb6040850182611093565b83815260606020820152600061112c60608301856110bf565b828103604084015261113e81856110f2565b9695505050505050565b828152604060208201526000610aeb60408301846110bf565b60006001600160401b0382111561117a5761117a610e8d565b50601f01601f191660200190565b600082601f83011261119957600080fd5b81356111ac6111a782611161565b610ecb565b8181528460208386010111156111c157600080fd5b816020850160208301376000918101602001919091529392505050565b6000608082840312156111f057600080fd5b604051608081016001600160401b03828210818311171561121357611213610e8d565b81604052829350843583526020850135602084015260408501356040840152606085013591508082111561124657600080fd5b5061125385828601611188565b6060830152505092915050565b60008060006060848603121561127557600080fd5b8335925060208401356001600160401b038082111561129357600080fd5b61129f878388016111de565b935060408601359150808211156112b557600080fd5b508401604081870312156112c857600080fd5b809150509250925092565b602081526000610e2960208301846110f2565b600080600080606085870312156112fc57600080fd5b8435935061130c60208601610df2565b925060408501356001600160401b0381111561132757600080fd5b61133387828801610e30565b95989497509550505050565b60008060008060006080868803121561135757600080fd5b61136086610df2565b94506020860135935060408601356001600160401b0381111561138257600080fd5b61138e88828901610e30565b90945092505060608601356113a281610e78565b809150509295509295909350565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8060005b600281101561108d5781518452602093840193909101906001016113dd565b600061010089835288602084015280604084015261141d818401888a6113b0565b9150506001600160401b038516606083015261143c60808301856113d9565b61044b60c08301846113d9565b60006020828403121561145b57600080fd5b8151610e2981610e78565b6000610cf636836111de565b600181811c9082168061148657607f821691505b6020821081036114a657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156114f257600081815260208120601f850160051c810160208610156114d35750805b601f850160051c820191505b81811015610bfe578281556001016114df565b505050565b81516001600160401b0381111561151057611510610e8d565b6115248161151e8454611472565b846114ac565b602080601f83116001811461155957600084156115415750858301515b600019600386901b1c1916600185901b178555610bfe565b600085815260208120601f198616915b8281101561158857888601518255948401946001909101908401611569565b50858210156115a65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808335601e198436030181126115cd57600080fd5b8301803591506001600160401b038211156115e757600080fd5b602001915036819003821315610e7157600080fd5b6000808585111561160c57600080fd5b8386111561161957600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff1981358181169160148510156116535780818660140360031b1b83161692505b505092915050565b8015158114610b7357600080fd5b60006040823603121561167b57600080fd5b611683610ea3565b823561168e8161165b565b815260208301356001600160401b038111156116a957600080fd5b6116b536828601611188565b60208301525092915050565b8481526001600160a01b038416602082015260606040820181905260009061113e90830184866113b0565b600060208083850312156116ff57600080fd5b82516001600160401b038082111561171657600080fd5b908401906040828703121561172a57600080fd5b611732610ea3565b825161173d8161165b565b8152828401518281111561175057600080fd5b80840193505086601f84011261176557600080fd5b825191506117756111a783611161565b828152878584860101111561178957600080fd5b61179883868301878701611063565b938101939093525090949350505050565b60006bffffffffffffffffffffffff19808760601b168352808660601b166014840152506361636b2d60e01b60288301528284602c8401375060009101602c019081529392505050565b8581528460208201526080604082015260006118136080830185876113b0565b90506001600160401b0383166060830152969550505050505056fea264697066735822122087b087eb6388235ba433bd29aa1e260a25ca785124a467a1431fa47d234d7ccb64736f6c634300080f0033"; - -type EarthConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: EarthConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class Earth__factory extends ContractFactory { - constructor(...args: EarthConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _middleware: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_middleware, overrides || {}); - } - override deploy( - _middleware: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_middleware, overrides || {}) as Promise< - Earth & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): Earth__factory { - return super.connect(runner) as Earth__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): EarthInterface { - return new Interface(_abi) as EarthInterface; - } - static connect(address: string, runner?: ContractRunner | null): Earth { - return new Contract(address, _abi, runner) as unknown as Earth; - } -} diff --git a/src/evm/contracts/factories/FeeVault__factory.ts b/src/evm/contracts/factories/FeeVault__factory.ts deleted file mode 100644 index c3d843ac..00000000 --- a/src/evm/contracts/factories/FeeVault__factory.ts +++ /dev/null @@ -1,281 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { FeeVault, FeeVaultInterface } from "../FeeVault"; - -const _abi = [ - { - type: "function", - name: "depositOpenChannelFee", - inputs: [ - { - name: "src", - type: "address", - internalType: "address", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "function", - name: "depositSendPacketFee", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "withdrawFeesToOwner", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "event", - name: "OpenChannelFeeDeposited", - inputs: [ - { - name: "sourceAddress", - type: "address", - indexed: false, - internalType: "address", - }, - { - name: "version", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - indexed: false, - internalType: "enum ChannelOrder", - }, - { - name: "connectionHops", - type: "string[]", - indexed: false, - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "feeAmount", - type: "uint256", - indexed: false, - internalType: "uint256", - }, - ], - 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: "SendPacketFeeDeposited", - inputs: [ - { - name: "channelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: true, - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - indexed: false, - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - indexed: false, - internalType: "uint256[2]", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "IncorrectFeeSent", - inputs: [ - { - name: "expected", - type: "uint256", - internalType: "uint256", - }, - { - name: "sent", - type: "uint256", - internalType: "uint256", - }, - ], - }, - { - type: "error", - name: "NoFeeSent", - inputs: [], - }, - { - type: "error", - name: "SenderNotDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b5061001a33610023565b60018055610073565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108ae806100826000396000f3fe6080604052600436106100555760003560e01c80630be6a22d1461005a57806318e3404b14610071578063715018a6146100845780638da5cb5b14610099578063f2fde38b146100c5578063fce34e40146100e5575b600080fd5b34801561006657600080fd5b5061006f6100f8565b005b61006f61007f366004610410565b610135565b34801561009057600080fd5b5061006f6101ec565b3480156100a557600080fd5b50600054604080516001600160a01b039092168252519081900360200190f35b3480156100d157600080fd5b5061006f6100e036600461048a565b610200565b61006f6100f336600461055f565b610276565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015610132573d6000803e3d6000fd5b50565b61013d6102f6565b60006101516020808401359085013561069d565b61015d8335853561069d565b61016791906106bc565b905034811461019757604051635c6dd11360e11b8152600481018290523460248201526044015b60405180910390fd5b8367ffffffffffffffff16857f0733dc80f277e205edf5d913fa5d91fa0c4cc2635db600b365471c688356c03485856040516101d49291906106d4565b60405180910390a3506101e660018055565b50505050565b6101f461034f565b6101fe60006103a9565b565b61020861034f565b6001600160a01b03811661026d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161018e565b610132816103a9565b61027e6102f6565b3460000361029f57604051633d28b18360e11b815260040160405180910390fd5b7f8ab5595b5ac9231b64513ba86f6bd9fb73c51cae40c36083f7dfc2298e4429e687878787878787346040516102dc9897969594939291906107cd565b60405180910390a16102ed60018055565b50505050505050565b6002600154036103485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161018e565b6002600155565b6000546001600160a01b031633146101fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806040810183101561040a57600080fd5b92915050565b60008060008060c0858703121561042657600080fd5b84359350602085013567ffffffffffffffff8116811461044557600080fd5b925061045486604087016103f9565b915061046386608087016103f9565b905092959194509250565b80356001600160a01b038116811461048557600080fd5b919050565b60006020828403121561049c57600080fd5b6104a58261046e565b9392505050565b634e487b7160e01b600052604160045260246000fd5b80356003811061048557600080fd5b60008083601f8401126104e357600080fd5b50813567ffffffffffffffff8111156104fb57600080fd5b6020830191508360208260051b850101111561051657600080fd5b9250929050565b60008083601f84011261052f57600080fd5b50813567ffffffffffffffff81111561054757600080fd5b60208301915083602082850101111561051657600080fd5b600080600080600080600060a0888a03121561057a57600080fd5b6105838861046e565b9650602088013567ffffffffffffffff808211156105a057600080fd5b818a0191508a601f8301126105b457600080fd5b8135818111156105c6576105c66104ac565b604051601f8201601f19908116603f011681019083821181831017156105ee576105ee6104ac565b816040528281528d602084870101111561060757600080fd5b82602086016020830137600060208483010152809a5050505061062c60408b016104c2565b965060608a013591508082111561064257600080fd5b61064e8b838c016104d1565b909650945060808a013591508082111561066757600080fd5b506106748a828b0161051d565b989b979a50959850939692959293505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156106b7576106b7610687565b500290565b600082198211156106cf576106cf610687565b500190565b6080810160408483376040836040840137600081529392505050565b6003811061070e57634e487b7160e01b600052602160045260246000fd5b9052565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b81835260006020808501808196508560051b810191508460005b878110156107c05782840389528135601e1988360301811261077657600080fd5b8701858101903567ffffffffffffffff81111561079257600080fd5b8036038213156107a157600080fd5b6107ac868284610712565b9a87019a9550505090840190600101610755565b5091979650505050505050565b60018060a01b03891681526000602060c08184015289518060c085015260005b81811015610809578b810183015185820160e0015282016107ed565b8181111561081b57600060e083870101525b50601f01601f191683019050610834604084018a6106f0565b60e083820301606084015261084d60e08201888a61073b565b90508281036080840152610862818688610712565b9150508260a0830152999850505050505050505056fea2646970667358221220b7936cdc5fadcb826f93c0ddb1aa362a56d4cfc60d73fab62b8e842cda902ad264736f6c634300080f0033"; - -type FeeVaultConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: FeeVaultConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class FeeVault__factory extends ContractFactory { - constructor(...args: FeeVaultConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - FeeVault & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): FeeVault__factory { - return super.connect(runner) as FeeVault__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): FeeVaultInterface { - return new Interface(_abi) as FeeVaultInterface; - } - static connect(address: string, runner?: ContractRunner | null): FeeVault { - return new Contract(address, _abi, runner) as unknown as FeeVault; - } -} diff --git a/src/evm/contracts/factories/IDispatcher__factory.ts b/src/evm/contracts/factories/IDispatcher__factory.ts deleted file mode 100644 index ec9171a7..00000000 --- a/src/evm/contracts/factories/IDispatcher__factory.ts +++ /dev/null @@ -1,1822 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { IDispatcher, IDispatcherInterface } from "../IDispatcher"; - -const _abi = [ - { - type: "function", - name: "acknowledgement", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "bytes", - internalType: "bytes", - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelCloseConfirm", - inputs: [ - { - name: "portAddress", - type: "address", - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenAck", - inputs: [ - { - name: "local", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "counterparty", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenConfirm", - inputs: [ - { - name: "local", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "counterparty", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenTry", - inputs: [ - { - name: "local", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterparty", - type: "tuple", - internalType: "struct ChannelEnd", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "feeVault", - inputs: [], - outputs: [ - { - name: "feeVault", - type: "address", - internalType: "contract IFeeVault", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "getChannel", - inputs: [ - { - name: "portAddress", - type: "address", - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [ - { - name: "channel", - type: "tuple", - internalType: "struct Channel", - components: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "portId", - type: "string", - internalType: "string", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "getOptimisticConsensusState", - inputs: [ - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - { - name: "connection", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "portPrefix", - inputs: [], - outputs: [ - { - name: "portPrefix", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "removeConnection", - inputs: [ - { - name: "connection", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "sendPacket", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "packet", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "setClientForConnection", - inputs: [ - { - name: "connection", - type: "string", - internalType: "string", - }, - { - name: "lightClient", - type: "address", - internalType: "contract ILightClient", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "setPortPrefix", - inputs: [ - { - name: "_portPrefix", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "timeout", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "updateClientWithOptimisticConsensusState", - inputs: [ - { - name: "l1header", - type: "tuple", - internalType: "struct L1Header", - components: [ - { - name: "header", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "stateRoot", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "number", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct OpL2StateProof", - components: [ - { - name: "accountProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "outputRootProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "l2OutputProposalKey", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "l2BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "connection", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "writeTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "event", - name: "Acknowledgement", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "AcknowledgementError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseConfirm", - inputs: [ - { - name: "portAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseConfirmError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseInit", - inputs: [ - { - name: "portAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseInitError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenAck", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenAckError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenConfirm", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenConfirmError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenInit", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "version", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - indexed: false, - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - indexed: false, - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - indexed: false, - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - indexed: false, - internalType: "string", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenInitError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenTry", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "version", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - indexed: false, - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - indexed: false, - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - indexed: false, - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenTryError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "RecvPacket", - inputs: [ - { - name: "destPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "destChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "SendPacket", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "packet", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "timeoutTimestamp", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "Timeout", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: true, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "TimeoutError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "WriteAckPacket", - inputs: [ - { - name: "writerPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "writerChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "ackPacket", - type: "tuple", - indexed: false, - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - anonymous: false, - }, - { - type: "event", - name: "WriteTimeoutPacket", - inputs: [ - { - name: "writerPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "writerChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "timeoutHeight", - type: "tuple", - indexed: false, - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, -] as const; - -export class IDispatcher__factory { - static readonly abi = _abi; - static createInterface(): IDispatcherInterface { - return new Interface(_abi) as IDispatcherInterface; - } - static connect(address: string, runner?: ContractRunner | null): IDispatcher { - return new Contract(address, _abi, runner) as unknown as IDispatcher; - } -} diff --git a/src/evm/contracts/factories/IFeeVault__factory.ts b/src/evm/contracts/factories/IFeeVault__factory.ts deleted file mode 100644 index 9d017510..00000000 --- a/src/evm/contracts/factories/IFeeVault__factory.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { IFeeVault, IFeeVaultInterface } from "../IFeeVault"; - -const _abi = [ - { - type: "function", - name: "depositOpenChannelFee", - inputs: [ - { - name: "sender", - type: "address", - internalType: "address", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "function", - name: "depositSendPacketFee", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "function", - name: "withdrawFeesToOwner", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "event", - name: "OpenChannelFeeDeposited", - inputs: [ - { - name: "sourceAddress", - type: "address", - indexed: false, - internalType: "address", - }, - { - name: "version", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - indexed: false, - internalType: "enum ChannelOrder", - }, - { - name: "connectionHops", - type: "string[]", - indexed: false, - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "feeAmount", - type: "uint256", - indexed: false, - internalType: "uint256", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "SendPacketFeeDeposited", - inputs: [ - { - name: "channelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: true, - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - indexed: false, - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - indexed: false, - internalType: "uint256[2]", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "IncorrectFeeSent", - inputs: [ - { - name: "expected", - type: "uint256", - internalType: "uint256", - }, - { - name: "sent", - type: "uint256", - internalType: "uint256", - }, - ], - }, - { - type: "error", - name: "NoFeeSent", - inputs: [], - }, - { - type: "error", - name: "SenderNotDispatcher", - inputs: [], - }, -] as const; - -export class IFeeVault__factory { - static readonly abi = _abi; - static createInterface(): IFeeVaultInterface { - return new Interface(_abi) as IFeeVaultInterface; - } - static connect(address: string, runner?: ContractRunner | null): IFeeVault { - return new Contract(address, _abi, runner) as unknown as IFeeVault; - } -} diff --git a/src/evm/contracts/factories/ILightClient__factory.ts b/src/evm/contracts/factories/ILightClient__factory.ts deleted file mode 100644 index 0422ade4..00000000 --- a/src/evm/contracts/factories/ILightClient__factory.ts +++ /dev/null @@ -1,281 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { ILightClient, ILightClientInterface } from "../ILightClient"; - -const _abi = [ - { - type: "function", - name: "addOpConsensusState", - inputs: [ - { - name: "l1header", - type: "tuple", - internalType: "struct L1Header", - components: [ - { - name: "header", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "stateRoot", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "number", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct OpL2StateProof", - components: [ - { - name: "accountProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "outputRootProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "l2OutputProposalKey", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "l2BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "getFraudProofEndtime", - inputs: [ - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "endTime", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "getState", - inputs: [ - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "verifyMembership", - inputs: [ - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "expectedValue", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "verifyNonMembership", - inputs: [ - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, -] as const; - -export class ILightClient__factory { - static readonly abi = _abi; - static createInterface(): ILightClientInterface { - return new Interface(_abi) as ILightClientInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): ILightClient { - return new Contract(address, _abi, runner) as unknown as ILightClient; - } -} diff --git a/src/evm/contracts/factories/IProofVerifier__factory.ts b/src/evm/contracts/factories/IProofVerifier__factory.ts deleted file mode 100644 index 6f769bba..00000000 --- a/src/evm/contracts/factories/IProofVerifier__factory.ts +++ /dev/null @@ -1,290 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IProofVerifier, - IProofVerifierInterface, -} from "../IProofVerifier"; - -const _abi = [ - { - type: "function", - name: "verifyMembership", - inputs: [ - { - name: "appHash", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "function", - name: "verifyNonMembership", - inputs: [ - { - name: "appHash", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "function", - name: "verifyStateUpdate", - inputs: [ - { - name: "l1header", - type: "tuple", - internalType: "struct L1Header", - components: [ - { - name: "header", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "stateRoot", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "number", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct OpL2StateProof", - components: [ - { - name: "accountProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "outputRootProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "l2OutputProposalKey", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "l2BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "appHash", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "trustedL1BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "trustedL1BlockNumber", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "error", - name: "InvalidAppHash", - inputs: [], - }, - { - type: "error", - name: "InvalidIbcStateProof", - inputs: [], - }, - { - type: "error", - name: "InvalidL1BlockHash", - inputs: [], - }, - { - type: "error", - name: "InvalidL1BlockNumber", - inputs: [], - }, - { - type: "error", - name: "InvalidPacketProof", - inputs: [], - }, - { - type: "error", - name: "InvalidProofKey", - inputs: [], - }, - { - type: "error", - name: "InvalidProofValue", - inputs: [], - }, - { - type: "error", - name: "InvalidRLPEncodedL1BlockNumber", - inputs: [], - }, - { - type: "error", - name: "InvalidRLPEncodedL1StateRoot", - inputs: [], - }, - { - type: "error", - name: "MethodNotImplemented", - inputs: [], - }, -] as const; - -export class IProofVerifier__factory { - static readonly abi = _abi; - static createInterface(): IProofVerifierInterface { - return new Interface(_abi) as IProofVerifierInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IProofVerifier { - return new Contract(address, _abi, runner) as unknown as IProofVerifier; - } -} diff --git a/src/evm/contracts/factories/IUniversalChannelHandler__factory.ts b/src/evm/contracts/factories/IUniversalChannelHandler__factory.ts deleted file mode 100644 index 8d507253..00000000 --- a/src/evm/contracts/factories/IUniversalChannelHandler__factory.ts +++ /dev/null @@ -1,672 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IUniversalChannelHandler, - IUniversalChannelHandlerInterface, -} from "../IUniversalChannelHandler"; - -const _abi = [ - { - type: "function", - name: "MW_ID", - inputs: [], - outputs: [ - { - name: "MWID", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "closeChannel", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "connectedChannels", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "channel", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartychannelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "order", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "order", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - { - name: "counterpartychannelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ackPacket", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "openChannel", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "registerMwStack", - inputs: [ - { - name: "mwBitmap", - type: "uint256", - internalType: "uint256", - }, - { - name: "mwAddrs", - type: "address[]", - internalType: "address[]", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "sendUniversalPacket", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "sendUniversalPacketWithFee", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "setDispatcher", - inputs: [ - { - name: "dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "error", - name: "MwBitmpaCannotBeZero", - inputs: [], - }, -] as const; - -export class IUniversalChannelHandler__factory { - static readonly abi = _abi; - static createInterface(): IUniversalChannelHandlerInterface { - return new Interface(_abi) as IUniversalChannelHandlerInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IUniversalChannelHandler { - return new Contract( - address, - _abi, - runner - ) as unknown as IUniversalChannelHandler; - } -} diff --git a/src/evm/contracts/factories/IbcDispatcher.sol/IbcDispatcher__factory.ts b/src/evm/contracts/factories/IbcDispatcher.sol/IbcDispatcher__factory.ts deleted file mode 100644 index 4674390a..00000000 --- a/src/evm/contracts/factories/IbcDispatcher.sol/IbcDispatcher__factory.ts +++ /dev/null @@ -1,195 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IbcDispatcher, - IbcDispatcherInterface, -} from "../../IbcDispatcher.sol/IbcDispatcher"; - -const _abi = [ - { - type: "function", - name: "channelCloseConfirm", - inputs: [ - { - name: "portAddress", - type: "address", - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "channelOpenInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "feeVault", - inputs: [], - outputs: [ - { - name: "feeVault", - type: "address", - internalType: "contract IFeeVault", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "portPrefix", - inputs: [], - outputs: [ - { - name: "portPrefix", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "sendPacket", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "payload", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, -] as const; - -export class IbcDispatcher__factory { - static readonly abi = _abi; - static createInterface(): IbcDispatcherInterface { - return new Interface(_abi) as IbcDispatcherInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IbcDispatcher { - return new Contract(address, _abi, runner) as unknown as IbcDispatcher; - } -} diff --git a/src/evm/contracts/factories/IbcDispatcher.sol/IbcEventsEmitter__factory.ts b/src/evm/contracts/factories/IbcDispatcher.sol/IbcEventsEmitter__factory.ts deleted file mode 100644 index 3d569d00..00000000 --- a/src/evm/contracts/factories/IbcDispatcher.sol/IbcEventsEmitter__factory.ts +++ /dev/null @@ -1,549 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IbcEventsEmitter, - IbcEventsEmitterInterface, -} from "../../IbcDispatcher.sol/IbcEventsEmitter"; - -const _abi = [ - { - type: "event", - name: "Acknowledgement", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "AcknowledgementError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseConfirm", - inputs: [ - { - name: "portAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseConfirmError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseInit", - inputs: [ - { - name: "portAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelCloseInitError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenAck", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenAckError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenConfirm", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "channelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenConfirmError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenInit", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "version", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - indexed: false, - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - indexed: false, - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - indexed: false, - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - indexed: false, - internalType: "string", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenInitError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenTry", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "version", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - indexed: false, - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - indexed: false, - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - indexed: false, - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - indexed: false, - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "ChannelOpenTryError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "RecvPacket", - inputs: [ - { - name: "destPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "destChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "SendPacket", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "packet", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "timeoutTimestamp", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "Timeout", - inputs: [ - { - name: "sourcePortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "sourceChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: true, - internalType: "uint64", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "TimeoutError", - inputs: [ - { - name: "receiver", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "error", - type: "bytes", - indexed: false, - internalType: "bytes", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "WriteAckPacket", - inputs: [ - { - name: "writerPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "writerChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "ackPacket", - type: "tuple", - indexed: false, - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - anonymous: false, - }, - { - type: "event", - name: "WriteTimeoutPacket", - inputs: [ - { - name: "writerPortAddress", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "writerChannelId", - type: "bytes32", - indexed: true, - internalType: "bytes32", - }, - { - name: "sequence", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - { - name: "timeoutHeight", - type: "tuple", - indexed: false, - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - indexed: false, - internalType: "uint64", - }, - ], - anonymous: false, - }, -] as const; - -export class IbcEventsEmitter__factory { - static readonly abi = _abi; - static createInterface(): IbcEventsEmitterInterface { - return new Interface(_abi) as IbcEventsEmitterInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IbcEventsEmitter { - return new Contract(address, _abi, runner) as unknown as IbcEventsEmitter; - } -} diff --git a/src/evm/contracts/factories/IbcDispatcher.sol/IbcPacketSender__factory.ts b/src/evm/contracts/factories/IbcDispatcher.sol/IbcPacketSender__factory.ts deleted file mode 100644 index 9090042d..00000000 --- a/src/evm/contracts/factories/IbcDispatcher.sol/IbcPacketSender__factory.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IbcPacketSender, - IbcPacketSenderInterface, -} from "../../IbcDispatcher.sol/IbcPacketSender"; - -const _abi = [ - { - type: "function", - name: "sendPacket", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "payload", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, -] as const; - -export class IbcPacketSender__factory { - static readonly abi = _abi; - static createInterface(): IbcPacketSenderInterface { - return new Interface(_abi) as IbcPacketSenderInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IbcPacketSender { - return new Contract(address, _abi, runner) as unknown as IbcPacketSender; - } -} diff --git a/src/evm/contracts/factories/IbcDispatcher.sol/index.ts b/src/evm/contracts/factories/IbcDispatcher.sol/index.ts deleted file mode 100644 index 2416bdf3..00000000 --- a/src/evm/contracts/factories/IbcDispatcher.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IbcDispatcher__factory } from "./IbcDispatcher__factory"; -export { IbcEventsEmitter__factory } from "./IbcEventsEmitter__factory"; -export { IbcPacketSender__factory } from "./IbcPacketSender__factory"; diff --git a/src/evm/contracts/factories/IbcUtils__factory.ts b/src/evm/contracts/factories/IbcUtils__factory.ts deleted file mode 100644 index 579b765c..00000000 --- a/src/evm/contracts/factories/IbcUtils__factory.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { IbcUtils, IbcUtilsInterface } from "../IbcUtils"; - -const _abi = [ - { - type: "function", - name: "fromUniversalPacketBytes", - inputs: [ - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [ - { - name: "universalPacketData", - type: "tuple", - internalType: "struct UniversalPacket", - components: [ - { - name: "srcPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "mwBitmap", - type: "uint256", - internalType: "uint256", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "hexStrToAddress", - inputs: [ - { - name: "hexStr", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "addr", - type: "address", - internalType: "address", - }, - ], - stateMutability: "pure", - }, - { - type: "error", - name: "StringTooLong", - inputs: [], - }, - { - type: "error", - name: "invalidCharacter", - inputs: [], - }, - { - type: "error", - name: "invalidHexStringLength", - inputs: [], - }, -] as const; - -const _bytecode = - "0x61067e61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100405760003560e01c8063a1ef9a9814610045578063d5c39a9d14610075575b600080fd5b6100586100533660046103a1565b610095565b6040516001600160a01b0390911681526020015b60405180910390f35b610088610083366004610452565b610260565b60405161006c91906104c4565b805160009082906028146100bc576040516305229b2360e41b815260040160405180910390fd5b6000600160285b801561025657806100d381610555565b915050600060308583815181106100ec576100ec61056c565b016020015160f81c1080159061011c575060398583815181106101115761011161056c565b016020015160f81c11155b156101515760308583815181106101355761013561056c565b0160200151610147919060f81c610582565b60ff169050610224565b60418583815181106101655761016561056c565b016020015160f81c108015906101955750604685838151811061018a5761018a61056c565b016020015160f81c11155b156101ae5760378583815181106101355761013561056c565b60618583815181106101c2576101c261056c565b016020015160f81c108015906101f2575060668583815181106101e7576101e761056c565b016020015160f81c11155b1561020b5760578583815181106101355761013561056c565b60405163f379095160e01b815260040160405180910390fd5b61022d8361031a565b61023790826105a5565b61024190856105d4565b935061024e6010846105ff565b9250506100c3565b5090949350505050565b604080516080810182526000808252602082018190529181019190915260608082015260008060006020866000376000519250602080870160003760005191506020604087016000375060005160408051608081018252848152602081018490529081018290526060808201906102da908890818b61061e565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509152509695505050505050565b60006001600160a01b038211156103875760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663630206269747360c81b606482015260840160405180910390fd5b5090565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156103b357600080fd5b813567ffffffffffffffff808211156103cb57600080fd5b818401915084601f8301126103df57600080fd5b8135818111156103f1576103f161038b565b604051601f8201601f19908116603f011681019083821181831017156104195761041961038b565b8160405282815287602084870101111561043257600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806020838503121561046557600080fd5b823567ffffffffffffffff8082111561047d57600080fd5b818501915085601f83011261049157600080fd5b8135818111156104a057600080fd5b8660208285010111156104b257600080fd5b60209290920196919550909350505050565b6000602080835283518184015280840151604084015260408401516060840152606084015160808085015280518060a086015260005b818110156105165782810184015186820160c0015283016104fa565b8181111561052857600060c083880101525b50601f01601f19169390930160c001949350505050565b634e487b7160e01b600052601160045260246000fd5b6000816105645761056461053f565b506000190190565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168082101561059c5761059c61053f565b90039392505050565b60006001600160a01b03828116848216811515828404821116156105cb576105cb61053f565b02949350505050565b60006001600160a01b038281168482168083038211156105f6576105f661053f565b01949350505050565b60008160001904831182151516156106195761061961053f565b500290565b6000808585111561062e57600080fd5b8386111561063b57600080fd5b505082019391909203915056fea2646970667358221220509bffeb09588be4c4de4487b8b8068cbb919ab67f2b738fe043d7653436465d64736f6c634300080f0033"; - -type IbcUtilsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: IbcUtilsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class IbcUtils__factory extends ContractFactory { - constructor(...args: IbcUtilsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - IbcUtils & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): IbcUtils__factory { - return super.connect(runner) as IbcUtils__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): IbcUtilsInterface { - return new Interface(_abi) as IbcUtilsInterface; - } - static connect(address: string, runner?: ContractRunner | null): IbcUtils { - return new Contract(address, _abi, runner) as unknown as IbcUtils; - } -} diff --git a/src/evm/contracts/factories/Ibc__factory.ts b/src/evm/contracts/factories/Ibc__factory.ts deleted file mode 100644 index cb50e2b1..00000000 --- a/src/evm/contracts/factories/Ibc__factory.ts +++ /dev/null @@ -1,546 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { Ibc, IbcInterface } from "../Ibc"; - -const _abi = [ - { - type: "function", - name: "ackProofKey", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "proofKey", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "ackProofValue", - inputs: [ - { - name: "ack", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [ - { - name: "proofValue", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "channelProofKey", - inputs: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [ - { - name: "proofKey", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "channelProofKeyMemory", - inputs: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [ - { - name: "proofKey", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "channelProofValue", - inputs: [ - { - name: "state", - type: "ChannelState", - internalType: "enum ChannelState", - }, - { - name: "ordering", - type: "ChannelOrder", - internalType: "enum ChannelOrder", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [ - { - name: "proofValue", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "channelProofValueMemory", - inputs: [ - { - name: "state", - type: "ChannelState", - internalType: "enum ChannelState", - }, - { - name: "ordering", - type: "ChannelOrder", - internalType: "enum ChannelOrder", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [ - { - name: "proofValue", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "packetCommitmentProofKey", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "proofKey", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "packetCommitmentProofValue", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "proofValue", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "parseAckData", - inputs: [ - { - name: "ack", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [ - { - name: "ackData", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "toStr", - inputs: [ - { - name: "b", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [ - { - name: "outStr", - type: "string", - internalType: "string", - }, - ], - stateMutability: "pure", - }, - { - type: "function", - name: "toStr", - inputs: [ - { - name: "_number", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "outStr", - type: "string", - internalType: "string", - }, - ], - stateMutability: "pure", - }, -] as const; - -const _bytecode = - "0x611bb961003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100b35760003560e01c80634f9b0fb31161007b5780634f9b0fb31461013a5780636f6547261461014d57806374e970451461016057806391d6df7d14610181578063fb10f0a814610194578063fc8f29da146101a757600080fd5b806311a7a373146100b85780631dcd0305146100e157806325e0dd0e146100f4578063360b8cd7146101075780634b5728d114610127575b600080fd5b6100cb6100c6366004611126565b6101ba565b6040516100d891906111bc565b60405180910390f35b6100cb6100ef3660046111cf565b610236565b6100cb61010236600461124e565b610340565b61011a610115366004611341565b610435565b6040516100d89190611382565b6100cb610135366004611126565b610572565b6100cb6101483660046113a9565b6105bb565b6100cb61015b3660046114a9565b6105f2565b61017361016e366004611341565b610626565b6040519081526020016100d8565b6100cb61018f3660046111cf565b61067a565b6100cb6101a2366004611571565b61078e565b6101736101b5366004611126565b61080d565b60606101c96020830183611639565b6101d39080611659565b6101ec6101e36020860186611639565b60200135610236565b61020d6101ff606087016040880161169f565b6001600160401b031661067a565b60405160200161022094939291906116c8565b6040516020818303038152906040529050919050565b606060005b60208160ff1610801561026f5750828160ff166020811061025e5761025e611746565b1a60f81b6001600160f81b03191615155b15610286578061027e81611772565b91505061023b565b60008160ff166001600160401b038111156102a3576102a36113f4565b6040519080825280601f01601f1916602001820160405280156102cd576020820181803683370190505b50905060005b8260ff168160ff16101561033857848160ff16602081106102f6576102f6611746565b1a60f81b828260ff168151811061030f5761030f611746565b60200101906001600160f81b031916908160001a9053508061033081611772565b9150506102d3565b509392505050565b60606104276040518060a001604052808c600981111561036257610362611791565b60030b81526020018b600281111561037c5761037c611791565b60030b8152602001604051806040016040528088888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506020016103d487610236565b905281526020016103e5888a6117a7565b81526020018a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050915250610937565b9a9950505050505050505050565b6040805180820190915260008152606060208201527fcf118b5b37063214cf5ee4e00a21cbc1f63c9adff4e41aef620d6c96005c7a256104796009600185876117b4565b6040516104879291906117de565b6040518091039020146104fd5760408051808201909152600081526020810184600a856104b56002826117ee565b926104c2939291906117b4565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505091525061056b565b60408051808201909152600181526020810161056885600b866105216002826117ee565b9261052e939291906117b4565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061099f92505050565b90525b9392505050565b606061057e8280611639565b6105889080611659565b6105956101e38580611639565b6105a86101ff606087016040880161169f565b6040516020016102209493929190611805565b606083836105c884610236565b6040516020016105da93929190611889565b60405160208183030381529060405290509392505050565b6060826105fe83610236565b60405160200161060f9291906118e0565b604051602081830303815290604052905092915050565b60006002838360405161063a9291906117de565b602060405180830381855afa158015610657573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061056b9190611943565b6060816000036106a15750506040805180820190915260018152600360fc1b602082015290565b6000825b80156106cb57816106b58161195c565b92506106c49050600a8261198b565b90506106a5565b6000826001600160401b038111156106e5576106e56113f4565b6040519080825280601f01601f19166020018201604052801561070f576020820181803683370190505b509050825b801561078557610725600a8761199f565b6107309060306119b3565b60f81b8261073f6001846117ee565b8151811061074f5761074f611746565b60200101906001600160f81b031916908160001a905350610771600a8761198b565b95508061077d816119cb565b915050610714565b50949350505050565b60606108026040518060a001604052808960098111156107b0576107b0611791565b60030b81526020018860028111156107ca576107ca611791565b60030b815260200160405180604001604052808781526020016107ec87610236565b9052815260208101879052604001879052610937565b979650505050505050565b6000600261082160e0840160c0850161169f565b61083160a085016080860161169f565b61084160c0860160a0870161169f565b60026108506060880188611659565b60405161085e9291906117de565b602060405180830381855afa15801561087b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061089e9190611943565b6040516001600160c01b031960c095861b8116602083015293851b841660288201529190931b9091166030820152603881019190915260580160408051601f19818403018152908290526108f1916119e2565b602060405180830381855afa15801561090e573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906109319190611943565b92915050565b6060600061094483610b54565b6001600160401b0381111561095b5761095b6113f4565b6040519080825280601f01601f191660200182016040528015610985576020820181803683370190505b509050600061099684602084610c5a565b82525092915050565b805160609082906000036109c3576040805160008082526020820190925290610338565b600481516109d1919061199f565b15610a225760405162461bcd60e51b815260206004820152601c60248201527f696e76616c696420626173653634206465636f64657220696e70757400000000604482015260640160405180910390fd5b60006040518060a0016040528060808152602001611b04608091399050600060048351610a4f919061198b565b610a5a9060036119f4565b90506000610a698260206119b3565b6001600160401b03811115610a8057610a806113f4565b6040519080825280601f01601f191660200182016040528015610aaa576020820181803683370190505b5090508351840151603d60ff821603610ad757600183039250613d3d61ffff821603610ad7576001830392505b50818152600183018485518101602084015b81831015610b4657600483019250825160ff8082168601511660ff808360081c168701511660061b0160ff808360101c1687015116600c1b60ff808460181c168801511660121b010190508060e81b825250600381019050610ae9565b509298975050505050505050565b6000806000610b668460000151610de4565b610b719060016119b3565b610b7b90836119b3565b9150610b8a8460200151610de4565b610b959060016119b3565b610b9f90836119b3565b9150610bb6610bb18560400151610e0d565b610e58565b610bc19060016119b3565b610bcb90836119b3565b9150600090505b836060015151811015610c2f57610c0684606001518281518110610bf857610bf8611746565b602002602001015151610e58565b610c119060016119b3565b610c1b90836119b3565b915080610c278161195c565b915050610bd2565b610c3d846080015151610e58565b610c489060016119b3565b610c5290836119b3565b949350505050565b825160009083908190839060030b15610ca357610c7b600160008488610e6d565b610c8590836119b3565b9150610c9687600001518387610e8d565b610ca090836119b3565b91505b602087015160030b15610ce657610cbe600260008488610e6d565b610cc890836119b3565b9150610cd987602001518387610e8d565b610ce390836119b3565b91505b610cf4600360028488610e6d565b610cfe90836119b3565b9150610d0f87604001518387610ead565b610d1990836119b3565b9150866060015151600014610d99575060005b866060015151811015610d9957610d47600460028488610e6d565b610d5190836119b3565b9150610d7b87606001518281518110610d6c57610d6c611746565b60200260200101518387610f60565b610d8590836119b3565b915080610d918161195c565b915050610d2c565b60808701515115610dda57610db2600560028488610e6d565b610dbc90836119b3565b9150610dcd87608001518387610f60565b610dd790836119b3565b91505b61080283836117ee565b6000808260030b1215610df95750600a919050565b6109318263ffffffff16610f6d565b919050565b600080610e1e836000015151610e58565b610e299060016119b3565b610e3390826119b3565b9050610e43836020015151610e58565b610e4e9060016119b3565b61056b90826119b3565b6000610e6382610f6d565b61093190836119b3565b6000600885026007851617610e83818585610f8a565b9695505050505050565b600083610ea46001600160401b0382168585610f8a565b95945050505050565b6000828082610ebb87610e0d565b6001600160401b03811115610ed257610ed26113f4565b6040519080825280601f01601f191660200182016040528015610efc576020820181803683370190505b50905080856000610f0f8a602085610fcd565b9050610f1c81868a610f8a565b610f2690866119b3565b9450610f46610f368460206119b3565b610f4087856119b3565b8361105c565b610f5081866119b3565b94506060935061042786866117ee565b6000610c528484846110db565b60071c600060015b82156109315760079290921c91600101610f75565b600080828401607f86165b600787901c15610fbd578060801782535060079590951c9460019182019101607f8616610f95565b8082535050600101949350505050565b825151600090839081901561101257610fea600160028387610e6d565b610ff490826119b3565b905061100586600001518286610f60565b61100f90826119b3565b90505b602086015151156110525761102a6002808387610e6d565b61103490826119b3565b905061104586602001518286610f60565b61104f90826119b3565b90505b610e8382826117ee565b8060000361106957505050565b60208111156110a257825182526110816020836119b3565b915061108e6020846119b3565b925061109b6020826117ee565b9050611069565b600060016110b18360206117ee565b6110bd90610100611af7565b6110c791906117ee565b935183518516941916939093179091525050565b8251600090816110ec828686610f8a565b905060008186018501602088015b8483101561111957805160001a825360019283019291820191016110fa565b50610802905081836119b3565b60006020828403121561113857600080fd5b81356001600160401b0381111561114e57600080fd5b820160e0818503121561056b57600080fd5b60005b8381101561117b578181015183820152602001611163565b8381111561118a576000848401525b50505050565b600081518084526111a8816020860160208601611160565b601f01601f19169290920160200192915050565b60208152600061056b6020830184611190565b6000602082840312156111e157600080fd5b5035919050565b8035600a8110610e0857600080fd5b803560038110610e0857600080fd5b60008083601f84011261121857600080fd5b5081356001600160401b0381111561122f57600080fd5b60208301915083602082850101111561124757600080fd5b9250929050565b600080600080600080600080600060c08a8c03121561126c57600080fd5b6112758a6111e8565b985061128360208b016111f7565b975060408a01356001600160401b038082111561129f57600080fd5b6112ab8d838e01611206565b909950975060608c01359150808211156112c457600080fd5b818c0191508c601f8301126112d857600080fd5b8135818111156112e757600080fd5b8d60208260051b85010111156112fc57600080fd5b6020830197508096505060808c013591508082111561131a57600080fd5b506113278c828d01611206565b9a9d999c50979a9699959894979660a00135949350505050565b6000806020838503121561135457600080fd5b82356001600160401b0381111561136a57600080fd5b61137685828601611206565b90969095509350505050565b6020815281511515602082015260006020830151604080840152610c526060840182611190565b6000806000604084860312156113be57600080fd5b83356001600160401b038111156113d457600080fd5b6113e086828701611206565b909790965060209590950135949350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611432576114326113f4565b604052919050565b600082601f83011261144b57600080fd5b81356001600160401b03811115611464576114646113f4565b611477601f8201601f191660200161140a565b81815284602083860101111561148c57600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156114bc57600080fd5b82356001600160401b038111156114d257600080fd5b6114de8582860161143a565b95602094909401359450505050565b60006001600160401b0380841115611507576115076113f4565b8360051b602061151881830161140a565b8681529350908401908084018783111561153157600080fd5b855b838110156115655780358581111561154b5760008081fd5b6115578a828a0161143a565b835250908201908201611533565b50505050509392505050565b60008060008060008060c0878903121561158a57600080fd5b611593876111e8565b95506115a1602088016111f7565b945060408701356001600160401b03808211156115bd57600080fd5b6115c98a838b0161143a565b955060608901359150808211156115df57600080fd5b818901915089601f8301126115f357600080fd5b6116028a8335602085016114ed565b9450608089013591508082111561161857600080fd5b5061162589828a0161143a565b92505060a087013590509295509295509295565b60008235603e1983360301811261164f57600080fd5b9190910192915050565b6000808335601e1984360301811261167057600080fd5b8301803591506001600160401b0382111561168a57600080fd5b60200191503681900382131561124757600080fd5b6000602082840312156116b157600080fd5b81356001600160401b038116811461056b57600080fd5b6a61636b732f706f7274732f60a81b81528385600b8301376000848201692f6368616e6e656c732f60b01b600b820152845161170b816015840160208901611160565b8082019150506a2f73657175656e6365732f60a81b60158201528351611738816020840160208801611160565b016020019695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff81036117885761178861175c565b60010192915050565b634e487b7160e01b600052602160045260246000fd5b600061056b3684846114ed565b600080858511156117c457600080fd5b838611156117d157600080fd5b5050820193919092039150565b8183823760009101908152919050565b6000828210156118005761180061175c565b500390565b71636f6d6d69746d656e74732f706f7274732f60701b8152838560128301376000848201692f6368616e6e656c732f60b01b6012820152845161184f81601c840160208901611160565b6a2f73657175656e6365732f60a81b601c9290910191820152835161187b816027840160208801611160565b016027019695505050505050565b716368616e6e656c456e64732f706f7274732f60701b8152828460128301376000838201692f6368616e6e656c732f60b01b601282015283516118d381601c840160208801611160565b01601c0195945050505050565b716368616e6e656c456e64732f706f7274732f60701b81526000835161190d816012850160208801611160565b692f6368616e6e656c732f60b01b601291840191820152835161193781601c840160208801611160565b01601c01949350505050565b60006020828403121561195557600080fd5b5051919050565b60006001820161196e5761196e61175c565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261199a5761199a611975565b500490565b6000826119ae576119ae611975565b500690565b600082198211156119c6576119c661175c565b500190565b6000816119da576119da61175c565b506000190190565b6000825161164f818460208701611160565b6000816000190483118215151615611a0e57611a0e61175c565b500290565b600181815b80851115611a4e578160001904821115611a3457611a3461175c565b80851615611a4157918102915b93841c9390800290611a18565b509250929050565b600082611a6557506001610931565b81611a7257506000610931565b8160018114611a885760028114611a9257611aae565b6001915050610931565b60ff841115611aa357611aa361175c565b50506001821b610931565b5060208310610133831016604e8410600b8410161715611ad1575081810a610931565b611adb8383611a13565b8060001904821115611aef57611aef61175c565b029392505050565b600061056b8383611a5656fe000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e0000003f3435363738393a3b3c3d00000000000000000102030405060708090a0b0c0d0e0f101112131415161718190000000000001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000a26469706673582212202cf74cc88f99ea9d29669ef9144a728d2c52c67c5080a80684a47d24bf6ab86164736f6c634300080f0033"; - -type IbcConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: IbcConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class Ibc__factory extends ContractFactory { - constructor(...args: IbcConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - Ibc & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): Ibc__factory { - return super.connect(runner) as Ibc__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): IbcInterface { - return new Interface(_abi) as IbcInterface; - } - static connect(address: string, runner?: ContractRunner | null): Ibc { - return new Contract(address, _abi, runner) as unknown as Ibc; - } -} diff --git a/src/evm/contracts/factories/Mars.sol/Mars__factory.ts b/src/evm/contracts/factories/Mars.sol/Mars__factory.ts deleted file mode 100644 index 445fe23c..00000000 --- a/src/evm/contracts/factories/Mars.sol/Mars__factory.ts +++ /dev/null @@ -1,972 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../common"; -import type { Mars, MarsInterface } from "../../Mars.sol/Mars"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "ackPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "connectedChannels", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "greet", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "greetWithFee", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ackPacket", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvedPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "supportedVersions", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "timeoutPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelClose", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInitWithFee", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "event", - name: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ChannelNotFound", - inputs: [], - }, - { - type: "error", - name: "UnsupportedVersion", - inputs: [], - }, - { - type: "error", - name: "notIbcDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x600360c0818152620312e360ec1b60e0526080908152610140604052610100918252620322e360ec1b6101205260a09190915262000042906006906002620000f6565b503480156200005057600080fd5b5060405162002af738038062002af78339810160408190526200007391620001cd565b806200007f33620000a6565b600180546001600160a01b0319166001600160a01b03929092169190911790555062000370565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000141579160200282015b82811115620001415782518290620001309082620002a4565b509160200191906001019062000117565b506200014f92915062000153565b5090565b808211156200014f5760006200016a828262000174565b5060010162000153565b508054620001829062000215565b6000825580601f1062000193575050565b601f016020900490600052602060002090810190620001b39190620001b6565b50565b5b808211156200014f5760008155600101620001b7565b600060208284031215620001e057600080fd5b81516001600160a01b0381168114620001f857600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022a57607f821691505b6020821081036200024b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200029f57600081815260208120601f850160051c810160208610156200027a5750805b601f850160051c820191505b818110156200029b5782815560010162000286565b5050505b505050565b81516001600160401b03811115620002c057620002c0620001ff565b620002d881620002d1845462000215565b8462000251565b602080601f831160018114620003105760008415620002f75750858301515b600019600386901b1c1916600185901b1785556200029b565b600085815260208120601f198616915b82811015620003415788860151825594840194600190910190840162000320565b5085821015620003605787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61277780620003806000396000f3fe6080604052600436106101445760003560e01c8063715018a6116100b6578063bb3f9f8d1161006f578063bb3f9f8d146103b6578063cb7e9057146103e4578063e847e28014610404578063f12b758a14610424578063f2fde38b14610444578063fad28a241461046457600080fd5b8063715018a6146102ef5780637a805598146103045780637a9ccc4b146103245780637d622184146103445780637e1d42b5146103645780638da5cb5b1461038457600080fd5b80634dcc0aa6116101085780634dcc0aa61461021d5780634eeb73911461024a578063558850ac1461027c5780635bfd12b81461029c578063602f9834146102bc57806361995001146102dc57600080fd5b80631eb7dd5e146101505780633513a995146101725780633f9fdbe4146101a25780634252ae9b146101c25780634bdb5597146101f057600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b3660046114d1565b610484565b005b610185610180366004611554565b6104b5565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101ae57600080fd5b506101706101bd3660046114d1565b610555565b3480156101ce57600080fd5b506101e26101dd3660046115d4565b610611565b60405161019992919061163a565b3480156101fc57600080fd5b5061021061020b36600461176b565b6106cd565b60405161019991906118a4565b34801561022957600080fd5b5061023d61023836600461194a565b610712565b6040516101999190611a32565b34801561025657600080fd5b5061026a6102653660046115d4565b6108ed565b60405161019996959493929190611a82565b34801561028857600080fd5b506101706102973660046115d4565b610b45565b3480156102a857600080fd5b506101856102b7366004611af7565b610ba7565b3480156102c857600080fd5b506101706102d7366004611b6d565b610c2a565b6101706102ea366004611bf3565b610c9b565b3480156102fb57600080fd5b50610170610d67565b34801561031057600080fd5b5061017061031f366004611bf3565b610d7b565b34801561033057600080fd5b5061021061033f366004611cb4565b610dfd565b34801561035057600080fd5b5061021061035f3660046115d4565b610e35565b34801561037057600080fd5b5061017061037f366004611d3e565b610ee1565b34801561039057600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610199565b3480156103c257600080fd5b506103d66103d13660046115d4565b610f4d565b604051908152602001610199565b3480156103f057600080fd5b5060015461039e906001600160a01b031681565b34801561041057600080fd5b5061017061041f366004611da8565b610f6e565b34801561043057600080fd5b5061026a61043f3660046115d4565b610fa4565b34801561045057600080fd5b5061017061045f366004611e0f565b610fb4565b34801561047057600080fd5b5061017061047f3660046115d4565b611032565b6001546001600160a01b031633146104af576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c906104ec9088908b908b908a90600401611e55565b6020604051808303816000875af115801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611e89565b60015490915061054b906001600160a01b03168683868661105d565b9695505050505050565b6001546001600160a01b03163314610580576040516321bf7f4960e01b815260040160405180910390fd5b6000805b6005548110156105eb5785600582815481106105a2576105a2611ea6565b9060005260206000200154036105d957600581815481106105c5576105c5611ea6565b6000918252602082200155600191506105eb565b806105e381611ebc565b915050610584565b508061060a57604051630781f76560e21b815260040160405180910390fd5b5050505050565b6003818154811061062157600080fd5b60009182526020909120600290910201805460018201805460ff90921693509061064a90611ee3565b80601f016020809104026020016040519081016040528092919081815260200182805461067690611ee3565b80156106c35780601f10610698576101008083540402835291602001916106c3565b820191906000526020600020905b8154815290600101906020018083116106a657829003601f168201915b5050505050905082565b6001546060906001600160a01b031633146106fb576040516321bf7f4960e01b815260040160405180910390fd5b61070686848461112c565b98975050505050505050565b6040805180820190915260008152606060208201526001546001600160a01b03163314610752576040516321bf7f4960e01b815260040160405180910390fd5b600280546001810182556000919091528251805184926008027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0191908290819061079d9082611f7a565b506020918201516001909101558201518051600283019081906107c09082611f7a565b5060209190910151600190910155604082015160048201805467ffffffffffffffff19166001600160401b03909216919091179055606082015160058201906108099082611f7a565b50608082015180516006830180546020938401516001600160401b03908116600160401b026fffffffffffffffffffffffffffffffff199092169381169390931717905560a090930151600790920180549290931667ffffffffffffffff1992909216919091179091556040805180820182526001815290519091828101916108d391017f7b20226163636f756e74223a20226163636f756e74222c20227265706c79223a8152732022676f7420746865206d65737361676522207d60601b602082015260340190565b60405160208183030381529060405281525090505b919050565b600481815481106108fd57600080fd5b90600052602060002090600802016000915090508060000160405180604001604052908160008201805461093090611ee3565b80601f016020809104026020016040519081016040528092919081815260200182805461095c90611ee3565b80156109a95780601f1061097e576101008083540402835291602001916109a9565b820191906000526020600020905b81548152906001019060200180831161098c57829003601f168201915b5050505050815260200160018201548152505090806002016040518060400160405290816000820180546109dc90611ee3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0890611ee3565b8015610a555780601f10610a2a57610100808354040283529160200191610a55565b820191906000526020600020905b815481529060010190602001808311610a3857829003601f168201915b505050918352505060019190910154602090910152600482015460058301805492936001600160401b0390921692610a8c90611ee3565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab890611ee3565b8015610b055780601f10610ada57610100808354040283529160200191610b05565b820191906000526020600020905b815481529060010190602001808311610ae857829003601f168201915b50506040805180820190915260068601546001600160401b038082168352600160401b909104811660208301526007909601549495909416925088915050565b610b4d611252565b6001546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b158015610b9357600080fd5b505af115801561060a573d6000803e3d6000fd5b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c90610bde908690899089908890600401611e55565b6020604051808303816000875af1158015610bfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c219190611e89565b95945050505050565b6001546001600160a01b03163314610c55576040516321bf7f4960e01b815260040160405180910390fd5b6004805460018101825560009190915281906008027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01610c968282612295565b505050565b610ca3611252565b60015460405163418925b760e01b81526001600160a01b0390911690819063418925b790610ce3908c908c908c908c908c908c908c908c906004016124c5565b600060405180830381600087803b158015610cfd57600080fd5b505af1158015610d11573d6000803e3d6000fd5b50505050610d5c818a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c92508a915089905088886112ac565b505050505050505050565b610d6f611252565b610d796000611361565b565b610d83611252565b60015460405163418925b760e01b81526001600160a01b039091169063418925b790610dc1908b908b908b908b908b908b908b908b906004016124c5565b600060405180830381600087803b158015610ddb57600080fd5b505af1158015610def573d6000803e3d6000fd5b505050505050505050505050565b6001546060906001600160a01b03163314610e2b576040516321bf7f4960e01b815260040160405180910390fd5b61070683836113b1565b60068181548110610e4557600080fd5b906000526020600020016000915090508054610e6090611ee3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8c90611ee3565b8015610ed95780601f10610eae57610100808354040283529160200191610ed9565b820191906000526020600020905b815481529060010190602001808311610ebc57829003601f168201915b505050505081565b6001546001600160a01b03163314610f0c576040516321bf7f4960e01b815260040160405180910390fd5b6003805460018101825560009190915281906002027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016104af8282612525565b60058181548110610f5d57600080fd5b600091825260209091200154905081565b6001546001600160a01b03163314610f99576040516321bf7f4960e01b815260040160405180910390fd5b61060a84838361112c565b600281815481106108fd57600080fd5b610fbc611252565b6001600160a01b0381166110265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61102f81611361565b50565b6001546001600160a01b0316331461102f576040516321bf7f4960e01b815260040160405180910390fd5b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af115801561109d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c19190612605565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b81526004016110f39493929190612622565b6000604051808303818588803b15801561110c57600080fd5b505af1158015611120573d6000803e3d6000fd5b50505050505050505050565b606060005b600654811015611231576006818154811061114e5761114e611ea6565b906000526020600020016040516020016111689190612654565b6040516020818303038152906040528051906020012084846040516020016111919291906126ca565b604051602081830303815290604052805190602001200361121f57600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001859055604080516020601f860181900481028201810190925284815290859085908190840183828082843760009201919091525092945061124b9350505050565b8061122981611ebc565b915050611131565b5060405163b01318a560e01b815260040160405180910390fd5b9392505050565b6000546001600160a01b03163314610d795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161101d565b866001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af11580156112ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113109190612605565b6001600160a01b031663fce34e4034308989898989896040518963ffffffff1660e01b815260040161134897969594939291906126da565b6000604051808303818588803b158015610ddb57600080fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060005b60065481101561123157600681815481106113d3576113d3611ea6565b906000526020600020016040516020016113ed9190612654565b6040516020818303038152906040528051906020012084846040516020016114169291906126ca565b60405160208183030381529060405280519060200120036114715783838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294506114839350505050565b8061147b81611ebc565b9150506113b6565b92915050565b60008083601f84011261149b57600080fd5b5081356001600160401b038111156114b257600080fd5b6020830191508360208285010111156114ca57600080fd5b9250929050565b600080600080606085870312156114e757600080fd5b8435935060208501356001600160401b0381111561150457600080fd5b61151087828801611489565b9598909750949560400135949350505050565b6001600160401b038116811461102f57600080fd5b80356108e881611523565b806040810183101561148357600080fd5b60008060008060008060e0878903121561156d57600080fd5b86356001600160401b0381111561158357600080fd5b61158f89828a01611489565b9097509550506020870135935060408701356115aa81611523565b92506115b98860608901611543565b91506115c88860a08901611543565b90509295509295509295565b6000602082840312156115e657600080fd5b5035919050565b6000815180845260005b81811015611613576020818501810151868301820152016115f7565b81811115611625576000602083870101525b50601f01601f19169290920160200192915050565b821515815260406020820152600061165560408301846115ed565b949350505050565b8035600381106108e857600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156116a4576116a461166c565b60405290565b60405160c081016001600160401b03811182821017156116a4576116a461166c565b604051601f8201601f191681016001600160401b03811182821017156116f4576116f461166c565b604052919050565b600082601f83011261170d57600080fd5b81356001600160401b038111156117265761172661166c565b611739601f8201601f19166020016116cc565b81815284602083860101111561174e57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a03121561178657600080fd5b61178f8861165d565b965060208801356001600160401b03808211156117ab57600080fd5b818a0191508a601f8301126117bf57600080fd5b8135818111156117d1576117d161166c565b8060051b6117e1602082016116cc565b9182526020818501810192908101908e8411156117fd57600080fd5b6020860192505b8383101561183b57848335111561181a57600080fd5b61182a8f602085358901016116fc565b825260209283019290910190611804565b9a5050505060408a0135965060608a013591508082111561185b57600080fd5b6118678b838c016116fc565b955060808a0135945060a08a013591508082111561188457600080fd5b506118918a828b01611489565b989b979a50959850939692959293505050565b60208152600061124b60208301846115ed565b6000604082840312156118c957600080fd5b6118d1611682565b905081356001600160401b038111156118e957600080fd5b6118f5848285016116fc565b8252506020820135602082015292915050565b60006040828403121561191a57600080fd5b611922611682565b9050813561192f81611523565b8152602082013561193f81611523565b602082015292915050565b60006020828403121561195c57600080fd5b81356001600160401b038082111561197357600080fd5b9083019060e0828603121561198757600080fd5b61198f6116aa565b82358281111561199e57600080fd5b6119aa878286016118b7565b8252506020830135828111156119bf57600080fd5b6119cb878286016118b7565b6020830152506119dd60408401611538565b60408201526060830135828111156119f457600080fd5b611a00878286016116fc565b606083015250611a138660808501611908565b6080820152611a2460c08401611538565b60a082015295945050505050565b602081528151151560208201526000602083015160408084015261165560608401826115ed565b6000815160408452611a6e60408501826115ed565b602093840151949093019390935250919050565b60e081526000611a9560e0830189611a59565b8281036020840152611aa78189611a59565b90506001600160401b0380881660408501528382036060850152611acb82886115ed565b92508086511660808501528060208701511660a085015280851660c08501525050979650505050505050565b60008060008060608587031215611b0d57600080fd5b84356001600160401b03811115611b2357600080fd5b611b2f87828801611489565b909550935050602085013591506040850135611b4a81611523565b939692955090935050565b600060e08284031215611b6757600080fd5b50919050565b600060208284031215611b7f57600080fd5b81356001600160401b03811115611b9557600080fd5b61165584828501611b55565b801515811461102f57600080fd5b60008083601f840112611bc157600080fd5b5081356001600160401b03811115611bd857600080fd5b6020830191508360208260051b85010111156114ca57600080fd5b60008060008060008060008060a0898b031215611c0f57600080fd5b88356001600160401b0380821115611c2657600080fd5b611c328c838d01611489565b909a509850889150611c4660208c0161165d565b975060408b01359150611c5882611ba1565b90955060608a01359080821115611c6e57600080fd5b611c7a8c838d01611baf565b909650945060808b0135915080821115611c9357600080fd5b50611ca08b828c01611489565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611ccf57600080fd5b611cd88861165d565b965060208801356001600160401b0380821115611cf457600080fd5b611d008b838c01611baf565b909850965060408a0135915080821115611d1957600080fd5b611d258b838c01611489565b909650945060608a013591508082111561188457600080fd5b60008060408385031215611d5157600080fd5b82356001600160401b0380821115611d6857600080fd5b611d7486838701611b55565b93506020850135915080821115611d8a57600080fd5b50830160408186031215611d9d57600080fd5b809150509250929050565b60008060008060608587031215611dbe57600080fd5b843593506020850135925060408501356001600160401b03811115611de257600080fd5b611dee87828801611489565b95989497509550505050565b6001600160a01b038116811461102f57600080fd5b600060208284031215611e2157600080fd5b813561124b81611dfa565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b848152606060208201526000611e6f606083018587611e2c565b90506001600160401b038316604083015295945050505050565b600060208284031215611e9b57600080fd5b815161124b81611523565b634e487b7160e01b600052603260045260246000fd5b600060018201611edc57634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680611ef757607f821691505b602082108103611b6757634e487b7160e01b600052602260045260246000fd5b601f821115610c9657600081815260208120601f850160051c81016020861015611f3e5750805b601f850160051c820191505b81811015611f5d57828155600101611f4a565b505050505050565b600019600383901b1c191660019190911b1790565b81516001600160401b03811115611f9357611f9361166c565b611fa781611fa18454611ee3565b84611f17565b602080601f831160018114611fd65760008415611fc45750858301515b611fce8582611f65565b865550611f5d565b600085815260208120601f198616915b8281101561200557888601518255948401946001909101908401611fe6565b50858210156120235787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008235603e1983360301811261204957600080fd5b9190910192915050565b6000808335601e1984360301811261206a57600080fd5b8301803591506001600160401b0382111561208457600080fd5b6020019150368190038213156114ca57600080fd5b6120a38283612053565b6001600160401b038111156120ba576120ba61166c565b6120ce816120c88554611ee3565b85611f17565b6000601f8211600181146120fc57600083156120ea5750838201355b6120f48482611f65565b865550612156565b600085815260209020601f19841690835b8281101561212d578685013582556020948501946001909201910161210d565b508482101561214a5760001960f88660031b161c19848701351681555b505060018360011b0185555b50505050602082013560018201555050565b6000813561148381611523565b6001600160401b0383111561218c5761218c61166c565b6121a08361219a8354611ee3565b83611f17565b6000601f8411600181146121ce57600085156121bc5750838201355b6121c68682611f65565b84555061060a565b600083815260209020601f19861690835b828110156121ff57868501358255602094850194600190920191016121df565b508682101561221c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b813561223981611523565b815467ffffffffffffffff19166001600160401b03821617825550602082013561226281611523565b81546fffffffffffffffff0000000000000000191660409190911b6fffffffffffffffff00000000000000001617905550565b61229f8283612033565b6122a98182612053565b6001600160401b038111156122c0576122c061166c565b6122d4816122ce8654611ee3565b86611f17565b6000601f82116001811461230257600083156122f05750838201355b6122fa8482611f65565b87555061235c565b600086815260209020601f19841690835b828110156123335786850135825560209485019460019092019101612313565b50848210156123505760001960f88660031b161c19848701351681555b505060018360011b0186555b50505050602081013560018301555061238461237b6020840184612033565b60028301612099565b6123b461239360408401612168565b600483016001600160401b0382166001600160401b03198254161781555050565b6123c16060830183612053565b6123cf818360058601612175565b50506123e1608083016006830161222e565b6124116123f060c08401612168565b600783016001600160401b0382166001600160401b03198254161781555050565b5050565b6003811061243357634e487b7160e01b600052602160045260246000fd5b9052565b818352600060208085019450848460051b86018460005b878110156124b85783830389528135601e1988360301811261246f57600080fd5b870185810190356001600160401b0381111561248a57600080fd5b80360382131561249957600080fd5b6124a4858284611e2c565b9a87019a945050509084019060010161244e565b5090979650505050505050565b60a0815260006124d960a083018a8c611e2c565b6124e6602084018a612415565b87151560408401528281036060840152612501818789612437565b90508281036080840152612516818587611e2c565b9b9a5050505050505050505050565b813561253081611ba1565b815490151560ff1660ff19919091161781556001808201602061255585820186612053565b6001600160401b0381111561256c5761256c61166c565b61257a816122ce8654611ee3565b6000601f8211600181146125a857600083156125965750838201355b6125a08482611f65565b875550610d5c565b600086815260209020601f19841690835b828110156125d657868501358255938701939089019087016125b9565b50848210156125f35760001960f88660031b161c19848701351681555b50505050841b90930190915550505050565b60006020828403121561261757600080fd5b815161124b81611dfa565b8481526001600160401b038416602082015260c081016040848184013760408360808401376000815295945050505050565b600080835461266281611ee3565b6001828116801561267a576001811461268f576126be565b60ff19841687528215158302870194506126be565b8760005260208060002060005b858110156126b55781548a82015290840190820161269c565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b6001600160a01b038816815260a0602082018190526000906126fe908301896115ed565b61270b6040840189612415565b828103606084015261271e818789612437565b90508281036080840152612733818587611e2c565b9a995050505050505050505056fea2646970667358221220ee1e59079111c168d83d345cc9e1c8c9137f4a4335d375646edab0d18584ba2764736f6c634300080f0033"; - -type MarsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: MarsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class Mars__factory extends ContractFactory { - constructor(...args: MarsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_dispatcher, overrides || {}); - } - override deploy( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_dispatcher, overrides || {}) as Promise< - Mars & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): Mars__factory { - return super.connect(runner) as Mars__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): MarsInterface { - return new Interface(_abi) as MarsInterface; - } - static connect(address: string, runner?: ContractRunner | null): Mars { - return new Contract(address, _abi, runner) as unknown as Mars; - } -} diff --git a/src/evm/contracts/factories/Mars.sol/PanickingMars__factory.ts b/src/evm/contracts/factories/Mars.sol/PanickingMars__factory.ts deleted file mode 100644 index 64a0c57d..00000000 --- a/src/evm/contracts/factories/Mars.sol/PanickingMars__factory.ts +++ /dev/null @@ -1,978 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../common"; -import type { - PanickingMars, - PanickingMarsInterface, -} from "../../Mars.sol/PanickingMars"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "ackPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "connectedChannels", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "greet", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "greetWithFee", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvedPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "supportedVersions", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "timeoutPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelClose", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInitWithFee", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "event", - name: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ChannelNotFound", - inputs: [], - }, - { - type: "error", - name: "UnsupportedVersion", - inputs: [], - }, - { - type: "error", - name: "notIbcDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x600360c0818152620312e360ec1b60e0526080908152610140604052610100918252620322e360ec1b6101205260a09190915262000042906006906002620000f9565b503480156200005057600080fd5b50604051620028f8380380620028f88339810160408190526200007391620001d0565b80806200008033620000a9565b600180546001600160a01b0319166001600160a01b039290921691909117905550620003739050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000144579160200282015b82811115620001445782518290620001339082620002a7565b50916020019190600101906200011a565b506200015292915062000156565b5090565b80821115620001525760006200016d828262000177565b5060010162000156565b508054620001859062000218565b6000825580601f1062000196575050565b601f016020900490600052602060002090810190620001b69190620001b9565b50565b5b80821115620001525760008155600101620001ba565b600060208284031215620001e357600080fd5b81516001600160a01b0381168114620001fb57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022d57607f821691505b6020821081036200024e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a257600081815260208120601f850160051c810160208610156200027d5750805b601f850160051c820191505b818110156200029e5782815560010162000289565b5050505b505050565b81516001600160401b03811115620002c357620002c362000202565b620002db81620002d4845462000218565b8462000254565b602080601f831160018114620003135760008415620002fa5750858301515b600019600386901b1c1916600185901b1785556200029e565b600085815260208120601f198616915b82811015620003445788860151825594840194600190910190840162000323565b5085821015620003635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61257580620003836000396000f3fe6080604052600436106101445760003560e01c8063715018a6116100b6578063bb3f9f8d1161006f578063bb3f9f8d146103b6578063cb7e9057146103e4578063e847e28014610404578063f12b758a14610424578063f2fde38b14610444578063fad28a241461046457600080fd5b8063715018a6146102ef5780637a805598146103045780637a9ccc4b146103245780637d622184146103445780637e1d42b5146103645780638da5cb5b1461038457600080fd5b80634dcc0aa6116101085780634dcc0aa61461021d5780634eeb73911461024a578063558850ac1461027c5780635bfd12b81461029c578063602f9834146102bc57806361995001146102dc57600080fd5b80631eb7dd5e146101505780633513a995146101725780633f9fdbe4146101a25780634252ae9b146101c25780634bdb5597146101f057600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b36600461136a565b610484565b005b6101856101803660046113f2565b6104b5565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101ae57600080fd5b506101706101bd36600461136a565b610555565b3480156101ce57600080fd5b506101e26101dd366004611472565b610611565b6040516101999291906114d8565b3480156101fc57600080fd5b5061021061020b366004611609565b6106cd565b6040516101999190611742565b34801561022957600080fd5b5061023d6102383660046117e8565b610712565b60405161019991906118d0565b34801561025657600080fd5b5061026a610265366004611472565b610781565b60405161019996959493929190611920565b34801561028857600080fd5b50610170610297366004611472565b6109de565b3480156102a857600080fd5b506101856102b7366004611995565b610a40565b3480156102c857600080fd5b506101706102d7366004611a0b565b610ac3565b6101706102ea366004611a91565b610b34565b3480156102fb57600080fd5b50610170610c00565b34801561031057600080fd5b5061017061031f366004611a91565b610c14565b34801561033057600080fd5b5061021061033f366004611b52565b610c96565b34801561035057600080fd5b5061021061035f366004611472565b610cce565b34801561037057600080fd5b5061017061037f366004611bdc565b610d7a565b34801561039057600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610199565b3480156103c257600080fd5b506103d66103d1366004611472565b610de6565b604051908152602001610199565b3480156103f057600080fd5b5060015461039e906001600160a01b031681565b34801561041057600080fd5b5061017061041f366004611c46565b610e07565b34801561043057600080fd5b5061026a61043f366004611472565b610e3d565b34801561045057600080fd5b5061017061045f366004611cad565b610e4d565b34801561047057600080fd5b5061017061047f366004611472565b610ecb565b6001546001600160a01b031633146104af576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c906104ec9088908b908b908a90600401611cf3565b6020604051808303816000875af115801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611d27565b60015490915061054b906001600160a01b031686838686610ef6565b9695505050505050565b6001546001600160a01b03163314610580576040516321bf7f4960e01b815260040160405180910390fd5b6000805b6005548110156105eb5785600582815481106105a2576105a2611d44565b9060005260206000200154036105d957600581815481106105c5576105c5611d44565b6000918252602082200155600191506105eb565b806105e381611d5a565b915050610584565b508061060a57604051630781f76560e21b815260040160405180910390fd5b5050505050565b6003818154811061062157600080fd5b60009182526020909120600290910201805460018201805460ff90921693509061064a90611d81565b80601f016020809104026020016040519081016040528092919081815260200182805461067690611d81565b80156106c35780601f10610698576101008083540402835291602001916106c3565b820191906000526020600020905b8154815290600101906020018083116106a657829003601f168201915b5050505050905082565b6001546060906001600160a01b031633146106fb576040516321bf7f4960e01b815260040160405180910390fd5b610706868484610fc5565b98975050505050505050565b6040805180820190915260008152606060208201526001546001600160a01b03163314610752576040516321bf7f4960e01b815260040160405180910390fd5b61075a611db5565b50506040805180820182526000808252825160208181019094529081529181019190915290565b6004818154811061079157600080fd5b9060005260206000209060080201600091509050806000016040518060400160405290816000820180546107c490611d81565b80601f01602080910402602001604051908101604052809291908181526020018280546107f090611d81565b801561083d5780601f106108125761010080835404028352916020019161083d565b820191906000526020600020905b81548152906001019060200180831161082057829003601f168201915b50505050508152602001600182015481525050908060020160405180604001604052908160008201805461087090611d81565b80601f016020809104026020016040519081016040528092919081815260200182805461089c90611d81565b80156108e95780601f106108be576101008083540402835291602001916108e9565b820191906000526020600020905b8154815290600101906020018083116108cc57829003601f168201915b505050918352505060019190910154602090910152600482015460058301805492936001600160401b039092169261092090611d81565b80601f016020809104026020016040519081016040528092919081815260200182805461094c90611d81565b80156109995780601f1061096e57610100808354040283529160200191610999565b820191906000526020600020905b81548152906001019060200180831161097c57829003601f168201915b50506040805180820190915260068601546001600160401b03808216835268010000000000000000909104811660208301526007909601549495909416925088915050565b6109e66110eb565b6001546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b158015610a2c57600080fd5b505af115801561060a573d6000803e3d6000fd5b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c90610a77908690899089908890600401611cf3565b6020604051808303816000875af1158015610a96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aba9190611d27565b95945050505050565b6001546001600160a01b03163314610aee576040516321bf7f4960e01b815260040160405180910390fd5b6004805460018101825560009190915281906008027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01610b2f8282612090565b505050565b610b3c6110eb565b60015460405163418925b760e01b81526001600160a01b0390911690819063418925b790610b7c908c908c908c908c908c908c908c908c906004016122c3565b600060405180830381600087803b158015610b9657600080fd5b505af1158015610baa573d6000803e3d6000fd5b50505050610bf5818a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c92508a91508990508888611145565b505050505050505050565b610c086110eb565b610c1260006111fa565b565b610c1c6110eb565b60015460405163418925b760e01b81526001600160a01b039091169063418925b790610c5a908b908b908b908b908b908b908b908b906004016122c3565b600060405180830381600087803b158015610c7457600080fd5b505af1158015610c88573d6000803e3d6000fd5b505050505050505050505050565b6001546060906001600160a01b03163314610cc4576040516321bf7f4960e01b815260040160405180910390fd5b610706838361124a565b60068181548110610cde57600080fd5b906000526020600020016000915090508054610cf990611d81565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2590611d81565b8015610d725780601f10610d4757610100808354040283529160200191610d72565b820191906000526020600020905b815481529060010190602001808311610d5557829003601f168201915b505050505081565b6001546001600160a01b03163314610da5576040516321bf7f4960e01b815260040160405180910390fd5b6003805460018101825560009190915281906002027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016104af8282612323565b60058181548110610df657600080fd5b600091825260209091200154905081565b6001546001600160a01b03163314610e32576040516321bf7f4960e01b815260040160405180910390fd5b61060a848383610fc5565b6002818154811061079157600080fd5b610e556110eb565b6001600160a01b038116610ebf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610ec8816111fa565b50565b6001546001600160a01b03163314610ec8576040516321bf7f4960e01b815260040160405180910390fd5b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610f36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5a9190612403565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b8152600401610f8c9493929190612420565b6000604051808303818588803b158015610fa557600080fd5b505af1158015610fb9573d6000803e3d6000fd5b50505050505050505050565b606060005b6006548110156110ca5760068181548110610fe757610fe7611d44565b906000526020600020016040516020016110019190612452565b60405160208183030381529060405280519060200120848460405160200161102a9291906124c8565b60405160208183030381529060405280519060200120036110b857600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001859055604080516020601f86018190048102820181019092528481529085908590819084018382808284376000920191909152509294506110e49350505050565b806110c281611d5a565b915050610fca565b5060405163b01318a560e01b815260040160405180910390fd5b9392505050565b6000546001600160a01b03163314610c125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eb6565b866001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a99190612403565b6001600160a01b031663fce34e4034308989898989896040518963ffffffff1660e01b81526004016111e197969594939291906124d8565b6000604051808303818588803b158015610c7457600080fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060005b6006548110156110ca576006818154811061126c5761126c611d44565b906000526020600020016040516020016112869190612452565b6040516020818303038152906040528051906020012084846040516020016112af9291906124c8565b604051602081830303815290604052805190602001200361130a5783838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092945061131c9350505050565b8061131481611d5a565b91505061124f565b92915050565b60008083601f84011261133457600080fd5b5081356001600160401b0381111561134b57600080fd5b60208301915083602082850101111561136357600080fd5b9250929050565b6000806000806060858703121561138057600080fd5b8435935060208501356001600160401b0381111561139d57600080fd5b6113a987828801611322565b9598909750949560400135949350505050565b6001600160401b0381168114610ec857600080fd5b80356113dc816113bc565b919050565b806040810183101561131c57600080fd5b60008060008060008060e0878903121561140b57600080fd5b86356001600160401b0381111561142157600080fd5b61142d89828a01611322565b909750955050602087013593506040870135611448816113bc565b925061145788606089016113e1565b91506114668860a089016113e1565b90509295509295509295565b60006020828403121561148457600080fd5b5035919050565b6000815180845260005b818110156114b157602081850181015186830182015201611495565b818111156114c3576000602083870101525b50601f01601f19169290920160200192915050565b82151581526040602082015260006114f3604083018461148b565b949350505050565b8035600381106113dc57600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156115425761154261150a565b60405290565b60405160c081016001600160401b03811182821017156115425761154261150a565b604051601f8201601f191681016001600160401b03811182821017156115925761159261150a565b604052919050565b600082601f8301126115ab57600080fd5b81356001600160401b038111156115c4576115c461150a565b6115d7601f8201601f191660200161156a565b8181528460208386010111156115ec57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a03121561162457600080fd5b61162d886114fb565b965060208801356001600160401b038082111561164957600080fd5b818a0191508a601f83011261165d57600080fd5b81358181111561166f5761166f61150a565b8060051b61167f6020820161156a565b9182526020818501810192908101908e84111561169b57600080fd5b6020860192505b838310156116d95784833511156116b857600080fd5b6116c88f6020853589010161159a565b8252602092830192909101906116a2565b9a5050505060408a0135965060608a01359150808211156116f957600080fd5b6117058b838c0161159a565b955060808a0135945060a08a013591508082111561172257600080fd5b5061172f8a828b01611322565b989b979a50959850939692959293505050565b6020815260006110e4602083018461148b565b60006040828403121561176757600080fd5b61176f611520565b905081356001600160401b0381111561178757600080fd5b6117938482850161159a565b8252506020820135602082015292915050565b6000604082840312156117b857600080fd5b6117c0611520565b905081356117cd816113bc565b815260208201356117dd816113bc565b602082015292915050565b6000602082840312156117fa57600080fd5b81356001600160401b038082111561181157600080fd5b9083019060e0828603121561182557600080fd5b61182d611548565b82358281111561183c57600080fd5b61184887828601611755565b82525060208301358281111561185d57600080fd5b61186987828601611755565b60208301525061187b604084016113d1565b604082015260608301358281111561189257600080fd5b61189e8782860161159a565b6060830152506118b186608085016117a6565b60808201526118c260c084016113d1565b60a082015295945050505050565b60208152815115156020820152600060208301516040808401526114f3606084018261148b565b600081516040845261190c604085018261148b565b602093840151949093019390935250919050565b60e08152600061193360e08301896118f7565b828103602084015261194581896118f7565b90506001600160401b0380881660408501528382036060850152611969828861148b565b92508086511660808501528060208701511660a085015280851660c08501525050979650505050505050565b600080600080606085870312156119ab57600080fd5b84356001600160401b038111156119c157600080fd5b6119cd87828801611322565b9095509350506020850135915060408501356119e8816113bc565b939692955090935050565b600060e08284031215611a0557600080fd5b50919050565b600060208284031215611a1d57600080fd5b81356001600160401b03811115611a3357600080fd5b6114f3848285016119f3565b8015158114610ec857600080fd5b60008083601f840112611a5f57600080fd5b5081356001600160401b03811115611a7657600080fd5b6020830191508360208260051b850101111561136357600080fd5b60008060008060008060008060a0898b031215611aad57600080fd5b88356001600160401b0380821115611ac457600080fd5b611ad08c838d01611322565b909a509850889150611ae460208c016114fb565b975060408b01359150611af682611a3f565b90955060608a01359080821115611b0c57600080fd5b611b188c838d01611a4d565b909650945060808b0135915080821115611b3157600080fd5b50611b3e8b828c01611322565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611b6d57600080fd5b611b76886114fb565b965060208801356001600160401b0380821115611b9257600080fd5b611b9e8b838c01611a4d565b909850965060408a0135915080821115611bb757600080fd5b611bc38b838c01611322565b909650945060608a013591508082111561172257600080fd5b60008060408385031215611bef57600080fd5b82356001600160401b0380821115611c0657600080fd5b611c12868387016119f3565b93506020850135915080821115611c2857600080fd5b50830160408186031215611c3b57600080fd5b809150509250929050565b60008060008060608587031215611c5c57600080fd5b843593506020850135925060408501356001600160401b03811115611c8057600080fd5b611c8c87828801611322565b95989497509550505050565b6001600160a01b0381168114610ec857600080fd5b600060208284031215611cbf57600080fd5b81356110e481611c98565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b848152606060208201526000611d0d606083018587611cca565b90506001600160401b038316604083015295945050505050565b600060208284031215611d3957600080fd5b81516110e4816113bc565b634e487b7160e01b600052603260045260246000fd5b600060018201611d7a57634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680611d9557607f821691505b602082108103611a0557634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052600160045260246000fd5b60008235603e19833603018112611de157600080fd5b9190910192915050565b6000808335601e19843603018112611e0257600080fd5b8301803591506001600160401b03821115611e1c57600080fd5b60200191503681900382131561136357600080fd5b601f821115610b2f57600081815260208120601f850160051c81016020861015611e585750805b601f850160051c820191505b81811015611e7757828155600101611e64565b505050505050565b600019600383901b1c191660019190911b1790565b611e9e8283611deb565b6001600160401b03811115611eb557611eb561150a565b611ec981611ec38554611d81565b85611e31565b6000601f821160018114611ef75760008315611ee55750838201355b611eef8482611e7f565b865550611f51565b600085815260209020601f19841690835b82811015611f285786850135825560209485019460019092019101611f08565b5084821015611f455760001960f88660031b161c19848701351681555b505060018360011b0185555b50505050602082013560018201555050565b6000813561131c816113bc565b6001600160401b03831115611f8757611f8761150a565b611f9b83611f958354611d81565b83611e31565b6000601f841160018114611fc95760008515611fb75750838201355b611fc18682611e7f565b84555061060a565b600083815260209020601f19861690835b82811015611ffa5786850135825560209485019460019092019101611fda565b50868210156120175760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8135612034816113bc565b815467ffffffffffffffff19166001600160401b03821617825550602082013561205d816113bc565b81546fffffffffffffffff0000000000000000191660409190911b6fffffffffffffffff00000000000000001617905550565b61209a8283611dcb565b6120a48182611deb565b6001600160401b038111156120bb576120bb61150a565b6120cf816120c98654611d81565b86611e31565b6000601f8211600181146120fd57600083156120eb5750838201355b6120f58482611e7f565b875550612157565b600086815260209020601f19841690835b8281101561212e578685013582556020948501946001909201910161210e565b508482101561214b5760001960f88660031b161c19848701351681555b505060018360011b0186555b50505050602081013560018301555061217f6121766020840184611dcb565b60028301611e94565b6121af61218e60408401611f63565b600483016001600160401b0382166001600160401b03198254161781555050565b6121bc6060830183611deb565b6121ca818360058601611f70565b50506121dc6080830160068301612029565b61220c6121eb60c08401611f63565b600783016001600160401b0382166001600160401b03198254161781555050565b5050565b6003811061222e57634e487b7160e01b600052602160045260246000fd5b9052565b81835260006020808501808196508560051b810191508460005b878110156122b65782840389528135601e1988360301811261226d57600080fd5b870185810190356001600160401b0381111561228857600080fd5b80360382131561229757600080fd5b6122a2868284611cca565b9a87019a955050509084019060010161224c565b5091979650505050505050565b60a0815260006122d760a083018a8c611cca565b6122e4602084018a612210565b871515604084015282810360608401526122ff818789612232565b90508281036080840152612314818587611cca565b9b9a5050505050505050505050565b813561232e81611a3f565b815490151560ff1660ff19919091161781556001808201602061235385820186611deb565b6001600160401b0381111561236a5761236a61150a565b612378816120c98654611d81565b6000601f8211600181146123a657600083156123945750838201355b61239e8482611e7f565b875550610bf5565b600086815260209020601f19841690835b828110156123d457868501358255938701939089019087016123b7565b50848210156123f15760001960f88660031b161c19848701351681555b50505050841b90930190915550505050565b60006020828403121561241557600080fd5b81516110e481611c98565b8481526001600160401b038416602082015260c081016040848184013760408360808401376000815295945050505050565b600080835461246081611d81565b60018281168015612478576001811461248d576124bc565b60ff19841687528215158302870194506124bc565b8760005260208060002060005b858110156124b35781548a82015290840190820161249a565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b6001600160a01b038816815260a0602082018190526000906124fc9083018961148b565b6125096040840189612210565b828103606084015261251c818789612232565b90508281036080840152612531818587611cca565b9a995050505050505050505056fea2646970667358221220c07e75b000700d8493cf0778639c42123f6a9602587bef284175060596a2b6e864736f6c634300080f0033"; - -type PanickingMarsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: PanickingMarsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class PanickingMars__factory extends ContractFactory { - constructor(...args: PanickingMarsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_dispatcher, overrides || {}); - } - override deploy( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_dispatcher, overrides || {}) as Promise< - PanickingMars & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): PanickingMars__factory { - return super.connect(runner) as PanickingMars__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): PanickingMarsInterface { - return new Interface(_abi) as PanickingMarsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): PanickingMars { - return new Contract(address, _abi, runner) as unknown as PanickingMars; - } -} diff --git a/src/evm/contracts/factories/Mars.sol/RevertingBytesMars__factory.ts b/src/evm/contracts/factories/Mars.sol/RevertingBytesMars__factory.ts deleted file mode 100644 index b62553b7..00000000 --- a/src/evm/contracts/factories/Mars.sol/RevertingBytesMars__factory.ts +++ /dev/null @@ -1,988 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../common"; -import type { - RevertingBytesMars, - RevertingBytesMarsInterface, -} from "../../Mars.sol/RevertingBytesMars"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "ackPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "connectedChannels", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "greet", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "greetWithFee", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvedPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "supportedVersions", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "timeoutPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelClose", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInitWithFee", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "event", - name: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ChannelNotFound", - inputs: [], - }, - { - type: "error", - name: "OnRecvPacketRevert", - inputs: [], - }, - { - type: "error", - name: "OnTimeoutPacket", - inputs: [], - }, - { - type: "error", - name: "UnsupportedVersion", - inputs: [], - }, - { - type: "error", - name: "notIbcDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x600360c0818152620312e360ec1b60e0526080908152610140604052610100918252620322e360ec1b6101205260a09190915262000042906006906002620000f9565b503480156200005057600080fd5b50604051620024f7380380620024f78339810160408190526200007391620001d0565b80806200008033620000a9565b600180546001600160a01b0319166001600160a01b039290921691909117905550620003739050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000144579160200282015b82811115620001445782518290620001339082620002a7565b50916020019190600101906200011a565b506200015292915062000156565b5090565b80821115620001525760006200016d828262000177565b5060010162000156565b508054620001859062000218565b6000825580601f1062000196575050565b601f016020900490600052602060002090810190620001b69190620001b9565b50565b5b80821115620001525760008155600101620001ba565b600060208284031215620001e357600080fd5b81516001600160a01b0381168114620001fb57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022d57607f821691505b6020821081036200024e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a257600081815260208120601f850160051c810160208610156200027d5750805b601f850160051c820191505b818110156200029e5782815560010162000289565b5050505b505050565b81516001600160401b03811115620002c357620002c362000202565b620002db81620002d4845462000218565b8462000254565b602080601f831160018114620003135760008415620002fa5750858301515b600019600386901b1c1916600185901b1785556200029e565b600085815260208120601f198616915b82811015620003445788860151825594840194600190910190840162000323565b5085821015620003635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61217480620003836000396000f3fe6080604052600436106101445760003560e01c8063715018a6116100b6578063bb3f9f8d1161006f578063bb3f9f8d146103b6578063cb7e9057146103e4578063e847e28014610404578063f12b758a14610424578063f2fde38b14610444578063fad28a241461046457600080fd5b8063715018a6146102ef5780637a805598146103045780637a9ccc4b146103245780637d622184146103445780637e1d42b5146103645780638da5cb5b1461038457600080fd5b80634dcc0aa6116101085780634dcc0aa61461021d5780634eeb73911461024a578063558850ac1461027c5780635bfd12b81461029c578063602f9834146102bc57806361995001146102dc57600080fd5b80631eb7dd5e146101505780633513a995146101725780633f9fdbe4146101a25780634252ae9b146101c25780634bdb5597146101f057600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b366004611346565b610484565b005b6101856101803660046113ce565b6104b5565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101ae57600080fd5b506101706101bd366004611346565b610555565b3480156101ce57600080fd5b506101e26101dd36600461144e565b610611565b6040516101999291906114b4565b3480156101fc57600080fd5b5061021061020b3660046115e5565b6106cd565b604051610199919061171e565b34801561022957600080fd5b5061023d6102383660046117c4565b610712565b60405161019991906118ac565b34801561025657600080fd5b5061026a61026536600461144e565b61078a565b604051610199969594939291906118fc565b34801561028857600080fd5b5061017061029736600461144e565b6109e7565b3480156102a857600080fd5b506101856102b7366004611971565b610a49565b3480156102c857600080fd5b506101706102d73660046119e7565b610acc565b6101706102ea366004611a6d565b610b10565b3480156102fb57600080fd5b50610170610bdc565b34801561031057600080fd5b5061017061031f366004611a6d565b610bf0565b34801561033057600080fd5b5061021061033f366004611b2e565b610c72565b34801561035057600080fd5b5061021061035f36600461144e565b610caa565b34801561037057600080fd5b5061017061037f366004611bb8565b610d56565b34801561039057600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610199565b3480156103c257600080fd5b506103d66103d136600461144e565b610dc2565b604051908152602001610199565b3480156103f057600080fd5b5060015461039e906001600160a01b031681565b34801561041057600080fd5b5061017061041f366004611c22565b610de3565b34801561043057600080fd5b5061026a61043f36600461144e565b610e19565b34801561045057600080fd5b5061017061045f366004611c89565b610e29565b34801561047057600080fd5b5061017061047f36600461144e565b610ea7565b6001546001600160a01b031633146104af576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c906104ec9088908b908b908a90600401611ccf565b6020604051808303816000875af115801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611d03565b60015490915061054b906001600160a01b031686838686610ed2565b9695505050505050565b6001546001600160a01b03163314610580576040516321bf7f4960e01b815260040160405180910390fd5b6000805b6005548110156105eb5785600582815481106105a2576105a2611d20565b9060005260206000200154036105d957600581815481106105c5576105c5611d20565b6000918252602082200155600191506105eb565b806105e381611d36565b915050610584565b508061060a57604051630781f76560e21b815260040160405180910390fd5b5050505050565b6003818154811061062157600080fd5b60009182526020909120600290910201805460018201805460ff90921693509061064a90611d5d565b80601f016020809104026020016040519081016040528092919081815260200182805461067690611d5d565b80156106c35780601f10610698576101008083540402835291602001916106c3565b820191906000526020600020905b8154815290600101906020018083116106a657829003601f168201915b5050505050905082565b6001546060906001600160a01b031633146106fb576040516321bf7f4960e01b815260040160405180910390fd5b610706868484610fa1565b98975050505050505050565b6040805180820190915260008152606060208201526001546001600160a01b03163314610752576040516321bf7f4960e01b815260040160405180910390fd5b506040805180820182526000808252825160208181018552918152908201528151639889d82160e01b81529151909181900360040190fd5b6004818154811061079a57600080fd5b9060005260206000209060080201600091509050806000016040518060400160405290816000820180546107cd90611d5d565b80601f01602080910402602001604051908101604052809291908181526020018280546107f990611d5d565b80156108465780601f1061081b57610100808354040283529160200191610846565b820191906000526020600020905b81548152906001019060200180831161082957829003601f168201915b50505050508152602001600182015481525050908060020160405180604001604052908160008201805461087990611d5d565b80601f01602080910402602001604051908101604052809291908181526020018280546108a590611d5d565b80156108f25780601f106108c7576101008083540402835291602001916108f2565b820191906000526020600020905b8154815290600101906020018083116108d557829003601f168201915b505050918352505060019190910154602090910152600482015460058301805492936001600160401b039092169261092990611d5d565b80601f016020809104026020016040519081016040528092919081815260200182805461095590611d5d565b80156109a25780601f10610977576101008083540402835291602001916109a2565b820191906000526020600020905b81548152906001019060200180831161098557829003601f168201915b50506040805180820190915260068601546001600160401b03808216835268010000000000000000909104811660208301526007909601549495909416925088915050565b6109ef6110c7565b6001546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b158015610a3557600080fd5b505af115801561060a573d6000803e3d6000fd5b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c90610a80908690899089908890600401611ccf565b6020604051808303816000875af1158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190611d03565b95945050505050565b6001546001600160a01b03163314610af7576040516321bf7f4960e01b815260040160405180910390fd5b604051631021bb3b60e31b815260040160405180910390fd5b610b186110c7565b60015460405163418925b760e01b81526001600160a01b0390911690819063418925b790610b58908c908c908c908c908c908c908c908c90600401611e44565b600060405180830381600087803b158015610b7257600080fd5b505af1158015610b86573d6000803e3d6000fd5b50505050610bd1818a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c92508a91508990508888611121565b505050505050505050565b610be46110c7565b610bee60006111d6565b565b610bf86110c7565b60015460405163418925b760e01b81526001600160a01b039091169063418925b790610c36908b908b908b908b908b908b908b908b90600401611e44565b600060405180830381600087803b158015610c5057600080fd5b505af1158015610c64573d6000803e3d6000fd5b505050505050505050505050565b6001546060906001600160a01b03163314610ca0576040516321bf7f4960e01b815260040160405180910390fd5b6107068383611226565b60068181548110610cba57600080fd5b906000526020600020016000915090508054610cd590611d5d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0190611d5d565b8015610d4e5780601f10610d2357610100808354040283529160200191610d4e565b820191906000526020600020905b815481529060010190602001808311610d3157829003601f168201915b505050505081565b6001546001600160a01b03163314610d81576040516321bf7f4960e01b815260040160405180910390fd5b6003805460018101825560009190915281906002027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016104af8282611ef3565b60058181548110610dd257600080fd5b600091825260209091200154905081565b6001546001600160a01b03163314610e0e576040516321bf7f4960e01b815260040160405180910390fd5b61060a848383610fa1565b6002818154811061079a57600080fd5b610e316110c7565b6001600160a01b038116610e9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610ea4816111d6565b50565b6001546001600160a01b03163314610ea4576040516321bf7f4960e01b815260040160405180910390fd5b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610f12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f369190612002565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b8152600401610f68949392919061201f565b6000604051808303818588803b158015610f8157600080fd5b505af1158015610f95573d6000803e3d6000fd5b50505050505050505050565b606060005b6006548110156110a65760068181548110610fc357610fc3611d20565b90600052602060002001604051602001610fdd9190612051565b6040516020818303038152906040528051906020012084846040516020016110069291906120c7565b604051602081830303815290604052805190602001200361109457600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001859055604080516020601f86018190048102820181019092528481529085908590819084018382808284376000920191909152509294506110c09350505050565b8061109e81611d36565b915050610fa6565b5060405163b01318a560e01b815260040160405180910390fd5b9392505050565b6000546001600160a01b03163314610bee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e92565b866001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611161573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111859190612002565b6001600160a01b031663fce34e4034308989898989896040518963ffffffff1660e01b81526004016111bd97969594939291906120d7565b6000604051808303818588803b158015610c5057600080fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060005b6006548110156110a6576006818154811061124857611248611d20565b906000526020600020016040516020016112629190612051565b60405160208183030381529060405280519060200120848460405160200161128b9291906120c7565b60405160208183030381529060405280519060200120036112e65783838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294506112f89350505050565b806112f081611d36565b91505061122b565b92915050565b60008083601f84011261131057600080fd5b5081356001600160401b0381111561132757600080fd5b60208301915083602082850101111561133f57600080fd5b9250929050565b6000806000806060858703121561135c57600080fd5b8435935060208501356001600160401b0381111561137957600080fd5b611385878288016112fe565b9598909750949560400135949350505050565b6001600160401b0381168114610ea457600080fd5b80356113b881611398565b919050565b80604081018310156112f857600080fd5b60008060008060008060e087890312156113e757600080fd5b86356001600160401b038111156113fd57600080fd5b61140989828a016112fe565b90975095505060208701359350604087013561142481611398565b925061143388606089016113bd565b91506114428860a089016113bd565b90509295509295509295565b60006020828403121561146057600080fd5b5035919050565b6000815180845260005b8181101561148d57602081850181015186830182015201611471565b8181111561149f576000602083870101525b50601f01601f19169290920160200192915050565b82151581526040602082015260006114cf6040830184611467565b949350505050565b8035600381106113b857600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561151e5761151e6114e6565b60405290565b60405160c081016001600160401b038111828210171561151e5761151e6114e6565b604051601f8201601f191681016001600160401b038111828210171561156e5761156e6114e6565b604052919050565b600082601f83011261158757600080fd5b81356001600160401b038111156115a0576115a06114e6565b6115b3601f8201601f1916602001611546565b8181528460208386010111156115c857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a03121561160057600080fd5b611609886114d7565b965060208801356001600160401b038082111561162557600080fd5b818a0191508a601f83011261163957600080fd5b81358181111561164b5761164b6114e6565b8060051b61165b60208201611546565b9182526020818501810192908101908e84111561167757600080fd5b6020860192505b838310156116b557848335111561169457600080fd5b6116a48f60208535890101611576565b82526020928301929091019061167e565b9a5050505060408a0135965060608a01359150808211156116d557600080fd5b6116e18b838c01611576565b955060808a0135945060a08a01359150808211156116fe57600080fd5b5061170b8a828b016112fe565b989b979a50959850939692959293505050565b6020815260006110c06020830184611467565b60006040828403121561174357600080fd5b61174b6114fc565b905081356001600160401b0381111561176357600080fd5b61176f84828501611576565b8252506020820135602082015292915050565b60006040828403121561179457600080fd5b61179c6114fc565b905081356117a981611398565b815260208201356117b981611398565b602082015292915050565b6000602082840312156117d657600080fd5b81356001600160401b03808211156117ed57600080fd5b9083019060e0828603121561180157600080fd5b611809611524565b82358281111561181857600080fd5b61182487828601611731565b82525060208301358281111561183957600080fd5b61184587828601611731565b602083015250611857604084016113ad565b604082015260608301358281111561186e57600080fd5b61187a87828601611576565b60608301525061188d8660808501611782565b608082015261189e60c084016113ad565b60a082015295945050505050565b60208152815115156020820152600060208301516040808401526114cf6060840182611467565b60008151604084526118e86040850182611467565b602093840151949093019390935250919050565b60e08152600061190f60e08301896118d3565b828103602084015261192181896118d3565b90506001600160401b03808816604085015283820360608501526119458288611467565b92508086511660808501528060208701511660a085015280851660c08501525050979650505050505050565b6000806000806060858703121561198757600080fd5b84356001600160401b0381111561199d57600080fd5b6119a9878288016112fe565b9095509350506020850135915060408501356119c481611398565b939692955090935050565b600060e082840312156119e157600080fd5b50919050565b6000602082840312156119f957600080fd5b81356001600160401b03811115611a0f57600080fd5b6114cf848285016119cf565b8015158114610ea457600080fd5b60008083601f840112611a3b57600080fd5b5081356001600160401b03811115611a5257600080fd5b6020830191508360208260051b850101111561133f57600080fd5b60008060008060008060008060a0898b031215611a8957600080fd5b88356001600160401b0380821115611aa057600080fd5b611aac8c838d016112fe565b909a509850889150611ac060208c016114d7565b975060408b01359150611ad282611a1b565b90955060608a01359080821115611ae857600080fd5b611af48c838d01611a29565b909650945060808b0135915080821115611b0d57600080fd5b50611b1a8b828c016112fe565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611b4957600080fd5b611b52886114d7565b965060208801356001600160401b0380821115611b6e57600080fd5b611b7a8b838c01611a29565b909850965060408a0135915080821115611b9357600080fd5b611b9f8b838c016112fe565b909650945060608a01359150808211156116fe57600080fd5b60008060408385031215611bcb57600080fd5b82356001600160401b0380821115611be257600080fd5b611bee868387016119cf565b93506020850135915080821115611c0457600080fd5b50830160408186031215611c1757600080fd5b809150509250929050565b60008060008060608587031215611c3857600080fd5b843593506020850135925060408501356001600160401b03811115611c5c57600080fd5b611c68878288016112fe565b95989497509550505050565b6001600160a01b0381168114610ea457600080fd5b600060208284031215611c9b57600080fd5b81356110c081611c74565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b848152606060208201526000611ce9606083018587611ca6565b90506001600160401b038316604083015295945050505050565b600060208284031215611d1557600080fd5b81516110c081611398565b634e487b7160e01b600052603260045260246000fd5b600060018201611d5657634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680611d7157607f821691505b6020821081036119e157634e487b7160e01b600052602260045260246000fd5b60038110611daf57634e487b7160e01b600052602160045260246000fd5b9052565b81835260006020808501808196508560051b810191508460005b87811015611e375782840389528135601e19883603018112611dee57600080fd5b870185810190356001600160401b03811115611e0957600080fd5b803603821315611e1857600080fd5b611e23868284611ca6565b9a87019a9550505090840190600101611dcd565b5091979650505050505050565b60a081526000611e5860a083018a8c611ca6565b611e65602084018a611d91565b87151560408401528281036060840152611e80818789611db3565b90508281036080840152611e95818587611ca6565b9b9a5050505050505050505050565b601f821115611eee57600081815260208120601f850160051c81016020861015611ecb5750805b601f850160051c820191505b81811015611eea57828155600101611ed7565b5050505b505050565b8135611efe81611a1b565b815490151560ff1660ff1991909116178155600180820160208481013536869003601e19018112611f2e57600080fd5b850180356001600160401b03811115611f4657600080fd5b8036038383011315611f5757600080fd5b611f6b81611f658654611d5d565b86611ea4565b6000601f821160018114611fa15760008315611f8957508382018501355b600019600385901b1c1916600184901b178655610bd1565b600086815260209020601f19841690835b82811015611fd157868501880135825593870193908901908701611fb2565b5084821015611ff05760001960f88660031b161c198785880101351681555b50505050841b90930190915550505050565b60006020828403121561201457600080fd5b81516110c081611c74565b8481526001600160401b038416602082015260c081016040848184013760408360808401376000815295945050505050565b600080835461205f81611d5d565b60018281168015612077576001811461208c576120bb565b60ff19841687528215158302870194506120bb565b8760005260208060002060005b858110156120b25781548a820152908401908201612099565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b6001600160a01b038816815260a0602082018190526000906120fb90830189611467565b6121086040840189611d91565b828103606084015261211b818789611db3565b90508281036080840152612130818587611ca6565b9a995050505050505050505056fea264697066735822122050d28bfd463fbd1224f4fd58c95a0ae97af09776e88000166e16e08e9273686864736f6c634300080f0033"; - -type RevertingBytesMarsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: RevertingBytesMarsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class RevertingBytesMars__factory extends ContractFactory { - constructor(...args: RevertingBytesMarsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_dispatcher, overrides || {}); - } - override deploy( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_dispatcher, overrides || {}) as Promise< - RevertingBytesMars & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): RevertingBytesMars__factory { - return super.connect(runner) as RevertingBytesMars__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): RevertingBytesMarsInterface { - return new Interface(_abi) as RevertingBytesMarsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): RevertingBytesMars { - return new Contract(address, _abi, runner) as unknown as RevertingBytesMars; - } -} diff --git a/src/evm/contracts/factories/Mars.sol/RevertingEmptyMars__factory.ts b/src/evm/contracts/factories/Mars.sol/RevertingEmptyMars__factory.ts deleted file mode 100644 index 8beab19a..00000000 --- a/src/evm/contracts/factories/Mars.sol/RevertingEmptyMars__factory.ts +++ /dev/null @@ -1,978 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../common"; -import type { - RevertingEmptyMars, - RevertingEmptyMarsInterface, -} from "../../Mars.sol/RevertingEmptyMars"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "ackPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "connectedChannels", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "greet", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "greetWithFee", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvedPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "supportedVersions", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "timeoutPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelClose", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInitWithFee", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "event", - name: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ChannelNotFound", - inputs: [], - }, - { - type: "error", - name: "UnsupportedVersion", - inputs: [], - }, - { - type: "error", - name: "notIbcDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x600360c0818152620312e360ec1b60e0526080908152610140604052610100918252620322e360ec1b6101205260a09190915262000042906006906002620000f9565b503480156200005057600080fd5b50604051620028b3380380620028b38339810160408190526200007391620001d0565b80806200008033620000a9565b600180546001600160a01b0319166001600160a01b039290921691909117905550620003739050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000144579160200282015b82811115620001445782518290620001339082620002a7565b50916020019190600101906200011a565b506200015292915062000156565b5090565b80821115620001525760006200016d828262000177565b5060010162000156565b508054620001859062000218565b6000825580601f1062000196575050565b601f016020900490600052602060002090810190620001b69190620001b9565b50565b5b80821115620001525760008155600101620001ba565b600060208284031215620001e357600080fd5b81516001600160a01b0381168114620001fb57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022d57607f821691505b6020821081036200024e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a257600081815260208120601f850160051c810160208610156200027d5750805b601f850160051c820191505b818110156200029e5782815560010162000289565b5050505b505050565b81516001600160401b03811115620002c357620002c362000202565b620002db81620002d4845462000218565b8462000254565b602080601f831160018114620003135760008415620002fa5750858301515b600019600386901b1c1916600185901b1785556200029e565b600085815260208120601f198616915b82811015620003445788860151825594840194600190910190840162000323565b5085821015620003635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61253080620003836000396000f3fe6080604052600436106101445760003560e01c8063715018a6116100b6578063bb3f9f8d1161006f578063bb3f9f8d146103b6578063cb7e9057146103e4578063e847e28014610404578063f12b758a14610424578063f2fde38b14610444578063fad28a241461046457600080fd5b8063715018a6146102ef5780637a805598146103045780637a9ccc4b146103245780637d622184146103445780637e1d42b5146103645780638da5cb5b1461038457600080fd5b80634dcc0aa6116101085780634dcc0aa61461021d5780634eeb73911461024a578063558850ac1461027c5780635bfd12b81461029c578063602f9834146102bc57806361995001146102dc57600080fd5b80631eb7dd5e146101505780633513a995146101725780633f9fdbe4146101a25780634252ae9b146101c25780634bdb5597146101f057600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b36600461133b565b610484565b005b6101856101803660046113c3565b6104b5565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101ae57600080fd5b506101706101bd36600461133b565b610555565b3480156101ce57600080fd5b506101e26101dd366004611443565b610611565b6040516101999291906114a9565b3480156101fc57600080fd5b5061021061020b3660046115da565b6106cd565b6040516101999190611713565b34801561022957600080fd5b5061023d6102383660046117b9565b610712565b60405161019991906118a1565b34801561025657600080fd5b5061026a610265366004611443565b610752565b604051610199969594939291906118f1565b34801561028857600080fd5b50610170610297366004611443565b6109af565b3480156102a857600080fd5b506101856102b7366004611966565b610a11565b3480156102c857600080fd5b506101706102d73660046119dc565b610a94565b6101706102ea366004611a62565b610b05565b3480156102fb57600080fd5b50610170610bd1565b34801561031057600080fd5b5061017061031f366004611a62565b610be5565b34801561033057600080fd5b5061021061033f366004611b23565b610c67565b34801561035057600080fd5b5061021061035f366004611443565b610c9f565b34801561037057600080fd5b5061017061037f366004611bad565b610d4b565b34801561039057600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610199565b3480156103c257600080fd5b506103d66103d1366004611443565b610db7565b604051908152602001610199565b3480156103f057600080fd5b5060015461039e906001600160a01b031681565b34801561041057600080fd5b5061017061041f366004611c17565b610dd8565b34801561043057600080fd5b5061026a61043f366004611443565b610e0e565b34801561045057600080fd5b5061017061045f366004611c7e565b610e1e565b34801561047057600080fd5b5061017061047f366004611443565b610e9c565b6001546001600160a01b031633146104af576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c906104ec9088908b908b908a90600401611cc4565b6020604051808303816000875af115801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611cf8565b60015490915061054b906001600160a01b031686838686610ec7565b9695505050505050565b6001546001600160a01b03163314610580576040516321bf7f4960e01b815260040160405180910390fd5b6000805b6005548110156105eb5785600582815481106105a2576105a2611d15565b9060005260206000200154036105d957600581815481106105c5576105c5611d15565b6000918252602082200155600191506105eb565b806105e381611d2b565b915050610584565b508061060a57604051630781f76560e21b815260040160405180910390fd5b5050505050565b6003818154811061062157600080fd5b60009182526020909120600290910201805460018201805460ff90921693509061064a90611d52565b80601f016020809104026020016040519081016040528092919081815260200182805461067690611d52565b80156106c35780601f10610698576101008083540402835291602001916106c3565b820191906000526020600020905b8154815290600101906020018083116106a657829003601f168201915b5050505050905082565b6001546060906001600160a01b031633146106fb576040516321bf7f4960e01b815260040160405180910390fd5b610706868484610f96565b98975050505050505050565b6040805180820190915260008152606060208201526001546001600160a01b0316331461014b576040516321bf7f4960e01b815260040160405180910390fd5b6004818154811061076257600080fd5b90600052602060002090600802016000915090508060000160405180604001604052908160008201805461079590611d52565b80601f01602080910402602001604051908101604052809291908181526020018280546107c190611d52565b801561080e5780601f106107e35761010080835404028352916020019161080e565b820191906000526020600020905b8154815290600101906020018083116107f157829003601f168201915b50505050508152602001600182015481525050908060020160405180604001604052908160008201805461084190611d52565b80601f016020809104026020016040519081016040528092919081815260200182805461086d90611d52565b80156108ba5780601f1061088f576101008083540402835291602001916108ba565b820191906000526020600020905b81548152906001019060200180831161089d57829003601f168201915b505050918352505060019190910154602090910152600482015460058301805492936001600160401b03909216926108f190611d52565b80601f016020809104026020016040519081016040528092919081815260200182805461091d90611d52565b801561096a5780601f1061093f5761010080835404028352916020019161096a565b820191906000526020600020905b81548152906001019060200180831161094d57829003601f168201915b50506040805180820190915260068601546001600160401b03808216835268010000000000000000909104811660208301526007909601549495909416925088915050565b6109b76110bc565b6001546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b1580156109fd57600080fd5b505af115801561060a573d6000803e3d6000fd5b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c90610a48908690899089908890600401611cc4565b6020604051808303816000875af1158015610a67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8b9190611cf8565b95945050505050565b6001546001600160a01b03163314610abf576040516321bf7f4960e01b815260040160405180910390fd5b6004805460018101825560009190915281906008027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01610b00828261204b565b505050565b610b0d6110bc565b60015460405163418925b760e01b81526001600160a01b0390911690819063418925b790610b4d908c908c908c908c908c908c908c908c9060040161227e565b600060405180830381600087803b158015610b6757600080fd5b505af1158015610b7b573d6000803e3d6000fd5b50505050610bc6818a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c92508a91508990508888611116565b505050505050505050565b610bd96110bc565b610be360006111cb565b565b610bed6110bc565b60015460405163418925b760e01b81526001600160a01b039091169063418925b790610c2b908b908b908b908b908b908b908b908b9060040161227e565b600060405180830381600087803b158015610c4557600080fd5b505af1158015610c59573d6000803e3d6000fd5b505050505050505050505050565b6001546060906001600160a01b03163314610c95576040516321bf7f4960e01b815260040160405180910390fd5b610706838361121b565b60068181548110610caf57600080fd5b906000526020600020016000915090508054610cca90611d52565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf690611d52565b8015610d435780601f10610d1857610100808354040283529160200191610d43565b820191906000526020600020905b815481529060010190602001808311610d2657829003601f168201915b505050505081565b6001546001600160a01b03163314610d76576040516321bf7f4960e01b815260040160405180910390fd5b6003805460018101825560009190915281906002027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016104af82826122de565b60058181548110610dc757600080fd5b600091825260209091200154905081565b6001546001600160a01b03163314610e03576040516321bf7f4960e01b815260040160405180910390fd5b61060a848383610f96565b6002818154811061076257600080fd5b610e266110bc565b6001600160a01b038116610e905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610e99816111cb565b50565b6001546001600160a01b03163314610e99576040516321bf7f4960e01b815260040160405180910390fd5b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2b91906123be565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b8152600401610f5d94939291906123db565b6000604051808303818588803b158015610f7657600080fd5b505af1158015610f8a573d6000803e3d6000fd5b50505050505050505050565b606060005b60065481101561109b5760068181548110610fb857610fb8611d15565b90600052602060002001604051602001610fd2919061240d565b604051602081830303815290604052805190602001208484604051602001610ffb929190612483565b604051602081830303815290604052805190602001200361108957600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001859055604080516020601f86018190048102820181019092528481529085908590819084018382808284376000920191909152509294506110b59350505050565b8061109381611d2b565b915050610f9b565b5060405163b01318a560e01b815260040160405180910390fd5b9392505050565b6000546001600160a01b03163314610be35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e87565b866001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611156573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117a91906123be565b6001600160a01b031663fce34e4034308989898989896040518963ffffffff1660e01b81526004016111b29796959493929190612493565b6000604051808303818588803b158015610c4557600080fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060005b60065481101561109b576006818154811061123d5761123d611d15565b90600052602060002001604051602001611257919061240d565b604051602081830303815290604052805190602001208484604051602001611280929190612483565b60405160208183030381529060405280519060200120036112db5783838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294506112ed9350505050565b806112e581611d2b565b915050611220565b92915050565b60008083601f84011261130557600080fd5b5081356001600160401b0381111561131c57600080fd5b60208301915083602082850101111561133457600080fd5b9250929050565b6000806000806060858703121561135157600080fd5b8435935060208501356001600160401b0381111561136e57600080fd5b61137a878288016112f3565b9598909750949560400135949350505050565b6001600160401b0381168114610e9957600080fd5b80356113ad8161138d565b919050565b80604081018310156112ed57600080fd5b60008060008060008060e087890312156113dc57600080fd5b86356001600160401b038111156113f257600080fd5b6113fe89828a016112f3565b9097509550506020870135935060408701356114198161138d565b925061142888606089016113b2565b91506114378860a089016113b2565b90509295509295509295565b60006020828403121561145557600080fd5b5035919050565b6000815180845260005b8181101561148257602081850181015186830182015201611466565b81811115611494576000602083870101525b50601f01601f19169290920160200192915050565b82151581526040602082015260006114c4604083018461145c565b949350505050565b8035600381106113ad57600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715611513576115136114db565b60405290565b60405160c081016001600160401b0381118282101715611513576115136114db565b604051601f8201601f191681016001600160401b0381118282101715611563576115636114db565b604052919050565b600082601f83011261157c57600080fd5b81356001600160401b03811115611595576115956114db565b6115a8601f8201601f191660200161153b565b8181528460208386010111156115bd57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a0312156115f557600080fd5b6115fe886114cc565b965060208801356001600160401b038082111561161a57600080fd5b818a0191508a601f83011261162e57600080fd5b813581811115611640576116406114db565b8060051b6116506020820161153b565b9182526020818501810192908101908e84111561166c57600080fd5b6020860192505b838310156116aa57848335111561168957600080fd5b6116998f6020853589010161156b565b825260209283019290910190611673565b9a5050505060408a0135965060608a01359150808211156116ca57600080fd5b6116d68b838c0161156b565b955060808a0135945060a08a01359150808211156116f357600080fd5b506117008a828b016112f3565b989b979a50959850939692959293505050565b6020815260006110b5602083018461145c565b60006040828403121561173857600080fd5b6117406114f1565b905081356001600160401b0381111561175857600080fd5b6117648482850161156b565b8252506020820135602082015292915050565b60006040828403121561178957600080fd5b6117916114f1565b9050813561179e8161138d565b815260208201356117ae8161138d565b602082015292915050565b6000602082840312156117cb57600080fd5b81356001600160401b03808211156117e257600080fd5b9083019060e082860312156117f657600080fd5b6117fe611519565b82358281111561180d57600080fd5b61181987828601611726565b82525060208301358281111561182e57600080fd5b61183a87828601611726565b60208301525061184c604084016113a2565b604082015260608301358281111561186357600080fd5b61186f8782860161156b565b6060830152506118828660808501611777565b608082015261189360c084016113a2565b60a082015295945050505050565b60208152815115156020820152600060208301516040808401526114c4606084018261145c565b60008151604084526118dd604085018261145c565b602093840151949093019390935250919050565b60e08152600061190460e08301896118c8565b828103602084015261191681896118c8565b90506001600160401b038088166040850152838203606085015261193a828861145c565b92508086511660808501528060208701511660a085015280851660c08501525050979650505050505050565b6000806000806060858703121561197c57600080fd5b84356001600160401b0381111561199257600080fd5b61199e878288016112f3565b9095509350506020850135915060408501356119b98161138d565b939692955090935050565b600060e082840312156119d657600080fd5b50919050565b6000602082840312156119ee57600080fd5b81356001600160401b03811115611a0457600080fd5b6114c4848285016119c4565b8015158114610e9957600080fd5b60008083601f840112611a3057600080fd5b5081356001600160401b03811115611a4757600080fd5b6020830191508360208260051b850101111561133457600080fd5b60008060008060008060008060a0898b031215611a7e57600080fd5b88356001600160401b0380821115611a9557600080fd5b611aa18c838d016112f3565b909a509850889150611ab560208c016114cc565b975060408b01359150611ac782611a10565b90955060608a01359080821115611add57600080fd5b611ae98c838d01611a1e565b909650945060808b0135915080821115611b0257600080fd5b50611b0f8b828c016112f3565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611b3e57600080fd5b611b47886114cc565b965060208801356001600160401b0380821115611b6357600080fd5b611b6f8b838c01611a1e565b909850965060408a0135915080821115611b8857600080fd5b611b948b838c016112f3565b909650945060608a01359150808211156116f357600080fd5b60008060408385031215611bc057600080fd5b82356001600160401b0380821115611bd757600080fd5b611be3868387016119c4565b93506020850135915080821115611bf957600080fd5b50830160408186031215611c0c57600080fd5b809150509250929050565b60008060008060608587031215611c2d57600080fd5b843593506020850135925060408501356001600160401b03811115611c5157600080fd5b611c5d878288016112f3565b95989497509550505050565b6001600160a01b0381168114610e9957600080fd5b600060208284031215611c9057600080fd5b81356110b581611c69565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b848152606060208201526000611cde606083018587611c9b565b90506001600160401b038316604083015295945050505050565b600060208284031215611d0a57600080fd5b81516110b58161138d565b634e487b7160e01b600052603260045260246000fd5b600060018201611d4b57634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680611d6657607f821691505b6020821081036119d657634e487b7160e01b600052602260045260246000fd5b60008235603e19833603018112611d9c57600080fd5b9190910192915050565b6000808335601e19843603018112611dbd57600080fd5b8301803591506001600160401b03821115611dd757600080fd5b60200191503681900382131561133457600080fd5b601f821115610b0057600081815260208120601f850160051c81016020861015611e135750805b601f850160051c820191505b81811015611e3257828155600101611e1f565b505050505050565b600019600383901b1c191660019190911b1790565b611e598283611da6565b6001600160401b03811115611e7057611e706114db565b611e8481611e7e8554611d52565b85611dec565b6000601f821160018114611eb25760008315611ea05750838201355b611eaa8482611e3a565b865550611f0c565b600085815260209020601f19841690835b82811015611ee35786850135825560209485019460019092019101611ec3565b5084821015611f005760001960f88660031b161c19848701351681555b505060018360011b0185555b50505050602082013560018201555050565b600081356112ed8161138d565b6001600160401b03831115611f4257611f426114db565b611f5683611f508354611d52565b83611dec565b6000601f841160018114611f845760008515611f725750838201355b611f7c8682611e3a565b84555061060a565b600083815260209020601f19861690835b82811015611fb55786850135825560209485019460019092019101611f95565b5086821015611fd25760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8135611fef8161138d565b815467ffffffffffffffff19166001600160401b0382161782555060208201356120188161138d565b81546fffffffffffffffff0000000000000000191660409190911b6fffffffffffffffff00000000000000001617905550565b6120558283611d86565b61205f8182611da6565b6001600160401b03811115612076576120766114db565b61208a816120848654611d52565b86611dec565b6000601f8211600181146120b857600083156120a65750838201355b6120b08482611e3a565b875550612112565b600086815260209020601f19841690835b828110156120e957868501358255602094850194600190920191016120c9565b50848210156121065760001960f88660031b161c19848701351681555b505060018360011b0186555b50505050602081013560018301555061213a6121316020840184611d86565b60028301611e4f565b61216a61214960408401611f1e565b600483016001600160401b0382166001600160401b03198254161781555050565b6121776060830183611da6565b612185818360058601611f2b565b50506121976080830160068301611fe4565b6121c76121a660c08401611f1e565b600783016001600160401b0382166001600160401b03198254161781555050565b5050565b600381106121e957634e487b7160e01b600052602160045260246000fd5b9052565b81835260006020808501808196508560051b810191508460005b878110156122715782840389528135601e1988360301811261222857600080fd5b870185810190356001600160401b0381111561224357600080fd5b80360382131561225257600080fd5b61225d868284611c9b565b9a87019a9550505090840190600101612207565b5091979650505050505050565b60a08152600061229260a083018a8c611c9b565b61229f602084018a6121cb565b871515604084015282810360608401526122ba8187896121ed565b905082810360808401526122cf818587611c9b565b9b9a5050505050505050505050565b81356122e981611a10565b815490151560ff1660ff19919091161781556001808201602061230e85820186611da6565b6001600160401b03811115612325576123256114db565b612333816120848654611d52565b6000601f821160018114612361576000831561234f5750838201355b6123598482611e3a565b875550610bc6565b600086815260209020601f19841690835b8281101561238f5786850135825593870193908901908701612372565b50848210156123ac5760001960f88660031b161c19848701351681555b50505050841b90930190915550505050565b6000602082840312156123d057600080fd5b81516110b581611c69565b8481526001600160401b038416602082015260c081016040848184013760408360808401376000815295945050505050565b600080835461241b81611d52565b60018281168015612433576001811461244857612477565b60ff1984168752821515830287019450612477565b8760005260208060002060005b8581101561246e5781548a820152908401908201612455565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b6001600160a01b038816815260a0602082018190526000906124b79083018961145c565b6124c460408401896121cb565b82810360608401526124d78187896121ed565b905082810360808401526124ec818587611c9b565b9a995050505050505050505056fea2646970667358221220f8bb034b9725033d3dc6726328d060400630436c03e78273f99ef17424404a5764736f6c634300080f0033"; - -type RevertingEmptyMarsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: RevertingEmptyMarsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class RevertingEmptyMars__factory extends ContractFactory { - constructor(...args: RevertingEmptyMarsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_dispatcher, overrides || {}); - } - override deploy( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_dispatcher, overrides || {}) as Promise< - RevertingEmptyMars & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): RevertingEmptyMars__factory { - return super.connect(runner) as RevertingEmptyMars__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): RevertingEmptyMarsInterface { - return new Interface(_abi) as RevertingEmptyMarsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): RevertingEmptyMars { - return new Contract(address, _abi, runner) as unknown as RevertingEmptyMars; - } -} diff --git a/src/evm/contracts/factories/Mars.sol/RevertingStringCloseChannelMars__factory.ts b/src/evm/contracts/factories/Mars.sol/RevertingStringCloseChannelMars__factory.ts deleted file mode 100644 index 9cb9d681..00000000 --- a/src/evm/contracts/factories/Mars.sol/RevertingStringCloseChannelMars__factory.ts +++ /dev/null @@ -1,984 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../common"; -import type { - RevertingStringCloseChannelMars, - RevertingStringCloseChannelMarsInterface, -} from "../../Mars.sol/RevertingStringCloseChannelMars"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "ackPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "connectedChannels", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "greet", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "greetWithFee", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ackPacket", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvedPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "supportedVersions", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "timeoutPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelClose", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInitWithFee", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "event", - name: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ChannelNotFound", - inputs: [], - }, - { - type: "error", - name: "UnsupportedVersion", - inputs: [], - }, - { - type: "error", - name: "notIbcDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x600360c0818152620312e360ec1b60e0526080908152610140604052610100918252620322e360ec1b6101205260a09190915262000042906006906002620000f9565b503480156200005057600080fd5b5060405162002a7038038062002a708339810160408190526200007391620001d0565b80806200008033620000a9565b600180546001600160a01b0319166001600160a01b039290921691909117905550620003739050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000144579160200282015b82811115620001445782518290620001339082620002a7565b50916020019190600101906200011a565b506200015292915062000156565b5090565b80821115620001525760006200016d828262000177565b5060010162000156565b508054620001859062000218565b6000825580601f1062000196575050565b601f016020900490600052602060002090810190620001b69190620001b9565b50565b5b80821115620001525760008155600101620001ba565b600060208284031215620001e357600080fd5b81516001600160a01b0381168114620001fb57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022d57607f821691505b6020821081036200024e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a257600081815260208120601f850160051c810160208610156200027d5750805b601f850160051c820191505b818110156200029e5782815560010162000289565b5050505b505050565b81516001600160401b03811115620002c357620002c362000202565b620002db81620002d4845462000218565b8462000254565b602080601f831160018114620003135760008415620002fa5750858301515b600019600386901b1c1916600185901b1785556200029e565b600085815260208120601f198616915b82811015620003445788860151825594840194600190910190840162000323565b5085821015620003635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6126ed80620003836000396000f3fe6080604052600436106101445760003560e01c8063715018a6116100b6578063bb3f9f8d1161006f578063bb3f9f8d14610396578063cb7e9057146103c4578063e847e280146103e4578063f12b758a14610404578063f2fde38b14610424578063fad28a241461044457600080fd5b8063715018a6146102cf5780637a805598146102e45780637a9ccc4b146103045780637d622184146103245780637e1d42b5146103445780638da5cb5b1461036457600080fd5b80634dcc0aa6116101085780634dcc0aa6146101fd5780634eeb73911461022a578063558850ac1461025c5780635bfd12b81461027c578063602f98341461029c57806361995001146102bc57600080fd5b80631eb7dd5e146101505780633513a995146101725780633f9fdbe4146101505780634252ae9b146101a25780634bdb5597146101d057600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b366004611444565b610464565b005b6101856101803660046114c7565b6104e2565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101ae57600080fd5b506101c26101bd366004611547565b610582565b6040516101999291906115ad565b3480156101dc57600080fd5b506101f06101eb3660046116de565b61063e565b6040516101999190611817565b34801561020957600080fd5b5061021d6102183660046118bd565b610683565b60405161019991906119a5565b34801561023657600080fd5b5061024a610245366004611547565b61085e565b604051610199969594939291906119f5565b34801561026857600080fd5b50610170610277366004611547565b610ab6565b34801561028857600080fd5b50610185610297366004611a6a565b610b1f565b3480156102a857600080fd5b506101706102b7366004611ae0565b610ba2565b6101706102ca366004611b66565b610c13565b3480156102db57600080fd5b50610170610cdf565b3480156102f057600080fd5b506101706102ff366004611b66565b610cf3565b34801561031057600080fd5b506101f061031f366004611c27565b610d75565b34801561033057600080fd5b506101f061033f366004611547565b610dad565b34801561035057600080fd5b5061017061035f366004611cb1565b610e59565b34801561037057600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610199565b3480156103a257600080fd5b506103b66103b1366004611547565b610ec5565b604051908152602001610199565b3480156103d057600080fd5b5060015461037e906001600160a01b031681565b3480156103f057600080fd5b506101706103ff366004611d1b565b610ee6565b34801561041057600080fd5b5061024a61041f366004611547565b610f1c565b34801561043057600080fd5b5061017061043f366004611d82565b610f2c565b34801561045057600080fd5b5061017061045f366004611547565b610fa5565b6001546001600160a01b0316331461048f576040516321bf7f4960e01b815260040160405180910390fd5b60405162461bcd60e51b815260206004820152601e60248201527f636c6f736520696263206368616e6e656c20697320726576657274696e67000060448201526064015b60405180910390fd5b50505050565b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c906105199088908b908b908a90600401611dc8565b6020604051808303816000875af1158015610538573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055c9190611dfc565b600154909150610578906001600160a01b031686838686610fd0565b9695505050505050565b6003818154811061059257600080fd5b60009182526020909120600290910201805460018201805460ff9092169350906105bb90611e19565b80601f01602080910402602001604051908101604052809291908181526020018280546105e790611e19565b80156106345780601f1061060957610100808354040283529160200191610634565b820191906000526020600020905b81548152906001019060200180831161061757829003601f168201915b5050505050905082565b6001546060906001600160a01b0316331461066c576040516321bf7f4960e01b815260040160405180910390fd5b61067786848461109f565b98975050505050505050565b6040805180820190915260008152606060208201526001546001600160a01b031633146106c3576040516321bf7f4960e01b815260040160405180910390fd5b600280546001810182556000919091528251805184926008027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0191908290819061070e9082611eb0565b506020918201516001909101558201518051600283019081906107319082611eb0565b5060209190910151600190910155604082015160048201805467ffffffffffffffff19166001600160401b039092169190911790556060820151600582019061077a9082611eb0565b50608082015180516006830180546020938401516001600160401b03908116600160401b026fffffffffffffffffffffffffffffffff199092169381169390931717905560a090930151600790920180549290931667ffffffffffffffff19929092169190911790915560408051808201825260018152905190918281019161084491017f7b20226163636f756e74223a20226163636f756e74222c20227265706c79223a8152732022676f7420746865206d65737361676522207d60601b602082015260340190565b60405160208183030381529060405281525090505b919050565b6004818154811061086e57600080fd5b9060005260206000209060080201600091509050806000016040518060400160405290816000820180546108a190611e19565b80601f01602080910402602001604051908101604052809291908181526020018280546108cd90611e19565b801561091a5780601f106108ef5761010080835404028352916020019161091a565b820191906000526020600020905b8154815290600101906020018083116108fd57829003601f168201915b50505050508152602001600182015481525050908060020160405180604001604052908160008201805461094d90611e19565b80601f016020809104026020016040519081016040528092919081815260200182805461097990611e19565b80156109c65780601f1061099b576101008083540402835291602001916109c6565b820191906000526020600020905b8154815290600101906020018083116109a957829003601f168201915b505050918352505060019190910154602090910152600482015460058301805492936001600160401b03909216926109fd90611e19565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2990611e19565b8015610a765780601f10610a4b57610100808354040283529160200191610a76565b820191906000526020600020905b815481529060010190602001808311610a5957829003601f168201915b50506040805180820190915260068601546001600160401b038082168352600160401b909104811660208301526007909601549495909416925088915050565b610abe6111c5565b6001546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b158015610b0457600080fd5b505af1158015610b18573d6000803e3d6000fd5b5050505050565b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c90610b56908690899089908890600401611dc8565b6020604051808303816000875af1158015610b75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b999190611dfc565b95945050505050565b6001546001600160a01b03163314610bcd576040516321bf7f4960e01b815260040160405180910390fd5b6004805460018101825560009190915281906008027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01610c0e82826121cb565b505050565b610c1b6111c5565b60015460405163418925b760e01b81526001600160a01b0390911690819063418925b790610c5b908c908c908c908c908c908c908c908c906004016123fe565b600060405180830381600087803b158015610c7557600080fd5b505af1158015610c89573d6000803e3d6000fd5b50505050610cd4818a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c92508a9150899050888861121f565b505050505050505050565b610ce76111c5565b610cf160006112d4565b565b610cfb6111c5565b60015460405163418925b760e01b81526001600160a01b039091169063418925b790610d39908b908b908b908b908b908b908b908b906004016123fe565b600060405180830381600087803b158015610d5357600080fd5b505af1158015610d67573d6000803e3d6000fd5b505050505050505050505050565b6001546060906001600160a01b03163314610da3576040516321bf7f4960e01b815260040160405180910390fd5b6106778383611324565b60068181548110610dbd57600080fd5b906000526020600020016000915090508054610dd890611e19565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0490611e19565b8015610e515780601f10610e2657610100808354040283529160200191610e51565b820191906000526020600020905b815481529060010190602001808311610e3457829003601f168201915b505050505081565b6001546001600160a01b03163314610e84576040516321bf7f4960e01b815260040160405180910390fd5b6003805460018101825560009190915281906002027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016104dc828261245e565b60058181548110610ed557600080fd5b600091825260209091200154905081565b6001546001600160a01b03163314610f11576040516321bf7f4960e01b815260040160405180910390fd5b610b1884838361109f565b6002818154811061086e57600080fd5b610f346111c5565b6001600160a01b038116610f995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d3565b610fa2816112d4565b50565b6001546001600160a01b03163314610fa2576040516321bf7f4960e01b815260040160405180910390fd5b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611010573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611034919061253e565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b8152600401611066949392919061255b565b6000604051808303818588803b15801561107f57600080fd5b505af1158015611093573d6000803e3d6000fd5b50505050505050505050565b606060005b6006548110156111a457600681815481106110c1576110c161258d565b906000526020600020016040516020016110db91906125a3565b604051602081830303815290604052805190602001208484604051602001611104929190612619565b604051602081830303815290604052805190602001200361119257600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001859055604080516020601f86018190048102820181019092528481529085908590819084018382808284376000920191909152509294506111be9350505050565b8061119c81612629565b9150506110a4565b5060405163b01318a560e01b815260040160405180910390fd5b9392505050565b6000546001600160a01b03163314610cf15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d3565b866001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af115801561125f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611283919061253e565b6001600160a01b031663fce34e4034308989898989896040518963ffffffff1660e01b81526004016112bb9796959493929190612650565b6000604051808303818588803b158015610d5357600080fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060005b6006548110156111a457600681815481106113465761134661258d565b9060005260206000200160405160200161136091906125a3565b604051602081830303815290604052805190602001208484604051602001611389929190612619565b60405160208183030381529060405280519060200120036113e45783838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294506113f69350505050565b806113ee81612629565b915050611329565b92915050565b60008083601f84011261140e57600080fd5b5081356001600160401b0381111561142557600080fd5b60208301915083602082850101111561143d57600080fd5b9250929050565b6000806000806060858703121561145a57600080fd5b8435935060208501356001600160401b0381111561147757600080fd5b611483878288016113fc565b9598909750949560400135949350505050565b6001600160401b0381168114610fa257600080fd5b803561085981611496565b80604081018310156113f657600080fd5b60008060008060008060e087890312156114e057600080fd5b86356001600160401b038111156114f657600080fd5b61150289828a016113fc565b90975095505060208701359350604087013561151d81611496565b925061152c88606089016114b6565b915061153b8860a089016114b6565b90509295509295509295565b60006020828403121561155957600080fd5b5035919050565b6000815180845260005b818110156115865760208185018101518683018201520161156a565b81811115611598576000602083870101525b50601f01601f19169290920160200192915050565b82151581526040602082015260006115c86040830184611560565b949350505050565b80356003811061085957600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715611617576116176115df565b60405290565b60405160c081016001600160401b0381118282101715611617576116176115df565b604051601f8201601f191681016001600160401b0381118282101715611667576116676115df565b604052919050565b600082601f83011261168057600080fd5b81356001600160401b03811115611699576116996115df565b6116ac601f8201601f191660200161163f565b8181528460208386010111156116c157600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a0312156116f957600080fd5b611702886115d0565b965060208801356001600160401b038082111561171e57600080fd5b818a0191508a601f83011261173257600080fd5b813581811115611744576117446115df565b8060051b6117546020820161163f565b9182526020818501810192908101908e84111561177057600080fd5b6020860192505b838310156117ae57848335111561178d57600080fd5b61179d8f6020853589010161166f565b825260209283019290910190611777565b9a5050505060408a0135965060608a01359150808211156117ce57600080fd5b6117da8b838c0161166f565b955060808a0135945060a08a01359150808211156117f757600080fd5b506118048a828b016113fc565b989b979a50959850939692959293505050565b6020815260006111be6020830184611560565b60006040828403121561183c57600080fd5b6118446115f5565b905081356001600160401b0381111561185c57600080fd5b6118688482850161166f565b8252506020820135602082015292915050565b60006040828403121561188d57600080fd5b6118956115f5565b905081356118a281611496565b815260208201356118b281611496565b602082015292915050565b6000602082840312156118cf57600080fd5b81356001600160401b03808211156118e657600080fd5b9083019060e082860312156118fa57600080fd5b61190261161d565b82358281111561191157600080fd5b61191d8782860161182a565b82525060208301358281111561193257600080fd5b61193e8782860161182a565b602083015250611950604084016114ab565b604082015260608301358281111561196757600080fd5b6119738782860161166f565b606083015250611986866080850161187b565b608082015261199760c084016114ab565b60a082015295945050505050565b60208152815115156020820152600060208301516040808401526115c86060840182611560565b60008151604084526119e16040850182611560565b602093840151949093019390935250919050565b60e081526000611a0860e08301896119cc565b8281036020840152611a1a81896119cc565b90506001600160401b0380881660408501528382036060850152611a3e8288611560565b92508086511660808501528060208701511660a085015280851660c08501525050979650505050505050565b60008060008060608587031215611a8057600080fd5b84356001600160401b03811115611a9657600080fd5b611aa2878288016113fc565b909550935050602085013591506040850135611abd81611496565b939692955090935050565b600060e08284031215611ada57600080fd5b50919050565b600060208284031215611af257600080fd5b81356001600160401b03811115611b0857600080fd5b6115c884828501611ac8565b8015158114610fa257600080fd5b60008083601f840112611b3457600080fd5b5081356001600160401b03811115611b4b57600080fd5b6020830191508360208260051b850101111561143d57600080fd5b60008060008060008060008060a0898b031215611b8257600080fd5b88356001600160401b0380821115611b9957600080fd5b611ba58c838d016113fc565b909a509850889150611bb960208c016115d0565b975060408b01359150611bcb82611b14565b90955060608a01359080821115611be157600080fd5b611bed8c838d01611b22565b909650945060808b0135915080821115611c0657600080fd5b50611c138b828c016113fc565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611c4257600080fd5b611c4b886115d0565b965060208801356001600160401b0380821115611c6757600080fd5b611c738b838c01611b22565b909850965060408a0135915080821115611c8c57600080fd5b611c988b838c016113fc565b909650945060608a01359150808211156117f757600080fd5b60008060408385031215611cc457600080fd5b82356001600160401b0380821115611cdb57600080fd5b611ce786838701611ac8565b93506020850135915080821115611cfd57600080fd5b50830160408186031215611d1057600080fd5b809150509250929050565b60008060008060608587031215611d3157600080fd5b843593506020850135925060408501356001600160401b03811115611d5557600080fd5b611d61878288016113fc565b95989497509550505050565b6001600160a01b0381168114610fa257600080fd5b600060208284031215611d9457600080fd5b81356111be81611d6d565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b848152606060208201526000611de2606083018587611d9f565b90506001600160401b038316604083015295945050505050565b600060208284031215611e0e57600080fd5b81516111be81611496565b600181811c90821680611e2d57607f821691505b602082108103611ada57634e487b7160e01b600052602260045260246000fd5b601f821115610c0e57600081815260208120601f850160051c81016020861015611e745750805b601f850160051c820191505b81811015611e9357828155600101611e80565b505050505050565b600019600383901b1c191660019190911b1790565b81516001600160401b03811115611ec957611ec96115df565b611edd81611ed78454611e19565b84611e4d565b602080601f831160018114611f0c5760008415611efa5750858301515b611f048582611e9b565b865550611e93565b600085815260208120601f198616915b82811015611f3b57888601518255948401946001909101908401611f1c565b5085821015611f595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008235603e19833603018112611f7f57600080fd5b9190910192915050565b6000808335601e19843603018112611fa057600080fd5b8301803591506001600160401b03821115611fba57600080fd5b60200191503681900382131561143d57600080fd5b611fd98283611f89565b6001600160401b03811115611ff057611ff06115df565b61200481611ffe8554611e19565b85611e4d565b6000601f82116001811461203257600083156120205750838201355b61202a8482611e9b565b86555061208c565b600085815260209020601f19841690835b828110156120635786850135825560209485019460019092019101612043565b50848210156120805760001960f88660031b161c19848701351681555b505060018360011b0185555b50505050602082013560018201555050565b600081356113f681611496565b6001600160401b038311156120c2576120c26115df565b6120d6836120d08354611e19565b83611e4d565b6000601f84116001811461210457600085156120f25750838201355b6120fc8682611e9b565b845550610b18565b600083815260209020601f19861690835b828110156121355786850135825560209485019460019092019101612115565b50868210156121525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b813561216f81611496565b815467ffffffffffffffff19166001600160401b03821617825550602082013561219881611496565b81546fffffffffffffffff0000000000000000191660409190911b6fffffffffffffffff00000000000000001617905550565b6121d58283611f69565b6121df8182611f89565b6001600160401b038111156121f6576121f66115df565b61220a816122048654611e19565b86611e4d565b6000601f82116001811461223857600083156122265750838201355b6122308482611e9b565b875550612292565b600086815260209020601f19841690835b828110156122695786850135825560209485019460019092019101612249565b50848210156122865760001960f88660031b161c19848701351681555b505060018360011b0186555b5050505060208101356001830155506122ba6122b16020840184611f69565b60028301611fcf565b6122ea6122c96040840161209e565b600483016001600160401b0382166001600160401b03198254161781555050565b6122f76060830183611f89565b6123058183600586016120ab565b50506123176080830160068301612164565b61234761232660c0840161209e565b600783016001600160401b0382166001600160401b03198254161781555050565b5050565b6003811061236957634e487b7160e01b600052602160045260246000fd5b9052565b81835260006020808501808196508560051b810191508460005b878110156123f15782840389528135601e198836030181126123a857600080fd5b870185810190356001600160401b038111156123c357600080fd5b8036038213156123d257600080fd5b6123dd868284611d9f565b9a87019a9550505090840190600101612387565b5091979650505050505050565b60a08152600061241260a083018a8c611d9f565b61241f602084018a61234b565b8715156040840152828103606084015261243a81878961236d565b9050828103608084015261244f818587611d9f565b9b9a5050505050505050505050565b813561246981611b14565b815490151560ff1660ff19919091161781556001808201602061248e85820186611f89565b6001600160401b038111156124a5576124a56115df565b6124b3816122048654611e19565b6000601f8211600181146124e157600083156124cf5750838201355b6124d98482611e9b565b875550610cd4565b600086815260209020601f19841690835b8281101561250f57868501358255938701939089019087016124f2565b508482101561252c5760001960f88660031b161c19848701351681555b50505050841b90930190915550505050565b60006020828403121561255057600080fd5b81516111be81611d6d565b8481526001600160401b038416602082015260c081016040848184013760408360808401376000815295945050505050565b634e487b7160e01b600052603260045260246000fd5b60008083546125b181611e19565b600182811680156125c957600181146125de5761260d565b60ff198416875282151583028701945061260d565b8760005260208060002060005b858110156126045781548a8201529084019082016125eb565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b60006001820161264957634e487b7160e01b600052601160045260246000fd5b5060010190565b6001600160a01b038816815260a06020820181905260009061267490830189611560565b612681604084018961234b565b828103606084015261269481878961236d565b905082810360808401526126a9818587611d9f565b9a995050505050505050505056fea264697066735822122006569cb6c28517c77f03f4623a06731fd7b1be1c870c00dacfbe0cf3c3ea5e1664736f6c634300080f0033"; - -type RevertingStringCloseChannelMarsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: RevertingStringCloseChannelMarsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class RevertingStringCloseChannelMars__factory extends ContractFactory { - constructor(...args: RevertingStringCloseChannelMarsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_dispatcher, overrides || {}); - } - override deploy( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_dispatcher, overrides || {}) as Promise< - RevertingStringCloseChannelMars & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect( - runner: ContractRunner | null - ): RevertingStringCloseChannelMars__factory { - return super.connect(runner) as RevertingStringCloseChannelMars__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): RevertingStringCloseChannelMarsInterface { - return new Interface(_abi) as RevertingStringCloseChannelMarsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): RevertingStringCloseChannelMars { - return new Contract( - address, - _abi, - runner - ) as unknown as RevertingStringCloseChannelMars; - } -} diff --git a/src/evm/contracts/factories/Mars.sol/RevertingStringMars__factory.ts b/src/evm/contracts/factories/Mars.sol/RevertingStringMars__factory.ts deleted file mode 100644 index 3ed4a8f4..00000000 --- a/src/evm/contracts/factories/Mars.sol/RevertingStringMars__factory.ts +++ /dev/null @@ -1,984 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../common"; -import type { - RevertingStringMars, - RevertingStringMarsInterface, -} from "../../Mars.sol/RevertingStringMars"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "ackPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "connectedChannels", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "greet", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "greetWithFee", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvedPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "supportedVersions", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "timeoutPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelClose", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInitWithFee", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "event", - name: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ChannelNotFound", - inputs: [], - }, - { - type: "error", - name: "UnsupportedVersion", - inputs: [], - }, - { - type: "error", - name: "notIbcDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x600360c0818152620312e360ec1b60e0526080908152610140604052610100918252620322e360ec1b6101205260a09190915262000042906006906002620000f9565b503480156200005057600080fd5b50604051620027ce380380620027ce8339810160408190526200007391620001d0565b80806200008033620000a9565b600180546001600160a01b0319166001600160a01b039290921691909117905550620003739050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000144579160200282015b82811115620001445782518290620001339082620002a7565b50916020019190600101906200011a565b506200015292915062000156565b5090565b80821115620001525760006200016d828262000177565b5060010162000156565b508054620001859062000218565b6000825580601f1062000196575050565b601f016020900490600052602060002090810190620001b69190620001b9565b50565b5b80821115620001525760008155600101620001ba565b600060208284031215620001e357600080fd5b81516001600160a01b0381168114620001fb57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022d57607f821691505b6020821081036200024e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a257600081815260208120601f850160051c810160208610156200027d5750805b601f850160051c820191505b818110156200029e5782815560010162000289565b5050505b505050565b81516001600160401b03811115620002c357620002c362000202565b620002db81620002d4845462000218565b8462000254565b602080601f831160018114620003135760008415620002fa5750858301515b600019600386901b1c1916600185901b1785556200029e565b600085815260208120601f198616915b82811015620003445788860151825594840194600190910190840162000323565b5085821015620003635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61244b80620003836000396000f3fe6080604052600436106101445760003560e01c8063715018a6116100b6578063bb3f9f8d1161006f578063bb3f9f8d146103b6578063cb7e9057146103e4578063e847e28014610404578063f12b758a14610424578063f2fde38b14610444578063fad28a241461046457600080fd5b8063715018a6146102ef5780637a805598146103045780637a9ccc4b146103245780637d622184146103445780637e1d42b5146103645780638da5cb5b1461038457600080fd5b80634dcc0aa6116101085780634dcc0aa61461021d5780634eeb73911461024a578063558850ac1461027c5780635bfd12b81461029c578063602f9834146102bc57806361995001146102dc57600080fd5b80631eb7dd5e146101505780633513a995146101725780633f9fdbe4146101a25780634252ae9b146101c25780634bdb5597146101f057600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b36600461133d565b610484565b005b6101856101803660046113cb565b6104b5565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101ae57600080fd5b506101706101bd36600461133d565b610555565b3480156101ce57600080fd5b506101e26101dd36600461144b565b610611565b6040516101999291906114b1565b3480156101fc57600080fd5b5061021061020b3660046115e2565b6106cd565b604051610199919061171b565b34801561022957600080fd5b5061023d6102383660046117c1565b610712565b60405161019991906118a9565b34801561025657600080fd5b5061026a61026536600461144b565b61079f565b604051610199969594939291906118f9565b34801561028857600080fd5b5061017061029736600461144b565b6109fc565b3480156102a857600080fd5b506101856102b736600461196e565b610a5e565b3480156102c857600080fd5b506101706102d73660046119e4565b610ae1565b6101706102ea366004611a5c565b610b52565b3480156102fb57600080fd5b50610170610c1e565b34801561031057600080fd5b5061017061031f366004611a5c565b610c32565b34801561033057600080fd5b5061021061033f366004611b22565b610cb4565b34801561035057600080fd5b5061021061035f36600461144b565b610d2a565b34801561037057600080fd5b5061017061037f366004611bac565b610dd6565b34801561039057600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610199565b3480156103c257600080fd5b506103d66103d136600461144b565b610e59565b604051908152602001610199565b3480156103f057600080fd5b5060015461039e906001600160a01b031681565b34801561041057600080fd5b5061017061041f366004611c16565b610e7a565b34801561043057600080fd5b5061026a61043f36600461144b565b610eed565b34801561045057600080fd5b5061017061045f366004611c7d565b610efd565b34801561047057600080fd5b5061017061047f36600461144b565b610f76565b6001546001600160a01b031633146104af576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c906104ec9088908b908b908a90600401611cc3565b6020604051808303816000875af115801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611cf7565b60015490915061054b906001600160a01b031686838686610fa1565b9695505050505050565b6001546001600160a01b03163314610580576040516321bf7f4960e01b815260040160405180910390fd5b6000805b6005548110156105eb5785600582815481106105a2576105a2611d14565b9060005260206000200154036105d957600581815481106105c5576105c5611d14565b6000918252602082200155600191506105eb565b806105e381611d2a565b915050610584565b508061060a57604051630781f76560e21b815260040160405180910390fd5b5050505050565b6003818154811061062157600080fd5b60009182526020909120600290910201805460018201805460ff90921693509061064a90611d51565b80601f016020809104026020016040519081016040528092919081815260200182805461067690611d51565b80156106c35780601f10610698576101008083540402835291602001916106c3565b820191906000526020600020905b8154815290600101906020018083116106a657829003601f168201915b5050505050905082565b6001546060906001600160a01b031633146106fb576040516321bf7f4960e01b815260040160405180910390fd5b610706868484611070565b98975050505050505050565b6040805180820190915260008152606060208201526001546001600160a01b03163314610752576040516321bf7f4960e01b815260040160405180910390fd5b60405162461bcd60e51b815260206004820152601b60248201527f6f6e2072656376207061636b657420697320726576657274696e67000000000060448201526064015b60405180910390fd5b600481815481106107af57600080fd5b9060005260206000209060080201600091509050806000016040518060400160405290816000820180546107e290611d51565b80601f016020809104026020016040519081016040528092919081815260200182805461080e90611d51565b801561085b5780601f106108305761010080835404028352916020019161085b565b820191906000526020600020905b81548152906001019060200180831161083e57829003601f168201915b50505050508152602001600182015481525050908060020160405180604001604052908160008201805461088e90611d51565b80601f01602080910402602001604051908101604052809291908181526020018280546108ba90611d51565b80156109075780601f106108dc57610100808354040283529160200191610907565b820191906000526020600020905b8154815290600101906020018083116108ea57829003601f168201915b505050918352505060019190910154602090910152600482015460058301805492936001600160401b039092169261093e90611d51565b80601f016020809104026020016040519081016040528092919081815260200182805461096a90611d51565b80156109b75780601f1061098c576101008083540402835291602001916109b7565b820191906000526020600020905b81548152906001019060200180831161099a57829003601f168201915b50506040805180820190915260068601546001600160401b03808216835268010000000000000000909104811660208301526007909601549495909416925088915050565b610a04611196565b6001546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b158015610a4a57600080fd5b505af115801561060a573d6000803e3d6000fd5b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c90610a95908690899089908890600401611cc3565b6020604051808303816000875af1158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190611cf7565b95945050505050565b6001546001600160a01b03163314610b0c576040516321bf7f4960e01b815260040160405180910390fd5b6004805460018101825560009190915281906008027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01610b4d828261204a565b505050565b610b5a611196565b60015460405163418925b760e01b81526001600160a01b0390911690819063418925b790610b9a908c908c908c908c908c908c908c908c90600401612279565b600060405180830381600087803b158015610bb457600080fd5b505af1158015610bc8573d6000803e3d6000fd5b50505050610c13818a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c92508a915089905088886111f0565b505050505050505050565b610c26611196565b610c3060006112a5565b565b610c3a611196565b60015460405163418925b760e01b81526001600160a01b039091169063418925b790610c78908b908b908b908b908b908b908b908b90600401612279565b600060405180830381600087803b158015610c9257600080fd5b505af1158015610ca6573d6000803e3d6000fd5b505050505050505050505050565b6001546060906001600160a01b03163314610ce2576040516321bf7f4960e01b815260040160405180910390fd5b60405162461bcd60e51b815260206004820152601d60248201527f6f70656e20696263206368616e6e656c20697320726576657274696e670000006044820152606401610796565b60068181548110610d3a57600080fd5b906000526020600020016000915090508054610d5590611d51565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8190611d51565b8015610dce5780601f10610da357610100808354040283529160200191610dce565b820191906000526020600020905b815481529060010190602001808311610db157829003601f168201915b505050505081565b6001546001600160a01b03163314610e01576040516321bf7f4960e01b815260040160405180910390fd5b60405162461bcd60e51b815260206004820152602360248201527f61636b6e6f776c656467656d656e74207061636b657420697320726576657274604482015262696e6760e81b6064820152608401610796565b5050565b60058181548110610e6957600080fd5b600091825260209091200154905081565b6001546001600160a01b03163314610ea5576040516321bf7f4960e01b815260040160405180910390fd5b60405162461bcd60e51b815260206004820181905260248201527f636f6e6e65637420696263206368616e6e656c20697320726576657274696e676044820152606401610796565b600281815481106107af57600080fd5b610f05611196565b6001600160a01b038116610f6a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610796565b610f73816112a5565b50565b6001546001600160a01b03163314610f73576040516321bf7f4960e01b815260040160405180910390fd5b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610fe1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100591906122d9565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b815260040161103794939291906122f6565b6000604051808303818588803b15801561105057600080fd5b505af1158015611064573d6000803e3d6000fd5b50505050505050505050565b606060005b600654811015611175576006818154811061109257611092611d14565b906000526020600020016040516020016110ac9190612328565b6040516020818303038152906040528051906020012084846040516020016110d592919061239e565b604051602081830303815290604052805190602001200361116357600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001859055604080516020601f860181900481028201810190925284815290859085908190840183828082843760009201919091525092945061118f9350505050565b8061116d81611d2a565b915050611075565b5060405163b01318a560e01b815260040160405180910390fd5b9392505050565b6000546001600160a01b03163314610c305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610796565b866001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611230573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125491906122d9565b6001600160a01b031663fce34e4034308989898989896040518963ffffffff1660e01b815260040161128c97969594939291906123ae565b6000604051808303818588803b158015610c9257600080fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f84011261130757600080fd5b5081356001600160401b0381111561131e57600080fd5b60208301915083602082850101111561133657600080fd5b9250929050565b6000806000806060858703121561135357600080fd5b8435935060208501356001600160401b0381111561137057600080fd5b61137c878288016112f5565b9598909750949560400135949350505050565b6001600160401b0381168114610f7357600080fd5b80356113af8161138f565b919050565b80604081018310156113c557600080fd5b92915050565b60008060008060008060e087890312156113e457600080fd5b86356001600160401b038111156113fa57600080fd5b61140689828a016112f5565b9097509550506020870135935060408701356114218161138f565b925061143088606089016113b4565b915061143f8860a089016113b4565b90509295509295509295565b60006020828403121561145d57600080fd5b5035919050565b6000815180845260005b8181101561148a5760208185018101518683018201520161146e565b8181111561149c576000602083870101525b50601f01601f19169290920160200192915050565b82151581526040602082015260006114cc6040830184611464565b949350505050565b8035600381106113af57600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561151b5761151b6114e3565b60405290565b60405160c081016001600160401b038111828210171561151b5761151b6114e3565b604051601f8201601f191681016001600160401b038111828210171561156b5761156b6114e3565b604052919050565b600082601f83011261158457600080fd5b81356001600160401b0381111561159d5761159d6114e3565b6115b0601f8201601f1916602001611543565b8181528460208386010111156115c557600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a0312156115fd57600080fd5b611606886114d4565b965060208801356001600160401b038082111561162257600080fd5b818a0191508a601f83011261163657600080fd5b813581811115611648576116486114e3565b8060051b61165860208201611543565b9182526020818501810192908101908e84111561167457600080fd5b6020860192505b838310156116b257848335111561169157600080fd5b6116a18f60208535890101611573565b82526020928301929091019061167b565b9a5050505060408a0135965060608a01359150808211156116d257600080fd5b6116de8b838c01611573565b955060808a0135945060a08a01359150808211156116fb57600080fd5b506117088a828b016112f5565b989b979a50959850939692959293505050565b60208152600061118f6020830184611464565b60006040828403121561174057600080fd5b6117486114f9565b905081356001600160401b0381111561176057600080fd5b61176c84828501611573565b8252506020820135602082015292915050565b60006040828403121561179157600080fd5b6117996114f9565b905081356117a68161138f565b815260208201356117b68161138f565b602082015292915050565b6000602082840312156117d357600080fd5b81356001600160401b03808211156117ea57600080fd5b9083019060e082860312156117fe57600080fd5b611806611521565b82358281111561181557600080fd5b6118218782860161172e565b82525060208301358281111561183657600080fd5b6118428782860161172e565b602083015250611854604084016113a4565b604082015260608301358281111561186b57600080fd5b61187787828601611573565b60608301525061188a866080850161177f565b608082015261189b60c084016113a4565b60a082015295945050505050565b60208152815115156020820152600060208301516040808401526114cc6060840182611464565b60008151604084526118e56040850182611464565b602093840151949093019390935250919050565b60e08152600061190c60e08301896118d0565b828103602084015261191e81896118d0565b90506001600160401b03808816604085015283820360608501526119428288611464565b92508086511660808501528060208701511660a085015280851660c08501525050979650505050505050565b6000806000806060858703121561198457600080fd5b84356001600160401b0381111561199a57600080fd5b6119a6878288016112f5565b9095509350506020850135915060408501356119c18161138f565b939692955090935050565b600060e082840312156119de57600080fd5b50919050565b6000602082840312156119f657600080fd5b81356001600160401b03811115611a0c57600080fd5b6114cc848285016119cc565b60008083601f840112611a2a57600080fd5b5081356001600160401b03811115611a4157600080fd5b6020830191508360208260051b850101111561133657600080fd5b60008060008060008060008060a0898b031215611a7857600080fd5b88356001600160401b0380821115611a8f57600080fd5b611a9b8c838d016112f5565b909a509850889150611aaf60208c016114d4565b975060408b013591508115158214611ac657600080fd5b90955060608a01359080821115611adc57600080fd5b611ae88c838d01611a18565b909650945060808b0135915080821115611b0157600080fd5b50611b0e8b828c016112f5565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611b3d57600080fd5b611b46886114d4565b965060208801356001600160401b0380821115611b6257600080fd5b611b6e8b838c01611a18565b909850965060408a0135915080821115611b8757600080fd5b611b938b838c016112f5565b909650945060608a01359150808211156116fb57600080fd5b60008060408385031215611bbf57600080fd5b82356001600160401b0380821115611bd657600080fd5b611be2868387016119cc565b93506020850135915080821115611bf857600080fd5b50830160408186031215611c0b57600080fd5b809150509250929050565b60008060008060608587031215611c2c57600080fd5b843593506020850135925060408501356001600160401b03811115611c5057600080fd5b611c5c878288016112f5565b95989497509550505050565b6001600160a01b0381168114610f7357600080fd5b600060208284031215611c8f57600080fd5b813561118f81611c68565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b848152606060208201526000611cdd606083018587611c9a565b90506001600160401b038316604083015295945050505050565b600060208284031215611d0957600080fd5b815161118f8161138f565b634e487b7160e01b600052603260045260246000fd5b600060018201611d4a57634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680611d6557607f821691505b6020821081036119de57634e487b7160e01b600052602260045260246000fd5b60008235603e19833603018112611d9b57600080fd5b9190910192915050565b6000808335601e19843603018112611dbc57600080fd5b8301803591506001600160401b03821115611dd657600080fd5b60200191503681900382131561133657600080fd5b601f821115610b4d57600081815260208120601f850160051c81016020861015611e125750805b601f850160051c820191505b81811015611e3157828155600101611e1e565b505050505050565b600019600383901b1c191660019190911b1790565b611e588283611da5565b6001600160401b03811115611e6f57611e6f6114e3565b611e8381611e7d8554611d51565b85611deb565b6000601f821160018114611eb15760008315611e9f5750838201355b611ea98482611e39565b865550611f0b565b600085815260209020601f19841690835b82811015611ee25786850135825560209485019460019092019101611ec2565b5084821015611eff5760001960f88660031b161c19848701351681555b505060018360011b0185555b50505050602082013560018201555050565b600081356113c58161138f565b6001600160401b03831115611f4157611f416114e3565b611f5583611f4f8354611d51565b83611deb565b6000601f841160018114611f835760008515611f715750838201355b611f7b8682611e39565b84555061060a565b600083815260209020601f19861690835b82811015611fb45786850135825560209485019460019092019101611f94565b5086821015611fd15760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8135611fee8161138f565b815467ffffffffffffffff19166001600160401b0382161782555060208201356120178161138f565b81546fffffffffffffffff0000000000000000191660409190911b6fffffffffffffffff00000000000000001617905550565b6120548283611d85565b61205e8182611da5565b6001600160401b03811115612075576120756114e3565b612089816120838654611d51565b86611deb565b6000601f8211600181146120b757600083156120a55750838201355b6120af8482611e39565b875550612111565b600086815260209020601f19841690835b828110156120e857868501358255602094850194600190920191016120c8565b50848210156121055760001960f88660031b161c19848701351681555b505060018360011b0186555b5050505060208101356001830155506121396121306020840184611d85565b60028301611e4e565b61216961214860408401611f1d565b600483016001600160401b0382166001600160401b03198254161781555050565b6121766060830183611da5565b612184818360058601611f2a565b50506121966080830160068301611fe3565b610e556121a560c08401611f1d565b600783016001600160401b0382166001600160401b03198254161781555050565b600381106121e457634e487b7160e01b600052602160045260246000fd5b9052565b81835260006020808501808196508560051b810191508460005b8781101561226c5782840389528135601e1988360301811261222357600080fd5b870185810190356001600160401b0381111561223e57600080fd5b80360382131561224d57600080fd5b612258868284611c9a565b9a87019a9550505090840190600101612202565b5091979650505050505050565b60a08152600061228d60a083018a8c611c9a565b61229a602084018a6121c6565b871515604084015282810360608401526122b58187896121e8565b905082810360808401526122ca818587611c9a565b9b9a5050505050505050505050565b6000602082840312156122eb57600080fd5b815161118f81611c68565b8481526001600160401b038416602082015260c081016040848184013760408360808401376000815295945050505050565b600080835461233681611d51565b6001828116801561234e576001811461236357612392565b60ff1984168752821515830287019450612392565b8760005260208060002060005b858110156123895781548a820152908401908201612370565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b6001600160a01b038816815260a0602082018190526000906123d290830189611464565b6123df60408401896121c6565b82810360608401526123f28187896121e8565b90508281036080840152612407818587611c9a565b9a995050505050505050505056fea2646970667358221220398ac2afa90f438ad7276f929c27f257f6c2bca6b50ff9eeb0cf22d853b2059d64736f6c634300080f0033"; - -type RevertingStringMarsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: RevertingStringMarsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class RevertingStringMars__factory extends ContractFactory { - constructor(...args: RevertingStringMarsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_dispatcher, overrides || {}); - } - override deploy( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_dispatcher, overrides || {}) as Promise< - RevertingStringMars & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect( - runner: ContractRunner | null - ): RevertingStringMars__factory { - return super.connect(runner) as RevertingStringMars__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): RevertingStringMarsInterface { - return new Interface(_abi) as RevertingStringMarsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): RevertingStringMars { - return new Contract( - address, - _abi, - runner - ) as unknown as RevertingStringMars; - } -} diff --git a/src/evm/contracts/factories/Mars.sol/index.ts b/src/evm/contracts/factories/Mars.sol/index.ts deleted file mode 100644 index b850b869..00000000 --- a/src/evm/contracts/factories/Mars.sol/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Mars__factory } from "./Mars__factory"; -export { PanickingMars__factory } from "./PanickingMars__factory"; -export { RevertingBytesMars__factory } from "./RevertingBytesMars__factory"; -export { RevertingEmptyMars__factory } from "./RevertingEmptyMars__factory"; -export { RevertingStringCloseChannelMars__factory } from "./RevertingStringCloseChannelMars__factory"; -export { RevertingStringMars__factory } from "./RevertingStringMars__factory"; diff --git a/src/evm/contracts/factories/Moon__factory.ts b/src/evm/contracts/factories/Moon__factory.ts deleted file mode 100644 index 45457a46..00000000 --- a/src/evm/contracts/factories/Moon__factory.ts +++ /dev/null @@ -1,972 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { Moon, MoonInterface } from "../Moon"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "ackPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "connectedChannels", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "greet", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "greetWithFee", - inputs: [ - { - name: "message", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - { - name: "counterpartyChannelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ackPacket", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "recvedPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "renounceOwnership", - inputs: [], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "supportedVersions", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "timeoutPackets", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelClose", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInit", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "triggerChannelInitWithFee", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortId", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "payable", - }, - { - type: "event", - name: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ChannelNotFound", - inputs: [], - }, - { - type: "error", - name: "UnsupportedVersion", - inputs: [], - }, - { - type: "error", - name: "notIbcDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x600360c0818152620312e360ec1b60e0526080908152610140604052610100918252620322e360ec1b6101205260a09190915262000042906006906002620000f9565b503480156200005057600080fd5b5060405162002afa38038062002afa8339810160408190526200007391620001d0565b80806200008033620000a9565b600180546001600160a01b0319166001600160a01b039290921691909117905550620003739050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000144579160200282015b82811115620001445782518290620001339082620002a7565b50916020019190600101906200011a565b506200015292915062000156565b5090565b80821115620001525760006200016d828262000177565b5060010162000156565b508054620001859062000218565b6000825580601f1062000196575050565b601f016020900490600052602060002090810190620001b69190620001b9565b50565b5b80821115620001525760008155600101620001ba565b600060208284031215620001e357600080fd5b81516001600160a01b0381168114620001fb57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022d57607f821691505b6020821081036200024e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a257600081815260208120601f850160051c810160208610156200027d5750805b601f850160051c820191505b818110156200029e5782815560010162000289565b5050505b505050565b81516001600160401b03811115620002c357620002c362000202565b620002db81620002d4845462000218565b8462000254565b602080601f831160018114620003135760008415620002fa5750858301515b600019600386901b1c1916600185901b1785556200029e565b600085815260208120601f198616915b82811015620003445788860151825594840194600190910190840162000323565b5085821015620003635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61277780620003836000396000f3fe6080604052600436106101445760003560e01c8063715018a6116100b6578063bb3f9f8d1161006f578063bb3f9f8d146103b6578063cb7e9057146103e4578063e847e28014610404578063f12b758a14610424578063f2fde38b14610444578063fad28a241461046457600080fd5b8063715018a6146102ef5780637a805598146103045780637a9ccc4b146103245780637d622184146103445780637e1d42b5146103645780638da5cb5b1461038457600080fd5b80634dcc0aa6116101085780634dcc0aa61461021d5780634eeb73911461024a578063558850ac1461027c5780635bfd12b81461029c578063602f9834146102bc57806361995001146102dc57600080fd5b80631eb7dd5e146101505780633513a995146101725780633f9fdbe4146101a25780634252ae9b146101c25780634bdb5597146101f057600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b3660046114d1565b610484565b005b610185610180366004611554565b6104b5565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101ae57600080fd5b506101706101bd3660046114d1565b610555565b3480156101ce57600080fd5b506101e26101dd3660046115d4565b610611565b60405161019992919061163a565b3480156101fc57600080fd5b5061021061020b36600461176b565b6106cd565b60405161019991906118a4565b34801561022957600080fd5b5061023d61023836600461194a565b610712565b6040516101999190611a32565b34801561025657600080fd5b5061026a6102653660046115d4565b6108ed565b60405161019996959493929190611a82565b34801561028857600080fd5b506101706102973660046115d4565b610b45565b3480156102a857600080fd5b506101856102b7366004611af7565b610ba7565b3480156102c857600080fd5b506101706102d7366004611b6d565b610c2a565b6101706102ea366004611bf3565b610c9b565b3480156102fb57600080fd5b50610170610d67565b34801561031057600080fd5b5061017061031f366004611bf3565b610d7b565b34801561033057600080fd5b5061021061033f366004611cb4565b610dfd565b34801561035057600080fd5b5061021061035f3660046115d4565b610e35565b34801561037057600080fd5b5061017061037f366004611d3e565b610ee1565b34801561039057600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610199565b3480156103c257600080fd5b506103d66103d13660046115d4565b610f4d565b604051908152602001610199565b3480156103f057600080fd5b5060015461039e906001600160a01b031681565b34801561041057600080fd5b5061017061041f366004611da8565b610f6e565b34801561043057600080fd5b5061026a61043f3660046115d4565b610fa4565b34801561045057600080fd5b5061017061045f366004611e0f565b610fb4565b34801561047057600080fd5b5061017061047f3660046115d4565b611032565b6001546001600160a01b031633146104af576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c906104ec9088908b908b908a90600401611e55565b6020604051808303816000875af115801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611e89565b60015490915061054b906001600160a01b03168683868661105d565b9695505050505050565b6001546001600160a01b03163314610580576040516321bf7f4960e01b815260040160405180910390fd5b6000805b6005548110156105eb5785600582815481106105a2576105a2611ea6565b9060005260206000200154036105d957600581815481106105c5576105c5611ea6565b6000918252602082200155600191506105eb565b806105e381611ebc565b915050610584565b508061060a57604051630781f76560e21b815260040160405180910390fd5b5050505050565b6003818154811061062157600080fd5b60009182526020909120600290910201805460018201805460ff90921693509061064a90611ee3565b80601f016020809104026020016040519081016040528092919081815260200182805461067690611ee3565b80156106c35780601f10610698576101008083540402835291602001916106c3565b820191906000526020600020905b8154815290600101906020018083116106a657829003601f168201915b5050505050905082565b6001546060906001600160a01b031633146106fb576040516321bf7f4960e01b815260040160405180910390fd5b61070686848461112c565b98975050505050505050565b6040805180820190915260008152606060208201526001546001600160a01b03163314610752576040516321bf7f4960e01b815260040160405180910390fd5b600280546001810182556000919091528251805184926008027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0191908290819061079d9082611f7a565b506020918201516001909101558201518051600283019081906107c09082611f7a565b5060209190910151600190910155604082015160048201805467ffffffffffffffff19166001600160401b03909216919091179055606082015160058201906108099082611f7a565b50608082015180516006830180546020938401516001600160401b03908116600160401b026fffffffffffffffffffffffffffffffff199092169381169390931717905560a090930151600790920180549290931667ffffffffffffffff1992909216919091179091556040805180820182526001815290519091828101916108d391017f7b20226163636f756e74223a20226163636f756e74222c20227265706c79223a8152732022676f7420746865206d65737361676522207d60601b602082015260340190565b60405160208183030381529060405281525090505b919050565b600481815481106108fd57600080fd5b90600052602060002090600802016000915090508060000160405180604001604052908160008201805461093090611ee3565b80601f016020809104026020016040519081016040528092919081815260200182805461095c90611ee3565b80156109a95780601f1061097e576101008083540402835291602001916109a9565b820191906000526020600020905b81548152906001019060200180831161098c57829003601f168201915b5050505050815260200160018201548152505090806002016040518060400160405290816000820180546109dc90611ee3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0890611ee3565b8015610a555780601f10610a2a57610100808354040283529160200191610a55565b820191906000526020600020905b815481529060010190602001808311610a3857829003601f168201915b505050918352505060019190910154602090910152600482015460058301805492936001600160401b0390921692610a8c90611ee3565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab890611ee3565b8015610b055780601f10610ada57610100808354040283529160200191610b05565b820191906000526020600020905b815481529060010190602001808311610ae857829003601f168201915b50506040805180820190915260068601546001600160401b038082168352600160401b909104811660208301526007909601549495909416925088915050565b610b4d611252565b6001546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b158015610b9357600080fd5b505af115801561060a573d6000803e3d6000fd5b6001546040516330f8455760e21b81526000916001600160a01b03169063c3e1155c90610bde908690899089908890600401611e55565b6020604051808303816000875af1158015610bfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c219190611e89565b95945050505050565b6001546001600160a01b03163314610c55576040516321bf7f4960e01b815260040160405180910390fd5b6004805460018101825560009190915281906008027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01610c968282612295565b505050565b610ca3611252565b60015460405163418925b760e01b81526001600160a01b0390911690819063418925b790610ce3908c908c908c908c908c908c908c908c906004016124c5565b600060405180830381600087803b158015610cfd57600080fd5b505af1158015610d11573d6000803e3d6000fd5b50505050610d5c818a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c92508a915089905088886112ac565b505050505050505050565b610d6f611252565b610d796000611361565b565b610d83611252565b60015460405163418925b760e01b81526001600160a01b039091169063418925b790610dc1908b908b908b908b908b908b908b908b906004016124c5565b600060405180830381600087803b158015610ddb57600080fd5b505af1158015610def573d6000803e3d6000fd5b505050505050505050505050565b6001546060906001600160a01b03163314610e2b576040516321bf7f4960e01b815260040160405180910390fd5b61070683836113b1565b60068181548110610e4557600080fd5b906000526020600020016000915090508054610e6090611ee3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8c90611ee3565b8015610ed95780601f10610eae57610100808354040283529160200191610ed9565b820191906000526020600020905b815481529060010190602001808311610ebc57829003601f168201915b505050505081565b6001546001600160a01b03163314610f0c576040516321bf7f4960e01b815260040160405180910390fd5b6003805460018101825560009190915281906002027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016104af8282612525565b60058181548110610f5d57600080fd5b600091825260209091200154905081565b6001546001600160a01b03163314610f99576040516321bf7f4960e01b815260040160405180910390fd5b61060a84838361112c565b600281815481106108fd57600080fd5b610fbc611252565b6001600160a01b0381166110265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61102f81611361565b50565b6001546001600160a01b0316331461102f576040516321bf7f4960e01b815260040160405180910390fd5b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af115801561109d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c19190612605565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b81526004016110f39493929190612622565b6000604051808303818588803b15801561110c57600080fd5b505af1158015611120573d6000803e3d6000fd5b50505050505050505050565b606060005b600654811015611231576006818154811061114e5761114e611ea6565b906000526020600020016040516020016111689190612654565b6040516020818303038152906040528051906020012084846040516020016111919291906126ca565b604051602081830303815290604052805190602001200361121f57600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001859055604080516020601f860181900481028201810190925284815290859085908190840183828082843760009201919091525092945061124b9350505050565b8061122981611ebc565b915050611131565b5060405163b01318a560e01b815260040160405180910390fd5b9392505050565b6000546001600160a01b03163314610d795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161101d565b866001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af11580156112ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113109190612605565b6001600160a01b031663fce34e4034308989898989896040518963ffffffff1660e01b815260040161134897969594939291906126da565b6000604051808303818588803b158015610ddb57600080fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060005b60065481101561123157600681815481106113d3576113d3611ea6565b906000526020600020016040516020016113ed9190612654565b6040516020818303038152906040528051906020012084846040516020016114169291906126ca565b60405160208183030381529060405280519060200120036114715783838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294506114839350505050565b8061147b81611ebc565b9150506113b6565b92915050565b60008083601f84011261149b57600080fd5b5081356001600160401b038111156114b257600080fd5b6020830191508360208285010111156114ca57600080fd5b9250929050565b600080600080606085870312156114e757600080fd5b8435935060208501356001600160401b0381111561150457600080fd5b61151087828801611489565b9598909750949560400135949350505050565b6001600160401b038116811461102f57600080fd5b80356108e881611523565b806040810183101561148357600080fd5b60008060008060008060e0878903121561156d57600080fd5b86356001600160401b0381111561158357600080fd5b61158f89828a01611489565b9097509550506020870135935060408701356115aa81611523565b92506115b98860608901611543565b91506115c88860a08901611543565b90509295509295509295565b6000602082840312156115e657600080fd5b5035919050565b6000815180845260005b81811015611613576020818501810151868301820152016115f7565b81811115611625576000602083870101525b50601f01601f19169290920160200192915050565b821515815260406020820152600061165560408301846115ed565b949350505050565b8035600381106108e857600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156116a4576116a461166c565b60405290565b60405160c081016001600160401b03811182821017156116a4576116a461166c565b604051601f8201601f191681016001600160401b03811182821017156116f4576116f461166c565b604052919050565b600082601f83011261170d57600080fd5b81356001600160401b038111156117265761172661166c565b611739601f8201601f19166020016116cc565b81815284602083860101111561174e57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a03121561178657600080fd5b61178f8861165d565b965060208801356001600160401b03808211156117ab57600080fd5b818a0191508a601f8301126117bf57600080fd5b8135818111156117d1576117d161166c565b8060051b6117e1602082016116cc565b9182526020818501810192908101908e8411156117fd57600080fd5b6020860192505b8383101561183b57848335111561181a57600080fd5b61182a8f602085358901016116fc565b825260209283019290910190611804565b9a5050505060408a0135965060608a013591508082111561185b57600080fd5b6118678b838c016116fc565b955060808a0135945060a08a013591508082111561188457600080fd5b506118918a828b01611489565b989b979a50959850939692959293505050565b60208152600061124b60208301846115ed565b6000604082840312156118c957600080fd5b6118d1611682565b905081356001600160401b038111156118e957600080fd5b6118f5848285016116fc565b8252506020820135602082015292915050565b60006040828403121561191a57600080fd5b611922611682565b9050813561192f81611523565b8152602082013561193f81611523565b602082015292915050565b60006020828403121561195c57600080fd5b81356001600160401b038082111561197357600080fd5b9083019060e0828603121561198757600080fd5b61198f6116aa565b82358281111561199e57600080fd5b6119aa878286016118b7565b8252506020830135828111156119bf57600080fd5b6119cb878286016118b7565b6020830152506119dd60408401611538565b60408201526060830135828111156119f457600080fd5b611a00878286016116fc565b606083015250611a138660808501611908565b6080820152611a2460c08401611538565b60a082015295945050505050565b602081528151151560208201526000602083015160408084015261165560608401826115ed565b6000815160408452611a6e60408501826115ed565b602093840151949093019390935250919050565b60e081526000611a9560e0830189611a59565b8281036020840152611aa78189611a59565b90506001600160401b0380881660408501528382036060850152611acb82886115ed565b92508086511660808501528060208701511660a085015280851660c08501525050979650505050505050565b60008060008060608587031215611b0d57600080fd5b84356001600160401b03811115611b2357600080fd5b611b2f87828801611489565b909550935050602085013591506040850135611b4a81611523565b939692955090935050565b600060e08284031215611b6757600080fd5b50919050565b600060208284031215611b7f57600080fd5b81356001600160401b03811115611b9557600080fd5b61165584828501611b55565b801515811461102f57600080fd5b60008083601f840112611bc157600080fd5b5081356001600160401b03811115611bd857600080fd5b6020830191508360208260051b85010111156114ca57600080fd5b60008060008060008060008060a0898b031215611c0f57600080fd5b88356001600160401b0380821115611c2657600080fd5b611c328c838d01611489565b909a509850889150611c4660208c0161165d565b975060408b01359150611c5882611ba1565b90955060608a01359080821115611c6e57600080fd5b611c7a8c838d01611baf565b909650945060808b0135915080821115611c9357600080fd5b50611ca08b828c01611489565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611ccf57600080fd5b611cd88861165d565b965060208801356001600160401b0380821115611cf457600080fd5b611d008b838c01611baf565b909850965060408a0135915080821115611d1957600080fd5b611d258b838c01611489565b909650945060608a013591508082111561188457600080fd5b60008060408385031215611d5157600080fd5b82356001600160401b0380821115611d6857600080fd5b611d7486838701611b55565b93506020850135915080821115611d8a57600080fd5b50830160408186031215611d9d57600080fd5b809150509250929050565b60008060008060608587031215611dbe57600080fd5b843593506020850135925060408501356001600160401b03811115611de257600080fd5b611dee87828801611489565b95989497509550505050565b6001600160a01b038116811461102f57600080fd5b600060208284031215611e2157600080fd5b813561124b81611dfa565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b848152606060208201526000611e6f606083018587611e2c565b90506001600160401b038316604083015295945050505050565b600060208284031215611e9b57600080fd5b815161124b81611523565b634e487b7160e01b600052603260045260246000fd5b600060018201611edc57634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680611ef757607f821691505b602082108103611b6757634e487b7160e01b600052602260045260246000fd5b601f821115610c9657600081815260208120601f850160051c81016020861015611f3e5750805b601f850160051c820191505b81811015611f5d57828155600101611f4a565b505050505050565b600019600383901b1c191660019190911b1790565b81516001600160401b03811115611f9357611f9361166c565b611fa781611fa18454611ee3565b84611f17565b602080601f831160018114611fd65760008415611fc45750858301515b611fce8582611f65565b865550611f5d565b600085815260208120601f198616915b8281101561200557888601518255948401946001909101908401611fe6565b50858210156120235787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008235603e1983360301811261204957600080fd5b9190910192915050565b6000808335601e1984360301811261206a57600080fd5b8301803591506001600160401b0382111561208457600080fd5b6020019150368190038213156114ca57600080fd5b6120a38283612053565b6001600160401b038111156120ba576120ba61166c565b6120ce816120c88554611ee3565b85611f17565b6000601f8211600181146120fc57600083156120ea5750838201355b6120f48482611f65565b865550612156565b600085815260209020601f19841690835b8281101561212d578685013582556020948501946001909201910161210d565b508482101561214a5760001960f88660031b161c19848701351681555b505060018360011b0185555b50505050602082013560018201555050565b6000813561148381611523565b6001600160401b0383111561218c5761218c61166c565b6121a08361219a8354611ee3565b83611f17565b6000601f8411600181146121ce57600085156121bc5750838201355b6121c68682611f65565b84555061060a565b600083815260209020601f19861690835b828110156121ff57868501358255602094850194600190920191016121df565b508682101561221c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b813561223981611523565b815467ffffffffffffffff19166001600160401b03821617825550602082013561226281611523565b81546fffffffffffffffff0000000000000000191660409190911b6fffffffffffffffff00000000000000001617905550565b61229f8283612033565b6122a98182612053565b6001600160401b038111156122c0576122c061166c565b6122d4816122ce8654611ee3565b86611f17565b6000601f82116001811461230257600083156122f05750838201355b6122fa8482611f65565b87555061235c565b600086815260209020601f19841690835b828110156123335786850135825560209485019460019092019101612313565b50848210156123505760001960f88660031b161c19848701351681555b505060018360011b0186555b50505050602081013560018301555061238461237b6020840184612033565b60028301612099565b6123b461239360408401612168565b600483016001600160401b0382166001600160401b03198254161781555050565b6123c16060830183612053565b6123cf818360058601612175565b50506123e1608083016006830161222e565b6124116123f060c08401612168565b600783016001600160401b0382166001600160401b03198254161781555050565b5050565b6003811061243357634e487b7160e01b600052602160045260246000fd5b9052565b818352600060208085019450848460051b86018460005b878110156124b85783830389528135601e1988360301811261246f57600080fd5b870185810190356001600160401b0381111561248a57600080fd5b80360382131561249957600080fd5b6124a4858284611e2c565b9a87019a945050509084019060010161244e565b5090979650505050505050565b60a0815260006124d960a083018a8c611e2c565b6124e6602084018a612415565b87151560408401528281036060840152612501818789612437565b90508281036080840152612516818587611e2c565b9b9a5050505050505050505050565b813561253081611ba1565b815490151560ff1660ff19919091161781556001808201602061255585820186612053565b6001600160401b0381111561256c5761256c61166c565b61257a816122ce8654611ee3565b6000601f8211600181146125a857600083156125965750838201355b6125a08482611f65565b875550610d5c565b600086815260209020601f19841690835b828110156125d657868501358255938701939089019087016125b9565b50848210156125f35760001960f88660031b161c19848701351681555b50505050841b90930190915550505050565b60006020828403121561261757600080fd5b815161124b81611dfa565b8481526001600160401b038416602082015260c081016040848184013760408360808401376000815295945050505050565b600080835461266281611ee3565b6001828116801561267a576001811461268f576126be565b60ff19841687528215158302870194506126be565b8760005260208060002060005b858110156126b55781548a82015290840190820161269c565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b6001600160a01b038816815260a0602082018190526000906126fe908301896115ed565b61270b6040840189612415565b828103606084015261271e818789612437565b90508281036080840152612733818587611e2c565b9a995050505050505050505056fea2646970667358221220d9e8bea9bd043e248e5b4d31e507154ea015ea26e5f736fd776db07d5c19c24364736f6c634300080f0033"; - -type MoonConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: MoonConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class Moon__factory extends ContractFactory { - constructor(...args: MoonConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_dispatcher, overrides || {}); - } - override deploy( - _dispatcher: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_dispatcher, overrides || {}) as Promise< - Moon & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): Moon__factory { - return super.connect(runner) as Moon__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): MoonInterface { - return new Interface(_abi) as MoonInterface; - } - static connect(address: string, runner?: ContractRunner | null): Moon { - return new Contract(address, _abi, runner) as unknown as Moon; - } -} diff --git a/src/evm/contracts/factories/OptimisticLightClient__factory.ts b/src/evm/contracts/factories/OptimisticLightClient__factory.ts deleted file mode 100644 index c05936c9..00000000 --- a/src/evm/contracts/factories/OptimisticLightClient__factory.ts +++ /dev/null @@ -1,493 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - BigNumberish, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { - OptimisticLightClient, - OptimisticLightClientInterface, -} from "../OptimisticLightClient"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "fraudProofWindowSeconds_", - type: "uint32", - internalType: "uint32", - }, - { - name: "verifier_", - type: "address", - internalType: "contract IProofVerifier", - }, - { - name: "_l1BlockProvider", - type: "address", - internalType: "contract L1Block", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "addOpConsensusState", - inputs: [ - { - name: "l1header", - type: "tuple", - internalType: "struct L1Header", - components: [ - { - name: "header", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "stateRoot", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "number", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct OpL2StateProof", - components: [ - { - name: "accountProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "outputRootProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "l2OutputProposalKey", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "l2BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "consensusStates", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "fraudProofEndtime", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "fraudProofWindowSeconds", - inputs: [], - outputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "getFraudProofEndtime", - inputs: [ - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "getInternalState", - inputs: [ - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "getState", - inputs: [ - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "appHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "fraudProofEndTime", - type: "uint256", - internalType: "uint256", - }, - { - name: "ended", - type: "bool", - internalType: "bool", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "l1BlockProvider", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract L1Block", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "verifier", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IProofVerifier", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "verifyMembership", - inputs: [ - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "expectedValue", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "function", - name: "verifyNonMembership", - inputs: [ - { - name: "proof", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "error", - name: "AppHashHasNotPassedFraudProofWindow", - inputs: [], - }, - { - type: "error", - name: "CannotUpdatePendingOptimisticConsensusState", - inputs: [], - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b50604051610d5f380380610d5f83398101604081905261002f91610084565b63ffffffff92909216600255600380546001600160a01b039283166001600160a01b031991821617909155600480549290931691161790556100da565b6001600160a01b038116811461008157600080fd5b50565b60008060006060848603121561009957600080fd5b835163ffffffff811681146100ad57600080fd5b60208501519093506100be8161006c565b60408501519092506100cf8161006c565b809150509250925092565b610c76806100e96000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80635922f420116100715780635922f4201461016f5780636304272014610197578063cb535ab5146101a0578063d56ff842146101b5578063eb772058146101e0578063fdaab4e5146101f357600080fd5b80631b738a22146100ae5780631bc97a78146100e15780632b7ac3f31461011157806334b80a411461013c57806344c9af281461015c575b600080fd5b6100ce6100bc366004610591565b60006020819052908152604090205481565b6040519081526020015b60405180910390f35b6100f46100ef366004610591565b610206565b6040805193845260208401929092521515908201526060016100d8565b600354610124906001600160a01b031681565b6040516001600160a01b0390911681526020016100d8565b6100ce61014a366004610591565b60016020526000908152604090205481565b6100f461016a366004610591565b610252565b61018261017d3660046105aa565b61026d565b604080519283529015156020830152016100d8565b6100ce60025481565b6101b36101ae36600461068b565b610441565b005b6100ce6101c3366004610591565b600090815260208181526040808320548352600190915290205490565b600454610124906001600160a01b031681565b6101b3610201366004610720565b6104ec565b600081815260208181526040808320548084526001909252822054829182918190811580159061024457506000838152600160205260409020544210155b935093509350509193909250565b600080600061026084610206565b9250925092509193909250565b60008281526020819052604081205481908082036103fd576003546004805460408051624dead360e51b815290516001600160a01b0394851694630a1bb8b5948d948d948c9493909116926309bd5a60928281019260209291908290030181865afa1580156102e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103049190610789565b60048054604080516341c0fac560e11b815290516001600160a01b0390921692638381f58a9282820192602092908290030181865afa15801561034b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036f91906107bb565b6040518663ffffffff1660e01b815260040161038f9594939291906108f4565b60006040518083038186803b1580156103a757600080fd5b505afa1580156103bb573d6000803e3d6000fd5b50505060008681526020819052604081208690556002549091506103df90426109ea565b60008681526001602052604081208290559094509250610438915050565b83810361041f5760009081526001602052604090205491505042811115610438565b60405163f0cd4ed960e01b815260040160405180910390fd5b94509492505050565b6000806104566100ef600160208a0135610a02565b92505091508061047957604051631234d8dd60e01b815260040160405180910390fd5b60035460405163c2f0329f60e01b81526001600160a01b039091169063c2f0329f906104b39085908a908a908a908a908f90600401610bbb565b60006040518083038186803b1580156104cb57600080fd5b505afa1580156104df573d6000803e3d6000fd5b5050505050505050505050565b6000806105016100ef60016020880135610a02565b92505091508061052457604051631234d8dd60e01b815260040160405180910390fd5b600354604051630a9b7b5d60e21b81526001600160a01b0390911690632a6ded749061055a908590889088908b90600401610c09565b60006040518083038186803b15801561057257600080fd5b505afa158015610586573d6000803e3d6000fd5b505050505050505050565b6000602082840312156105a357600080fd5b5035919050565b600080600080608085870312156105c057600080fd5b843567ffffffffffffffff808211156105d857600080fd5b90860190606082890312156105ec57600080fd5b9094506020860135908082111561060257600080fd5b5085016080818803121561061557600080fd5b93969395505050506040820135916060013590565b60006040828403121561063c57600080fd5b50919050565b60008083601f84011261065457600080fd5b50813567ffffffffffffffff81111561066c57600080fd5b60208301915083602082850101111561068457600080fd5b9250929050565b6000806000806000606086880312156106a357600080fd5b853567ffffffffffffffff808211156106bb57600080fd5b6106c789838a0161062a565b965060208801359150808211156106dd57600080fd5b6106e989838a01610642565b9096509450604088013591508082111561070257600080fd5b5061070f88828901610642565b969995985093965092949392505050565b60008060006040848603121561073557600080fd5b833567ffffffffffffffff8082111561074d57600080fd5b6107598783880161062a565b9450602086013591508082111561076f57600080fd5b5061077c86828701610642565b9497909650939450505050565b60006020828403121561079b57600080fd5b5051919050565b67ffffffffffffffff811681146107b857600080fd5b50565b6000602082840312156107cd57600080fd5b81516107d8816107a2565b9392505050565b6000808335601e198436030181126107f657600080fd5b830160208101925035905067ffffffffffffffff81111561081657600080fd5b8060051b360382131561068457600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6000808335601e1984360301811261086857600080fd5b830160208101925035905067ffffffffffffffff81111561088857600080fd5b80360382131561068457600080fd5b81835260006020808501808196508560051b810191508460005b878110156108e75782840389526108c88288610851565b6108d3868284610828565b9a87019a95505050908401906001016108b1565b5091979650505050505050565b60a08152600061090487886107df565b606060a085015261091a61010085018284610897565b915050602088013560c08401526040880135610935816107a2565b67ffffffffffffffff1660e0840152828103602084015261095687806107df565b60808352610968608084018284610897565b91505061097860208901896107df565b838303602085015261098b838284610897565b92505050604088013560408301526060880135606083015280925050508460408301528360608301526109ca608083018467ffffffffffffffff169052565b9695505050505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156109fd576109fd6109d4565b500190565b600082821015610a1457610a146109d4565b500390565b600060408301610a2983846107df565b604086528281845260608701905060608260051b88010193508260005b83811015610ba257888603605f1901835236859003607e1901823512610a6b57600080fd5b8482350160808701610a7d82836107df565b60808a528281845260a08b01905060a08260051b8c010193508260005b83811015610b1b578c8603609f19018352813536869003603e19018112610ac057600080fd5b8501610acc8180610851565b60408952610ade60408a018284610828565b915050610aee6020830183610851565b925088820360208a0152610b03828483610828565b98505050602093840193929092019150600101610a9a565b5050505050610b2d6020830183610851565b89830360208b0152610b40838284610828565b92505050610b516040830183610851565b89830360408b0152610b64838284610828565b92505050610b756060830183610851565b925088820360608a0152610b8a828483610828565b98505050602093840193929092019150600101610a46565b5050505050602083013560208501528091505092915050565b868152608060208201526000610bd5608083018789610828565b8281036040840152610be8818688610828565b90508281036060840152610bfc8185610a19565b9998505050505050505050565b848152606060208201526000610c23606083018587610828565b8281036040840152610c358185610a19565b97965050505050505056fea2646970667358221220e4a5f132f7cf78072488590227d73cd3e57b68ef63275bfbc05c60a6b7a458a364736f6c634300080f0033"; - -type OptimisticLightClientConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: OptimisticLightClientConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class OptimisticLightClient__factory extends ContractFactory { - constructor(...args: OptimisticLightClientConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - fraudProofWindowSeconds_: BigNumberish, - verifier_: AddressLike, - _l1BlockProvider: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction( - fraudProofWindowSeconds_, - verifier_, - _l1BlockProvider, - overrides || {} - ); - } - override deploy( - fraudProofWindowSeconds_: BigNumberish, - verifier_: AddressLike, - _l1BlockProvider: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy( - fraudProofWindowSeconds_, - verifier_, - _l1BlockProvider, - overrides || {} - ) as Promise< - OptimisticLightClient & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect( - runner: ContractRunner | null - ): OptimisticLightClient__factory { - return super.connect(runner) as OptimisticLightClient__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): OptimisticLightClientInterface { - return new Interface(_abi) as OptimisticLightClientInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): OptimisticLightClient { - return new Contract( - address, - _abi, - runner - ) as unknown as OptimisticLightClient; - } -} diff --git a/src/evm/contracts/factories/OptimisticProofVerifier__factory.ts b/src/evm/contracts/factories/OptimisticProofVerifier__factory.ts deleted file mode 100644 index c655b686..00000000 --- a/src/evm/contracts/factories/OptimisticProofVerifier__factory.ts +++ /dev/null @@ -1,371 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { - OptimisticProofVerifier, - OptimisticProofVerifierInterface, -} from "../OptimisticProofVerifier"; - -const _abi = [ - { - type: "constructor", - inputs: [ - { - name: "_l2OutputOracleAddress", - type: "address", - internalType: "address", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "l2OutputOracleAddress", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "verifyMembership", - inputs: [ - { - name: "appHash", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "proofs", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "function", - name: "verifyNonMembership", - inputs: [ - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes", - internalType: "bytes", - }, - { - name: "", - type: "tuple", - internalType: "struct Ics23Proof", - components: [ - { - name: "proof", - type: "tuple[]", - internalType: "struct OpIcs23Proof[]", - components: [ - { - name: "path", - type: "tuple[]", - internalType: "struct OpIcs23ProofPath[]", - components: [ - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - { - name: "suffix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "key", - type: "bytes", - internalType: "bytes", - }, - { - name: "value", - type: "bytes", - internalType: "bytes", - }, - { - name: "prefix", - type: "bytes", - internalType: "bytes", - }, - ], - }, - { - name: "height", - type: "uint256", - internalType: "uint256", - }, - ], - }, - ], - outputs: [], - stateMutability: "pure", - }, - { - type: "function", - name: "verifyStateUpdate", - inputs: [ - { - name: "l1header", - type: "tuple", - internalType: "struct L1Header", - components: [ - { - name: "header", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "stateRoot", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "number", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "proof", - type: "tuple", - internalType: "struct OpL2StateProof", - components: [ - { - name: "accountProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "outputRootProof", - type: "bytes[]", - internalType: "bytes[]", - }, - { - name: "l2OutputProposalKey", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "l2BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "appHash", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "trustedL1BlockHash", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "trustedL1BlockNumber", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "error", - name: "InvalidAppHash", - inputs: [], - }, - { - type: "error", - name: "InvalidIbcStateProof", - inputs: [], - }, - { - type: "error", - name: "InvalidL1BlockHash", - inputs: [], - }, - { - type: "error", - name: "InvalidL1BlockNumber", - inputs: [], - }, - { - type: "error", - name: "InvalidPacketProof", - inputs: [], - }, - { - type: "error", - name: "InvalidProofKey", - inputs: [], - }, - { - type: "error", - name: "InvalidProofValue", - inputs: [], - }, - { - type: "error", - name: "InvalidRLPEncodedL1BlockNumber", - inputs: [], - }, - { - type: "error", - name: "InvalidRLPEncodedL1StateRoot", - inputs: [], - }, - { - type: "error", - name: "MethodNotImplemented", - inputs: [], - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b5060405162002df638038062002df683398101604081905262000034916200005a565b600080546001600160a01b0319166001600160a01b03929092169190911790556200008c565b6000602082840312156200006d57600080fd5b81516001600160a01b03811681146200008557600080fd5b9392505050565b612d5a806200009c6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630a1bb8b5146100515780632a6ded741461006657806359c1b56b14610079578063c2f0329f146100a8575b600080fd5b61006461005f3660046124f8565b6100bb565b005b6100646100743660046125ec565b6103bb565b60005461008c906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100646100b636600461265e565b6103d4565b6100cb60608601604087016126f9565b6001600160401b0316816001600160401b0316146100fc57604051630fd8993960e21b815260040160405180910390fd5b6101176101098680612714565b610112916127a3565b6105be565b80519060200120821461013c5760405162fa512960e01b815260040160405180910390fd5b6101468580612714565b600881811061015757610157612877565b9050602002810190610169919061288d565b6040516101779291906128d3565b60405180910390206101a386604001602081019061019591906126f9565b6001600160401b03166105ff565b80519060200120146101c857604051633395483760e01b815260040160405180910390fd5b6101d28580612714565b60038181106101e3576101e3612877565b90506020028101906101f5919061288d565b6040516102039291906128d3565b6040518091039020610239866020013560405160200161022591815260200190565b604051602081830303815290604052610618565b805190602001201461025e576040516313d643bd60e21b815260040160405180910390fd5b6000805460405160609190911b6bffffffffffffffffffffffff191660208201526102c5906102c0906102bb9060340160408051601f198184030181529190526102a88980612714565b6102b1916127a3565b8a60200135610671565b610694565b6106f0565b9050600061033a86604001356040516020016102e391815260200190565b60408051601f198184030181529190526103006020890189612714565b610309916127a3565b61032c8560028151811061031f5761031f612877565b6020026020010151610913565b610335906128e3565b610671565b905061034d61034882610694565b610913565b610356906128e3565b6040805160006020820181905291810188905260608082019290925290880135608082015260a00160405160208183030381529060405280519060200120146103b2576040516330d26e5760e11b815260040160405180910390fd5b50505050505050565b604051632974974360e01b815260040160405180910390fd5b6103de8180612714565b60008181106103ef576103ef612877565b90506020028101906104019190612907565b61040f90602081019061288d565b60405161041d9291906128d3565b604051809103902085856040516104359291906128d3565b60405180910390201461045b5760405163026a287560e51b815260040160405180910390fd5b6104658180612714565b600081811061047657610476612877565b90506020028101906104889190612907565b61049690604081019061288d565b6040516104a49291906128d3565b604051809103902083836040516104bc9291906128d3565b6040518091039020146104e2576040516310d9300f60e11b815260040160405180910390fd5b6105176104ef8280612714565b600081811061050057610500612877565b90506020028101906105129190612907565b610a36565b6105218280612714565b600181811061053257610532612877565b90506020028101906105449190612907565b61055290604081019061288d565b61055b91612927565b1461057957604051636589f0e160e11b815260040160405180910390fd5b6105976105868280612714565b600181811061050057610500612877565b86146105b6576040516392cb8fbb60e01b815260040160405180910390fd5b505050505050565b60606105c982610c5a565b90506105d7815160c0610d93565b816040516020016105e9929190612980565b6040516020818303038152906040529050919050565b606061061261060d83610f3e565b610618565b92915050565b606081516001148015610645575060808260008151811061063b5761063b612877565b016020015160f81c105b1561064e575090565b61065a82516080610d93565b826040516020016105e9929190612980565b919050565b6060600061067e8561106a565b905061068b818585611086565b95945050505050565b604080518082019091526000808252602082015260008251116106d25760405162461bcd60e51b81526004016106c99061299d565b60405180910390fd5b50604080518082019091528151815260209182019181019190915290565b6060600080600061070085611916565b91945092509050600181600181111561071b5761071b612a0d565b1461078e5760405162461bcd60e51b815260206004820152603860248201527f524c505265616465723a206465636f646564206974656d207479706520666f7260448201527f206c697374206973206e6f742061206c697374206974656d000000000000000060648201526084016106c9565b845161079a8385612a39565b146108025760405162461bcd60e51b815260206004820152603260248201527f524c505265616465723a206c697374206974656d2068617320616e20696e76616044820152713634b2103230ba30903932b6b0b4b73232b960711b60648201526084016106c9565b604080516020808252610420820190925290816020015b60408051808201909152600080825260208201528152602001906001900390816108195790505093506000835b86518110156109075760008061088c6040518060400160405280858c600001516108709190612a51565b8152602001858c602001516108859190612a39565b9052611916565b5091509150604051806040016040528083836108a89190612a39565b8152602001848b602001516108bd9190612a39565b8152508885815181106108d2576108d2612877565b60209081029190910101526108e8600185612a39565b93506108f48183612a39565b6108fe9084612a39565b92505050610846565b50845250919392505050565b6060600080600061092385611916565b91945092509050600081600181111561093e5761093e612a0d565b146109b15760405162461bcd60e51b815260206004820152603960248201527f524c505265616465723a206465636f646564206974656d207479706520666f7260448201527f206279746573206973206e6f7420612064617461206974656d0000000000000060648201526084016106c9565b6109bb8284612a39565b855114610a275760405162461bcd60e51b815260206004820152603460248201527f524c505265616465723a2062797465732076616c756520636f6e7461696e732060448201527330b71034b73b30b634b2103932b6b0b4b73232b960611b60648201526084016106c9565b61068b85602001518484611fd9565b6000806002610a48604085018561288d565b604051610a569291906128d3565b602060405180830381855afa158015610a73573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610a969190612a68565b90506002610aa7606085018561288d565b610abe610ab7602088018861288d565b905061206c565b610acb602088018861288d565b610ad5602061206c565b87604051602001610aec9796959493929190612a81565b60408051601f1981840301815290829052610b0691612ac5565b602060405180830381855afa158015610b23573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610b469190612a68565b915060005b610b558480612714565b9050811015610c53576002610b6a8580612714565b83818110610b7a57610b7a612877565b9050602002810190610b8c9190612ad1565b610b96908061288d565b85610ba18880612714565b86818110610bb157610bb1612877565b9050602002810190610bc39190612ad1565b610bd190602081019061288d565b604051602001610be5959493929190612ae7565b60408051601f1981840301815290829052610bff91612ac5565b602060405180830381855afa158015610c1c573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610c3f9190612a68565b925080610c4b81612b0f565b915050610b4b565b5050919050565b60608151600003610c7e5760408051600080825260208201909252905b5092915050565b6000805b8351811015610cc557838181518110610c9d57610c9d612877565b60200260200101515182610cb19190612a39565b915080610cbd81612b0f565b915050610c82565b816001600160401b03811115610cdd57610cdd61275d565b6040519080825280601f01601f191660200182016040528015610d07576020820181803683370190505b50925060009050602083015b8451821015610d8b576000858381518110610d3057610d30612877565b602002602001015190506000602082019050610d4e838284516120db565b868481518110610d6057610d60612877565b60200260200101515183610d749190612a39565b925050508180610d8390612b0f565b925050610d13565b505050919050565b60606038831015610df95760408051600180825281830190925290602082018180368337019050509050610dc78284612b28565b60f81b81600081518110610ddd57610ddd612877565b60200101906001600160f81b031916908160001a905350610612565b600060015b610e088186612b63565b15610e2e5781610e1781612b0f565b9250610e27905061010082612b77565b9050610dfe565b610e39826001612a39565b6001600160401b03811115610e5057610e5061275d565b6040519080825280601f01601f191660200182016040528015610e7a576020820181803683370190505b509250610e878483612b28565b610e92906037612b28565b60f81b83600081518110610ea857610ea8612877565b60200101906001600160f81b031916908160001a905350600190505b818111610f3657610100610ed88284612a51565b610ee490610100612c7a565b610eee9087612b63565b610ef89190612c86565b60f81b838281518110610f0d57610f0d612877565b60200101906001600160f81b031916908160001a90535080610f2e81612b0f565b915050610ec4565b505092915050565b6060600082604051602001610f5591815260200190565b604051602081830303815290604052905060005b6020811015610fac57818181518110610f8457610f84612877565b01602001516001600160f81b031916600003610fac5780610fa481612b0f565b915050610f69565b610fb7816020612a51565b6001600160401b03811115610fce57610fce61275d565b6040519080825280601f01601f191660200182016040528015610ff8576020820181803683370190505b50925060005b8351811015610d8b57828261101281612b0f565b93508151811061102457611024612877565b602001015160f81c60f81b84828151811061104157611041612877565b60200101906001600160f81b031916908160001a9053508061106281612b0f565b915050610ffe565b606081805190602001206040516020016105e991815260200190565b606060008451116110d15760405162461bcd60e51b81526020600482015260156024820152744d65726b6c65547269653a20656d707479206b657960581b60448201526064016106c9565b60006110dc84612138565b905060006110e98661221c565b905060008460405160200161110091815260200190565b60405160208183030381529060405290506000805b84518110156118b857600085828151811061113257611132612877565b6020026020010151905084518311156111a45760405162461bcd60e51b815260206004820152602e60248201527f4d65726b6c65547269653a206b657920696e646578206578636565647320746f60448201526d0e8c2d840d6caf240d8cadccee8d60931b60648201526084016106c9565b8260000361124357805180516020918201206040516111f2926111cc92910190815260200190565b604051602081830303815290604052858051602091820120825192909101919091201490565b61123e5760405162461bcd60e51b815260206004820152601d60248201527f4d65726b6c65547269653a20696e76616c696420726f6f74206861736800000060448201526064016106c9565b611339565b8051516020116112c9578051805160209182012060405161126d926111cc92910190815260200190565b61123e5760405162461bcd60e51b815260206004820152602760248201527f4d65726b6c65547269653a20696e76616c6964206c6172676520696e7465726e6044820152660c2d840d0c2e6d60cb1b60648201526084016106c9565b8051845160208087019190912082519190920120146113395760405162461bcd60e51b815260206004820152602660248201527f4d65726b6c65547269653a20696e76616c696420696e7465726e616c206e6f646044820152650ca40d0c2e6d60d31b60648201526084016106c9565b61134560106001612a39565b816020015151036114e0578451830361147857611372816020015160108151811061031f5761031f612877565b965060008751116113eb5760405162461bcd60e51b815260206004820152603b60248201527f4d65726b6c65547269653a2076616c7565206c656e677468206d75737420626560448201527f2067726561746572207468616e207a65726f20286272616e636829000000000060648201526084016106c9565b600186516113f99190612a51565b821461146d5760405162461bcd60e51b815260206004820152603a60248201527f4d65726b6c65547269653a2076616c7565206e6f6465206d757374206265206c60448201527f617374206e6f646520696e2070726f6f6620286272616e63682900000000000060648201526084016106c9565b50505050505061190f565b600085848151811061148c5761148c612877565b602001015160f81c60f81b60f81c9050600082602001518260ff16815181106114b7576114b7612877565b602002602001015190506114ca8161227f565b95506114d7600186612a39565b945050506118a5565b60028160200151510361184c5760006114f8826122a4565b905060008160008151811061150f5761150f612877565b016020015160f81c90506000611526600283612c9a565b611531906002612cbc565b90506000611542848360ff166122c8565b905060006115508a896122c8565b9050600061155e83836122fe565b9050808351146115d65760405162461bcd60e51b815260206004820152603a60248201527f4d65726b6c65547269653a20706174682072656d61696e646572206d7573742060448201527f736861726520616c6c206e6962626c65732077697468206b657900000000000060648201526084016106c9565b60ff8516600214806115eb575060ff85166003145b1561178c57808251146116665760405162461bcd60e51b815260206004820152603d60248201527f4d65726b6c65547269653a206b65792072656d61696e646572206d757374206260448201527f65206964656e746963616c20746f20706174682072656d61696e64657200000060648201526084016106c9565b611680876020015160018151811061031f5761031f612877565b9c5060008d51116116f95760405162461bcd60e51b815260206004820152603960248201527f4d65726b6c65547269653a2076616c7565206c656e677468206d75737420626560448201527f2067726561746572207468616e207a65726f20286c656166290000000000000060648201526084016106c9565b60018c516117079190612a51565b881461177b5760405162461bcd60e51b815260206004820152603860248201527f4d65726b6c65547269653a2076616c7565206e6f6465206d757374206265206c60448201527f617374206e6f646520696e2070726f6f6620286c65616629000000000000000060648201526084016106c9565b50505050505050505050505061190f565b60ff8516158061179f575060ff85166001145b156117de576117cb87602001516001815181106117be576117be612877565b602002602001015161227f565b99506117d7818a612a39565b9850611841565b60405162461bcd60e51b815260206004820152603260248201527f4d65726b6c65547269653a2072656365697665642061206e6f64652077697468604482015271040c2dc40eadcd6dcdeeedc40e0e4caccd2f60731b60648201526084016106c9565b5050505050506118a5565b60405162461bcd60e51b815260206004820152602860248201527f4d65726b6c65547269653a20726563656976656420616e20756e706172736561604482015267626c65206e6f646560c01b60648201526084016106c9565b50806118b081612b0f565b915050611115565b5060405162461bcd60e51b815260206004820152602560248201527f4d65726b6c65547269653a2072616e206f7574206f662070726f6f6620656c656044820152646d656e747360d81b60648201526084016106c9565b9392505050565b60008060008084600001511161193e5760405162461bcd60e51b81526004016106c99061299d565b6020840151805160001a607f8111611963576000600160009450945094505050611fd2565b60b78111611ac0576000611978608083612a51565b9050808760000151116119f85760405162461bcd60e51b815260206004820152604e6024820152600080516020612d0583398151915260448201527f742062652067726561746572207468616e20737472696e67206c656e6774682060648201526d2873686f727420737472696e672960901b608482015260a4016106c9565b6001838101516001600160f81b0319169082141580611a255750600160ff1b6001600160f81b0319821610155b611aad5760405162461bcd60e51b815260206004820152604d60248201527f524c505265616465723a20696e76616c6964207072656669782c2073696e676c60448201527f652062797465203c203078383020617265206e6f74207072656669786564202860648201526c73686f727420737472696e672960981b608482015260a4016106c9565b5060019550935060009250611fd2915050565b60bf8111611d01576000611ad560b783612a51565b905080876000015111611b585760405162461bcd60e51b81526020600482015260516024820152600080516020612d0583398151915260448201527f74206265203e207468616e206c656e677468206f6620737472696e67206c656e60648201527067746820286c6f6e6720737472696e672960781b608482015260a4016106c9565b60018301516001600160f81b0319166000819003611bdf5760405162461bcd60e51b815260206004820152604a6024820152600080516020612d0583398151915260448201527f74206e6f74206861766520616e79206c656164696e67207a65726f7320286c6f6064820152696e6720737472696e672960b01b608482015260a4016106c9565b600184015160088302610100031c60378111611c625760405162461bcd60e51b81526020600482015260486024820152600080516020612d0583398151915260448201527f742062652067726561746572207468616e20353520627974657320286c6f6e6760648201526720737472696e672960c01b608482015260a4016106c9565b611c6c8184612a39565b895111611ce45760405162461bcd60e51b815260206004820152604c6024820152600080516020612d0583398151915260448201527f742062652067726561746572207468616e20746f74616c206c656e677468202860648201526b6c6f6e6720737472696e672960a01b608482015260a4016106c9565b611cef836001612a39565b9750955060009450611fd29350505050565b60f78111611da3576000611d1660c083612a51565b905080876000015111611d925760405162461bcd60e51b815260206004820152604a6024820152600080516020612d0583398151915260448201527f742062652067726561746572207468616e206c697374206c656e677468202873606482015269686f7274206c6973742960b01b608482015260a4016106c9565b600195509350849250611fd2915050565b6000611db060f783612a51565b905080876000015111611e2f5760405162461bcd60e51b815260206004820152604d6024820152600080516020612d0583398151915260448201527f74206265203e207468616e206c656e677468206f66206c697374206c656e677460648201526c6820286c6f6e67206c6973742960981b608482015260a4016106c9565b60018301516001600160f81b0319166000819003611eb45760405162461bcd60e51b81526020600482015260486024820152600080516020612d0583398151915260448201527f74206e6f74206861766520616e79206c656164696e67207a65726f7320286c6f6064820152676e67206c6973742960c01b608482015260a4016106c9565b600184015160088302610100031c60378111611f355760405162461bcd60e51b81526020600482015260466024820152600080516020612d0583398151915260448201527f742062652067726561746572207468616e20353520627974657320286c6f6e67606482015265206c6973742960d01b608482015260a4016106c9565b611f3f8184612a39565b895111611fb55760405162461bcd60e51b815260206004820152604a6024820152600080516020612d0583398151915260448201527f742062652067726561746572207468616e20746f74616c206c656e67746820286064820152696c6f6e67206c6973742960b01b608482015260a4016106c9565b611fc0836001612a39565b9750955060019450611fd29350505050565b9193909250565b6060816001600160401b03811115611ff357611ff361275d565b6040519080825280601f01601f19166020018201604052801561201d576020820181803683370190505b509050811561190f5760006120328486612a39565b90506020820160005b8481101561205357828101518282015260200161203b565b84811115612062576000858301525b5050509392505050565b6060805b608083106120ae578083607f1660801760f81b604051602001612094929190612cdf565b60408051601f198184030190525260079290921c91612070565b808360f81b6040516020016120c4929190612cdf565b604051602081830303815290604052915050919050565b8282825b6020811061211757815183526120f6602084612a39565b9250612103602083612a39565b9150612110602082612a51565b90506120df565b905182516020929092036101000a6000190180199091169116179052505050565b8051606090806001600160401b038111156121555761215561275d565b60405190808252806020026020018201604052801561219a57816020015b60408051808201909152606080825260208201528152602001906001900390816121735790505b50915060005b81811015610c535760405180604001604052808583815181106121c5576121c5612877565b602002602001015181526020016121f48684815181106121e7576121e7612877565b602002602001015161237b565b81525083828151811061220957612209612877565b60209081029190910101526001016121a0565b606080604051905082518060011b603f8101601f1916830160405280835250602084016020830160005b83811015612274578060011b82018184015160001a8060041c8253600f811660018301535050600101612246565b509295945050505050565b6060602082600001511061229b5761229682610913565b610612565b61061282612389565b60606106126122c3836020015160008151811061031f5761031f612877565b61221c565b6060825182106122e75750604080516020810190915260008152610612565b61190f83838486516122f99190612a51565b61239f565b6000808251845110612311578251612314565b83515b90505b808210801561236b575082828151811061233357612333612877565b602001015160f81c60f81b6001600160f81b03191684838151811061235a5761235a612877565b01602001516001600160f81b031916145b15610c7757816001019150612317565b60606106126102c083610694565b6060610612826020015160008460000151611fd9565b60608182601f0110156123e55760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016106c9565b8282840110156124285760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016106c9565b8183018451101561246f5760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016106c9565b60608215801561248e57604051915060008252602082016040526124d8565b6040519150601f8416801560200281840101858101878315602002848b0101015b818310156124c75780518352602092830192016124af565b5050858452601f01601f1916604052505b50949350505050565b80356001600160401b038116811461066c57600080fd5b600080600080600060a0868803121561251057600080fd5b85356001600160401b038082111561252757600080fd5b908701906060828a03121561253b57600080fd5b9095506020870135908082111561255157600080fd5b5086016080818903121561256457600080fd5b93506040860135925060608601359150612580608087016124e1565b90509295509295909350565b60008083601f84011261259e57600080fd5b5081356001600160401b038111156125b557600080fd5b6020830191508360208285010111156125cd57600080fd5b9250929050565b6000604082840312156125e657600080fd5b50919050565b6000806000806060858703121561260257600080fd5b8435935060208501356001600160401b038082111561262057600080fd5b61262c8883890161258c565b9095509350604087013591508082111561264557600080fd5b50612652878288016125d4565b91505092959194509250565b6000806000806000806080878903121561267757600080fd5b8635955060208701356001600160401b038082111561269557600080fd5b6126a18a838b0161258c565b909750955060408901359150808211156126ba57600080fd5b6126c68a838b0161258c565b909550935060608901359150808211156126df57600080fd5b506126ec89828a016125d4565b9150509295509295509295565b60006020828403121561270b57600080fd5b61190f826124e1565b6000808335601e1984360301811261272b57600080fd5b8301803591506001600160401b0382111561274557600080fd5b6020019150600581901b36038213156125cd57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561279b5761279b61275d565b604052919050565b60006001600160401b03808411156127bd576127bd61275d565b8360051b60206127ce818301612773565b8681529185019181810190368411156127e657600080fd5b865b8481101561286b578035868111156128005760008081fd5b8801601f36818301126128135760008081fd5b8135888111156128255761282561275d565b612836818301601f19168801612773565b9150808252368782850101111561284d5760008081fd5b808784018884013760009082018701528452509183019183016127e8565b50979650505050505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126128a457600080fd5b8301803591506001600160401b038211156128be57600080fd5b6020019150368190038213156125cd57600080fd5b8183823760009101908152919050565b805160208083015191908110156125e65760001960209190910360031b1b16919050565b60008235607e1983360301811261291d57600080fd5b9190910192915050565b8035602083101561061257600019602084900360031b1b1692915050565b6000815160005b81811015612966576020818501810151868301520161294c565b81811115612975576000828601525b509290920192915050565b600061299561298f8386612945565b84612945565b949350505050565b6020808252604a908201527f524c505265616465723a206c656e677468206f6620616e20524c50206974656d60408201527f206d7573742062652067726561746572207468616e207a65726f20746f206265606082015269206465636f6461626c6560b01b608082015260a00190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612a4c57612a4c612a23565b500190565b600082821015612a6357612a63612a23565b500390565b600060208284031215612a7a57600080fd5b5051919050565b86888237600087820160008152612a988189612945565b9050858782376000908601908152612ab08186612945565b93845250506020909101979650505050505050565b600061190f8284612945565b60008235603e1983360301811261291d57600080fd5b8486823760008582018581528385602083013760009301602001928352509095945050505050565b600060018201612b2157612b21612a23565b5060010190565b600060ff821660ff84168060ff03821115612b4557612b45612a23565b019392505050565b634e487b7160e01b600052601260045260246000fd5b600082612b7257612b72612b4d565b500490565b6000816000190483118215151615612b9157612b91612a23565b500290565b600181815b80851115612bd1578160001904821115612bb757612bb7612a23565b80851615612bc457918102915b93841c9390800290612b9b565b509250929050565b600082612be857506001610612565b81612bf557506000610612565b8160018114612c0b5760028114612c1557612c31565b6001915050610612565b60ff841115612c2657612c26612a23565b50506001821b610612565b5060208310610133831016604e8410600b8410161715612c54575081810a610612565b612c5e8383612b96565b8060001904821115612c7257612c72612a23565b029392505050565b600061190f8383612bd9565b600082612c9557612c95612b4d565b500690565b600060ff831680612cad57612cad612b4d565b8060ff84160691505092915050565b600060ff821660ff841680821015612cd657612cd6612a23565b90039392505050565b6000612ceb8285612945565b6001600160f81b0319939093168352505060010191905056fe524c505265616465723a206c656e677468206f6620636f6e74656e74206d7573a2646970667358221220b5b725656389619b8689d8987e5b6f8e268389228f23eee9a3446fab0f2d5d7064736f6c634300080f0033"; - -type OptimisticProofVerifierConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: OptimisticProofVerifierConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class OptimisticProofVerifier__factory extends ContractFactory { - constructor(...args: OptimisticProofVerifierConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _l2OutputOracleAddress: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(_l2OutputOracleAddress, overrides || {}); - } - override deploy( - _l2OutputOracleAddress: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy(_l2OutputOracleAddress, overrides || {}) as Promise< - OptimisticProofVerifier & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect( - runner: ContractRunner | null - ): OptimisticProofVerifier__factory { - return super.connect(runner) as OptimisticProofVerifier__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): OptimisticProofVerifierInterface { - return new Interface(_abi) as OptimisticProofVerifierInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): OptimisticProofVerifier { - return new Contract( - address, - _abi, - runner - ) as unknown as OptimisticProofVerifier; - } -} diff --git a/src/evm/contracts/factories/UniversalChannelHandler__factory.ts b/src/evm/contracts/factories/UniversalChannelHandler__factory.ts deleted file mode 100644 index d55a4f7d..00000000 --- a/src/evm/contracts/factories/UniversalChannelHandler__factory.ts +++ /dev/null @@ -1,940 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../common"; -import type { - UniversalChannelHandler, - UniversalChannelHandlerInterface, -} from "../UniversalChannelHandler"; - -const _abi = [ - { - type: "constructor", - inputs: [], - stateMutability: "nonpayable", - }, - { - type: "receive", - stateMutability: "payable", - }, - { - type: "function", - name: "MW_ID", - inputs: [], - outputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "VERSION", - inputs: [], - outputs: [ - { - name: "", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "closeChannel", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "dispatcher", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "initialize", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onAcknowledgementPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "ack", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanCloseInit", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenAck", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenConfirm", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onChanOpenInit", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "version", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onChanOpenTry", - inputs: [ - { - name: "", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "", - type: "string[]", - internalType: "string[]", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "", - type: "string", - internalType: "string", - }, - { - name: "", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "counterpartyVersion", - type: "string", - internalType: "string", - }, - ], - outputs: [ - { - name: "selectedVersion", - type: "string", - internalType: "string", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "onRecvPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [ - { - name: "ackPacket", - type: "tuple", - internalType: "struct AckPacket", - components: [ - { - name: "success", - type: "bool", - internalType: "bool", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - ], - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "onTimeoutPacket", - inputs: [ - { - name: "packet", - type: "tuple", - internalType: "struct IbcPacket", - components: [ - { - name: "src", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "dest", - type: "tuple", - internalType: "struct IbcEndpoint", - components: [ - { - name: "portId", - type: "string", - internalType: "string", - }, - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - ], - }, - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - { - name: "data", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutHeight", - type: "tuple", - internalType: "struct Height", - components: [ - { - name: "revision_number", - type: "uint64", - internalType: "uint64", - }, - { - name: "revision_height", - type: "uint64", - internalType: "uint64", - }, - ], - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "openChannel", - inputs: [ - { - name: "version", - type: "string", - internalType: "string", - }, - { - name: "ordering", - type: "uint8", - internalType: "enum ChannelOrder", - }, - { - name: "feeEnabled", - type: "bool", - internalType: "bool", - }, - { - name: "connectionHops", - type: "string[]", - internalType: "string[]", - }, - { - name: "counterpartyPortIdentifier", - type: "string", - internalType: "string", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "owner", - 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: "sendUniversalPacket", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "sendUniversalPacketWithFee", - inputs: [ - { - name: "channelId", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "destPortAddr", - type: "bytes32", - internalType: "bytes32", - }, - { - name: "appData", - type: "bytes", - internalType: "bytes", - }, - { - name: "timeoutTimestamp", - type: "uint64", - internalType: "uint64", - }, - { - name: "gasLimits", - type: "uint256[2]", - internalType: "uint256[2]", - }, - { - name: "gasPrices", - type: "uint256[2]", - internalType: "uint256[2]", - }, - ], - outputs: [ - { - name: "sequence", - type: "uint64", - internalType: "uint64", - }, - ], - stateMutability: "payable", - }, - { - type: "function", - name: "setDispatcher", - inputs: [ - { - name: "_dispatcher", - type: "address", - internalType: "contract IbcDispatcher", - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "transferOwnership", - inputs: [ - { - name: "newOwner", - type: "address", - internalType: "address", - }, - ], - 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: "OwnershipTransferred", - inputs: [ - { - name: "previousOwner", - type: "address", - indexed: true, - internalType: "address", - }, - { - name: "newOwner", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "UCHPacketSent", - inputs: [ - { - name: "source", - type: "address", - indexed: false, - internalType: "address", - }, - { - name: "destination", - type: "bytes32", - indexed: false, - internalType: "bytes32", - }, - ], - anonymous: false, - }, - { - type: "event", - name: "Upgraded", - inputs: [ - { - name: "implementation", - type: "address", - indexed: true, - internalType: "address", - }, - ], - anonymous: false, - }, - { - type: "error", - name: "ChannelNotFound", - inputs: [], - }, - { - type: "error", - name: "MwBitmpaCannotBeZero", - inputs: [], - }, - { - type: "error", - name: "UnsupportedVersion", - inputs: [], - }, - { - type: "error", - name: "invalidAddress", - inputs: [], - }, - { - type: "error", - name: "notIbcDispatcher", - inputs: [], - }, -] as const; - -const _bytecode = - "0x60a0604052306080523480156200001557600080fd5b506200002062000030565b6200002a62000030565b620000f1565b600054610100900460ff16156200009d5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000ef576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6080516126bb62000129600039600081816105d10152818161061a01528181610a1801528181610a580152610aeb01526126bb6000f3fe60806040526004361061014f5760003560e01c80637a9ccc4b116100b6578063c4d66de81161006f578063c4d66de814610399578063cb7e9057146103b9578063e847e280146103d9578063f2fde38b146103f9578063fad28a2414610419578063ffa1ad741461043957600080fd5b80637a9ccc4b146102d25780637e1d42b5146102f25780638da5cb5b14610312578063ace02de714610344578063ba22bd7614610364578063c1cb44e51461038457600080fd5b80634c2ee09d116101085780634c2ee09d1461021a5780634dcc0aa61461023a5780634f1ef2861461026757806352d1902d1461027a578063602f98341461029d578063715018a6146102bd57600080fd5b80631eb7dd5e1461015b5780631f3a58301461017d5780633659cfe6146101ba5780633f9fdbe41461015b578063462fdf83146101da5780634bdb5597146101ed57600080fd5b3661015657005b600080fd5b34801561016757600080fd5b5061017b610176366004611928565b610468565b005b34801561018957600080fd5b5061019d61019836600461198f565b610499565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101c657600080fd5b5061017b6101d5366004611a0e565b6105c7565b61019d6101e8366004611a3c565b6106af565b3480156101f957600080fd5b5061020d610208366004611ba2565b6107f9565b6040516101b19190611d33565b34801561022657600080fd5b5061017b610235366004611d46565b61083e565b34801561024657600080fd5b5061025a610255366004611d77565b6108a7565b6040516101b19190611dab565b61017b610275366004611dd2565b610a0e565b34801561028657600080fd5b5061028f610ade565b6040519081526020016101b1565b3480156102a957600080fd5b5061017b6102b8366004611d77565b610b91565b3480156102c957600080fd5b5061017b610cc6565b3480156102de57600080fd5b5061020d6102ed366004611e79565b610cda565b3480156102fe57600080fd5b5061017b61030d366004611f03565b610d12565b34801561031e57600080fd5b506033546001600160a01b03165b6040516001600160a01b0390911681526020016101b1565b34801561035057600080fd5b5061017b61035f366004611f7b565b610e4a565b34801561037057600080fd5b5061017b61037f366004611a0e565b610ecc565b34801561039057600080fd5b5061028f600181565b3480156103a557600080fd5b5061017b6103b4366004611a0e565b610ef6565b3480156103c557600080fd5b5060655461032c906001600160a01b031681565b3480156103e557600080fd5b5061017b6103f436600461203c565b611008565b34801561040557600080fd5b5061017b610414366004611a0e565b61103e565b34801561042557600080fd5b5061017b610434366004611d46565b6110b4565b34801561044557600080fd5b5061020d604051806040016040528060038152602001620312e360ec1b81525081565b6065546001600160a01b03163314610493576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b60008061050960405180608001604052806104ba336001600160a01b031690565b81526020016001815260200188815260200187878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509152506110df565b60408051338152602081018990529192507f9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873910160405180910390a16065546040516330f8455760e21b81526001600160a01b039091169063c3e1155c90610579908a908590889060040161208e565b6020604051808303816000875af1158015610598573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bc91906120c0565b979650505050505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106185760405162461bcd60e51b815260040161060f906120dd565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661066160008051602061263f833981519152546001600160a01b031690565b6001600160a01b0316146106875760405162461bcd60e51b815260040161060f90612129565b6106908161111b565b604080516000808252602082019092526106ac91839190611123565b50565b60655460408051608081019091526000916001600160a01b03169082906107219080338152602001600181526020018b81526020018a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509152506110df565b60408051338152602081018c90529192507f9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873910160405180910390a16040516330f8455760e21b81526001600160a01b0383169063c3e1155c9061078d908d9085908b9060040161208e565b6020604051808303816000875af11580156107ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d091906120c0565b6065549093506107ec906001600160a01b03168b858888611293565b5050979650505050505050565b6065546060906001600160a01b03163314610827576040516321bf7f4960e01b815260040160405180910390fd5b610832868484611362565b98975050505050505050565b61084661142c565b6065546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b15801561088c57600080fd5b505af11580156108a0573d6000803e3d6000fd5b5050505050565b6040805180820190915260008152606060208201526065546001600160a01b031633146108e7576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d6109106060860186612175565b6040518363ffffffff1660e01b815260040161092d9291906121e4565b600060405180830381865af415801561094a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610972919081019061223d565b90506109818160400151611486565b6001600160a01b0316635b76158561099c60208601866122df565b60200135836040518363ffffffff1660e01b81526004016109be929190612332565b6000604051808303816000875af11580156109dd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a05919081019061234b565b9150505b919050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a565760405162461bcd60e51b815260040161060f906120dd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610a9f60008051602061263f833981519152546001600160a01b031690565b6001600160a01b031614610ac55760405162461bcd60e51b815260040161060f90612129565b610ace8261111b565b610ada82826001611123565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b7e5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161060f565b5060008051602061263f83398151915290565b6065546001600160a01b03163314610bbc576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d610be56060850185612175565b6040518363ffffffff1660e01b8152600401610c029291906121e4565b600060405180830381865af4158015610c1f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c47919081019061223d565b9050610c568160000151611486565b6001600160a01b031663400d9f5d610c6e84806122df565b60200135836040518363ffffffff1660e01b8152600401610c90929190612332565b600060405180830381600087803b158015610caa57600080fd5b505af1158015610cbe573d6000803e3d6000fd5b505050505050565b610cce61142c565b610cd86000611497565b565b6065546060906001600160a01b03163314610d08576040516321bf7f4960e01b815260040160405180910390fd5b61083283836114e9565b6065546001600160a01b03163314610d3d576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d610d666060860186612175565b6040518363ffffffff1660e01b8152600401610d839291906121e4565b600060405180830381865af4158015610da0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dc8919081019061223d565b9050610dd78160000151611486565b6001600160a01b031663588152ca610def85806122df565b6020013583856040518463ffffffff1660e01b8152600401610e1393929190612425565b600060405180830381600087803b158015610e2d57600080fd5b505af1158015610e41573d6000803e3d6000fd5b50505050505050565b610e5261142c565b60655460405163418925b760e01b81526001600160a01b039091169063418925b790610e90908b908b908b908b908b908b908b908b90600401612477565b600060405180830381600087803b158015610eaa57600080fd5b505af1158015610ebe573d6000803e3d6000fd5b505050505050505050505050565b610ed461142c565b606580546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1615808015610f165750600054600160ff909116105b80610f305750303b158015610f30575060005460ff166001145b610f935760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161060f565b6000805460ff191660011790558015610fb6576000805461ff0019166101001790555b610fbf82611595565b8015610ada576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6065546001600160a01b03163314611033576040516321bf7f4960e01b815260040160405180910390fd5b6108a0848383611362565b61104661142c565b6001600160a01b0381166110ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060f565b6106ac81611497565b6065546001600160a01b031633146106ac576040516321bf7f4960e01b815260040160405180910390fd5b805160208083015160408085015160608681015192519095611105959094939101612535565b6040516020818303038152906040529050919050565b6106ac61142c565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561115b57611156836115c4565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156111b5575060408051601f3d908101601f191682019092526111b291810190612569565b60015b6112185760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161060f565b60008051602061263f83398151915281146112875760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161060f565b50611156838383611660565b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af11580156112d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f79190612582565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b8152600401611329949392919061259f565b6000604051808303818588803b15801561134257600080fd5b505af1158015611356573d6000803e3d6000fd5b50505050505050505050565b6060604051806040016040528060038152602001620312e360ec1b81525060405160200161139091906125d1565b6040516020818303038152906040528051906020012083836040516020016113b99291906125e3565b60405160208183030381529060405280519060200120146113ed5760405163b01318a560e01b815260040160405180910390fd5b82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092979650505050505050565b6033546001600160a01b03163314610cd85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161060f565b600061149182611685565b92915050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060604051806040016040528060038152602001620312e360ec1b81525060405160200161151791906125d1565b6040516020818303038152906040528051906020012083836040516020016115409291906125e3565b60405160208183030381529060405280519060200120146115745760405163b01318a560e01b815260040160405180910390fd5b506040805180820190915260038152620312e360ec1b602082015292915050565b600054610100900460ff166115bc5760405162461bcd60e51b815260040161060f906125f3565b610ed46116f2565b6001600160a01b0381163b6116315760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161060f565b60008051602061263f83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61166983611721565b6000825111806116765750805b15611156576104938383611761565b60006001600160a01b038211156116ee5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663630206269747360c81b606482015260840161060f565b5090565b600054610100900460ff166117195760405162461bcd60e51b815260040161060f906125f3565b610cd861178d565b61172a816115c4565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060611786838360405180606001604052806027815260200161265f602791396117bd565b9392505050565b600054610100900460ff166117b45760405162461bcd60e51b815260040161060f906125f3565b610cd833611497565b6060600080856001600160a01b0316856040516117da91906125d1565b600060405180830381855af49150503d8060008114611815576040519150601f19603f3d011682016040523d82523d6000602084013e61181a565b606091505b509150915061182b86838387611835565b9695505050505050565b606083156118a457825160000361189d576001600160a01b0385163b61189d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161060f565b50816118ae565b6118ae83836118b6565b949350505050565b8151156118c65781518083602001fd5b8060405162461bcd60e51b815260040161060f9190611d33565b60008083601f8401126118f257600080fd5b5081356001600160401b0381111561190957600080fd5b60208301915083602082850101111561192157600080fd5b9250929050565b6000806000806060858703121561193e57600080fd5b8435935060208501356001600160401b0381111561195b57600080fd5b611967878288016118e0565b9598909750949560400135949350505050565b6001600160401b03811681146106ac57600080fd5b6000806000806000608086880312156119a757600080fd5b853594506020860135935060408601356001600160401b038111156119cb57600080fd5b6119d7888289016118e0565b90945092505060608601356119eb8161197a565b809150509295509295909350565b6001600160a01b03811681146106ac57600080fd5b600060208284031215611a2057600080fd5b8135611786816119f9565b806040810183101561149157600080fd5b6000806000806000806000610100888a031215611a5857600080fd5b873596506020880135955060408801356001600160401b03811115611a7c57600080fd5b611a888a828b016118e0565b9096509450506060880135611a9c8161197a565b9250611aab8960808a01611a2b565b9150611aba8960c08a01611a2b565b905092959891949750929550565b803560038110610a0957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611b1557611b15611ad7565b604052919050565b60006001600160401b03821115611b3657611b36611ad7565b50601f01601f191660200190565b6000611b57611b5284611b1d565b611aed565b9050828152838383011115611b6b57600080fd5b828260208301376000602084830101529392505050565b600082601f830112611b9357600080fd5b61178683833560208501611b44565b600080600080600080600060c0888a031215611bbd57600080fd5b611bc688611ac8565b965060208801356001600160401b0380821115611be257600080fd5b818a0191508a601f830112611bf657600080fd5b813581811115611c0857611c08611ad7565b8060051b611c1860208201611aed565b9182526020818501810192908101908e841115611c3457600080fd5b6020860192505b83831015611c72578483351115611c5157600080fd5b611c618f60208535890101611b82565b825260209283019290910190611c3b565b9a5050505060408a0135965060608a0135915080821115611c9257600080fd5b611c9e8b838c01611b82565b955060808a0135945060a08a0135915080821115611cbb57600080fd5b50611cc88a828b016118e0565b989b979a50959850939692959293505050565b60005b83811015611cf6578181015183820152602001611cde565b838111156104935750506000910152565b60008151808452611d1f816020860160208601611cdb565b601f01601f19169290920160200192915050565b6020815260006117866020830184611d07565b600060208284031215611d5857600080fd5b5035919050565b600060e08284031215611d7157600080fd5b50919050565b600060208284031215611d8957600080fd5b81356001600160401b03811115611d9f57600080fd5b6118ae84828501611d5f565b60208152815115156020820152600060208301516040808401526118ae6060840182611d07565b60008060408385031215611de557600080fd5b8235611df0816119f9565b915060208301356001600160401b03811115611e0b57600080fd5b8301601f81018513611e1c57600080fd5b611e2b85823560208401611b44565b9150509250929050565b60008083601f840112611e4757600080fd5b5081356001600160401b03811115611e5e57600080fd5b6020830191508360208260051b850101111561192157600080fd5b60008060008060008060006080888a031215611e9457600080fd5b611e9d88611ac8565b965060208801356001600160401b0380821115611eb957600080fd5b611ec58b838c01611e35565b909850965060408a0135915080821115611ede57600080fd5b611eea8b838c016118e0565b909650945060608a0135915080821115611cbb57600080fd5b60008060408385031215611f1657600080fd5b82356001600160401b0380821115611f2d57600080fd5b611f3986838701611d5f565b93506020850135915080821115611f4f57600080fd5b50830160408186031215611f6257600080fd5b809150509250929050565b80151581146106ac57600080fd5b60008060008060008060008060a0898b031215611f9757600080fd5b88356001600160401b0380821115611fae57600080fd5b611fba8c838d016118e0565b909a509850889150611fce60208c01611ac8565b975060408b01359150611fe082611f6d565b90955060608a01359080821115611ff657600080fd5b6120028c838d01611e35565b909650945060808b013591508082111561201b57600080fd5b506120288b828c016118e0565b999c989b5096995094979396929594505050565b6000806000806060858703121561205257600080fd5b843593506020850135925060408501356001600160401b0381111561207657600080fd5b612082878288016118e0565b95989497509550505050565b8381526060602082015260006120a76060830185611d07565b90506001600160401b0383166040830152949350505050565b6000602082840312156120d257600080fd5b81516117868161197a565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6000808335601e1984360301811261218c57600080fd5b8301803591506001600160401b038211156121a657600080fd5b60200191503681900382131561192157600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006118ae6020830184866121bb565b600082601f83011261220957600080fd5b8151612217611b5282611b1d565b81815284602083860101111561222c57600080fd5b6118ae826020830160208701611cdb565b60006020828403121561224f57600080fd5b81516001600160401b038082111561226657600080fd5b908301906080828603121561227a57600080fd5b60405160808101818110838211171561229557612295611ad7565b80604052508251815260208301516020820152604083015160408201526060830151828111156122c457600080fd5b6122d0878286016121f8565b60608301525095945050505050565b60008235603e198336030181126122f557600080fd5b9190910192915050565b80518252602081015160208301526040810151604083015260006060820151608060608501526118ae6080850182611d07565b8281526040602082015260006118ae60408301846122ff565b60006020828403121561235d57600080fd5b81516001600160401b038082111561237457600080fd5b908301906040828603121561238857600080fd5b6040516040810181811083821117156123a3576123a3611ad7565b60405282516123b181611f6d565b81526020830151828111156123c557600080fd5b6123d1878286016121f8565b60208301525095945050505050565b6000808335601e198436030181126123f757600080fd5b83016020810192503590506001600160401b0381111561241657600080fd5b80360382131561192157600080fd5b83815260606020820152600061243e60608301856122ff565b8281036040840152833561245181611f6d565b1515815261246260208501856123e0565b604060208401526108326040840182846121bb565b60a08152600061248b60a083018a8c6121bb565b602060038a106124ab57634e487b7160e01b600052602160045260246000fd5b8381018a905288151560408501528382036060850152868252818101600588901b830182018960005b8a81101561250e57858303601f190184526124ef828d6123e0565b6124fa8582846121bb565b9587019594505050908401906001016124d4565b5050858103608087015261252381888a6121bb565b9e9d5050505050505050505050505050565b84815283602082015282604082015260008251612559816060850160208701611cdb565b9190910160600195945050505050565b60006020828403121561257b57600080fd5b5051919050565b60006020828403121561259457600080fd5b8151611786816119f9565b8481526001600160401b038416602082015260c081016040848184013760408360808401376000815295945050505050565b600082516122f5818460208701611cdb565b8183823760009101908152919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212208a56db1be365ffd67edc158d2662f1ab4c7eabfc9d31de44a3fdb08cf04b4ecb64736f6c634300080f0033"; - -type UniversalChannelHandlerConstructorParams = - | [ - linkLibraryAddresses: UniversalChannelHandlerLibraryAddresses, - signer?: Signer - ] - | ConstructorParameters; - -const isSuperArgs = ( - xs: UniversalChannelHandlerConstructorParams -): xs is ConstructorParameters => { - return ( - typeof xs[0] === "string" || - (Array.isArray as (arg: any) => arg is readonly any[])(xs[0]) || - "_isInterface" in xs[0] - ); -}; - -export class UniversalChannelHandler__factory extends ContractFactory { - constructor(...args: UniversalChannelHandlerConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - const [linkLibraryAddresses, signer] = args; - super( - _abi, - UniversalChannelHandler__factory.linkBytecode(linkLibraryAddresses), - signer - ); - } - } - - static linkBytecode( - linkLibraryAddresses: UniversalChannelHandlerLibraryAddresses - ): string { - let linkedBytecode = _bytecode; - - linkedBytecode = linkedBytecode.replace( - new RegExp("__\\$f61eb90c6f674e787d51c07f105fa231e2\\$__", "g"), - linkLibraryAddresses["contracts/libs/IbcUtils.sol:IbcUtils"] - .replace(/^0x/, "") - .toLowerCase() - ); - - return linkedBytecode; - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - UniversalChannelHandler & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect( - runner: ContractRunner | null - ): UniversalChannelHandler__factory { - return super.connect(runner) as UniversalChannelHandler__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): UniversalChannelHandlerInterface { - return new Interface(_abi) as UniversalChannelHandlerInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): UniversalChannelHandler { - return new Contract( - address, - _abi, - runner - ) as unknown as UniversalChannelHandler; - } -} - -export interface UniversalChannelHandlerLibraryAddresses { - ["contracts/libs/IbcUtils.sol:IbcUtils"]: string; -} diff --git a/src/evm/contracts/factories/index.ts b/src/evm/contracts/factories/index.ts deleted file mode 100644 index 33d9b757..00000000 --- a/src/evm/contracts/factories/index.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as ibcDispatcherSol from "./IbcDispatcher.sol"; -export * as marsSol from "./Mars.sol"; -export { Dispatcher__factory } from "./Dispatcher__factory"; -export { DummyLightClient__factory } from "./DummyLightClient__factory"; -export { DummyProofVerifier__factory } from "./DummyProofVerifier__factory"; -export { ERC1967Proxy__factory } from "./ERC1967Proxy__factory"; -export { Earth__factory } from "./Earth__factory"; -export { FeeVault__factory } from "./FeeVault__factory"; -export { IDispatcher__factory } from "./IDispatcher__factory"; -export { IFeeVault__factory } from "./IFeeVault__factory"; -export { ILightClient__factory } from "./ILightClient__factory"; -export { IProofVerifier__factory } from "./IProofVerifier__factory"; -export { IUniversalChannelHandler__factory } from "./IUniversalChannelHandler__factory"; -export { Ibc__factory } from "./Ibc__factory"; -export { IbcUtils__factory } from "./IbcUtils__factory"; -export { Moon__factory } from "./Moon__factory"; -export { OptimisticLightClient__factory } from "./OptimisticLightClient__factory"; -export { OptimisticProofVerifier__factory } from "./OptimisticProofVerifier__factory"; -export { UniversalChannelHandler__factory } from "./UniversalChannelHandler__factory"; diff --git a/src/evm/contracts/index.ts b/src/evm/contracts/index.ts deleted file mode 100644 index 3e259fe9..00000000 --- a/src/evm/contracts/index.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as ibcDispatcherSol from "./IbcDispatcher.sol"; -export type { ibcDispatcherSol }; -import type * as marsSol from "./Mars.sol"; -export type { marsSol }; -export type { Dispatcher } from "./Dispatcher"; -export type { DummyLightClient } from "./DummyLightClient"; -export type { DummyProofVerifier } from "./DummyProofVerifier"; -export type { ERC1967Proxy } from "./ERC1967Proxy"; -export type { Earth } from "./Earth"; -export type { FeeVault } from "./FeeVault"; -export type { IDispatcher } from "./IDispatcher"; -export type { IFeeVault } from "./IFeeVault"; -export type { ILightClient } from "./ILightClient"; -export type { IProofVerifier } from "./IProofVerifier"; -export type { IUniversalChannelHandler } from "./IUniversalChannelHandler"; -export type { Ibc } from "./Ibc"; -export type { IbcUtils } from "./IbcUtils"; -export type { Moon } from "./Moon"; -export type { OptimisticLightClient } from "./OptimisticLightClient"; -export type { OptimisticProofVerifier } from "./OptimisticProofVerifier"; -export type { UniversalChannelHandler } from "./UniversalChannelHandler"; -export * as factories from "./factories"; -export { Dispatcher__factory } from "./factories/Dispatcher__factory"; -export { DummyLightClient__factory } from "./factories/DummyLightClient__factory"; -export { DummyProofVerifier__factory } from "./factories/DummyProofVerifier__factory"; -export { Earth__factory } from "./factories/Earth__factory"; -export { ERC1967Proxy__factory } from "./factories/ERC1967Proxy__factory"; -export { FeeVault__factory } from "./factories/FeeVault__factory"; -export { Ibc__factory } from "./factories/Ibc__factory"; -export type { IbcDispatcher } from "./IbcDispatcher.sol/IbcDispatcher"; -export { IbcDispatcher__factory } from "./factories/IbcDispatcher.sol/IbcDispatcher__factory"; -export type { IbcEventsEmitter } from "./IbcDispatcher.sol/IbcEventsEmitter"; -export { IbcEventsEmitter__factory } from "./factories/IbcDispatcher.sol/IbcEventsEmitter__factory"; -export type { IbcPacketSender } from "./IbcDispatcher.sol/IbcPacketSender"; -export { IbcPacketSender__factory } from "./factories/IbcDispatcher.sol/IbcPacketSender__factory"; -export { IbcUtils__factory } from "./factories/IbcUtils__factory"; -export { IDispatcher__factory } from "./factories/IDispatcher__factory"; -export { IFeeVault__factory } from "./factories/IFeeVault__factory"; -export { ILightClient__factory } from "./factories/ILightClient__factory"; -export { IProofVerifier__factory } from "./factories/IProofVerifier__factory"; -export { IUniversalChannelHandler__factory } from "./factories/IUniversalChannelHandler__factory"; -export type { Mars } from "./Mars.sol/Mars"; -export { Mars__factory } from "./factories/Mars.sol/Mars__factory"; -export type { PanickingMars } from "./Mars.sol/PanickingMars"; -export { PanickingMars__factory } from "./factories/Mars.sol/PanickingMars__factory"; -export type { RevertingBytesMars } from "./Mars.sol/RevertingBytesMars"; -export { RevertingBytesMars__factory } from "./factories/Mars.sol/RevertingBytesMars__factory"; -export type { RevertingEmptyMars } from "./Mars.sol/RevertingEmptyMars"; -export { RevertingEmptyMars__factory } from "./factories/Mars.sol/RevertingEmptyMars__factory"; -export type { RevertingStringCloseChannelMars } from "./Mars.sol/RevertingStringCloseChannelMars"; -export { RevertingStringCloseChannelMars__factory } from "./factories/Mars.sol/RevertingStringCloseChannelMars__factory"; -export type { RevertingStringMars } from "./Mars.sol/RevertingStringMars"; -export { RevertingStringMars__factory } from "./factories/Mars.sol/RevertingStringMars__factory"; -export { Moon__factory } from "./factories/Moon__factory"; -export { OptimisticLightClient__factory } from "./factories/OptimisticLightClient__factory"; -export { OptimisticProofVerifier__factory } from "./factories/OptimisticProofVerifier__factory"; -export { UniversalChannelHandler__factory } from "./factories/UniversalChannelHandler__factory";