cli

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FlagSymbol        = "symbol"
	FlagName          = "name"
	FlagScale         = "scale"
	FlagMinUnit       = "min-unit"
	FlagInitialSupply = "initial-supply"
	FlagMaxSupply     = "max-supply"
	FlagMintable      = "mintable"
	FlagTo            = "to"
)

Variables

View Source
var (
	FsIssueToken         = flag.NewFlagSet("", flag.ContinueOnError)
	FsEditToken          = flag.NewFlagSet("", flag.ContinueOnError)
	FsTransferTokenOwner = flag.NewFlagSet("", flag.ContinueOnError)
	FsMintToken          = flag.NewFlagSet("", flag.ContinueOnError)
	FsSwapFeeToken       = flag.NewFlagSet("", flag.ContinueOnError)
	FsSwapToErc20        = flag.NewFlagSet("", flag.ContinueOnError)
	FsSwapFromErc20      = flag.NewFlagSet("", flag.ContinueOnError)
)

Functions

func GetCmdBurnToken added in v1.2.0

func GetCmdBurnToken() *cobra.Command

GetCmdBurnToken returns the command to burn tokens.

This function handles the burning of tokens based on the provided coin input. It constructs and validates a message to burn the specified tokens. Returns an error if the operation encounters any issues. Returns a *cobra.Command.

func GetCmdEditToken added in v1.2.0

func GetCmdEditToken() *cobra.Command

GetCmdEditToken implements the edit token command

func GetCmdIssueToken added in v1.2.0

func GetCmdIssueToken() *cobra.Command

GetCmdIssueToken implements the issue token command

func GetCmdMintToken added in v1.2.0

func GetCmdMintToken() *cobra.Command

func GetCmdQueryBalances added in v1.9.0

func GetCmdQueryBalances() *cobra.Command

GetCmdQueryBalances return all the balances of an owner in special denom

func GetCmdQueryFee added in v1.2.0

func GetCmdQueryFee() *cobra.Command

GetCmdQueryFee implements the query token related fees command.

func GetCmdQueryParams added in v1.2.0

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams implements the query token related param command.

func GetCmdQueryToken added in v1.2.0

func GetCmdQueryToken() *cobra.Command

GetCmdQueryToken implements the query token command.

func GetCmdQueryTokens added in v1.2.0

func GetCmdQueryTokens() *cobra.Command

GetCmdQueryTokens implements the query tokens command.

func GetCmdQueryTotalBurn added in v1.2.0

func GetCmdQueryTotalBurn() *cobra.Command

GetCmdQueryTotalBurn return the total amount of all burned tokens

func GetCmdSwapFeeToken added in v1.7.3

func GetCmdSwapFeeToken() *cobra.Command

GetCmdSwapFeeToken implements the swap token command

func GetCmdSwapFromErc20 added in v1.9.0

func GetCmdSwapFromErc20() *cobra.Command

GetCmdSwapFromErc20 implements the swap-from-erc20 command

func GetCmdSwapToErc20 added in v1.9.0

func GetCmdSwapToErc20() *cobra.Command

GetCmdSwapToErc20 implements the swap-to-erc20 command

func GetCmdTransferTokenOwner added in v1.2.0

func GetCmdTransferTokenOwner() *cobra.Command

GetCmdTransferTokenOwner implements the transfer token owner command

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the query commands for the token module.

func NewTxCmd

func NewTxCmd() *cobra.Command

NewTxCmd returns the transaction commands for the token module.

Types

This section is empty.

Jump to

Keyboard shortcuts

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