isolated_lagoon_gmx_fork_env

Documentation for eth_defi.testing.gmx_lagoon.isolated_lagoon_gmx_fork_env function.

isolated_lagoon_gmx_fork_env(launch, baselines)

Restore a deployed GMX baseline with fresh Python adapters per test.

Snapshot after deployment, then discard the process/cache if strict restore fails. Callers obtain the current launch from the pool and co-locate sharers using a matching isolation group. Use real RPC position reads because public indexers cannot observe private-fork transactions.

Parameters
Returns

Fresh environment isolated from earlier EVM and Python mutations.

Return type

collections.abc.Iterator[eth_defi.testing.gmx_lagoon.LagoonGMXForkEnv]

See Anvil documentation.