Versions in this module Expand all Collapse all v5 v5.3.0 Jul 17, 2023 Changes in this version + func BindFlagsLoadViper(cmd *cobra.Command, _ []string) error + func ConvertValidatorAddressToBech32String(address types.Address) string + func ConvertValidatorPubKeyToBech32String(pubKey tmcrypto.PubKey) (string, error) + func FindAttributeByKey(event abci.Event, attrKey string) (abci.EventAttribute, error) + func FindEventByType(events []abci.Event, eventType string) (abci.Event, error) + func FindEventsByType(events []abci.Event, eventType string) []abci.Event + type Block struct + Hash string + Height int64 + ProposerAddress string + Timestamp time.Time + TotalGas uint64 + TxNum int + func NewBlock(height int64, hash string, txNum int, totalGas uint64, proposerAddress string, ...) *Block + func NewBlockFromTmBlock(blk *tmctypes.ResultBlock, totalGas uint64) *Block + type CobraCmdFunc func(cmd *cobra.Command, args []string) error + func ConcatCobraCmdFuncs(fs ...CobraCmdFunc) CobraCmdFunc + type CommitSig struct + Height int64 + ProposerPriority int64 + Timestamp time.Time + ValidatorAddress string + VotingPower int64 + func NewCommitSig(validatorAddress string, votingPower, proposerPriority, height int64, ...) *CommitSig + type HeightQueue chan int64 + func NewQueue(size int) HeightQueue + type Message struct + Addresses []string + Height int64 + Index int + TxHash string + Type string + Value string + func NewMessage(txHash string, index int, msgType string, value string, addresses []string, ...) *Message + type Tx struct + func NewTx(txResponse *sdk.TxResponse, tx *tx.Tx) (*Tx, error) + func (tx Tx) FindAttributeByKey(event sdk.StringEvent, attrKey string) (string, error) + func (tx Tx) FindEventByType(index int, eventType string) (sdk.StringEvent, error) + func (tx Tx) Successful() bool + type Validator struct + ConsAddr string + ConsPubKey string + func NewValidator(consAddr string, consPubKey string) *Validator