Documentation ¶
Index ¶
- Constants
- Variables
- func GetCmdBurnToken() *cobra.Command
- func GetCmdEditToken() *cobra.Command
- func GetCmdIssueToken() *cobra.Command
- func GetCmdMintToken() *cobra.Command
- func GetCmdQueryBalances() *cobra.Command
- func GetCmdQueryFee() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdQueryToken() *cobra.Command
- func GetCmdQueryTokens() *cobra.Command
- func GetCmdQueryTotalBurn() *cobra.Command
- func GetCmdSwapFeeToken() *cobra.Command
- func GetCmdSwapFromErc20() *cobra.Command
- func GetCmdSwapToErc20() *cobra.Command
- func GetCmdTransferTokenOwner() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
Constants ¶
const ( FlagSymbol = "symbol" FlagName = "name" FlagScale = "scale" FlagMinUnit = "min-unit" FlagInitialSupply = "initial-supply" FlagMaxSupply = "max-supply" FlagMintable = "mintable" FlagTo = "to" )
Variables ¶
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 ¶
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 ¶
GetCmdEditToken implements the edit token command
func GetCmdIssueToken ¶
GetCmdIssueToken implements the issue token command
func GetCmdQueryBalances ¶
GetCmdQueryBalances return all the balances of an owner in special denom
func GetCmdQueryFee ¶
GetCmdQueryFee implements the query token related fees command.
func GetCmdQueryParams ¶
GetCmdQueryParams implements the query token related param command.
func GetCmdQueryToken ¶
GetCmdQueryToken implements the query token command.
func GetCmdQueryTokens ¶
GetCmdQueryTokens implements the query tokens command.
func GetCmdQueryTotalBurn ¶
GetCmdQueryTotalBurn return the total amount of all burned tokens
func GetCmdSwapFeeToken ¶
GetCmdSwapFeeToken implements the swap token command
func GetCmdSwapFromErc20 ¶
GetCmdSwapFromErc20 implements the swap-from-erc20 command
func GetCmdSwapToErc20 ¶
GetCmdSwapToErc20 implements the swap-to-erc20 command
func GetCmdTransferTokenOwner ¶
GetCmdTransferTokenOwner implements the transfer token owner command
func GetQueryCmd ¶
GetQueryCmd returns the query commands for the token module.
Types ¶
This section is empty.