iuniversalchannelhandler

package
v4.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IUniversalChannelHandlerABI = IUniversalChannelHandlerMetaData.ABI

IUniversalChannelHandlerABI is the input ABI used to generate the binding from. Deprecated: Use IUniversalChannelHandlerMetaData.ABI instead.

View Source
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\":\"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\":[]}]",
}

IUniversalChannelHandlerMetaData contains all meta data concerning the IUniversalChannelHandler contract.

Functions

This section is empty.

Types

type AckPacket

type AckPacket struct {
	Success bool
	Data    []byte
}

AckPacket is an auto generated low-level Go binding around an user-defined struct.

type Height

type Height struct {
	RevisionNumber uint64
	RevisionHeight uint64
}

Height is an auto generated low-level Go binding around an user-defined struct.

type IUniversalChannelHandler

type IUniversalChannelHandler struct {
	IUniversalChannelHandlerCaller     // Read-only binding to the contract
	IUniversalChannelHandlerTransactor // Write-only binding to the contract
	IUniversalChannelHandlerFilterer   // Log filterer for contract events
}

IUniversalChannelHandler is an auto generated Go binding around an Ethereum contract.

func NewIUniversalChannelHandler

func NewIUniversalChannelHandler(address common.Address, backend bind.ContractBackend) (*IUniversalChannelHandler, error)

NewIUniversalChannelHandler creates a new instance of IUniversalChannelHandler, bound to a specific deployed contract.

type IUniversalChannelHandlerCaller

type IUniversalChannelHandlerCaller struct {
	// contains filtered or unexported fields
}

IUniversalChannelHandlerCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewIUniversalChannelHandlerCaller

func NewIUniversalChannelHandlerCaller(address common.Address, caller bind.ContractCaller) (*IUniversalChannelHandlerCaller, error)

NewIUniversalChannelHandlerCaller creates a new read-only instance of IUniversalChannelHandler, bound to a specific deployed contract.

func (*IUniversalChannelHandlerCaller) ConnectedChannels

func (_IUniversalChannelHandler *IUniversalChannelHandlerCaller) ConnectedChannels(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

ConnectedChannels is a free data retrieval call binding the contract method 0xbb3f9f8d.

Solidity: function connectedChannels(uint256 ) view returns(bytes32 channel)

func (*IUniversalChannelHandlerCaller) MWID

func (_IUniversalChannelHandler *IUniversalChannelHandlerCaller) MWID(opts *bind.CallOpts) (*big.Int, error)

MWID is a free data retrieval call binding the contract method 0xc1cb44e5.

Solidity: function MW_ID() view returns(uint256 MWID)

type IUniversalChannelHandlerCallerRaw

type IUniversalChannelHandlerCallerRaw struct {
	Contract *IUniversalChannelHandlerCaller // Generic read-only contract binding to access the raw methods on
}

IUniversalChannelHandlerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*IUniversalChannelHandlerCallerRaw) Call

func (_IUniversalChannelHandler *IUniversalChannelHandlerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type IUniversalChannelHandlerCallerSession

type IUniversalChannelHandlerCallerSession struct {
	Contract *IUniversalChannelHandlerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts                   // Call options to use throughout this session
}

IUniversalChannelHandlerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*IUniversalChannelHandlerCallerSession) ConnectedChannels

func (_IUniversalChannelHandler *IUniversalChannelHandlerCallerSession) ConnectedChannels(arg0 *big.Int) ([32]byte, error)

ConnectedChannels is a free data retrieval call binding the contract method 0xbb3f9f8d.

Solidity: function connectedChannels(uint256 ) view returns(bytes32 channel)

func (*IUniversalChannelHandlerCallerSession) MWID

func (_IUniversalChannelHandler *IUniversalChannelHandlerCallerSession) MWID() (*big.Int, error)

MWID is a free data retrieval call binding the contract method 0xc1cb44e5.

Solidity: function MW_ID() view returns(uint256 MWID)

type IUniversalChannelHandlerFilterer

type IUniversalChannelHandlerFilterer struct {
	// contains filtered or unexported fields
}

IUniversalChannelHandlerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewIUniversalChannelHandlerFilterer

func NewIUniversalChannelHandlerFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniversalChannelHandlerFilterer, error)

NewIUniversalChannelHandlerFilterer creates a new log filterer instance of IUniversalChannelHandler, bound to a specific deployed contract.

type IUniversalChannelHandlerRaw

type IUniversalChannelHandlerRaw struct {
	Contract *IUniversalChannelHandler // Generic contract binding to access the raw methods on
}

IUniversalChannelHandlerRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*IUniversalChannelHandlerRaw) Call

func (_IUniversalChannelHandler *IUniversalChannelHandlerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*IUniversalChannelHandlerRaw) Transact

func (_IUniversalChannelHandler *IUniversalChannelHandlerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IUniversalChannelHandlerRaw) Transfer

func (_IUniversalChannelHandler *IUniversalChannelHandlerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type IUniversalChannelHandlerSession

type IUniversalChannelHandlerSession struct {
	Contract     *IUniversalChannelHandler // Generic contract binding to set the session for
	CallOpts     bind.CallOpts             // Call options to use throughout this session
	TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
}

IUniversalChannelHandlerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*IUniversalChannelHandlerSession) CloseChannel

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) CloseChannel(channelId [32]byte) (*types.Transaction, error)

CloseChannel is a paid mutator transaction binding the contract method 0x4c2ee09d.

Solidity: function closeChannel(bytes32 channelId) returns()

func (*IUniversalChannelHandlerSession) ConnectedChannels

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) ConnectedChannels(arg0 *big.Int) ([32]byte, error)

ConnectedChannels is a free data retrieval call binding the contract method 0xbb3f9f8d.

Solidity: function connectedChannels(uint256 ) view returns(bytes32 channel)

func (*IUniversalChannelHandlerSession) Dispatcher

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) Dispatcher() (*types.Transaction, error)

Dispatcher is a paid mutator transaction binding the contract method 0xcb7e9057.

Solidity: function dispatcher() returns(address dispatcher)

func (*IUniversalChannelHandlerSession) MWID

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) MWID() (*big.Int, error)

MWID is a free data retrieval call binding the contract method 0xc1cb44e5.

Solidity: function MW_ID() view returns(uint256 MWID)

func (*IUniversalChannelHandlerSession) OnAcknowledgementPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error)

OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5.

Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns()

func (*IUniversalChannelHandlerSession) OnChanCloseConfirm

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error)

OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4.

Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns()

func (*IUniversalChannelHandlerSession) OnChanOpenAck

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) OnChanOpenAck(channelId [32]byte, counterpartychannelId [32]byte, counterpartyVersion string) (*types.Transaction, error)

OnChanOpenAck is a paid mutator transaction binding the contract method 0xe847e280.

Solidity: function onChanOpenAck(bytes32 channelId, bytes32 counterpartychannelId, string counterpartyVersion) returns()

func (*IUniversalChannelHandlerSession) OnChanOpenConfirm

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) OnChanOpenConfirm(channelId [32]byte) (*types.Transaction, error)

OnChanOpenConfirm is a paid mutator transaction binding the contract method 0xfad28a24.

Solidity: function onChanOpenConfirm(bytes32 channelId) returns()

func (*IUniversalChannelHandlerSession) OnChanOpenTry

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) OnChanOpenTry(order uint8, connectionHops []string, channelId [32]byte, counterpartyPortIdentifier string, counterpartychannelId [32]byte, counterpartyVersion string) (*types.Transaction, error)

OnChanOpenTry is a paid mutator transaction binding the contract method 0x4bdb5597.

Solidity: function onChanOpenTry(uint8 order, string[] connectionHops, bytes32 channelId, string counterpartyPortIdentifier, bytes32 counterpartychannelId, string counterpartyVersion) returns(string selectedVersion)

func (*IUniversalChannelHandlerSession) OnRecvPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) OnRecvPacket(packet IbcPacket) (*types.Transaction, error)

OnRecvPacket is a paid mutator transaction binding the contract method 0x4dcc0aa6.

Solidity: function onRecvPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns((bool,bytes) ackPacket, bool skipAck)

func (*IUniversalChannelHandlerSession) OnTimeoutPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) OnTimeoutPacket(packet IbcPacket) (*types.Transaction, error)

OnTimeoutPacket is a paid mutator transaction binding the contract method 0x602f9834.

Solidity: function onTimeoutPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns()

func (*IUniversalChannelHandlerSession) RegisterMwStack

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) RegisterMwStack(mwBitmap *big.Int, mwAddrs []common.Address) (*types.Transaction, error)

RegisterMwStack is a paid mutator transaction binding the contract method 0x1b532db1.

Solidity: function registerMwStack(uint256 mwBitmap, address[] mwAddrs) returns()

func (*IUniversalChannelHandlerSession) SendUniversalPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) SendUniversalPacket(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error)

SendUniversalPacket is a paid mutator transaction binding the contract method 0x1f3a5830.

Solidity: function sendUniversalPacket(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence)

func (*IUniversalChannelHandlerSession) SendUniversalPacketWithFee

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) SendUniversalPacketWithFee(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error)

SendUniversalPacketWithFee is a paid mutator transaction binding the contract method 0x462fdf83.

Solidity: function sendUniversalPacketWithFee(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp, uint256[2] gasLimits, uint256[2] gasPrices) payable returns(uint64 sequence)

func (*IUniversalChannelHandlerSession) SetDispatcher

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) SetDispatcher(dispatcher common.Address) (*types.Transaction, error)

SetDispatcher is a paid mutator transaction binding the contract method 0xba22bd76.

Solidity: function setDispatcher(address dispatcher) returns()

func (*IUniversalChannelHandlerSession) TriggerChannelInit added in v4.0.4

func (_IUniversalChannelHandler *IUniversalChannelHandlerSession) TriggerChannelInit(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error)

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()

type IUniversalChannelHandlerTransactor

type IUniversalChannelHandlerTransactor struct {
	// contains filtered or unexported fields
}

IUniversalChannelHandlerTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewIUniversalChannelHandlerTransactor

func NewIUniversalChannelHandlerTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniversalChannelHandlerTransactor, error)

NewIUniversalChannelHandlerTransactor creates a new write-only instance of IUniversalChannelHandler, bound to a specific deployed contract.

func (*IUniversalChannelHandlerTransactor) CloseChannel

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) CloseChannel(opts *bind.TransactOpts, channelId [32]byte) (*types.Transaction, error)

CloseChannel is a paid mutator transaction binding the contract method 0x4c2ee09d.

Solidity: function closeChannel(bytes32 channelId) returns()

func (*IUniversalChannelHandlerTransactor) Dispatcher

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) Dispatcher(opts *bind.TransactOpts) (*types.Transaction, error)

Dispatcher is a paid mutator transaction binding the contract method 0xcb7e9057.

Solidity: function dispatcher() returns(address dispatcher)

func (*IUniversalChannelHandlerTransactor) OnAcknowledgementPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error)

OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5.

Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns()

func (*IUniversalChannelHandlerTransactor) OnChanCloseConfirm

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error)

OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4.

Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns()

func (*IUniversalChannelHandlerTransactor) OnChanOpenAck

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) OnChanOpenAck(opts *bind.TransactOpts, channelId [32]byte, counterpartychannelId [32]byte, counterpartyVersion string) (*types.Transaction, error)

OnChanOpenAck is a paid mutator transaction binding the contract method 0xe847e280.

Solidity: function onChanOpenAck(bytes32 channelId, bytes32 counterpartychannelId, string counterpartyVersion) returns()

func (*IUniversalChannelHandlerTransactor) OnChanOpenConfirm

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) OnChanOpenConfirm(opts *bind.TransactOpts, channelId [32]byte) (*types.Transaction, error)

OnChanOpenConfirm is a paid mutator transaction binding the contract method 0xfad28a24.

Solidity: function onChanOpenConfirm(bytes32 channelId) returns()

func (*IUniversalChannelHandlerTransactor) OnChanOpenTry

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) OnChanOpenTry(opts *bind.TransactOpts, order uint8, connectionHops []string, channelId [32]byte, counterpartyPortIdentifier string, counterpartychannelId [32]byte, counterpartyVersion string) (*types.Transaction, error)

OnChanOpenTry is a paid mutator transaction binding the contract method 0x4bdb5597.

Solidity: function onChanOpenTry(uint8 order, string[] connectionHops, bytes32 channelId, string counterpartyPortIdentifier, bytes32 counterpartychannelId, string counterpartyVersion) returns(string selectedVersion)

func (*IUniversalChannelHandlerTransactor) OnRecvPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) OnRecvPacket(opts *bind.TransactOpts, packet IbcPacket) (*types.Transaction, error)

OnRecvPacket is a paid mutator transaction binding the contract method 0x4dcc0aa6.

Solidity: function onRecvPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns((bool,bytes) ackPacket, bool skipAck)

func (*IUniversalChannelHandlerTransactor) OnTimeoutPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) OnTimeoutPacket(opts *bind.TransactOpts, packet IbcPacket) (*types.Transaction, error)

OnTimeoutPacket is a paid mutator transaction binding the contract method 0x602f9834.

Solidity: function onTimeoutPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns()

func (*IUniversalChannelHandlerTransactor) RegisterMwStack

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) RegisterMwStack(opts *bind.TransactOpts, mwBitmap *big.Int, mwAddrs []common.Address) (*types.Transaction, error)

RegisterMwStack is a paid mutator transaction binding the contract method 0x1b532db1.

Solidity: function registerMwStack(uint256 mwBitmap, address[] mwAddrs) returns()

func (*IUniversalChannelHandlerTransactor) SendUniversalPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) SendUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error)

SendUniversalPacket is a paid mutator transaction binding the contract method 0x1f3a5830.

Solidity: function sendUniversalPacket(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence)

func (*IUniversalChannelHandlerTransactor) SendUniversalPacketWithFee

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) SendUniversalPacketWithFee(opts *bind.TransactOpts, channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error)

SendUniversalPacketWithFee is a paid mutator transaction binding the contract method 0x462fdf83.

Solidity: function sendUniversalPacketWithFee(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp, uint256[2] gasLimits, uint256[2] gasPrices) payable returns(uint64 sequence)

func (*IUniversalChannelHandlerTransactor) SetDispatcher

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) SetDispatcher(opts *bind.TransactOpts, dispatcher common.Address) (*types.Transaction, error)

SetDispatcher is a paid mutator transaction binding the contract method 0xba22bd76.

Solidity: function setDispatcher(address dispatcher) returns()

func (*IUniversalChannelHandlerTransactor) TriggerChannelInit added in v4.0.4

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactor) TriggerChannelInit(opts *bind.TransactOpts, version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error)

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()

type IUniversalChannelHandlerTransactorRaw

type IUniversalChannelHandlerTransactorRaw struct {
	Contract *IUniversalChannelHandlerTransactor // Generic write-only contract binding to access the raw methods on
}

IUniversalChannelHandlerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*IUniversalChannelHandlerTransactorRaw) Transact

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IUniversalChannelHandlerTransactorRaw) Transfer

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type IUniversalChannelHandlerTransactorSession

type IUniversalChannelHandlerTransactorSession struct {
	Contract     *IUniversalChannelHandlerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts                   // Transaction auth options to use throughout this session
}

IUniversalChannelHandlerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*IUniversalChannelHandlerTransactorSession) CloseChannel

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) CloseChannel(channelId [32]byte) (*types.Transaction, error)

CloseChannel is a paid mutator transaction binding the contract method 0x4c2ee09d.

Solidity: function closeChannel(bytes32 channelId) returns()

func (*IUniversalChannelHandlerTransactorSession) Dispatcher

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) Dispatcher() (*types.Transaction, error)

Dispatcher is a paid mutator transaction binding the contract method 0xcb7e9057.

Solidity: function dispatcher() returns(address dispatcher)

func (*IUniversalChannelHandlerTransactorSession) OnAcknowledgementPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error)

OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5.

Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns()

func (*IUniversalChannelHandlerTransactorSession) OnChanCloseConfirm

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OnChanCloseConfirm(channelId [32]byte, counterpartyPortId string, counterpartyChannelId [32]byte) (*types.Transaction, error)

OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4.

Solidity: function onChanCloseConfirm(bytes32 channelId, string counterpartyPortId, bytes32 counterpartyChannelId) returns()

func (*IUniversalChannelHandlerTransactorSession) OnChanOpenAck

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OnChanOpenAck(channelId [32]byte, counterpartychannelId [32]byte, counterpartyVersion string) (*types.Transaction, error)

OnChanOpenAck is a paid mutator transaction binding the contract method 0xe847e280.

Solidity: function onChanOpenAck(bytes32 channelId, bytes32 counterpartychannelId, string counterpartyVersion) returns()

func (*IUniversalChannelHandlerTransactorSession) OnChanOpenConfirm

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OnChanOpenConfirm(channelId [32]byte) (*types.Transaction, error)

OnChanOpenConfirm is a paid mutator transaction binding the contract method 0xfad28a24.

Solidity: function onChanOpenConfirm(bytes32 channelId) returns()

func (*IUniversalChannelHandlerTransactorSession) OnChanOpenTry

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OnChanOpenTry(order uint8, connectionHops []string, channelId [32]byte, counterpartyPortIdentifier string, counterpartychannelId [32]byte, counterpartyVersion string) (*types.Transaction, error)

OnChanOpenTry is a paid mutator transaction binding the contract method 0x4bdb5597.

Solidity: function onChanOpenTry(uint8 order, string[] connectionHops, bytes32 channelId, string counterpartyPortIdentifier, bytes32 counterpartychannelId, string counterpartyVersion) returns(string selectedVersion)

func (*IUniversalChannelHandlerTransactorSession) OnRecvPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OnRecvPacket(packet IbcPacket) (*types.Transaction, error)

OnRecvPacket is a paid mutator transaction binding the contract method 0x4dcc0aa6.

Solidity: function onRecvPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns((bool,bytes) ackPacket, bool skipAck)

func (*IUniversalChannelHandlerTransactorSession) OnTimeoutPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) OnTimeoutPacket(packet IbcPacket) (*types.Transaction, error)

OnTimeoutPacket is a paid mutator transaction binding the contract method 0x602f9834.

Solidity: function onTimeoutPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns()

func (*IUniversalChannelHandlerTransactorSession) RegisterMwStack

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) RegisterMwStack(mwBitmap *big.Int, mwAddrs []common.Address) (*types.Transaction, error)

RegisterMwStack is a paid mutator transaction binding the contract method 0x1b532db1.

Solidity: function registerMwStack(uint256 mwBitmap, address[] mwAddrs) returns()

func (*IUniversalChannelHandlerTransactorSession) SendUniversalPacket

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) SendUniversalPacket(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error)

SendUniversalPacket is a paid mutator transaction binding the contract method 0x1f3a5830.

Solidity: function sendUniversalPacket(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence)

func (*IUniversalChannelHandlerTransactorSession) SendUniversalPacketWithFee

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) SendUniversalPacketWithFee(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error)

SendUniversalPacketWithFee is a paid mutator transaction binding the contract method 0x462fdf83.

Solidity: function sendUniversalPacketWithFee(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp, uint256[2] gasLimits, uint256[2] gasPrices) payable returns(uint64 sequence)

func (*IUniversalChannelHandlerTransactorSession) SetDispatcher

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) SetDispatcher(dispatcher common.Address) (*types.Transaction, error)

SetDispatcher is a paid mutator transaction binding the contract method 0xba22bd76.

Solidity: function setDispatcher(address dispatcher) returns()

func (*IUniversalChannelHandlerTransactorSession) TriggerChannelInit added in v4.0.4

func (_IUniversalChannelHandler *IUniversalChannelHandlerTransactorSession) TriggerChannelInit(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error)

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()

type IbcEndpoint

type IbcEndpoint struct {
	PortId    string
	ChannelId [32]byte
}

IbcEndpoint is an auto generated low-level Go binding around an user-defined struct.

type IbcPacket

type IbcPacket struct {
	Src              IbcEndpoint
	Dest             IbcEndpoint
	Sequence         uint64
	Data             []byte
	TimeoutHeight    Height
	TimeoutTimestamp uint64
}

IbcPacket is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL