tendermint

package
v0.1.0-alpha.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTendermintLight        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTendermintLight          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTendermintLight = fmt.Errorf("proto: unexpected end of group")
)
View Source
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",
}
View Source
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,
}
View Source
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",
}
View Source
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 GetPubKeyFromTx

func GetPubKeyFromTx(t string, b []byte) isPublicKey_Sum

Types

type BlockID

type BlockID struct {
	Hash          []byte         `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	PartSetHeader *PartSetHeader `protobuf:"bytes,2,opt,name=part_set_header,json=partSetHeader,proto3" json:"part_set_header,omitempty"`
}

func (*BlockID) Descriptor

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

func (*BlockID) GetHash

func (m *BlockID) GetHash() []byte

func (*BlockID) GetPartSetHeader

func (m *BlockID) GetPartSetHeader() *PartSetHeader

func (*BlockID) Marshal

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

func (*BlockID) MarshalTo

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

func (*BlockID) MarshalToSizedBuffer

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

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) Reset

func (m *BlockID) Reset()

func (*BlockID) Size

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

func (*BlockID) String

func (m *BlockID) String() string

func (*BlockID) Unmarshal

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

func (*BlockID) XXX_DiscardUnknown

func (m *BlockID) XXX_DiscardUnknown()

func (*BlockID) XXX_Marshal

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

func (*BlockID) XXX_Merge

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

func (*BlockID) XXX_Size

func (m *BlockID) XXX_Size() int

func (*BlockID) XXX_Unmarshal

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

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 (*CanonicalBlockID) Descriptor

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

func (*CanonicalBlockID) GetHash

func (m *CanonicalBlockID) GetHash() []byte

func (*CanonicalBlockID) GetPartSetHeader

func (m *CanonicalBlockID) GetPartSetHeader() *CanonicalPartSetHeader

func (*CanonicalBlockID) Marshal

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

func (*CanonicalBlockID) MarshalTo

func (m *CanonicalBlockID) MarshalTo(dAtA []byte) (int, 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 (*CanonicalPartSetHeader) Descriptor

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

func (*CanonicalPartSetHeader) GetHash

func (m *CanonicalPartSetHeader) GetHash() []byte

func (*CanonicalPartSetHeader) GetTotal

func (m *CanonicalPartSetHeader) GetTotal() uint32

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   *BlockID      `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) GetBlockId

func (m *CanonicalVote) GetBlockId() *BlockID

func (*CanonicalVote) GetChainId

func (m *CanonicalVote) GetChainId() string

func (*CanonicalVote) GetHeight

func (m *CanonicalVote) GetHeight() int64

func (*CanonicalVote) GetRound

func (m *CanonicalVote) GetRound() int64

func (*CanonicalVote) GetTimestamp

func (m *CanonicalVote) GetTimestamp() *Timestamp

func (*CanonicalVote) GetType

func (m *CanonicalVote) GetType() SignedMsgType

func (*CanonicalVote) Marshal

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

func (*CanonicalVote) MarshalTo

func (m *CanonicalVote) MarshalTo(dAtA []byte) (int, 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 int64 `protobuf:"varint,6,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
	// Latest height the client was updated to
	LatestHeight int64 `protobuf:"varint,7,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"`
	// This flag, when set to true, will allow governance to recover a client
	// which has expired
	AllowUpdateAfterExpiry bool `` /* 132-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 `` /* 150-byte string literal not displayed */
}

func NewClientState

func NewClientState(
	chainID string, trustLevel Fraction,
	trustingPeriod, ubdPeriod, maxClockDrift *Duration,
	latestHeight int64,
) *ClientState

NewClientState creates a new ClientState instance

func (ClientState) CheckForMisbehaviour

func (cs ClientState) CheckForMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) bool

func (ClientState) CheckSubstituteAndUpdateState

func (cs ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, subjectClientStore, substituteClientStore sdk.KVStore, substituteClient exported.ClientState) error

func (ClientState) ClientType

func (cs ClientState) ClientType() string

ClientType is tendermint.

func (*ClientState) Descriptor

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

func (ClientState) ExportMetadata

func (cs ClientState) ExportMetadata(store sdk.KVStore) []exported.GenesisMetadata

func (ClientState) GetChainID

func (cs ClientState) GetChainID() string

GetChainID returns the chain-id

func (ClientState) GetLatestHeight

func (cs ClientState) GetLatestHeight() exported.Height

func (ClientState) GetProofSpecs

func (cs ClientState) GetProofSpecs() []*ics23.ProofSpec

func (ClientState) GetTimestampAtHeight

func (cs ClientState) GetTimestampAtHeight(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
) (uint64, error)

GetTimestampAtHeight returns the timestamp in nanoseconds of the consensus state at the given height.

func (ClientState) Initialize

func (cs ClientState) Initialize(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, consState exported.ConsensusState) error

func (ClientState) IsExpired

func (cs ClientState) IsExpired(latestTimestamp, now time.Time) bool

func (*ClientState) Marshal

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

func (*ClientState) MarshalTo

func (m *ClientState) MarshalTo(dAtA []byte) (int, 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) Status

func (cs ClientState) Status(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
) exported.Status

func (*ClientState) String

func (m *ClientState) String() string

func (*ClientState) Unmarshal

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

func (ClientState) UpdateState

func (cs ClientState) UpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) []exported.Height

func (ClientState) UpdateStateOnMisbehaviour

func (cs ClientState) UpdateStateOnMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage)

func (ClientState) Validate

func (cs ClientState) Validate() error

func (ClientState) VerifyClientMessage

func (cs ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) error

func (ClientState) VerifyMembership

func (cs ClientState) VerifyMembership(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
	delayTimePeriod uint64,
	delayBlockPeriod uint64,
	proof []byte,
	path exported.Path,
	value []byte,
) error

func (ClientState) VerifyNonMembership

func (cs ClientState) VerifyNonMembership(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
	delayTimePeriod uint64,
	delayBlockPeriod uint64,
	proof []byte,
	path exported.Path,
) error

func (ClientState) VerifyUpgradeAndUpdateState

func (cs ClientState) VerifyUpgradeAndUpdateState(
	ctx sdk.Context,
	cdc codec.BinaryCodec,
	store sdk.KVStore,
	newClient exported.ClientState,
	newConsState exported.ConsensusState,
	proofUpgradeClient,
	proofUpgradeConsState []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

func (ClientState) ZeroCustomFields

func (cs ClientState) ZeroCustomFields() exported.ClientState

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    *BlockID     `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 (*Commit) Descriptor

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

func (*Commit) GetBlockId

func (m *Commit) GetBlockId() *BlockID

func (*Commit) GetHeight

func (m *Commit) GetHeight() int64

func (*Commit) GetRound

func (m *Commit) GetRound() int32

func (*Commit) GetSignatures

func (m *Commit) GetSignatures() []*CommitSig

func (*Commit) Marshal

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

func (*Commit) MarshalTo

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

func (*Commit) MarshalToSizedBuffer

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

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) Reset

func (m *Commit) Reset()

func (*Commit) Size

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

func (*Commit) String

func (m *Commit) String() string

func (*Commit) Unmarshal

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

func (*Commit) XXX_DiscardUnknown

func (m *Commit) XXX_DiscardUnknown()

func (*Commit) XXX_Marshal

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

func (*Commit) XXX_Merge

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

func (*Commit) XXX_Size

func (m *Commit) XXX_Size() int

func (*Commit) XXX_Unmarshal

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

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 (*CommitSig) Descriptor

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

func (*CommitSig) GetBlockIdFlag

func (m *CommitSig) GetBlockIdFlag() BlockIDFlag

func (*CommitSig) GetSignature

func (m *CommitSig) GetSignature() []byte

func (*CommitSig) GetTimestamp

func (m *CommitSig) GetTimestamp() *Timestamp

func (*CommitSig) GetValidatorAddress

func (m *CommitSig) GetValidatorAddress() []byte

func (*CommitSig) Marshal

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

func (*CommitSig) MarshalTo

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

func (*CommitSig) MarshalToSizedBuffer

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

func (*CommitSig) ProtoMessage

func (*CommitSig) ProtoMessage()

func (*CommitSig) Reset

func (m *CommitSig) Reset()

func (*CommitSig) Size

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

func (*CommitSig) String

func (m *CommitSig) String() string

func (*CommitSig) Unmarshal

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

func (*CommitSig) XXX_DiscardUnknown

func (m *CommitSig) XXX_DiscardUnknown()

func (*CommitSig) XXX_Marshal

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

func (*CommitSig) XXX_Merge

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

func (*CommitSig) XXX_Size

func (m *CommitSig) XXX_Size() int

func (*CommitSig) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Consensus) GetApp

func (m *Consensus) GetApp() uint64

func (*Consensus) GetBlock

func (m *Consensus) GetBlock() uint64

func (*Consensus) Marshal

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

func (*Consensus) MarshalTo

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

func (*Consensus) MarshalToSizedBuffer

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

func (*Consensus) ProtoMessage

func (*Consensus) ProtoMessage()

func (*Consensus) Reset

func (m *Consensus) Reset()

func (*Consensus) Size

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

func (*Consensus) String

func (m *Consensus) String() string

func (*Consensus) Unmarshal

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

func (*Consensus) XXX_DiscardUnknown

func (m *Consensus) XXX_DiscardUnknown()

func (*Consensus) XXX_Marshal

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

func (*Consensus) XXX_Merge

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

func (*Consensus) XXX_Size

func (m *Consensus) XXX_Size() int

func (*Consensus) XXX_Unmarshal

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

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

func (m *ConsensusState) ClientType() string

func (*ConsensusState) Descriptor

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

func (*ConsensusState) GetTimestamp

func (m *ConsensusState) GetTimestamp() uint64

func (*ConsensusState) Marshal

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

func (*ConsensusState) MarshalTo

func (m *ConsensusState) MarshalTo(dAtA []byte) (int, 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) ValidateBasic

func (m *ConsensusState) ValidateBasic() 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"`
}

https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp

func (*Duration) Descriptor

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

func (*Duration) GetNanos

func (m *Duration) GetNanos() int32

func (*Duration) GetSeconds

func (m *Duration) GetSeconds() int64

func (*Duration) Marshal

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

func (*Duration) MarshalTo

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

func (*Duration) MarshalToSizedBuffer

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

func (*Duration) ProtoMessage

func (*Duration) ProtoMessage()

func (*Duration) Reset

func (m *Duration) Reset()

func (*Duration) Size

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

func (*Duration) String

func (m *Duration) String() string

func (*Duration) Unmarshal

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

func (*Duration) XXX_DiscardUnknown

func (m *Duration) XXX_DiscardUnknown()

func (*Duration) XXX_Marshal

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

func (*Duration) XXX_Merge

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

func (*Duration) XXX_Size

func (m *Duration) XXX_Size() int

func (*Duration) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Fraction) GetDenominator

func (m *Fraction) GetDenominator() uint64

func (*Fraction) GetNumerator

func (m *Fraction) GetNumerator() uint64

func (*Fraction) Marshal

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

func (*Fraction) MarshalTo

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

func (*Fraction) MarshalToSizedBuffer

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

func (*Fraction) ProtoMessage

func (*Fraction) ProtoMessage()

func (*Fraction) Reset

func (m *Fraction) Reset()

func (*Fraction) Size

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

func (*Fraction) String

func (m *Fraction) String() string

func (*Fraction) Unmarshal

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

func (*Fraction) XXX_DiscardUnknown

func (m *Fraction) XXX_DiscardUnknown()

func (*Fraction) XXX_Marshal

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

func (*Fraction) XXX_Merge

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

func (*Fraction) XXX_Size

func (m *Fraction) XXX_Size() int

func (*Fraction) XXX_Unmarshal

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

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        *BlockID   `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 (*LightHeader) Descriptor

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

func (*LightHeader) GetAppHash

func (m *LightHeader) GetAppHash() []byte

func (*LightHeader) GetChainId

func (m *LightHeader) GetChainId() string

func (*LightHeader) GetConsensusHash

func (m *LightHeader) GetConsensusHash() []byte

func (*LightHeader) GetDataHash

func (m *LightHeader) GetDataHash() []byte

func (*LightHeader) GetEvidenceHash

func (m *LightHeader) GetEvidenceHash() []byte

func (*LightHeader) GetHeight

func (m *LightHeader) GetHeight() int64

func (*LightHeader) GetLastBlockId

func (m *LightHeader) GetLastBlockId() *BlockID

func (*LightHeader) GetLastCommitHash

func (m *LightHeader) GetLastCommitHash() []byte

func (*LightHeader) GetLastResultsHash

func (m *LightHeader) GetLastResultsHash() []byte

func (*LightHeader) GetNextValidatorsHash

func (m *LightHeader) GetNextValidatorsHash() []byte

func (*LightHeader) GetProposerAddress

func (m *LightHeader) GetProposerAddress() []byte

func (*LightHeader) GetTime

func (m *LightHeader) GetTime() *Timestamp

func (*LightHeader) GetValidatorsHash

func (m *LightHeader) GetValidatorsHash() []byte

func (*LightHeader) GetVersion

func (m *LightHeader) GetVersion() *Consensus

func (*LightHeader) Marshal

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

func (*LightHeader) MarshalTo

func (m *LightHeader) MarshalTo(dAtA []byte) (int, 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) 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 MerkleRoot

type MerkleRoot struct {
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

MerkleRoot defines a merkle root hash. In the Cosmos SDK, the AppHash of a block header becomes the root.

func (*MerkleRoot) Descriptor

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

func (*MerkleRoot) GetHash

func (m *MerkleRoot) GetHash() []byte

func (*MerkleRoot) Marshal

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

func (*MerkleRoot) MarshalTo

func (m *MerkleRoot) MarshalTo(dAtA []byte) (int, 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 PartSetHeader

type PartSetHeader 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 (*PartSetHeader) Descriptor

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

func (*PartSetHeader) GetHash

func (m *PartSetHeader) GetHash() []byte

func (*PartSetHeader) GetTotal

func (m *PartSetHeader) GetTotal() uint32

func (*PartSetHeader) Marshal

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

func (*PartSetHeader) MarshalTo

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

func (*PartSetHeader) MarshalToSizedBuffer

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

func (*PartSetHeader) ProtoMessage

func (*PartSetHeader) ProtoMessage()

func (*PartSetHeader) Reset

func (m *PartSetHeader) Reset()

func (*PartSetHeader) Size

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

func (*PartSetHeader) String

func (m *PartSetHeader) String() string

func (*PartSetHeader) Unmarshal

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

func (*PartSetHeader) XXX_DiscardUnknown

func (m *PartSetHeader) XXX_DiscardUnknown()

func (*PartSetHeader) XXX_Marshal

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

func (*PartSetHeader) XXX_Merge

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

func (*PartSetHeader) XXX_Size

func (m *PartSetHeader) XXX_Size() int

func (*PartSetHeader) XXX_Unmarshal

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

type PublicKey

type PublicKey struct {
	// Types that are valid to be assigned to Sum:
	//
	//	*PublicKey_Ed25519
	//	*PublicKey_Secp256K1
	//	*PublicKey_Sr25519
	Sum isPublicKey_Sum `protobuf_oneof:"sum"`
}

func (*PublicKey) Descriptor

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

func (*PublicKey) GetEd25519

func (m *PublicKey) GetEd25519() []byte

func (*PublicKey) GetSecp256K1

func (m *PublicKey) GetSecp256K1() []byte

func (*PublicKey) GetSr25519

func (m *PublicKey) GetSr25519() []byte

func (*PublicKey) GetSum

func (m *PublicKey) GetSum() isPublicKey_Sum

func (*PublicKey) Marshal

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

func (*PublicKey) MarshalTo

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

func (*PublicKey) MarshalToSizedBuffer

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

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) Size

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

func (*PublicKey) String

func (m *PublicKey) String() string

func (*PublicKey) Unmarshal

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

func (*PublicKey) XXX_DiscardUnknown

func (m *PublicKey) XXX_DiscardUnknown()

func (*PublicKey) XXX_Marshal

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

func (*PublicKey) XXX_Merge

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

func (*PublicKey) XXX_OneofWrappers

func (*PublicKey) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PublicKey) XXX_Size

func (m *PublicKey) XXX_Size() int

func (*PublicKey) XXX_Unmarshal

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

type PublicKey_Ed25519

type PublicKey_Ed25519 struct {
	Ed25519 []byte `protobuf:"bytes,1,opt,name=ed25519,proto3,oneof" json:"ed25519,omitempty"`
}

func (*PublicKey_Ed25519) MarshalTo

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

func (*PublicKey_Ed25519) MarshalToSizedBuffer

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

func (*PublicKey_Ed25519) Size

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

type PublicKey_Secp256K1

type PublicKey_Secp256K1 struct {
	Secp256K1 []byte `protobuf:"bytes,2,opt,name=secp256k1,proto3,oneof" json:"secp256k1,omitempty"`
}

func (*PublicKey_Secp256K1) MarshalTo

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

func (*PublicKey_Secp256K1) MarshalToSizedBuffer

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

func (*PublicKey_Secp256K1) Size

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

type PublicKey_Sr25519

type PublicKey_Sr25519 struct {
	Sr25519 []byte `protobuf:"bytes,3,opt,name=sr25519,proto3,oneof" json:"sr25519,omitempty"`
}

func (*PublicKey_Sr25519) MarshalTo

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

func (*PublicKey_Sr25519) MarshalToSizedBuffer

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

func (*PublicKey_Sr25519) Size

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

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 (*SignedHeader) Descriptor

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

func (*SignedHeader) GetCommit

func (m *SignedHeader) GetCommit() *Commit

func (*SignedHeader) GetHeader

func (m *SignedHeader) GetHeader() *LightHeader

func (*SignedHeader) Marshal

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

func (*SignedHeader) MarshalTo

func (m *SignedHeader) MarshalTo(dAtA []byte) (int, 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) 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) 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 SimpleValidator

type SimpleValidator struct {
	PubKey      *PublicKey `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 (*SimpleValidator) Descriptor

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

func (*SimpleValidator) GetPubKey

func (m *SimpleValidator) GetPubKey() *PublicKey

func (*SimpleValidator) GetVotingPower

func (m *SimpleValidator) GetVotingPower() int64

func (*SimpleValidator) Marshal

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

func (*SimpleValidator) MarshalTo

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

func (*SimpleValidator) MarshalToSizedBuffer

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

func (*SimpleValidator) ProtoMessage

func (*SimpleValidator) ProtoMessage()

func (*SimpleValidator) Reset

func (m *SimpleValidator) Reset()

func (*SimpleValidator) Size

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

func (*SimpleValidator) String

func (m *SimpleValidator) String() string

func (*SimpleValidator) Unmarshal

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

func (*SimpleValidator) XXX_DiscardUnknown

func (m *SimpleValidator) XXX_DiscardUnknown()

func (*SimpleValidator) XXX_Marshal

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

func (*SimpleValidator) XXX_Merge

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

func (*SimpleValidator) XXX_Size

func (m *SimpleValidator) XXX_Size() int

func (*SimpleValidator) XXX_Unmarshal

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

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 (*Timestamp) Descriptor

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

func (*Timestamp) GetNanos

func (m *Timestamp) GetNanos() int32

func (*Timestamp) GetSeconds

func (m *Timestamp) GetSeconds() int64

func (*Timestamp) Marshal

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

func (*Timestamp) MarshalTo

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

func (*Timestamp) MarshalToSizedBuffer

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

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) Reset

func (m *Timestamp) Reset()

func (*Timestamp) Size

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

func (*Timestamp) String

func (m *Timestamp) String() string

func (*Timestamp) Unmarshal

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

func (*Timestamp) XXX_DiscardUnknown

func (m *Timestamp) XXX_DiscardUnknown()

func (*Timestamp) XXX_Marshal

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

func (*Timestamp) XXX_Merge

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

func (*Timestamp) XXX_Size

func (m *Timestamp) XXX_Size() int

func (*Timestamp) XXX_Unmarshal

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

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     int64         `protobuf:"varint,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

func (m *TmHeader) ClientType() string

func (*TmHeader) Descriptor

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

func (*TmHeader) GetSignedHeader

func (m *TmHeader) GetSignedHeader() *SignedHeader

func (*TmHeader) GetTrustedHeight

func (m *TmHeader) GetTrustedHeight() int64

func (*TmHeader) GetTrustedValidators

func (m *TmHeader) GetTrustedValidators() *ValidatorSet

func (*TmHeader) GetValidatorSet

func (m *TmHeader) GetValidatorSet() *ValidatorSet

func (*TmHeader) Marshal

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

func (*TmHeader) MarshalTo

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

func (*TmHeader) MarshalToSizedBuffer

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

func (*TmHeader) ProtoMessage

func (*TmHeader) ProtoMessage()

func (*TmHeader) Reset

func (m *TmHeader) Reset()

func (*TmHeader) Size

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

func (*TmHeader) String

func (m *TmHeader) String() string

func (*TmHeader) Unmarshal

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

func (*TmHeader) ValidateBasic

func (m *TmHeader) ValidateBasic() error

func (*TmHeader) XXX_DiscardUnknown

func (m *TmHeader) XXX_DiscardUnknown()

func (*TmHeader) XXX_Marshal

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

func (*TmHeader) XXX_Merge

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

func (*TmHeader) XXX_Size

func (m *TmHeader) XXX_Size() int

func (*TmHeader) XXX_Unmarshal

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

type Validator

type Validator struct {
	Address          []byte     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey           *PublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	VotingPower      int64      `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	ProposerPriority int64      `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"`
}

func (*Validator) Descriptor

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

func (*Validator) GetAddress

func (m *Validator) GetAddress() []byte

func (*Validator) GetProposerPriority

func (m *Validator) GetProposerPriority() int64

func (*Validator) GetPubKey

func (m *Validator) GetPubKey() *PublicKey

func (*Validator) GetVotingPower

func (m *Validator) GetVotingPower() int64

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

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

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

type ValidatorSet

type ValidatorSet struct {
	Validators       []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	Proposer         *Validator   `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	TotalVotingPower int64        `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
}

func (*ValidatorSet) Descriptor

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

func (*ValidatorSet) GetProposer

func (m *ValidatorSet) GetProposer() *Validator

func (*ValidatorSet) GetTotalVotingPower

func (m *ValidatorSet) GetTotalVotingPower() int64

func (*ValidatorSet) GetValidators

func (m *ValidatorSet) GetValidators() []*Validator

func (*ValidatorSet) Marshal

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

func (*ValidatorSet) MarshalTo

func (m *ValidatorSet) MarshalTo(dAtA []byte) (int, 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) 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

type Vote

type Vote struct {
	Type             SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.light.SignedMsgType" json:"type,omitempty"`
	Height           int64         `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Round            int32         `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	BlockId          *BlockID      `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"`
	ValidatorAddress []byte        `protobuf:"bytes,6,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	ValidatorIndex   int32         `protobuf:"varint,7,opt,name=validator_index,json=validatorIndex,proto3" json:"validator_index,omitempty"`
	Signature        []byte        `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*Vote) Descriptor

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

func (*Vote) GetBlockId

func (m *Vote) GetBlockId() *BlockID

func (*Vote) GetHeight

func (m *Vote) GetHeight() int64

func (*Vote) GetRound

func (m *Vote) GetRound() int32

func (*Vote) GetSignature

func (m *Vote) GetSignature() []byte

func (*Vote) GetTimestamp

func (m *Vote) GetTimestamp() *Timestamp

func (*Vote) GetType

func (m *Vote) GetType() SignedMsgType

func (*Vote) GetValidatorAddress

func (m *Vote) GetValidatorAddress() []byte

func (*Vote) GetValidatorIndex

func (m *Vote) GetValidatorIndex() int32

func (*Vote) Marshal

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

func (*Vote) MarshalTo

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

func (*Vote) MarshalToSizedBuffer

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

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) Size

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

func (*Vote) String

func (m *Vote) String() string

func (*Vote) Unmarshal

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

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

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

func (*Vote) XXX_Merge

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

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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