client

package
v0.0.0-...-a76333c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package client is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

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 (
	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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var IsRevisionFormat = regexp.MustCompile(`^.*[^-]-{1}[1-9][0-9]*$`).MatchString

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

View Source
var IsValidID = regexp.MustCompile(`^[a-zA-Z0-9\.\_\+\-\#\[\]\<\>]+$`).MatchString

Functions

func ClientIdentifierValidator

func ClientIdentifierValidator(id string) error

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 UnpackHeader

func UnpackHeader(any *coretypes.Any) (types.Header, error)

UnpackHeader unpacks an Any into a Header. It returns an error if the consensus state can't be unpacked into a Header. TODO: where to put this

Types

type ClientConsensusStates

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

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

func (*ClientConsensusStates) Descriptor

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

func (*ClientConsensusStates) GetChainName

func (m *ClientConsensusStates) GetChainName() 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) 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 ClientsConsensusStates

type ClientsConsensusStates []ClientConsensusStates

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"`
}

ConsensusStateWithHeight defines a consensus state with an additional height field.

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) 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 CreateClientProposal

type CreateClientProposal 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
	ChainName string `protobuf:"bytes,3,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// light client state
	ClientState *types.Any `protobuf:"bytes,4,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"`
	// consensus state associated with the client that corresponds to a given
	// height.
	ConsensusState *types.Any `protobuf:"bytes,5,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"`
}

CreateClientProposal defines a overnance proposal to create an IBC client

func (*CreateClientProposal) Descriptor

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

func (*CreateClientProposal) Marshal

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

func (*CreateClientProposal) MarshalTo

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

func (*CreateClientProposal) MarshalToSizedBuffer

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

func (*CreateClientProposal) ProtoMessage

func (*CreateClientProposal) ProtoMessage()

func (*CreateClientProposal) Reset

func (m *CreateClientProposal) Reset()

func (*CreateClientProposal) Size

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

func (*CreateClientProposal) String

func (m *CreateClientProposal) String() string

func (*CreateClientProposal) Unmarshal

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

func (*CreateClientProposal) XXX_DiscardUnknown

func (m *CreateClientProposal) XXX_DiscardUnknown()

func (*CreateClientProposal) XXX_Marshal

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

func (*CreateClientProposal) XXX_Merge

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

func (*CreateClientProposal) XXX_Size

func (m *CreateClientProposal) XXX_Size() int

func (*CreateClientProposal) XXX_Unmarshal

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

type GenesisMetadata

type GenesisMetadata struct {
	// store key of metadata without chainName-prefix
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// metadata value
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

GenesisMetadata defines the genesis type for metadata that clients may return with ExportMetadata

func (*GenesisMetadata) Descriptor

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

func (*GenesisMetadata) Marshal

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

func (*GenesisMetadata) MarshalTo

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

func (*GenesisMetadata) MarshalToSizedBuffer

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

func (*GenesisMetadata) ProtoMessage

func (*GenesisMetadata) ProtoMessage()

func (*GenesisMetadata) Reset

func (m *GenesisMetadata) Reset()

func (*GenesisMetadata) Size

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

func (*GenesisMetadata) String

func (m *GenesisMetadata) String() string

func (*GenesisMetadata) Unmarshal

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

func (*GenesisMetadata) XXX_DiscardUnknown

func (m *GenesisMetadata) XXX_DiscardUnknown()

func (*GenesisMetadata) XXX_Marshal

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

func (*GenesisMetadata) XXX_Merge

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

func (*GenesisMetadata) XXX_Size

func (m *GenesisMetadata) XXX_Size() int

func (*GenesisMetadata) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// client states with their corresponding identifiers
	Clients IdentifiedClientStates `protobuf:"bytes,1,rep,name=clients,proto3,castrepeated=IdentifiedClientStates" json:"clients"`
	// consensus states from each client
	ClientsConsensus ClientsConsensusStates `` /* 135-byte string literal not displayed */
	// metadata from each client
	ClientsMetadata []IdentifiedGenesisMetadata `protobuf:"bytes,3,rep,name=clients_metadata,json=clientsMetadata,proto3" json:"clients_metadata"`
	// the chain name of the current chain
	NativeChainName string `protobuf:"bytes,5,opt,name=native_chain_name,json=nativeChainName,proto3" json:"native_chain_name,omitempty"`
	// IdentifiedRelayer defines a list of authorized relayers for the specified
	// client.
	Relayers []IdentifiedRelayers `protobuf:"bytes,6,rep,name=relayers,proto3" json:"relayers"`
}

GenesisState defines the ibc client submodule's genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetClients

func (m *GenesisState) GetClients() IdentifiedClientStates

func (*GenesisState) GetClientsConsensus

func (m *GenesisState) GetClientsConsensus() ClientsConsensusStates

func (*GenesisState) GetClientsMetadata

func (m *GenesisState) GetClientsMetadata() []IdentifiedGenesisMetadata

func (*GenesisState) GetNativeChainName

func (m *GenesisState) GetNativeChainName() string

func (*GenesisState) GetRelayers

func (m *GenesisState) GetRelayers() []IdentifiedRelayers

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) 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 revision that the client is currently on
	RevisionNumber uint64 `` /* 127-byte string literal not displayed */
	// the height within the given revision
	RevisionHeight uint64 `` /* 127-byte string literal not displayed */
}

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

Normally the RevisionHeight is incremented at each height while keeping RevisionNumber 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 RevisionNumber is incremented so that height continues to be monitonically increasing even as the RevisionHeight gets reset

func NewHeight

func NewHeight(revisionNumber, revisionHeight uint64) Height

NewHeight is a constructor for the IBC height type

func ZeroHeight

func ZeroHeight() Height

ZeroHeight is a helper function which returns an uninitialized height.

func (Height) Decrement

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

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

func (*Height) Descriptor

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

func (Height) GetRevisionHeight

func (h Height) GetRevisionHeight() uint64

GetRevisionHeight returns the revision-height of the height

func (Height) GetRevisionNumber

func (h Height) GetRevisionNumber() uint64

GetRevisionNumber returns the revision-number of the height

func (Height) Increment

func (h Height) Increment() types.Height

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

func (Height) IsZero

func (h Height) IsZero() bool

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

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
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// client state
	ClientState *types.Any `protobuf:"bytes,2,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"`
}

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

func (*IdentifiedClientState) Descriptor

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

func (*IdentifiedClientState) GetChainName

func (m *IdentifiedClientState) GetChainName() 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) 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 IdentifiedClientStates

type IdentifiedClientStates []IdentifiedClientState

func (IdentifiedClientStates) Len

func (ics IdentifiedClientStates) Len() int

Len implements sort.Interface

func (IdentifiedClientStates) Less

func (ics IdentifiedClientStates) Less(i, j int) bool

Less implements sort.Interface

func (IdentifiedClientStates) Sort

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

func (IdentifiedClientStates) Swap

func (ics IdentifiedClientStates) Swap(i, j int)

Swap implements sort.Interface

type IdentifiedGenesisMetadata

type IdentifiedGenesisMetadata struct {
	ChainName string            `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	Metadata  []GenesisMetadata `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata"`
}

IdentifiedGenesisMetadata has the client metadata with the corresponding chain name.

func (*IdentifiedGenesisMetadata) Descriptor

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

func (*IdentifiedGenesisMetadata) GetChainName

func (m *IdentifiedGenesisMetadata) GetChainName() string

func (*IdentifiedGenesisMetadata) GetMetadata

func (m *IdentifiedGenesisMetadata) GetMetadata() []GenesisMetadata

func (*IdentifiedGenesisMetadata) Marshal

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

func (*IdentifiedGenesisMetadata) MarshalTo

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

func (*IdentifiedGenesisMetadata) MarshalToSizedBuffer

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

func (*IdentifiedGenesisMetadata) ProtoMessage

func (*IdentifiedGenesisMetadata) ProtoMessage()

func (*IdentifiedGenesisMetadata) Reset

func (m *IdentifiedGenesisMetadata) Reset()

func (*IdentifiedGenesisMetadata) Size

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

func (*IdentifiedGenesisMetadata) String

func (m *IdentifiedGenesisMetadata) String() string

func (*IdentifiedGenesisMetadata) Unmarshal

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

func (*IdentifiedGenesisMetadata) XXX_DiscardUnknown

func (m *IdentifiedGenesisMetadata) XXX_DiscardUnknown()

func (*IdentifiedGenesisMetadata) XXX_Marshal

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

func (*IdentifiedGenesisMetadata) XXX_Merge

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

func (*IdentifiedGenesisMetadata) XXX_Size

func (m *IdentifiedGenesisMetadata) XXX_Size() int

func (*IdentifiedGenesisMetadata) XXX_Unmarshal

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

type IdentifiedRelayers

type IdentifiedRelayers struct {
	// client identifier
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// authorized relayer list
	Relayers []string `protobuf:"bytes,2,rep,name=relayers,proto3" json:"relayers,omitempty"`
}

IdentifiedRelayer defines a list of authorized relayers for the specified client.

func (*IdentifiedRelayers) Descriptor

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

func (*IdentifiedRelayers) GetChainName

func (m *IdentifiedRelayers) GetChainName() string

func (*IdentifiedRelayers) GetRelayers

func (m *IdentifiedRelayers) GetRelayers() []string

func (*IdentifiedRelayers) Marshal

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

func (*IdentifiedRelayers) MarshalTo

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

func (*IdentifiedRelayers) MarshalToSizedBuffer

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

func (*IdentifiedRelayers) ProtoMessage

func (*IdentifiedRelayers) ProtoMessage()

func (*IdentifiedRelayers) Reset

func (m *IdentifiedRelayers) Reset()

func (*IdentifiedRelayers) Size

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

func (*IdentifiedRelayers) String

func (m *IdentifiedRelayers) String() string

func (*IdentifiedRelayers) Unmarshal

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

func (*IdentifiedRelayers) XXX_DiscardUnknown

func (m *IdentifiedRelayers) XXX_DiscardUnknown()

func (*IdentifiedRelayers) XXX_Marshal

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

func (*IdentifiedRelayers) XXX_Merge

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

func (*IdentifiedRelayers) XXX_Size

func (m *IdentifiedRelayers) XXX_Size() int

func (*IdentifiedRelayers) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// UpdateClient defines a rpc handler method for MsgUpdateClient.
	UpdateClient(ctx context.Context, in *MsgUpdateClient, opts ...grpc.CallOption) (*MsgUpdateClientResponse, 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 MsgServer

type MsgServer interface {
	// UpdateClient defines a rpc handler method for MsgUpdateClient.
	UpdateClient(context.Context, *MsgUpdateClient) (*MsgUpdateClientResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateClient

type MsgUpdateClient struct {
	// client unique identifier
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// 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 (*MsgUpdateClient) Descriptor

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

func (*MsgUpdateClient) GetSignBytes

func (m *MsgUpdateClient) GetSignBytes() []byte

func (*MsgUpdateClient) GetSigners

func (m *MsgUpdateClient) GetSigners() []sdk.AccAddress

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 (m *MsgUpdateClient) Route() string

func (*MsgUpdateClient) Size

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

func (*MsgUpdateClient) String

func (m *MsgUpdateClient) String() string

func (*MsgUpdateClient) Type

func (m *MsgUpdateClient) Type() string

func (*MsgUpdateClient) Unmarshal

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

func (*MsgUpdateClient) ValidateBasic

func (m *MsgUpdateClient) ValidateBasic() error

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 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)
	// Relayers queries all the relayers associated with a given
	// client.
	Relayers(ctx context.Context, in *QueryRelayersRequest, opts ...grpc.CallOption) (*QueryRelayersResponse, 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
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
}

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

func (*QueryClientStateRequest) Descriptor

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

func (*QueryClientStateRequest) GetChainName

func (m *QueryClientStateRequest) GetChainName() 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 (*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 IdentifiedClientStates `protobuf:"bytes,1,rep,name=client_states,json=clientStates,proto3,castrepeated=IdentifiedClientStates" json:"client_states"`
	// 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 (*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
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// consensus state revision number
	RevisionNumber uint64 `protobuf:"varint,2,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"`
	// consensus state revision height
	RevisionHeight uint64 `protobuf:"varint,3,opt,name=revision_height,json=revisionHeight,proto3" json:"revision_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) GetChainName

func (m *QueryConsensusStateRequest) GetChainName() string

func (*QueryConsensusStateRequest) GetLatestHeight

func (m *QueryConsensusStateRequest) GetLatestHeight() bool

func (*QueryConsensusStateRequest) GetRevisionHeight

func (m *QueryConsensusStateRequest) GetRevisionHeight() uint64

func (*QueryConsensusStateRequest) GetRevisionNumber

func (m *QueryConsensusStateRequest) GetRevisionNumber() 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 (*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
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,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) GetChainName

func (m *QueryConsensusStatesRequest) GetChainName() 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 QueryRelayersRequest

type QueryRelayersRequest struct {
	// client identifier
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
}

QueryRelayersRequest is the request type for the Query/Relayers RPC method.

func (*QueryRelayersRequest) Descriptor

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

func (*QueryRelayersRequest) GetChainName

func (m *QueryRelayersRequest) GetChainName() string

func (*QueryRelayersRequest) Marshal

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

func (*QueryRelayersRequest) MarshalTo

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

func (*QueryRelayersRequest) MarshalToSizedBuffer

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

func (*QueryRelayersRequest) ProtoMessage

func (*QueryRelayersRequest) ProtoMessage()

func (*QueryRelayersRequest) Reset

func (m *QueryRelayersRequest) Reset()

func (*QueryRelayersRequest) Size

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

func (*QueryRelayersRequest) String

func (m *QueryRelayersRequest) String() string

func (*QueryRelayersRequest) Unmarshal

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

func (*QueryRelayersRequest) XXX_DiscardUnknown

func (m *QueryRelayersRequest) XXX_DiscardUnknown()

func (*QueryRelayersRequest) XXX_Marshal

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

func (*QueryRelayersRequest) XXX_Merge

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

func (*QueryRelayersRequest) XXX_Size

func (m *QueryRelayersRequest) XXX_Size() int

func (*QueryRelayersRequest) XXX_Unmarshal

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

type QueryRelayersResponse

type QueryRelayersResponse struct {
	// relayers address associated with the client
	Relayers []string `protobuf:"bytes,1,rep,name=relayers,proto3" json:"relayers,omitempty"`
}

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

func (*QueryRelayersResponse) Descriptor

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

func (*QueryRelayersResponse) GetRelayers

func (m *QueryRelayersResponse) GetRelayers() []string

func (*QueryRelayersResponse) Marshal

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

func (*QueryRelayersResponse) MarshalTo

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

func (*QueryRelayersResponse) MarshalToSizedBuffer

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

func (*QueryRelayersResponse) ProtoMessage

func (*QueryRelayersResponse) ProtoMessage()

func (*QueryRelayersResponse) Reset

func (m *QueryRelayersResponse) Reset()

func (*QueryRelayersResponse) Size

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

func (*QueryRelayersResponse) String

func (m *QueryRelayersResponse) String() string

func (*QueryRelayersResponse) Unmarshal

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

func (*QueryRelayersResponse) XXX_DiscardUnknown

func (m *QueryRelayersResponse) XXX_DiscardUnknown()

func (*QueryRelayersResponse) XXX_Marshal

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

func (*QueryRelayersResponse) XXX_Merge

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

func (*QueryRelayersResponse) XXX_Size

func (m *QueryRelayersResponse) XXX_Size() int

func (*QueryRelayersResponse) XXX_Unmarshal

func (m *QueryRelayersResponse) 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)
	// Relayers queries all the relayers associated with a given
	// client.
	Relayers(context.Context, *QueryRelayersRequest) (*QueryRelayersResponse, error)
}

QueryServer is the server API for Query service.

type RegisterRelayerProposal

type RegisterRelayerProposal 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
	ChainName string `protobuf:"bytes,3,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// relayer address list
	Relayers []string `protobuf:"bytes,4,rep,name=relayers,proto3" json:"relayers,omitempty"`
}

RegisterRelayerProposal defines a overnance proposal to register some relayers for updating a client state.

func (*RegisterRelayerProposal) Descriptor

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

func (*RegisterRelayerProposal) Marshal

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

func (*RegisterRelayerProposal) MarshalTo

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

func (*RegisterRelayerProposal) MarshalToSizedBuffer

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

func (*RegisterRelayerProposal) ProtoMessage

func (*RegisterRelayerProposal) ProtoMessage()

func (*RegisterRelayerProposal) Reset

func (m *RegisterRelayerProposal) Reset()

func (*RegisterRelayerProposal) Size

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

func (*RegisterRelayerProposal) String

func (m *RegisterRelayerProposal) String() string

func (*RegisterRelayerProposal) Unmarshal

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

func (*RegisterRelayerProposal) XXX_DiscardUnknown

func (m *RegisterRelayerProposal) XXX_DiscardUnknown()

func (*RegisterRelayerProposal) XXX_Marshal

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

func (*RegisterRelayerProposal) XXX_Merge

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

func (*RegisterRelayerProposal) XXX_Size

func (m *RegisterRelayerProposal) XXX_Size() int

func (*RegisterRelayerProposal) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateClient

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

func (*UnimplementedQueryServer) Relayers

type UpgradeClientProposal

type UpgradeClientProposal 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
	ChainName string `protobuf:"bytes,3,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// client state
	ClientState *types.Any `protobuf:"bytes,4,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"`
	// consensus state
	ConsensusState *types.Any `protobuf:"bytes,5,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"`
}

UpgradeClientProposal defines a overnance proposal to overide an IBC client state

func (*UpgradeClientProposal) Descriptor

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

func (*UpgradeClientProposal) Marshal

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

func (*UpgradeClientProposal) MarshalTo

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

func (*UpgradeClientProposal) MarshalToSizedBuffer

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

func (*UpgradeClientProposal) ProtoMessage

func (*UpgradeClientProposal) ProtoMessage()

func (*UpgradeClientProposal) Reset

func (m *UpgradeClientProposal) Reset()

func (*UpgradeClientProposal) Size

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

func (*UpgradeClientProposal) String

func (m *UpgradeClientProposal) String() string

func (*UpgradeClientProposal) Unmarshal

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

func (*UpgradeClientProposal) XXX_DiscardUnknown

func (m *UpgradeClientProposal) XXX_DiscardUnknown()

func (*UpgradeClientProposal) XXX_Marshal

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

func (*UpgradeClientProposal) XXX_Merge

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

func (*UpgradeClientProposal) XXX_Size

func (m *UpgradeClientProposal) XXX_Size() int

func (*UpgradeClientProposal) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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