abci

package
v0.4.1-furyint-rc0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToABCIBlock

func ToABCIBlock(block *types.Block) (*tmtypes.Block, error)

ToABCIBlock converts Dymint block into block format defined by ABCI. Returned block should pass `ValidateBasic`.

func ToABCIBlockDataTxs

func ToABCIBlockDataTxs(data *types.Data) []tmtypes.Tx

ToABCIBlockDataTxs converts Dymint block-data into block-data format defined by ABCI.

func ToABCIBlockMeta

func ToABCIBlockMeta(block *types.Block) (*tmtypes.BlockMeta, error)

ToABCIBlockMeta converts Dymint block into BlockMeta format defined by ABCI

func ToABCICommit

func ToABCICommit(commit *types.Commit, header *types.Header) *tmtypes.Commit

ToABCICommit converts Dymint commit into commit format defined by ABCI. This function only converts fields that are available in Dymint commit. Other fields (especially ValidatorAddress and Timestamp of Signature) has to be filled by caller.

func ToABCIHeader

func ToABCIHeader(header *types.Header) tmtypes.Header

ToABCIHeader converts Dymint header to Header format defined in ABCI. Caller should fill all the fields that are not available in Dymint header (like ChainID).

func ToABCIHeaderPB

func ToABCIHeaderPB(header *types.Header) tmproto.Header

ToABCIHeaderPB converts Dymint header to Header format defined in ABCI. Caller should fill all the fields that are not available in Dymint header (like ChainID).

Types

This section is empty.

Jump to

Keyboard shortcuts

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