cli

package
v0.3.1-beta Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagProposerAddress    = "proposer"
	FlagFromAddress        = "from"
	FlagStartBlock         = "start-block"
	FlagEndBlock           = "end-block"
	FlagRootHash           = "root-hash"
	FlagAccountRootHash    = "account-root-hash"
	FlagBorChainID         = "bor-chain-id"
	FlagHeaderNumber       = "header"
	FlagCheckpointTxHash   = "txhash"
	FlagCheckpointLogIndex = "log-index"
	FlagAutoConfigure      = "auto-configure"
	FlagLimit              = "limit"
	FlagPage               = "page"
)

Variables

This section is empty.

Functions

func GetCheckpointBuffer

func GetCheckpointBuffer(cdc *codec.Codec) *cobra.Command

GetCheckpointBuffer get checkpoint present in buffer

func GetCheckpointByNumber added in v0.3.2

func GetCheckpointByNumber(cdc *codec.Codec) *cobra.Command

GetHeaderFromIndex get checkpoint given header index

func GetCheckpointCount

func GetCheckpointCount(cdc *codec.Codec) *cobra.Command

GetCheckpointCount get number of checkpoint received count

func GetCheckpointLatest added in v0.3.2

func GetCheckpointLatest(cdc *codec.Codec) *cobra.Command

GetCheckpointLatest get the latest checkpoint

func GetCheckpointList added in v0.3.2

func GetCheckpointList(cdc *codec.Codec) *cobra.Command

GetLastNoACK get last no ack time

func GetLastNoACK

func GetLastNoACK(cdc *codec.Codec) *cobra.Command

GetLastNoACK get last no ack time

func GetOverview added in v0.3.2

func GetOverview(cdc *codec.Codec) *cobra.Command

GetOverview gives the complete state dump of heimdall

func GetQueryCmd

func GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetQueryParams

func GetQueryParams(cdc *codec.Codec) *cobra.Command

GetQueryParams implements the params query command.

func GetTxCmd

func GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the transaction commands for this module

func SendCheckpointACKTx

func SendCheckpointACKTx(cdc *codec.Codec) *cobra.Command

SendCheckpointACKTx send checkpoint ack transaction

func SendCheckpointAdjust added in v0.2.3

func SendCheckpointAdjust(cdc *codec.Codec) *cobra.Command

SendCheckpointAdjust adjusts previous checkpoint transaction

func SendCheckpointNoACKTx

func SendCheckpointNoACKTx(cdc *codec.Codec) *cobra.Command

SendCheckpointNoACKTx send no-ack transaction

func SendCheckpointTx

func SendCheckpointTx(cdc *codec.Codec) *cobra.Command

SendCheckpointTx send checkpoint transaction

Types

type CheckpointWithID added in v0.3.2

type CheckpointWithID struct {
	ID         uint64                  `json:"id"`
	Proposer   hmTypes.HeimdallAddress `json:"proposer"`
	StartBlock uint64                  `json:"start_block"`
	EndBlock   uint64                  `json:"end_block"`
	RootHash   hmTypes.HeimdallHash    `json:"root_hash"`
	BorChainID string                  `json:"bor_chain_id"`
	TimeStamp  uint64                  `json:"timestamp"`
}

Temporary Checkpoint struct to store the Checkpoint ID

Jump to

Keyboard shortcuts

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