Skip to main content

Module commands

Module commands 

Source
Expand description

The commands, and what they share: connecting to Zcash and the EVM chains, prices.

Modules§

doctor
paralock doctor: checks everything a swap or a maker needs and prints a fix for each problem.
maker
paralock maker: a market maker served with the SDK’s axum server, no Node process.
taker
The taker’s commands: quote, swap, pay, swaps, resume and refund.

Constants§

PROBE_TIMEOUT
A short timeout for doctor-style probes.

Functions§

backend_label
A description of the backend for messages (no credentials).
connect
Connects both escrows of chain with the key from key, through rpc (default: the chain’s RPC). The SDK checks the chain id and that each escrow holds the Paralock contract’s code.
evm_options
The SDK’s options for one chain with account (a 0x private key).
pick_chain
The chain to use: --chain, else tempo when configured, else the only configured chain.
price_label
A description of the price source.
price_source
The USD/ZEC price source of setup.
redact
A URL without user info or query string (which may hold credentials or API keys).
shutdown_signal
Waits for Ctrl-C or SIGTERM.
zcash_node
The Zcash backend of setup.