cli

package
v8.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 24 Imported by: 0

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