Skip to main content

Module state

Module state 

Source
Expand description

Where the local state lives (the rule of the TypeScript SDK’s state-dir.ts), and the user’s home directory.

Functions§

current_state_dir
state_dir for this process (current directory and environment).
find_checkout
The root of the Paralock checkout containing start (the nearest directory, start included, that holds both pnpm-workspace.yaml and contracts/src/ParalockHTLC.sol), if any.
home_dir
The user’s home directory ($HOME, or %USERPROFILE% on Windows).
resolve_path
Expands a leading ~/ and resolves a relative path against base.
state_dir
Where Paralock keeps the local devnet’s state (devnet.json, swap stores, keys):