Skip to content

feat: enable GMX keeper emulation in Lagoon tutorial simulation mode#794

Open
Aviksaikat wants to merge 1 commit intomasterfrom
feat/lagoon-gmx-keeper-emulation
Open

feat: enable GMX keeper emulation in Lagoon tutorial simulation mode#794
Aviksaikat wants to merge 1 commit intomasterfrom
feat/lagoon-gmx-keeper-emulation

Conversation

@Aviksaikat
Copy link
Collaborator

Replace the "steps skipped" placeholder with full keeper emulation using eth_defi.gmx.testing helpers (setup_mock_oracle, extract_order_key_from_receipt, execute_order_as_keeper).

Simulation mode now runs the complete lifecycle end-to-end: deploy vault, deposit, open position, close position, withdraw.

Also enables SIMULATE=true for NETWORK=testnet by deploying Lagoon contracts from scratch on an Anvil fork of Arbitrum Sepolia, with USDC.SG minting via MintableToken.

Summary

Related issues

Checklist

  • Type hints on all new function arguments and return values
  • Tests added or updated for new/changed behaviour
  • poetry run ruff format run on changed files
  • CHANGELOG.md updated (for new features — use format: Description (YYYY-MM-DD, [#PR](url)))
  • Sphinx docstrings added for new public functions and classes

Replace the "steps skipped" placeholder with full keeper emulation
using eth_defi.gmx.testing helpers (setup_mock_oracle,
extract_order_key_from_receipt, execute_order_as_keeper).

Simulation mode now runs the complete lifecycle end-to-end: deploy
vault, deposit, open position, close position, withdraw.

Also enables SIMULATE=true for NETWORK=testnet by deploying Lagoon
contracts from scratch on an Anvil fork of Arbitrum Sepolia, with
USDC.SG minting via MintableToken.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant