types

package
v0.0.0-...-388dd38 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0, Apache-2.0 Imports: 17 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 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) 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 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) 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 *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) 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) 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 NewCommitFromTm(c *tmtypes.Commit) *Commit

func (*Commit) Commit

func (c *Commit) Commit() *tmtypes.Commit

func (*Commit) Descriptor

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

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 NewCommitFromTmSig

func NewCommitFromTmSig(cs *tmtypes.CommitSig) *CommitSig

func (*CommitSig) CommitSig

func (c *CommitSig) CommitSig() *tmtypes.CommitSig

func (*CommitSig) Descriptor

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

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

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

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

func (*Height) Marshal

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

func (*Height) MarshalTo

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

func (*Height) MarshalToSizedBuffer

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

func (*Height) ProtoMessage

func (*Height) ProtoMessage()

func (*Height) Reset

func (m *Height) Reset()

func (*Height) Size

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

func (*Height) String

func (m *Height) String() string

func (*Height) Unmarshal

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

func (*Height) XXX_DiscardUnknown

func (m *Height) XXX_DiscardUnknown()

func (*Height) XXX_Marshal

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

func (*Height) XXX_Merge

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

func (*Height) XXX_Size

func (m *Height) XXX_Size() int

func (*Height) XXX_Unmarshal

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

type 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) 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) 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) MarshalTo

func (m *MerkleProof) MarshalTo(dAtA []byte) (int, 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) 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 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) 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) 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 NewTimestampFromTime(t time.Time) *Timestamp

func (*Timestamp) Descriptor

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

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

func (t *Timestamp) Time() time.Time

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     *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

func (h TmHeader) ClientType() string

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

func (TmHeader) GetHeight

func (h TmHeader) GetHeight() exported.Height

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

func (h TmHeader) GetTime() time.Time

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

func (h TmHeader) Header() (*tmclient.Header, error)

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 (h TmHeader) ValidateBasic() error

// 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 (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 {
	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 NewValidatorFromTm(v *tmtypes.Validator) *Validator

func (*Validator) Descriptor

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

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

func (v *Validator) Validator() *tmtypes.Validator

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

Jump to

Keyboard shortcuts

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