Documentation ¶
Index ¶
- Variables
- func AddGovPropFlagsToCmd(cmd *cobra.Command)
- func GetParamsCmd() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func GetTokenPairCmd() *cobra.Command
- func GetTokenPairsCmd() *cobra.Command
- func NewConvertCoinCmd() *cobra.Command
- func NewConvertERC20Cmd() *cobra.Command
- func NewRegisterCoinProposalCmd(ac addresscodec.Codec) *cobra.Command
- func NewRegisterERC20ProposalCmd(ac addresscodec.Codec) *cobra.Command
- func NewToggleTokenConversionProposalCmd(ac addresscodec.Codec) *cobra.Command
- func NewTxCmd(ac addresscodec.Codec) *cobra.Command
- func ParseMetadata(cdc codec.JSONCodec, metadataFile string) (banktypes.Metadata, error)
- func ReadGovPropFlags(clientCtx client.Context, flagSet *pflag.FlagSet) (*govv1.MsgSubmitProposal, error)
Constants ¶
This section is empty.
Variables ¶
var (
FlagAuthority = "authority"
)
Functions ¶
func AddGovPropFlagsToCmd ¶
AddGovPropFlagsToCmd adds flags for defining MsgSubmitProposal fields.
See also ReadGovPropFlags. ref. github.com/cosmos/cosmos-sdk/x/gov/client/cli/util.go::AddGovPropFlagsToCmd
func GetQueryCmd ¶
GetQueryCmd returns the parent command for all erc20 CLI query commands
func GetTokenPairCmd ¶
GetTokenPairsCmd queries a registered token pair
func GetTokenPairsCmd ¶
GetTokenPairsCmd queries all registered token pairs
func NewConvertCoinCmd ¶
NewConvertCoinCmd returns a CLI command handler for converting a Cosmos coin
func NewConvertERC20Cmd ¶
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 ¶
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.