abci

package
v0.4.5-sdk 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 Furyint block into block format defined by ABCI. Returned block should pass `ValidateBasic`.

func ToABCIBlockDataTxs

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

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

func ToABCIBlockMeta

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

ToABCIBlockMeta converts Furyint block into BlockMeta format defined by ABCI

func ToABCICommit

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

ToABCICommit converts Furyint commit into commit format defined by ABCI. This function only converts fields that are available in Furyint 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 Furyint header to Header format defined in ABCI. Caller should fill all the fields that are not available in Furyint header (like ChainID).

func ToABCIHeaderPB

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

ToABCIHeaderPB converts Furyint header to Header format defined in ABCI. Caller should fill all the fields that are not available in Furyint 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