cli

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagType                   = "type"
	FlagSupplyFixed            = "supplyFixed"
	FlagAllowGovernanceControl = "allowGovernanceControl"
	FlagTransferLimit          = "transfer-limit"
	FlagExpiration             = "expiration"
	FlagPeriod                 = "period"
	FlagPeriodLimit            = "period-limit"
	FlagSpendLimit             = "spend-limit"
	FlagAllowList              = "allow-list"
	FlagAllowedMsgs            = "allowed-messages"
	FlagPacketTimeoutHeight    = "packet-timeout-height"
	FlagPacketTimeoutTimestamp = "packet-timeout-timestamp"
	FlagAbsoluteTimeouts       = "absolute-timeouts"
	FlagMemo                   = "memo"
	FlagRequiredAttributes     = "required-attributes"
	FlagAllowForceTransfer     = "allow-force-transfer"
	FlagAdd                    = "add"
	FlagRemove                 = "remove"
	FlagGovProposal            = "gov-proposal"
	FlagUsdMills               = "usd-mills"
	FlagVolume                 = "volume"
)

Variables

This section is empty.

Functions

func AccountDataCmd added in v1.16.0

func AccountDataCmd() *cobra.Command

AccountDataCmd is the CLI command for querying account data for a marker.

func AddNewMarkerFlags added in v1.15.0

func AddNewMarkerFlags(cmd *cobra.Command)

AddNewMarkerFlags adds the flags needed when defining a new marker. The provided values can be retrieved using ParseNewMarkerFlags.

func AllHoldersCmd

func AllHoldersCmd() *cobra.Command

AllHoldersCmd is the CLI command for listing all marker module registrations.

func AllMarkersCmd

func AllMarkersCmd() *cobra.Command

AllMarkersCmd is the CLI command for listing all marker module registrations.

func GetCmdActivate

func GetCmdActivate() *cobra.Command

GetCmdActivate implements the activate marker command.

func GetCmdAddAccess

func GetCmdAddAccess() *cobra.Command

GetCmdAddAccess implements the delegate access to a marker command.

func GetCmdAddFinalizeActivateMarker added in v1.14.0

func GetCmdAddFinalizeActivateMarker() *cobra.Command

GetCmdAddFinalizeActivateMarker implements the add finalize activate marker command

func GetCmdAddMarker

func GetCmdAddMarker() *cobra.Command

GetCmdAddMarker implements the create marker command

func GetCmdAddNetAssetValues added in v1.17.0

func GetCmdAddNetAssetValues() *cobra.Command

GetCmdAddNetAssetValues returns a CLI command for adding/updating marker net asset values.

func GetCmdBurn

func GetCmdBurn() *cobra.Command

GetCmdBurn implements the burn coin supply from marker command.

func GetCmdCancel

func GetCmdCancel() *cobra.Command

GetCmdCancel implements the cancel marker command.

func GetCmdDelete

func GetCmdDelete() *cobra.Command

GetCmdDelete implements the destroy marker command.

func GetCmdDeleteAccess

func GetCmdDeleteAccess() *cobra.Command

GetCmdDeleteAccess implements the revoke administrative access for a marker command.

func GetCmdFeeGrant added in v1.11.0

func GetCmdFeeGrant() *cobra.Command

GetCmdFeeGrant returns a CLI command handler for creating a MsgGrantAllowance transaction.

func GetCmdFinalize

func GetCmdFinalize() *cobra.Command

GetCmdFinalize implements the finalize marker command.

func GetCmdGrantAuthorization added in v1.7.0

func GetCmdGrantAuthorization() *cobra.Command

func GetCmdMarkerProposal added in v1.7.0

func GetCmdMarkerProposal() *cobra.Command

GetCmdMarkerProposal returns a cmd for creating/submitting marker governance proposals

func GetCmdMint

func GetCmdMint() *cobra.Command

GetCmdMint implements the mint additional supply for marker command.

func GetCmdRevokeAuthorization added in v1.7.0

func GetCmdRevokeAuthorization() *cobra.Command

func GetCmdSetAccountData added in v1.16.0

func GetCmdSetAccountData() *cobra.Command

GetCmdSetAccountData returns a CLI command for setting a marker's account data.

func GetCmdUpdateForcedTransfer added in v1.16.0

func GetCmdUpdateForcedTransfer() *cobra.Command

GetCmdUpdateForcedTransfer returns a CLI command for updating a marker's allow_force_transfer flag.

func GetCmdUpdateRequiredAttributes added in v1.16.0

func GetCmdUpdateRequiredAttributes() *cobra.Command

GetCmdUpdateRequiredAttributes implements the update required attributes command

func GetCmdUpdateSendDenyListRequest added in v1.17.0

func GetCmdUpdateSendDenyListRequest() *cobra.Command

GetCmdUpdateSendDenyListRequest implements the update deny list command

func GetCmdWithdrawCoins

func GetCmdWithdrawCoins() *cobra.Command

GetCmdWithdrawCoins implements the withdraw coins from escrow command.

func GetIbcTransferTxCmd added in v1.13.0

func GetIbcTransferTxCmd() *cobra.Command

GetIbcTransferTxCmd returns the command to create a GetIbcTransferTxCmd transaction

func GetNewTransferCmd added in v1.5.0

func GetNewTransferCmd() *cobra.Command

GetNewTransferCmd implements the transfer command for marker funds.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the top-level command for marker CLI queries.

func MarkerAccessCmd

func MarkerAccessCmd() *cobra.Command

MarkerAccessCmd is the CLI command for querying marker access list.

func MarkerCmd

func MarkerCmd() *cobra.Command

MarkerCmd is the CLI command for querying marker module registrations.

func MarkerEscrowCmd

func MarkerEscrowCmd() *cobra.Command

MarkerEscrowCmd is the CLI command for querying marker module registrations.

func MarkerSupplyCmd

func MarkerSupplyCmd() *cobra.Command

MarkerSupplyCmd is the CLI command for querying marker module registrations.

func NetAssetValuesCmd added in v1.17.0

func NetAssetValuesCmd() *cobra.Command

NetAssetValuesCmd is the CLI command for querying a marker's net asset values.

func NewTxCmd

func NewTxCmd() *cobra.Command

NewTxCmd returns the top-level command for marker CLI transactions.

func ParseAccessGrantFromString added in v1.14.0

func ParseAccessGrantFromString(addressPermissionString string) []types.AccessGrant

ParseAccessGrantFromString splits string (example address1,perm1,perm2...;address2, perm1...) to AccessGrant

func ParseBoolStrict added in v1.16.0

func ParseBoolStrict(input string) (bool, error)

ParseBoolStrict converts the provided input into a boolean. Valid strings are "true" and "false"; case is ignored.

func ParseNetAssetValueString added in v1.17.0

func ParseNetAssetValueString(netAssetValuesString string) ([]types.NetAssetValue, error)

ParseNetAssetValueString splits string (example 1hotdog,1;2jackthecat100,...) to list of NetAssetValue's

func QueryParamsCmd added in v1.3.0

func QueryParamsCmd() *cobra.Command

QueryParamsCmd returns the command handler for marker parameter querying.

Types

type NewMarkerFlagValues added in v1.15.0

type NewMarkerFlagValues struct {
	MarkerType         types.MarkerType
	SupplyFixed        bool
	AllowGovControl    bool
	AllowForceTransfer bool
	RequiredAttributes []string
	UsdMills           uint64
	Volume             uint64
}

NewMarkerFlagValues represents the values provided in the flags added by AddNewMarkerFlags.

func ParseNewMarkerFlags added in v1.15.0

func ParseNewMarkerFlags(cmd *cobra.Command) (*NewMarkerFlagValues, error)

ParseNewMarkerFlags reads the flags added by AddNewMarkerFlags.

Jump to

Keyboard shortcuts

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