Expand description
paralock.toml and --devnet: everything a command needs, resolved and checked before anything connects.
Keys never sit in paralock.toml by value unless allow_inline_keys = true: each key comes from an environment
variable (key_env) or a file (key_file, which should be readable by you only). See paralock.example.toml.
Structs§
- Chain
- One EVM chain.
- Globals
- The global options that decide where the configuration comes from.
- Maker
Settings - Maker settings (
paralock maker). - Setup
- Everything a command needs.
- Token
- A stablecoin a maker quotes.
Enums§
- Backend
- A Zcash backend.
- KeySource
- Where a private key comes from.
- Price
- Where prices come from.
- Role
- Which side the command plays: the keys differ.
- Secret
- A non-key secret (an RPC password).
Functions§
- find_
config - Finds the configuration file:
--config,$PARALOCK_CONFIG,./paralock.toml, then<state dir>/paralock.toml. - from_
devnet - The setup for the local devnet in
state_dir. - load
- Loads the configuration for
role:devnet.jsonwith--devnet, otherwiseparalock.toml. - parse_
config - Parses and checks a
paralock.toml(pathis used for messages and relative paths). - warn_
if_ shared - Warns if
path(a file holding secrets) is readable or writable by group or others.