Skip to main content

Module config

Module config 

Source
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.
MakerSettings
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.json with --devnet, otherwise paralock.toml.
parse_config
Parses and checks a paralock.toml (path is used for messages and relative paths).
warn_if_shared
Warns if path (a file holding secrets) is readable or writable by group or others.