earth

package
v3.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EarthABI = EarthMetaData.ABI

EarthABI is the input ABI used to generate the binding from. Deprecated: Use EarthMetaData.ABI instead.

View Source
var EarthMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_middleware\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ackPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"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\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"authorizeChannel\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"authorizedChannelIds\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"generateAckPacket\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"srcPortAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"greet\",\"inputs\":[{\"name\":\"destPortAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"message\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"greetWithFee\",\"inputs\":[{\"name\":\"destPortAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"message\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"onRecvUniversalPacket\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"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\":\"recvedPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"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\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"timeoutPackets\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"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\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"uch\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"updateUch\",\"inputs\":[{\"name\":\"_newUch\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"CallerNotUCH\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidUCHAddress\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ackAddressMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ackDataTooShort\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"invalidChannelId\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"unauthorizedChannel\",\"inputs\":[]}]",
}

EarthMetaData contains all meta data concerning the Earth 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 Earth

type Earth struct {
	EarthCaller     // Read-only binding to the contract
	EarthTransactor // Write-only binding to the contract
	EarthFilterer   // Log filterer for contract events
}

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

func NewEarth

func NewEarth(address common.Address, backend bind.ContractBackend) (*Earth, error)

NewEarth creates a new instance of Earth, bound to a specific deployed contract.

type EarthCaller

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

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

func NewEarthCaller

func NewEarthCaller(address common.Address, caller bind.ContractCaller) (*EarthCaller, error)

NewEarthCaller creates a new read-only instance of Earth, bound to a specific deployed contract.

func (*EarthCaller) AckPackets

func (_Earth *EarthCaller) AckPackets(opts *bind.CallOpts, arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
	Ack       AckPacket
}, error)

AckPackets is a free data retrieval call binding the contract method 0x4252ae9b.

Solidity: function ackPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet, (bool,bytes) ack)

func (*EarthCaller) AuthorizedChannelIds

func (_Earth *EarthCaller) AuthorizedChannelIds(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

AuthorizedChannelIds is a free data retrieval call binding the contract method 0x2eed7c70.

Solidity: function authorizedChannelIds(bytes32 ) view returns(bool)

func (*EarthCaller) GenerateAckPacket

func (_Earth *EarthCaller) GenerateAckPacket(opts *bind.CallOpts, arg0 [32]byte, srcPortAddr common.Address, appData []byte) (AckPacket, error)

GenerateAckPacket is a free data retrieval call binding the contract method 0x866f3f97.

Solidity: function generateAckPacket(bytes32 , address srcPortAddr, bytes appData) view returns((bool,bytes) ackPacket)

func (*EarthCaller) Owner

func (_Earth *EarthCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*EarthCaller) RecvedPackets

func (_Earth *EarthCaller) RecvedPackets(opts *bind.CallOpts, arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
}, error)

RecvedPackets is a free data retrieval call binding the contract method 0xf12b758a.

Solidity: function recvedPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet)

func (*EarthCaller) TimeoutPackets

func (_Earth *EarthCaller) TimeoutPackets(opts *bind.CallOpts, arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
}, error)

TimeoutPackets is a free data retrieval call binding the contract method 0x4eeb7391.

Solidity: function timeoutPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet)

func (*EarthCaller) Uch

func (_Earth *EarthCaller) Uch(opts *bind.CallOpts) (common.Address, error)

Uch is a free data retrieval call binding the contract method 0x2cc422d9.

Solidity: function uch() view returns(address)

type EarthCallerRaw

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

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

func (*EarthCallerRaw) Call

func (_Earth *EarthCallerRaw) 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 EarthCallerSession

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

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

func (*EarthCallerSession) AckPackets

func (_Earth *EarthCallerSession) AckPackets(arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
	Ack       AckPacket
}, error)

AckPackets is a free data retrieval call binding the contract method 0x4252ae9b.

Solidity: function ackPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet, (bool,bytes) ack)

func (*EarthCallerSession) AuthorizedChannelIds

func (_Earth *EarthCallerSession) AuthorizedChannelIds(arg0 [32]byte) (bool, error)

AuthorizedChannelIds is a free data retrieval call binding the contract method 0x2eed7c70.

Solidity: function authorizedChannelIds(bytes32 ) view returns(bool)

func (*EarthCallerSession) GenerateAckPacket

func (_Earth *EarthCallerSession) GenerateAckPacket(arg0 [32]byte, srcPortAddr common.Address, appData []byte) (AckPacket, error)

GenerateAckPacket is a free data retrieval call binding the contract method 0x866f3f97.

Solidity: function generateAckPacket(bytes32 , address srcPortAddr, bytes appData) view returns((bool,bytes) ackPacket)

func (*EarthCallerSession) Owner

func (_Earth *EarthCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*EarthCallerSession) RecvedPackets

func (_Earth *EarthCallerSession) RecvedPackets(arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
}, error)

RecvedPackets is a free data retrieval call binding the contract method 0xf12b758a.

Solidity: function recvedPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet)

func (*EarthCallerSession) TimeoutPackets

func (_Earth *EarthCallerSession) TimeoutPackets(arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
}, error)

TimeoutPackets is a free data retrieval call binding the contract method 0x4eeb7391.

Solidity: function timeoutPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet)

func (*EarthCallerSession) Uch

func (_Earth *EarthCallerSession) Uch() (common.Address, error)

Uch is a free data retrieval call binding the contract method 0x2cc422d9.

Solidity: function uch() view returns(address)

type EarthFilterer

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

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

func NewEarthFilterer

func NewEarthFilterer(address common.Address, filterer bind.ContractFilterer) (*EarthFilterer, error)

NewEarthFilterer creates a new log filterer instance of Earth, bound to a specific deployed contract.

func (*EarthFilterer) FilterOwnershipTransferred

func (_Earth *EarthFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*EarthOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*EarthFilterer) ParseOwnershipTransferred

func (_Earth *EarthFilterer) ParseOwnershipTransferred(log types.Log) (*EarthOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*EarthFilterer) WatchOwnershipTransferred

func (_Earth *EarthFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *EarthOwnershipTransferred, 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)

type EarthOwnershipTransferred

type EarthOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

EarthOwnershipTransferred represents a OwnershipTransferred event raised by the Earth contract.

type EarthOwnershipTransferredIterator

type EarthOwnershipTransferredIterator struct {
	Event *EarthOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EarthOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Earth contract.

func (*EarthOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*EarthOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EarthOwnershipTransferredIterator) Next

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 EarthRaw

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

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

func (*EarthRaw) Call

func (_Earth *EarthRaw) 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 (*EarthRaw) Transact

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

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

func (*EarthRaw) Transfer

func (_Earth *EarthRaw) 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 EarthSession

type EarthSession struct {
	Contract     *Earth            // 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
}

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

func (*EarthSession) AckPackets

func (_Earth *EarthSession) AckPackets(arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
	Ack       AckPacket
}, error)

AckPackets is a free data retrieval call binding the contract method 0x4252ae9b.

Solidity: function ackPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet, (bool,bytes) ack)

func (*EarthSession) AuthorizeChannel

func (_Earth *EarthSession) AuthorizeChannel(channelId [32]byte) (*types.Transaction, error)

AuthorizeChannel is a paid mutator transaction binding the contract method 0x92dfa392.

Solidity: function authorizeChannel(bytes32 channelId) returns()

func (*EarthSession) AuthorizedChannelIds

func (_Earth *EarthSession) AuthorizedChannelIds(arg0 [32]byte) (bool, error)

AuthorizedChannelIds is a free data retrieval call binding the contract method 0x2eed7c70.

Solidity: function authorizedChannelIds(bytes32 ) view returns(bool)

func (*EarthSession) GenerateAckPacket

func (_Earth *EarthSession) GenerateAckPacket(arg0 [32]byte, srcPortAddr common.Address, appData []byte) (AckPacket, error)

GenerateAckPacket is a free data retrieval call binding the contract method 0x866f3f97.

Solidity: function generateAckPacket(bytes32 , address srcPortAddr, bytes appData) view returns((bool,bytes) ackPacket)

func (*EarthSession) Greet

func (_Earth *EarthSession) Greet(destPortAddr common.Address, channelId [32]byte, message []byte, timeoutTimestamp uint64) (*types.Transaction, error)

Greet is a paid mutator transaction binding the contract method 0xd24ba024.

Solidity: function greet(address destPortAddr, bytes32 channelId, bytes message, uint64 timeoutTimestamp) returns()

func (*EarthSession) GreetWithFee

func (_Earth *EarthSession) GreetWithFee(destPortAddr common.Address, channelId [32]byte, message []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error)

GreetWithFee is a paid mutator transaction binding the contract method 0x2466911c.

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

func (*EarthSession) OnRecvUniversalPacket

func (_Earth *EarthSession) OnRecvUniversalPacket(channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)

OnRecvUniversalPacket is a paid mutator transaction binding the contract method 0x5b761585.

Solidity: function onRecvUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet) returns((bool,bytes) ackPacket)

func (*EarthSession) OnTimeoutUniversalPacket

func (_Earth *EarthSession) 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 (*EarthSession) OnUniversalAcknowledgement

func (_Earth *EarthSession) 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 (*EarthSession) Owner

func (_Earth *EarthSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*EarthSession) Receive

func (_Earth *EarthSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*EarthSession) RecvedPackets

func (_Earth *EarthSession) RecvedPackets(arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
}, error)

RecvedPackets is a free data retrieval call binding the contract method 0xf12b758a.

Solidity: function recvedPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet)

func (*EarthSession) RenounceOwnership

func (_Earth *EarthSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*EarthSession) TimeoutPackets

func (_Earth *EarthSession) TimeoutPackets(arg0 *big.Int) (struct {
	ChannelId [32]byte
	Packet    UniversalPacket
}, error)

TimeoutPackets is a free data retrieval call binding the contract method 0x4eeb7391.

Solidity: function timeoutPackets(uint256 ) view returns(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet)

func (*EarthSession) TransferOwnership

func (_Earth *EarthSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*EarthSession) Uch

func (_Earth *EarthSession) Uch() (common.Address, error)

Uch is a free data retrieval call binding the contract method 0x2cc422d9.

Solidity: function uch() view returns(address)

func (*EarthSession) UpdateUch

func (_Earth *EarthSession) UpdateUch(_newUch common.Address) (*types.Transaction, error)

UpdateUch is a paid mutator transaction binding the contract method 0x1b2f37d0.

Solidity: function updateUch(address _newUch) returns()

type EarthTransactor

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

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

func NewEarthTransactor

func NewEarthTransactor(address common.Address, transactor bind.ContractTransactor) (*EarthTransactor, error)

NewEarthTransactor creates a new write-only instance of Earth, bound to a specific deployed contract.

func (*EarthTransactor) AuthorizeChannel

func (_Earth *EarthTransactor) AuthorizeChannel(opts *bind.TransactOpts, channelId [32]byte) (*types.Transaction, error)

AuthorizeChannel is a paid mutator transaction binding the contract method 0x92dfa392.

Solidity: function authorizeChannel(bytes32 channelId) returns()

func (*EarthTransactor) Greet

func (_Earth *EarthTransactor) Greet(opts *bind.TransactOpts, destPortAddr common.Address, channelId [32]byte, message []byte, timeoutTimestamp uint64) (*types.Transaction, error)

Greet is a paid mutator transaction binding the contract method 0xd24ba024.

Solidity: function greet(address destPortAddr, bytes32 channelId, bytes message, uint64 timeoutTimestamp) returns()

func (*EarthTransactor) GreetWithFee

func (_Earth *EarthTransactor) GreetWithFee(opts *bind.TransactOpts, destPortAddr common.Address, channelId [32]byte, message []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error)

GreetWithFee is a paid mutator transaction binding the contract method 0x2466911c.

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

func (*EarthTransactor) OnRecvUniversalPacket

func (_Earth *EarthTransactor) OnRecvUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)

OnRecvUniversalPacket is a paid mutator transaction binding the contract method 0x5b761585.

Solidity: function onRecvUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet) returns((bool,bytes) ackPacket)

func (*EarthTransactor) OnTimeoutUniversalPacket

func (_Earth *EarthTransactor) 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 (*EarthTransactor) OnUniversalAcknowledgement

func (_Earth *EarthTransactor) 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 (*EarthTransactor) Receive

func (_Earth *EarthTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*EarthTransactor) RenounceOwnership

func (_Earth *EarthTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*EarthTransactor) TransferOwnership

func (_Earth *EarthTransactor) 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()

func (*EarthTransactor) UpdateUch

func (_Earth *EarthTransactor) UpdateUch(opts *bind.TransactOpts, _newUch common.Address) (*types.Transaction, error)

UpdateUch is a paid mutator transaction binding the contract method 0x1b2f37d0.

Solidity: function updateUch(address _newUch) returns()

type EarthTransactorRaw

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

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

func (*EarthTransactorRaw) Transact

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

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

func (*EarthTransactorRaw) Transfer

func (_Earth *EarthTransactorRaw) 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 EarthTransactorSession

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

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

func (*EarthTransactorSession) AuthorizeChannel

func (_Earth *EarthTransactorSession) AuthorizeChannel(channelId [32]byte) (*types.Transaction, error)

AuthorizeChannel is a paid mutator transaction binding the contract method 0x92dfa392.

Solidity: function authorizeChannel(bytes32 channelId) returns()

func (*EarthTransactorSession) Greet

func (_Earth *EarthTransactorSession) Greet(destPortAddr common.Address, channelId [32]byte, message []byte, timeoutTimestamp uint64) (*types.Transaction, error)

Greet is a paid mutator transaction binding the contract method 0xd24ba024.

Solidity: function greet(address destPortAddr, bytes32 channelId, bytes message, uint64 timeoutTimestamp) returns()

func (*EarthTransactorSession) GreetWithFee

func (_Earth *EarthTransactorSession) GreetWithFee(destPortAddr common.Address, channelId [32]byte, message []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error)

GreetWithFee is a paid mutator transaction binding the contract method 0x2466911c.

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

func (*EarthTransactorSession) OnRecvUniversalPacket

func (_Earth *EarthTransactorSession) OnRecvUniversalPacket(channelId [32]byte, packet UniversalPacket) (*types.Transaction, error)

OnRecvUniversalPacket is a paid mutator transaction binding the contract method 0x5b761585.

Solidity: function onRecvUniversalPacket(bytes32 channelId, (bytes32,uint256,bytes32,bytes) packet) returns((bool,bytes) ackPacket)

func (*EarthTransactorSession) OnTimeoutUniversalPacket

func (_Earth *EarthTransactorSession) 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 (*EarthTransactorSession) OnUniversalAcknowledgement

func (_Earth *EarthTransactorSession) 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 (*EarthTransactorSession) Receive

func (_Earth *EarthTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*EarthTransactorSession) RenounceOwnership

func (_Earth *EarthTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*EarthTransactorSession) TransferOwnership

func (_Earth *EarthTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*EarthTransactorSession) UpdateUch

func (_Earth *EarthTransactorSession) UpdateUch(_newUch common.Address) (*types.Transaction, error)

UpdateUch is a paid mutator transaction binding the contract method 0x1b2f37d0.

Solidity: function updateUch(address _newUch) returns()

type UniversalPacket

type UniversalPacket struct {
	SrcPortAddr  [32]byte
	MwBitmap     *big.Int
	DestPortAddr [32]byte
	AppData      []byte
}

UniversalPacket 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