Documentation ¶
Index ¶
- Variables
- type HeightData
- type IbcLightclientsQbftV1HeaderData
- type Qbftclient
- type QbftclientCaller
- func (_Qbftclient *QbftclientCaller) GetClientState(opts *bind.CallOpts, clientId string) ([]byte, bool, error)
- func (_Qbftclient *QbftclientCaller) GetConsensusState(opts *bind.CallOpts, clientId string, height HeightData) ([]byte, bool, error)
- func (_Qbftclient *QbftclientCaller) GetLatestHeight(opts *bind.CallOpts, clientId string) (HeightData, error)
- func (_Qbftclient *QbftclientCaller) GetLatestInfo(opts *bind.CallOpts, clientId string) (struct{ ... }, error)
- func (_Qbftclient *QbftclientCaller) GetStatus(opts *bind.CallOpts, arg0 string) (uint8, error)
- func (_Qbftclient *QbftclientCaller) GetTimestampAtHeight(opts *bind.CallOpts, clientId string, height HeightData) (uint64, error)
- func (_Qbftclient *QbftclientCaller) IbcHandler(opts *bind.CallOpts) (common.Address, error)
- func (_Qbftclient *QbftclientCaller) RouteUpdateClient(opts *bind.CallOpts, clientId string, protoClientMessage []byte) ([4]byte, []byte, error)
- func (_Qbftclient *QbftclientCaller) VerifyMembership(opts *bind.CallOpts, clientId string, height HeightData, ...) (bool, error)
- func (_Qbftclient *QbftclientCaller) VerifyNonMembership(opts *bind.CallOpts, clientId string, height HeightData, ...) (bool, error)
- type QbftclientCallerRaw
- type QbftclientCallerSession
- func (_Qbftclient *QbftclientCallerSession) GetClientState(clientId string) ([]byte, bool, error)
- func (_Qbftclient *QbftclientCallerSession) GetConsensusState(clientId string, height HeightData) ([]byte, bool, error)
- func (_Qbftclient *QbftclientCallerSession) GetLatestHeight(clientId string) (HeightData, error)
- func (_Qbftclient *QbftclientCallerSession) GetLatestInfo(clientId string) (struct{ ... }, error)
- func (_Qbftclient *QbftclientCallerSession) GetStatus(arg0 string) (uint8, error)
- func (_Qbftclient *QbftclientCallerSession) GetTimestampAtHeight(clientId string, height HeightData) (uint64, error)
- func (_Qbftclient *QbftclientCallerSession) IbcHandler() (common.Address, error)
- func (_Qbftclient *QbftclientCallerSession) RouteUpdateClient(clientId string, protoClientMessage []byte) ([4]byte, []byte, error)
- func (_Qbftclient *QbftclientCallerSession) VerifyMembership(clientId string, height HeightData, delayTimePeriod uint64, ...) (bool, error)
- func (_Qbftclient *QbftclientCallerSession) VerifyNonMembership(clientId string, height HeightData, delayTimePeriod uint64, ...) (bool, error)
- type QbftclientFilterer
- type QbftclientRaw
- func (_Qbftclient *QbftclientRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Qbftclient *QbftclientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Qbftclient *QbftclientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type QbftclientSession
- func (_Qbftclient *QbftclientSession) GetClientState(clientId string) ([]byte, bool, error)
- func (_Qbftclient *QbftclientSession) GetConsensusState(clientId string, height HeightData) ([]byte, bool, error)
- func (_Qbftclient *QbftclientSession) GetLatestHeight(clientId string) (HeightData, error)
- func (_Qbftclient *QbftclientSession) GetLatestInfo(clientId string) (struct{ ... }, error)
- func (_Qbftclient *QbftclientSession) GetStatus(arg0 string) (uint8, error)
- func (_Qbftclient *QbftclientSession) GetTimestampAtHeight(clientId string, height HeightData) (uint64, error)
- func (_Qbftclient *QbftclientSession) IbcHandler() (common.Address, error)
- func (_Qbftclient *QbftclientSession) InitializeClient(clientId string, protoClientState []byte, protoConsensusState []byte) (*types.Transaction, error)
- func (_Qbftclient *QbftclientSession) RouteUpdateClient(clientId string, protoClientMessage []byte) ([4]byte, []byte, error)
- func (_Qbftclient *QbftclientSession) UpdateClient(clientId string, header IbcLightclientsQbftV1HeaderData) (*types.Transaction, error)
- func (_Qbftclient *QbftclientSession) VerifyMembership(clientId string, height HeightData, delayTimePeriod uint64, ...) (bool, error)
- func (_Qbftclient *QbftclientSession) VerifyNonMembership(clientId string, height HeightData, delayTimePeriod uint64, ...) (bool, error)
- type QbftclientTransactor
- type QbftclientTransactorRaw
- type QbftclientTransactorSession
- func (_Qbftclient *QbftclientTransactorSession) InitializeClient(clientId string, protoClientState []byte, protoConsensusState []byte) (*types.Transaction, error)
- func (_Qbftclient *QbftclientTransactorSession) UpdateClient(clientId string, header IbcLightclientsQbftV1HeaderData) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var QbftclientABI = QbftclientMetaData.ABI
QbftclientABI is the input ABI used to generate the binding from. Deprecated: Use QbftclientMetaData.ABI instead.
var QbftclientMetaData = &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\":\"ibcHandler\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"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\":\"structIbcLightclientsQbftV1Header.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\":\"EmptyValidators\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"HeaderFromFuture\",\"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\":\"InvalidChainID\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidClientStateLatestHeight\",\"inputs\":[]},{\"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\":\"LightClientClientStateNotFound\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"type\":\"error\",\"name\":\"LightClientConsensusStateExpired\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"LightClientConsensusStateNotFound\",\"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\":\"LightClientInvalidCaller\",\"inputs\":[{\"name\":\"caller\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"LightClientNotActiveClient\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"type\":\"error\",\"name\":\"LightClientUnexpectedProtoAnyTypeURL\",\"inputs\":[{\"name\":\"url\",\"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\"}]}]",
}
QbftclientMetaData contains all meta data concerning the Qbftclient contract.
Functions ¶
This section is empty.
Types ¶
type HeightData ¶
HeightData is an auto generated low-level Go binding around an user-defined struct.
type IbcLightclientsQbftV1HeaderData ¶
type IbcLightclientsQbftV1HeaderData struct { BesuHeaderRlp []byte Seals [][]byte TrustedHeight HeightData AccountStateProof []byte }
IbcLightclientsQbftV1HeaderData is an auto generated low-level Go binding around an user-defined struct.
type Qbftclient ¶
type Qbftclient struct { QbftclientCaller // Read-only binding to the contract QbftclientTransactor // Write-only binding to the contract QbftclientFilterer // Log filterer for contract events }
Qbftclient is an auto generated Go binding around an Ethereum contract.
func NewQbftclient ¶
func NewQbftclient(address common.Address, backend bind.ContractBackend) (*Qbftclient, error)
NewQbftclient creates a new instance of Qbftclient, bound to a specific deployed contract.
type QbftclientCaller ¶
type QbftclientCaller struct {
// contains filtered or unexported fields
}
QbftclientCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewQbftclientCaller ¶
func NewQbftclientCaller(address common.Address, caller bind.ContractCaller) (*QbftclientCaller, error)
NewQbftclientCaller creates a new read-only instance of Qbftclient, bound to a specific deployed contract.
func (*QbftclientCaller) GetClientState ¶
func (_Qbftclient *QbftclientCaller) 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 (*QbftclientCaller) GetConsensusState ¶
func (_Qbftclient *QbftclientCaller) 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 (*QbftclientCaller) GetLatestHeight ¶
func (_Qbftclient *QbftclientCaller) 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 (*QbftclientCaller) GetLatestInfo ¶
func (_Qbftclient *QbftclientCaller) 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 (*QbftclientCaller) GetStatus ¶
GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.
Solidity: function getStatus(string ) pure returns(uint8)
func (*QbftclientCaller) GetTimestampAtHeight ¶
func (_Qbftclient *QbftclientCaller) 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 (*QbftclientCaller) IbcHandler ¶
IbcHandler is a free data retrieval call binding the contract method 0x2dc1bd40.
Solidity: function ibcHandler() view returns(address)
func (*QbftclientCaller) RouteUpdateClient ¶
func (_Qbftclient *QbftclientCaller) 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 (*QbftclientCaller) VerifyMembership ¶
func (_Qbftclient *QbftclientCaller) 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 (*QbftclientCaller) VerifyNonMembership ¶
func (_Qbftclient *QbftclientCaller) 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 QbftclientCallerRaw ¶
type QbftclientCallerRaw struct {
Contract *QbftclientCaller // Generic read-only contract binding to access the raw methods on
}
QbftclientCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*QbftclientCallerRaw) Call ¶
func (_Qbftclient *QbftclientCallerRaw) 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 QbftclientCallerSession ¶
type QbftclientCallerSession struct { Contract *QbftclientCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
QbftclientCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*QbftclientCallerSession) GetClientState ¶
func (_Qbftclient *QbftclientCallerSession) 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 (*QbftclientCallerSession) GetConsensusState ¶
func (_Qbftclient *QbftclientCallerSession) 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 (*QbftclientCallerSession) GetLatestHeight ¶
func (_Qbftclient *QbftclientCallerSession) 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 (*QbftclientCallerSession) GetLatestInfo ¶
func (_Qbftclient *QbftclientCallerSession) 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 (*QbftclientCallerSession) GetStatus ¶
func (_Qbftclient *QbftclientCallerSession) 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 (*QbftclientCallerSession) GetTimestampAtHeight ¶
func (_Qbftclient *QbftclientCallerSession) 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 (*QbftclientCallerSession) IbcHandler ¶
func (_Qbftclient *QbftclientCallerSession) IbcHandler() (common.Address, error)
IbcHandler is a free data retrieval call binding the contract method 0x2dc1bd40.
Solidity: function ibcHandler() view returns(address)
func (*QbftclientCallerSession) RouteUpdateClient ¶
func (_Qbftclient *QbftclientCallerSession) 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 (*QbftclientCallerSession) VerifyMembership ¶
func (_Qbftclient *QbftclientCallerSession) 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 (*QbftclientCallerSession) VerifyNonMembership ¶
func (_Qbftclient *QbftclientCallerSession) 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 QbftclientFilterer ¶
type QbftclientFilterer struct {
// contains filtered or unexported fields
}
QbftclientFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewQbftclientFilterer ¶
func NewQbftclientFilterer(address common.Address, filterer bind.ContractFilterer) (*QbftclientFilterer, error)
NewQbftclientFilterer creates a new log filterer instance of Qbftclient, bound to a specific deployed contract.
type QbftclientRaw ¶
type QbftclientRaw struct {
Contract *Qbftclient // Generic contract binding to access the raw methods on
}
QbftclientRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*QbftclientRaw) Call ¶
func (_Qbftclient *QbftclientRaw) 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 (*QbftclientRaw) Transact ¶
func (_Qbftclient *QbftclientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*QbftclientRaw) Transfer ¶
func (_Qbftclient *QbftclientRaw) 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 QbftclientSession ¶
type QbftclientSession struct { Contract *Qbftclient // 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 }
QbftclientSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*QbftclientSession) GetClientState ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) GetConsensusState ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) GetLatestHeight ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) GetLatestInfo ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) GetStatus ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) GetTimestampAtHeight ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) IbcHandler ¶
func (_Qbftclient *QbftclientSession) IbcHandler() (common.Address, error)
IbcHandler is a free data retrieval call binding the contract method 0x2dc1bd40.
Solidity: function ibcHandler() view returns(address)
func (*QbftclientSession) InitializeClient ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) RouteUpdateClient ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) UpdateClient ¶
func (_Qbftclient *QbftclientSession) UpdateClient(clientId string, header IbcLightclientsQbftV1HeaderData) (*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 (*QbftclientSession) VerifyMembership ¶
func (_Qbftclient *QbftclientSession) 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 (*QbftclientSession) VerifyNonMembership ¶
func (_Qbftclient *QbftclientSession) 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 QbftclientTransactor ¶
type QbftclientTransactor struct {
// contains filtered or unexported fields
}
QbftclientTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewQbftclientTransactor ¶
func NewQbftclientTransactor(address common.Address, transactor bind.ContractTransactor) (*QbftclientTransactor, error)
NewQbftclientTransactor creates a new write-only instance of Qbftclient, bound to a specific deployed contract.
func (*QbftclientTransactor) InitializeClient ¶
func (_Qbftclient *QbftclientTransactor) 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 (*QbftclientTransactor) UpdateClient ¶
func (_Qbftclient *QbftclientTransactor) UpdateClient(opts *bind.TransactOpts, clientId string, header IbcLightclientsQbftV1HeaderData) (*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 QbftclientTransactorRaw ¶
type QbftclientTransactorRaw struct {
Contract *QbftclientTransactor // Generic write-only contract binding to access the raw methods on
}
QbftclientTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*QbftclientTransactorRaw) Transact ¶
func (_Qbftclient *QbftclientTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*QbftclientTransactorRaw) Transfer ¶
func (_Qbftclient *QbftclientTransactorRaw) 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 QbftclientTransactorSession ¶
type QbftclientTransactorSession struct { Contract *QbftclientTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
QbftclientTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*QbftclientTransactorSession) InitializeClient ¶
func (_Qbftclient *QbftclientTransactorSession) 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 (*QbftclientTransactorSession) UpdateClient ¶
func (_Qbftclient *QbftclientTransactorSession) UpdateClient(clientId string, header IbcLightclientsQbftV1HeaderData) (*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)