rollkit

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRollkit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRollkit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRollkit = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Block

type Block struct {
	SignedHeader *SignedHeader `protobuf:"bytes,1,opt,name=signed_header,json=signedHeader,proto3" json:"signed_header,omitempty"`
	Data         *Data         `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

func (*Block) Descriptor

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

func (*Block) GetData

func (m *Block) GetData() *Data

func (*Block) GetSignedHeader added in v0.7.0

func (m *Block) GetSignedHeader() *SignedHeader

func (*Block) Marshal

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

func (*Block) MarshalTo

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

func (*Block) MarshalToSizedBuffer

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

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) Size

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

func (*Block) String

func (m *Block) String() string

func (*Block) Unmarshal

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

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

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

func (*Block) XXX_Merge

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

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

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

type Commit

type Commit struct {
	Signatures [][]byte `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

func (*Commit) Descriptor

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

func (*Commit) GetSignatures

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

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 Data

type Data struct {
	Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
}

func (*Data) Descriptor

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

func (*Data) GetTxs

func (m *Data) GetTxs() [][]byte

func (*Data) Marshal

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

func (*Data) MarshalTo

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

func (*Data) MarshalToSizedBuffer

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

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) Size

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

func (*Data) String

func (m *Data) String() string

func (*Data) Unmarshal

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

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

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

func (*Data) XXX_Merge

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

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

func (m *Data) XXX_Unmarshal(b []byte) error
type Header struct {
	// Block and App version
	Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Block height
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// Block creation time
	Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"`
	// Previous block info
	LastHeaderHash []byte `protobuf:"bytes,4,opt,name=last_header_hash,json=lastHeaderHash,proto3" json:"last_header_hash,omitempty"`
	// Commit from aggregator(s) from the last block
	LastCommitHash []byte `protobuf:"bytes,5,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
	// Block.Data root aka Transactions
	DataHash []byte `protobuf:"bytes,6,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
	// Consensus params for current block
	ConsensusHash []byte `protobuf:"bytes,7,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`
	// State after applying txs from the current block
	AppHash []byte `protobuf:"bytes,8,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	// Root hash of all results from the txs from the previous block.
	// This is ABCI specific but smart-contract chains require some way of committing
	// to transaction receipts/results.
	LastResultsHash []byte `protobuf:"bytes,9,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
	// Original proposer of the block
	// Note that the address can be derived from the pubkey which can be derived
	// from the signature when using secp256k.
	// We keep this in case users choose another signature format where the
	// pubkey can't be recovered by the signature (e.g. ed25519).
	ProposerAddress []byte `protobuf:"bytes,10,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"`
	// validatorhash for compatibility with tendermint light client.
	ValidatorHash []byte `protobuf:"bytes,11,opt,name=validator_hash,json=validatorHash,proto3" json:"validator_hash,omitempty"`
	// Chain ID the block belongs to
	ChainId string `protobuf:"bytes,12,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*Header) Descriptor

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

func (*Header) GetAppHash

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

func (*Header) GetChainId

func (m *Header) GetChainId() string

func (*Header) GetConsensusHash

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

func (*Header) GetDataHash

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

func (*Header) GetHeight

func (m *Header) GetHeight() uint64

func (*Header) GetLastCommitHash

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

func (*Header) GetLastHeaderHash

func (m *Header) GetLastHeaderHash() []byte

func (*Header) GetLastResultsHash

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

func (*Header) GetProposerAddress

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

func (*Header) GetTime

func (m *Header) GetTime() uint64

func (*Header) GetValidatorHash added in v0.13.0

func (m *Header) GetValidatorHash() []byte

func (*Header) GetVersion

func (m *Header) GetVersion() *Version

func (*Header) Marshal

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

func (*Header) MarshalTo

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

func (*Header) MarshalToSizedBuffer

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

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) Size

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

func (*Header) String

func (m *Header) String() string

func (*Header) Unmarshal

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

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

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

func (*Header) XXX_Merge

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

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

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

type SignedHeader

type SignedHeader struct {
	Header     *Header             `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Commit     *Commit             `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
	Validators *types.ValidatorSet `protobuf:"bytes,3,opt,name=validators,proto3" json:"validators,omitempty"`
}

func (*SignedHeader) Descriptor

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

func (*SignedHeader) GetCommit

func (m *SignedHeader) GetCommit() *Commit

func (*SignedHeader) GetHeader

func (m *SignedHeader) GetHeader() *Header

func (*SignedHeader) GetValidators added in v0.7.1

func (m *SignedHeader) GetValidators() *types.ValidatorSet

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 State

type State struct {
	Version                          *state.Version        `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"`
	InitialHeight                    uint64                `protobuf:"varint,3,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"`
	LastBlockHeight                  uint64                `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
	LastBlockID                      types.BlockID         `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
	LastBlockTime                    time.Time             `protobuf:"bytes,6,opt,name=last_block_time,json=lastBlockTime,proto3,stdtime" json:"last_block_time"`
	DAHeight                         uint64                `protobuf:"varint,7,opt,name=da_height,json=daHeight,proto3" json:"da_height,omitempty"`
	ConsensusParams                  types.ConsensusParams `protobuf:"bytes,8,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
	LastHeightConsensusParamsChanged uint64                `` /* 164-byte string literal not displayed */
	LastResultsHash                  []byte                `protobuf:"bytes,10,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
	AppHash                          []byte                `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
}

func (*State) Descriptor

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

func (*State) GetAppHash

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

func (*State) GetChainId

func (m *State) GetChainId() string

func (*State) GetConsensusParams

func (m *State) GetConsensusParams() types.ConsensusParams

func (*State) GetDAHeight

func (m *State) GetDAHeight() uint64

func (*State) GetInitialHeight

func (m *State) GetInitialHeight() uint64

func (*State) GetLastBlockHeight

func (m *State) GetLastBlockHeight() uint64

func (*State) GetLastBlockID

func (m *State) GetLastBlockID() types.BlockID

func (*State) GetLastBlockTime

func (m *State) GetLastBlockTime() time.Time

func (*State) GetLastHeightConsensusParamsChanged

func (m *State) GetLastHeightConsensusParamsChanged() uint64

func (*State) GetLastResultsHash

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

func (*State) GetVersion

func (m *State) GetVersion() *state.Version

func (*State) Marshal

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

func (*State) MarshalTo

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

func (*State) MarshalToSizedBuffer

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

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) Size

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

func (*State) String

func (m *State) String() string

func (*State) Unmarshal

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

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

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

func (*State) XXX_Merge

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

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

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

type TxWithISRs added in v0.8.0

type TxWithISRs struct {
	PreIsr  []byte `protobuf:"bytes,1,opt,name=pre_isr,json=preIsr,proto3" json:"pre_isr,omitempty"`
	Tx      []byte `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
	PostIsr []byte `protobuf:"bytes,3,opt,name=post_isr,json=postIsr,proto3" json:"post_isr,omitempty"`
}

func (*TxWithISRs) Descriptor added in v0.8.0

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

func (*TxWithISRs) GetPostIsr added in v0.8.0

func (m *TxWithISRs) GetPostIsr() []byte

func (*TxWithISRs) GetPreIsr added in v0.8.0

func (m *TxWithISRs) GetPreIsr() []byte

func (*TxWithISRs) GetTx added in v0.8.0

func (m *TxWithISRs) GetTx() []byte

func (*TxWithISRs) Marshal added in v0.8.0

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

func (*TxWithISRs) MarshalTo added in v0.8.0

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

func (*TxWithISRs) MarshalToSizedBuffer added in v0.8.0

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

func (*TxWithISRs) ProtoMessage added in v0.8.0

func (*TxWithISRs) ProtoMessage()

func (*TxWithISRs) Reset added in v0.8.0

func (m *TxWithISRs) Reset()

func (*TxWithISRs) Size added in v0.8.0

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

func (*TxWithISRs) String added in v0.8.0

func (m *TxWithISRs) String() string

func (*TxWithISRs) Unmarshal added in v0.8.0

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

func (*TxWithISRs) XXX_DiscardUnknown added in v0.8.0

func (m *TxWithISRs) XXX_DiscardUnknown()

func (*TxWithISRs) XXX_Marshal added in v0.8.0

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

func (*TxWithISRs) XXX_Merge added in v0.8.0

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

func (*TxWithISRs) XXX_Size added in v0.8.0

func (m *TxWithISRs) XXX_Size() int

func (*TxWithISRs) XXX_Unmarshal added in v0.8.0

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

type Version

type Version 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"`
}

Version captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine. This is equivalent to the tmversion.Consensus type in Tendermint.

func (*Version) Descriptor

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

func (*Version) GetApp

func (m *Version) GetApp() uint64

func (*Version) GetBlock

func (m *Version) GetBlock() uint64

func (*Version) Marshal

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

func (*Version) MarshalTo

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

func (*Version) MarshalToSizedBuffer

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

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) Reset

func (m *Version) Reset()

func (*Version) Size

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

func (*Version) String

func (m *Version) String() string

func (*Version) Unmarshal

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

func (*Version) XXX_DiscardUnknown

func (m *Version) XXX_DiscardUnknown()

func (*Version) XXX_Marshal

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

func (*Version) XXX_Merge

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

func (*Version) XXX_Size

func (m *Version) XXX_Size() int

func (*Version) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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