Documentation ¶
Index ¶
- Constants
- func AddMaxFeeFlag(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddWaitForProofFlags(cmd *cobra.Command, flags *pflag.FlagSet)
- func BuildRpcUrl(url string) string
- func ParseMaxFeeFlag(cmd *cobra.Command) (uint64, error)
- func WaitForProofArg(cmd *cobra.Command) (wait bool, filename string, _ error)
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 AddWaitForProofFlags ¶
AddWaitForProofFlags adds "wait-for-confirmation" and "proof-output" flags to the flagset.
func BuildRpcUrl ¶ added in v0.4.0
func WaitForProofArg ¶
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.
Click to show internal directories.
Click to hide internal directories.