parser

package
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 28 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,
	cosmosClient cosmosapp_interface.Client,
	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, []string, 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, []string)

func ParseMsgCreateValidator

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

func ParseMsgCreateVestingAccount

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

func ParseMsgDelegate

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

func ParseMsgDeposit

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

func ParseMsgEditValidator

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

func ParseMsgExec

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

func ParseMsgFundCommunityPool

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

func ParseMsgGrant

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

func ParseMsgGrantAllowance

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

func ParseMsgMultiSend

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

func ParseMsgNFTBurnNFT

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

func ParseMsgNFTEditNFT

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

func ParseMsgNFTIssueDenom

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

func ParseMsgNFTMintNFT

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

func ParseMsgNFTTransferNFT

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

func ParseMsgRevoke

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

func ParseMsgRevokeAllowance

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

func ParseMsgSend

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

func ParseMsgSetWithdrawAddress

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

func ParseMsgSubmitProposal

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

func ParseMsgUndelegate

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

func ParseMsgUnjail

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

func ParseMsgVote

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

func ParseMsgWithdrawDelegatorReward

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

func ParseMsgWithdrawValidatorCommission

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

func ParseSignerInfosToTransactionSigners

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

func ParseTransactionCommands

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

func ParseTransactionSignerInfoToAddress

func ParseTransactionSignerInfoToAddress(
	signerInfo model.TransactionSignerKeyInfo,
	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