args

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RpcUrl                        = "rpc-url"
	DefaultMoneyRpcUrl            = "localhost:26866"
	DefaultTokensRpcUrl           = "localhost:28866"
	DefaultEvmRpcUrl              = "localhost:29866"
	DefaultOrchestrationRpcUrl    = "localhost:30866"
	DefaultEnterpriseTokensRpcUrl = "localhost:31866"
	PartitionCmdName              = "partition"
	PartitionRpcUrlCmdName        = "partition-rpc-url"

	PasswordPromptUsage     = "password (interactive from prompt)"
	PasswordArgUsage        = "password (non-interactive from args)"
	SeedCmdName             = "seed"
	AddressCmdName          = "address"
	AmountCmdName           = "amount"
	PasswordPromptCmdName   = "password"
	PasswordArgCmdName      = "pn"
	WalletLocationCmdName   = "wallet-location"
	KeyCmdName              = "key"
	WaitForConfCmdName      = "wait-for-confirmation"
	TotalCmdName            = "total"
	QuietCmdName            = "quiet"
	ShowUnswappedCmdName    = "show-unswapped"
	BillIdCmdName           = "bill-id"
	SystemIdentifierCmdName = "system-identifier"
	ReferenceNumber         = "reference-number"

	MaxFeeFlagName       = "max-fee"
	TargetPubkeyFlagName = "target-pubkey"
)

Variables

This section is empty.

Functions

func AddMaxFeeFlag

func AddMaxFeeFlag(cmd *cobra.Command, flags *pflag.FlagSet)

func AddWaitForProofFlags

func AddWaitForProofFlags(cmd *cobra.Command, flags *pflag.FlagSet)

AddWaitForProofFlags adds "wait-for-confirmation" and "proof-output" flags to the flagset.

func BuildRpcUrl added in v0.4.0

func BuildRpcUrl(url string) string

func ParseMaxFeeFlag

func ParseMaxFeeFlag(cmd *cobra.Command) (uint64, error)

func WaitForProofArg

func WaitForProofArg(cmd *cobra.Command) (wait bool, filename string, _ error)

WaitForProofArg returns values of the "wait-for-confirmation" and "proof-output" flags. Returns:

  • wait: true if "wait-for-confirmation" was either explicitly or implicitly (by setting the "proof-output" flag) set to "true";
  • filename: the absolute path of the file into which user wants the proof to be saved;

Types

This section is empty.

Jump to

Keyboard shortcuts

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