From ded40ae4e2e43250a6e1fb7629967f5d378e51bb Mon Sep 17 00:00:00 2001 From: RnkSngh Date: Wed, 23 Oct 2024 15:22:44 -0400 Subject: [PATCH] rename uch openChannel -> triggerChannelInit --- .../IUniversalChannelHandler.go | 44 ++++++------ .../UniversalChannelHandler.go | 44 ++++++------ contracts/core/UniversalChannelHandler.sol | 2 +- .../interfaces/IUniversalChannelHandler.sol | 2 +- package.json | 2 +- src/evm/contracts/IUniversalChannelHandler.ts | 68 +++++++++---------- src/evm/contracts/UniversalChannelHandler.ts | 68 +++++++++---------- src/evm/contracts/factories/Earth__factory.ts | 2 +- .../IUniversalChannelHandler__factory.ts | 66 +++++++++--------- .../UniversalChannelHandler__factory.ts | 68 +++++++++---------- 10 files changed, 183 insertions(+), 183 deletions(-) diff --git a/bindings/go/iuniversalchannelhandler/IUniversalChannelHandler.go b/bindings/go/iuniversalchannelhandler/IUniversalChannelHandler.go index 80d22d54..89484267 100644 --- a/bindings/go/iuniversalchannelhandler/IUniversalChannelHandler.go +++ b/bindings/go/iuniversalchannelhandler/IUniversalChannelHandler.go @@ -59,7 +59,7 @@ type IbcPacket struct { // IUniversalChannelHandlerMetaData contains all meta data concerning the IUniversalChannelHandler contract. var IUniversalChannelHandlerMetaData = &bind.MetaData{ - 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\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"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\":\"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\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"order\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"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\":\"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\"}]},{\"name\":\"skipAck\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"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\":\"openChannel\",\"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\":\"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\":\"contractIbcDispatcher\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"error\",\"name\":\"MwBitmpaCannotBeZero\",\"inputs\":[]}]", + 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\":\"contractIbcDispatcher\"}],\"stateMutability\":\"nonpayable\"},{\"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\":\"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\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"order\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"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\":\"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\"}]},{\"name\":\"skipAck\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"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\":\"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\":\"contractIbcDispatcher\"}],\"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\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"error\",\"name\":\"MwBitmpaCannotBeZero\",\"inputs\":[]}]", } // IUniversalChannelHandlerABI is the input ABI used to generate the binding from. @@ -459,27 +459,6 @@ func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OnTi return _IUniversalChannelHandler.Contract.OnTimeoutPacket(&_IUniversalChannelHandler.TransactOpts, packet) } -// OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. -// -// Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) OpenChannel(opts *bind.TransactOpts, version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _IUniversalChannelHandler.contract.Transact(opts, "openChannel", version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) -} - -// OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. -// -// Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) OpenChannel(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _IUniversalChannelHandler.Contract.OpenChannel(&_IUniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) -} - -// OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. -// -// Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OpenChannel(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _IUniversalChannelHandler.Contract.OpenChannel(&_IUniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) -} - // RegisterMwStack is a paid mutator transaction binding the contract method 0x1b532db1. // // Solidity: function registerMwStack(uint256 mwBitmap, address[] mwAddrs) returns() @@ -563,3 +542,24 @@ func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) SetDispatcher( func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) SetDispatcher(dispatcher common.Address) (*types.Transaction, error) { return _IUniversalChannelHandler.Contract.SetDispatcher(&_IUniversalChannelHandler.TransactOpts, dispatcher) } + +// TriggerChannelInit is a paid mutator transaction binding the contract method 0x7a805598. +// +// Solidity: function triggerChannelInit(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() +func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) TriggerChannelInit(opts *bind.TransactOpts, version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _IUniversalChannelHandler.contract.Transact(opts, "triggerChannelInit", version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +} + +// TriggerChannelInit is a paid mutator transaction binding the contract method 0x7a805598. +// +// Solidity: function triggerChannelInit(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() +func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) TriggerChannelInit(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _IUniversalChannelHandler.Contract.TriggerChannelInit(&_IUniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +} + +// TriggerChannelInit is a paid mutator transaction binding the contract method 0x7a805598. +// +// Solidity: function triggerChannelInit(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() +func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) TriggerChannelInit(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _IUniversalChannelHandler.Contract.TriggerChannelInit(&_IUniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +} diff --git a/bindings/go/universalchannelhandler/UniversalChannelHandler.go b/bindings/go/universalchannelhandler/UniversalChannelHandler.go index f7ccd734..467b6c87 100644 --- a/bindings/go/universalchannelhandler/UniversalChannelHandler.go +++ b/bindings/go/universalchannelhandler/UniversalChannelHandler.go @@ -59,7 +59,7 @@ type IbcPacket struct { // UniversalChannelHandlerMetaData contains all meta data concerning the UniversalChannelHandler contract. var UniversalChannelHandlerMetaData = &bind.MetaData{ - 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\":\"acceptOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"closeChannel\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"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\":\"\",\"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\":\"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\":\"view\"},{\"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\"}]},{\"name\":\"skipAck\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"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\":\"openChannel\",\"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\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"pendingOwner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"proxiableUUID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"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\":\"contractIbcDispatcher\"}],\"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\":\"OwnershipTransferStarted\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"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\":[]}]", + 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\":\"acceptOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"closeChannel\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"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\":\"\",\"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\":\"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\":\"view\"},{\"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\"}]},{\"name\":\"skipAck\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"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\":\"pendingOwner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"proxiableUUID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"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\":\"contractIbcDispatcher\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"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\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"upgradeTo\",\"inputs\":[{\"name\":\"newImplementation\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"upgradeToAndCall\",\"inputs\":[{\"name\":\"newImplementation\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"AdminChanged\",\"inputs\":[{\"name\":\"previousAdmin\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"newAdmin\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"BeaconUpgraded\",\"inputs\":[{\"name\":\"beacon\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferStarted\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"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\":[]}]", } // UniversalChannelHandlerABI is the input ABI used to generate the binding from. @@ -643,27 +643,6 @@ func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OnTime return _UniversalChannelHandler.Contract.OnTimeoutPacket(&_UniversalChannelHandler.TransactOpts, packet) } -// OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. -// -// Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) OpenChannel(opts *bind.TransactOpts, version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _UniversalChannelHandler.contract.Transact(opts, "openChannel", version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) -} - -// OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. -// -// Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_UniversalChannelHandler *UniversalChannelHandlerSession) OpenChannel(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _UniversalChannelHandler.Contract.OpenChannel(&_UniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) -} - -// OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. -// -// Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OpenChannel(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _UniversalChannelHandler.Contract.OpenChannel(&_UniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) -} - // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() @@ -769,6 +748,27 @@ func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) Transf return _UniversalChannelHandler.Contract.TransferOwnership(&_UniversalChannelHandler.TransactOpts, newOwner) } +// TriggerChannelInit is a paid mutator transaction binding the contract method 0x7a805598. +// +// Solidity: function triggerChannelInit(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) TriggerChannelInit(opts *bind.TransactOpts, version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "triggerChannelInit", version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +} + +// TriggerChannelInit is a paid mutator transaction binding the contract method 0x7a805598. +// +// Solidity: function triggerChannelInit(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() +func (_UniversalChannelHandler *UniversalChannelHandlerSession) TriggerChannelInit(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.TriggerChannelInit(&_UniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +} + +// TriggerChannelInit is a paid mutator transaction binding the contract method 0x7a805598. +// +// Solidity: function triggerChannelInit(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) TriggerChannelInit(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.TriggerChannelInit(&_UniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +} + // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() diff --git a/contracts/core/UniversalChannelHandler.sol b/contracts/core/UniversalChannelHandler.sol index a5865b64..8922a9ca 100644 --- a/contracts/core/UniversalChannelHandler.sol +++ b/contracts/core/UniversalChannelHandler.sol @@ -59,7 +59,7 @@ contract UniversalChannelHandler is IbcReceiverBaseUpgradeable, FeeSender, UUPSU function onChanCloseConfirm(bytes32 channelId, string calldata, bytes32) external onlyIbcDispatcher {} - function openChannel( + function triggerChannelInit( string calldata version, ChannelOrder ordering, bool feeEnabled, diff --git a/contracts/interfaces/IUniversalChannelHandler.sol b/contracts/interfaces/IUniversalChannelHandler.sol index 429cb22f..4c57eb15 100644 --- a/contracts/interfaces/IUniversalChannelHandler.sol +++ b/contracts/interfaces/IUniversalChannelHandler.sol @@ -23,7 +23,7 @@ import {ChannelOrder} from "../libs/Ibc.sol"; interface IUniversalChannelHandler is IbcUniversalChannelMW { function registerMwStack(uint256 mwBitmap, address[] calldata mwAddrs) external; - function openChannel( + function triggerChannelInit( string calldata version, ChannelOrder ordering, bool feeEnabled, diff --git a/package.json b/package.json index 9f5ddc17..b548ec70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@open-ibc/vibc-core-smart-contracts", - "version": "4.0.3", + "version": "4.0.4", "main": "dist/index.js", "bin": { "verify-vibc-core-smart-contracts": "./dist/scripts/verify-contract-script.js", diff --git a/src/evm/contracts/IUniversalChannelHandler.ts b/src/evm/contracts/IUniversalChannelHandler.ts index 5e49e8c2..237b39e4 100644 --- a/src/evm/contracts/IUniversalChannelHandler.ts +++ b/src/evm/contracts/IUniversalChannelHandler.ts @@ -84,11 +84,11 @@ export interface IUniversalChannelHandlerInterface extends Interface { | "onChanOpenTry" | "onRecvPacket" | "onTimeoutPacket" - | "openChannel" | "registerMwStack" | "sendUniversalPacket" | "sendUniversalPacketWithFee" | "setDispatcher" + | "triggerChannelInit" ): FunctionFragment; encodeFunctionData(functionFragment: "MW_ID", values?: undefined): string; @@ -132,10 +132,6 @@ export interface IUniversalChannelHandlerInterface extends Interface { functionFragment: "onTimeoutPacket", values: [IbcPacketStruct] ): string; - encodeFunctionData( - functionFragment: "openChannel", - values: [string, BigNumberish, boolean, string[], string] - ): string; encodeFunctionData( functionFragment: "registerMwStack", values: [BigNumberish, AddressLike[]] @@ -159,6 +155,10 @@ export interface IUniversalChannelHandlerInterface extends Interface { functionFragment: "setDispatcher", values: [AddressLike] ): string; + encodeFunctionData( + functionFragment: "triggerChannelInit", + values: [string, BigNumberish, boolean, string[], string] + ): string; decodeFunctionResult(functionFragment: "MW_ID", data: BytesLike): Result; decodeFunctionResult( @@ -198,10 +198,6 @@ export interface IUniversalChannelHandlerInterface extends Interface { functionFragment: "onTimeoutPacket", data: BytesLike ): Result; - decodeFunctionResult( - functionFragment: "openChannel", - data: BytesLike - ): Result; decodeFunctionResult( functionFragment: "registerMwStack", data: BytesLike @@ -218,6 +214,10 @@ export interface IUniversalChannelHandlerInterface extends Interface { functionFragment: "setDispatcher", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "triggerChannelInit", + data: BytesLike + ): Result; } export interface IUniversalChannelHandler extends BaseContract { @@ -341,18 +341,6 @@ export interface IUniversalChannelHandler extends BaseContract { "nonpayable" >; - openChannel: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortIdentifier: string - ], - [void], - "nonpayable" - >; - registerMwStack: TypedContractMethod< [mwBitmap: BigNumberish, mwAddrs: AddressLike[]], [void], @@ -389,6 +377,18 @@ export interface IUniversalChannelHandler extends BaseContract { "nonpayable" >; + triggerChannelInit: TypedContractMethod< + [ + version: string, + ordering: BigNumberish, + feeEnabled: boolean, + connectionHops: string[], + counterpartyPortIdentifier: string + ], + [void], + "nonpayable" + >; + getFunction( key: string | FunctionFragment ): T; @@ -466,19 +466,6 @@ export interface IUniversalChannelHandler extends BaseContract { 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< @@ -515,6 +502,19 @@ export interface IUniversalChannelHandler extends BaseContract { getFunction( nameOrSignature: "setDispatcher" ): TypedContractMethod<[dispatcher: AddressLike], [void], "nonpayable">; + getFunction( + nameOrSignature: "triggerChannelInit" + ): TypedContractMethod< + [ + version: string, + ordering: BigNumberish, + feeEnabled: boolean, + connectionHops: string[], + counterpartyPortIdentifier: string + ], + [void], + "nonpayable" + >; filters: {}; } diff --git a/src/evm/contracts/UniversalChannelHandler.ts b/src/evm/contracts/UniversalChannelHandler.ts index f072db09..8c4fb7c6 100644 --- a/src/evm/contracts/UniversalChannelHandler.ts +++ b/src/evm/contracts/UniversalChannelHandler.ts @@ -89,7 +89,6 @@ export interface UniversalChannelHandlerInterface extends Interface { | "onChanOpenTry" | "onRecvPacket" | "onTimeoutPacket" - | "openChannel" | "owner" | "pendingOwner" | "proxiableUUID" @@ -98,6 +97,7 @@ export interface UniversalChannelHandlerInterface extends Interface { | "sendUniversalPacketWithFee" | "setDispatcher" | "transferOwnership" + | "triggerChannelInit" | "upgradeTo" | "upgradeToAndCall" ): FunctionFragment; @@ -163,10 +163,6 @@ export interface UniversalChannelHandlerInterface extends Interface { functionFragment: "onTimeoutPacket", values: [IbcPacketStruct] ): string; - encodeFunctionData( - functionFragment: "openChannel", - values: [string, BigNumberish, boolean, string[], string] - ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "pendingOwner", @@ -203,6 +199,10 @@ export interface UniversalChannelHandlerInterface extends Interface { functionFragment: "transferOwnership", values: [AddressLike] ): string; + encodeFunctionData( + functionFragment: "triggerChannelInit", + values: [string, BigNumberish, boolean, string[], string] + ): string; encodeFunctionData( functionFragment: "upgradeTo", values: [AddressLike] @@ -256,10 +256,6 @@ export interface UniversalChannelHandlerInterface extends Interface { functionFragment: "onTimeoutPacket", data: BytesLike ): Result; - decodeFunctionResult( - functionFragment: "openChannel", - data: BytesLike - ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "pendingOwner", @@ -289,6 +285,10 @@ export interface UniversalChannelHandlerInterface extends Interface { functionFragment: "transferOwnership", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "triggerChannelInit", + data: BytesLike + ): Result; decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result; decodeFunctionResult( functionFragment: "upgradeToAndCall", @@ -507,18 +507,6 @@ export interface UniversalChannelHandler extends BaseContract { "nonpayable" >; - openChannel: TypedContractMethod< - [ - version: string, - ordering: BigNumberish, - feeEnabled: boolean, - connectionHops: string[], - counterpartyPortIdentifier: string - ], - [void], - "nonpayable" - >; - owner: TypedContractMethod<[], [string], "view">; pendingOwner: TypedContractMethod<[], [string], "view">; @@ -563,6 +551,18 @@ export interface UniversalChannelHandler extends BaseContract { "nonpayable" >; + triggerChannelInit: TypedContractMethod< + [ + version: string, + ordering: BigNumberish, + feeEnabled: boolean, + connectionHops: string[], + counterpartyPortIdentifier: string + ], + [void], + "nonpayable" + >; + upgradeTo: TypedContractMethod< [newImplementation: AddressLike], [void], @@ -657,19 +657,6 @@ export interface UniversalChannelHandler extends BaseContract { 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">; @@ -714,6 +701,19 @@ export interface UniversalChannelHandler extends BaseContract { getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; + getFunction( + nameOrSignature: "triggerChannelInit" + ): TypedContractMethod< + [ + version: string, + ordering: BigNumberish, + feeEnabled: boolean, + connectionHops: string[], + counterpartyPortIdentifier: string + ], + [void], + "nonpayable" + >; getFunction( nameOrSignature: "upgradeTo" ): TypedContractMethod< diff --git a/src/evm/contracts/factories/Earth__factory.ts b/src/evm/contracts/factories/Earth__factory.ts index ef3ec938..072730b0 100644 --- a/src/evm/contracts/factories/Earth__factory.ts +++ b/src/evm/contracts/factories/Earth__factory.ts @@ -603,7 +603,7 @@ const _abi = [ ] as const; const _bytecode = - "0x608060405234801561001057600080fd5b5060405161199638038061199683398101604081905261002f916100b2565b808061003a33610062565b600180546001600160a01b0319166001600160a01b0392909216919091179055506100e29050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c457600080fd5b81516001600160a01b03811681146100db57600080fd5b9392505050565b6118a5806100f16000396000f3fe6080604052600436106100f75760003560e01c80635b7615851161008a57806392dfa3921161005957806392dfa392146102f8578063d24ba02414610318578063f12b758a14610338578063f2fde38b1461035857600080fd5b80635b7615851461026a578063715018a614610298578063866f3f97146102ad5780638da5cb5b146102da57600080fd5b8063400d9f5d116100c6578063400d9f5d146101cd5780634252ae9b146101ed5780634eeb73911461021c578063588152ca1461024a57600080fd5b80631b2f37d0146101035780632466911c146101255780632cc422d9146101555780632eed7c701461018d57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004610e23565b610378565b005b610138610133366004610f7f565b6103c9565b6040516001600160401b0390911681526020015b60405180910390f35b34801561016157600080fd5b50600154610175906001600160a01b031681565b6040516001600160a01b03909116815260200161014c565b34801561019957600080fd5b506101bd6101a8366004611012565b60026020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156101d957600080fd5b506101236101e836600461102b565b610465565b3480156101f957600080fd5b5061020d610208366004611012565b610540565b60405161014c93929190611130565b34801561022857600080fd5b5061023c610237366004611012565b6106e4565b60405161014c929190611165565b34801561025657600080fd5b5061012361026536600461127d565b6107d2565b34801561027657600080fd5b5061028a61028536600461102b565b610980565b60405161014c9291906112f0565b3480156102a457600080fd5b50610123610b08565b3480156102b957600080fd5b506102cd6102c8366004611314565b610b1c565b60405161014c919061136d565b3480156102e657600080fd5b506000546001600160a01b0316610175565b34801561030457600080fd5b50610123610313366004611012565b610b77565b34801561032457600080fd5b50610123610333366004611380565b610b8b565b34801561034457600080fd5b5061023c610353366004611012565b610c1b565b34801561036457600080fd5b50610123610373366004610e23565b610c2b565b610380610ca6565b6001600160a01b0381166103a75760405163a944796960e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546000906001600160a01b031663462fdf8334896103ef8c6001600160a01b031690565b8a8a8a8a8a6040518963ffffffff1660e01b8152600401610416979695949392919061143d565b60206040518083038185885af1158015610434573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610459919061148a565b98975050505050505050565b6001546001600160a01b0316331461049057604051631323efc560e01b815260040160405180910390fd5b600082815260026020526040902054829060ff166104c157604051630100e70560e51b815260040160405180910390fd5b60056040518060400160405280858152602001846104de906114a7565b9052815460018181018455600093845260209384902083516005909302019182558383015180519183019182559384015160028301556040840151600383015560608401519293919260048401906105369082611538565b5050505050505050565b6004818154811061055057600080fd5b9060005260206000209060070201600091509050806000015490806001016040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820180546105a7906114b3565b80601f01602080910402602001604051908101604052809291908181526020018280546105d3906114b3565b80156106205780601f106105f557610100808354040283529160200191610620565b820191906000526020600020905b81548152906001019060200180831161060357829003601f168201915b5050509190925250506040805180820190915260058401805460ff1615158252600685018054949594929350909160208401919061065d906114b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610689906114b3565b80156106d65780601f106106ab576101008083540402835291602001916106d6565b820191906000526020600020905b8154815290600101906020018083116106b957829003601f168201915b505050505081525050905083565b600581815481106106f457600080fd5b90600052602060002090600502016000915090508060000154908060010160405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201805461074b906114b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610777906114b3565b80156107c45780601f10610799576101008083540402835291602001916107c4565b820191906000526020600020905b8154815290600101906020018083116107a757829003601f168201915b505050505081525050905082565b6001546001600160a01b031633146107fd57604051631323efc560e01b815260040160405180910390fd5b600083815260026020526040902054839060ff1661082e57604051630100e70560e51b815260040160405180910390fd5b601461083d60208401846115f7565b9050101561085e5760405163503b43db60e01b815260040160405180910390fd5b600061086d60208401846115f7565b61087c9160149160009161163d565b61088591611667565b60601c9050806001600160a01b03166108a18560400151610d00565b6001600160a01b0316146108c857604051631863a42d60e31b815260040160405180910390fd5b60046040518060600160405280878152602001868152602001856108eb906116aa565b9052815460018181018455600093845260209384902083516007909302019182558383015180519183019182559384015160028301556040840151600383015560608401519293919260048401906109439082611538565b5050506040820151805160058301805460ff1916911515919091178155602082015160068401906109749082611538565b50505050505050505050565b6040805180820190915260008152606060208201526001546000906001600160a01b031633146109c357604051631323efc560e01b815260040160405180910390fd5b600084815260026020526040902054849060ff166109f457604051630100e70560e51b815260040160405180910390fd5b6003604051806040016040528087815260200186610a11906114a7565b905281546001818101845560009384526020938490208351600590930201918255838301518051918301918255938401516002830155604084015160038301556060840151929391926004840190610a699082611538565b5050505050306001600160a01b031663866f3f9786610a8b8760000135610d00565b610a9860608901896115f7565b6040518563ffffffff1660e01b8152600401610ab79493929190611702565b600060405180830381865afa158015610ad4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610afc919081019061172d565b95600095509350505050565b610b10610ca6565b610b1a6000610d11565b565b604080518082019091526000815260606020820152604051806040016040528060011515815260200130868686604051602001610b5c94939291906117ea565b60408051601f19818403018152919052905295945050505050565b610b7f610ca6565b610b8881610d61565b50565b6001546001600160a01b0316631f3a583085610bad886001600160a01b031690565b8686866040518663ffffffff1660e01b8152600401610bd0959493929190611834565b6020604051808303816000875af1158015610bef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c13919061148a565b505050505050565b600381815481106106f457600080fd5b610c33610ca6565b6001600160a01b038116610c9d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610b8881610d11565b6000546001600160a01b03163314610b1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c94565b6000610d0b82610d9a565b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80610d7f57604051631d6f5e8b60e01b815260040160405180910390fd5b6000908152600260205260409020805460ff19166001179055565b60006001600160a01b03821115610e035760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663630206269747360c81b6064820152608401610c94565b5090565b80356001600160a01b0381168114610e1e57600080fd5b919050565b600060208284031215610e3557600080fd5b610e3e82610e07565b9392505050565b60008083601f840112610e5757600080fd5b5081356001600160401b03811115610e6e57600080fd5b602083019150836020828501011115610e8657600080fd5b9250929050565b6001600160401b0381168114610b8857600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715610eda57610eda610ea2565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610f0857610f08610ea2565b604052919050565b600082601f830112610f2157600080fd5b604051604081018181106001600160401b0382111715610f4357610f43610ea2565b8060405250806040840185811115610f5a57600080fd5b845b81811015610f74578035835260209283019201610f5c565b509195945050505050565b6000806000806000806000610100888a031215610f9b57600080fd5b610fa488610e07565b96506020880135955060408801356001600160401b03811115610fc657600080fd5b610fd28a828b01610e45565b9096509450506060880135610fe681610e8d565b9250610ff58960808a01610f10565b91506110048960c08a01610f10565b905092959891949750929550565b60006020828403121561102457600080fd5b5035919050565b6000806040838503121561103e57600080fd5b8235915060208301356001600160401b0381111561105b57600080fd5b83016080818603121561106d57600080fd5b809150509250929050565b60005b8381101561109357818101518382015260200161107b565b838111156110a2576000848401525b50505050565b600081518084526110c0816020860160208601611078565b601f01601f19169290920160200192915050565b805182526020810151602083015260408101516040830152600060608201516080606085015261110760808501826110a8565b949350505050565b805115158252600060208201516040602085015261110760408501826110a8565b83815260606020820152600061114960608301856110d4565b828103604084015261115b818561110f565b9695505050505050565b82815260406020820152600061110760408301846110d4565b60006001600160401b0382111561119757611197610ea2565b50601f01601f191660200190565b600082601f8301126111b657600080fd5b81356111c96111c48261117e565b610ee0565b8181528460208386010111156111de57600080fd5b816020850160208301376000918101602001919091529392505050565b60006080828403121561120d57600080fd5b604051608081016001600160401b03828210818311171561123057611230610ea2565b81604052829350843583526020850135602084015260408501356040840152606085013591508082111561126357600080fd5b50611270858286016111a5565b6060830152505092915050565b60008060006060848603121561129257600080fd5b8335925060208401356001600160401b03808211156112b057600080fd5b6112bc878388016111fb565b935060408601359150808211156112d257600080fd5b508401604081870312156112e557600080fd5b809150509250925092565b604081526000611303604083018561110f565b905082151560208301529392505050565b6000806000806060858703121561132a57600080fd5b8435935061133a60208601610e07565b925060408501356001600160401b0381111561135557600080fd5b61136187828801610e45565b95989497509550505050565b602081526000610e3e602083018461110f565b60008060008060006080868803121561139857600080fd5b6113a186610e07565b94506020860135935060408601356001600160401b038111156113c357600080fd5b6113cf88828901610e45565b90945092505060608601356113e381610e8d565b809150509295509295909350565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8060005b60028110156110a257815184526020938401939091019060010161141e565b600061010089835288602084015280604084015261145e818401888a6113f1565b9150506001600160401b038516606083015261147d608083018561141a565b61045960c083018461141a565b60006020828403121561149c57600080fd5b8151610e3e81610e8d565b6000610d0b36836111fb565b600181811c908216806114c757607f821691505b6020821081036114e757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561153357600081815260208120601f850160051c810160208610156115145750805b601f850160051c820191505b81811015610c1357828155600101611520565b505050565b81516001600160401b0381111561155157611551610ea2565b6115658161155f84546114b3565b846114ed565b602080601f83116001811461159a57600084156115825750858301515b600019600386901b1c1916600185901b178555610c13565b600085815260208120601f198616915b828110156115c9578886015182559484019460019091019084016115aa565b50858210156115e75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808335601e1984360301811261160e57600080fd5b8301803591506001600160401b0382111561162857600080fd5b602001915036819003821315610e8657600080fd5b6000808585111561164d57600080fd5b8386111561165a57600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff1981358181169160148510156116945780818660140360031b1b83161692505b505092915050565b8015158114610b8857600080fd5b6000604082360312156116bc57600080fd5b6116c4610eb8565b82356116cf8161169c565b815260208301356001600160401b038111156116ea57600080fd5b6116f6368286016111a5565b60208301525092915050565b8481526001600160a01b038416602082015260606040820181905260009061115b90830184866113f1565b6000602080838503121561174057600080fd5b82516001600160401b038082111561175757600080fd5b908401906040828703121561176b57600080fd5b611773610eb8565b825161177e8161169c565b8152828401518281111561179157600080fd5b80840193505086601f8401126117a657600080fd5b825191506117b66111c48361117e565b82815287858486010111156117ca57600080fd5b6117d983868301878701611078565b938101939093525090949350505050565b60006bffffffffffffffffffffffff19808760601b168352808660601b166014840152506361636b2d60e01b60288301528284602c8401375060009101602c019081529392505050565b8581528460208201526080604082015260006118546080830185876113f1565b90506001600160401b0383166060830152969550505050505056fea2646970667358221220767039ec33266ac463719289d2dbeb2e5fee5d86c7542d93e556f6286c0cd30c64736f6c634300080f0033"; + "0x608060405234801561001057600080fd5b5060405161199638038061199683398101604081905261002f916100b2565b808061003a33610062565b600180546001600160a01b0319166001600160a01b0392909216919091179055506100e29050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c457600080fd5b81516001600160a01b03811681146100db57600080fd5b9392505050565b6118a5806100f16000396000f3fe6080604052600436106100f75760003560e01c80635b7615851161008a57806392dfa3921161005957806392dfa392146102f8578063d24ba02414610318578063f12b758a14610338578063f2fde38b1461035857600080fd5b80635b7615851461026a578063715018a614610298578063866f3f97146102ad5780638da5cb5b146102da57600080fd5b8063400d9f5d116100c6578063400d9f5d146101cd5780634252ae9b146101ed5780634eeb73911461021c578063588152ca1461024a57600080fd5b80631b2f37d0146101035780632466911c146101255780632cc422d9146101555780632eed7c701461018d57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004610e23565b610378565b005b610138610133366004610f7f565b6103c9565b6040516001600160401b0390911681526020015b60405180910390f35b34801561016157600080fd5b50600154610175906001600160a01b031681565b6040516001600160a01b03909116815260200161014c565b34801561019957600080fd5b506101bd6101a8366004611012565b60026020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156101d957600080fd5b506101236101e836600461102b565b610465565b3480156101f957600080fd5b5061020d610208366004611012565b610540565b60405161014c93929190611130565b34801561022857600080fd5b5061023c610237366004611012565b6106e4565b60405161014c929190611165565b34801561025657600080fd5b5061012361026536600461127d565b6107d2565b34801561027657600080fd5b5061028a61028536600461102b565b610980565b60405161014c9291906112f0565b3480156102a457600080fd5b50610123610b08565b3480156102b957600080fd5b506102cd6102c8366004611314565b610b1c565b60405161014c919061136d565b3480156102e657600080fd5b506000546001600160a01b0316610175565b34801561030457600080fd5b50610123610313366004611012565b610b77565b34801561032457600080fd5b50610123610333366004611380565b610b8b565b34801561034457600080fd5b5061023c610353366004611012565b610c1b565b34801561036457600080fd5b50610123610373366004610e23565b610c2b565b610380610ca6565b6001600160a01b0381166103a75760405163a944796960e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546000906001600160a01b031663462fdf8334896103ef8c6001600160a01b031690565b8a8a8a8a8a6040518963ffffffff1660e01b8152600401610416979695949392919061143d565b60206040518083038185885af1158015610434573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610459919061148a565b98975050505050505050565b6001546001600160a01b0316331461049057604051631323efc560e01b815260040160405180910390fd5b600082815260026020526040902054829060ff166104c157604051630100e70560e51b815260040160405180910390fd5b60056040518060400160405280858152602001846104de906114a7565b9052815460018181018455600093845260209384902083516005909302019182558383015180519183019182559384015160028301556040840151600383015560608401519293919260048401906105369082611538565b5050505050505050565b6004818154811061055057600080fd5b9060005260206000209060070201600091509050806000015490806001016040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820180546105a7906114b3565b80601f01602080910402602001604051908101604052809291908181526020018280546105d3906114b3565b80156106205780601f106105f557610100808354040283529160200191610620565b820191906000526020600020905b81548152906001019060200180831161060357829003601f168201915b5050509190925250506040805180820190915260058401805460ff1615158252600685018054949594929350909160208401919061065d906114b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610689906114b3565b80156106d65780601f106106ab576101008083540402835291602001916106d6565b820191906000526020600020905b8154815290600101906020018083116106b957829003601f168201915b505050505081525050905083565b600581815481106106f457600080fd5b90600052602060002090600502016000915090508060000154908060010160405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201805461074b906114b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610777906114b3565b80156107c45780601f10610799576101008083540402835291602001916107c4565b820191906000526020600020905b8154815290600101906020018083116107a757829003601f168201915b505050505081525050905082565b6001546001600160a01b031633146107fd57604051631323efc560e01b815260040160405180910390fd5b600083815260026020526040902054839060ff1661082e57604051630100e70560e51b815260040160405180910390fd5b601461083d60208401846115f7565b9050101561085e5760405163503b43db60e01b815260040160405180910390fd5b600061086d60208401846115f7565b61087c9160149160009161163d565b61088591611667565b60601c9050806001600160a01b03166108a18560400151610d00565b6001600160a01b0316146108c857604051631863a42d60e31b815260040160405180910390fd5b60046040518060600160405280878152602001868152602001856108eb906116aa565b9052815460018181018455600093845260209384902083516007909302019182558383015180519183019182559384015160028301556040840151600383015560608401519293919260048401906109439082611538565b5050506040820151805160058301805460ff1916911515919091178155602082015160068401906109749082611538565b50505050505050505050565b6040805180820190915260008152606060208201526001546000906001600160a01b031633146109c357604051631323efc560e01b815260040160405180910390fd5b600084815260026020526040902054849060ff166109f457604051630100e70560e51b815260040160405180910390fd5b6003604051806040016040528087815260200186610a11906114a7565b905281546001818101845560009384526020938490208351600590930201918255838301518051918301918255938401516002830155604084015160038301556060840151929391926004840190610a699082611538565b5050505050306001600160a01b031663866f3f9786610a8b8760000135610d00565b610a9860608901896115f7565b6040518563ffffffff1660e01b8152600401610ab79493929190611702565b600060405180830381865afa158015610ad4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610afc919081019061172d565b95600095509350505050565b610b10610ca6565b610b1a6000610d11565b565b604080518082019091526000815260606020820152604051806040016040528060011515815260200130868686604051602001610b5c94939291906117ea565b60408051601f19818403018152919052905295945050505050565b610b7f610ca6565b610b8881610d61565b50565b6001546001600160a01b0316631f3a583085610bad886001600160a01b031690565b8686866040518663ffffffff1660e01b8152600401610bd0959493929190611834565b6020604051808303816000875af1158015610bef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c13919061148a565b505050505050565b600381815481106106f457600080fd5b610c33610ca6565b6001600160a01b038116610c9d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610b8881610d11565b6000546001600160a01b03163314610b1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c94565b6000610d0b82610d9a565b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80610d7f57604051631d6f5e8b60e01b815260040160405180910390fd5b6000908152600260205260409020805460ff19166001179055565b60006001600160a01b03821115610e035760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663630206269747360c81b6064820152608401610c94565b5090565b80356001600160a01b0381168114610e1e57600080fd5b919050565b600060208284031215610e3557600080fd5b610e3e82610e07565b9392505050565b60008083601f840112610e5757600080fd5b5081356001600160401b03811115610e6e57600080fd5b602083019150836020828501011115610e8657600080fd5b9250929050565b6001600160401b0381168114610b8857600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715610eda57610eda610ea2565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610f0857610f08610ea2565b604052919050565b600082601f830112610f2157600080fd5b604051604081018181106001600160401b0382111715610f4357610f43610ea2565b8060405250806040840185811115610f5a57600080fd5b845b81811015610f74578035835260209283019201610f5c565b509195945050505050565b6000806000806000806000610100888a031215610f9b57600080fd5b610fa488610e07565b96506020880135955060408801356001600160401b03811115610fc657600080fd5b610fd28a828b01610e45565b9096509450506060880135610fe681610e8d565b9250610ff58960808a01610f10565b91506110048960c08a01610f10565b905092959891949750929550565b60006020828403121561102457600080fd5b5035919050565b6000806040838503121561103e57600080fd5b8235915060208301356001600160401b0381111561105b57600080fd5b83016080818603121561106d57600080fd5b809150509250929050565b60005b8381101561109357818101518382015260200161107b565b838111156110a2576000848401525b50505050565b600081518084526110c0816020860160208601611078565b601f01601f19169290920160200192915050565b805182526020810151602083015260408101516040830152600060608201516080606085015261110760808501826110a8565b949350505050565b805115158252600060208201516040602085015261110760408501826110a8565b83815260606020820152600061114960608301856110d4565b828103604084015261115b818561110f565b9695505050505050565b82815260406020820152600061110760408301846110d4565b60006001600160401b0382111561119757611197610ea2565b50601f01601f191660200190565b600082601f8301126111b657600080fd5b81356111c96111c48261117e565b610ee0565b8181528460208386010111156111de57600080fd5b816020850160208301376000918101602001919091529392505050565b60006080828403121561120d57600080fd5b604051608081016001600160401b03828210818311171561123057611230610ea2565b81604052829350843583526020850135602084015260408501356040840152606085013591508082111561126357600080fd5b50611270858286016111a5565b6060830152505092915050565b60008060006060848603121561129257600080fd5b8335925060208401356001600160401b03808211156112b057600080fd5b6112bc878388016111fb565b935060408601359150808211156112d257600080fd5b508401604081870312156112e557600080fd5b809150509250925092565b604081526000611303604083018561110f565b905082151560208301529392505050565b6000806000806060858703121561132a57600080fd5b8435935061133a60208601610e07565b925060408501356001600160401b0381111561135557600080fd5b61136187828801610e45565b95989497509550505050565b602081526000610e3e602083018461110f565b60008060008060006080868803121561139857600080fd5b6113a186610e07565b94506020860135935060408601356001600160401b038111156113c357600080fd5b6113cf88828901610e45565b90945092505060608601356113e381610e8d565b809150509295509295909350565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8060005b60028110156110a257815184526020938401939091019060010161141e565b600061010089835288602084015280604084015261145e818401888a6113f1565b9150506001600160401b038516606083015261147d608083018561141a565b61045960c083018461141a565b60006020828403121561149c57600080fd5b8151610e3e81610e8d565b6000610d0b36836111fb565b600181811c908216806114c757607f821691505b6020821081036114e757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561153357600081815260208120601f850160051c810160208610156115145750805b601f850160051c820191505b81811015610c1357828155600101611520565b505050565b81516001600160401b0381111561155157611551610ea2565b6115658161155f84546114b3565b846114ed565b602080601f83116001811461159a57600084156115825750858301515b600019600386901b1c1916600185901b178555610c13565b600085815260208120601f198616915b828110156115c9578886015182559484019460019091019084016115aa565b50858210156115e75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808335601e1984360301811261160e57600080fd5b8301803591506001600160401b0382111561162857600080fd5b602001915036819003821315610e8657600080fd5b6000808585111561164d57600080fd5b8386111561165a57600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff1981358181169160148510156116945780818660140360031b1b83161692505b505092915050565b8015158114610b8857600080fd5b6000604082360312156116bc57600080fd5b6116c4610eb8565b82356116cf8161169c565b815260208301356001600160401b038111156116ea57600080fd5b6116f6368286016111a5565b60208301525092915050565b8481526001600160a01b038416602082015260606040820181905260009061115b90830184866113f1565b6000602080838503121561174057600080fd5b82516001600160401b038082111561175757600080fd5b908401906040828703121561176b57600080fd5b611773610eb8565b825161177e8161169c565b8152828401518281111561179157600080fd5b80840193505086601f8401126117a657600080fd5b825191506117b66111c48361117e565b82815287858486010111156117ca57600080fd5b6117d983868301878701611078565b938101939093525090949350505050565b60006bffffffffffffffffffffffff19808760601b168352808660601b166014840152506361636b2d60e01b60288301528284602c8401375060009101602c019081529392505050565b8581528460208201526080604082015260006118546080830185876113f1565b90506001600160401b0383166060830152969550505050505056fea26469706673582212200123f9bb245b17d9f4d55ce8d036c749ef134c15a5a84a0793cd6b26ed8df2b064736f6c634300080f0033"; type EarthConstructorParams = | [signer?: Signer] diff --git a/src/evm/contracts/factories/IUniversalChannelHandler__factory.ts b/src/evm/contracts/factories/IUniversalChannelHandler__factory.ts index f48b9d25..c9cc373e 100644 --- a/src/evm/contracts/factories/IUniversalChannelHandler__factory.ts +++ b/src/evm/contracts/factories/IUniversalChannelHandler__factory.ts @@ -453,39 +453,6 @@ const _abi = [ 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", @@ -595,6 +562,39 @@ const _abi = [ 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: "counterpartyPortIdentifier", + type: "string", + internalType: "string", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, { type: "error", name: "MwBitmpaCannotBeZero", diff --git a/src/evm/contracts/factories/UniversalChannelHandler__factory.ts b/src/evm/contracts/factories/UniversalChannelHandler__factory.ts index 361c7740..e0aa63f4 100644 --- a/src/evm/contracts/factories/UniversalChannelHandler__factory.ts +++ b/src/evm/contracts/factories/UniversalChannelHandler__factory.ts @@ -505,39 +505,6 @@ const _abi = [ 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", @@ -688,6 +655,39 @@ const _abi = [ 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: "counterpartyPortIdentifier", + type: "string", + internalType: "string", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, { type: "function", name: "upgradeTo", @@ -862,7 +862,7 @@ const _abi = [ ] as const; const _bytecode = - "0x60a0604052306080523480156200001557600080fd5b506200002062000030565b6200002a62000030565b620000f1565b600054610100900460ff16156200009d5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000ef576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b60805161268e62000129600039600081816106000152818161064901528181610a9301528181610ad30152610b66015261268e6000f3fe60806040526004361061016a5760003560e01c806379ba5097116100d1578063c4d66de81161008a578063e847e28011610064578063e847e28014610408578063f2fde38b14610428578063fad28a2414610448578063ffa1ad741461046857600080fd5b8063c4d66de8146103aa578063cb7e9057146103ca578063e30c3978146103ea57600080fd5b806379ba5097146102ee5780637e1d42b5146103035780638da5cb5b14610323578063ace02de714610355578063ba22bd7614610375578063c1cb44e51461039557600080fd5b80634c2ee09d116101235780634c2ee09d146102355780634dcc0aa6146102555780634f1ef2861461028357806352d1902d14610296578063602f9834146102b9578063715018a6146102d957600080fd5b80631eb7dd5e146101765780631f3a5830146101985780633659cfe6146101d55780633f9fdbe414610176578063462fdf83146101f55780634bdb55971461020857600080fd5b3661017157005b600080fd5b34801561018257600080fd5b5061019661019136600461194a565b610497565b005b3480156101a457600080fd5b506101b86101b33660046119b1565b6104c8565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101e157600080fd5b506101966101f0366004611a30565b6105f6565b6101b8610203366004611a5e565b6106de565b34801561021457600080fd5b50610228610223366004611bc9565b610870565b6040516101cc9190611d5a565b34801561024157600080fd5b50610196610250366004611d6d565b6108b5565b34801561026157600080fd5b50610275610270366004611d9e565b61091e565b6040516101cc929190611dd2565b610196610291366004611e0c565b610a89565b3480156102a257600080fd5b506102ab610b59565b6040519081526020016101cc565b3480156102c557600080fd5b506101966102d4366004611d9e565b610c0c565b3480156102e557600080fd5b50610196610d41565b3480156102fa57600080fd5b50610196610d55565b34801561030f57600080fd5b5061019661031e366004611e6f565b610dcc565b34801561032f57600080fd5b506033546001600160a01b03165b6040516001600160a01b0390911681526020016101cc565b34801561036157600080fd5b50610196610370366004611ee7565b610f04565b34801561038157600080fd5b50610196610390366004611a30565b610f86565b3480156103a157600080fd5b506102ab600181565b3480156103b657600080fd5b506101966103c5366004611a30565b610fb0565b3480156103d657600080fd5b5060975461033d906001600160a01b031681565b3480156103f657600080fd5b506065546001600160a01b031661033d565b34801561041457600080fd5b50610196610423366004611fd9565b6110c2565b34801561043457600080fd5b50610196610443366004611a30565b6110f8565b34801561045457600080fd5b50610196610463366004611d6d565b611169565b34801561047457600080fd5b50610228604051806040016040528060038152602001620312e360ec1b81525081565b6097546001600160a01b031633146104c2576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b60008061053860405180608001604052806104e9336001600160a01b031690565b81526020016001815260200188815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050915250611194565b60408051338152602081018990529192507f9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873910160405180910390a16097546040516330f8455760e21b81526001600160a01b039091169063c3e1155c906105a8908a908590889060040161202b565b6020604051808303816000875af11580156105c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105eb919061205d565b979650505050505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106475760405162461bcd60e51b815260040161063e9061207a565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610690600080516020612612833981519152546001600160a01b031690565b6001600160a01b0316146106b65760405162461bcd60e51b815260040161063e906120c6565b6106bf816111d0565b604080516000808252602082019092526106db918391906111d8565b50565b60975460408051608081019091526000916001600160a01b03169082906107509080338152602001600181526020018b81526020018a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050915250611194565b60408051338152602081018c90529192507f9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873910160405180910390a16040516330f8455760e21b81526001600160a01b0383169063c3e1155c906107bc908d9085908b9060040161202b565b6020604051808303816000875af11580156107db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ff919061205d565b609754604080518082018252929550610863926001600160a01b03909216918d918791908a9060029083908390808284376000920191909152505060408051808201825291508a906002908390839080828437600092019190915250611348915050565b5050979650505050505050565b6097546060906001600160a01b0316331461089e576040516321bf7f4960e01b815260040160405180910390fd5b6108a9868484611417565b98975050505050505050565b6108bd6114e1565b6097546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b15801561090357600080fd5b505af1158015610917573d6000803e3d6000fd5b5050505050565b6040805180820190915260008152606060208201526097546000906001600160a01b03163314610961576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d61098a6060870187612112565b6040518363ffffffff1660e01b81526004016109a7929190612181565b600060405180830381865af41580156109c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109ec91908101906121da565b90506109fb816040015161153b565b6001600160a01b0316635b761585610a16602087018761227c565b60200135836040518363ffffffff1660e01b8152600401610a389291906122cf565b6000604051808303816000875af1158015610a57573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a7f91908101906122e8565b9250925050915091565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ad15760405162461bcd60e51b815260040161063e9061207a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b1a600080516020612612833981519152546001600160a01b031690565b6001600160a01b031614610b405760405162461bcd60e51b815260040161063e906120c6565b610b49826111d0565b610b55828260016111d8565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bf95760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161063e565b5060008051602061261283398151915290565b6097546001600160a01b03163314610c37576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d610c606060850185612112565b6040518363ffffffff1660e01b8152600401610c7d929190612181565b600060405180830381865af4158015610c9a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cc291908101906121da565b9050610cd1816000015161153b565b6001600160a01b031663400d9f5d610ce9848061227c565b60200135836040518363ffffffff1660e01b8152600401610d0b9291906122cf565b600060405180830381600087803b158015610d2557600080fd5b505af1158015610d39573d6000803e3d6000fd5b505050505050565b610d496114e1565b610d53600061154c565b565b60655433906001600160a01b03168114610dc35760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b606482015260840161063e565b6106db8161154c565b6097546001600160a01b03163314610df7576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d610e206060860186612112565b6040518363ffffffff1660e01b8152600401610e3d929190612181565b600060405180830381865af4158015610e5a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e8291908101906121da565b9050610e91816000015161153b565b6001600160a01b031663588152ca610ea9858061227c565b6020013583856040518463ffffffff1660e01b8152600401610ecd939291906123ce565b600060405180830381600087803b158015610ee757600080fd5b505af1158015610efb573d6000803e3d6000fd5b50505050505050565b610f0c6114e1565b60975460405163418925b760e01b81526001600160a01b039091169063418925b790610f4a908b908b908b908b908b908b908b908b90600401612420565b600060405180830381600087803b158015610f6457600080fd5b505af1158015610f78573d6000803e3d6000fd5b505050505050505050505050565b610f8e6114e1565b609780546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1615808015610fd05750600054600160ff909116105b80610fea5750303b158015610fea575060005460ff166001145b61104d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161063e565b6000805460ff191660011790558015611070576000805461ff0019166101001790555b61107982611565565b8015610b55576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6097546001600160a01b031633146110ed576040516321bf7f4960e01b815260040160405180910390fd5b610917848383611417565b6111006114e1565b606580546001600160a01b0383166001600160a01b031990911681179091556111316033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6097546001600160a01b031633146106db576040516321bf7f4960e01b815260040160405180910390fd5b8051602080830151604080850151606086810151925190956111ba9590949391016124de565b6040516020818303038152906040529050919050565b6106db6114e1565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156112105761120b83611594565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561126a575060408051601f3d908101601f1916820190925261126791810190612512565b60015b6112cd5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161063e565b600080516020612612833981519152811461133c5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161063e565b5061120b838383611630565b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac919061252b565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b81526004016113de949392919061256b565b6000604051808303818588803b1580156113f757600080fd5b505af115801561140b573d6000803e3d6000fd5b50505050505050505050565b6060604051806040016040528060038152602001620312e360ec1b81525060405160200161144591906125a4565b60405160208183030381529060405280519060200120838360405160200161146e9291906125b6565b60405160208183030381529060405280519060200120146114a25760405163b01318a560e01b815260040160405180910390fd5b82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092979650505050505050565b6033546001600160a01b03163314610d535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161063e565b600061154682611655565b92915050565b606580546001600160a01b03191690556106db816116c2565b600054610100900460ff1661158c5760405162461bcd60e51b815260040161063e906125c6565b610f8e611714565b6001600160a01b0381163b6116015760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161063e565b60008051602061261283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61163983611743565b6000825111806116465750805b1561120b576104c28383611783565b60006001600160a01b038211156116be5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663630206269747360c81b606482015260840161063e565b5090565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1661173b5760405162461bcd60e51b815260040161063e906125c6565b610d536117af565b61174c81611594565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606117a88383604051806060016040528060278152602001612632602791396117df565b9392505050565b600054610100900460ff166117d65760405162461bcd60e51b815260040161063e906125c6565b610d533361154c565b6060600080856001600160a01b0316856040516117fc91906125a4565b600060405180830381855af49150503d8060008114611837576040519150601f19603f3d011682016040523d82523d6000602084013e61183c565b606091505b509150915061184d86838387611857565b9695505050505050565b606083156118c65782516000036118bf576001600160a01b0385163b6118bf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161063e565b50816118d0565b6118d083836118d8565b949350505050565b8151156118e85781518083602001fd5b8060405162461bcd60e51b815260040161063e9190611d5a565b60008083601f84011261191457600080fd5b5081356001600160401b0381111561192b57600080fd5b60208301915083602082850101111561194357600080fd5b9250929050565b6000806000806060858703121561196057600080fd5b8435935060208501356001600160401b0381111561197d57600080fd5b61198987828801611902565b9598909750949560400135949350505050565b6001600160401b03811681146106db57600080fd5b6000806000806000608086880312156119c957600080fd5b853594506020860135935060408601356001600160401b038111156119ed57600080fd5b6119f988828901611902565b9094509250506060860135611a0d8161199c565b809150509295509295909350565b6001600160a01b03811681146106db57600080fd5b600060208284031215611a4257600080fd5b81356117a881611a1b565b806040810183101561154657600080fd5b6000806000806000806000610100888a031215611a7a57600080fd5b873596506020880135955060408801356001600160401b03811115611a9e57600080fd5b611aaa8a828b01611902565b9096509450506060880135611abe8161199c565b9250611acd8960808a01611a4d565b9150611adc8960c08a01611a4d565b905092959891949750929550565b803560038110611af957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611b3c57611b3c611afe565b604052919050565b60006001600160401b03821115611b5d57611b5d611afe565b50601f01601f191660200190565b6000611b7e611b7984611b44565b611b14565b9050828152838383011115611b9257600080fd5b828260208301376000602084830101529392505050565b600082601f830112611bba57600080fd5b6117a883833560208501611b6b565b600080600080600080600060c0888a031215611be457600080fd5b611bed88611aea565b965060208801356001600160401b0380821115611c0957600080fd5b818a0191508a601f830112611c1d57600080fd5b813581811115611c2f57611c2f611afe565b8060051b611c3f60208201611b14565b9182526020818501810192908101908e841115611c5b57600080fd5b6020860192505b83831015611c99578483351115611c7857600080fd5b611c888f60208535890101611ba9565b825260209283019290910190611c62565b9a5050505060408a0135965060608a0135915080821115611cb957600080fd5b611cc58b838c01611ba9565b955060808a0135945060a08a0135915080821115611ce257600080fd5b50611cef8a828b01611902565b989b979a50959850939692959293505050565b60005b83811015611d1d578181015183820152602001611d05565b838111156104c25750506000910152565b60008151808452611d46816020860160208601611d02565b601f01601f19169290920160200192915050565b6020815260006117a86020830184611d2e565b600060208284031215611d7f57600080fd5b5035919050565b600060e08284031215611d9857600080fd5b50919050565b600060208284031215611db057600080fd5b81356001600160401b03811115611dc657600080fd5b6118d084828501611d86565b604081528251151560408201526000602084015160406060840152611dfa6080840182611d2e565b91505082151560208301529392505050565b60008060408385031215611e1f57600080fd5b8235611e2a81611a1b565b915060208301356001600160401b03811115611e4557600080fd5b8301601f81018513611e5657600080fd5b611e6585823560208401611b6b565b9150509250929050565b60008060408385031215611e8257600080fd5b82356001600160401b0380821115611e9957600080fd5b611ea586838701611d86565b93506020850135915080821115611ebb57600080fd5b50830160408186031215611ece57600080fd5b809150509250929050565b80151581146106db57600080fd5b60008060008060008060008060a0898b031215611f0357600080fd5b88356001600160401b0380821115611f1a57600080fd5b611f268c838d01611902565b909a509850889150611f3a60208c01611aea565b975060408b01359150611f4c82611ed9565b90955060608a01359080821115611f6257600080fd5b818b0191508b601f830112611f7657600080fd5b813581811115611f8557600080fd5b8c60208260051b8501011115611f9a57600080fd5b6020830196508095505060808b0135915080821115611fb857600080fd5b50611fc58b828c01611902565b999c989b5096995094979396929594505050565b60008060008060608587031215611fef57600080fd5b843593506020850135925060408501356001600160401b0381111561201357600080fd5b61201f87828801611902565b95989497509550505050565b8381526060602082015260006120446060830185611d2e565b90506001600160401b0383166040830152949350505050565b60006020828403121561206f57600080fd5b81516117a88161199c565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6000808335601e1984360301811261212957600080fd5b8301803591506001600160401b0382111561214357600080fd5b60200191503681900382131561194357600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006118d0602083018486612158565b600082601f8301126121a657600080fd5b81516121b4611b7982611b44565b8181528460208386010111156121c957600080fd5b6118d0826020830160208701611d02565b6000602082840312156121ec57600080fd5b81516001600160401b038082111561220357600080fd5b908301906080828603121561221757600080fd5b60405160808101818110838211171561223257612232611afe565b806040525082518152602083015160208201526040830151604082015260608301518281111561226157600080fd5b61226d87828601612195565b60608301525095945050505050565b60008235603e1983360301811261229257600080fd5b9190910192915050565b80518252602081015160208301526040810151604083015260006060820151608060608501526118d06080850182611d2e565b8281526040602082015260006118d0604083018461229c565b600080604083850312156122fb57600080fd5b82516001600160401b038082111561231257600080fd5b908401906040828703121561232657600080fd5b60405160408101818110838211171561234157612341611afe565b604052825161234f81611ed9565b815260208301518281111561236357600080fd5b61236f88828601612195565b6020830152508094505050506020830151611ece81611ed9565b6000808335601e198436030181126123a057600080fd5b83016020810192503590506001600160401b038111156123bf57600080fd5b80360382131561194357600080fd5b8381526060602082015260006123e7606083018561229c565b828103604084015283356123fa81611ed9565b1515815261240b6020850185612389565b604060208401526108a9604084018284612158565b60a08152600061243460a083018a8c612158565b602060038a1061245457634e487b7160e01b600052602160045260246000fd5b8381018a905288151560408501528382036060850152868252818101600588901b830182018960005b8a8110156124b757858303601f19018452612498828d612389565b6124a3858284612158565b95870195945050509084019060010161247d565b505085810360808701526124cc81888a612158565b9e9d5050505050505050505050505050565b84815283602082015282604082015260008251612502816060850160208701611d02565b9190910160600195945050505050565b60006020828403121561252457600080fd5b5051919050565b60006020828403121561253d57600080fd5b81516117a881611a1b565b8060005b60028110156104c257815184526020938401939091019060010161254c565b8481526001600160401b038416602082015260c0810161258e6040830185612548565b61259b6080830184612548565b95945050505050565b60008251612292818460208701611d02565b8183823760009101908152919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122073f8b90c242e6914fc1897bed4ad6a878fc6995243c6209b5438ffc072e3f9b364736f6c634300080f0033"; + "0x60a0604052306080523480156200001557600080fd5b506200002062000030565b6200002a62000030565b620000f1565b600054610100900460ff16156200009d5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000ef576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b60805161268e62000129600039600081816106000152818161064901528181610a9301528181610ad30152610b66015261268e6000f3fe60806040526004361061016a5760003560e01c806379ba5097116100d1578063c4d66de81161008a578063e847e28011610064578063e847e28014610408578063f2fde38b14610428578063fad28a2414610448578063ffa1ad741461046857600080fd5b8063c4d66de8146103aa578063cb7e9057146103ca578063e30c3978146103ea57600080fd5b806379ba5097146102ee5780637a805598146103035780637e1d42b5146103235780638da5cb5b14610343578063ba22bd7614610375578063c1cb44e51461039557600080fd5b80634c2ee09d116101235780634c2ee09d146102355780634dcc0aa6146102555780634f1ef2861461028357806352d1902d14610296578063602f9834146102b9578063715018a6146102d957600080fd5b80631eb7dd5e146101765780631f3a5830146101985780633659cfe6146101d55780633f9fdbe414610176578063462fdf83146101f55780634bdb55971461020857600080fd5b3661017157005b600080fd5b34801561018257600080fd5b5061019661019136600461194a565b610497565b005b3480156101a457600080fd5b506101b86101b33660046119b1565b6104c8565b6040516001600160401b0390911681526020015b60405180910390f35b3480156101e157600080fd5b506101966101f0366004611a30565b6105f6565b6101b8610203366004611a5e565b6106de565b34801561021457600080fd5b50610228610223366004611bc9565b610870565b6040516101cc9190611d5a565b34801561024157600080fd5b50610196610250366004611d6d565b6108b5565b34801561026157600080fd5b50610275610270366004611d9e565b61091e565b6040516101cc929190611dd2565b610196610291366004611e0c565b610a89565b3480156102a257600080fd5b506102ab610b59565b6040519081526020016101cc565b3480156102c557600080fd5b506101966102d4366004611d9e565b610c0c565b3480156102e557600080fd5b50610196610d41565b3480156102fa57600080fd5b50610196610d55565b34801561030f57600080fd5b5061019661031e366004611e7d565b610dcc565b34801561032f57600080fd5b5061019661033e366004611f6f565b610e4e565b34801561034f57600080fd5b506033546001600160a01b03165b6040516001600160a01b0390911681526020016101cc565b34801561038157600080fd5b50610196610390366004611a30565b610f86565b3480156103a157600080fd5b506102ab600181565b3480156103b657600080fd5b506101966103c5366004611a30565b610fb0565b3480156103d657600080fd5b5060975461035d906001600160a01b031681565b3480156103f657600080fd5b506065546001600160a01b031661035d565b34801561041457600080fd5b50610196610423366004611fd9565b6110c2565b34801561043457600080fd5b50610196610443366004611a30565b6110f8565b34801561045457600080fd5b50610196610463366004611d6d565b611169565b34801561047457600080fd5b50610228604051806040016040528060038152602001620312e360ec1b81525081565b6097546001600160a01b031633146104c2576040516321bf7f4960e01b815260040160405180910390fd5b50505050565b60008061053860405180608001604052806104e9336001600160a01b031690565b81526020016001815260200188815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050915250611194565b60408051338152602081018990529192507f9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873910160405180910390a16097546040516330f8455760e21b81526001600160a01b039091169063c3e1155c906105a8908a908590889060040161202b565b6020604051808303816000875af11580156105c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105eb919061205d565b979650505050505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106475760405162461bcd60e51b815260040161063e9061207a565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610690600080516020612612833981519152546001600160a01b031690565b6001600160a01b0316146106b65760405162461bcd60e51b815260040161063e906120c6565b6106bf816111d0565b604080516000808252602082019092526106db918391906111d8565b50565b60975460408051608081019091526000916001600160a01b03169082906107509080338152602001600181526020018b81526020018a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050915250611194565b60408051338152602081018c90529192507f9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873910160405180910390a16040516330f8455760e21b81526001600160a01b0383169063c3e1155c906107bc908d9085908b9060040161202b565b6020604051808303816000875af11580156107db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ff919061205d565b609754604080518082018252929550610863926001600160a01b03909216918d918791908a9060029083908390808284376000920191909152505060408051808201825291508a906002908390839080828437600092019190915250611348915050565b5050979650505050505050565b6097546060906001600160a01b0316331461089e576040516321bf7f4960e01b815260040160405180910390fd5b6108a9868484611417565b98975050505050505050565b6108bd6114e1565b6097546040516381bc079b60e01b8152600481018390526001600160a01b03909116906381bc079b90602401600060405180830381600087803b15801561090357600080fd5b505af1158015610917573d6000803e3d6000fd5b5050505050565b6040805180820190915260008152606060208201526097546000906001600160a01b03163314610961576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d61098a6060870187612112565b6040518363ffffffff1660e01b81526004016109a7929190612181565b600060405180830381865af41580156109c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109ec91908101906121da565b90506109fb816040015161153b565b6001600160a01b0316635b761585610a16602087018761227c565b60200135836040518363ffffffff1660e01b8152600401610a389291906122cf565b6000604051808303816000875af1158015610a57573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a7f91908101906122e8565b9250925050915091565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ad15760405162461bcd60e51b815260040161063e9061207a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b1a600080516020612612833981519152546001600160a01b031690565b6001600160a01b031614610b405760405162461bcd60e51b815260040161063e906120c6565b610b49826111d0565b610b55828260016111d8565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bf95760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161063e565b5060008051602061261283398151915290565b6097546001600160a01b03163314610c37576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d610c606060850185612112565b6040518363ffffffff1660e01b8152600401610c7d929190612181565b600060405180830381865af4158015610c9a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cc291908101906121da565b9050610cd1816000015161153b565b6001600160a01b031663400d9f5d610ce9848061227c565b60200135836040518363ffffffff1660e01b8152600401610d0b9291906122cf565b600060405180830381600087803b158015610d2557600080fd5b505af1158015610d39573d6000803e3d6000fd5b505050505050565b610d496114e1565b610d53600061154c565b565b60655433906001600160a01b03168114610dc35760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b606482015260840161063e565b6106db8161154c565b610dd46114e1565b60975460405163418925b760e01b81526001600160a01b039091169063418925b790610e12908b908b908b908b908b908b908b908b906004016123ce565b600060405180830381600087803b158015610e2c57600080fd5b505af1158015610e40573d6000803e3d6000fd5b505050505050505050505050565b6097546001600160a01b03163314610e79576040516321bf7f4960e01b815260040160405180910390fd5b600073__$f61eb90c6f674e787d51c07f105fa231e2$__63d5c39a9d610ea26060860186612112565b6040518363ffffffff1660e01b8152600401610ebf929190612181565b600060405180830381865af4158015610edc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f0491908101906121da565b9050610f13816000015161153b565b6001600160a01b031663588152ca610f2b858061227c565b6020013583856040518463ffffffff1660e01b8152600401610f4f9392919061248c565b600060405180830381600087803b158015610f6957600080fd5b505af1158015610f7d573d6000803e3d6000fd5b50505050505050565b610f8e6114e1565b609780546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1615808015610fd05750600054600160ff909116105b80610fea5750303b158015610fea575060005460ff166001145b61104d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161063e565b6000805460ff191660011790558015611070576000805461ff0019166101001790555b61107982611565565b8015610b55576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6097546001600160a01b031633146110ed576040516321bf7f4960e01b815260040160405180910390fd5b610917848383611417565b6111006114e1565b606580546001600160a01b0383166001600160a01b031990911681179091556111316033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6097546001600160a01b031633146106db576040516321bf7f4960e01b815260040160405180910390fd5b8051602080830151604080850151606086810151925190956111ba9590949391016124de565b6040516020818303038152906040529050919050565b6106db6114e1565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156112105761120b83611594565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561126a575060408051601f3d908101601f1916820190925261126791810190612512565b60015b6112cd5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161063e565b600080516020612612833981519152811461133c5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161063e565b5061120b838383611630565b846001600160a01b031663478222c26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac919061252b565b6001600160a01b03166318e3404b34868686866040518663ffffffff1660e01b81526004016113de949392919061256b565b6000604051808303818588803b1580156113f757600080fd5b505af115801561140b573d6000803e3d6000fd5b50505050505050505050565b6060604051806040016040528060038152602001620312e360ec1b81525060405160200161144591906125a4565b60405160208183030381529060405280519060200120838360405160200161146e9291906125b6565b60405160208183030381529060405280519060200120146114a25760405163b01318a560e01b815260040160405180910390fd5b82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092979650505050505050565b6033546001600160a01b03163314610d535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161063e565b600061154682611655565b92915050565b606580546001600160a01b03191690556106db816116c2565b600054610100900460ff1661158c5760405162461bcd60e51b815260040161063e906125c6565b610f8e611714565b6001600160a01b0381163b6116015760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161063e565b60008051602061261283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61163983611743565b6000825111806116465750805b1561120b576104c28383611783565b60006001600160a01b038211156116be5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663630206269747360c81b606482015260840161063e565b5090565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1661173b5760405162461bcd60e51b815260040161063e906125c6565b610d536117af565b61174c81611594565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606117a88383604051806060016040528060278152602001612632602791396117df565b9392505050565b600054610100900460ff166117d65760405162461bcd60e51b815260040161063e906125c6565b610d533361154c565b6060600080856001600160a01b0316856040516117fc91906125a4565b600060405180830381855af49150503d8060008114611837576040519150601f19603f3d011682016040523d82523d6000602084013e61183c565b606091505b509150915061184d86838387611857565b9695505050505050565b606083156118c65782516000036118bf576001600160a01b0385163b6118bf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161063e565b50816118d0565b6118d083836118d8565b949350505050565b8151156118e85781518083602001fd5b8060405162461bcd60e51b815260040161063e9190611d5a565b60008083601f84011261191457600080fd5b5081356001600160401b0381111561192b57600080fd5b60208301915083602082850101111561194357600080fd5b9250929050565b6000806000806060858703121561196057600080fd5b8435935060208501356001600160401b0381111561197d57600080fd5b61198987828801611902565b9598909750949560400135949350505050565b6001600160401b03811681146106db57600080fd5b6000806000806000608086880312156119c957600080fd5b853594506020860135935060408601356001600160401b038111156119ed57600080fd5b6119f988828901611902565b9094509250506060860135611a0d8161199c565b809150509295509295909350565b6001600160a01b03811681146106db57600080fd5b600060208284031215611a4257600080fd5b81356117a881611a1b565b806040810183101561154657600080fd5b6000806000806000806000610100888a031215611a7a57600080fd5b873596506020880135955060408801356001600160401b03811115611a9e57600080fd5b611aaa8a828b01611902565b9096509450506060880135611abe8161199c565b9250611acd8960808a01611a4d565b9150611adc8960c08a01611a4d565b905092959891949750929550565b803560038110611af957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611b3c57611b3c611afe565b604052919050565b60006001600160401b03821115611b5d57611b5d611afe565b50601f01601f191660200190565b6000611b7e611b7984611b44565b611b14565b9050828152838383011115611b9257600080fd5b828260208301376000602084830101529392505050565b600082601f830112611bba57600080fd5b6117a883833560208501611b6b565b600080600080600080600060c0888a031215611be457600080fd5b611bed88611aea565b965060208801356001600160401b0380821115611c0957600080fd5b818a0191508a601f830112611c1d57600080fd5b813581811115611c2f57611c2f611afe565b8060051b611c3f60208201611b14565b9182526020818501810192908101908e841115611c5b57600080fd5b6020860192505b83831015611c99578483351115611c7857600080fd5b611c888f60208535890101611ba9565b825260209283019290910190611c62565b9a5050505060408a0135965060608a0135915080821115611cb957600080fd5b611cc58b838c01611ba9565b955060808a0135945060a08a0135915080821115611ce257600080fd5b50611cef8a828b01611902565b989b979a50959850939692959293505050565b60005b83811015611d1d578181015183820152602001611d05565b838111156104c25750506000910152565b60008151808452611d46816020860160208601611d02565b601f01601f19169290920160200192915050565b6020815260006117a86020830184611d2e565b600060208284031215611d7f57600080fd5b5035919050565b600060e08284031215611d9857600080fd5b50919050565b600060208284031215611db057600080fd5b81356001600160401b03811115611dc657600080fd5b6118d084828501611d86565b604081528251151560408201526000602084015160406060840152611dfa6080840182611d2e565b91505082151560208301529392505050565b60008060408385031215611e1f57600080fd5b8235611e2a81611a1b565b915060208301356001600160401b03811115611e4557600080fd5b8301601f81018513611e5657600080fd5b611e6585823560208401611b6b565b9150509250929050565b80151581146106db57600080fd5b60008060008060008060008060a0898b031215611e9957600080fd5b88356001600160401b0380821115611eb057600080fd5b611ebc8c838d01611902565b909a509850889150611ed060208c01611aea565b975060408b01359150611ee282611e6f565b90955060608a01359080821115611ef857600080fd5b818b0191508b601f830112611f0c57600080fd5b813581811115611f1b57600080fd5b8c60208260051b8501011115611f3057600080fd5b6020830196508095505060808b0135915080821115611f4e57600080fd5b50611f5b8b828c01611902565b999c989b5096995094979396929594505050565b60008060408385031215611f8257600080fd5b82356001600160401b0380821115611f9957600080fd5b611fa586838701611d86565b93506020850135915080821115611fbb57600080fd5b50830160408186031215611fce57600080fd5b809150509250929050565b60008060008060608587031215611fef57600080fd5b843593506020850135925060408501356001600160401b0381111561201357600080fd5b61201f87828801611902565b95989497509550505050565b8381526060602082015260006120446060830185611d2e565b90506001600160401b0383166040830152949350505050565b60006020828403121561206f57600080fd5b81516117a88161199c565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6000808335601e1984360301811261212957600080fd5b8301803591506001600160401b0382111561214357600080fd5b60200191503681900382131561194357600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006118d0602083018486612158565b600082601f8301126121a657600080fd5b81516121b4611b7982611b44565b8181528460208386010111156121c957600080fd5b6118d0826020830160208701611d02565b6000602082840312156121ec57600080fd5b81516001600160401b038082111561220357600080fd5b908301906080828603121561221757600080fd5b60405160808101818110838211171561223257612232611afe565b806040525082518152602083015160208201526040830151604082015260608301518281111561226157600080fd5b61226d87828601612195565b60608301525095945050505050565b60008235603e1983360301811261229257600080fd5b9190910192915050565b80518252602081015160208301526040810151604083015260006060820151608060608501526118d06080850182611d2e565b8281526040602082015260006118d0604083018461229c565b600080604083850312156122fb57600080fd5b82516001600160401b038082111561231257600080fd5b908401906040828703121561232657600080fd5b60405160408101818110838211171561234157612341611afe565b604052825161234f81611e6f565b815260208301518281111561236357600080fd5b61236f88828601612195565b6020830152508094505050506020830151611fce81611e6f565b6000808335601e198436030181126123a057600080fd5b83016020810192503590506001600160401b038111156123bf57600080fd5b80360382131561194357600080fd5b60a0815260006123e260a083018a8c612158565b602060038a1061240257634e487b7160e01b600052602160045260246000fd5b8381018a905288151560408501528382036060850152868252818101600588901b830182018960005b8a81101561246557858303601f19018452612446828d612389565b612451858284612158565b95870195945050509084019060010161242b565b5050858103608087015261247a81888a612158565b9e9d5050505050505050505050505050565b8381526060602082015260006124a5606083018561229c565b828103604084015283356124b881611e6f565b151581526124c96020850185612389565b604060208401526108a9604084018284612158565b84815283602082015282604082015260008251612502816060850160208701611d02565b9190910160600195945050505050565b60006020828403121561252457600080fd5b5051919050565b60006020828403121561253d57600080fd5b81516117a881611a1b565b8060005b60028110156104c257815184526020938401939091019060010161254c565b8481526001600160401b038416602082015260c0810161258e6040830185612548565b61259b6080830184612548565b95945050505050565b60008251612292818460208701611d02565b8183823760009101908152919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204704e8748b2a70efee544d9b497a8b37ed26471f602e1778f34eee67f0c515ef64736f6c634300080f0033"; type UniversalChannelHandlerConstructorParams = | [