Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *codec.Codec)
- type ClientState
- func (cs ClientState) ClientType() clientexported.ClientType
- func (cs ClientState) GetChainID() string
- func (cs ClientState) GetID() string
- func (cs ClientState) GetLatestHeight() uint64
- func (cs ClientState) GetProofSpecs() []*ics23.ProofSpec
- func (cs ClientState) IsFrozen() bool
- func (cs ClientState) Validate() error
- func (cs ClientState) VerifyChannelState(store sdk.KVStore, cdc codec.Marshaler, _ uint64, ...) error
- func (cs ClientState) VerifyClientConsensusState(store sdk.KVStore, _ codec.Marshaler, aminoCdc *codec.Codec, ...) error
- func (cs ClientState) VerifyConnectionState(store sdk.KVStore, cdc codec.Marshaler, _ uint64, ...) error
- func (cs ClientState) VerifyNextSequenceRecv(store sdk.KVStore, _ codec.Marshaler, _ uint64, ...) error
- func (cs ClientState) VerifyPacketAcknowledgement(store sdk.KVStore, _ codec.Marshaler, _ uint64, ...) error
- func (cs ClientState) VerifyPacketAcknowledgementAbsence(store sdk.KVStore, _ codec.Marshaler, _ uint64, ...) error
- func (cs ClientState) VerifyPacketCommitment(store sdk.KVStore, _ codec.Marshaler, _ uint64, ...) error
- type MsgCreateClient
- func (*MsgCreateClient) Descriptor() ([]byte, []int)
- func (msg MsgCreateClient) GetClientID() string
- func (msg MsgCreateClient) GetClientType() string
- func (msg MsgCreateClient) GetConsensusState() clientexported.ConsensusState
- func (msg MsgCreateClient) GetSignBytes() []byte
- func (m *MsgCreateClient) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgCreateClient) GetSigners() []sdk.AccAddress
- func (m *MsgCreateClient) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateClient) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateClient) ProtoMessage()
- func (m *MsgCreateClient) Reset()
- func (msg MsgCreateClient) Route() string
- func (m *MsgCreateClient) Size() (n int)
- func (m *MsgCreateClient) String() string
- func (msg MsgCreateClient) Type() string
- func (m *MsgCreateClient) Unmarshal(dAtA []byte) error
- func (msg MsgCreateClient) ValidateBasic() error
- func (m *MsgCreateClient) XXX_DiscardUnknown()
- func (m *MsgCreateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateClient) XXX_Merge(src proto.Message)
- func (m *MsgCreateClient) XXX_Size() int
- func (m *MsgCreateClient) XXX_Unmarshal(b []byte) error
Constants ¶
const (
// SubModuleName for the localhost (loopback) client
SubModuleName = "localhost"
)
const (
TypeMsgCreateClient string = "create_client"
)
Message types for the IBC client
Variables ¶
var ( ErrInvalidLengthLocalhost = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLocalhost = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLocalhost = fmt.Errorf("proto: unexpected end of group") )
var SubModuleCdc *codec.Codec
SubModuleCdc defines the IBC localhost client codec.
Functions ¶
func RegisterCodec ¶
RegisterCodec registers the localhost types
Types ¶
type ClientState ¶
type ClientState struct { ID string `json:"id" yaml:"id"` ChainID string `json:"chain_id" yaml:"chain_id"` Height int64 `json:"height" yaml:"height"` }
ClientState requires (read-only) access to keys outside the client prefix.
func NewClientState ¶
func NewClientState(chainID string, height int64) ClientState
NewClientState creates a new ClientState instance
func (ClientState) ClientType ¶
func (cs ClientState) ClientType() clientexported.ClientType
ClientType is localhost.
func (ClientState) GetChainID ¶
func (cs ClientState) GetChainID() string
GetChainID returns an empty string
func (ClientState) GetID ¶
func (cs ClientState) GetID() string
GetID returns the loop-back client state identifier.
func (ClientState) GetLatestHeight ¶
func (cs ClientState) GetLatestHeight() uint64
GetLatestHeight returns the latest height stored.
func (ClientState) GetProofSpecs ¶
func (cs ClientState) GetProofSpecs() []*ics23.ProofSpec
GetProofSpecs returns nil since localhost does not have to verify proofs
func (ClientState) Validate ¶
func (cs ClientState) Validate() error
Validate performs a basic validation of the client state fields.
func (ClientState) VerifyChannelState ¶
func (cs ClientState) VerifyChannelState( store sdk.KVStore, cdc codec.Marshaler, _ uint64, prefix commitmentexported.Prefix, _ []byte, portID, channelID string, channel channelexported.ChannelI, _ clientexported.ConsensusState, ) error
VerifyChannelState verifies a proof of the channel state of the specified channel end, under the specified port, stored on the local machine.
func (ClientState) VerifyClientConsensusState ¶
func (cs ClientState) VerifyClientConsensusState( store sdk.KVStore, _ codec.Marshaler, aminoCdc *codec.Codec, _ commitmentexported.Root, height uint64, _ string, consensusHeight uint64, prefix commitmentexported.Prefix, _ []byte, consensusState clientexported.ConsensusState, ) error
VerifyClientConsensusState verifies a proof of the consensus state of the loop-back client. VerifyClientConsensusState verifies a proof of the consensus state of the Tendermint client stored on the target machine.
func (ClientState) VerifyConnectionState ¶
func (cs ClientState) VerifyConnectionState( store sdk.KVStore, cdc codec.Marshaler, _ uint64, prefix commitmentexported.Prefix, _ []byte, connectionID string, connectionEnd connectionexported.ConnectionI, _ clientexported.ConsensusState, ) error
VerifyConnectionState verifies a proof of the connection state of the specified connection end stored locally.
func (ClientState) VerifyNextSequenceRecv ¶
func (cs ClientState) VerifyNextSequenceRecv( store sdk.KVStore, _ codec.Marshaler, _ uint64, prefix commitmentexported.Prefix, _ []byte, portID, channelID string, nextSequenceRecv uint64, _ clientexported.ConsensusState, ) error
VerifyNextSequenceRecv verifies a proof of the next sequence number to be received of the specified channel at the specified port.
func (ClientState) VerifyPacketAcknowledgement ¶
func (cs ClientState) VerifyPacketAcknowledgement( store sdk.KVStore, _ codec.Marshaler, _ uint64, prefix commitmentexported.Prefix, _ []byte, portID, channelID string, sequence uint64, acknowledgement []byte, _ clientexported.ConsensusState, ) error
VerifyPacketAcknowledgement verifies a proof of an incoming packet acknowledgement at the specified port, specified channel, and specified sequence.
func (ClientState) VerifyPacketAcknowledgementAbsence ¶
func (cs ClientState) VerifyPacketAcknowledgementAbsence( store sdk.KVStore, _ codec.Marshaler, _ uint64, prefix commitmentexported.Prefix, _ []byte, portID, channelID string, sequence uint64, _ clientexported.ConsensusState, ) error
VerifyPacketAcknowledgementAbsence verifies a proof of the absence of an incoming packet acknowledgement at the specified port, specified channel, and specified sequence.
func (ClientState) VerifyPacketCommitment ¶
func (cs ClientState) VerifyPacketCommitment( store sdk.KVStore, _ codec.Marshaler, _ uint64, prefix commitmentexported.Prefix, _ []byte, portID, channelID string, sequence uint64, commitmentBytes []byte, _ clientexported.ConsensusState, ) error
VerifyPacketCommitment verifies a proof of an outgoing packet commitment at the specified port, specified channel, and specified sequence.
type MsgCreateClient ¶
type MsgCreateClient struct {
Signer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}
MsgCreateClient defines a message to create an IBC client
func NewMsgCreateClient ¶
func NewMsgCreateClient(signer sdk.AccAddress) *MsgCreateClient
NewMsgCreateClient creates a new MsgCreateClient instance
func (*MsgCreateClient) Descriptor ¶
func (*MsgCreateClient) Descriptor() ([]byte, []int)
func (MsgCreateClient) GetClientID ¶
func (msg MsgCreateClient) GetClientID() string
GetClientID implements clientexported.MsgCreateClient
func (MsgCreateClient) GetClientType ¶
func (msg MsgCreateClient) GetClientType() string
GetClientType implements clientexported.MsgCreateClient
func (MsgCreateClient) GetConsensusState ¶
func (msg MsgCreateClient) GetConsensusState() clientexported.ConsensusState
GetConsensusState implements clientexported.MsgCreateClient
func (MsgCreateClient) GetSignBytes ¶
func (msg MsgCreateClient) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgCreateClient) GetSigner ¶
func (m *MsgCreateClient) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress
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) MarshalToSizedBuffer ¶
func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateClient) ProtoMessage ¶
func (*MsgCreateClient) ProtoMessage()
func (*MsgCreateClient) Reset ¶
func (m *MsgCreateClient) Reset()
func (*MsgCreateClient) Size ¶
func (m *MsgCreateClient) Size() (n int)
func (*MsgCreateClient) String ¶
func (m *MsgCreateClient) String() string
func (*MsgCreateClient) Unmarshal ¶
func (m *MsgCreateClient) Unmarshal(dAtA []byte) error
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