contracts

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientABI = ClientMetaData.ABI

ClientABI is the input ABI used to generate the binding from. Deprecated: Use ClientMetaData.ABI instead.

View Source
var ClientMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"clients\",\"outputs\":[{\"internalType\":\"contractIClient\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"chainName\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"clientAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"clientState\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"consensusState\",\"type\":\"bytes\"}],\"name\":\"createClient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"chainName\",\"type\":\"string\"}],\"name\":\"getClient\",\"outputs\":[{\"internalType\":\"contractIClient\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"chainName\",\"type\":\"string\"}],\"name\":\"getLatestHeight\",\"outputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"revision_number\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"revision_height\",\"type\":\"uint64\"}],\"internalType\":\"structHeight.Data\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"chainName\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"}],\"name\":\"registerRelayer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"relayers\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"chainName\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"header\",\"type\":\"bytes\"}],\"name\":\"updateClient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"chainName\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"clientState\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"consensusState\",\"type\":\"bytes\"}],\"name\":\"upgradeClient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

ClientMetaData contains all meta data concerning the Client contract.

View Source
var PacketABI = PacketMetaData.ABI

PacketABI is the input ABI used to generate the binding from. Deprecated: Use PacketMetaData.ABI instead.

View Source
var PacketMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"port\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"indexed\":false,\"internalType\":\"structPacketTypes.Packet\",\"name\":\"packet\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"ack\",\"type\":\"bytes\"}],\"name\":\"AckPacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"port\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"indexed\":false,\"internalType\":\"structPacketTypes.Packet\",\"name\":\"packet\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"ack\",\"type\":\"bytes\"}],\"name\":\"AckWritten\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structPacketTypes.CleanPacket\",\"name\":\"packet\",\"type\":\"tuple\"}],\"name\":\"CleanPacketSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"port\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"indexed\":false,\"internalType\":\"structPacketTypes.Packet\",\"name\":\"packet\",\"type\":\"tuple\"}],\"name\":\"PacketReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"port\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"indexed\":false,\"internalType\":\"structPacketTypes.Packet\",\"name\":\"packet\",\"type\":\"tuple\"}],\"name\":\"PacketSent\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"port\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structPacketTypes.Packet\",\"name\":\"packet\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"acknowledgement\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"proofAcked\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"revision_number\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"revision_height\",\"type\":\"uint64\"}],\"internalType\":\"structHeight.Data\",\"name\":\"height\",\"type\":\"tuple\"}],\"name\":\"acknowledgePacket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"}],\"internalType\":\"structPacketTypes.CleanPacket\",\"name\":\"packet\",\"type\":\"tuple\"}],\"name\":\"cleanPacket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"clientManager\",\"outputs\":[{\"internalType\":\"contractIClientManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"commitBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"commitments\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"}],\"name\":\"getNextSequenceSend\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clientMgrContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"routingContract\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"receipts\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"}],\"internalType\":\"structPacketTypes.CleanPacket\",\"name\":\"packet\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"revision_number\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"revision_height\",\"type\":\"uint64\"}],\"internalType\":\"structHeight.Data\",\"name\":\"height\",\"type\":\"tuple\"}],\"name\":\"recvCleanPacket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"port\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structPacketTypes.Packet\",\"name\":\"packet\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"revision_number\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"revision_height\",\"type\":\"uint64\"}],\"internalType\":\"structHeight.Data\",\"name\":\"height\",\"type\":\"tuple\"}],\"name\":\"recvPacket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"routing\",\"outputs\":[{\"internalType\":\"contractIRouting\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"port\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"destChain\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"relayChain\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structPacketTypes.Packet\",\"name\":\"packet\",\"type\":\"tuple\"}],\"name\":\"sendPacket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"sequences\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clientMgrContract\",\"type\":\"address\"}],\"name\":\"setClientManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"routingContract\",\"type\":\"address\"}],\"name\":\"setRouting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

PacketMetaData contains all meta data concerning the Packet contract.

Functions

This section is empty.

Types

type Client

type Client struct {
	ClientCaller     // Read-only binding to the contract
	ClientTransactor // Write-only binding to the contract
	ClientFilterer   // Log filterer for contract events
}

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

func NewClient

func NewClient(address common.Address, backend bind.ContractBackend) (*Client, error)

NewClient creates a new instance of Client, bound to a specific deployed contract.

type ClientCaller

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

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

func NewClientCaller

func NewClientCaller(address common.Address, caller bind.ContractCaller) (*ClientCaller, error)

NewClientCaller creates a new read-only instance of Client, bound to a specific deployed contract.

func (*ClientCaller) Clients

func (_Client *ClientCaller) Clients(opts *bind.CallOpts, arg0 string) (common.Address, error)

Clients is a free data retrieval call binding the contract method 0x20ba1e9f.

Solidity: function clients(string ) view returns(address)

func (*ClientCaller) GetChainName

func (_Client *ClientCaller) GetChainName(opts *bind.CallOpts) (string, error)

GetChainName is a free data retrieval call binding the contract method 0xd722b0bc.

Solidity: function getChainName() view returns(string)

func (*ClientCaller) GetLatestHeight

func (_Client *ClientCaller) GetLatestHeight(opts *bind.CallOpts, chainName string) (HeightData, error)

GetLatestHeight is a free data retrieval call binding the contract method 0x329681d0.

Solidity: function getLatestHeight(string chainName) view returns((uint64,uint64))

func (*ClientCaller) Owner

func (_Client *ClientCaller) 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 (*ClientCaller) Relayers

func (_Client *ClientCaller) Relayers(opts *bind.CallOpts, arg0 string, arg1 common.Address) (bool, error)

Relayers is a free data retrieval call binding the contract method 0xee1ceb62.

Solidity: function relayers(string , address ) view returns(bool)

type ClientCallerRaw

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

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

func (*ClientCallerRaw) Call

func (_Client *ClientCallerRaw) 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 ClientCallerSession

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

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

func (*ClientCallerSession) Clients

func (_Client *ClientCallerSession) Clients(arg0 string) (common.Address, error)

Clients is a free data retrieval call binding the contract method 0x20ba1e9f.

Solidity: function clients(string ) view returns(address)

func (*ClientCallerSession) GetChainName

func (_Client *ClientCallerSession) GetChainName() (string, error)

GetChainName is a free data retrieval call binding the contract method 0xd722b0bc.

Solidity: function getChainName() view returns(string)

func (*ClientCallerSession) GetLatestHeight

func (_Client *ClientCallerSession) GetLatestHeight(chainName string) (HeightData, error)

GetLatestHeight is a free data retrieval call binding the contract method 0x329681d0.

Solidity: function getLatestHeight(string chainName) view returns((uint64,uint64))

func (*ClientCallerSession) Owner

func (_Client *ClientCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ClientCallerSession) Relayers

func (_Client *ClientCallerSession) Relayers(arg0 string, arg1 common.Address) (bool, error)

Relayers is a free data retrieval call binding the contract method 0xee1ceb62.

Solidity: function relayers(string , address ) view returns(bool)

type ClientFilterer

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

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

func NewClientFilterer

func NewClientFilterer(address common.Address, filterer bind.ContractFilterer) (*ClientFilterer, error)

NewClientFilterer creates a new log filterer instance of Client, bound to a specific deployed contract.

func (*ClientFilterer) FilterOwnershipTransferred

func (_Client *ClientFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ClientOwnershipTransferredIterator, error)

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

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

func (*ClientFilterer) ParseOwnershipTransferred

func (_Client *ClientFilterer) ParseOwnershipTransferred(log types.Log) (*ClientOwnershipTransferred, error)

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

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

func (*ClientFilterer) WatchOwnershipTransferred

func (_Client *ClientFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ClientOwnershipTransferred, 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 ClientOwnershipTransferred

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

ClientOwnershipTransferred represents a OwnershipTransferred event raised by the Client contract.

type ClientOwnershipTransferredIterator

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

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

func (*ClientOwnershipTransferredIterator) Close

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

func (*ClientOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ClientOwnershipTransferredIterator) 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 ClientRaw

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

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

func (*ClientRaw) Call

func (_Client *ClientRaw) 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 (*ClientRaw) Transact

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

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

func (*ClientRaw) Transfer

func (_Client *ClientRaw) 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 ClientSession

type ClientSession struct {
	Contract     *Client           // 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
}

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

func (*ClientSession) Clients

func (_Client *ClientSession) Clients(arg0 string) (common.Address, error)

Clients is a free data retrieval call binding the contract method 0x20ba1e9f.

Solidity: function clients(string ) view returns(address)

func (*ClientSession) CreateClient

func (_Client *ClientSession) CreateClient(chainName string, clientAddress common.Address, clientState []byte, consensusState []byte) (*types.Transaction, error)

CreateClient is a paid mutator transaction binding the contract method 0x76262a47.

Solidity: function createClient(string chainName, address clientAddress, bytes clientState, bytes consensusState) returns()

func (*ClientSession) GetChainName

func (_Client *ClientSession) GetChainName() (string, error)

GetChainName is a free data retrieval call binding the contract method 0xd722b0bc.

Solidity: function getChainName() view returns(string)

func (*ClientSession) GetClient

func (_Client *ClientSession) GetClient(chainName string) (*types.Transaction, error)

GetClient is a paid mutator transaction binding the contract method 0x7eb78932.

Solidity: function getClient(string chainName) returns(address)

func (*ClientSession) GetLatestHeight

func (_Client *ClientSession) GetLatestHeight(chainName string) (HeightData, error)

GetLatestHeight is a free data retrieval call binding the contract method 0x329681d0.

Solidity: function getLatestHeight(string chainName) view returns((uint64,uint64))

func (*ClientSession) Initialize

func (_Client *ClientSession) Initialize(name string) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf62d1888.

Solidity: function initialize(string name) returns()

func (*ClientSession) Owner

func (_Client *ClientSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ClientSession) RegisterRelayer

func (_Client *ClientSession) RegisterRelayer(chainName string, relayer common.Address) (*types.Transaction, error)

RegisterRelayer is a paid mutator transaction binding the contract method 0x5330a758.

Solidity: function registerRelayer(string chainName, address relayer) returns()

func (*ClientSession) Relayers

func (_Client *ClientSession) Relayers(arg0 string, arg1 common.Address) (bool, error)

Relayers is a free data retrieval call binding the contract method 0xee1ceb62.

Solidity: function relayers(string , address ) view returns(bool)

func (*ClientSession) RenounceOwnership

func (_Client *ClientSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ClientSession) TransferOwnership

func (_Client *ClientSession) 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 (*ClientSession) UpdateClient

func (_Client *ClientSession) UpdateClient(chainName string, header []byte) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x6fbf8079.

Solidity: function updateClient(string chainName, bytes header) returns()

func (*ClientSession) UpgradeClient

func (_Client *ClientSession) UpgradeClient(chainName string, clientState []byte, consensusState []byte) (*types.Transaction, error)

UpgradeClient is a paid mutator transaction binding the contract method 0x935aee64.

Solidity: function upgradeClient(string chainName, bytes clientState, bytes consensusState) returns()

type ClientTransactor

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

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

func NewClientTransactor

func NewClientTransactor(address common.Address, transactor bind.ContractTransactor) (*ClientTransactor, error)

NewClientTransactor creates a new write-only instance of Client, bound to a specific deployed contract.

func (*ClientTransactor) CreateClient

func (_Client *ClientTransactor) CreateClient(opts *bind.TransactOpts, chainName string, clientAddress common.Address, clientState []byte, consensusState []byte) (*types.Transaction, error)

CreateClient is a paid mutator transaction binding the contract method 0x76262a47.

Solidity: function createClient(string chainName, address clientAddress, bytes clientState, bytes consensusState) returns()

func (*ClientTransactor) GetClient

func (_Client *ClientTransactor) GetClient(opts *bind.TransactOpts, chainName string) (*types.Transaction, error)

GetClient is a paid mutator transaction binding the contract method 0x7eb78932.

Solidity: function getClient(string chainName) returns(address)

func (*ClientTransactor) Initialize

func (_Client *ClientTransactor) Initialize(opts *bind.TransactOpts, name string) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf62d1888.

Solidity: function initialize(string name) returns()

func (*ClientTransactor) RegisterRelayer

func (_Client *ClientTransactor) RegisterRelayer(opts *bind.TransactOpts, chainName string, relayer common.Address) (*types.Transaction, error)

RegisterRelayer is a paid mutator transaction binding the contract method 0x5330a758.

Solidity: function registerRelayer(string chainName, address relayer) returns()

func (*ClientTransactor) RenounceOwnership

func (_Client *ClientTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ClientTransactor) TransferOwnership

func (_Client *ClientTransactor) 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 (*ClientTransactor) UpdateClient

func (_Client *ClientTransactor) UpdateClient(opts *bind.TransactOpts, chainName string, header []byte) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x6fbf8079.

Solidity: function updateClient(string chainName, bytes header) returns()

func (*ClientTransactor) UpgradeClient

func (_Client *ClientTransactor) UpgradeClient(opts *bind.TransactOpts, chainName string, clientState []byte, consensusState []byte) (*types.Transaction, error)

UpgradeClient is a paid mutator transaction binding the contract method 0x935aee64.

Solidity: function upgradeClient(string chainName, bytes clientState, bytes consensusState) returns()

type ClientTransactorRaw

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

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

func (*ClientTransactorRaw) Transact

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

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

func (*ClientTransactorRaw) Transfer

func (_Client *ClientTransactorRaw) 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 ClientTransactorSession

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

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

func (*ClientTransactorSession) CreateClient

func (_Client *ClientTransactorSession) CreateClient(chainName string, clientAddress common.Address, clientState []byte, consensusState []byte) (*types.Transaction, error)

CreateClient is a paid mutator transaction binding the contract method 0x76262a47.

Solidity: function createClient(string chainName, address clientAddress, bytes clientState, bytes consensusState) returns()

func (*ClientTransactorSession) GetClient

func (_Client *ClientTransactorSession) GetClient(chainName string) (*types.Transaction, error)

GetClient is a paid mutator transaction binding the contract method 0x7eb78932.

Solidity: function getClient(string chainName) returns(address)

func (*ClientTransactorSession) Initialize

func (_Client *ClientTransactorSession) Initialize(name string) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf62d1888.

Solidity: function initialize(string name) returns()

func (*ClientTransactorSession) RegisterRelayer

func (_Client *ClientTransactorSession) RegisterRelayer(chainName string, relayer common.Address) (*types.Transaction, error)

RegisterRelayer is a paid mutator transaction binding the contract method 0x5330a758.

Solidity: function registerRelayer(string chainName, address relayer) returns()

func (*ClientTransactorSession) RenounceOwnership

func (_Client *ClientTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ClientTransactorSession) TransferOwnership

func (_Client *ClientTransactorSession) 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 (*ClientTransactorSession) UpdateClient

func (_Client *ClientTransactorSession) UpdateClient(chainName string, header []byte) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x6fbf8079.

Solidity: function updateClient(string chainName, bytes header) returns()

func (*ClientTransactorSession) UpgradeClient

func (_Client *ClientTransactorSession) UpgradeClient(chainName string, clientState []byte, consensusState []byte) (*types.Transaction, error)

UpgradeClient is a paid mutator transaction binding the contract method 0x935aee64.

Solidity: function upgradeClient(string chainName, bytes clientState, bytes consensusState) returns()

type HeightData

type HeightData struct {
	RevisionNumber uint64
	RevisionHeight uint64
}

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

type Packet

type Packet struct {
	PacketCaller     // Read-only binding to the contract
	PacketTransactor // Write-only binding to the contract
	PacketFilterer   // Log filterer for contract events
}

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

func NewPacket

func NewPacket(address common.Address, backend bind.ContractBackend) (*Packet, error)

NewPacket creates a new instance of Packet, bound to a specific deployed contract.

type PacketAckPacket

type PacketAckPacket struct {
	Packet PacketTypesPacket
	Ack    []byte
	Raw    types.Log // Blockchain specific contextual infos
}

PacketAckPacket represents a AckPacket event raised by the Packet contract.

type PacketAckPacketIterator

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

PacketAckPacketIterator is returned from FilterAckPacket and is used to iterate over the raw logs and unpacked data for AckPacket events raised by the Packet contract.

func (*PacketAckPacketIterator) Close

func (it *PacketAckPacketIterator) Close() error

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

func (*PacketAckPacketIterator) Error

func (it *PacketAckPacketIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PacketAckPacketIterator) Next

func (it *PacketAckPacketIterator) 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 PacketAckWritten

type PacketAckWritten struct {
	Packet PacketTypesPacket
	Ack    []byte
	Raw    types.Log // Blockchain specific contextual infos
}

PacketAckWritten represents a AckWritten event raised by the Packet contract.

type PacketAckWrittenIterator

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

PacketAckWrittenIterator is returned from FilterAckWritten and is used to iterate over the raw logs and unpacked data for AckWritten events raised by the Packet contract.

func (*PacketAckWrittenIterator) Close

func (it *PacketAckWrittenIterator) Close() error

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

func (*PacketAckWrittenIterator) Error

func (it *PacketAckWrittenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PacketAckWrittenIterator) Next

func (it *PacketAckWrittenIterator) 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 PacketCaller

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

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

func NewPacketCaller

func NewPacketCaller(address common.Address, caller bind.ContractCaller) (*PacketCaller, error)

NewPacketCaller creates a new read-only instance of Packet, bound to a specific deployed contract.

func (*PacketCaller) ClientManager

func (_Packet *PacketCaller) ClientManager(opts *bind.CallOpts) (common.Address, error)

ClientManager is a free data retrieval call binding the contract method 0x79e8be1d.

Solidity: function clientManager() view returns(address)

func (*PacketCaller) CommitBytes

func (_Packet *PacketCaller) CommitBytes(opts *bind.CallOpts) ([]byte, error)

CommitBytes is a free data retrieval call binding the contract method 0x29606763.

Solidity: function commitBytes() view returns(bytes)

func (*PacketCaller) Commitments

func (_Packet *PacketCaller) Commitments(opts *bind.CallOpts, arg0 []byte) ([32]byte, error)

Commitments is a free data retrieval call binding the contract method 0x7912b8e6.

Solidity: function commitments(bytes ) view returns(bytes32)

func (*PacketCaller) GetNextSequenceSend

func (_Packet *PacketCaller) GetNextSequenceSend(opts *bind.CallOpts, sourceChain string, destChain string) (uint64, error)

GetNextSequenceSend is a free data retrieval call binding the contract method 0x582418b6.

Solidity: function getNextSequenceSend(string sourceChain, string destChain) view returns(uint64)

func (*PacketCaller) Owner

func (_Packet *PacketCaller) 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 (*PacketCaller) Receipts

func (_Packet *PacketCaller) Receipts(opts *bind.CallOpts, arg0 []byte) (bool, error)

Receipts is a free data retrieval call binding the contract method 0xa6992b83.

Solidity: function receipts(bytes ) view returns(bool)

func (*PacketCaller) Routing

func (_Packet *PacketCaller) Routing(opts *bind.CallOpts) (common.Address, error)

Routing is a free data retrieval call binding the contract method 0x1b77f489.

Solidity: function routing() view returns(address)

func (*PacketCaller) Sequences

func (_Packet *PacketCaller) Sequences(opts *bind.CallOpts, arg0 []byte) (uint64, error)

Sequences is a free data retrieval call binding the contract method 0xeeebb020.

Solidity: function sequences(bytes ) view returns(uint64)

type PacketCallerRaw

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

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

func (*PacketCallerRaw) Call

func (_Packet *PacketCallerRaw) 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 PacketCallerSession

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

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

func (*PacketCallerSession) ClientManager

func (_Packet *PacketCallerSession) ClientManager() (common.Address, error)

ClientManager is a free data retrieval call binding the contract method 0x79e8be1d.

Solidity: function clientManager() view returns(address)

func (*PacketCallerSession) CommitBytes

func (_Packet *PacketCallerSession) CommitBytes() ([]byte, error)

CommitBytes is a free data retrieval call binding the contract method 0x29606763.

Solidity: function commitBytes() view returns(bytes)

func (*PacketCallerSession) Commitments

func (_Packet *PacketCallerSession) Commitments(arg0 []byte) ([32]byte, error)

Commitments is a free data retrieval call binding the contract method 0x7912b8e6.

Solidity: function commitments(bytes ) view returns(bytes32)

func (*PacketCallerSession) GetNextSequenceSend

func (_Packet *PacketCallerSession) GetNextSequenceSend(sourceChain string, destChain string) (uint64, error)

GetNextSequenceSend is a free data retrieval call binding the contract method 0x582418b6.

Solidity: function getNextSequenceSend(string sourceChain, string destChain) view returns(uint64)

func (*PacketCallerSession) Owner

func (_Packet *PacketCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PacketCallerSession) Receipts

func (_Packet *PacketCallerSession) Receipts(arg0 []byte) (bool, error)

Receipts is a free data retrieval call binding the contract method 0xa6992b83.

Solidity: function receipts(bytes ) view returns(bool)

func (*PacketCallerSession) Routing

func (_Packet *PacketCallerSession) Routing() (common.Address, error)

Routing is a free data retrieval call binding the contract method 0x1b77f489.

Solidity: function routing() view returns(address)

func (*PacketCallerSession) Sequences

func (_Packet *PacketCallerSession) Sequences(arg0 []byte) (uint64, error)

Sequences is a free data retrieval call binding the contract method 0xeeebb020.

Solidity: function sequences(bytes ) view returns(uint64)

type PacketCleanPacketSent

type PacketCleanPacketSent struct {
	Packet PacketTypesCleanPacket
	Raw    types.Log // Blockchain specific contextual infos
}

PacketCleanPacketSent represents a CleanPacketSent event raised by the Packet contract.

type PacketCleanPacketSentIterator

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

PacketCleanPacketSentIterator is returned from FilterCleanPacketSent and is used to iterate over the raw logs and unpacked data for CleanPacketSent events raised by the Packet contract.

func (*PacketCleanPacketSentIterator) Close

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

func (*PacketCleanPacketSentIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PacketCleanPacketSentIterator) 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 PacketFilterer

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

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

func NewPacketFilterer

func NewPacketFilterer(address common.Address, filterer bind.ContractFilterer) (*PacketFilterer, error)

NewPacketFilterer creates a new log filterer instance of Packet, bound to a specific deployed contract.

func (*PacketFilterer) FilterAckPacket

func (_Packet *PacketFilterer) FilterAckPacket(opts *bind.FilterOpts) (*PacketAckPacketIterator, error)

FilterAckPacket is a free log retrieval operation binding the contract event 0x447e78791b78f447e209498b8f3d8cd24abd59d47730b059a5242bb7b22b3749.

Solidity: event AckPacket((uint64,string,string,string,string,bytes) packet, bytes ack)

func (*PacketFilterer) FilterAckWritten

func (_Packet *PacketFilterer) FilterAckWritten(opts *bind.FilterOpts) (*PacketAckWrittenIterator, error)

FilterAckWritten is a free log retrieval operation binding the contract event 0x773ac32e677533310d84b93686be4f715d2bd399c322a619529ee6e3ce3f25e7.

Solidity: event AckWritten((uint64,string,string,string,string,bytes) packet, bytes ack)

func (*PacketFilterer) FilterCleanPacketSent

func (_Packet *PacketFilterer) FilterCleanPacketSent(opts *bind.FilterOpts) (*PacketCleanPacketSentIterator, error)

FilterCleanPacketSent is a free log retrieval operation binding the contract event 0x755e688e418e0c7eecdc9584c4c0298bb4397d6dcc817d25aa46bb9dd5b9cafc.

Solidity: event CleanPacketSent((uint64,string,string,string) packet)

func (*PacketFilterer) FilterOwnershipTransferred

func (_Packet *PacketFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PacketOwnershipTransferredIterator, error)

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

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

func (*PacketFilterer) FilterPacketReceived

func (_Packet *PacketFilterer) FilterPacketReceived(opts *bind.FilterOpts) (*PacketPacketReceivedIterator, error)

FilterPacketReceived is a free log retrieval operation binding the contract event 0x12fa971a247c30ad6ab3bc3c769432ea4a413ed2b1fd72dfd57f498f7350ede1.

Solidity: event PacketReceived((uint64,string,string,string,string,bytes) packet)

func (*PacketFilterer) FilterPacketSent

func (_Packet *PacketFilterer) FilterPacketSent(opts *bind.FilterOpts) (*PacketPacketSentIterator, error)

FilterPacketSent is a free log retrieval operation binding the contract event 0x9f4eeeeeb04711557a8bca7f4ac577fc7db19653f604920f381f7358e8a686a0.

Solidity: event PacketSent((uint64,string,string,string,string,bytes) packet)

func (*PacketFilterer) ParseAckPacket

func (_Packet *PacketFilterer) ParseAckPacket(log types.Log) (*PacketAckPacket, error)

ParseAckPacket is a log parse operation binding the contract event 0x447e78791b78f447e209498b8f3d8cd24abd59d47730b059a5242bb7b22b3749.

Solidity: event AckPacket((uint64,string,string,string,string,bytes) packet, bytes ack)

func (*PacketFilterer) ParseAckWritten

func (_Packet *PacketFilterer) ParseAckWritten(log types.Log) (*PacketAckWritten, error)

ParseAckWritten is a log parse operation binding the contract event 0x773ac32e677533310d84b93686be4f715d2bd399c322a619529ee6e3ce3f25e7.

Solidity: event AckWritten((uint64,string,string,string,string,bytes) packet, bytes ack)

func (*PacketFilterer) ParseCleanPacketSent

func (_Packet *PacketFilterer) ParseCleanPacketSent(log types.Log) (*PacketCleanPacketSent, error)

ParseCleanPacketSent is a log parse operation binding the contract event 0x755e688e418e0c7eecdc9584c4c0298bb4397d6dcc817d25aa46bb9dd5b9cafc.

Solidity: event CleanPacketSent((uint64,string,string,string) packet)

func (*PacketFilterer) ParseOwnershipTransferred

func (_Packet *PacketFilterer) ParseOwnershipTransferred(log types.Log) (*PacketOwnershipTransferred, error)

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

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

func (*PacketFilterer) ParsePacketReceived

func (_Packet *PacketFilterer) ParsePacketReceived(log types.Log) (*PacketPacketReceived, error)

ParsePacketReceived is a log parse operation binding the contract event 0x12fa971a247c30ad6ab3bc3c769432ea4a413ed2b1fd72dfd57f498f7350ede1.

Solidity: event PacketReceived((uint64,string,string,string,string,bytes) packet)

func (*PacketFilterer) ParsePacketSent

func (_Packet *PacketFilterer) ParsePacketSent(log types.Log) (*PacketPacketSent, error)

ParsePacketSent is a log parse operation binding the contract event 0x9f4eeeeeb04711557a8bca7f4ac577fc7db19653f604920f381f7358e8a686a0.

Solidity: event PacketSent((uint64,string,string,string,string,bytes) packet)

func (*PacketFilterer) WatchAckPacket

func (_Packet *PacketFilterer) WatchAckPacket(opts *bind.WatchOpts, sink chan<- *PacketAckPacket) (event.Subscription, error)

WatchAckPacket is a free log subscription operation binding the contract event 0x447e78791b78f447e209498b8f3d8cd24abd59d47730b059a5242bb7b22b3749.

Solidity: event AckPacket((uint64,string,string,string,string,bytes) packet, bytes ack)

func (*PacketFilterer) WatchAckWritten

func (_Packet *PacketFilterer) WatchAckWritten(opts *bind.WatchOpts, sink chan<- *PacketAckWritten) (event.Subscription, error)

WatchAckWritten is a free log subscription operation binding the contract event 0x773ac32e677533310d84b93686be4f715d2bd399c322a619529ee6e3ce3f25e7.

Solidity: event AckWritten((uint64,string,string,string,string,bytes) packet, bytes ack)

func (*PacketFilterer) WatchCleanPacketSent

func (_Packet *PacketFilterer) WatchCleanPacketSent(opts *bind.WatchOpts, sink chan<- *PacketCleanPacketSent) (event.Subscription, error)

WatchCleanPacketSent is a free log subscription operation binding the contract event 0x755e688e418e0c7eecdc9584c4c0298bb4397d6dcc817d25aa46bb9dd5b9cafc.

Solidity: event CleanPacketSent((uint64,string,string,string) packet)

func (*PacketFilterer) WatchOwnershipTransferred

func (_Packet *PacketFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PacketOwnershipTransferred, 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 (*PacketFilterer) WatchPacketReceived

func (_Packet *PacketFilterer) WatchPacketReceived(opts *bind.WatchOpts, sink chan<- *PacketPacketReceived) (event.Subscription, error)

WatchPacketReceived is a free log subscription operation binding the contract event 0x12fa971a247c30ad6ab3bc3c769432ea4a413ed2b1fd72dfd57f498f7350ede1.

Solidity: event PacketReceived((uint64,string,string,string,string,bytes) packet)

func (*PacketFilterer) WatchPacketSent

func (_Packet *PacketFilterer) WatchPacketSent(opts *bind.WatchOpts, sink chan<- *PacketPacketSent) (event.Subscription, error)

WatchPacketSent is a free log subscription operation binding the contract event 0x9f4eeeeeb04711557a8bca7f4ac577fc7db19653f604920f381f7358e8a686a0.

Solidity: event PacketSent((uint64,string,string,string,string,bytes) packet)

type PacketOwnershipTransferred

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

PacketOwnershipTransferred represents a OwnershipTransferred event raised by the Packet contract.

type PacketOwnershipTransferredIterator

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

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

func (*PacketOwnershipTransferredIterator) Close

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

func (*PacketOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PacketOwnershipTransferredIterator) 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 PacketPacketReceived

type PacketPacketReceived struct {
	Packet PacketTypesPacket
	Raw    types.Log // Blockchain specific contextual infos
}

PacketPacketReceived represents a PacketReceived event raised by the Packet contract.

type PacketPacketReceivedIterator

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

PacketPacketReceivedIterator is returned from FilterPacketReceived and is used to iterate over the raw logs and unpacked data for PacketReceived events raised by the Packet contract.

func (*PacketPacketReceivedIterator) Close

func (it *PacketPacketReceivedIterator) Close() error

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

func (*PacketPacketReceivedIterator) Error

func (it *PacketPacketReceivedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PacketPacketReceivedIterator) 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 PacketPacketSent

type PacketPacketSent struct {
	Packet PacketTypesPacket
	Raw    types.Log // Blockchain specific contextual infos
}

PacketPacketSent represents a PacketSent event raised by the Packet contract.

type PacketPacketSentIterator

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

PacketPacketSentIterator is returned from FilterPacketSent and is used to iterate over the raw logs and unpacked data for PacketSent events raised by the Packet contract.

func (*PacketPacketSentIterator) Close

func (it *PacketPacketSentIterator) Close() error

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

func (*PacketPacketSentIterator) Error

func (it *PacketPacketSentIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PacketPacketSentIterator) Next

func (it *PacketPacketSentIterator) 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 PacketRaw

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

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

func (*PacketRaw) Call

func (_Packet *PacketRaw) 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 (*PacketRaw) Transact

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

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

func (*PacketRaw) Transfer

func (_Packet *PacketRaw) 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 PacketSession

type PacketSession struct {
	Contract     *Packet           // 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
}

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

func (*PacketSession) AcknowledgePacket

func (_Packet *PacketSession) AcknowledgePacket(packet PacketTypesPacket, acknowledgement []byte, proofAcked []byte, height HeightData) (*types.Transaction, error)

AcknowledgePacket is a paid mutator transaction binding the contract method 0x07f3f612.

Solidity: function acknowledgePacket((uint64,string,string,string,string,bytes) packet, bytes acknowledgement, bytes proofAcked, (uint64,uint64) height) returns()

func (*PacketSession) CleanPacket

func (_Packet *PacketSession) CleanPacket(packet PacketTypesCleanPacket) (*types.Transaction, error)

CleanPacket is a paid mutator transaction binding the contract method 0xb8fa9a9c.

Solidity: function cleanPacket((uint64,string,string,string) packet) returns()

func (*PacketSession) ClientManager

func (_Packet *PacketSession) ClientManager() (common.Address, error)

ClientManager is a free data retrieval call binding the contract method 0x79e8be1d.

Solidity: function clientManager() view returns(address)

func (*PacketSession) CommitBytes

func (_Packet *PacketSession) CommitBytes() ([]byte, error)

CommitBytes is a free data retrieval call binding the contract method 0x29606763.

Solidity: function commitBytes() view returns(bytes)

func (*PacketSession) Commitments

func (_Packet *PacketSession) Commitments(arg0 []byte) ([32]byte, error)

Commitments is a free data retrieval call binding the contract method 0x7912b8e6.

Solidity: function commitments(bytes ) view returns(bytes32)

func (*PacketSession) GetNextSequenceSend

func (_Packet *PacketSession) GetNextSequenceSend(sourceChain string, destChain string) (uint64, error)

GetNextSequenceSend is a free data retrieval call binding the contract method 0x582418b6.

Solidity: function getNextSequenceSend(string sourceChain, string destChain) view returns(uint64)

func (*PacketSession) Initialize

func (_Packet *PacketSession) Initialize(clientMgrContract common.Address, routingContract common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address clientMgrContract, address routingContract) returns()

func (*PacketSession) Owner

func (_Packet *PacketSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PacketSession) Receipts

func (_Packet *PacketSession) Receipts(arg0 []byte) (bool, error)

Receipts is a free data retrieval call binding the contract method 0xa6992b83.

Solidity: function receipts(bytes ) view returns(bool)

func (*PacketSession) RecvCleanPacket

func (_Packet *PacketSession) RecvCleanPacket(packet PacketTypesCleanPacket, proof []byte, height HeightData) (*types.Transaction, error)

RecvCleanPacket is a paid mutator transaction binding the contract method 0x56d889ee.

Solidity: function recvCleanPacket((uint64,string,string,string) packet, bytes proof, (uint64,uint64) height) returns()

func (*PacketSession) RecvPacket

func (_Packet *PacketSession) RecvPacket(packet PacketTypesPacket, proof []byte, height HeightData) (*types.Transaction, error)

RecvPacket is a paid mutator transaction binding the contract method 0x1c7249de.

Solidity: function recvPacket((uint64,string,string,string,string,bytes) packet, bytes proof, (uint64,uint64) height) returns()

func (*PacketSession) RenounceOwnership

func (_Packet *PacketSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PacketSession) Routing

func (_Packet *PacketSession) Routing() (common.Address, error)

Routing is a free data retrieval call binding the contract method 0x1b77f489.

Solidity: function routing() view returns(address)

func (*PacketSession) SendPacket

func (_Packet *PacketSession) SendPacket(packet PacketTypesPacket) (*types.Transaction, error)

SendPacket is a paid mutator transaction binding the contract method 0x7d086e38.

Solidity: function sendPacket((uint64,string,string,string,string,bytes) packet) returns()

func (*PacketSession) Sequences

func (_Packet *PacketSession) Sequences(arg0 []byte) (uint64, error)

Sequences is a free data retrieval call binding the contract method 0xeeebb020.

Solidity: function sequences(bytes ) view returns(uint64)

func (*PacketSession) SetClientManager

func (_Packet *PacketSession) SetClientManager(clientMgrContract common.Address) (*types.Transaction, error)

SetClientManager is a paid mutator transaction binding the contract method 0x8f3de42e.

Solidity: function setClientManager(address clientMgrContract) returns()

func (*PacketSession) SetRouting

func (_Packet *PacketSession) SetRouting(routingContract common.Address) (*types.Transaction, error)

SetRouting is a paid mutator transaction binding the contract method 0x109f543f.

Solidity: function setRouting(address routingContract) returns()

func (*PacketSession) TransferOwnership

func (_Packet *PacketSession) 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 PacketTransactor

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

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

func NewPacketTransactor

func NewPacketTransactor(address common.Address, transactor bind.ContractTransactor) (*PacketTransactor, error)

NewPacketTransactor creates a new write-only instance of Packet, bound to a specific deployed contract.

func (*PacketTransactor) AcknowledgePacket

func (_Packet *PacketTransactor) AcknowledgePacket(opts *bind.TransactOpts, packet PacketTypesPacket, acknowledgement []byte, proofAcked []byte, height HeightData) (*types.Transaction, error)

AcknowledgePacket is a paid mutator transaction binding the contract method 0x07f3f612.

Solidity: function acknowledgePacket((uint64,string,string,string,string,bytes) packet, bytes acknowledgement, bytes proofAcked, (uint64,uint64) height) returns()

func (*PacketTransactor) CleanPacket

func (_Packet *PacketTransactor) CleanPacket(opts *bind.TransactOpts, packet PacketTypesCleanPacket) (*types.Transaction, error)

CleanPacket is a paid mutator transaction binding the contract method 0xb8fa9a9c.

Solidity: function cleanPacket((uint64,string,string,string) packet) returns()

func (*PacketTransactor) Initialize

func (_Packet *PacketTransactor) Initialize(opts *bind.TransactOpts, clientMgrContract common.Address, routingContract common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address clientMgrContract, address routingContract) returns()

func (*PacketTransactor) RecvCleanPacket

func (_Packet *PacketTransactor) RecvCleanPacket(opts *bind.TransactOpts, packet PacketTypesCleanPacket, proof []byte, height HeightData) (*types.Transaction, error)

RecvCleanPacket is a paid mutator transaction binding the contract method 0x56d889ee.

Solidity: function recvCleanPacket((uint64,string,string,string) packet, bytes proof, (uint64,uint64) height) returns()

func (*PacketTransactor) RecvPacket

func (_Packet *PacketTransactor) RecvPacket(opts *bind.TransactOpts, packet PacketTypesPacket, proof []byte, height HeightData) (*types.Transaction, error)

RecvPacket is a paid mutator transaction binding the contract method 0x1c7249de.

Solidity: function recvPacket((uint64,string,string,string,string,bytes) packet, bytes proof, (uint64,uint64) height) returns()

func (*PacketTransactor) RenounceOwnership

func (_Packet *PacketTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PacketTransactor) SendPacket

func (_Packet *PacketTransactor) SendPacket(opts *bind.TransactOpts, packet PacketTypesPacket) (*types.Transaction, error)

SendPacket is a paid mutator transaction binding the contract method 0x7d086e38.

Solidity: function sendPacket((uint64,string,string,string,string,bytes) packet) returns()

func (*PacketTransactor) SetClientManager

func (_Packet *PacketTransactor) SetClientManager(opts *bind.TransactOpts, clientMgrContract common.Address) (*types.Transaction, error)

SetClientManager is a paid mutator transaction binding the contract method 0x8f3de42e.

Solidity: function setClientManager(address clientMgrContract) returns()

func (*PacketTransactor) SetRouting

func (_Packet *PacketTransactor) SetRouting(opts *bind.TransactOpts, routingContract common.Address) (*types.Transaction, error)

SetRouting is a paid mutator transaction binding the contract method 0x109f543f.

Solidity: function setRouting(address routingContract) returns()

func (*PacketTransactor) TransferOwnership

func (_Packet *PacketTransactor) 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 PacketTransactorRaw

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

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

func (*PacketTransactorRaw) Transact

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

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

func (*PacketTransactorRaw) Transfer

func (_Packet *PacketTransactorRaw) 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 PacketTransactorSession

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

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

func (*PacketTransactorSession) AcknowledgePacket

func (_Packet *PacketTransactorSession) AcknowledgePacket(packet PacketTypesPacket, acknowledgement []byte, proofAcked []byte, height HeightData) (*types.Transaction, error)

AcknowledgePacket is a paid mutator transaction binding the contract method 0x07f3f612.

Solidity: function acknowledgePacket((uint64,string,string,string,string,bytes) packet, bytes acknowledgement, bytes proofAcked, (uint64,uint64) height) returns()

func (*PacketTransactorSession) CleanPacket

func (_Packet *PacketTransactorSession) CleanPacket(packet PacketTypesCleanPacket) (*types.Transaction, error)

CleanPacket is a paid mutator transaction binding the contract method 0xb8fa9a9c.

Solidity: function cleanPacket((uint64,string,string,string) packet) returns()

func (*PacketTransactorSession) Initialize

func (_Packet *PacketTransactorSession) Initialize(clientMgrContract common.Address, routingContract common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address clientMgrContract, address routingContract) returns()

func (*PacketTransactorSession) RecvCleanPacket

func (_Packet *PacketTransactorSession) RecvCleanPacket(packet PacketTypesCleanPacket, proof []byte, height HeightData) (*types.Transaction, error)

RecvCleanPacket is a paid mutator transaction binding the contract method 0x56d889ee.

Solidity: function recvCleanPacket((uint64,string,string,string) packet, bytes proof, (uint64,uint64) height) returns()

func (*PacketTransactorSession) RecvPacket

func (_Packet *PacketTransactorSession) RecvPacket(packet PacketTypesPacket, proof []byte, height HeightData) (*types.Transaction, error)

RecvPacket is a paid mutator transaction binding the contract method 0x1c7249de.

Solidity: function recvPacket((uint64,string,string,string,string,bytes) packet, bytes proof, (uint64,uint64) height) returns()

func (*PacketTransactorSession) RenounceOwnership

func (_Packet *PacketTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PacketTransactorSession) SendPacket

func (_Packet *PacketTransactorSession) SendPacket(packet PacketTypesPacket) (*types.Transaction, error)

SendPacket is a paid mutator transaction binding the contract method 0x7d086e38.

Solidity: function sendPacket((uint64,string,string,string,string,bytes) packet) returns()

func (*PacketTransactorSession) SetClientManager

func (_Packet *PacketTransactorSession) SetClientManager(clientMgrContract common.Address) (*types.Transaction, error)

SetClientManager is a paid mutator transaction binding the contract method 0x8f3de42e.

Solidity: function setClientManager(address clientMgrContract) returns()

func (*PacketTransactorSession) SetRouting

func (_Packet *PacketTransactorSession) SetRouting(routingContract common.Address) (*types.Transaction, error)

SetRouting is a paid mutator transaction binding the contract method 0x109f543f.

Solidity: function setRouting(address routingContract) returns()

func (*PacketTransactorSession) TransferOwnership

func (_Packet *PacketTransactorSession) 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 PacketTypesCleanPacket

type PacketTypesCleanPacket struct {
	Sequence    uint64
	SourceChain string
	DestChain   string
	RelayChain  string
}

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

type PacketTypesPacket

type PacketTypesPacket struct {
	Sequence    uint64
	Port        string
	SourceChain string
	DestChain   string
	RelayChain  string
	Data        []byte
}

PacketTypesPacket 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