parser

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const BEGIN_BLOCK_HEIGHT = 0

Variables

This section is empty.

Functions

func InitParsers

func InitParsers(manager *utils.CosmosParserManager)

func ParseBeginBlockEventsCommands

func ParseBeginBlockEventsCommands(
	blockHeight int64,
	beginBlockEvents []model.BlockResultsEvent,
	bondingDenom string,
) ([]command.Command, error)

func ParseBlockResultsTxsResults

func ParseBlockResultsTxsResults(
	block *model.Block,
	blockResults *model.BlockResults,
) ([]commandentity.Command, error)

func ParseBlockToCommands

func ParseBlockToCommands(
	parserManager *utils.CosmosParserManager,
	txDecoder *utils.TxDecoder,
	block *usecase_model.Block,
	rawBlock *usecase_model.RawBlock,
	blockResults *usecase_model.BlockResults,
	accountAddressPrefix string,
	bondingDenom string,
) ([]entity_command.Command, error)

func ParseBlockTxsMsgToCommands

func ParseBlockTxsMsgToCommands(
	parserManager *utils.CosmosParserManager,
	txDecoder *utils.TxDecoder,
	block *model.Block,
	blockResults *model.BlockResults,
	accountAddressPrefix string,
	stakingDenom string,
) ([]command.Command, error)

func ParseCreateBlockCommand

func ParseCreateBlockCommand(block *usecase_model.Block) *command.CreateBlock

func ParseCreateRawBlockCommand

func ParseCreateRawBlockCommand(rawBlock *usecase_model.RawBlock) *command.CreateRawBlock

func ParseEndBlockEventsCommands

func ParseEndBlockEventsCommands(blockHeight int64, endBlockEvents []model.BlockResultsEvent) ([]command.Command, error)

func ParseGenesisCommands

func ParseGenesisCommands(
	rawGenesis *genesis.Genesis,
	accountAddressPrefix string,
) ([]command.Command, error)

func ParseMsgBeginRedelegate

func ParseMsgBeginRedelegate(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgCreateValidator

func ParseMsgCreateValidator(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgCreateVestingAccount

func ParseMsgCreateVestingAccount(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgDelegate

func ParseMsgDelegate(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgDeposit

func ParseMsgDeposit(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgEditValidator

func ParseMsgEditValidator(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgExec

func ParseMsgExec(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgFundCommunityPool

func ParseMsgFundCommunityPool(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgGrant

func ParseMsgGrant(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgGrantAllowance

func ParseMsgGrantAllowance(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgMultiSend

func ParseMsgMultiSend(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgNFTBurnNFT

func ParseMsgNFTBurnNFT(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgNFTEditNFT

func ParseMsgNFTEditNFT(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgNFTIssueDenom

func ParseMsgNFTIssueDenom(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgNFTMintNFT

func ParseMsgNFTMintNFT(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgNFTTransferNFT

func ParseMsgNFTTransferNFT(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgRevoke

func ParseMsgRevoke(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgRevokeAllowance

func ParseMsgRevokeAllowance(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgSend

func ParseMsgSend(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgSetWithdrawAddress

func ParseMsgSetWithdrawAddress(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgSubmitProposal

func ParseMsgSubmitProposal(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgUndelegate

func ParseMsgUndelegate(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgUnjail

func ParseMsgUnjail(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgVote

func ParseMsgVote(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgWithdrawDelegatorReward

func ParseMsgWithdrawDelegatorReward(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseMsgWithdrawValidatorCommission

func ParseMsgWithdrawValidatorCommission(
	parserParams utils.CosmosParserParams,
) []command.Command

func ParseSignerInfosToTransactionSigners

func ParseSignerInfosToTransactionSigners(
	signerInfos []utils.SignerInfo,
	accountAddressPrefix string,
) ([]model.TransactionSigner, error)

func ParseTransactionCommands

func ParseTransactionCommands(
	txDecoder *utils.TxDecoder,
	block *model.Block,
	blockResults *model.BlockResults,
	accountAddressPrefix string,
) ([]command.Command, error)

func ParseTransactionSignerInfoToAddress

func ParseTransactionSignerInfoToAddress(
	signerInfo model.TransactionSignerInfo,
	accountAddressPrefix string,
) (string, error)

func ParseTxAccountTransferCommands

func ParseTxAccountTransferCommands(
	blockHeight int64,
	txsResults []model.BlockResultsTxsResult,
) ([]command.Command, error)

func ParseValidatorUpdatesCommands

func ParseValidatorUpdatesCommands(
	blockHeight int64,
	validatorUpdates []model.BlockResultsValidatorUpdate,
) ([]command.Command, error)

func RegisterBreakingVersionParsers

func RegisterBreakingVersionParsers(manager *utils.CosmosParserManager)

func TrimAmountDenom

func TrimAmountDenom(s string) string

func TxHash

func TxHash(base64EncodedTxHex string) string

Types

This section is empty.

Directories

Path Synopsis
v0_42_7

Jump to

Keyboard shortcuts

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