Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteSigner(store sdk.KVStore, height clienttypes.Height)
- func GetIterator(store sdk.KVStore, keyType string) types.Iterator
- func IteratorTraversal(store sdk.KVStore, keyType string, cb func(key, val []byte) bool)
- func ParseValidators(extra []byte) ([][]byte, error)
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func SetPendingValidators(store sdk.KVStore, cdc codec.BinaryCodec, validators [][]byte)
- func SetRecentSigners(store sdk.KVStore, recentSingers []Signer)
- func SetSigner(store sdk.KVStore, signer Signer)
- type BlockNonce
- type Bloom
- type BscHeader
- type ClientState
- func (m ClientState) CheckHeaderAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, store sdk.KVStore, ...) (exported.ClientState, exported.ConsensusState, error)
- func (m ClientState) ClientType() string
- func (*ClientState) Descriptor() ([]byte, []int)
- func (m ClientState) ExportMetadata(store sdk.KVStore) []exported.GenesisMetadata
- func (m ClientState) GetDelayBlock() uint64
- func (m ClientState) GetDelayTime() uint64
- func (m ClientState) GetLatestHeight() exported.Height
- func (m ClientState) GetPrefix() exported.Prefix
- func (m ClientState) Initialize(ctx sdk.Context, cdc codec.BinaryCodec, store sdk.KVStore, ...) error
- 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) Status(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec) exported.Status
- func (m *ClientState) String() string
- func (m *ClientState) Unmarshal(dAtA []byte) error
- func (m ClientState) Validate() error
- func (m ClientState) VerifyPacketAcknowledgement(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error
- func (m ClientState) VerifyPacketCleanCommitment(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error
- func (m ClientState) VerifyPacketCommitment(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) 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 ConsensusState
- func (m *ConsensusState) ClientType() string
- func (*ConsensusState) Descriptor() ([]byte, []int)
- func (m *ConsensusState) GetRoot() exported.Root
- func (m *ConsensusState) GetTimestamp() uint64
- 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) ValidateBasic() 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 Header
- func (h Header) ClientType() string
- func (*Header) Descriptor() ([]byte, []int)
- func (h Header) GetHeight() exported.Height
- func (h *Header) Hash() common.Hash
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (h Header) ToBscHeader() BscHeader
- func (m *Header) Unmarshal(dAtA []byte) error
- func (h Header) ValidateBasic() error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)
- func (m *Proof) Marshal() (dAtA []byte, err error)
- func (m *Proof) MarshalTo(dAtA []byte) (int, error)
- func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proof) ProtoMessage()
- func (m *Proof) Reset()
- func (m *Proof) Size() (n int)
- func (m *Proof) String() string
- func (m *Proof) Unmarshal(dAtA []byte) error
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
- type ProofAccount
- type ProofKeyConstructor
- type Signer
- func (*Signer) Descriptor() ([]byte, []int)
- func (m *Signer) GetHeight() types.Height
- func (m *Signer) GetValidator() []byte
- func (m *Signer) Marshal() (dAtA []byte, err error)
- func (m *Signer) MarshalTo(dAtA []byte) (int, error)
- func (m *Signer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Signer) ProtoMessage()
- func (m *Signer) Reset()
- func (m *Signer) Size() (n int)
- func (m *Signer) String() string
- func (m *Signer) Unmarshal(dAtA []byte) error
- func (m *Signer) XXX_DiscardUnknown()
- func (m *Signer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Signer) XXX_Merge(src proto.Message)
- func (m *Signer) XXX_Size() int
- func (m *Signer) XXX_Unmarshal(b []byte) error
- type SignerSet
- func (*SignerSet) Descriptor() ([]byte, []int)
- func (m *SignerSet) GetSigners() []Signer
- func (m *SignerSet) Marshal() (dAtA []byte, err error)
- func (m *SignerSet) MarshalTo(dAtA []byte) (int, error)
- func (m *SignerSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignerSet) ProtoMessage()
- func (m *SignerSet) Reset()
- func (m *SignerSet) Size() (n int)
- func (m *SignerSet) String() string
- func (m *SignerSet) Unmarshal(dAtA []byte) error
- func (m *SignerSet) XXX_DiscardUnknown()
- func (m *SignerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignerSet) XXX_Merge(src proto.Message)
- func (m *SignerSet) XXX_Size() int
- func (m *SignerSet) XXX_Unmarshal(b []byte) error
- type StorageResult
- func (*StorageResult) Descriptor() ([]byte, []int)
- func (m *StorageResult) Marshal() (dAtA []byte, err error)
- func (m *StorageResult) MarshalTo(dAtA []byte) (int, error)
- func (m *StorageResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StorageResult) ProtoMessage()
- func (m *StorageResult) Reset()
- func (m *StorageResult) Size() (n int)
- func (m *StorageResult) String() string
- func (m *StorageResult) Unmarshal(dAtA []byte) error
- func (m *StorageResult) XXX_DiscardUnknown()
- func (m *StorageResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StorageResult) XXX_Merge(src proto.Message)
- func (m *StorageResult) XXX_Size() int
- func (m *StorageResult) XXX_Unmarshal(b []byte) error
- type ValidatorSet
- func (*ValidatorSet) Descriptor() ([]byte, []int)
- func (m *ValidatorSet) GetValidators() [][]byte
- 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 (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 ¶
const (
SubModuleName = "bsc-client"
)
Variables ¶
var ( ErrInvalidLengthBsc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBsc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBsc = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidGenesisBlock = sdkerrors.Register(moduleName, 2, "invalid genesis block") ErrInvalidValidatorBytes = sdkerrors.Register(moduleName, 3, "invalid validators bytes length") // ErrUnknownBlock is returned when the list of validators is requested for a block // that is not part of the local blockchain. ErrUnknownBlock = sdkerrors.Register(moduleName, 4, "unknown block") ErrFutureBlock = sdkerrors.Register(moduleName, 5, "block in the future") // ErrMissingVanity is returned if a block's extra-data section is shorter than // 32 bytes, which is required to store the signer vanity. ErrMissingVanity = sdkerrors.Register(moduleName, 6, "extra-data 32 byte vanity prefix missing") // ErrMissingSignature is returned if a block's extra-data section doesn't seem // to contain a 65 byte secp256k1 signature. ErrMissingSignature = sdkerrors.Register(moduleName, 7, "extra-data 65 byte signature suffix missing") // ErrInvalidMixDigest is returned if a block's mix digest is non-zero. ErrInvalidMixDigest = sdkerrors.Register(moduleName, 8, "non-zero mix digest") // ErrInvalidUncleHash is returned if a block contains an non-empty uncle list. ErrInvalidUncleHash = sdkerrors.Register(moduleName, 9, "non empty uncle hash") // ErrInvalidDifficulty is returned if the difficulty of a block is missing. ErrInvalidDifficulty = sdkerrors.Register(moduleName, 10, "invalid difficulty") ErrUnknownAncestor = sdkerrors.Register(moduleName, 11, "unknown ancestor") // ErrCoinBaseMisMatch is returned if a header's coinbase do not match with signature ErrCoinBaseMisMatch = sdkerrors.Register(moduleName, 12, "coinbase do not match with signature") ErrUnauthorizedValidator = sdkerrors.Register(moduleName, 13, "unauthorized validator") // ErrRecentlySigned is returned if a header is signed by an authorized entity // that already signed a header recently, thus is temporarily not allowed to. ErrRecentlySigned = sdkerrors.Register(moduleName, 14, "recently signed") // ErrWrongDifficulty is returned if the difficulty of a block doesn't match the // turn of the signer. ErrWrongDifficulty = sdkerrors.Register(moduleName, 15, "wrong difficulty") // ErrExtraValidators is returned if non-sprint-end block contain validator data in // their extra-data fields. ErrExtraValidators = sdkerrors.Register(moduleName, 16, "non-sprint-end block contains extra validator list") // ErrInvalidSpanValidators is returned if a block contains an // invalid list of validators (i.e. non divisible by 20 bytes). ErrInvalidSpanValidators = sdkerrors.Register(moduleName, 17, "invalid validator list on sprint end block") ErrInvalidProof = sdkerrors.Register(moduleName, 18, "invalid proof") )
TIBC bsc client sentinel errors
var ( PrefixKeyRecentSingers = "recentSingers" PrefixPendingValidators = "pendingValidators" )
Functions ¶
func DeleteSigner ¶
func DeleteSigner(store sdk.KVStore, height clienttypes.Height)
func IteratorTraversal ¶
func ParseValidators ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the tendermint concrete client-related implementations and interfaces.
func SetPendingValidators ¶
func SetPendingValidators(store sdk.KVStore, cdc codec.BinaryCodec, validators [][]byte, )
SetPendingValidators sets the validators to be updated in the client prefixed store
func SetRecentSigners ¶
SetRecentSigners sets the recent singer list in the client prefixed store
Types ¶
type BlockNonce ¶
type BlockNonce [nonceByteLength]byte
A BlockNonce is a 64-bit hash which proves (combined with the mix-hash) that a sufficient amount of computation has been carried out on a block.
func BytesToBlockNonce ¶
func BytesToBlockNonce(b []byte) BlockNonce
BlockNonce converts a byte slice to a bloom filter. It panics if b is not of suitable size.
func (*BlockNonce) SetBytes ¶
func (b *BlockNonce) SetBytes(d []byte)
SetBytes sets the content of b to the given bytes. It panics if d is not of suitable size.
type Bloom ¶
type Bloom [bloomByteLength]byte
Bloom represents a 2048 bit bloom filter.
func BytesToBloom ¶
BytesToBloom converts a byte slice to a bloom filter. It panics if b is not of suitable size.
type BscHeader ¶
type BscHeader struct { ParentHash common.Hash `json:"parentHash" gencodec:"required"` UncleHash common.Hash `json:"sha3Uncles" gencodec:"required"` Coinbase common.Address `json:"miner" gencodec:"required"` Root common.Hash `json:"stateRoot" gencodec:"required"` TxHash common.Hash `json:"transactionsRoot" gencodec:"required"` ReceiptHash common.Hash `json:"receiptsRoot" gencodec:"required"` Bloom Bloom `json:"logsBloom" gencodec:"required"` Difficulty *big.Int `json:"difficulty" gencodec:"required"` Number *big.Int `json:"number" gencodec:"required"` GasLimit uint64 `json:"gasLimit" gencodec:"required"` GasUsed uint64 `json:"gasUsed" gencodec:"required"` Time uint64 `json:"timestamp" gencodec:"required"` Extra []byte `json:"extraData" gencodec:"required"` MixDigest common.Hash `json:"mixHash"` Nonce BlockNonce `json:"nonce"` }
BscHeader represents a block header in the Ethereum blockchain.
type ClientState ¶
type ClientState struct { Header Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` ChainId uint64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"` BlockInteval uint64 `protobuf:"varint,4,opt,name=block_inteval,json=blockInteval,proto3" json:"block_inteval,omitempty"` Validators [][]byte `protobuf:"bytes,5,rep,name=validators,proto3" json:"validators,omitempty"` RecentSigners []Signer `protobuf:"bytes,6,rep,name=recent_signers,json=recentSigners,proto3" json:"recent_signers"` ContractAddress []byte `protobuf:"bytes,7,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` TrustingPeriod uint64 `protobuf:"varint,8,opt,name=trusting_period,json=trustingPeriod,proto3" json:"trusting_period,omitempty"` }
ClientState from bsc tracks the current validator set, latest height, and a possible frozen height.
func NewClientState ¶
func NewClientState( header Header, chainID uint64, epoch uint64, blockInteval uint64, validators [][]byte, recentSigners []Signer, contractAddress []byte, trustingPeriod uint64, ) *ClientState
NewClientState creates a new ClientState instance
func (ClientState) CheckHeaderAndUpdateState ¶
func (m ClientState) CheckHeaderAndUpdateState( ctx sdk.Context, cdc codec.BinaryCodec, store sdk.KVStore, header exported.Header, ) ( exported.ClientState, exported.ConsensusState, error, )
func (ClientState) ClientType ¶
func (m ClientState) ClientType() string
func (*ClientState) Descriptor ¶
func (*ClientState) Descriptor() ([]byte, []int)
func (ClientState) ExportMetadata ¶
func (m ClientState) ExportMetadata(store sdk.KVStore) []exported.GenesisMetadata
ExportMetadata exports RecentSingers and PendingValidators
func (ClientState) GetDelayBlock ¶
func (m ClientState) GetDelayBlock() uint64
func (ClientState) GetDelayTime ¶
func (m ClientState) GetDelayTime() uint64
func (ClientState) GetLatestHeight ¶
func (m ClientState) GetLatestHeight() exported.Height
func (ClientState) GetPrefix ¶
func (m ClientState) GetPrefix() exported.Prefix
func (ClientState) Initialize ¶
func (m ClientState) Initialize( ctx sdk.Context, cdc codec.BinaryCodec, store sdk.KVStore, state exported.ConsensusState, ) error
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) Status ¶
func (m ClientState) Status( ctx sdk.Context, store 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) Validate ¶
func (m ClientState) Validate() error
func (ClientState) VerifyPacketAcknowledgement ¶
func (ClientState) VerifyPacketCleanCommitment ¶
func (ClientState) VerifyPacketCommitment ¶
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 ConsensusState ¶
type ConsensusState struct { // timestamp that corresponds to the block height in which the ConsensusState // was stored. Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Number types.Height `protobuf:"bytes,2,opt,name=number,proto3" json:"number"` Root []byte `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"` }
ConsensusState defines the consensus state from bsc.
func GetConsensusState ¶
func GetConsensusState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height) (*ConsensusState, error)
GetConsensusState retrieves the consensus state from the client prefixed store. An error is returned if the consensus state does not exist.
func (*ConsensusState) ClientType ¶
func (m *ConsensusState) ClientType() string
func (*ConsensusState) Descriptor ¶
func (*ConsensusState) Descriptor() ([]byte, []int)
func (*ConsensusState) GetRoot ¶
func (m *ConsensusState) GetRoot() exported.Root
func (*ConsensusState) GetTimestamp ¶
func (m *ConsensusState) GetTimestamp() uint64
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) 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 Header ¶
type Header struct { ParentHash []byte `protobuf:"bytes,1,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` UncleHash []byte `protobuf:"bytes,2,opt,name=uncle_hash,json=uncleHash,proto3" json:"uncle_hash,omitempty"` Coinbase []byte `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` Root []byte `protobuf:"bytes,4,opt,name=root,proto3" json:"root,omitempty"` TxHash []byte `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` ReceiptHash []byte `protobuf:"bytes,6,opt,name=receipt_hash,json=receiptHash,proto3" json:"receipt_hash,omitempty"` Bloom []byte `protobuf:"bytes,7,opt,name=bloom,proto3" json:"bloom,omitempty"` Difficulty uint64 `protobuf:"varint,8,opt,name=difficulty,proto3" json:"difficulty,omitempty"` Height types.Height `protobuf:"bytes,9,opt,name=height,proto3" json:"height"` GasLimit uint64 `protobuf:"varint,10,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` GasUsed uint64 `protobuf:"varint,11,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` Time uint64 `protobuf:"varint,12,opt,name=time,proto3" json:"time,omitempty"` Extra []byte `protobuf:"bytes,13,opt,name=extra,proto3" json:"extra,omitempty"` MixDigest []byte `protobuf:"bytes,14,opt,name=mix_digest,json=mixDigest,proto3" json:"mix_digest,omitempty"` Nonce []byte `protobuf:"bytes,15,opt,name=nonce,proto3" json:"nonce,omitempty"` }
Header defines the bsc client consensus Header.
func (Header) ClientType ¶
func (*Header) Descriptor ¶
func (*Header) Hash ¶
Hash returns the block hash of the header, which is simply the keccak256 hash of its RLP encoding.
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (Header) ToBscHeader ¶
func (Header) ValidateBasic ¶
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type Proof ¶
type Proof struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` CodeHash string `protobuf:"bytes,3,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` Nonce string `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` StorageHash string `protobuf:"bytes,5,opt,name=storage_hash,json=storageHash,proto3" json:"storage_hash,omitempty"` AccountProof []string `protobuf:"bytes,6,rep,name=account_proof,json=accountProof,proto3" json:"account_proof,omitempty"` StorageProof []*StorageResult `protobuf:"bytes,7,rep,name=storage_proof,json=storageProof,proto3" json:"storage_proof,omitempty"` }
func (*Proof) Descriptor ¶
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) XXX_DiscardUnknown ¶
func (m *Proof) XXX_DiscardUnknown()
func (*Proof) XXX_Marshal ¶
func (*Proof) XXX_Unmarshal ¶
type ProofAccount ¶
type ProofAccount struct { Nonce *big.Int Balance *big.Int Storage common.Hash Codehash common.Hash }
ProofAccount ...
type ProofKeyConstructor ¶
type ProofKeyConstructor struct {
// contains filtered or unexported fields
}
func NewProofKeyConstructor ¶
func NewProofKeyConstructor(sourceChain string, destChain string, sequence uint64) ProofKeyConstructor
func (ProofKeyConstructor) GetAckProofKey ¶
func (k ProofKeyConstructor) GetAckProofKey() []byte
func (ProofKeyConstructor) GetCleanPacketCommitmentProofKey ¶
func (k ProofKeyConstructor) GetCleanPacketCommitmentProofKey() []byte
func (ProofKeyConstructor) GetPacketCommitmentProofKey ¶
func (k ProofKeyConstructor) GetPacketCommitmentProofKey() []byte
type Signer ¶
type Signer struct { Height types.Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height"` Validator []byte `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` }
func GetRecentSigners ¶
GetRecentSigners retrieves the recent singer list from the client prefixed
func (*Signer) Descriptor ¶
func (*Signer) GetValidator ¶
func (*Signer) MarshalToSizedBuffer ¶
func (*Signer) ProtoMessage ¶
func (*Signer) ProtoMessage()
func (*Signer) XXX_DiscardUnknown ¶
func (m *Signer) XXX_DiscardUnknown()
func (*Signer) XXX_Marshal ¶
func (*Signer) XXX_Unmarshal ¶
type SignerSet ¶
type SignerSet struct {
Signers []Signer `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers"`
}
func (*SignerSet) Descriptor ¶
func (*SignerSet) GetSigners ¶
func (*SignerSet) MarshalToSizedBuffer ¶
func (*SignerSet) ProtoMessage ¶
func (*SignerSet) ProtoMessage()
func (*SignerSet) XXX_DiscardUnknown ¶
func (m *SignerSet) XXX_DiscardUnknown()
func (*SignerSet) XXX_Marshal ¶
func (*SignerSet) XXX_Unmarshal ¶
type StorageResult ¶
type StorageResult struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Proof []string `protobuf:"bytes,3,rep,name=proof,proto3" json:"proof,omitempty"` }
func (*StorageResult) Descriptor ¶
func (*StorageResult) Descriptor() ([]byte, []int)
func (*StorageResult) Marshal ¶
func (m *StorageResult) Marshal() (dAtA []byte, err error)
func (*StorageResult) MarshalToSizedBuffer ¶
func (m *StorageResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StorageResult) ProtoMessage ¶
func (*StorageResult) ProtoMessage()
func (*StorageResult) Reset ¶
func (m *StorageResult) Reset()
func (*StorageResult) Size ¶
func (m *StorageResult) Size() (n int)
func (*StorageResult) String ¶
func (m *StorageResult) String() string
func (*StorageResult) Unmarshal ¶
func (m *StorageResult) Unmarshal(dAtA []byte) error
func (*StorageResult) XXX_DiscardUnknown ¶
func (m *StorageResult) XXX_DiscardUnknown()
func (*StorageResult) XXX_Marshal ¶
func (m *StorageResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StorageResult) XXX_Merge ¶
func (m *StorageResult) XXX_Merge(src proto.Message)
func (*StorageResult) XXX_Size ¶
func (m *StorageResult) XXX_Size() int
func (*StorageResult) XXX_Unmarshal ¶
func (m *StorageResult) XXX_Unmarshal(b []byte) error
type ValidatorSet ¶
type ValidatorSet struct {
Validators [][]byte `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
}
func GetPendingValidators ¶
func GetPendingValidators(cdc codec.BinaryCodec, store sdk.KVStore) ValidatorSet
GetPendingValidators retrieves the validators to be updated from the client prefixed store
func (*ValidatorSet) Descriptor ¶
func (*ValidatorSet) Descriptor() ([]byte, []int)
func (*ValidatorSet) GetValidators ¶
func (m *ValidatorSet) GetValidators() [][]byte
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) 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