Documentation ¶
Index ¶
- Variables
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- type BlockIDFlag
- type CanonicalBlockID
- func (b *CanonicalBlockID) BlockID() *tmtypes.BlockID
- func (*CanonicalBlockID) Descriptor() ([]byte, []int)
- func (m *CanonicalBlockID) Marshal() (dAtA []byte, err error)
- func (m *CanonicalBlockID) MarshalTo(dAtA []byte) (int, error)
- func (m *CanonicalBlockID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CanonicalBlockID) ProtoMessage()
- func (m *CanonicalBlockID) Reset()
- func (m *CanonicalBlockID) Size() (n int)
- func (m *CanonicalBlockID) String() string
- func (m *CanonicalBlockID) Unmarshal(dAtA []byte) error
- func (m *CanonicalBlockID) XXX_DiscardUnknown()
- func (m *CanonicalBlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CanonicalBlockID) XXX_Merge(src proto.Message)
- func (m *CanonicalBlockID) XXX_Size() int
- func (m *CanonicalBlockID) XXX_Unmarshal(b []byte) error
- type CanonicalPartSetHeader
- func (*CanonicalPartSetHeader) Descriptor() ([]byte, []int)
- func (m *CanonicalPartSetHeader) Marshal() (dAtA []byte, err error)
- func (m *CanonicalPartSetHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *CanonicalPartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CanonicalPartSetHeader) ProtoMessage()
- func (m *CanonicalPartSetHeader) Reset()
- func (m *CanonicalPartSetHeader) Size() (n int)
- func (m *CanonicalPartSetHeader) String() string
- func (m *CanonicalPartSetHeader) Unmarshal(dAtA []byte) error
- func (m *CanonicalPartSetHeader) XXX_DiscardUnknown()
- func (m *CanonicalPartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CanonicalPartSetHeader) XXX_Merge(src proto.Message)
- func (m *CanonicalPartSetHeader) XXX_Size() int
- func (m *CanonicalPartSetHeader) XXX_Unmarshal(b []byte) error
- type CanonicalVote
- func (*CanonicalVote) Descriptor() ([]byte, []int)
- func (m *CanonicalVote) Marshal() (dAtA []byte, err error)
- func (m *CanonicalVote) MarshalTo(dAtA []byte) (int, error)
- func (m *CanonicalVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CanonicalVote) ProtoMessage()
- func (m *CanonicalVote) Reset()
- func (m *CanonicalVote) Size() (n int)
- func (m *CanonicalVote) String() string
- func (m *CanonicalVote) Unmarshal(dAtA []byte) error
- func (m *CanonicalVote) XXX_DiscardUnknown()
- func (m *CanonicalVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CanonicalVote) XXX_Merge(src proto.Message)
- func (m *CanonicalVote) XXX_Size() int
- func (m *CanonicalVote) XXX_Unmarshal(b []byte) error
- type ClientState
- func (*ClientState) Descriptor() ([]byte, []int)
- func (m *ClientState) Marshal() (dAtA []byte, err error)
- func (m *ClientState) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientState) ProtoMessage()
- func (m *ClientState) Reset()
- func (m *ClientState) Size() (n int)
- func (m *ClientState) String() string
- func (m *ClientState) Unmarshal(dAtA []byte) error
- func (m *ClientState) XXX_DiscardUnknown()
- func (m *ClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientState) XXX_Merge(src proto.Message)
- func (m *ClientState) XXX_Size() int
- func (m *ClientState) XXX_Unmarshal(b []byte) error
- type Commit
- func (c *Commit) Commit() *tmtypes.Commit
- func (*Commit) Descriptor() ([]byte, []int)
- func (m *Commit) Marshal() (dAtA []byte, err error)
- func (m *Commit) MarshalTo(dAtA []byte) (int, error)
- func (m *Commit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Commit) ProtoMessage()
- func (m *Commit) Reset()
- func (m *Commit) Size() (n int)
- func (m *Commit) String() string
- func (m *Commit) Unmarshal(dAtA []byte) error
- func (m *Commit) XXX_DiscardUnknown()
- func (m *Commit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Commit) XXX_Merge(src proto.Message)
- func (m *Commit) XXX_Size() int
- func (m *Commit) XXX_Unmarshal(b []byte) error
- type CommitSig
- func (c *CommitSig) CommitSig() *tmtypes.CommitSig
- func (*CommitSig) Descriptor() ([]byte, []int)
- func (m *CommitSig) Marshal() (dAtA []byte, err error)
- func (m *CommitSig) MarshalTo(dAtA []byte) (int, error)
- func (m *CommitSig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CommitSig) ProtoMessage()
- func (m *CommitSig) Reset()
- func (m *CommitSig) Size() (n int)
- func (m *CommitSig) String() string
- func (m *CommitSig) Unmarshal(dAtA []byte) error
- func (m *CommitSig) XXX_DiscardUnknown()
- func (m *CommitSig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommitSig) XXX_Merge(src proto.Message)
- func (m *CommitSig) XXX_Size() int
- func (m *CommitSig) XXX_Unmarshal(b []byte) error
- type Consensus
- func (*Consensus) Descriptor() ([]byte, []int)
- func (m *Consensus) Marshal() (dAtA []byte, err error)
- func (m *Consensus) MarshalTo(dAtA []byte) (int, error)
- func (m *Consensus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Consensus) ProtoMessage()
- func (m *Consensus) Reset()
- func (m *Consensus) Size() (n int)
- func (m *Consensus) String() string
- func (m *Consensus) Unmarshal(dAtA []byte) error
- func (m *Consensus) XXX_DiscardUnknown()
- func (m *Consensus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Consensus) XXX_Merge(src proto.Message)
- func (m *Consensus) XXX_Size() int
- func (m *Consensus) XXX_Unmarshal(b []byte) error
- type ConsensusState
- func (*ConsensusState) Descriptor() ([]byte, []int)
- func (m *ConsensusState) Marshal() (dAtA []byte, err error)
- func (m *ConsensusState) MarshalTo(dAtA []byte) (int, error)
- func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConsensusState) ProtoMessage()
- func (m *ConsensusState) Reset()
- func (m *ConsensusState) Size() (n int)
- func (m *ConsensusState) String() string
- func (m *ConsensusState) Unmarshal(dAtA []byte) error
- func (m *ConsensusState) XXX_DiscardUnknown()
- func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsensusState) XXX_Merge(src proto.Message)
- func (m *ConsensusState) XXX_Size() int
- func (m *ConsensusState) XXX_Unmarshal(b []byte) error
- type Duration
- func (*Duration) Descriptor() ([]byte, []int)
- func (m *Duration) Marshal() (dAtA []byte, err error)
- func (m *Duration) MarshalTo(dAtA []byte) (int, error)
- func (m *Duration) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Duration) ProtoMessage()
- func (m *Duration) Reset()
- func (m *Duration) Size() (n int)
- func (m *Duration) String() string
- func (m *Duration) Unmarshal(dAtA []byte) error
- func (m *Duration) XXX_DiscardUnknown()
- func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Duration) XXX_Merge(src proto.Message)
- func (m *Duration) XXX_Size() int
- func (m *Duration) XXX_Unmarshal(b []byte) error
- type Fraction
- func (*Fraction) Descriptor() ([]byte, []int)
- func (m *Fraction) Marshal() (dAtA []byte, err error)
- func (m *Fraction) MarshalTo(dAtA []byte) (int, error)
- func (m *Fraction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Fraction) ProtoMessage()
- func (m *Fraction) Reset()
- func (m *Fraction) Size() (n int)
- func (m *Fraction) String() string
- func (m *Fraction) Unmarshal(dAtA []byte) error
- func (m *Fraction) XXX_DiscardUnknown()
- func (m *Fraction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Fraction) XXX_Merge(src proto.Message)
- func (m *Fraction) XXX_Size() int
- func (m *Fraction) XXX_Unmarshal(b []byte) error
- type Height
- func (*Height) Descriptor() ([]byte, []int)
- func (m *Height) Marshal() (dAtA []byte, err error)
- func (m *Height) MarshalTo(dAtA []byte) (int, error)
- func (m *Height) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Height) ProtoMessage()
- func (m *Height) Reset()
- func (m *Height) Size() (n int)
- func (m *Height) String() string
- func (m *Height) Unmarshal(dAtA []byte) error
- func (m *Height) XXX_DiscardUnknown()
- func (m *Height) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Height) XXX_Merge(src proto.Message)
- func (m *Height) XXX_Size() int
- func (m *Height) XXX_Unmarshal(b []byte) error
- type LightHeader
- func (*LightHeader) Descriptor() ([]byte, []int)
- func (h *LightHeader) Header() *tmtypes.Header
- func (m *LightHeader) Marshal() (dAtA []byte, err error)
- func (m *LightHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *LightHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LightHeader) ProtoMessage()
- func (m *LightHeader) Reset()
- func (m *LightHeader) Size() (n int)
- func (m *LightHeader) String() string
- func (m *LightHeader) Unmarshal(dAtA []byte) error
- func (h LightHeader) ValidateBasic() error
- func (m *LightHeader) XXX_DiscardUnknown()
- func (m *LightHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LightHeader) XXX_Merge(src proto.Message)
- func (m *LightHeader) XXX_Size() int
- func (m *LightHeader) XXX_Unmarshal(b []byte) error
- type MerkleProof
- func (*MerkleProof) Descriptor() ([]byte, []int)
- func (m *MerkleProof) Marshal() (dAtA []byte, err error)
- func (m *MerkleProof) MarshalTo(dAtA []byte) (int, error)
- func (m *MerkleProof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MerkleProof) ProtoMessage()
- func (m *MerkleProof) Reset()
- func (m *MerkleProof) Size() (n int)
- func (m *MerkleProof) String() string
- func (m *MerkleProof) Unmarshal(dAtA []byte) error
- func (m *MerkleProof) XXX_DiscardUnknown()
- func (m *MerkleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerkleProof) XXX_Merge(src proto.Message)
- func (m *MerkleProof) XXX_Size() int
- func (m *MerkleProof) XXX_Unmarshal(b []byte) error
- type MerkleRoot
- func (*MerkleRoot) Descriptor() ([]byte, []int)
- func (m *MerkleRoot) Marshal() (dAtA []byte, err error)
- func (m *MerkleRoot) MarshalTo(dAtA []byte) (int, error)
- func (m *MerkleRoot) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MerkleRoot) ProtoMessage()
- func (m *MerkleRoot) Reset()
- func (m *MerkleRoot) Size() (n int)
- func (m *MerkleRoot) String() string
- func (m *MerkleRoot) Unmarshal(dAtA []byte) error
- func (m *MerkleRoot) XXX_DiscardUnknown()
- func (m *MerkleRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerkleRoot) XXX_Merge(src proto.Message)
- func (m *MerkleRoot) XXX_Size() int
- func (m *MerkleRoot) XXX_Unmarshal(b []byte) error
- type SignedHeader
- func (*SignedHeader) Descriptor() ([]byte, []int)
- func (m *SignedHeader) Marshal() (dAtA []byte, err error)
- func (m *SignedHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *SignedHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignedHeader) ProtoMessage()
- func (m *SignedHeader) Reset()
- func (sh SignedHeader) SignedHeader() *tmtypes.SignedHeader
- func (m *SignedHeader) Size() (n int)
- func (m *SignedHeader) String() string
- func (m *SignedHeader) Unmarshal(dAtA []byte) error
- func (sh SignedHeader) ValidateBasic(chainID string) error
- func (m *SignedHeader) XXX_DiscardUnknown()
- func (m *SignedHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedHeader) XXX_Merge(src proto.Message)
- func (m *SignedHeader) XXX_Size() int
- func (m *SignedHeader) XXX_Unmarshal(b []byte) error
- type SignedMsgType
- type Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)
- func (m *Timestamp) Marshal() (dAtA []byte, err error)
- func (m *Timestamp) MarshalTo(dAtA []byte) (int, error)
- func (m *Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Timestamp) ProtoMessage()
- func (m *Timestamp) Reset()
- func (m *Timestamp) Size() (n int)
- func (m *Timestamp) String() string
- func (t *Timestamp) Time() time.Time
- func (m *Timestamp) Unmarshal(dAtA []byte) error
- func (m *Timestamp) XXX_DiscardUnknown()
- func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Timestamp) XXX_Merge(src proto.Message)
- func (m *Timestamp) XXX_Size() int
- func (m *Timestamp) XXX_Unmarshal(b []byte) error
- type TmHeader
- func (h TmHeader) ClientType() string
- func (h TmHeader) ConsensusState() *tmclient.ConsensusState
- func (*TmHeader) Descriptor() ([]byte, []int)
- func (h TmHeader) GetHeight() exported.Height
- func (h TmHeader) GetTime() time.Time
- func (h TmHeader) Header() (*tmclient.Header, error)
- func (m *TmHeader) Marshal() (dAtA []byte, err error)
- func (m *TmHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *TmHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TmHeader) ProtoMessage()
- func (m *TmHeader) Reset()
- func (m *TmHeader) Size() (n int)
- func (m *TmHeader) String() string
- func (m *TmHeader) Unmarshal(dAtA []byte) error
- func (h TmHeader) ValidateBasic() error
- func (m *TmHeader) XXX_DiscardUnknown()
- func (m *TmHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TmHeader) XXX_Merge(src proto.Message)
- func (m *TmHeader) XXX_Size() int
- func (m *TmHeader) XXX_Unmarshal(b []byte) error
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (v *Validator) Validator() *tmtypes.Validator
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type ValidatorSet
- func (*ValidatorSet) Descriptor() ([]byte, []int)
- func (m *ValidatorSet) Marshal() (dAtA []byte, err error)
- func (m *ValidatorSet) MarshalTo(dAtA []byte) (int, error)
- func (m *ValidatorSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValidatorSet) ProtoMessage()
- func (m *ValidatorSet) Reset()
- func (m *ValidatorSet) Size() (n int)
- func (m *ValidatorSet) String() string
- func (m *ValidatorSet) Unmarshal(dAtA []byte) error
- func (v *ValidatorSet) ValidatorSet() *tmtypes.ValidatorSet
- func (m *ValidatorSet) XXX_DiscardUnknown()
- func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorSet) XXX_Merge(src proto.Message)
- func (m *ValidatorSet) XXX_Size() int
- func (m *ValidatorSet) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthTendermintLight = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTendermintLight = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTendermintLight = fmt.Errorf("proto: unexpected end of group") )
var BlockIDFlag_name = map[int32]string{
0: "BLOCK_ID_FLAG_UNKNOWN",
1: "BLOCK_ID_FLAG_ABSENT",
2: "BLOCK_ID_FLAG_COMMIT",
3: "BLOCK_ID_FLAG_NIL",
}
var BlockIDFlag_value = map[string]int32{
"BLOCK_ID_FLAG_UNKNOWN": 0,
"BLOCK_ID_FLAG_ABSENT": 1,
"BLOCK_ID_FLAG_COMMIT": 2,
"BLOCK_ID_FLAG_NIL": 3,
}
var SignedMsgType_name = map[int32]string{
0: "SIGNED_MSG_TYPE_UNKNOWN",
1: "SIGNED_MSG_TYPE_PREVOTE",
2: "SIGNED_MSG_TYPE_PRECOMMIT",
32: "SIGNED_MSG_TYPE_PROPOSAL",
}
var SignedMsgType_value = map[string]int32{
"SIGNED_MSG_TYPE_UNKNOWN": 0,
"SIGNED_MSG_TYPE_PREVOTE": 1,
"SIGNED_MSG_TYPE_PRECOMMIT": 2,
"SIGNED_MSG_TYPE_PROPOSAL": 32,
}
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the module interfaces to protobuf Any.
Types ¶
type BlockIDFlag ¶
type BlockIDFlag int32
const ( BlockIDFlag_BLOCK_ID_FLAG_UNKNOWN BlockIDFlag = 0 BlockIDFlag_BLOCK_ID_FLAG_ABSENT BlockIDFlag = 1 BlockIDFlag_BLOCK_ID_FLAG_COMMIT BlockIDFlag = 2 BlockIDFlag_BLOCK_ID_FLAG_NIL BlockIDFlag = 3 )
func (BlockIDFlag) EnumDescriptor ¶
func (BlockIDFlag) EnumDescriptor() ([]byte, []int)
func (BlockIDFlag) String ¶
func (x BlockIDFlag) String() string
type CanonicalBlockID ¶
type CanonicalBlockID struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` PartSetHeader *CanonicalPartSetHeader `protobuf:"bytes,2,opt,name=part_set_header,json=partSetHeader,proto3" json:"part_set_header,omitempty"` }
func NewCanonicalBlockIDFromTm ¶
func NewCanonicalBlockIDFromTm(id *tmtypes.BlockID) *CanonicalBlockID
func (*CanonicalBlockID) BlockID ¶
func (b *CanonicalBlockID) BlockID() *tmtypes.BlockID
func (*CanonicalBlockID) Descriptor ¶
func (*CanonicalBlockID) Descriptor() ([]byte, []int)
func (*CanonicalBlockID) Marshal ¶
func (m *CanonicalBlockID) Marshal() (dAtA []byte, err error)
func (*CanonicalBlockID) MarshalToSizedBuffer ¶
func (m *CanonicalBlockID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CanonicalBlockID) ProtoMessage ¶
func (*CanonicalBlockID) ProtoMessage()
func (*CanonicalBlockID) Reset ¶
func (m *CanonicalBlockID) Reset()
func (*CanonicalBlockID) Size ¶
func (m *CanonicalBlockID) Size() (n int)
func (*CanonicalBlockID) String ¶
func (m *CanonicalBlockID) String() string
func (*CanonicalBlockID) Unmarshal ¶
func (m *CanonicalBlockID) Unmarshal(dAtA []byte) error
func (*CanonicalBlockID) XXX_DiscardUnknown ¶
func (m *CanonicalBlockID) XXX_DiscardUnknown()
func (*CanonicalBlockID) XXX_Marshal ¶
func (m *CanonicalBlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CanonicalBlockID) XXX_Merge ¶
func (m *CanonicalBlockID) XXX_Merge(src proto.Message)
func (*CanonicalBlockID) XXX_Size ¶
func (m *CanonicalBlockID) XXX_Size() int
func (*CanonicalBlockID) XXX_Unmarshal ¶
func (m *CanonicalBlockID) XXX_Unmarshal(b []byte) error
type CanonicalPartSetHeader ¶
type CanonicalPartSetHeader struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` }
func NewPartSetHeaderFromTm ¶
func NewPartSetHeaderFromTm(h *tmtypes.PartSetHeader) *CanonicalPartSetHeader
func (*CanonicalPartSetHeader) Descriptor ¶
func (*CanonicalPartSetHeader) Descriptor() ([]byte, []int)
func (*CanonicalPartSetHeader) Marshal ¶
func (m *CanonicalPartSetHeader) Marshal() (dAtA []byte, err error)
func (*CanonicalPartSetHeader) MarshalTo ¶
func (m *CanonicalPartSetHeader) MarshalTo(dAtA []byte) (int, error)
func (*CanonicalPartSetHeader) MarshalToSizedBuffer ¶
func (m *CanonicalPartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CanonicalPartSetHeader) ProtoMessage ¶
func (*CanonicalPartSetHeader) ProtoMessage()
func (*CanonicalPartSetHeader) Reset ¶
func (m *CanonicalPartSetHeader) Reset()
func (*CanonicalPartSetHeader) Size ¶
func (m *CanonicalPartSetHeader) Size() (n int)
func (*CanonicalPartSetHeader) String ¶
func (m *CanonicalPartSetHeader) String() string
func (*CanonicalPartSetHeader) Unmarshal ¶
func (m *CanonicalPartSetHeader) Unmarshal(dAtA []byte) error
func (*CanonicalPartSetHeader) XXX_DiscardUnknown ¶
func (m *CanonicalPartSetHeader) XXX_DiscardUnknown()
func (*CanonicalPartSetHeader) XXX_Marshal ¶
func (m *CanonicalPartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CanonicalPartSetHeader) XXX_Merge ¶
func (m *CanonicalPartSetHeader) XXX_Merge(src proto.Message)
func (*CanonicalPartSetHeader) XXX_Size ¶
func (m *CanonicalPartSetHeader) XXX_Size() int
func (*CanonicalPartSetHeader) XXX_Unmarshal ¶
func (m *CanonicalPartSetHeader) XXX_Unmarshal(b []byte) error
type CanonicalVote ¶
type CanonicalVote struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.light.SignedMsgType" json:"type,omitempty"` Height int64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` Round int64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` BlockId *CanonicalBlockID `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` Timestamp *Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` ChainId string `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` }
func (*CanonicalVote) Descriptor ¶
func (*CanonicalVote) Descriptor() ([]byte, []int)
func (*CanonicalVote) Marshal ¶
func (m *CanonicalVote) Marshal() (dAtA []byte, err error)
func (*CanonicalVote) MarshalToSizedBuffer ¶
func (m *CanonicalVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CanonicalVote) ProtoMessage ¶
func (*CanonicalVote) ProtoMessage()
func (*CanonicalVote) Reset ¶
func (m *CanonicalVote) Reset()
func (*CanonicalVote) Size ¶
func (m *CanonicalVote) Size() (n int)
func (*CanonicalVote) String ¶
func (m *CanonicalVote) String() string
func (*CanonicalVote) Unmarshal ¶
func (m *CanonicalVote) Unmarshal(dAtA []byte) error
func (*CanonicalVote) XXX_DiscardUnknown ¶
func (m *CanonicalVote) XXX_DiscardUnknown()
func (*CanonicalVote) XXX_Marshal ¶
func (m *CanonicalVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CanonicalVote) XXX_Merge ¶
func (m *CanonicalVote) XXX_Merge(src proto.Message)
func (*CanonicalVote) XXX_Size ¶
func (m *CanonicalVote) XXX_Size() int
func (*CanonicalVote) XXX_Unmarshal ¶
func (m *CanonicalVote) XXX_Unmarshal(b []byte) error
type ClientState ¶
type ClientState struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` TrustLevel *Fraction `protobuf:"bytes,2,opt,name=trust_level,json=trustLevel,proto3" json:"trust_level,omitempty"` // duration of the period since the LastestTimestamp during which the // submitted headers are valid for upgrade TrustingPeriod *Duration `protobuf:"bytes,3,opt,name=trusting_period,json=trustingPeriod,proto3" json:"trusting_period,omitempty"` // duration of the staking unbonding period UnbondingPeriod *Duration `protobuf:"bytes,4,opt,name=unbonding_period,json=unbondingPeriod,proto3" json:"unbonding_period,omitempty"` // defines how much new (untrusted) header's Time can drift into the future. MaxClockDrift *Duration `protobuf:"bytes,5,opt,name=max_clock_drift,json=maxClockDrift,proto3" json:"max_clock_drift,omitempty"` // Block height when the client was frozen due to a misbehaviour //ibc.core.client.v1.Height frozen_height = 6; FrozenHeight *Height `protobuf:"bytes,6,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"` // Latest height the client was updated to LatestHeight *Height `protobuf:"bytes,7,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` // Proof specifications used in verifying counterparty state ProofSpecs []*ics23.ProofSpec `protobuf:"bytes,8,rep,name=proof_specs,json=proofSpecs,proto3" json:"proof_specs,omitempty"` // Path at which next upgraded client will be committed. // Each element corresponds to the key for a single CommitmentProof in the // chained proof. NOTE: ClientState must stored under // `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored // under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using // the default upgrade module, upgrade_path should be []string{"upgrade", // "upgradedIBCState"}` UpgradePath []string `protobuf:"bytes,9,rep,name=upgrade_path,json=upgradePath,proto3" json:"upgrade_path,omitempty"` // This flag, when set to true, will allow governance to recover a client // which has expired AllowUpdateAfterExpiry bool `` /* 133-byte string literal not displayed */ // This flag, when set to true, will allow governance to unfreeze a client // whose chain has experienced a misbehaviour event AllowUpdateAfterMisbehaviour bool `` /* 151-byte string literal not displayed */ }
func (*ClientState) Descriptor ¶
func (*ClientState) Descriptor() ([]byte, []int)
func (*ClientState) Marshal ¶
func (m *ClientState) Marshal() (dAtA []byte, err error)
func (*ClientState) MarshalToSizedBuffer ¶
func (m *ClientState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientState) ProtoMessage ¶
func (*ClientState) ProtoMessage()
func (*ClientState) Reset ¶
func (m *ClientState) Reset()
func (*ClientState) Size ¶
func (m *ClientState) Size() (n int)
func (*ClientState) String ¶
func (m *ClientState) String() string
func (*ClientState) Unmarshal ¶
func (m *ClientState) Unmarshal(dAtA []byte) error
func (*ClientState) XXX_DiscardUnknown ¶
func (m *ClientState) XXX_DiscardUnknown()
func (*ClientState) XXX_Marshal ¶
func (m *ClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientState) XXX_Merge ¶
func (m *ClientState) XXX_Merge(src proto.Message)
func (*ClientState) XXX_Size ¶
func (m *ClientState) XXX_Size() int
func (*ClientState) XXX_Unmarshal ¶
func (m *ClientState) XXX_Unmarshal(b []byte) error
type Commit ¶
type Commit struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` BlockId *CanonicalBlockID `protobuf:"bytes,3,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` Signatures []*CommitSig `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures,omitempty"` }
func NewCommitFromTm ¶
func (*Commit) Descriptor ¶
func (*Commit) MarshalToSizedBuffer ¶
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
func (*Commit) XXX_DiscardUnknown ¶
func (m *Commit) XXX_DiscardUnknown()
func (*Commit) XXX_Marshal ¶
func (*Commit) XXX_Unmarshal ¶
type CommitSig ¶
type CommitSig struct { BlockIdFlag BlockIDFlag `` /* 131-byte string literal not displayed */ ValidatorAddress []byte `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Timestamp *Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` }
CommitSig is a part of the Vote included in a Commit.
func NewCommitFromTmSig ¶
func (*CommitSig) Descriptor ¶
func (*CommitSig) MarshalToSizedBuffer ¶
func (*CommitSig) ProtoMessage ¶
func (*CommitSig) ProtoMessage()
func (*CommitSig) XXX_DiscardUnknown ¶
func (m *CommitSig) XXX_DiscardUnknown()
func (*CommitSig) XXX_Marshal ¶
func (*CommitSig) XXX_Unmarshal ¶
type Consensus ¶
type Consensus struct { Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"` App uint64 `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"` }
func (*Consensus) Descriptor ¶
func (*Consensus) MarshalToSizedBuffer ¶
func (*Consensus) ProtoMessage ¶
func (*Consensus) ProtoMessage()
func (*Consensus) XXX_DiscardUnknown ¶
func (m *Consensus) XXX_DiscardUnknown()
func (*Consensus) XXX_Marshal ¶
func (*Consensus) XXX_Unmarshal ¶
type ConsensusState ¶
type ConsensusState struct { // timestamp that corresponds to the block height in which the ConsensusState // was stored. Timestamp *Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // commitment root (i.e app hash) Root *MerkleRoot `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` NextValidatorsHash []byte `protobuf:"bytes,3,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` }
ConsensusState defines the consensus state from Tendermint.
func (*ConsensusState) Descriptor ¶
func (*ConsensusState) Descriptor() ([]byte, []int)
func (*ConsensusState) Marshal ¶
func (m *ConsensusState) Marshal() (dAtA []byte, err error)
func (*ConsensusState) MarshalToSizedBuffer ¶
func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsensusState) ProtoMessage ¶
func (*ConsensusState) ProtoMessage()
func (*ConsensusState) Reset ¶
func (m *ConsensusState) Reset()
func (*ConsensusState) Size ¶
func (m *ConsensusState) Size() (n int)
func (*ConsensusState) String ¶
func (m *ConsensusState) String() string
func (*ConsensusState) Unmarshal ¶
func (m *ConsensusState) Unmarshal(dAtA []byte) error
func (*ConsensusState) XXX_DiscardUnknown ¶
func (m *ConsensusState) XXX_DiscardUnknown()
func (*ConsensusState) XXX_Marshal ¶
func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsensusState) XXX_Merge ¶
func (m *ConsensusState) XXX_Merge(src proto.Message)
func (*ConsensusState) XXX_Size ¶
func (m *ConsensusState) XXX_Size() int
func (*ConsensusState) XXX_Unmarshal ¶
func (m *ConsensusState) XXX_Unmarshal(b []byte) error
type Duration ¶
type Duration struct { Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` }
func (*Duration) Descriptor ¶
func (*Duration) MarshalToSizedBuffer ¶
func (*Duration) ProtoMessage ¶
func (*Duration) ProtoMessage()
func (*Duration) XXX_DiscardUnknown ¶
func (m *Duration) XXX_DiscardUnknown()
func (*Duration) XXX_Marshal ¶
func (*Duration) XXX_Unmarshal ¶
type Fraction ¶
type Fraction struct { Numerator uint64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"` Denominator uint64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"` }
func (*Fraction) Descriptor ¶
func (*Fraction) MarshalToSizedBuffer ¶
func (*Fraction) ProtoMessage ¶
func (*Fraction) ProtoMessage()
func (*Fraction) XXX_DiscardUnknown ¶
func (m *Fraction) XXX_DiscardUnknown()
func (*Fraction) XXX_Marshal ¶
func (*Fraction) XXX_Unmarshal ¶
type Height ¶
type Height struct { // the revision that the client is currently on RevisionNumber uint64 `protobuf:"varint,1,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"` // the height within the given revision RevisionHeight uint64 `protobuf:"varint,2,opt,name=revision_height,json=revisionHeight,proto3" json:"revision_height,omitempty"` }
import "client/Client.proto";
func (*Height) Descriptor ¶
func (*Height) MarshalToSizedBuffer ¶
func (*Height) ProtoMessage ¶
func (*Height) ProtoMessage()
func (*Height) XXX_DiscardUnknown ¶
func (m *Height) XXX_DiscardUnknown()
func (*Height) XXX_Marshal ¶
func (*Height) XXX_Unmarshal ¶
type LightHeader ¶
type LightHeader struct { Version *Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Time *Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` LastBlockId *CanonicalBlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"` LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` ValidatorsHash []byte `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"` NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` ConsensusHash []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"` AppHash []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"` EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"` ProposerAddress []byte `protobuf:"bytes,14,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` }
func NewLightHeaderFromTm ¶
func NewLightHeaderFromTm(h *tmtypes.Header) *LightHeader
func (*LightHeader) Descriptor ¶
func (*LightHeader) Descriptor() ([]byte, []int)
func (*LightHeader) Header ¶
func (h *LightHeader) Header() *tmtypes.Header
func (*LightHeader) Marshal ¶
func (m *LightHeader) Marshal() (dAtA []byte, err error)
func (*LightHeader) MarshalToSizedBuffer ¶
func (m *LightHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LightHeader) ProtoMessage ¶
func (*LightHeader) ProtoMessage()
func (*LightHeader) Reset ¶
func (m *LightHeader) Reset()
func (*LightHeader) Size ¶
func (m *LightHeader) Size() (n int)
func (*LightHeader) String ¶
func (m *LightHeader) String() string
func (*LightHeader) Unmarshal ¶
func (m *LightHeader) Unmarshal(dAtA []byte) error
func (LightHeader) ValidateBasic ¶
func (h LightHeader) ValidateBasic() error
func (*LightHeader) XXX_DiscardUnknown ¶
func (m *LightHeader) XXX_DiscardUnknown()
func (*LightHeader) XXX_Marshal ¶
func (m *LightHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LightHeader) XXX_Merge ¶
func (m *LightHeader) XXX_Merge(src proto.Message)
func (*LightHeader) XXX_Size ¶
func (m *LightHeader) XXX_Size() int
func (*LightHeader) XXX_Unmarshal ¶
func (m *LightHeader) XXX_Unmarshal(b []byte) error
type MerkleProof ¶
type MerkleProof struct {
Proofs []*ics23.CommitmentProof `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
}
func (*MerkleProof) Descriptor ¶
func (*MerkleProof) Descriptor() ([]byte, []int)
func (*MerkleProof) Marshal ¶
func (m *MerkleProof) Marshal() (dAtA []byte, err error)
func (*MerkleProof) MarshalToSizedBuffer ¶
func (m *MerkleProof) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MerkleProof) ProtoMessage ¶
func (*MerkleProof) ProtoMessage()
func (*MerkleProof) Reset ¶
func (m *MerkleProof) Reset()
func (*MerkleProof) Size ¶
func (m *MerkleProof) Size() (n int)
func (*MerkleProof) String ¶
func (m *MerkleProof) String() string
func (*MerkleProof) Unmarshal ¶
func (m *MerkleProof) Unmarshal(dAtA []byte) error
func (*MerkleProof) XXX_DiscardUnknown ¶
func (m *MerkleProof) XXX_DiscardUnknown()
func (*MerkleProof) XXX_Marshal ¶
func (m *MerkleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerkleProof) XXX_Merge ¶
func (m *MerkleProof) XXX_Merge(src proto.Message)
func (*MerkleProof) XXX_Size ¶
func (m *MerkleProof) XXX_Size() int
func (*MerkleProof) XXX_Unmarshal ¶
func (m *MerkleProof) XXX_Unmarshal(b []byte) error
type MerkleRoot ¶
type MerkleRoot struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (*MerkleRoot) Descriptor ¶
func (*MerkleRoot) Descriptor() ([]byte, []int)
func (*MerkleRoot) Marshal ¶
func (m *MerkleRoot) Marshal() (dAtA []byte, err error)
func (*MerkleRoot) MarshalToSizedBuffer ¶
func (m *MerkleRoot) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MerkleRoot) ProtoMessage ¶
func (*MerkleRoot) ProtoMessage()
func (*MerkleRoot) Reset ¶
func (m *MerkleRoot) Reset()
func (*MerkleRoot) Size ¶
func (m *MerkleRoot) Size() (n int)
func (*MerkleRoot) String ¶
func (m *MerkleRoot) String() string
func (*MerkleRoot) Unmarshal ¶
func (m *MerkleRoot) Unmarshal(dAtA []byte) error
func (*MerkleRoot) XXX_DiscardUnknown ¶
func (m *MerkleRoot) XXX_DiscardUnknown()
func (*MerkleRoot) XXX_Marshal ¶
func (m *MerkleRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerkleRoot) XXX_Merge ¶
func (m *MerkleRoot) XXX_Merge(src proto.Message)
func (*MerkleRoot) XXX_Size ¶
func (m *MerkleRoot) XXX_Size() int
func (*MerkleRoot) XXX_Unmarshal ¶
func (m *MerkleRoot) XXX_Unmarshal(b []byte) error
type SignedHeader ¶
type SignedHeader struct { Header *LightHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Commit *Commit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` }
func NewSignedHeaderFromTm ¶
func NewSignedHeaderFromTm(sh *tmtypes.SignedHeader) *SignedHeader
func (*SignedHeader) Descriptor ¶
func (*SignedHeader) Descriptor() ([]byte, []int)
func (*SignedHeader) Marshal ¶
func (m *SignedHeader) Marshal() (dAtA []byte, err error)
func (*SignedHeader) MarshalToSizedBuffer ¶
func (m *SignedHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SignedHeader) ProtoMessage ¶
func (*SignedHeader) ProtoMessage()
func (*SignedHeader) Reset ¶
func (m *SignedHeader) Reset()
func (SignedHeader) SignedHeader ¶
func (sh SignedHeader) SignedHeader() *tmtypes.SignedHeader
func (*SignedHeader) Size ¶
func (m *SignedHeader) Size() (n int)
func (*SignedHeader) String ¶
func (m *SignedHeader) String() string
func (*SignedHeader) Unmarshal ¶
func (m *SignedHeader) Unmarshal(dAtA []byte) error
func (SignedHeader) ValidateBasic ¶
func (sh SignedHeader) ValidateBasic(chainID string) error
func (*SignedHeader) XXX_DiscardUnknown ¶
func (m *SignedHeader) XXX_DiscardUnknown()
func (*SignedHeader) XXX_Marshal ¶
func (m *SignedHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedHeader) XXX_Merge ¶
func (m *SignedHeader) XXX_Merge(src proto.Message)
func (*SignedHeader) XXX_Size ¶
func (m *SignedHeader) XXX_Size() int
func (*SignedHeader) XXX_Unmarshal ¶
func (m *SignedHeader) XXX_Unmarshal(b []byte) error
type SignedMsgType ¶
type SignedMsgType int32
const ( SignedMsgType_SIGNED_MSG_TYPE_UNKNOWN SignedMsgType = 0 // Votes SignedMsgType_SIGNED_MSG_TYPE_PREVOTE SignedMsgType = 1 SignedMsgType_SIGNED_MSG_TYPE_PRECOMMIT SignedMsgType = 2 // Proposals SignedMsgType_SIGNED_MSG_TYPE_PROPOSAL SignedMsgType = 32 )
func (SignedMsgType) EnumDescriptor ¶
func (SignedMsgType) EnumDescriptor() ([]byte, []int)
func (SignedMsgType) String ¶
func (x SignedMsgType) String() string
type Timestamp ¶
type Timestamp struct { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to // 9999-12-31T23:59:59Z inclusive. Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` // Non-negative fractions of a second at nanosecond resolution. Negative // second values with fractions must still have non-negative nanos values // that count forward in time. Must be from 0 to 999,999,999 // inclusive. Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` }
func NewTimestampFromTime ¶
func (*Timestamp) Descriptor ¶
func (*Timestamp) MarshalToSizedBuffer ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) XXX_DiscardUnknown ¶
func (m *Timestamp) XXX_DiscardUnknown()
func (*Timestamp) XXX_Marshal ¶
func (*Timestamp) XXX_Unmarshal ¶
type TmHeader ¶
type TmHeader struct { SignedHeader *SignedHeader `protobuf:"bytes,1,opt,name=signed_header,json=signedHeader,proto3" json:"signed_header,omitempty"` ValidatorSet *ValidatorSet `protobuf:"bytes,2,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"` TrustedHeight *Height `protobuf:"bytes,3,opt,name=trusted_height,json=trustedHeight,proto3" json:"trusted_height,omitempty"` TrustedValidators *ValidatorSet `protobuf:"bytes,4,opt,name=trusted_validators,json=trustedValidators,proto3" json:"trusted_validators,omitempty"` }
func (TmHeader) ClientType ¶
ClientType defines that the Header is a Tendermint consensus algorithm
func (TmHeader) ConsensusState ¶
func (h TmHeader) ConsensusState() *tmclient.ConsensusState
ConsensusState returns the updated consensus state associated with the header
func (*TmHeader) Descriptor ¶
func (TmHeader) GetHeight ¶
GetHeight returns the current height. It returns 0 if the tendermint header is nil. NOTE: the header.Header is checked to be non nil in ValidateBasic.
func (TmHeader) GetTime ¶
GetTime returns the current block timestamp. It returns a zero time if the tendermint header is nil. NOTE: the header.Header is checked to be non nil in ValidateBasic.
func (*TmHeader) MarshalToSizedBuffer ¶
func (*TmHeader) ProtoMessage ¶
func (*TmHeader) ProtoMessage()
func (TmHeader) ValidateBasic ¶
// ValidateBasic calls the SignedHeader ValidateBasic function and checks // that validatorsets are not nil. // NOTE: TrustedHeight and TrustedValidators may be empty when creating client // with MsgCreateClient
func (*TmHeader) XXX_DiscardUnknown ¶
func (m *TmHeader) XXX_DiscardUnknown()
func (*TmHeader) XXX_Marshal ¶
func (*TmHeader) XXX_Unmarshal ¶
type Validator ¶
type Validator struct { PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` VotingPower int64 `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` }
func NewValidatorFromTm ¶
func (*Validator) Descriptor ¶
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
type ValidatorSet ¶
type ValidatorSet struct { Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` TotalVotingPower int64 `protobuf:"varint,2,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` }
func NewValidatorSetFromTm ¶
func NewValidatorSetFromTm(vs *tmtypes.ValidatorSet) *ValidatorSet
func (*ValidatorSet) Descriptor ¶
func (*ValidatorSet) Descriptor() ([]byte, []int)
func (*ValidatorSet) Marshal ¶
func (m *ValidatorSet) Marshal() (dAtA []byte, err error)
func (*ValidatorSet) MarshalToSizedBuffer ¶
func (m *ValidatorSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValidatorSet) ProtoMessage ¶
func (*ValidatorSet) ProtoMessage()
func (*ValidatorSet) Reset ¶
func (m *ValidatorSet) Reset()
func (*ValidatorSet) Size ¶
func (m *ValidatorSet) Size() (n int)
func (*ValidatorSet) String ¶
func (m *ValidatorSet) String() string
func (*ValidatorSet) Unmarshal ¶
func (m *ValidatorSet) Unmarshal(dAtA []byte) error
func (*ValidatorSet) ValidatorSet ¶
func (v *ValidatorSet) ValidatorSet() *tmtypes.ValidatorSet
func (*ValidatorSet) XXX_DiscardUnknown ¶
func (m *ValidatorSet) XXX_DiscardUnknown()
func (*ValidatorSet) XXX_Marshal ¶
func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorSet) XXX_Merge ¶
func (m *ValidatorSet) XXX_Merge(src proto.Message)
func (*ValidatorSet) XXX_Size ¶
func (m *ValidatorSet) XXX_Size() int
func (*ValidatorSet) XXX_Unmarshal ¶
func (m *ValidatorSet) XXX_Unmarshal(b []byte) error