cli

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: LGPL-3.0 Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagAuthority = "authority"
)

Functions

func AddGovPropFlagsToCmd

func AddGovPropFlagsToCmd(cmd *cobra.Command)

AddGovPropFlagsToCmd adds flags for defining MsgSubmitProposal fields.

See also ReadGovPropFlags. ref. github.com/cosmos/cosmos-sdk/x/gov/client/cli/util.go::AddGovPropFlagsToCmd

func GetParamsCmd

func GetParamsCmd() *cobra.Command

GetParamsCmd queries erc20 module params

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the parent command for all erc20 CLI query commands

func GetTokenPairCmd

func GetTokenPairCmd() *cobra.Command

GetTokenPairsCmd queries a registered token pair

func GetTokenPairsCmd

func GetTokenPairsCmd() *cobra.Command

GetTokenPairsCmd queries all registered token pairs

func NewConvertCoinCmd

func NewConvertCoinCmd() *cobra.Command

NewConvertCoinCmd returns a CLI command handler for converting a Cosmos coin

func NewConvertERC20Cmd

func NewConvertERC20Cmd() *cobra.Command

NewConvertERC20Cmd returns a CLI command handler for converting an ERC20

func NewRegisterCoinProposalCmd

func NewRegisterCoinProposalCmd(ac addresscodec.Codec) *cobra.Command

NewRegisterCoinProposalCmd implements the command to submit a register-coin proposal

func NewRegisterERC20ProposalCmd

func NewRegisterERC20ProposalCmd(ac addresscodec.Codec) *cobra.Command

NewRegisterERC20ProposalCmd implements the command to submit a register-erc20 proposal

func NewToggleTokenConversionProposalCmd

func NewToggleTokenConversionProposalCmd(ac addresscodec.Codec) *cobra.Command

NewToggleTokenConversionProposalCmd implements the command to submit a toggle-token-conversion proposal

func NewTxCmd

func NewTxCmd(ac addresscodec.Codec) *cobra.Command

NewTxCmd returns a root CLI command handler for erc20 transaction commands

func ParseMetadata

func ParseMetadata(cdc codec.JSONCodec, metadataFile string) (banktypes.Metadata, error)

ParseRegisterCoinProposal reads and parses a ParseRegisterCoinProposal from a file.

func ReadGovPropFlags

func ReadGovPropFlags(clientCtx client.Context, flagSet *pflag.FlagSet) (*govv1.MsgSubmitProposal, error)

ReadGovPropFlags parses a MsgSubmitProposal from the provided context and flags. Setting the messages is up to the caller.

See also AddGovPropFlagsToCmd. ref. github.com/cosmos/cosmos-sdk/x/gov/client/cli/util.go::ReadGovPropFlags

Types

This section is empty.

Jump to

Keyboard shortcuts

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