Help us shape the future of Go! Take the 2026 Go Developer Survey

parser

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 32 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,
	blockHash string,
	blockTime utctime.UTCTime,
	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(
	logger applogger.Logger,
	parserManager *utils.CosmosParserManager,
	cosmosClient cosmosapp_interface.Client,
	block *usecase_model.Block,
	rawBlock *usecase_model.RawBlock,
	blockResults *usecase_model.BlockResults,
	txs []usecase_model.CosmosTxWithHash,
	accountAddressPrefix string,
	bondingDenom string,
) ([]entity_command.Command, error)

func ParseBlockTxsMsgToCommands

func ParseBlockTxsMsgToCommands(
	parserManager *utils.CosmosParserManager,
	blockHeight int64,
	blockResults *model.BlockResults,
	txs []model.CosmosTxWithHash,
	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, blockHash string, blockTime utctime.UTCTime, 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 ParseMsgEthereumTx added in v1.3.21

func ParseMsgEthereumTx(
	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(
	logger applogger.Logger,
	cosmosClient cosmosapp_interface.Client,
	signerInfos []model.CosmosTxSignerInfo,
	accountAddressPrefix string,
	possibleSignerAddresses []string,
	txHash string,
) ([]model.TransactionSigner, error)

func ParseTransactionCommands

func ParseTransactionCommands(
	logger applogger.Logger,
	txs []model.CosmosTxWithHash,
	cosmosClient cosmosapp_interface.Client,
	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
gov
v1
v0_42_7

Jump to

Keyboard shortcuts

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