Documentation ¶
Index ¶
- Variables
- type AckPacket
- type GeneralMiddleware
- type GeneralMiddlewareCaller
- func (_GeneralMiddleware *GeneralMiddlewareCaller) AuthorizedMws(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_GeneralMiddleware *GeneralMiddlewareCaller) MWID(opts *bind.CallOpts) (*big.Int, error)
- func (_GeneralMiddleware *GeneralMiddlewareCaller) Mw(opts *bind.CallOpts) (common.Address, error)
- func (_GeneralMiddleware *GeneralMiddlewareCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- type GeneralMiddlewareCallerRaw
- type GeneralMiddlewareCallerSession
- func (_GeneralMiddleware *GeneralMiddlewareCallerSession) AuthorizedMws(arg0 common.Address) (bool, error)
- func (_GeneralMiddleware *GeneralMiddlewareCallerSession) MWID() (*big.Int, error)
- func (_GeneralMiddleware *GeneralMiddlewareCallerSession) Mw() (common.Address, error)
- func (_GeneralMiddleware *GeneralMiddlewareCallerSession) Owner() (common.Address, error)
- type GeneralMiddlewareFilterer
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*GeneralMiddlewareOwnershipTransferredIterator, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterRecvMWAck(opts *bind.FilterOpts, channelId [][32]byte, srcPortAddr [][32]byte, ...) (*GeneralMiddlewareRecvMWAckIterator, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterRecvMWPacket(opts *bind.FilterOpts, channelId [][32]byte, srcPortAddr [][32]byte, ...) (*GeneralMiddlewareRecvMWPacketIterator, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterRecvMWTimeout(opts *bind.FilterOpts, channelId [][32]byte, srcPortAddr [][32]byte, ...) (*GeneralMiddlewareRecvMWTimeoutIterator, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterSendMWPacket(opts *bind.FilterOpts, channelId [][32]byte, srcPortAddr [][32]byte, ...) (*GeneralMiddlewareSendMWPacketIterator, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterUCHPacketSent(opts *bind.FilterOpts) (*GeneralMiddlewareUCHPacketSentIterator, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseOwnershipTransferred(log types.Log) (*GeneralMiddlewareOwnershipTransferred, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseRecvMWAck(log types.Log) (*GeneralMiddlewareRecvMWAck, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseRecvMWPacket(log types.Log) (*GeneralMiddlewareRecvMWPacket, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseRecvMWTimeout(log types.Log) (*GeneralMiddlewareRecvMWTimeout, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseSendMWPacket(log types.Log) (*GeneralMiddlewareSendMWPacket, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseUCHPacketSent(log types.Log) (*GeneralMiddlewareUCHPacketSent, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareOwnershipTransferred, ...) (event.Subscription, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchRecvMWAck(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareRecvMWAck, ...) (event.Subscription, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchRecvMWPacket(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareRecvMWPacket, ...) (event.Subscription, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchRecvMWTimeout(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareRecvMWTimeout, ...) (event.Subscription, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchSendMWPacket(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareSendMWPacket, ...) (event.Subscription, error)
- func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchUCHPacketSent(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareUCHPacketSent) (event.Subscription, error)
- type GeneralMiddlewareOwnershipTransferred
- type GeneralMiddlewareOwnershipTransferredIterator
- type GeneralMiddlewareRaw
- func (_GeneralMiddleware *GeneralMiddlewareRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_GeneralMiddleware *GeneralMiddlewareRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type GeneralMiddlewareRecvMWAck
- type GeneralMiddlewareRecvMWAckIterator
- type GeneralMiddlewareRecvMWPacket
- type GeneralMiddlewareRecvMWPacketIterator
- type GeneralMiddlewareRecvMWTimeout
- type GeneralMiddlewareRecvMWTimeoutIterator
- type GeneralMiddlewareSendMWPacket
- type GeneralMiddlewareSendMWPacketIterator
- type GeneralMiddlewareSession
- func (_GeneralMiddleware *GeneralMiddlewareSession) AuthorizeMiddleware(middleware common.Address) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) AuthorizedMws(arg0 common.Address) (bool, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) MWID() (*big.Int, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) Mw() (common.Address, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) OnRecvMWAck(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) OnRecvMWPacket(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) OnRecvMWTimeout(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) OnRecvUniversalPacket(channelId [32]byte, ucPacket UniversalPacket) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) OnTimeoutUniversalPacket(channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) OnUniversalAcknowledgement(channelId [32]byte, packet UniversalPacket, ack AckPacket) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) Owner() (common.Address, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) Receive() (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) RenounceOwnership() (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) SendMWPacket(channelId [32]byte, srcPortAddr [32]byte, destPortAddr [32]byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) SendUniversalPacket(channelId [32]byte, destPortAddr [32]byte, appData []byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) SendUniversalPacketWithFee(channelId [32]byte, destPortAddr [32]byte, appData []byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) SetDefaultMw(_middleware common.Address) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type GeneralMiddlewareTransactor
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) AuthorizeMiddleware(opts *bind.TransactOpts, middleware common.Address) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnRecvMWAck(opts *bind.TransactOpts, channelId [32]byte, ucPacket UniversalPacket, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnRecvMWPacket(opts *bind.TransactOpts, channelId [32]byte, ucPacket UniversalPacket, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnRecvMWTimeout(opts *bind.TransactOpts, channelId [32]byte, ucPacket UniversalPacket, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnRecvUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, ucPacket UniversalPacket) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnTimeoutUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnUniversalAcknowledgement(opts *bind.TransactOpts, channelId [32]byte, packet UniversalPacket, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) SendMWPacket(opts *bind.TransactOpts, channelId [32]byte, srcPortAddr [32]byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) SendUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, destPortAddr [32]byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) SendUniversalPacketWithFee(opts *bind.TransactOpts, channelId [32]byte, destPortAddr [32]byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) SetDefaultMw(opts *bind.TransactOpts, _middleware common.Address) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- type GeneralMiddlewareTransactorRaw
- type GeneralMiddlewareTransactorSession
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) AuthorizeMiddleware(middleware common.Address) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnRecvMWAck(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnRecvMWPacket(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnRecvMWTimeout(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnRecvUniversalPacket(channelId [32]byte, ucPacket UniversalPacket) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnTimeoutUniversalPacket(channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnUniversalAcknowledgement(channelId [32]byte, packet UniversalPacket, ack AckPacket) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) Receive() (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) SendMWPacket(channelId [32]byte, srcPortAddr [32]byte, destPortAddr [32]byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) SendUniversalPacket(channelId [32]byte, destPortAddr [32]byte, appData []byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) SendUniversalPacketWithFee(channelId [32]byte, destPortAddr [32]byte, appData []byte, ...) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) SetDefaultMw(_middleware common.Address) (*types.Transaction, error)
- func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type GeneralMiddlewareUCHPacketSent
- type GeneralMiddlewareUCHPacketSentIterator
- type UniversalPacket
Constants ¶
This section is empty.
Variables ¶
var GeneralMiddlewareABI = GeneralMiddlewareMetaData.ABI
GeneralMiddlewareABI is the input ABI used to generate the binding from. Deprecated: Use GeneralMiddlewareMetaData.ABI instead.
var GeneralMiddlewareMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"mwId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_middleware\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"MW_ID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"authorizeMiddleware\",\"inputs\":[{\"name\":\"middleware\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"authorizedMws\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"mw\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onRecvMWAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"ucPacket\",\"type\":\"tuple\",\"internalType\":\"structUniversalPacket\",\"components\":[{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"mwBitmap\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"mwIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"mwAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"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\":\"onRecvMWPacket\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"ucPacket\",\"type\":\"tuple\",\"internalType\":\"structUniversalPacket\",\"components\":[{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"mwBitmap\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"mwIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"mwAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvMWTimeout\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"ucPacket\",\"type\":\"tuple\",\"internalType\":\"structUniversalPacket\",\"components\":[{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"mwBitmap\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"mwIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"mwAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onRecvUniversalPacket\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"ucPacket\",\"type\":\"tuple\",\"internalType\":\"structUniversalPacket\",\"components\":[{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"mwBitmap\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onTimeoutUniversalPacket\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structUniversalPacket\",\"components\":[{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"mwBitmap\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onUniversalAcknowledgement\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structUniversalPacket\",\"components\":[{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"mwBitmap\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"sendMWPacket\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"srcMwIds\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"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\":\"setDefaultMw\",\"inputs\":[{\"name\":\"_middleware\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RecvMWAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"mwId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"appData\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"},{\"name\":\"mwData\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"},{\"name\":\"ack\",\"type\":\"tuple\",\"indexed\":false,\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RecvMWPacket\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"mwId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"appData\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"},{\"name\":\"mwData\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RecvMWTimeout\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"mwId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"appData\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"},{\"name\":\"mwData\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SendMWPacket\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"srcPortAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"mwId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"appData\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"mwData\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"}],\"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\":\"error\",\"name\":\"UnauthorizedIbcMiddleware\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ackAddressMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ackDataTooShort\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"invalidChannelId\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"unauthorizedChannel\",\"inputs\":[]}]",
}
GeneralMiddlewareMetaData contains all meta data concerning the GeneralMiddleware contract.
Functions ¶
This section is empty.
Types ¶
type GeneralMiddleware ¶
type GeneralMiddleware struct { GeneralMiddlewareCaller // Read-only binding to the contract GeneralMiddlewareTransactor // Write-only binding to the contract GeneralMiddlewareFilterer // Log filterer for contract events }
GeneralMiddleware is an auto generated Go binding around an Ethereum contract.
func NewGeneralMiddleware ¶
func NewGeneralMiddleware(address common.Address, backend bind.ContractBackend) (*GeneralMiddleware, error)
NewGeneralMiddleware creates a new instance of GeneralMiddleware, bound to a specific deployed contract.
type GeneralMiddlewareCaller ¶
type GeneralMiddlewareCaller struct {
// contains filtered or unexported fields
}
GeneralMiddlewareCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewGeneralMiddlewareCaller ¶
func NewGeneralMiddlewareCaller(address common.Address, caller bind.ContractCaller) (*GeneralMiddlewareCaller, error)
NewGeneralMiddlewareCaller creates a new read-only instance of GeneralMiddleware, bound to a specific deployed contract.
func (*GeneralMiddlewareCaller) AuthorizedMws ¶
func (_GeneralMiddleware *GeneralMiddlewareCaller) AuthorizedMws(opts *bind.CallOpts, arg0 common.Address) (bool, error)
AuthorizedMws is a free data retrieval call binding the contract method 0x3a7fbcbd.
Solidity: function authorizedMws(address ) view returns(bool)
func (*GeneralMiddlewareCaller) MWID ¶
MWID is a free data retrieval call binding the contract method 0xc1cb44e5.
Solidity: function MW_ID() view returns(uint256)
type GeneralMiddlewareCallerRaw ¶
type GeneralMiddlewareCallerRaw struct {
Contract *GeneralMiddlewareCaller // Generic read-only contract binding to access the raw methods on
}
GeneralMiddlewareCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*GeneralMiddlewareCallerRaw) Call ¶
func (_GeneralMiddleware *GeneralMiddlewareCallerRaw) 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 GeneralMiddlewareCallerSession ¶
type GeneralMiddlewareCallerSession struct { Contract *GeneralMiddlewareCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
GeneralMiddlewareCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*GeneralMiddlewareCallerSession) AuthorizedMws ¶
func (_GeneralMiddleware *GeneralMiddlewareCallerSession) AuthorizedMws(arg0 common.Address) (bool, error)
AuthorizedMws is a free data retrieval call binding the contract method 0x3a7fbcbd.
Solidity: function authorizedMws(address ) view returns(bool)
func (*GeneralMiddlewareCallerSession) MWID ¶
func (_GeneralMiddleware *GeneralMiddlewareCallerSession) MWID() (*big.Int, error)
MWID is a free data retrieval call binding the contract method 0xc1cb44e5.
Solidity: function MW_ID() view returns(uint256)
type GeneralMiddlewareFilterer ¶
type GeneralMiddlewareFilterer struct {
// contains filtered or unexported fields
}
GeneralMiddlewareFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewGeneralMiddlewareFilterer ¶
func NewGeneralMiddlewareFilterer(address common.Address, filterer bind.ContractFilterer) (*GeneralMiddlewareFilterer, error)
NewGeneralMiddlewareFilterer creates a new log filterer instance of GeneralMiddleware, bound to a specific deployed contract.
func (*GeneralMiddlewareFilterer) FilterOwnershipTransferred ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*GeneralMiddlewareOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*GeneralMiddlewareFilterer) FilterRecvMWAck ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterRecvMWAck(opts *bind.FilterOpts, channelId [][32]byte, srcPortAddr [][32]byte, destPortAddr [][32]byte) (*GeneralMiddlewareRecvMWAckIterator, error)
FilterRecvMWAck is a free log retrieval operation binding the contract event 0x0ad1351cd77bd217ef00c2ab94f17283f9a51d4ebd8d189c151760d8075f01c2.
Solidity: event RecvMWAck(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData, (bool,bytes) ack)
func (*GeneralMiddlewareFilterer) FilterRecvMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterRecvMWPacket(opts *bind.FilterOpts, channelId [][32]byte, srcPortAddr [][32]byte, destPortAddr [][32]byte) (*GeneralMiddlewareRecvMWPacketIterator, error)
FilterRecvMWPacket is a free log retrieval operation binding the contract event 0xdbf4e1c85f2bbbba15b8c4ca75bb0ef2a3e496e986f4fde306aa5942a48ad180.
Solidity: event RecvMWPacket(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData)
func (*GeneralMiddlewareFilterer) FilterRecvMWTimeout ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterRecvMWTimeout(opts *bind.FilterOpts, channelId [][32]byte, srcPortAddr [][32]byte, destPortAddr [][32]byte) (*GeneralMiddlewareRecvMWTimeoutIterator, error)
FilterRecvMWTimeout is a free log retrieval operation binding the contract event 0xc2c6119a1960aa25d517e5173005d0d39b4f58db74eda3eb48acda26cac7ca62.
Solidity: event RecvMWTimeout(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData)
func (*GeneralMiddlewareFilterer) FilterSendMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterSendMWPacket(opts *bind.FilterOpts, channelId [][32]byte, srcPortAddr [][32]byte, destPortAddr [][32]byte) (*GeneralMiddlewareSendMWPacketIterator, error)
FilterSendMWPacket is a free log retrieval operation binding the contract event 0x7c1d77d7984ba9b37263b84eda35413a5b3911d71bd1f24b60bb43cfcaf539f7.
Solidity: event SendMWPacket(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, uint64 timeoutTimestamp, bytes mwData)
func (*GeneralMiddlewareFilterer) FilterUCHPacketSent ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) FilterUCHPacketSent(opts *bind.FilterOpts) (*GeneralMiddlewareUCHPacketSentIterator, error)
FilterUCHPacketSent is a free log retrieval operation binding the contract event 0x9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873.
Solidity: event UCHPacketSent(address source, bytes32 destination)
func (*GeneralMiddlewareFilterer) ParseOwnershipTransferred ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseOwnershipTransferred(log types.Log) (*GeneralMiddlewareOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*GeneralMiddlewareFilterer) ParseRecvMWAck ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseRecvMWAck(log types.Log) (*GeneralMiddlewareRecvMWAck, error)
ParseRecvMWAck is a log parse operation binding the contract event 0x0ad1351cd77bd217ef00c2ab94f17283f9a51d4ebd8d189c151760d8075f01c2.
Solidity: event RecvMWAck(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData, (bool,bytes) ack)
func (*GeneralMiddlewareFilterer) ParseRecvMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseRecvMWPacket(log types.Log) (*GeneralMiddlewareRecvMWPacket, error)
ParseRecvMWPacket is a log parse operation binding the contract event 0xdbf4e1c85f2bbbba15b8c4ca75bb0ef2a3e496e986f4fde306aa5942a48ad180.
Solidity: event RecvMWPacket(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData)
func (*GeneralMiddlewareFilterer) ParseRecvMWTimeout ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseRecvMWTimeout(log types.Log) (*GeneralMiddlewareRecvMWTimeout, error)
ParseRecvMWTimeout is a log parse operation binding the contract event 0xc2c6119a1960aa25d517e5173005d0d39b4f58db74eda3eb48acda26cac7ca62.
Solidity: event RecvMWTimeout(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData)
func (*GeneralMiddlewareFilterer) ParseSendMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseSendMWPacket(log types.Log) (*GeneralMiddlewareSendMWPacket, error)
ParseSendMWPacket is a log parse operation binding the contract event 0x7c1d77d7984ba9b37263b84eda35413a5b3911d71bd1f24b60bb43cfcaf539f7.
Solidity: event SendMWPacket(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, uint64 timeoutTimestamp, bytes mwData)
func (*GeneralMiddlewareFilterer) ParseUCHPacketSent ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) ParseUCHPacketSent(log types.Log) (*GeneralMiddlewareUCHPacketSent, error)
ParseUCHPacketSent is a log parse operation binding the contract event 0x9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873.
Solidity: event UCHPacketSent(address source, bytes32 destination)
func (*GeneralMiddlewareFilterer) WatchOwnershipTransferred ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*GeneralMiddlewareFilterer) WatchRecvMWAck ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchRecvMWAck(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareRecvMWAck, channelId [][32]byte, srcPortAddr [][32]byte, destPortAddr [][32]byte) (event.Subscription, error)
WatchRecvMWAck is a free log subscription operation binding the contract event 0x0ad1351cd77bd217ef00c2ab94f17283f9a51d4ebd8d189c151760d8075f01c2.
Solidity: event RecvMWAck(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData, (bool,bytes) ack)
func (*GeneralMiddlewareFilterer) WatchRecvMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchRecvMWPacket(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareRecvMWPacket, channelId [][32]byte, srcPortAddr [][32]byte, destPortAddr [][32]byte) (event.Subscription, error)
WatchRecvMWPacket is a free log subscription operation binding the contract event 0xdbf4e1c85f2bbbba15b8c4ca75bb0ef2a3e496e986f4fde306aa5942a48ad180.
Solidity: event RecvMWPacket(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData)
func (*GeneralMiddlewareFilterer) WatchRecvMWTimeout ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchRecvMWTimeout(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareRecvMWTimeout, channelId [][32]byte, srcPortAddr [][32]byte, destPortAddr [][32]byte) (event.Subscription, error)
WatchRecvMWTimeout is a free log subscription operation binding the contract event 0xc2c6119a1960aa25d517e5173005d0d39b4f58db74eda3eb48acda26cac7ca62.
Solidity: event RecvMWTimeout(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, bytes mwData)
func (*GeneralMiddlewareFilterer) WatchSendMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchSendMWPacket(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareSendMWPacket, channelId [][32]byte, srcPortAddr [][32]byte, destPortAddr [][32]byte) (event.Subscription, error)
WatchSendMWPacket is a free log subscription operation binding the contract event 0x7c1d77d7984ba9b37263b84eda35413a5b3911d71bd1f24b60bb43cfcaf539f7.
Solidity: event SendMWPacket(bytes32 indexed channelId, bytes32 indexed srcPortAddr, bytes32 indexed destPortAddr, uint256 mwId, bytes appData, uint64 timeoutTimestamp, bytes mwData)
func (*GeneralMiddlewareFilterer) WatchUCHPacketSent ¶
func (_GeneralMiddleware *GeneralMiddlewareFilterer) WatchUCHPacketSent(opts *bind.WatchOpts, sink chan<- *GeneralMiddlewareUCHPacketSent) (event.Subscription, error)
WatchUCHPacketSent is a free log subscription operation binding the contract event 0x9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873.
Solidity: event UCHPacketSent(address source, bytes32 destination)
type GeneralMiddlewareOwnershipTransferred ¶
type GeneralMiddlewareOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
GeneralMiddlewareOwnershipTransferred represents a OwnershipTransferred event raised by the GeneralMiddleware contract.
type GeneralMiddlewareOwnershipTransferredIterator ¶
type GeneralMiddlewareOwnershipTransferredIterator struct { Event *GeneralMiddlewareOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GeneralMiddlewareOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the GeneralMiddleware contract.
func (*GeneralMiddlewareOwnershipTransferredIterator) Close ¶
func (it *GeneralMiddlewareOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GeneralMiddlewareOwnershipTransferredIterator) Error ¶
func (it *GeneralMiddlewareOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GeneralMiddlewareOwnershipTransferredIterator) Next ¶
func (it *GeneralMiddlewareOwnershipTransferredIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type GeneralMiddlewareRaw ¶
type GeneralMiddlewareRaw struct {
Contract *GeneralMiddleware // Generic contract binding to access the raw methods on
}
GeneralMiddlewareRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*GeneralMiddlewareRaw) Call ¶
func (_GeneralMiddleware *GeneralMiddlewareRaw) 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 (*GeneralMiddlewareRaw) Transact ¶
func (_GeneralMiddleware *GeneralMiddlewareRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GeneralMiddlewareRaw) Transfer ¶
func (_GeneralMiddleware *GeneralMiddlewareRaw) 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 GeneralMiddlewareRecvMWAck ¶
type GeneralMiddlewareRecvMWAck struct { ChannelId [32]byte SrcPortAddr [32]byte DestPortAddr [32]byte MwId *big.Int AppData []byte MwData []byte Ack AckPacket Raw types.Log // Blockchain specific contextual infos }
GeneralMiddlewareRecvMWAck represents a RecvMWAck event raised by the GeneralMiddleware contract.
type GeneralMiddlewareRecvMWAckIterator ¶
type GeneralMiddlewareRecvMWAckIterator struct { Event *GeneralMiddlewareRecvMWAck // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GeneralMiddlewareRecvMWAckIterator is returned from FilterRecvMWAck and is used to iterate over the raw logs and unpacked data for RecvMWAck events raised by the GeneralMiddleware contract.
func (*GeneralMiddlewareRecvMWAckIterator) Close ¶
func (it *GeneralMiddlewareRecvMWAckIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GeneralMiddlewareRecvMWAckIterator) Error ¶
func (it *GeneralMiddlewareRecvMWAckIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GeneralMiddlewareRecvMWAckIterator) Next ¶
func (it *GeneralMiddlewareRecvMWAckIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type GeneralMiddlewareRecvMWPacket ¶
type GeneralMiddlewareRecvMWPacket struct { ChannelId [32]byte SrcPortAddr [32]byte DestPortAddr [32]byte MwId *big.Int AppData []byte MwData []byte Raw types.Log // Blockchain specific contextual infos }
GeneralMiddlewareRecvMWPacket represents a RecvMWPacket event raised by the GeneralMiddleware contract.
type GeneralMiddlewareRecvMWPacketIterator ¶
type GeneralMiddlewareRecvMWPacketIterator struct { Event *GeneralMiddlewareRecvMWPacket // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GeneralMiddlewareRecvMWPacketIterator is returned from FilterRecvMWPacket and is used to iterate over the raw logs and unpacked data for RecvMWPacket events raised by the GeneralMiddleware contract.
func (*GeneralMiddlewareRecvMWPacketIterator) Close ¶
func (it *GeneralMiddlewareRecvMWPacketIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GeneralMiddlewareRecvMWPacketIterator) Error ¶
func (it *GeneralMiddlewareRecvMWPacketIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GeneralMiddlewareRecvMWPacketIterator) Next ¶
func (it *GeneralMiddlewareRecvMWPacketIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type GeneralMiddlewareRecvMWTimeout ¶
type GeneralMiddlewareRecvMWTimeout struct { ChannelId [32]byte SrcPortAddr [32]byte DestPortAddr [32]byte MwId *big.Int AppData []byte MwData []byte Raw types.Log // Blockchain specific contextual infos }
GeneralMiddlewareRecvMWTimeout represents a RecvMWTimeout event raised by the GeneralMiddleware contract.
type GeneralMiddlewareRecvMWTimeoutIterator ¶
type GeneralMiddlewareRecvMWTimeoutIterator struct { Event *GeneralMiddlewareRecvMWTimeout // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GeneralMiddlewareRecvMWTimeoutIterator is returned from FilterRecvMWTimeout and is used to iterate over the raw logs and unpacked data for RecvMWTimeout events raised by the GeneralMiddleware contract.
func (*GeneralMiddlewareRecvMWTimeoutIterator) Close ¶
func (it *GeneralMiddlewareRecvMWTimeoutIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GeneralMiddlewareRecvMWTimeoutIterator) Error ¶
func (it *GeneralMiddlewareRecvMWTimeoutIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GeneralMiddlewareRecvMWTimeoutIterator) Next ¶
func (it *GeneralMiddlewareRecvMWTimeoutIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type GeneralMiddlewareSendMWPacket ¶
type GeneralMiddlewareSendMWPacket struct { ChannelId [32]byte SrcPortAddr [32]byte DestPortAddr [32]byte MwId *big.Int AppData []byte TimeoutTimestamp uint64 MwData []byte Raw types.Log // Blockchain specific contextual infos }
GeneralMiddlewareSendMWPacket represents a SendMWPacket event raised by the GeneralMiddleware contract.
type GeneralMiddlewareSendMWPacketIterator ¶
type GeneralMiddlewareSendMWPacketIterator struct { Event *GeneralMiddlewareSendMWPacket // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GeneralMiddlewareSendMWPacketIterator is returned from FilterSendMWPacket and is used to iterate over the raw logs and unpacked data for SendMWPacket events raised by the GeneralMiddleware contract.
func (*GeneralMiddlewareSendMWPacketIterator) Close ¶
func (it *GeneralMiddlewareSendMWPacketIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GeneralMiddlewareSendMWPacketIterator) Error ¶
func (it *GeneralMiddlewareSendMWPacketIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GeneralMiddlewareSendMWPacketIterator) Next ¶
func (it *GeneralMiddlewareSendMWPacketIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type GeneralMiddlewareSession ¶
type GeneralMiddlewareSession struct { Contract *GeneralMiddleware // 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 }
GeneralMiddlewareSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*GeneralMiddlewareSession) AuthorizeMiddleware ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) AuthorizeMiddleware(middleware common.Address) (*types.Transaction, error)
AuthorizeMiddleware is a paid mutator transaction binding the contract method 0x3b90b042.
Solidity: function authorizeMiddleware(address middleware) returns()
func (*GeneralMiddlewareSession) AuthorizedMws ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) AuthorizedMws(arg0 common.Address) (bool, error)
AuthorizedMws is a free data retrieval call binding the contract method 0x3a7fbcbd.
Solidity: function authorizedMws(address ) view returns(bool)
func (*GeneralMiddlewareSession) MWID ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) MWID() (*big.Int, error)
MWID is a free data retrieval call binding the contract method 0xc1cb44e5.
Solidity: function MW_ID() view returns(uint256)
func (*GeneralMiddlewareSession) Mw ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) Mw() (common.Address, error)
Mw is a free data retrieval call binding the contract method 0xa742d78c.
Solidity: function mw() view returns(address)
func (*GeneralMiddlewareSession) OnRecvMWAck ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) OnRecvMWAck(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address, ack AckPacket) (*types.Transaction, error)
OnRecvMWAck is a paid mutator transaction binding the contract method 0xa968dc60.
Solidity: function onRecvMWAck(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs, (bool,bytes) ack) returns()
func (*GeneralMiddlewareSession) OnRecvMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) OnRecvMWPacket(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address) (*types.Transaction, error)
OnRecvMWPacket is a paid mutator transaction binding the contract method 0xce2ce646.
Solidity: function onRecvMWPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs) returns((bool,bytes) ackPacket)
func (*GeneralMiddlewareSession) OnRecvMWTimeout ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) OnRecvMWTimeout(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address) (*types.Transaction, error)
OnRecvMWTimeout is a paid mutator transaction binding the contract method 0xc2cfcd73.
Solidity: function onRecvMWTimeout(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs) returns()
func (*GeneralMiddlewareSession) OnRecvUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) OnRecvUniversalPacket(channelId [32]byte, ucPacket UniversalPacket) (*types.Transaction, error)
OnRecvUniversalPacket is a paid mutator transaction binding the contract method 0x5b761585.
Solidity: function onRecvUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket) returns((bool,bytes) ackPacket)
func (*GeneralMiddlewareSession) OnTimeoutUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) OnTimeoutUniversalPacket(channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)
OnTimeoutUniversalPacket is a paid mutator transaction binding the contract method 0x400d9f5d.
Solidity: function onTimeoutUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet) returns()
func (*GeneralMiddlewareSession) OnUniversalAcknowledgement ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) OnUniversalAcknowledgement(channelId [32]byte, packet UniversalPacket, ack AckPacket) (*types.Transaction, error)
OnUniversalAcknowledgement is a paid mutator transaction binding the contract method 0x588152ca.
Solidity: function onUniversalAcknowledgement(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet, (bool,bytes) ack) returns()
func (*GeneralMiddlewareSession) Owner ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*GeneralMiddlewareSession) Receive ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*GeneralMiddlewareSession) RenounceOwnership ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*GeneralMiddlewareSession) SendMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) SendMWPacket(channelId [32]byte, srcPortAddr [32]byte, destPortAddr [32]byte, srcMwIds *big.Int, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error)
SendMWPacket is a paid mutator transaction binding the contract method 0x1b67943d.
Solidity: function sendMWPacket(bytes32 channelId, bytes32 srcPortAddr, bytes32 destPortAddr, uint256 srcMwIds, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence)
func (*GeneralMiddlewareSession) SendUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) 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 (*GeneralMiddlewareSession) SendUniversalPacketWithFee ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) 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 (*GeneralMiddlewareSession) SetDefaultMw ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) SetDefaultMw(_middleware common.Address) (*types.Transaction, error)
SetDefaultMw is a paid mutator transaction binding the contract method 0x00e82cef.
Solidity: function setDefaultMw(address _middleware) returns()
func (*GeneralMiddlewareSession) TransferOwnership ¶
func (_GeneralMiddleware *GeneralMiddlewareSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type GeneralMiddlewareTransactor ¶
type GeneralMiddlewareTransactor struct {
// contains filtered or unexported fields
}
GeneralMiddlewareTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewGeneralMiddlewareTransactor ¶
func NewGeneralMiddlewareTransactor(address common.Address, transactor bind.ContractTransactor) (*GeneralMiddlewareTransactor, error)
NewGeneralMiddlewareTransactor creates a new write-only instance of GeneralMiddleware, bound to a specific deployed contract.
func (*GeneralMiddlewareTransactor) AuthorizeMiddleware ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) AuthorizeMiddleware(opts *bind.TransactOpts, middleware common.Address) (*types.Transaction, error)
AuthorizeMiddleware is a paid mutator transaction binding the contract method 0x3b90b042.
Solidity: function authorizeMiddleware(address middleware) returns()
func (*GeneralMiddlewareTransactor) OnRecvMWAck ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnRecvMWAck(opts *bind.TransactOpts, channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address, ack AckPacket) (*types.Transaction, error)
OnRecvMWAck is a paid mutator transaction binding the contract method 0xa968dc60.
Solidity: function onRecvMWAck(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs, (bool,bytes) ack) returns()
func (*GeneralMiddlewareTransactor) OnRecvMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnRecvMWPacket(opts *bind.TransactOpts, channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address) (*types.Transaction, error)
OnRecvMWPacket is a paid mutator transaction binding the contract method 0xce2ce646.
Solidity: function onRecvMWPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs) returns((bool,bytes) ackPacket)
func (*GeneralMiddlewareTransactor) OnRecvMWTimeout ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnRecvMWTimeout(opts *bind.TransactOpts, channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address) (*types.Transaction, error)
OnRecvMWTimeout is a paid mutator transaction binding the contract method 0xc2cfcd73.
Solidity: function onRecvMWTimeout(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs) returns()
func (*GeneralMiddlewareTransactor) OnRecvUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnRecvUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, ucPacket UniversalPacket) (*types.Transaction, error)
OnRecvUniversalPacket is a paid mutator transaction binding the contract method 0x5b761585.
Solidity: function onRecvUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket) returns((bool,bytes) ackPacket)
func (*GeneralMiddlewareTransactor) OnTimeoutUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnTimeoutUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)
OnTimeoutUniversalPacket is a paid mutator transaction binding the contract method 0x400d9f5d.
Solidity: function onTimeoutUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet) returns()
func (*GeneralMiddlewareTransactor) OnUniversalAcknowledgement ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) OnUniversalAcknowledgement(opts *bind.TransactOpts, channelId [32]byte, packet UniversalPacket, ack AckPacket) (*types.Transaction, error)
OnUniversalAcknowledgement is a paid mutator transaction binding the contract method 0x588152ca.
Solidity: function onUniversalAcknowledgement(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet, (bool,bytes) ack) returns()
func (*GeneralMiddlewareTransactor) Receive ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*GeneralMiddlewareTransactor) RenounceOwnership ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*GeneralMiddlewareTransactor) SendMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) SendMWPacket(opts *bind.TransactOpts, channelId [32]byte, srcPortAddr [32]byte, destPortAddr [32]byte, srcMwIds *big.Int, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error)
SendMWPacket is a paid mutator transaction binding the contract method 0x1b67943d.
Solidity: function sendMWPacket(bytes32 channelId, bytes32 srcPortAddr, bytes32 destPortAddr, uint256 srcMwIds, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence)
func (*GeneralMiddlewareTransactor) SendUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) 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 (*GeneralMiddlewareTransactor) SendUniversalPacketWithFee ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) 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 (*GeneralMiddlewareTransactor) SetDefaultMw ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) SetDefaultMw(opts *bind.TransactOpts, _middleware common.Address) (*types.Transaction, error)
SetDefaultMw is a paid mutator transaction binding the contract method 0x00e82cef.
Solidity: function setDefaultMw(address _middleware) returns()
func (*GeneralMiddlewareTransactor) TransferOwnership ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type GeneralMiddlewareTransactorRaw ¶
type GeneralMiddlewareTransactorRaw struct {
Contract *GeneralMiddlewareTransactor // Generic write-only contract binding to access the raw methods on
}
GeneralMiddlewareTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*GeneralMiddlewareTransactorRaw) Transact ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GeneralMiddlewareTransactorRaw) Transfer ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorRaw) 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 GeneralMiddlewareTransactorSession ¶
type GeneralMiddlewareTransactorSession struct { Contract *GeneralMiddlewareTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
GeneralMiddlewareTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*GeneralMiddlewareTransactorSession) AuthorizeMiddleware ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) AuthorizeMiddleware(middleware common.Address) (*types.Transaction, error)
AuthorizeMiddleware is a paid mutator transaction binding the contract method 0x3b90b042.
Solidity: function authorizeMiddleware(address middleware) returns()
func (*GeneralMiddlewareTransactorSession) OnRecvMWAck ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnRecvMWAck(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address, ack AckPacket) (*types.Transaction, error)
OnRecvMWAck is a paid mutator transaction binding the contract method 0xa968dc60.
Solidity: function onRecvMWAck(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs, (bool,bytes) ack) returns()
func (*GeneralMiddlewareTransactorSession) OnRecvMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnRecvMWPacket(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address) (*types.Transaction, error)
OnRecvMWPacket is a paid mutator transaction binding the contract method 0xce2ce646.
Solidity: function onRecvMWPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs) returns((bool,bytes) ackPacket)
func (*GeneralMiddlewareTransactorSession) OnRecvMWTimeout ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnRecvMWTimeout(channelId [32]byte, ucPacket UniversalPacket, mwIndex *big.Int, mwAddrs []common.Address) (*types.Transaction, error)
OnRecvMWTimeout is a paid mutator transaction binding the contract method 0xc2cfcd73.
Solidity: function onRecvMWTimeout(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket, uint256 mwIndex, address[] mwAddrs) returns()
func (*GeneralMiddlewareTransactorSession) OnRecvUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnRecvUniversalPacket(channelId [32]byte, ucPacket UniversalPacket) (*types.Transaction, error)
OnRecvUniversalPacket is a paid mutator transaction binding the contract method 0x5b761585.
Solidity: function onRecvUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) ucPacket) returns((bool,bytes) ackPacket)
func (*GeneralMiddlewareTransactorSession) OnTimeoutUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnTimeoutUniversalPacket(channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)
OnTimeoutUniversalPacket is a paid mutator transaction binding the contract method 0x400d9f5d.
Solidity: function onTimeoutUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet) returns()
func (*GeneralMiddlewareTransactorSession) OnUniversalAcknowledgement ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) OnUniversalAcknowledgement(channelId [32]byte, packet UniversalPacket, ack AckPacket) (*types.Transaction, error)
OnUniversalAcknowledgement is a paid mutator transaction binding the contract method 0x588152ca.
Solidity: function onUniversalAcknowledgement(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet, (bool,bytes) ack) returns()
func (*GeneralMiddlewareTransactorSession) Receive ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*GeneralMiddlewareTransactorSession) RenounceOwnership ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*GeneralMiddlewareTransactorSession) SendMWPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) SendMWPacket(channelId [32]byte, srcPortAddr [32]byte, destPortAddr [32]byte, srcMwIds *big.Int, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error)
SendMWPacket is a paid mutator transaction binding the contract method 0x1b67943d.
Solidity: function sendMWPacket(bytes32 channelId, bytes32 srcPortAddr, bytes32 destPortAddr, uint256 srcMwIds, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence)
func (*GeneralMiddlewareTransactorSession) SendUniversalPacket ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) 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 (*GeneralMiddlewareTransactorSession) SendUniversalPacketWithFee ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) 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 (*GeneralMiddlewareTransactorSession) SetDefaultMw ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) SetDefaultMw(_middleware common.Address) (*types.Transaction, error)
SetDefaultMw is a paid mutator transaction binding the contract method 0x00e82cef.
Solidity: function setDefaultMw(address _middleware) returns()
func (*GeneralMiddlewareTransactorSession) TransferOwnership ¶
func (_GeneralMiddleware *GeneralMiddlewareTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type GeneralMiddlewareUCHPacketSent ¶
type GeneralMiddlewareUCHPacketSent struct { Source common.Address Destination [32]byte Raw types.Log // Blockchain specific contextual infos }
GeneralMiddlewareUCHPacketSent represents a UCHPacketSent event raised by the GeneralMiddleware contract.
type GeneralMiddlewareUCHPacketSentIterator ¶
type GeneralMiddlewareUCHPacketSentIterator struct { Event *GeneralMiddlewareUCHPacketSent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GeneralMiddlewareUCHPacketSentIterator is returned from FilterUCHPacketSent and is used to iterate over the raw logs and unpacked data for UCHPacketSent events raised by the GeneralMiddleware contract.
func (*GeneralMiddlewareUCHPacketSentIterator) Close ¶
func (it *GeneralMiddlewareUCHPacketSentIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GeneralMiddlewareUCHPacketSentIterator) Error ¶
func (it *GeneralMiddlewareUCHPacketSentIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GeneralMiddlewareUCHPacketSentIterator) Next ¶
func (it *GeneralMiddlewareUCHPacketSentIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.