mockclient

package
v0.3.39 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MockclientABI = MockclientMetaData.ABI

MockclientABI is the input ABI used to generate the binding from. Deprecated: Use MockclientMetaData.ABI instead.

View Source
var MockclientMetaData = &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\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumILightClient.ClientStatus\"}],\"stateMutability\":\"view\"},{\"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\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"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\":\"setStatus\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"status\",\"type\":\"uint8\",\"internalType\":\"enumILightClient.ClientStatus\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"updateClient\",\"inputs\":[{\"name\":\"clientId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"header\",\"type\":\"tuple\",\"internalType\":\"structIbcLightclientsMockV1Header.Data\",\"components\":[{\"name\":\"height\",\"type\":\"tuple\",\"internalType\":\"structHeight.Data\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"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\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"\",\"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\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"\",\"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\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"InvalidClientState\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidConsensusState\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidHeader\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidPrefix\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidProof\",\"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\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
}

MockclientMetaData contains all meta data concerning the Mockclient 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 IbcLightclientsMockV1HeaderData

type IbcLightclientsMockV1HeaderData struct {
	Height    HeightData
	Timestamp uint64
}

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

type Mockclient

type Mockclient struct {
	MockclientCaller     // Read-only binding to the contract
	MockclientTransactor // Write-only binding to the contract
	MockclientFilterer   // Log filterer for contract events
}

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

func NewMockclient

func NewMockclient(address common.Address, backend bind.ContractBackend) (*Mockclient, error)

NewMockclient creates a new instance of Mockclient, bound to a specific deployed contract.

type MockclientCaller

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

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

func NewMockclientCaller

func NewMockclientCaller(address common.Address, caller bind.ContractCaller) (*MockclientCaller, error)

NewMockclientCaller creates a new read-only instance of Mockclient, bound to a specific deployed contract.

func (*MockclientCaller) GetClientState

func (_Mockclient *MockclientCaller) 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 (*MockclientCaller) GetConsensusState

func (_Mockclient *MockclientCaller) 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 (*MockclientCaller) GetLatestHeight

func (_Mockclient *MockclientCaller) 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 (*MockclientCaller) GetLatestInfo added in v0.3.26

func (_Mockclient *MockclientCaller) 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 (*MockclientCaller) GetStatus

func (_Mockclient *MockclientCaller) GetStatus(opts *bind.CallOpts, clientId string) (uint8, error)

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

Solidity: function getStatus(string clientId) view returns(uint8)

func (*MockclientCaller) GetTimestampAtHeight

func (_Mockclient *MockclientCaller) 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 (*MockclientCaller) Owner

func (_Mockclient *MockclientCaller) 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 (*MockclientCaller) RouteUpdateClient

func (_Mockclient *MockclientCaller) 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 (*MockclientCaller) VerifyMembership

func (_Mockclient *MockclientCaller) VerifyMembership(opts *bind.CallOpts, clientId string, height HeightData, arg2 uint64, arg3 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 , uint64 , bytes proof, bytes prefix, bytes path, bytes value) view returns(bool)

func (*MockclientCaller) VerifyNonMembership

func (_Mockclient *MockclientCaller) VerifyNonMembership(opts *bind.CallOpts, clientId string, height HeightData, arg2 uint64, arg3 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 , uint64 , bytes proof, bytes prefix, bytes path) view returns(bool)

type MockclientCallerRaw

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

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

func (*MockclientCallerRaw) Call

func (_Mockclient *MockclientCallerRaw) 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 MockclientCallerSession

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

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

func (*MockclientCallerSession) GetClientState

func (_Mockclient *MockclientCallerSession) 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 (*MockclientCallerSession) GetConsensusState

func (_Mockclient *MockclientCallerSession) 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 (*MockclientCallerSession) GetLatestHeight

func (_Mockclient *MockclientCallerSession) 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 (*MockclientCallerSession) GetLatestInfo added in v0.3.26

func (_Mockclient *MockclientCallerSession) 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 (*MockclientCallerSession) GetStatus

func (_Mockclient *MockclientCallerSession) GetStatus(clientId string) (uint8, error)

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

Solidity: function getStatus(string clientId) view returns(uint8)

func (*MockclientCallerSession) GetTimestampAtHeight

func (_Mockclient *MockclientCallerSession) 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 (*MockclientCallerSession) Owner

func (_Mockclient *MockclientCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*MockclientCallerSession) RouteUpdateClient

func (_Mockclient *MockclientCallerSession) 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 (*MockclientCallerSession) VerifyMembership

func (_Mockclient *MockclientCallerSession) VerifyMembership(clientId string, height HeightData, arg2 uint64, arg3 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 , uint64 , bytes proof, bytes prefix, bytes path, bytes value) view returns(bool)

func (*MockclientCallerSession) VerifyNonMembership

func (_Mockclient *MockclientCallerSession) VerifyNonMembership(clientId string, height HeightData, arg2 uint64, arg3 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 , uint64 , bytes proof, bytes prefix, bytes path) view returns(bool)

type MockclientFilterer

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

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

func NewMockclientFilterer

func NewMockclientFilterer(address common.Address, filterer bind.ContractFilterer) (*MockclientFilterer, error)

NewMockclientFilterer creates a new log filterer instance of Mockclient, bound to a specific deployed contract.

func (*MockclientFilterer) FilterOwnershipTransferred

func (_Mockclient *MockclientFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MockclientOwnershipTransferredIterator, error)

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

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

func (*MockclientFilterer) ParseOwnershipTransferred

func (_Mockclient *MockclientFilterer) ParseOwnershipTransferred(log types.Log) (*MockclientOwnershipTransferred, error)

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

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

func (*MockclientFilterer) WatchOwnershipTransferred

func (_Mockclient *MockclientFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MockclientOwnershipTransferred, 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 MockclientOwnershipTransferred

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

MockclientOwnershipTransferred represents a OwnershipTransferred event raised by the Mockclient contract.

type MockclientOwnershipTransferredIterator

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

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

func (*MockclientOwnershipTransferredIterator) Close

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

func (*MockclientOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockclientOwnershipTransferredIterator) 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 MockclientRaw

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

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

func (*MockclientRaw) Call

func (_Mockclient *MockclientRaw) 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 (*MockclientRaw) Transact

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

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

func (*MockclientRaw) Transfer

func (_Mockclient *MockclientRaw) 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 MockclientSession

type MockclientSession struct {
	Contract     *Mockclient       // 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
}

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

func (*MockclientSession) GetClientState

func (_Mockclient *MockclientSession) 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 (*MockclientSession) GetConsensusState

func (_Mockclient *MockclientSession) 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 (*MockclientSession) GetLatestHeight

func (_Mockclient *MockclientSession) 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 (*MockclientSession) GetLatestInfo added in v0.3.26

func (_Mockclient *MockclientSession) 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 (*MockclientSession) GetStatus

func (_Mockclient *MockclientSession) GetStatus(clientId string) (uint8, error)

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

Solidity: function getStatus(string clientId) view returns(uint8)

func (*MockclientSession) GetTimestampAtHeight

func (_Mockclient *MockclientSession) 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 (*MockclientSession) InitializeClient

func (_Mockclient *MockclientSession) 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 (*MockclientSession) Owner

func (_Mockclient *MockclientSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*MockclientSession) RenounceOwnership

func (_Mockclient *MockclientSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*MockclientSession) RouteUpdateClient

func (_Mockclient *MockclientSession) 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 (*MockclientSession) SetStatus

func (_Mockclient *MockclientSession) SetStatus(clientId string, status uint8) (*types.Transaction, error)

SetStatus is a paid mutator transaction binding the contract method 0xdeaab7a9.

Solidity: function setStatus(string clientId, uint8 status) returns()

func (*MockclientSession) TransferOwnership

func (_Mockclient *MockclientSession) 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 (*MockclientSession) UpdateClient

func (_Mockclient *MockclientSession) UpdateClient(clientId string, header IbcLightclientsMockV1HeaderData) (*types.Transaction, error)

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

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

func (*MockclientSession) VerifyMembership

func (_Mockclient *MockclientSession) VerifyMembership(clientId string, height HeightData, arg2 uint64, arg3 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 , uint64 , bytes proof, bytes prefix, bytes path, bytes value) view returns(bool)

func (*MockclientSession) VerifyNonMembership

func (_Mockclient *MockclientSession) VerifyNonMembership(clientId string, height HeightData, arg2 uint64, arg3 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 , uint64 , bytes proof, bytes prefix, bytes path) view returns(bool)

type MockclientTransactor

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

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

func NewMockclientTransactor

func NewMockclientTransactor(address common.Address, transactor bind.ContractTransactor) (*MockclientTransactor, error)

NewMockclientTransactor creates a new write-only instance of Mockclient, bound to a specific deployed contract.

func (*MockclientTransactor) InitializeClient

func (_Mockclient *MockclientTransactor) 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 (*MockclientTransactor) RenounceOwnership

func (_Mockclient *MockclientTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*MockclientTransactor) SetStatus

func (_Mockclient *MockclientTransactor) SetStatus(opts *bind.TransactOpts, clientId string, status uint8) (*types.Transaction, error)

SetStatus is a paid mutator transaction binding the contract method 0xdeaab7a9.

Solidity: function setStatus(string clientId, uint8 status) returns()

func (*MockclientTransactor) TransferOwnership

func (_Mockclient *MockclientTransactor) 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 (*MockclientTransactor) UpdateClient

func (_Mockclient *MockclientTransactor) UpdateClient(opts *bind.TransactOpts, clientId string, header IbcLightclientsMockV1HeaderData) (*types.Transaction, error)

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

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

type MockclientTransactorRaw

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

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

func (*MockclientTransactorRaw) Transact

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

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

func (*MockclientTransactorRaw) Transfer

func (_Mockclient *MockclientTransactorRaw) 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 MockclientTransactorSession

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

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

func (*MockclientTransactorSession) InitializeClient

func (_Mockclient *MockclientTransactorSession) 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 (*MockclientTransactorSession) RenounceOwnership

func (_Mockclient *MockclientTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*MockclientTransactorSession) SetStatus

func (_Mockclient *MockclientTransactorSession) SetStatus(clientId string, status uint8) (*types.Transaction, error)

SetStatus is a paid mutator transaction binding the contract method 0xdeaab7a9.

Solidity: function setStatus(string clientId, uint8 status) returns()

func (*MockclientTransactorSession) TransferOwnership

func (_Mockclient *MockclientTransactorSession) 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 (*MockclientTransactorSession) UpdateClient

func (_Mockclient *MockclientTransactorSession) UpdateClient(clientId string, header IbcLightclientsMockV1HeaderData) (*types.Transaction, error)

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

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

Jump to

Keyboard shortcuts

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