Update zcash-cli completion to version v6.10.0

This commit is contained in:
Shohei YOSHIDA 2025-12-14 22:35:31 +09:00
parent e673a26633
commit 434e2fae7a
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 141 additions and 132 deletions

View File

@ -28,7 +28,7 @@
# Description # Description
# ----------- # -----------
# #
# Completion script for zcash-cli (https://z.cash). # Completion script for zcash-cli v6.10.0 (https://z.cash).
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Authors # Authors
@ -38,139 +38,148 @@
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
local state line curcontext="$curcontext" ret=1 _zcash_cli_commands() {
local -a commands=(
_arguments -C \ 'addmultisigaddress:Add a nrequired-to-sign transparent multisignature address to the wallet'
'-?[display usage information]' \ 'addnode:Attempts to add or remove a node from the addnode list'
-conf='[specify configuration file]:file [zcash.conf]:_files' \ 'backupwallet:Safely copies current wallet file to destination filename'
-datadir='[specify data directory]:directory:_directories' \ 'clearbanned:Clear all banned IPs'
-testnet'[use the test network]' \ 'createmultisig:Creates a multi-signature address with n signature of m keys required'
-regtest'[enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.]' \ 'decoderawtransaction:Return a JSON object representing the serialized, hex-encoded transaction'
-rpcconnect='[send commands to node running on specified ip]:rpcconnect [127.0.0.1]:_hosts' \ 'decodescript:Decode a hex-encoded script'
-rpcport='[connect to JSON-RPC on specified port]: :_guard "[[\:digit\:]]#" "port [8232 or testnet\: 18232]"' \ 'disconnectnode:Immediately disconnects from the specified node'
-rpcwait'[wait for RPC server to start]' \ 'dumpprivkey:Reveals the private key corresponding to "t-addr"'
-rpcuser='[username for JSON-RPC connections]:rpcuser' \ 'encryptwallet:Encrypts the wallet with "passphrase"'
-rpcpassword='[password for JSON-RPC connections]:rpcpassword' \ 'generate:Mine blocks immediately'
-rpcclienttimeout='[specify timeout during HTTP requests, or 0 for no timeout]: :_guard "[[\:digit\:]]#" "timeout (seconds) [900]"' \ 'getaddednodeinfo:Returns information about the given added node, or all added nodes'
':subcommand:->subcommand' && ret=0 'getaddressbalance:Returns the balance for addresses'
'getaddressdeltas:Returns all changes for an address'
case $state in 'getaddressmempool:Returns all mempool deltas for an address'
subcommand) 'getaddresstxids:Returns the txids for given transparent addresses within the given'
subcommands=( 'getaddressutxos:Returns all unspent outputs for an address'
'getbestblockhash' "getbalance:Returns the wallet's available transparent balance"
'getblock' 'getbestblockhash:Returns the hash of the best (tip) block in the longest block chain'
'getblockchaininfo' 'getblock:return data for the block'
'getblockcount' 'getblockchaininfo:Returns an object containing various state info regarding block chain processing'
'getblockhash' 'getblockcount:Returns the height of the most recent block in the best valid block chain'
'getblockheader' 'getblockdeltas:Returns information about the given block and its transactions'
'getchaintips' 'getblockhash:Returns hash of block in best-block-chain at index provided'
'getdifficulty' 'getblockhashes:Returns array of hashes of blocks within the timestamp range provided'
'getmempoolinfo' 'getblockheader:return block header'
'getrawmempool' 'getblocksubsidy:Returns block subsidy reward'
'gettxout' 'getblocktemplate:get block template'
'gettxoutproof' 'getchaintips:Return information about all known tips in the block tree'
'gettxoutsetinfo' 'getconnectioncount:Returns the number of connections to other nodes'
'verifychain' 'getdeprecationinfo:Returns an object containing current version and deprecation block height'
'verifytxoutproof' 'getdifficulty:Returns the proof-of-work difficulty as a multiple of the minimum difficulty'
'getinfo' 'getexperimentalfeatures:Returns enabled experimental features'
'help' 'getgenerate:Return if the server is set to generate coins or not'
'stop' 'getinfo:Returns an object containing various state info'
'generate' 'getlocalsolps:Returns the average local solutions per second since this node was started'
'getgenerate' 'getmemoryinfo:Returns an object containing information about memory usage'
'setgenerate' 'getmempoolinfo:Returns details on the active state of the TX memory pool'
'getblocksubsidy' 'getmininginfo:Returns a json object containing mining-related information'
'getblocktemplate' 'getnettotals:Returns information about network traffic'
'getlocalsolps' 'getnetworkinfo:Returns an object containing various state info regarding P2P networking'
'getmininginfo' 'getnetworksolps:Returns the estimated network solutions per second based on the last n blocks'
'getnetworkhashps' 'getnewaddress:Returns a new transparent Zcash address'
'getnetworksolps' 'getpeerinfo:Returns data about each connected network node as a json array of objects'
'prioritisetransaction' 'getrawchangeaddress:Returns a new transparent Zcash address for receiving change'
'submitblock' 'getrawmempool:Returns all transaction ids in memory pool as a json array of string transaction ids'
'addnode' 'getrawtransaction:Return the raw transaction data'
'clearbanned' 'getreceivedbyaddress:Returns the total amount received by the given transparent Zcash address'
'disconnectnode' 'getspentinfo:Returns the txid and index where an output is spent'
'getaddednodeinfo' 'gettransaction:Returns detailed information about in-wallet transaction'
'getconnectioncount' 'gettxout:Returns details about an unspent transaction output'
'getnettotals' 'gettxoutproof:Returns a hex-encoded proof that "txid" was included in a block'
'getnetworkinfo' 'gettxoutsetinfo:Returns statistics about the unspent transaction output set'
'getpeerinfo' "getunconfirmedbalance:Returns the server's total unconfirmed transparent balance"
'listbanned' 'getwalletinfo:Returns wallet state information'
'ping' 'help:List all commands, or get help for a specified command'
'setban' 'importaddress:import address'
'createrawtransaction' 'importprivkey:Adds a private key to your wallet'
'decoderawtransaction' 'importpubkey:Adds a public key'
'decodescript' 'importwallet:Imports taddr keys from a wallet dump file'
'fundrawtransaction' 'listaddresses:Lists the addresses managed by this wallet by source'
'getrawtransaction' 'listaddressgroupings:Lists groups of transparent addresses'
'sendrawtransaction' 'listbanned:List all banned IPs/Subnets'
'signrawtransaction' 'listlockunspent:Returns list of temporarily unspendable transparent outputs'
'createmultisig' 'listreceivedbyaddress:List balances by transparent receiving address'
'estimatefee' 'listsinceblock:Get all transactions in blocks'
'estimatepriority' "listtransactions:Returns up to 'count' of the most recent transactions"
'validateaddress' 'listunspent:Returns array of unspent transparent transaction outputs'
'verifymessage' 'lockunspent:Updates list of temporarily unspendable outputs'
'z_validateaddress' 'ping:Requests that a ping be sent to all other nodes, to measure ping time'
'addmultisigaddress' 'prioritisetransaction:Accepts the transaction into mined blocks at a higher/lower priority'
'backupwallet' 'sendmany:Send to multiple transparent recipient'
'dumpprivkey' 'sendrawtransaction:Submits raw transaction to local node and network'
'dumpwallet' 'sendtoaddress:Send an amount to a given transparent address'
'encryptwallet' 'setban:Attempts to add or remove an IP/Subnet from the banned list'
'getaccount' 'setgenerate:Set "generate" true or false to turn generation on or off'
'getaccountaddress' 'setlogfilter:Sets the filter to be used for selecting events to log'
'getaddressesbyaccount' 'signmessage:Sign a message with the private key of a t-addr'
'getbalance' 'stop:Stop Zcash server'
'getnewaddress' 'submitblock:Attempts to submit new block to network'
'getrawchangeaddress' 'validateaddress:Return information about the given Zcash address'
'getreceivedbyaccount' 'verifychain:Verifies blockchain database'
'getreceivedbyaddress' 'verifymessage:Verify a signed message'
'gettransaction' 'verifytxoutproof:Verifies that a proof points to a transaction in a block'
'getunconfirmedbalance' 'walletconfirmbackup:Notify the wallet that the user has backed up the emergency recovery phrase'
'getwalletinfo' 'z_converttex:Converts a transparent Zcash address to a TEX address'
'importaddress' 'z_exportkey:Reveals the zkey corresponding to "zaddr"'
'importprivkey' 'z_exportviewingkey:Returns the full viewing key corresponding to "zaddr"'
'importwallet' 'z_exportwallet:Exports all wallet keys, for taddr and zaddr, in a human-readable format'
'keypoolrefill' 'z_getaddressforaccount:get address for account'
'listaccounts' "z_getbalance:Returns the balance of a taddr or zaddr belonging to the node's wallet"
'listaddressgroupings' "z_getbalanceforaccount:Returns the account's spendable balance for each value pool"
'listlockunspent' 'z_getbalanceforviewingkey:Returns the balance viewable by a full viewing key'
'listreceivedbyaccount' 'z_getmigrationstatus:Returns information about the status of the Sprout to Sapling migration'
'listreceivedbyaddress' 'z_getnewaccount:Prepares and returns a new account'
'listsinceblock' 'z_getnewaddress:Returns a new shielded address for receiving payments'
'listtransactions' 'z_getnotescount:Returns the number of notes available in the wallet for each shielded value pool'
'listunspent' 'z_getoperationresult:Retrieve the result and status of an operation which has finished'
'lockunspent' 'z_getoperationstatus:Get operation status and any associated result or error data'
'move' 'z_getpaymentdisclosure:Generate a payment disclosure for a given joinsplit output'
'sendfrom' "z_getsubtreesbyindex:Returns roots of subtrees of the given pool's note commitment tree"
'sendmany' "z_gettreestate:Return information about the given block's tree state"
'sendtoaddress' 'z_importkey:Adds a zkey (as returned by z_exportkey) to your wallet'
'setaccount' 'z_importviewingkey:Adds a viewing key to your wallet'
'settxfee' 'z_importwallet:Imports taddr and zaddr keys from a wallet export file'
'signmessage' 'z_listaccounts:Returns the list of accounts created with z_getnewaccount'
'z_exportkey' 'z_listaddresses:Returns the list of shielded addresses belonging to the wallet'
'z_exportwallet' 'z_listoperationids:Returns the list of operation ids currently known to the wallet'
'z_getbalance' "z_listreceivedbyaddress:Return a list of amounts received by a zaddr belonging to the node's wallet"
'z_getnewaddress' 'z_listunifiedreceivers:Returns a record of the individual receivers contained within the provided UA'
'z_getoperationresult' 'z_listunspent:Returns an array of unspent shielded notes'
'z_getoperationstatus' 'z_mergetoaddress:Merge multiple UTXOs and notes into a single UTXO or note'
'z_gettotalbalance' 'z_sendmany:Send a transaction with multiple recipients'
'z_importkey' "z_setmigration:attempt to migrate all funds from this wallet's Sprout addresses"
'z_importwallet' 'z_shieldcoinbase:Shield transparent coinbase funds by sending to a shielded zaddr'
'z_listaddresses' 'z_validateaddress:Return information about the given address'
'z_listoperationids' 'z_validatepaymentdisclosure:Validates a payment disclosure'
'z_listreceivedbyaddress' 'z_viewtransaction:Get detailed shielded information about in-wallet transaction'
'z_sendmany' 'zcbenchmark:Runs a benchmark of the selected benchmark type samplecount times'
'zcbenchmark' 'zcsamplejoinsplit:Perform a joinsplit and return the JSDescription'
'zcrawjoinsplit'
'zcrawkeygen'
'zcrawreceive'
'zcsamplejoinsplit'
) )
_describe -t subcommands 'zcash-cli subcommand' subcommands && ret=0 _describe -t commands 'command' commands "$@"
;; }
esac
return ret _arguments \
'(- *)-?[display usage information]' \
'(- *)-version[display version and exit]' \
'-conf=[specify configuration file]:file [zcash.conf]:_files' \
'-datadir=[specify data directory]:directory:_files -/' \
'-testnet[use the test network]' \
'-regtest[enter regression test mode]' \
'-rpcconnect=[send commands to node running on specified ip]:rpcconnect [127.0.0.1]:_hosts' \
'-rpcport=[connect to JSON-RPC on specified port]: :_guard "[[\:digit\:]]#" "port [8232 or testnet\: 18232]"' \
'-rpcwait[wait for RPC server to start]' \
'-rpcuser=[username for JSON-RPC connections]:rpcuser' \
'-rpcpassword=[password for JSON-RPC connections]:rpcpassword' \
'-rpcclienttimeout=[specify timeout during HTTP requests, or 0 for no timeout]: :_guard "[[\:digit\:]]#" "timeout (seconds) [900]"' \
'1: :_zcash_cli_commands' \
'*:: :_files'
# Local Variables: # Local Variables:
# mode: Shell-Script # mode: Shell-Script