ibft2client

package
v0.3.27 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ibft2clientABI = Ibft2clientMetaData.ABI

Ibft2clientABI is the input ABI used to generate the binding from. Deprecated: Use Ibft2clientMetaData.ABI instead.

View Source
var Ibft2clientMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"ibcHandler_\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getClientState\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"clientStateBytes\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getConsensusState\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"height\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"consensusStateBytes\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getLatestHeight\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getLatestInfo\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"latestHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"latestTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"status\",\"type\":\"uint8\",\"internalType\":\"enumILightClient.ClientStatus\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getStatus\",\"inputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumILightClient.ClientStatus\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getTimestampAtHeight\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"height\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initializeClient\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"protoClientState\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"protoConsensusState\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"height\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"routeUpdateClient\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"protoClientMessage\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"},{\"name\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"updateClient\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"header\",\"type\":\"tuple\",\"internalType\":\"structIbcLightclientsIbft2V1Header.Data\",\"components\":[{\"name\":\"besu_header_rlp\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"seals\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"trusted_height\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"account_state_proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[{\"name\":\"heights\",\"type\":\"tuple[]\",\"internalType\":\"structHeight.Data[]\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"verifyMembership\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"height\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"delayTimePeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"delayBlockPeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"path\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyNonMembership\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"height\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"delayTimePeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"delayBlockPeriod\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"path\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"error\",\"name\":\"ClientStateNotFound\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"type\":\"error\",\"name\":\"ConsensusStateNotFound\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"height\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}]},{\"type\":\"error\",\"name\":\"EmptyValidators\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InsufficientTrustedValidatorsSeals\",\"inputs\":[{\"name\":\"actual\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"threshold\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"InsuffientUntrustedValidatorsSeals\",\"inputs\":[{\"name\":\"actual\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"threshold\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"InvalidCaller\",\"inputs\":[{\"name\":\"caller\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"InvalidConsensusStateRootLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidECDSASignatureLength\",\"inputs\":[{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"InvalidIBCAddressLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidValidatorAddressLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotActiveClient\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"type\":\"error\",\"name\":\"UnexpectedEthereumHeaderFormat\",\"inputs\":[{\"name\":\"itemsLength\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"UnexpectedExtraDataFormat\",\"inputs\":[{\"name\":\"itemsLength\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"UnexpectedProtoAnyTypeURL\",\"inputs\":[{\"name\":\"url\",\"type\":\"string\",\"internalType\":\"string\"}]}]",
}

Ibft2clientMetaData contains all meta data concerning the Ibft2client contract.

Functions

This section is empty.

Types

type HeightData

type HeightData struct {
	RevisionNumber uint64
	RevisionHeight uint64
}

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

type IbcLightclientsIbft2V1HeaderData

type IbcLightclientsIbft2V1HeaderData struct {
	BesuHeaderRlp     []byte
	Seals             [][]byte
	TrustedHeight     HeightData
	AccountStateProof []byte
}

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

type Ibft2client

type Ibft2client struct {
	Ibft2clientCaller     // Read-only binding to the contract
	Ibft2clientTransactor // Write-only binding to the contract
	Ibft2clientFilterer   // Log filterer for contract events
}

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

func NewIbft2client

func NewIbft2client(address common.Address, backend bind.ContractBackend) (*Ibft2client, error)

NewIbft2client creates a new instance of Ibft2client, bound to a specific deployed contract.

type Ibft2clientCaller

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

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

func NewIbft2clientCaller

func NewIbft2clientCaller(address common.Address, caller bind.ContractCaller) (*Ibft2clientCaller, error)

NewIbft2clientCaller creates a new read-only instance of Ibft2client, bound to a specific deployed contract.

func (*Ibft2clientCaller) GetClientState

func (_Ibft2client *Ibft2clientCaller) GetClientState(opts *bind.CallOpts, clientId string) ([]byte, bool, error)

GetClientState is a free data retrieval call binding the contract method 0x76c81c42.

Solidity: function getClientState(string clientId) view returns(bytes clientStateBytes, bool)

func (*Ibft2clientCaller) GetConsensusState

func (_Ibft2client *Ibft2clientCaller) GetConsensusState(opts *bind.CallOpts, clientId string, height HeightData) ([]byte, bool, error)

GetConsensusState is a free data retrieval call binding the contract method 0x6cf44bf4.

Solidity: function getConsensusState(string clientId, (uint64,uint64) height) view returns(bytes consensusStateBytes, bool)

func (*Ibft2clientCaller) GetLatestHeight

func (_Ibft2client *Ibft2clientCaller) GetLatestHeight(opts *bind.CallOpts, clientId string) (HeightData, error)

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

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

func (*Ibft2clientCaller) GetLatestInfo added in v0.3.26

func (_Ibft2client *Ibft2clientCaller) GetLatestInfo(opts *bind.CallOpts, clientId string) (struct {
	LatestHeight    HeightData
	LatestTimestamp uint64
	Status          uint8
}, error)

GetLatestInfo is a free data retrieval call binding the contract method 0xa5906897.

Solidity: function getLatestInfo(string clientId) view returns((uint64,uint64) latestHeight, uint64 latestTimestamp, uint8 status)

func (*Ibft2clientCaller) GetStatus

func (_Ibft2client *Ibft2clientCaller) GetStatus(opts *bind.CallOpts, arg0 string) (uint8, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(string ) pure returns(uint8)

func (*Ibft2clientCaller) GetTimestampAtHeight

func (_Ibft2client *Ibft2clientCaller) GetTimestampAtHeight(opts *bind.CallOpts, clientId string, height HeightData) (uint64, error)

GetTimestampAtHeight is a free data retrieval call binding the contract method 0x4b0bbdc4.

Solidity: function getTimestampAtHeight(string clientId, (uint64,uint64) height) view returns(uint64)

func (*Ibft2clientCaller) RouteUpdateClient

func (_Ibft2client *Ibft2clientCaller) RouteUpdateClient(opts *bind.CallOpts, clientId string, protoClientMessage []byte) ([4]byte, []byte, error)

RouteUpdateClient is a free data retrieval call binding the contract method 0xf13a62f9.

Solidity: function routeUpdateClient(string clientId, bytes protoClientMessage) pure returns(bytes4, bytes)

func (*Ibft2clientCaller) VerifyMembership

func (_Ibft2client *Ibft2clientCaller) VerifyMembership(opts *bind.CallOpts, clientId string, height HeightData, delayTimePeriod uint64, delayBlockPeriod uint64, proof []byte, prefix []byte, path []byte, value []byte) (bool, error)

VerifyMembership is a free data retrieval call binding the contract method 0xf9bb5a51.

Solidity: function verifyMembership(string clientId, (uint64,uint64) height, uint64 delayTimePeriod, uint64 delayBlockPeriod, bytes proof, bytes prefix, bytes path, bytes value) view returns(bool)

func (*Ibft2clientCaller) VerifyNonMembership

func (_Ibft2client *Ibft2clientCaller) VerifyNonMembership(opts *bind.CallOpts, clientId string, height HeightData, delayTimePeriod uint64, delayBlockPeriod uint64, proof []byte, prefix []byte, path []byte) (bool, error)

VerifyNonMembership is a free data retrieval call binding the contract method 0x999fbbb3.

Solidity: function verifyNonMembership(string clientId, (uint64,uint64) height, uint64 delayTimePeriod, uint64 delayBlockPeriod, bytes proof, bytes prefix, bytes path) view returns(bool)

type Ibft2clientCallerRaw

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

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

func (*Ibft2clientCallerRaw) Call

func (_Ibft2client *Ibft2clientCallerRaw) 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 Ibft2clientCallerSession

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

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

func (*Ibft2clientCallerSession) GetClientState

func (_Ibft2client *Ibft2clientCallerSession) GetClientState(clientId string) ([]byte, bool, error)

GetClientState is a free data retrieval call binding the contract method 0x76c81c42.

Solidity: function getClientState(string clientId) view returns(bytes clientStateBytes, bool)

func (*Ibft2clientCallerSession) GetConsensusState

func (_Ibft2client *Ibft2clientCallerSession) GetConsensusState(clientId string, height HeightData) ([]byte, bool, error)

GetConsensusState is a free data retrieval call binding the contract method 0x6cf44bf4.

Solidity: function getConsensusState(string clientId, (uint64,uint64) height) view returns(bytes consensusStateBytes, bool)

func (*Ibft2clientCallerSession) GetLatestHeight

func (_Ibft2client *Ibft2clientCallerSession) GetLatestHeight(clientId string) (HeightData, error)

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

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

func (*Ibft2clientCallerSession) GetLatestInfo added in v0.3.26

func (_Ibft2client *Ibft2clientCallerSession) GetLatestInfo(clientId string) (struct {
	LatestHeight    HeightData
	LatestTimestamp uint64
	Status          uint8
}, error)

GetLatestInfo is a free data retrieval call binding the contract method 0xa5906897.

Solidity: function getLatestInfo(string clientId) view returns((uint64,uint64) latestHeight, uint64 latestTimestamp, uint8 status)

func (*Ibft2clientCallerSession) GetStatus

func (_Ibft2client *Ibft2clientCallerSession) GetStatus(arg0 string) (uint8, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(string ) pure returns(uint8)

func (*Ibft2clientCallerSession) GetTimestampAtHeight

func (_Ibft2client *Ibft2clientCallerSession) GetTimestampAtHeight(clientId string, height HeightData) (uint64, error)

GetTimestampAtHeight is a free data retrieval call binding the contract method 0x4b0bbdc4.

Solidity: function getTimestampAtHeight(string clientId, (uint64,uint64) height) view returns(uint64)

func (*Ibft2clientCallerSession) RouteUpdateClient

func (_Ibft2client *Ibft2clientCallerSession) RouteUpdateClient(clientId string, protoClientMessage []byte) ([4]byte, []byte, error)

RouteUpdateClient is a free data retrieval call binding the contract method 0xf13a62f9.

Solidity: function routeUpdateClient(string clientId, bytes protoClientMessage) pure returns(bytes4, bytes)

func (*Ibft2clientCallerSession) VerifyMembership

func (_Ibft2client *Ibft2clientCallerSession) VerifyMembership(clientId string, height HeightData, delayTimePeriod uint64, delayBlockPeriod uint64, proof []byte, prefix []byte, path []byte, value []byte) (bool, error)

VerifyMembership is a free data retrieval call binding the contract method 0xf9bb5a51.

Solidity: function verifyMembership(string clientId, (uint64,uint64) height, uint64 delayTimePeriod, uint64 delayBlockPeriod, bytes proof, bytes prefix, bytes path, bytes value) view returns(bool)

func (*Ibft2clientCallerSession) VerifyNonMembership

func (_Ibft2client *Ibft2clientCallerSession) VerifyNonMembership(clientId string, height HeightData, delayTimePeriod uint64, delayBlockPeriod uint64, proof []byte, prefix []byte, path []byte) (bool, error)

VerifyNonMembership is a free data retrieval call binding the contract method 0x999fbbb3.

Solidity: function verifyNonMembership(string clientId, (uint64,uint64) height, uint64 delayTimePeriod, uint64 delayBlockPeriod, bytes proof, bytes prefix, bytes path) view returns(bool)

type Ibft2clientFilterer

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

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

func NewIbft2clientFilterer

func NewIbft2clientFilterer(address common.Address, filterer bind.ContractFilterer) (*Ibft2clientFilterer, error)

NewIbft2clientFilterer creates a new log filterer instance of Ibft2client, bound to a specific deployed contract.

type Ibft2clientRaw

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

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

func (*Ibft2clientRaw) Call

func (_Ibft2client *Ibft2clientRaw) 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 (*Ibft2clientRaw) Transact

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

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

func (*Ibft2clientRaw) Transfer

func (_Ibft2client *Ibft2clientRaw) 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 Ibft2clientSession

type Ibft2clientSession struct {
	Contract     *Ibft2client      // 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
}

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

func (*Ibft2clientSession) GetClientState

func (_Ibft2client *Ibft2clientSession) GetClientState(clientId string) ([]byte, bool, error)

GetClientState is a free data retrieval call binding the contract method 0x76c81c42.

Solidity: function getClientState(string clientId) view returns(bytes clientStateBytes, bool)

func (*Ibft2clientSession) GetConsensusState

func (_Ibft2client *Ibft2clientSession) GetConsensusState(clientId string, height HeightData) ([]byte, bool, error)

GetConsensusState is a free data retrieval call binding the contract method 0x6cf44bf4.

Solidity: function getConsensusState(string clientId, (uint64,uint64) height) view returns(bytes consensusStateBytes, bool)

func (*Ibft2clientSession) GetLatestHeight

func (_Ibft2client *Ibft2clientSession) GetLatestHeight(clientId string) (HeightData, error)

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

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

func (*Ibft2clientSession) GetLatestInfo added in v0.3.26

func (_Ibft2client *Ibft2clientSession) GetLatestInfo(clientId string) (struct {
	LatestHeight    HeightData
	LatestTimestamp uint64
	Status          uint8
}, error)

GetLatestInfo is a free data retrieval call binding the contract method 0xa5906897.

Solidity: function getLatestInfo(string clientId) view returns((uint64,uint64) latestHeight, uint64 latestTimestamp, uint8 status)

func (*Ibft2clientSession) GetStatus

func (_Ibft2client *Ibft2clientSession) GetStatus(arg0 string) (uint8, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(string ) pure returns(uint8)

func (*Ibft2clientSession) GetTimestampAtHeight

func (_Ibft2client *Ibft2clientSession) GetTimestampAtHeight(clientId string, height HeightData) (uint64, error)

GetTimestampAtHeight is a free data retrieval call binding the contract method 0x4b0bbdc4.

Solidity: function getTimestampAtHeight(string clientId, (uint64,uint64) height) view returns(uint64)

func (*Ibft2clientSession) InitializeClient

func (_Ibft2client *Ibft2clientSession) InitializeClient(clientId string, protoClientState []byte, protoConsensusState []byte) (*types.Transaction, error)

InitializeClient is a paid mutator transaction binding the contract method 0xfe66819f.

Solidity: function initializeClient(string clientId, bytes protoClientState, bytes protoConsensusState) returns((uint64,uint64) height)

func (*Ibft2clientSession) RouteUpdateClient

func (_Ibft2client *Ibft2clientSession) RouteUpdateClient(clientId string, protoClientMessage []byte) ([4]byte, []byte, error)

RouteUpdateClient is a free data retrieval call binding the contract method 0xf13a62f9.

Solidity: function routeUpdateClient(string clientId, bytes protoClientMessage) pure returns(bytes4, bytes)

func (*Ibft2clientSession) UpdateClient

func (_Ibft2client *Ibft2clientSession) UpdateClient(clientId string, header IbcLightclientsIbft2V1HeaderData) (*types.Transaction, error)

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

Solidity: function updateClient(string clientId, (bytes,bytes[],(uint64,uint64),bytes) header) returns((uint64,uint64)[] heights)

func (*Ibft2clientSession) VerifyMembership

func (_Ibft2client *Ibft2clientSession) VerifyMembership(clientId string, height HeightData, delayTimePeriod uint64, delayBlockPeriod uint64, proof []byte, prefix []byte, path []byte, value []byte) (bool, error)

VerifyMembership is a free data retrieval call binding the contract method 0xf9bb5a51.

Solidity: function verifyMembership(string clientId, (uint64,uint64) height, uint64 delayTimePeriod, uint64 delayBlockPeriod, bytes proof, bytes prefix, bytes path, bytes value) view returns(bool)

func (*Ibft2clientSession) VerifyNonMembership

func (_Ibft2client *Ibft2clientSession) VerifyNonMembership(clientId string, height HeightData, delayTimePeriod uint64, delayBlockPeriod uint64, proof []byte, prefix []byte, path []byte) (bool, error)

VerifyNonMembership is a free data retrieval call binding the contract method 0x999fbbb3.

Solidity: function verifyNonMembership(string clientId, (uint64,uint64) height, uint64 delayTimePeriod, uint64 delayBlockPeriod, bytes proof, bytes prefix, bytes path) view returns(bool)

type Ibft2clientTransactor

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

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

func NewIbft2clientTransactor

func NewIbft2clientTransactor(address common.Address, transactor bind.ContractTransactor) (*Ibft2clientTransactor, error)

NewIbft2clientTransactor creates a new write-only instance of Ibft2client, bound to a specific deployed contract.

func (*Ibft2clientTransactor) InitializeClient

func (_Ibft2client *Ibft2clientTransactor) InitializeClient(opts *bind.TransactOpts, clientId string, protoClientState []byte, protoConsensusState []byte) (*types.Transaction, error)

InitializeClient is a paid mutator transaction binding the contract method 0xfe66819f.

Solidity: function initializeClient(string clientId, bytes protoClientState, bytes protoConsensusState) returns((uint64,uint64) height)

func (*Ibft2clientTransactor) UpdateClient

func (_Ibft2client *Ibft2clientTransactor) UpdateClient(opts *bind.TransactOpts, clientId string, header IbcLightclientsIbft2V1HeaderData) (*types.Transaction, error)

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

Solidity: function updateClient(string clientId, (bytes,bytes[],(uint64,uint64),bytes) header) returns((uint64,uint64)[] heights)

type Ibft2clientTransactorRaw

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

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

func (*Ibft2clientTransactorRaw) Transact

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

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

func (*Ibft2clientTransactorRaw) Transfer

func (_Ibft2client *Ibft2clientTransactorRaw) 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 Ibft2clientTransactorSession

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

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

func (*Ibft2clientTransactorSession) InitializeClient

func (_Ibft2client *Ibft2clientTransactorSession) InitializeClient(clientId string, protoClientState []byte, protoConsensusState []byte) (*types.Transaction, error)

InitializeClient is a paid mutator transaction binding the contract method 0xfe66819f.

Solidity: function initializeClient(string clientId, bytes protoClientState, bytes protoConsensusState) returns((uint64,uint64) height)

func (*Ibft2clientTransactorSession) UpdateClient

func (_Ibft2client *Ibft2clientTransactorSession) UpdateClient(clientId string, header IbcLightclientsIbft2V1HeaderData) (*types.Transaction, error)

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

Solidity: function updateClient(string clientId, (bytes,bytes[],(uint64,uint64),bytes) header) returns((uint64,uint64)[] heights)

Jump to

Keyboard shortcuts

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