run_from_environment
Documentation for eth_defi.erc_4626.deposit_probe.run_from_environment function.
- run_from_environment()
Run the guarded Anvil probe configured through environment variables.
Candidate selection comes from the local vault database. The function launches one isolated fork per vault and stores the durable result after each attempt. A fresh process prevents one blocked upstream state read from contaminating later candidates. All-protocol runs can take a long time; interactive callers should invoke bounded protocol batches and resume using the status file instead of terminating the complete sweep early.
- Returns
Process exit status
0after all selected chain batches finish.- Raises
RuntimeError – If simulation confirmation, provider validation, or snapshot recovery fails.
ValueError – If required environment configuration is malformed or absent.
- Return type