types

package
v0.40.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AttributeKeyClientID        = "client_id"
	AttributeKeyClientType      = "client_type"
	AttributeKeyConsensusHeight = "consensus_height"
)

IBC client events

View Source
const (
	// SubModuleName defines the IBC client name
	SubModuleName string = "client"

	// RouterKey is the message route for IBC client
	RouterKey string = SubModuleName

	// QuerierRoute is the querier route for IBC client
	QuerierRoute string = SubModuleName
)
View Source
const (
	TypeMsgCreateClient       string = "create_client"
	TypeMsgUpdateClient       string = "update_client"
	TypeMsgUpgradeClient      string = "upgrade_client"
	TypeMsgSubmitMisbehaviour string = "submit_misbehaviour"
)

message types for the IBC client

View Source
const (
	// ProposalTypeClientUpdate defines the type for a ClientUpdateProposal
	ProposalTypeClientUpdate = "ClientUpdate"
)

Variables

View Source
var (
	ErrInvalidLengthClient        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClient          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupClient = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrClientExists                           = sdkerrors.Register(SubModuleName, 2, "light client already exists")
	ErrInvalidClient                          = sdkerrors.Register(SubModuleName, 3, "light client is invalid")
	ErrClientNotFound                         = sdkerrors.Register(SubModuleName, 4, "light client not found")
	ErrClientFrozen                           = sdkerrors.Register(SubModuleName, 5, "light client is frozen due to misbehaviour")
	ErrConsensusStateNotFound                 = sdkerrors.Register(SubModuleName, 6, "consensus state not found")
	ErrInvalidConsensus                       = sdkerrors.Register(SubModuleName, 7, "invalid consensus state")
	ErrClientTypeNotFound                     = sdkerrors.Register(SubModuleName, 8, "client type not found")
	ErrInvalidClientType                      = sdkerrors.Register(SubModuleName, 9, "invalid client type")
	ErrRootNotFound                           = sdkerrors.Register(SubModuleName, 10, "commitment root not found")
	ErrInvalidHeader                          = sdkerrors.Register(SubModuleName, 11, "invalid client header")
	ErrInvalidMisbehaviour                    = sdkerrors.Register(SubModuleName, 12, "invalid light client misbehaviour")
	ErrFailedClientStateVerification          = sdkerrors.Register(SubModuleName, 13, "client state verification failed")
	ErrFailedClientConsensusStateVerification = sdkerrors.Register(SubModuleName, 14, "client consensus state verification failed")
	ErrFailedConnectionStateVerification      = sdkerrors.Register(SubModuleName, 15, "connection state verification failed")
	ErrFailedChannelStateVerification         = sdkerrors.Register(SubModuleName, 16, "channel state verification failed")
	ErrFailedPacketCommitmentVerification     = sdkerrors.Register(SubModuleName, 17, "packet commitment verification failed")
	ErrFailedPacketAckVerification            = sdkerrors.Register(SubModuleName, 18, "packet acknowledgement verification failed")
	ErrFailedPacketReceiptVerification        = sdkerrors.Register(SubModuleName, 19, "packet receipt verification failed")
	ErrFailedNextSeqRecvVerification          = sdkerrors.Register(SubModuleName, 20, "next sequence receive verification failed")
	ErrSelfConsensusStateNotFound             = sdkerrors.Register(SubModuleName, 21, "self consensus state not found")
	ErrUpdateClientFailed                     = sdkerrors.Register(SubModuleName, 22, "unable to update light client")
	ErrInvalidUpdateClientProposal            = sdkerrors.Register(SubModuleName, 23, "invalid update client proposal")
	ErrInvalidUpgradeClient                   = sdkerrors.Register(SubModuleName, 24, "invalid client upgrade")
)

IBC client sentinel errors

View Source
var (
	EventTypeCreateClient         = "create_client"
	EventTypeUpdateClient         = "update_client"
	EventTypeUpgradeClient        = "upgrade_client"
	EventTypeSubmitMisbehaviour   = "client_misbehaviour"
	EventTypeUpdateClientProposal = "update_client_proposal"

	AttributeValueCategory = fmt.Sprintf("%s_%s", host.ModuleName, SubModuleName)
)

IBC client events vars

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var IsVersionFormat = regexp.MustCompile(`^.+[^-]-{1}[1-9][0-9]*$`).MatchString

IsVersionFormat checks if a chainID is in the format required for parsing versions The chainID must be in the form: `{chainID}-{version} 24-host may enforce stricter checks on chainID

Functions

func MarshalClientState

func MarshalClientState(cdc codec.BinaryMarshaler, clientStateI exported.ClientState) ([]byte, error)

MarshalClientState marshals an ClientState interface. If the given type implements the Marshaler interface, it is treated as a Proto-defined message and serialized that way.

func MarshalConsensusState

func MarshalConsensusState(cdc codec.BinaryMarshaler, consensusStateI exported.ConsensusState) ([]byte, error)

MarshalConsensusState marshals an ConsensusState interface. If the given type implements the Marshaler interface, it is treated as a Proto-defined message and serialized that way.

func MustMarshalClientState

func MustMarshalClientState(cdc codec.BinaryMarshaler, clientState exported.ClientState) []byte

MustMarshalClientState attempts to encode an ClientState object and returns the raw encoded bytes. It panics on error.

func MustMarshalConsensusState

func MustMarshalConsensusState(cdc codec.BinaryMarshaler, consensusState exported.ConsensusState) []byte

MustMarshalConsensusState attempts to encode an ConsensusState object and returns the raw encoded bytes. It panics on error.

func MustPackConsensusState

func MustPackConsensusState(consensusState exported.ConsensusState) *codectypes.Any

MustPackConsensusState calls PackConsensusState and panics on error.

func MustUnmarshalClientState

func MustUnmarshalClientState(cdc codec.BinaryMarshaler, bz []byte) exported.ClientState

MustUnmarshalClientState attempts to decode and return an ClientState object from raw encoded bytes. It panics on error.

func MustUnmarshalConsensusState

func MustUnmarshalConsensusState(cdc codec.BinaryMarshaler, bz []byte) exported.ConsensusState

MustUnmarshalConsensusState attempts to decode and return an ConsensusState object from raw encoded bytes. It panics on error.

func PackClientState

func PackClientState(clientState exported.ClientState) (*codectypes.Any, error)

PackClientState constructs a new Any packed with the given client state value. It returns an error if the client state can't be casted to a protobuf message or if the concrete implemention is not registered to the protobuf codec.

func PackConsensusState

func PackConsensusState(consensusState exported.ConsensusState) (*codectypes.Any, error)

PackConsensusState constructs a new Any packed with the given consensus state value. It returns an error if the consensus state can't be casted to a protobuf message or if the concrete implemention is not registered to the protobuf codec.

func PackHeader

func PackHeader(header exported.Header) (*codectypes.Any, error)

PackHeader constructs a new Any packed with the given header value. It returns an error if the header can't be casted to a protobuf message or if the concrete implemention is not registered to the protobuf codec.

func PackMisbehaviour

func PackMisbehaviour(misbehaviour exported.Misbehaviour) (*codectypes.Any, error)

PackMisbehaviour constructs a new Any packed with the given misbehaviour value. It returns an error if the misbehaviour can't be casted to a protobuf message or if the concrete implemention is not registered to the protobuf codec.

func ParseChainID

func ParseChainID(chainID string) uint64

ParseChainID is a utility function that returns an version number from the given ChainID. ParseChainID attempts to parse a chain id in the format: `{chainID}-{version}` and return the versionnumber as a uint64. If the chainID is not in the expected format, a default version value of 0 is returned.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the client interfaces to protobuf Any.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SetVersionNumber

func SetVersionNumber(chainID string, version uint64) (string, error)

SetVersionNumber takes a chainID in valid version format and swaps the version number in the chainID with the given version number.

func UnmarshalClientState

func UnmarshalClientState(cdc codec.BinaryMarshaler, bz []byte) (exported.ClientState, error)

UnmarshalClientState returns an ClientState interface from raw encoded clientState bytes of a Proto-based ClientState type. An error is returned upon decoding failure.

func UnmarshalConsensusState

func UnmarshalConsensusState(cdc codec.BinaryMarshaler, bz []byte) (exported.ConsensusState, error)

UnmarshalConsensusState returns an ConsensusState interface from raw encoded clientState bytes of a Proto-based ConsensusState type. An error is returned upon decoding failure.

func UnpackClientState

func UnpackClientState(any *codectypes.Any) (exported.ClientState, error)

UnpackClientState unpacks an Any into a ClientState. It returns an error if the client state can't be unpacked into a ClientState.

func UnpackConsensusState

func UnpackConsensusState(any *codectypes.Any) (exported.ConsensusState, error)

UnpackConsensusState unpacks an Any into a ConsensusState. It returns an error if the consensus state can't be unpacked into a ConsensusState.

func UnpackHeader

func UnpackHeader(any *codectypes.Any) (exported.Header, error)

UnpackHeader unpacks an Any into a Header. It returns an error if the consensus state can't be unpacked into a Header.

func UnpackMisbehaviour

func UnpackMisbehaviour(any *codectypes.Any) (exported.Misbehaviour, error)

UnpackMisbehaviour unpacks an Any into a Misbehaviour. It returns an error if the Any can't be unpacked into a Misbehaviour.

Types

type ClientConsensusStates

type ClientConsensusStates struct {
	// client identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
	// consensus states and their heights associated with the client
	ConsensusStates []ConsensusStateWithHeight `protobuf:"bytes,2,rep,name=consensus_states,json=consensusStates,proto3" json:"consensus_states" yaml:"consensus_states"`
}

ClientConsensusStates defines all the stored consensus states for a given client.

func NewClientConsensusStates

func NewClientConsensusStates(clientID string, consensusStates []ConsensusStateWithHeight) ClientConsensusStates

NewClientConsensusStates creates a new ClientConsensusStates instance.

func (*ClientConsensusStates) Descriptor

func (*ClientConsensusStates) Descriptor() ([]byte, []int)

func (*ClientConsensusStates) GetClientId

func (m *ClientConsensusStates) GetClientId() string

func (*ClientConsensusStates) GetConsensusStates

func (m *ClientConsensusStates) GetConsensusStates() []ConsensusStateWithHeight

func (*ClientConsensusStates) Marshal

func (m *ClientConsensusStates) Marshal() (dAtA []byte, err error)

func (*ClientConsensusStates) MarshalTo

func (m *ClientConsensusStates) MarshalTo(dAtA []byte) (int, error)

func (*ClientConsensusStates) MarshalToSizedBuffer

func (m *ClientConsensusStates) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClientConsensusStates) ProtoMessage

func (*ClientConsensusStates) ProtoMessage()

func (*ClientConsensusStates) Reset

func (m *ClientConsensusStates) Reset()

func (*ClientConsensusStates) Size

func (m *ClientConsensusStates) Size() (n int)

func (*ClientConsensusStates) String

func (m *ClientConsensusStates) String() string

func (*ClientConsensusStates) Unmarshal

func (m *ClientConsensusStates) Unmarshal(dAtA []byte) error

func (ClientConsensusStates) UnpackInterfaces

func (ccs ClientConsensusStates) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*ClientConsensusStates) XXX_DiscardUnknown

func (m *ClientConsensusStates) XXX_DiscardUnknown()

func (*ClientConsensusStates) XXX_Marshal

func (m *ClientConsensusStates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientConsensusStates) XXX_Merge

func (m *ClientConsensusStates) XXX_Merge(src proto.Message)

func (*ClientConsensusStates) XXX_Size

func (m *ClientConsensusStates) XXX_Size() int

func (*ClientConsensusStates) XXX_Unmarshal

func (m *ClientConsensusStates) XXX_Unmarshal(b []byte) error

type ClientUpdateProposal

type ClientUpdateProposal struct {
	// the title of the update proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the client identifier for the client to be updated if the proposal passes
	ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
	// the header used to update the client if the proposal passes
	Header *types.Any `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"`
}

ClientUpdateProposal is a governance proposal. If it passes, the client is updated with the provided header. The update may fail if the header is not valid given certain conditions specified by the client implementation.

func NewClientUpdateProposal

func NewClientUpdateProposal(title, description, clientID string, header exported.Header) (*ClientUpdateProposal, error)

NewClientUpdateProposal creates a new client update proposal.

func (*ClientUpdateProposal) Descriptor

func (*ClientUpdateProposal) Descriptor() ([]byte, []int)

func (*ClientUpdateProposal) GetDescription

func (cup *ClientUpdateProposal) GetDescription() string

GetDescription returns the description of a client update proposal.

func (*ClientUpdateProposal) GetTitle

func (cup *ClientUpdateProposal) GetTitle() string

GetTitle returns the title of a client update proposal.

func (*ClientUpdateProposal) Marshal

func (m *ClientUpdateProposal) Marshal() (dAtA []byte, err error)

func (*ClientUpdateProposal) MarshalTo

func (m *ClientUpdateProposal) MarshalTo(dAtA []byte) (int, error)

func (*ClientUpdateProposal) MarshalToSizedBuffer

func (m *ClientUpdateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClientUpdateProposal) ProposalRoute

func (cup *ClientUpdateProposal) ProposalRoute() string

ProposalRoute returns the routing key of a client update proposal.

func (*ClientUpdateProposal) ProposalType

func (cup *ClientUpdateProposal) ProposalType() string

ProposalType returns the type of a client update proposal.

func (*ClientUpdateProposal) ProtoMessage

func (*ClientUpdateProposal) ProtoMessage()

func (*ClientUpdateProposal) Reset

func (m *ClientUpdateProposal) Reset()

func (*ClientUpdateProposal) Size

func (m *ClientUpdateProposal) Size() (n int)

func (*ClientUpdateProposal) String

func (m *ClientUpdateProposal) String() string

func (*ClientUpdateProposal) Unmarshal

func (m *ClientUpdateProposal) Unmarshal(dAtA []byte) error

func (*ClientUpdateProposal) ValidateBasic

func (cup *ClientUpdateProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*ClientUpdateProposal) XXX_DiscardUnknown

func (m *ClientUpdateProposal) XXX_DiscardUnknown()

func (*ClientUpdateProposal) XXX_Marshal

func (m *ClientUpdateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientUpdateProposal) XXX_Merge

func (m *ClientUpdateProposal) XXX_Merge(src proto.Message)

func (*ClientUpdateProposal) XXX_Size

func (m *ClientUpdateProposal) XXX_Size() int

func (*ClientUpdateProposal) XXX_Unmarshal

func (m *ClientUpdateProposal) XXX_Unmarshal(b []byte) error

type ClientsConsensusStates

type ClientsConsensusStates []ClientConsensusStates

ClientsConsensusStates defines a slice of ClientConsensusStates that supports the sort interface

func (ClientsConsensusStates) Len

func (ccs ClientsConsensusStates) Len() int

Len implements sort.Interface

func (ClientsConsensusStates) Less

func (ccs ClientsConsensusStates) Less(i, j int) bool

Less implements sort.Interface

func (ClientsConsensusStates) Sort

Sort is a helper function to sort the set of ClientsConsensusStates in place

func (ClientsConsensusStates) Swap

func (ccs ClientsConsensusStates) Swap(i, j int)

Swap implements sort.Interface

func (ClientsConsensusStates) UnpackInterfaces

func (ccs ClientsConsensusStates) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

type ConsensusStateWithHeight

type ConsensusStateWithHeight struct {
	// consensus state height
	Height Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height"`
	// consensus state
	ConsensusState *types.Any `protobuf:"bytes,2,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty" yaml"consensus_state"`
}

ConsensusStateWithHeight defines a consensus state with an additional height field.

func NewConsensusStateWithHeight

func NewConsensusStateWithHeight(height Height, consensusState exported.ConsensusState) ConsensusStateWithHeight

NewConsensusStateWithHeight creates a new ConsensusStateWithHeight instance

func (*ConsensusStateWithHeight) Descriptor

func (*ConsensusStateWithHeight) Descriptor() ([]byte, []int)

func (*ConsensusStateWithHeight) GetConsensusState

func (m *ConsensusStateWithHeight) GetConsensusState() *types.Any

func (*ConsensusStateWithHeight) GetHeight

func (m *ConsensusStateWithHeight) GetHeight() Height

func (*ConsensusStateWithHeight) Marshal

func (m *ConsensusStateWithHeight) Marshal() (dAtA []byte, err error)

func (*ConsensusStateWithHeight) MarshalTo

func (m *ConsensusStateWithHeight) MarshalTo(dAtA []byte) (int, error)

func (*ConsensusStateWithHeight) MarshalToSizedBuffer

func (m *ConsensusStateWithHeight) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConsensusStateWithHeight) ProtoMessage

func (*ConsensusStateWithHeight) ProtoMessage()

func (*ConsensusStateWithHeight) Reset

func (m *ConsensusStateWithHeight) Reset()

func (*ConsensusStateWithHeight) Size

func (m *ConsensusStateWithHeight) Size() (n int)

func (*ConsensusStateWithHeight) String

func (m *ConsensusStateWithHeight) String() string

func (*ConsensusStateWithHeight) Unmarshal

func (m *ConsensusStateWithHeight) Unmarshal(dAtA []byte) error

func (ConsensusStateWithHeight) UnpackInterfaces

func (cswh ConsensusStateWithHeight) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces

func (*ConsensusStateWithHeight) XXX_DiscardUnknown

func (m *ConsensusStateWithHeight) XXX_DiscardUnknown()

func (*ConsensusStateWithHeight) XXX_Marshal

func (m *ConsensusStateWithHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConsensusStateWithHeight) XXX_Merge

func (m *ConsensusStateWithHeight) XXX_Merge(src proto.Message)

func (*ConsensusStateWithHeight) XXX_Size

func (m *ConsensusStateWithHeight) XXX_Size() int

func (*ConsensusStateWithHeight) XXX_Unmarshal

func (m *ConsensusStateWithHeight) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// client states with their corresponding identifiers
	Clients []IdentifiedClientState `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients"`
	// consensus states from each client
	ClientsConsensus ClientsConsensusStates `` /* 160-byte string literal not displayed */
	// create localhost on initialization
	CreateLocalhost bool `` /* 131-byte string literal not displayed */
}

GenesisState defines the ibc client submodule's genesis state.

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState returns the ibc client submodule's default genesis state.

func NewGenesisState

func NewGenesisState(
	clients []IdentifiedClientState, clientsConsensus ClientsConsensusStates, createLocalhost bool,
) GenesisState

NewGenesisState creates a GenesisState instance.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetClients

func (m *GenesisState) GetClients() []IdentifiedClientState

func (*GenesisState) GetClientsConsensus

func (m *GenesisState) GetClientsConsensus() ClientsConsensusStates

func (*GenesisState) GetCreateLocalhost

func (m *GenesisState) GetCreateLocalhost() bool

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) UnpackInterfaces

func (gs GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type Height

type Height struct {
	// the version that the client is currently on
	VersionNumber uint64 `protobuf:"varint,1,opt,name=version_number,json=versionNumber,proto3" json:"version_number,omitempty" yaml:"version_number"`
	// the height within the given version
	VersionHeight uint64 `protobuf:"varint,2,opt,name=version_height,json=versionHeight,proto3" json:"version_height,omitempty" yaml:"version_height"`
}

Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients

Normally the VersionHeight is incremented at each height while keeping version number the same However some consensus algorithms may choose to reset the height in certain conditions e.g. hard forks, state-machine breaking changes In these cases, the version number is incremented so that height continues to be monitonically increasing even as the VersionHeight gets reset

func GetSelfHeight

func GetSelfHeight(ctx sdk.Context) Height

GetSelfHeight is a utility function that returns self height given context Version number is retrieved from ctx.ChainID()

func MustParseHeight

func MustParseHeight(heightStr string) Height

MustParseHeight will attempt to parse a string representation of a height and panic if parsing fails.

func NewHeight

func NewHeight(versionNumber, versionHeight uint64) Height

NewHeight is a constructor for the IBC height type

func ParseHeight

func ParseHeight(heightStr string) (Height, error)

ParseHeight is a utility function that takes a string representation of the height and returns a Height struct

func ZeroHeight

func ZeroHeight() Height

ZeroHeight is a helper function which returns an uninitialized height.

func (Height) Compare

func (h Height) Compare(other exported.Height) int64

Compare implements a method to compare two heights. When comparing two heights a, b we can call a.Compare(b) which will return -1 if a < b 0 if a = b 1 if a > b

It first compares based on version numbers, whichever has the higher version number is the higher height If version number is the same, then the version height is compared

func (Height) Decrement

func (h Height) Decrement() (decremented exported.Height, success bool)

Decrement will return a new height with the VersionHeight decremented If the VersionHeight is already at lowest value (1), then false success flag is returend

func (*Height) Descriptor

func (*Height) Descriptor() ([]byte, []int)

func (Height) EQ

func (h Height) EQ(other exported.Height) bool

EQ Helper comparison function returns true if h == other

func (Height) GT

func (h Height) GT(other exported.Height) bool

GT Helper comparison function returns true if h > other

func (Height) GTE

func (h Height) GTE(other exported.Height) bool

GTE Helper comparison function returns true if h >= other

func (Height) GetVersionHeight

func (h Height) GetVersionHeight() uint64

GetVersionHeight returns the version-height of the height

func (Height) GetVersionNumber

func (h Height) GetVersionNumber() uint64

GetVersionNumber returns the version-number of the height

func (Height) Increment

func (h Height) Increment() Height

Increment will return a height with the same version number but an incremented version height

func (Height) IsZero

func (h Height) IsZero() bool

IsZero returns true if height version and version-height are both 0

func (Height) LT

func (h Height) LT(other exported.Height) bool

LT Helper comparison function returns true if h < other

func (Height) LTE

func (h Height) LTE(other exported.Height) bool

LTE Helper comparison function returns true if h <= other

func (*Height) Marshal

func (m *Height) Marshal() (dAtA []byte, err error)

func (*Height) MarshalTo

func (m *Height) MarshalTo(dAtA []byte) (int, error)

func (*Height) MarshalToSizedBuffer

func (m *Height) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Height) ProtoMessage

func (*Height) ProtoMessage()

func (*Height) Reset

func (m *Height) Reset()

func (*Height) Size

func (m *Height) Size() (n int)

func (Height) String

func (h Height) String() string

String returns a string representation of Height

func (*Height) Unmarshal

func (m *Height) Unmarshal(dAtA []byte) error

func (*Height) XXX_DiscardUnknown

func (m *Height) XXX_DiscardUnknown()

func (*Height) XXX_Marshal

func (m *Height) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Height) XXX_Merge

func (m *Height) XXX_Merge(src proto.Message)

func (*Height) XXX_Size

func (m *Height) XXX_Size() int

func (*Height) XXX_Unmarshal

func (m *Height) XXX_Unmarshal(b []byte) error

type IdentifiedClientState

type IdentifiedClientState struct {
	// client identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
	// client state
	ClientState *types.Any `protobuf:"bytes,2,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty" yaml:"client_state"`
}

IdentifiedClientState defines a client state with an additional client identifier field.

func NewIdentifiedClientState

func NewIdentifiedClientState(clientID string, clientState exported.ClientState) IdentifiedClientState

NewIdentifiedClientState creates a new IdentifiedClientState instance

func (*IdentifiedClientState) Descriptor

func (*IdentifiedClientState) Descriptor() ([]byte, []int)

func (*IdentifiedClientState) GetClientId

func (m *IdentifiedClientState) GetClientId() string

func (*IdentifiedClientState) GetClientState

func (m *IdentifiedClientState) GetClientState() *types.Any

func (*IdentifiedClientState) Marshal

func (m *IdentifiedClientState) Marshal() (dAtA []byte, err error)

func (*IdentifiedClientState) MarshalTo

func (m *IdentifiedClientState) MarshalTo(dAtA []byte) (int, error)

func (*IdentifiedClientState) MarshalToSizedBuffer

func (m *IdentifiedClientState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IdentifiedClientState) ProtoMessage

func (*IdentifiedClientState) ProtoMessage()

func (*IdentifiedClientState) Reset

func (m *IdentifiedClientState) Reset()

func (*IdentifiedClientState) Size

func (m *IdentifiedClientState) Size() (n int)

func (*IdentifiedClientState) String

func (m *IdentifiedClientState) String() string

func (*IdentifiedClientState) Unmarshal

func (m *IdentifiedClientState) Unmarshal(dAtA []byte) error

func (IdentifiedClientState) UnpackInterfaces

func (ics IdentifiedClientState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces

func (*IdentifiedClientState) XXX_DiscardUnknown

func (m *IdentifiedClientState) XXX_DiscardUnknown()

func (*IdentifiedClientState) XXX_Marshal

func (m *IdentifiedClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IdentifiedClientState) XXX_Merge

func (m *IdentifiedClientState) XXX_Merge(src proto.Message)

func (*IdentifiedClientState) XXX_Size

func (m *IdentifiedClientState) XXX_Size() int

func (*IdentifiedClientState) XXX_Unmarshal

func (m *IdentifiedClientState) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// CreateClient defines a rpc handler method for MsgCreateClient.
	CreateClient(ctx context.Context, in *MsgCreateClient, opts ...grpc.CallOption) (*MsgCreateClientResponse, error)
	// UpdateClient defines a rpc handler method for MsgUpdateClient.
	UpdateClient(ctx context.Context, in *MsgUpdateClient, opts ...grpc.CallOption) (*MsgUpdateClientResponse, error)
	// UpgradeClient defines a rpc handler method for MsgUpgradeClient.
	UpgradeClient(ctx context.Context, in *MsgUpgradeClient, opts ...grpc.CallOption) (*MsgUpgradeClientResponse, error)
	// SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
	SubmitMisbehaviour(ctx context.Context, in *MsgSubmitMisbehaviour, opts ...grpc.CallOption) (*MsgSubmitMisbehaviourResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateClient

type MsgCreateClient struct {
	// client unique identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
	// light client state
	ClientState *types.Any `protobuf:"bytes,2,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty" yaml:"client_state"`
	// consensus state associated with the client that corresponds to a given
	// height.
	ConsensusState *types.Any `` /* 126-byte string literal not displayed */
	// signer address
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgCreateClient defines a message to create an IBC client

func NewMsgCreateClient

func NewMsgCreateClient(
	id string, clientState exported.ClientState, consensusState exported.ConsensusState, signer sdk.AccAddress,
) (*MsgCreateClient, error)

NewMsgCreateClient creates a new MsgCreateClient instance

func (*MsgCreateClient) Descriptor

func (*MsgCreateClient) Descriptor() ([]byte, []int)

func (MsgCreateClient) GetSignBytes

func (msg MsgCreateClient) GetSignBytes() []byte

GetSignBytes implements sdk.Msg. The function will panic since it is used for amino transaction verification which IBC does not support.

func (MsgCreateClient) GetSigners

func (msg MsgCreateClient) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgCreateClient) Marshal

func (m *MsgCreateClient) Marshal() (dAtA []byte, err error)

func (*MsgCreateClient) MarshalTo

func (m *MsgCreateClient) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateClient) MarshalToSizedBuffer

func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateClient) ProtoMessage

func (*MsgCreateClient) ProtoMessage()

func (*MsgCreateClient) Reset

func (m *MsgCreateClient) Reset()

func (MsgCreateClient) Route

func (msg MsgCreateClient) Route() string

Route implements sdk.Msg

func (*MsgCreateClient) Size

func (m *MsgCreateClient) Size() (n int)

func (*MsgCreateClient) String

func (m *MsgCreateClient) String() string

func (MsgCreateClient) Type

func (msg MsgCreateClient) Type() string

Type implements sdk.Msg

func (*MsgCreateClient) Unmarshal

func (m *MsgCreateClient) Unmarshal(dAtA []byte) error

func (MsgCreateClient) UnpackInterfaces

func (msg MsgCreateClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgCreateClient) ValidateBasic

func (msg MsgCreateClient) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgCreateClient) XXX_DiscardUnknown

func (m *MsgCreateClient) XXX_DiscardUnknown()

func (*MsgCreateClient) XXX_Marshal

func (m *MsgCreateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateClient) XXX_Merge

func (m *MsgCreateClient) XXX_Merge(src proto.Message)

func (*MsgCreateClient) XXX_Size

func (m *MsgCreateClient) XXX_Size() int

func (*MsgCreateClient) XXX_Unmarshal

func (m *MsgCreateClient) XXX_Unmarshal(b []byte) error

type MsgCreateClientResponse

type MsgCreateClientResponse struct {
}

MsgCreateClientResponse defines the Msg/CreateClient response type.

func (*MsgCreateClientResponse) Descriptor

func (*MsgCreateClientResponse) Descriptor() ([]byte, []int)

func (*MsgCreateClientResponse) Marshal

func (m *MsgCreateClientResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateClientResponse) MarshalTo

func (m *MsgCreateClientResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateClientResponse) MarshalToSizedBuffer

func (m *MsgCreateClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateClientResponse) ProtoMessage

func (*MsgCreateClientResponse) ProtoMessage()

func (*MsgCreateClientResponse) Reset

func (m *MsgCreateClientResponse) Reset()

func (*MsgCreateClientResponse) Size

func (m *MsgCreateClientResponse) Size() (n int)

func (*MsgCreateClientResponse) String

func (m *MsgCreateClientResponse) String() string

func (*MsgCreateClientResponse) Unmarshal

func (m *MsgCreateClientResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateClientResponse) XXX_DiscardUnknown

func (m *MsgCreateClientResponse) XXX_DiscardUnknown()

func (*MsgCreateClientResponse) XXX_Marshal

func (m *MsgCreateClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateClientResponse) XXX_Merge

func (m *MsgCreateClientResponse) XXX_Merge(src proto.Message)

func (*MsgCreateClientResponse) XXX_Size

func (m *MsgCreateClientResponse) XXX_Size() int

func (*MsgCreateClientResponse) XXX_Unmarshal

func (m *MsgCreateClientResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// CreateClient defines a rpc handler method for MsgCreateClient.
	CreateClient(context.Context, *MsgCreateClient) (*MsgCreateClientResponse, error)
	// UpdateClient defines a rpc handler method for MsgUpdateClient.
	UpdateClient(context.Context, *MsgUpdateClient) (*MsgUpdateClientResponse, error)
	// UpgradeClient defines a rpc handler method for MsgUpgradeClient.
	UpgradeClient(context.Context, *MsgUpgradeClient) (*MsgUpgradeClientResponse, error)
	// SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
	SubmitMisbehaviour(context.Context, *MsgSubmitMisbehaviour) (*MsgSubmitMisbehaviourResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubmitMisbehaviour

type MsgSubmitMisbehaviour struct {
	// client unique identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
	// misbehaviour used for freezing the light client
	Misbehaviour *types.Any `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"`
	// signer address
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for light client misbehaviour.

func NewMsgSubmitMisbehaviour

func NewMsgSubmitMisbehaviour(clientID string, misbehaviour exported.Misbehaviour, signer sdk.AccAddress) (*MsgSubmitMisbehaviour, error)

NewMsgSubmitMisbehaviour creates a new MsgSubmitMisbehaviour instance.

func (*MsgSubmitMisbehaviour) Descriptor

func (*MsgSubmitMisbehaviour) Descriptor() ([]byte, []int)

func (MsgSubmitMisbehaviour) GetSignBytes

func (msg MsgSubmitMisbehaviour) GetSignBytes() []byte

GetSignBytes implements sdk.Msg. The function will panic since it is used for amino transaction verification which IBC does not support.

func (MsgSubmitMisbehaviour) GetSigners

func (msg MsgSubmitMisbehaviour) GetSigners() []sdk.AccAddress

GetSigners returns the single expected signer for a MsgSubmitMisbehaviour.

func (*MsgSubmitMisbehaviour) Marshal

func (m *MsgSubmitMisbehaviour) Marshal() (dAtA []byte, err error)

func (*MsgSubmitMisbehaviour) MarshalTo

func (m *MsgSubmitMisbehaviour) MarshalTo(dAtA []byte) (int, error)

func (*MsgSubmitMisbehaviour) MarshalToSizedBuffer

func (m *MsgSubmitMisbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSubmitMisbehaviour) ProtoMessage

func (*MsgSubmitMisbehaviour) ProtoMessage()

func (*MsgSubmitMisbehaviour) Reset

func (m *MsgSubmitMisbehaviour) Reset()

func (MsgSubmitMisbehaviour) Route

func (msg MsgSubmitMisbehaviour) Route() string

Route returns the MsgSubmitClientMisbehaviour's route.

func (*MsgSubmitMisbehaviour) Size

func (m *MsgSubmitMisbehaviour) Size() (n int)

func (*MsgSubmitMisbehaviour) String

func (m *MsgSubmitMisbehaviour) String() string

func (MsgSubmitMisbehaviour) Type

func (msg MsgSubmitMisbehaviour) Type() string

Type returns the MsgSubmitMisbehaviour's type.

func (*MsgSubmitMisbehaviour) Unmarshal

func (m *MsgSubmitMisbehaviour) Unmarshal(dAtA []byte) error

func (MsgSubmitMisbehaviour) UnpackInterfaces

func (msg MsgSubmitMisbehaviour) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgSubmitMisbehaviour) ValidateBasic

func (msg MsgSubmitMisbehaviour) ValidateBasic() error

ValidateBasic performs basic (non-state-dependant) validation on a MsgSubmitMisbehaviour.

func (*MsgSubmitMisbehaviour) XXX_DiscardUnknown

func (m *MsgSubmitMisbehaviour) XXX_DiscardUnknown()

func (*MsgSubmitMisbehaviour) XXX_Marshal

func (m *MsgSubmitMisbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSubmitMisbehaviour) XXX_Merge

func (m *MsgSubmitMisbehaviour) XXX_Merge(src proto.Message)

func (*MsgSubmitMisbehaviour) XXX_Size

func (m *MsgSubmitMisbehaviour) XXX_Size() int

func (*MsgSubmitMisbehaviour) XXX_Unmarshal

func (m *MsgSubmitMisbehaviour) XXX_Unmarshal(b []byte) error

type MsgSubmitMisbehaviourResponse

type MsgSubmitMisbehaviourResponse struct {
}

MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type.

func (*MsgSubmitMisbehaviourResponse) Descriptor

func (*MsgSubmitMisbehaviourResponse) Descriptor() ([]byte, []int)

func (*MsgSubmitMisbehaviourResponse) Marshal

func (m *MsgSubmitMisbehaviourResponse) Marshal() (dAtA []byte, err error)

func (*MsgSubmitMisbehaviourResponse) MarshalTo

func (m *MsgSubmitMisbehaviourResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSubmitMisbehaviourResponse) MarshalToSizedBuffer

func (m *MsgSubmitMisbehaviourResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSubmitMisbehaviourResponse) ProtoMessage

func (*MsgSubmitMisbehaviourResponse) ProtoMessage()

func (*MsgSubmitMisbehaviourResponse) Reset

func (m *MsgSubmitMisbehaviourResponse) Reset()

func (*MsgSubmitMisbehaviourResponse) Size

func (m *MsgSubmitMisbehaviourResponse) Size() (n int)

func (*MsgSubmitMisbehaviourResponse) String

func (*MsgSubmitMisbehaviourResponse) Unmarshal

func (m *MsgSubmitMisbehaviourResponse) Unmarshal(dAtA []byte) error

func (*MsgSubmitMisbehaviourResponse) XXX_DiscardUnknown

func (m *MsgSubmitMisbehaviourResponse) XXX_DiscardUnknown()

func (*MsgSubmitMisbehaviourResponse) XXX_Marshal

func (m *MsgSubmitMisbehaviourResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSubmitMisbehaviourResponse) XXX_Merge

func (m *MsgSubmitMisbehaviourResponse) XXX_Merge(src proto.Message)

func (*MsgSubmitMisbehaviourResponse) XXX_Size

func (m *MsgSubmitMisbehaviourResponse) XXX_Size() int

func (*MsgSubmitMisbehaviourResponse) XXX_Unmarshal

func (m *MsgSubmitMisbehaviourResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateClient

type MsgUpdateClient struct {
	// client unique identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
	// header to update the light client
	Header *types.Any `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
	// signer address
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgUpdateClient defines an sdk.Msg to update a IBC client state using the given header.

func NewMsgUpdateClient

func NewMsgUpdateClient(id string, header exported.Header, signer sdk.AccAddress) (*MsgUpdateClient, error)

NewMsgUpdateClient creates a new MsgUpdateClient instance

func (*MsgUpdateClient) Descriptor

func (*MsgUpdateClient) Descriptor() ([]byte, []int)

func (MsgUpdateClient) GetSignBytes

func (msg MsgUpdateClient) GetSignBytes() []byte

GetSignBytes implements sdk.Msg. The function will panic since it is used for amino transaction verification which IBC does not support.

func (MsgUpdateClient) GetSigners

func (msg MsgUpdateClient) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgUpdateClient) Marshal

func (m *MsgUpdateClient) Marshal() (dAtA []byte, err error)

func (*MsgUpdateClient) MarshalTo

func (m *MsgUpdateClient) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateClient) MarshalToSizedBuffer

func (m *MsgUpdateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateClient) ProtoMessage

func (*MsgUpdateClient) ProtoMessage()

func (*MsgUpdateClient) Reset

func (m *MsgUpdateClient) Reset()

func (MsgUpdateClient) Route

func (msg MsgUpdateClient) Route() string

Route implements sdk.Msg

func (*MsgUpdateClient) Size

func (m *MsgUpdateClient) Size() (n int)

func (*MsgUpdateClient) String

func (m *MsgUpdateClient) String() string

func (MsgUpdateClient) Type

func (msg MsgUpdateClient) Type() string

Type implements sdk.Msg

func (*MsgUpdateClient) Unmarshal

func (m *MsgUpdateClient) Unmarshal(dAtA []byte) error

func (MsgUpdateClient) UnpackInterfaces

func (msg MsgUpdateClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgUpdateClient) ValidateBasic

func (msg MsgUpdateClient) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgUpdateClient) XXX_DiscardUnknown

func (m *MsgUpdateClient) XXX_DiscardUnknown()

func (*MsgUpdateClient) XXX_Marshal

func (m *MsgUpdateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateClient) XXX_Merge

func (m *MsgUpdateClient) XXX_Merge(src proto.Message)

func (*MsgUpdateClient) XXX_Size

func (m *MsgUpdateClient) XXX_Size() int

func (*MsgUpdateClient) XXX_Unmarshal

func (m *MsgUpdateClient) XXX_Unmarshal(b []byte) error

type MsgUpdateClientResponse

type MsgUpdateClientResponse struct {
}

MsgUpdateClientResponse defines the Msg/UpdateClient response type.

func (*MsgUpdateClientResponse) Descriptor

func (*MsgUpdateClientResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateClientResponse) Marshal

func (m *MsgUpdateClientResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateClientResponse) MarshalTo

func (m *MsgUpdateClientResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateClientResponse) MarshalToSizedBuffer

func (m *MsgUpdateClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateClientResponse) ProtoMessage

func (*MsgUpdateClientResponse) ProtoMessage()

func (*MsgUpdateClientResponse) Reset

func (m *MsgUpdateClientResponse) Reset()

func (*MsgUpdateClientResponse) Size

func (m *MsgUpdateClientResponse) Size() (n int)

func (*MsgUpdateClientResponse) String

func (m *MsgUpdateClientResponse) String() string

func (*MsgUpdateClientResponse) Unmarshal

func (m *MsgUpdateClientResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateClientResponse) XXX_DiscardUnknown

func (m *MsgUpdateClientResponse) XXX_DiscardUnknown()

func (*MsgUpdateClientResponse) XXX_Marshal

func (m *MsgUpdateClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateClientResponse) XXX_Merge

func (m *MsgUpdateClientResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateClientResponse) XXX_Size

func (m *MsgUpdateClientResponse) XXX_Size() int

func (*MsgUpdateClientResponse) XXX_Unmarshal

func (m *MsgUpdateClientResponse) XXX_Unmarshal(b []byte) error

type MsgUpgradeClient

type MsgUpgradeClient struct {
	// client unique identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
	// upgraded client state
	ClientState *types.Any `protobuf:"bytes,2,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty" yaml:"client_state"`
	// height at which old chain halts and upgrades (i.e last block executed)
	UpgradeHeight *Height `protobuf:"bytes,3,opt,name=upgrade_height,json=upgradeHeight,proto3" json:"upgrade_height,omitempty" yaml:"upgrade_height"`
	// proof that old chain committed to new client
	ProofUpgrade []byte `protobuf:"bytes,4,opt,name=proof_upgrade,json=proofUpgrade,proto3" json:"proof_upgrade,omitempty" yaml:"proof_upgrade"`
	// signer address
	Signer string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client state

func NewMsgUpgradeClient

func NewMsgUpgradeClient(clientID string, clientState exported.ClientState, upgradeHeight exported.Height, proofUpgrade []byte, signer sdk.AccAddress) (*MsgUpgradeClient, error)

NewMsgUpgradeClient creates a new MsgUpgradeClient instance nolint: interfacer

func (*MsgUpgradeClient) Descriptor

func (*MsgUpgradeClient) Descriptor() ([]byte, []int)

func (*MsgUpgradeClient) GetClientId

func (m *MsgUpgradeClient) GetClientId() string

func (*MsgUpgradeClient) GetClientState

func (m *MsgUpgradeClient) GetClientState() *types.Any

func (*MsgUpgradeClient) GetProofUpgrade

func (m *MsgUpgradeClient) GetProofUpgrade() []byte

func (MsgUpgradeClient) GetSignBytes

func (msg MsgUpgradeClient) GetSignBytes() []byte

GetSignBytes implements sdk.Msg. The function will panic since it is used for amino transaction verification which IBC does not support.

func (*MsgUpgradeClient) GetSigner

func (m *MsgUpgradeClient) GetSigner() string

func (MsgUpgradeClient) GetSigners

func (msg MsgUpgradeClient) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgUpgradeClient) GetUpgradeHeight

func (m *MsgUpgradeClient) GetUpgradeHeight() *Height

func (*MsgUpgradeClient) Marshal

func (m *MsgUpgradeClient) Marshal() (dAtA []byte, err error)

func (*MsgUpgradeClient) MarshalTo

func (m *MsgUpgradeClient) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpgradeClient) MarshalToSizedBuffer

func (m *MsgUpgradeClient) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpgradeClient) ProtoMessage

func (*MsgUpgradeClient) ProtoMessage()

func (*MsgUpgradeClient) Reset

func (m *MsgUpgradeClient) Reset()

func (MsgUpgradeClient) Route

func (msg MsgUpgradeClient) Route() string

Route implements sdk.Msg

func (*MsgUpgradeClient) Size

func (m *MsgUpgradeClient) Size() (n int)

func (*MsgUpgradeClient) String

func (m *MsgUpgradeClient) String() string

func (MsgUpgradeClient) Type

func (msg MsgUpgradeClient) Type() string

Type implements sdk.Msg

func (*MsgUpgradeClient) Unmarshal

func (m *MsgUpgradeClient) Unmarshal(dAtA []byte) error

func (MsgUpgradeClient) UnpackInterfaces

func (msg MsgUpgradeClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgUpgradeClient) ValidateBasic

func (msg MsgUpgradeClient) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgUpgradeClient) XXX_DiscardUnknown

func (m *MsgUpgradeClient) XXX_DiscardUnknown()

func (*MsgUpgradeClient) XXX_Marshal

func (m *MsgUpgradeClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpgradeClient) XXX_Merge

func (m *MsgUpgradeClient) XXX_Merge(src proto.Message)

func (*MsgUpgradeClient) XXX_Size

func (m *MsgUpgradeClient) XXX_Size() int

func (*MsgUpgradeClient) XXX_Unmarshal

func (m *MsgUpgradeClient) XXX_Unmarshal(b []byte) error

type MsgUpgradeClientResponse

type MsgUpgradeClientResponse struct {
}

MsgUpgradeClientResponse defines the Msg/UpgradeClient response type.

func (*MsgUpgradeClientResponse) Descriptor

func (*MsgUpgradeClientResponse) Descriptor() ([]byte, []int)

func (*MsgUpgradeClientResponse) Marshal

func (m *MsgUpgradeClientResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpgradeClientResponse) MarshalTo

func (m *MsgUpgradeClientResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpgradeClientResponse) MarshalToSizedBuffer

func (m *MsgUpgradeClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpgradeClientResponse) ProtoMessage

func (*MsgUpgradeClientResponse) ProtoMessage()

func (*MsgUpgradeClientResponse) Reset

func (m *MsgUpgradeClientResponse) Reset()

func (*MsgUpgradeClientResponse) Size

func (m *MsgUpgradeClientResponse) Size() (n int)

func (*MsgUpgradeClientResponse) String

func (m *MsgUpgradeClientResponse) String() string

func (*MsgUpgradeClientResponse) Unmarshal

func (m *MsgUpgradeClientResponse) Unmarshal(dAtA []byte) error

func (*MsgUpgradeClientResponse) XXX_DiscardUnknown

func (m *MsgUpgradeClientResponse) XXX_DiscardUnknown()

func (*MsgUpgradeClientResponse) XXX_Marshal

func (m *MsgUpgradeClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpgradeClientResponse) XXX_Merge

func (m *MsgUpgradeClientResponse) XXX_Merge(src proto.Message)

func (*MsgUpgradeClientResponse) XXX_Size

func (m *MsgUpgradeClientResponse) XXX_Size() int

func (*MsgUpgradeClientResponse) XXX_Unmarshal

func (m *MsgUpgradeClientResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// ClientState queries an IBC light client.
	ClientState(ctx context.Context, in *QueryClientStateRequest, opts ...grpc.CallOption) (*QueryClientStateResponse, error)
	// ClientStates queries all the IBC light clients of a chain.
	ClientStates(ctx context.Context, in *QueryClientStatesRequest, opts ...grpc.CallOption) (*QueryClientStatesResponse, error)
	// ConsensusState queries a consensus state associated with a client state at
	// a given height.
	ConsensusState(ctx context.Context, in *QueryConsensusStateRequest, opts ...grpc.CallOption) (*QueryConsensusStateResponse, error)
	// ConsensusStates queries all the consensus state associated with a given
	// client.
	ConsensusStates(ctx context.Context, in *QueryConsensusStatesRequest, opts ...grpc.CallOption) (*QueryConsensusStatesResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryClientStateRequest

type QueryClientStateRequest struct {
	// client state unique identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
}

QueryClientStateRequest is the request type for the Query/ClientState RPC method

func (*QueryClientStateRequest) Descriptor

func (*QueryClientStateRequest) Descriptor() ([]byte, []int)

func (*QueryClientStateRequest) GetClientId

func (m *QueryClientStateRequest) GetClientId() string

func (*QueryClientStateRequest) Marshal

func (m *QueryClientStateRequest) Marshal() (dAtA []byte, err error)

func (*QueryClientStateRequest) MarshalTo

func (m *QueryClientStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryClientStateRequest) MarshalToSizedBuffer

func (m *QueryClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryClientStateRequest) ProtoMessage

func (*QueryClientStateRequest) ProtoMessage()

func (*QueryClientStateRequest) Reset

func (m *QueryClientStateRequest) Reset()

func (*QueryClientStateRequest) Size

func (m *QueryClientStateRequest) Size() (n int)

func (*QueryClientStateRequest) String

func (m *QueryClientStateRequest) String() string

func (*QueryClientStateRequest) Unmarshal

func (m *QueryClientStateRequest) Unmarshal(dAtA []byte) error

func (*QueryClientStateRequest) XXX_DiscardUnknown

func (m *QueryClientStateRequest) XXX_DiscardUnknown()

func (*QueryClientStateRequest) XXX_Marshal

func (m *QueryClientStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryClientStateRequest) XXX_Merge

func (m *QueryClientStateRequest) XXX_Merge(src proto.Message)

func (*QueryClientStateRequest) XXX_Size

func (m *QueryClientStateRequest) XXX_Size() int

func (*QueryClientStateRequest) XXX_Unmarshal

func (m *QueryClientStateRequest) XXX_Unmarshal(b []byte) error

type QueryClientStateResponse

type QueryClientStateResponse struct {
	// client state associated with the request identifier
	ClientState *types.Any `protobuf:"bytes,1,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"`
	// merkle proof of existence
	Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// height at which the proof was retrieved
	ProofHeight Height `protobuf:"bytes,3,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height"`
}

QueryClientStateResponse is the response type for the Query/ClientState RPC method. Besides the client state, it includes a proof and the height from which the proof was retrieved.

func NewQueryClientStateResponse

func NewQueryClientStateResponse(
	clientStateAny *codectypes.Any, proof []byte, height Height,
) *QueryClientStateResponse

NewQueryClientStateResponse creates a new QueryClientStateResponse instance.

func (*QueryClientStateResponse) Descriptor

func (*QueryClientStateResponse) Descriptor() ([]byte, []int)

func (*QueryClientStateResponse) GetClientState

func (m *QueryClientStateResponse) GetClientState() *types.Any

func (*QueryClientStateResponse) GetProof

func (m *QueryClientStateResponse) GetProof() []byte

func (*QueryClientStateResponse) GetProofHeight

func (m *QueryClientStateResponse) GetProofHeight() Height

func (*QueryClientStateResponse) Marshal

func (m *QueryClientStateResponse) Marshal() (dAtA []byte, err error)

func (*QueryClientStateResponse) MarshalTo

func (m *QueryClientStateResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryClientStateResponse) MarshalToSizedBuffer

func (m *QueryClientStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryClientStateResponse) ProtoMessage

func (*QueryClientStateResponse) ProtoMessage()

func (*QueryClientStateResponse) Reset

func (m *QueryClientStateResponse) Reset()

func (*QueryClientStateResponse) Size

func (m *QueryClientStateResponse) Size() (n int)

func (*QueryClientStateResponse) String

func (m *QueryClientStateResponse) String() string

func (*QueryClientStateResponse) Unmarshal

func (m *QueryClientStateResponse) Unmarshal(dAtA []byte) error

func (*QueryClientStateResponse) XXX_DiscardUnknown

func (m *QueryClientStateResponse) XXX_DiscardUnknown()

func (*QueryClientStateResponse) XXX_Marshal

func (m *QueryClientStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryClientStateResponse) XXX_Merge

func (m *QueryClientStateResponse) XXX_Merge(src proto.Message)

func (*QueryClientStateResponse) XXX_Size

func (m *QueryClientStateResponse) XXX_Size() int

func (*QueryClientStateResponse) XXX_Unmarshal

func (m *QueryClientStateResponse) XXX_Unmarshal(b []byte) error

type QueryClientStatesRequest

type QueryClientStatesRequest struct {
	// pagination request
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryClientStatesRequest is the request type for the Query/ClientStates RPC method

func (*QueryClientStatesRequest) Descriptor

func (*QueryClientStatesRequest) Descriptor() ([]byte, []int)

func (*QueryClientStatesRequest) GetPagination

func (m *QueryClientStatesRequest) GetPagination() *query.PageRequest

func (*QueryClientStatesRequest) Marshal

func (m *QueryClientStatesRequest) Marshal() (dAtA []byte, err error)

func (*QueryClientStatesRequest) MarshalTo

func (m *QueryClientStatesRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryClientStatesRequest) MarshalToSizedBuffer

func (m *QueryClientStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryClientStatesRequest) ProtoMessage

func (*QueryClientStatesRequest) ProtoMessage()

func (*QueryClientStatesRequest) Reset

func (m *QueryClientStatesRequest) Reset()

func (*QueryClientStatesRequest) Size

func (m *QueryClientStatesRequest) Size() (n int)

func (*QueryClientStatesRequest) String

func (m *QueryClientStatesRequest) String() string

func (*QueryClientStatesRequest) Unmarshal

func (m *QueryClientStatesRequest) Unmarshal(dAtA []byte) error

func (*QueryClientStatesRequest) XXX_DiscardUnknown

func (m *QueryClientStatesRequest) XXX_DiscardUnknown()

func (*QueryClientStatesRequest) XXX_Marshal

func (m *QueryClientStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryClientStatesRequest) XXX_Merge

func (m *QueryClientStatesRequest) XXX_Merge(src proto.Message)

func (*QueryClientStatesRequest) XXX_Size

func (m *QueryClientStatesRequest) XXX_Size() int

func (*QueryClientStatesRequest) XXX_Unmarshal

func (m *QueryClientStatesRequest) XXX_Unmarshal(b []byte) error

type QueryClientStatesResponse

type QueryClientStatesResponse struct {
	// list of stored ClientStates of the chain.
	ClientStates []*IdentifiedClientState `protobuf:"bytes,1,rep,name=client_states,json=clientStates,proto3" json:"client_states,omitempty"`
	// pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryClientStatesResponse is the response type for the Query/ClientStates RPC method.

func (*QueryClientStatesResponse) Descriptor

func (*QueryClientStatesResponse) Descriptor() ([]byte, []int)

func (*QueryClientStatesResponse) GetClientStates

func (m *QueryClientStatesResponse) GetClientStates() []*IdentifiedClientState

func (*QueryClientStatesResponse) GetPagination

func (m *QueryClientStatesResponse) GetPagination() *query.PageResponse

func (*QueryClientStatesResponse) Marshal

func (m *QueryClientStatesResponse) Marshal() (dAtA []byte, err error)

func (*QueryClientStatesResponse) MarshalTo

func (m *QueryClientStatesResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryClientStatesResponse) MarshalToSizedBuffer

func (m *QueryClientStatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryClientStatesResponse) ProtoMessage

func (*QueryClientStatesResponse) ProtoMessage()

func (*QueryClientStatesResponse) Reset

func (m *QueryClientStatesResponse) Reset()

func (*QueryClientStatesResponse) Size

func (m *QueryClientStatesResponse) Size() (n int)

func (*QueryClientStatesResponse) String

func (m *QueryClientStatesResponse) String() string

func (*QueryClientStatesResponse) Unmarshal

func (m *QueryClientStatesResponse) Unmarshal(dAtA []byte) error

func (*QueryClientStatesResponse) XXX_DiscardUnknown

func (m *QueryClientStatesResponse) XXX_DiscardUnknown()

func (*QueryClientStatesResponse) XXX_Marshal

func (m *QueryClientStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryClientStatesResponse) XXX_Merge

func (m *QueryClientStatesResponse) XXX_Merge(src proto.Message)

func (*QueryClientStatesResponse) XXX_Size

func (m *QueryClientStatesResponse) XXX_Size() int

func (*QueryClientStatesResponse) XXX_Unmarshal

func (m *QueryClientStatesResponse) XXX_Unmarshal(b []byte) error

type QueryConsensusStateRequest

type QueryConsensusStateRequest struct {
	// client identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// consensus state version number
	VersionNumber uint64 `protobuf:"varint,2,opt,name=version_number,json=versionNumber,proto3" json:"version_number,omitempty"`
	// consensus state version height
	VersionHeight uint64 `protobuf:"varint,3,opt,name=version_height,json=versionHeight,proto3" json:"version_height,omitempty"`
	// latest_height overrrides the height field and queries the latest stored
	// ConsensusState
	LatestHeight bool `protobuf:"varint,4,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"`
}

QueryConsensusStateRequest is the request type for the Query/ConsensusState RPC method. Besides the consensus state, it includes a proof and the height from which the proof was retrieved.

func (*QueryConsensusStateRequest) Descriptor

func (*QueryConsensusStateRequest) Descriptor() ([]byte, []int)

func (*QueryConsensusStateRequest) GetClientId

func (m *QueryConsensusStateRequest) GetClientId() string

func (*QueryConsensusStateRequest) GetLatestHeight

func (m *QueryConsensusStateRequest) GetLatestHeight() bool

func (*QueryConsensusStateRequest) GetVersionHeight

func (m *QueryConsensusStateRequest) GetVersionHeight() uint64

func (*QueryConsensusStateRequest) GetVersionNumber

func (m *QueryConsensusStateRequest) GetVersionNumber() uint64

func (*QueryConsensusStateRequest) Marshal

func (m *QueryConsensusStateRequest) Marshal() (dAtA []byte, err error)

func (*QueryConsensusStateRequest) MarshalTo

func (m *QueryConsensusStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryConsensusStateRequest) MarshalToSizedBuffer

func (m *QueryConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConsensusStateRequest) ProtoMessage

func (*QueryConsensusStateRequest) ProtoMessage()

func (*QueryConsensusStateRequest) Reset

func (m *QueryConsensusStateRequest) Reset()

func (*QueryConsensusStateRequest) Size

func (m *QueryConsensusStateRequest) Size() (n int)

func (*QueryConsensusStateRequest) String

func (m *QueryConsensusStateRequest) String() string

func (*QueryConsensusStateRequest) Unmarshal

func (m *QueryConsensusStateRequest) Unmarshal(dAtA []byte) error

func (*QueryConsensusStateRequest) XXX_DiscardUnknown

func (m *QueryConsensusStateRequest) XXX_DiscardUnknown()

func (*QueryConsensusStateRequest) XXX_Marshal

func (m *QueryConsensusStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConsensusStateRequest) XXX_Merge

func (m *QueryConsensusStateRequest) XXX_Merge(src proto.Message)

func (*QueryConsensusStateRequest) XXX_Size

func (m *QueryConsensusStateRequest) XXX_Size() int

func (*QueryConsensusStateRequest) XXX_Unmarshal

func (m *QueryConsensusStateRequest) XXX_Unmarshal(b []byte) error

type QueryConsensusStateResponse

type QueryConsensusStateResponse struct {
	// consensus state associated with the client identifier at the given height
	ConsensusState *types.Any `protobuf:"bytes,1,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"`
	// merkle proof of existence
	Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// height at which the proof was retrieved
	ProofHeight Height `protobuf:"bytes,3,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height"`
}

QueryConsensusStateResponse is the response type for the Query/ConsensusState RPC method

func NewQueryConsensusStateResponse

func NewQueryConsensusStateResponse(
	consensusStateAny *codectypes.Any, proof []byte, height Height,
) *QueryConsensusStateResponse

NewQueryConsensusStateResponse creates a new QueryConsensusStateResponse instance.

func (*QueryConsensusStateResponse) Descriptor

func (*QueryConsensusStateResponse) Descriptor() ([]byte, []int)

func (*QueryConsensusStateResponse) GetConsensusState

func (m *QueryConsensusStateResponse) GetConsensusState() *types.Any

func (*QueryConsensusStateResponse) GetProof

func (m *QueryConsensusStateResponse) GetProof() []byte

func (*QueryConsensusStateResponse) GetProofHeight

func (m *QueryConsensusStateResponse) GetProofHeight() Height

func (*QueryConsensusStateResponse) Marshal

func (m *QueryConsensusStateResponse) Marshal() (dAtA []byte, err error)

func (*QueryConsensusStateResponse) MarshalTo

func (m *QueryConsensusStateResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryConsensusStateResponse) MarshalToSizedBuffer

func (m *QueryConsensusStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConsensusStateResponse) ProtoMessage

func (*QueryConsensusStateResponse) ProtoMessage()

func (*QueryConsensusStateResponse) Reset

func (m *QueryConsensusStateResponse) Reset()

func (*QueryConsensusStateResponse) Size

func (m *QueryConsensusStateResponse) Size() (n int)

func (*QueryConsensusStateResponse) String

func (m *QueryConsensusStateResponse) String() string

func (*QueryConsensusStateResponse) Unmarshal

func (m *QueryConsensusStateResponse) Unmarshal(dAtA []byte) error

func (*QueryConsensusStateResponse) XXX_DiscardUnknown

func (m *QueryConsensusStateResponse) XXX_DiscardUnknown()

func (*QueryConsensusStateResponse) XXX_Marshal

func (m *QueryConsensusStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConsensusStateResponse) XXX_Merge

func (m *QueryConsensusStateResponse) XXX_Merge(src proto.Message)

func (*QueryConsensusStateResponse) XXX_Size

func (m *QueryConsensusStateResponse) XXX_Size() int

func (*QueryConsensusStateResponse) XXX_Unmarshal

func (m *QueryConsensusStateResponse) XXX_Unmarshal(b []byte) error

type QueryConsensusStatesRequest

type QueryConsensusStatesRequest struct {
	// client identifier
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// pagination request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryConsensusStatesRequest is the request type for the Query/ConsensusStates RPC method.

func (*QueryConsensusStatesRequest) Descriptor

func (*QueryConsensusStatesRequest) Descriptor() ([]byte, []int)

func (*QueryConsensusStatesRequest) GetClientId

func (m *QueryConsensusStatesRequest) GetClientId() string

func (*QueryConsensusStatesRequest) GetPagination

func (m *QueryConsensusStatesRequest) GetPagination() *query.PageRequest

func (*QueryConsensusStatesRequest) Marshal

func (m *QueryConsensusStatesRequest) Marshal() (dAtA []byte, err error)

func (*QueryConsensusStatesRequest) MarshalTo

func (m *QueryConsensusStatesRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryConsensusStatesRequest) MarshalToSizedBuffer

func (m *QueryConsensusStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConsensusStatesRequest) ProtoMessage

func (*QueryConsensusStatesRequest) ProtoMessage()

func (*QueryConsensusStatesRequest) Reset

func (m *QueryConsensusStatesRequest) Reset()

func (*QueryConsensusStatesRequest) Size

func (m *QueryConsensusStatesRequest) Size() (n int)

func (*QueryConsensusStatesRequest) String

func (m *QueryConsensusStatesRequest) String() string

func (*QueryConsensusStatesRequest) Unmarshal

func (m *QueryConsensusStatesRequest) Unmarshal(dAtA []byte) error

func (*QueryConsensusStatesRequest) XXX_DiscardUnknown

func (m *QueryConsensusStatesRequest) XXX_DiscardUnknown()

func (*QueryConsensusStatesRequest) XXX_Marshal

func (m *QueryConsensusStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConsensusStatesRequest) XXX_Merge

func (m *QueryConsensusStatesRequest) XXX_Merge(src proto.Message)

func (*QueryConsensusStatesRequest) XXX_Size

func (m *QueryConsensusStatesRequest) XXX_Size() int

func (*QueryConsensusStatesRequest) XXX_Unmarshal

func (m *QueryConsensusStatesRequest) XXX_Unmarshal(b []byte) error

type QueryConsensusStatesResponse

type QueryConsensusStatesResponse struct {
	// consensus states associated with the identifier
	ConsensusStates []ConsensusStateWithHeight `protobuf:"bytes,1,rep,name=consensus_states,json=consensusStates,proto3" json:"consensus_states"`
	// pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryConsensusStatesResponse is the response type for the Query/ConsensusStates RPC method

func (*QueryConsensusStatesResponse) Descriptor

func (*QueryConsensusStatesResponse) Descriptor() ([]byte, []int)

func (*QueryConsensusStatesResponse) GetConsensusStates

func (m *QueryConsensusStatesResponse) GetConsensusStates() []ConsensusStateWithHeight

func (*QueryConsensusStatesResponse) GetPagination

func (m *QueryConsensusStatesResponse) GetPagination() *query.PageResponse

func (*QueryConsensusStatesResponse) Marshal

func (m *QueryConsensusStatesResponse) Marshal() (dAtA []byte, err error)

func (*QueryConsensusStatesResponse) MarshalTo

func (m *QueryConsensusStatesResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryConsensusStatesResponse) MarshalToSizedBuffer

func (m *QueryConsensusStatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConsensusStatesResponse) ProtoMessage

func (*QueryConsensusStatesResponse) ProtoMessage()

func (*QueryConsensusStatesResponse) Reset

func (m *QueryConsensusStatesResponse) Reset()

func (*QueryConsensusStatesResponse) Size

func (m *QueryConsensusStatesResponse) Size() (n int)

func (*QueryConsensusStatesResponse) String

func (*QueryConsensusStatesResponse) Unmarshal

func (m *QueryConsensusStatesResponse) Unmarshal(dAtA []byte) error

func (*QueryConsensusStatesResponse) XXX_DiscardUnknown

func (m *QueryConsensusStatesResponse) XXX_DiscardUnknown()

func (*QueryConsensusStatesResponse) XXX_Marshal

func (m *QueryConsensusStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConsensusStatesResponse) XXX_Merge

func (m *QueryConsensusStatesResponse) XXX_Merge(src proto.Message)

func (*QueryConsensusStatesResponse) XXX_Size

func (m *QueryConsensusStatesResponse) XXX_Size() int

func (*QueryConsensusStatesResponse) XXX_Unmarshal

func (m *QueryConsensusStatesResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// ClientState queries an IBC light client.
	ClientState(context.Context, *QueryClientStateRequest) (*QueryClientStateResponse, error)
	// ClientStates queries all the IBC light clients of a chain.
	ClientStates(context.Context, *QueryClientStatesRequest) (*QueryClientStatesResponse, error)
	// ConsensusState queries a consensus state associated with a client state at
	// a given height.
	ConsensusState(context.Context, *QueryConsensusStateRequest) (*QueryConsensusStateResponse, error)
	// ConsensusStates queries all the consensus state associated with a given
	// client.
	ConsensusStates(context.Context, *QueryConsensusStatesRequest) (*QueryConsensusStatesResponse, error)
}

QueryServer is the server API for Query service.

type StakingKeeper

type StakingKeeper interface {
	GetHistoricalInfo(ctx sdk.Context, height int64) (stakingtypes.HistoricalInfo, bool)
	UnbondingTime(ctx sdk.Context) time.Duration
}

StakingKeeper expected staking keeper

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateClient

func (*UnimplementedMsgServer) SubmitMisbehaviour

func (*UnimplementedMsgServer) UpdateClient

func (*UnimplementedMsgServer) UpgradeClient

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ClientState

func (*UnimplementedQueryServer) ClientStates

func (*UnimplementedQueryServer) ConsensusState

func (*UnimplementedQueryServer) ConsensusStates

Jump to

Keyboard shortcuts

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