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_dirfor this process (current directory and environment).- find_
checkout - The root of the Paralock checkout containing
start(the nearest directory,startincluded, that holds bothpnpm-workspace.yamlandcontracts/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 againstbase. - state_
dir - Where Paralock keeps the local devnet’s state (
devnet.json, swap stores, keys):