cli

package
v0.0.0-...-903540d Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

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

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

func GetCmdEditToken() *cobra.Command

GetCmdEditToken implements the edit token command

func GetCmdIssueToken

func GetCmdIssueToken() *cobra.Command

GetCmdIssueToken implements the issue token command

func GetCmdMintToken

func GetCmdMintToken() *cobra.Command

func GetCmdQueryBalances

func GetCmdQueryBalances() *cobra.Command

GetCmdQueryBalances return all the balances of an owner in special denom

func GetCmdQueryFee

func GetCmdQueryFee() *cobra.Command

GetCmdQueryFee implements the query token related fees command.

func GetCmdQueryParams

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams implements the query token related param command.

func GetCmdQueryToken

func GetCmdQueryToken() *cobra.Command

GetCmdQueryToken implements the query token command.

func GetCmdQueryTokens

func GetCmdQueryTokens() *cobra.Command

GetCmdQueryTokens implements the query tokens command.

func GetCmdQueryTotalBurn

func GetCmdQueryTotalBurn() *cobra.Command

GetCmdQueryTotalBurn return the total amount of all burned tokens

func GetCmdSwapFeeToken

func GetCmdSwapFeeToken() *cobra.Command

GetCmdSwapFeeToken implements the swap token command

func GetCmdSwapFromErc20

func GetCmdSwapFromErc20() *cobra.Command

GetCmdSwapFromErc20 implements the swap-from-erc20 command

func GetCmdSwapToErc20

func GetCmdSwapToErc20() *cobra.Command

GetCmdSwapToErc20 implements the swap-to-erc20 command

func GetCmdTransferTokenOwner

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