Structsยง
- Build
Options - Compiler Options wrapper for Build command. Also used by other commands which require Build command output as their input.
- EnvOptions
- Overrides for the
.env
file. - Extra
Options - Additional options that are common across a number of commands.
- FeeOptions
- The fee options for the transactions.
- Transaction
Action - What to do with a transaction produced by the CLI.
Functionsยง
- check_
consensus_ version_ mismatch - A helper function to check for a consensus version mismatch against the network.
- get_
consensus_ heights - Get the consensus heights for the current network.
First check the
CONSENSUS_VERSION_HEIGHTS
environment variable. Otherwise, ifis_devnet
is true, then return the test consensus heights. Otherwise, return the consensus heights for the given network. - get_
consensus_ version - get_
consensus_ version_ from_ height - get_
endpoint - Returns the endpoint to interact with the network.
If the
--endpoint
options is not provided, it will default to the environment variable. - get_
is_ devnet - Returns whether the devnet flag is set.
If the
--devnet
flag is not set, check if the environment variable is set, otherwise default tofalse
. - get_
network - Returns the network name.
If the
--network
options is not provided, it will default to the environment variable. - get_
private_ key - Returns the private key.
If the
--private-key
options is not provided, it will default to the environment variable. - number_
to_ consensus_ version - parse_
amount ๐ - parse_
fee_ options - parse_
record ๐ - Parses the record string. If the string is a ciphertext, then attempt to decrypt it. Lifted from snarkOS.
- parse_
record_ ๐string - validate_
consensus_ heights - Validates a vector of heights as consensus heights.