Skip to content

test: add Solana test validator test for automatic deposit flow#181

Draft
lpahlavi wants to merge 1 commit intolpahlavi/defi-2780-mint-automatic-depositsfrom
lpahlavi/solana-validator-automatic-flow-test
Draft

test: add Solana test validator test for automatic deposit flow#181
lpahlavi wants to merge 1 commit intolpahlavi/defi-2780-mint-automatic-depositsfrom
lpahlavi/solana-validator-automatic-flow-test

Conversation

@lpahlavi
Copy link
Copy Markdown
Contributor

@lpahlavi lpahlavi commented Apr 24, 2026

Summary

  • Adds should_automatically_deposit_and_mint to integration_tests/tests/solana_test_validator.rs
  • Covers the full end-to-end automatic deposit flow against a live solana-test-validator:
    1. Register an account via update_balance
    2. Send SOL to the computed deposit address on the local validator
    3. Advance simulated time to fire poll_monitored_addresses, wait for StoppedMonitoringAccount event
    4. Advance simulated time to fire process_pending_signatures, wait for AcceptedDeposit { source: Automatic } event
    5. Advance simulated time to fire mint_automatic_deposits, wait for the ckSOL balance to appear
    6. Assert the ckSOL balance equals deposit_amount − automated_deposit_fee

🤖 Generated with Claude Code

@lpahlavi lpahlavi force-pushed the lpahlavi/solana-validator-automatic-flow-test branch from e7c9164 to 41d74d7 Compare April 24, 2026 15:09
@lpahlavi lpahlavi changed the title test: add solana-test-validator test for automatic deposit flow test: add Solana test validator test for automatic deposit flow Apr 27, 2026
@lpahlavi lpahlavi force-pushed the lpahlavi/defi-2780-mint-automatic-deposits branch from 764c2c0 to 0d23e9f Compare April 27, 2026 11:42
@lpahlavi lpahlavi force-pushed the lpahlavi/solana-validator-automatic-flow-test branch from 41d74d7 to d76306d Compare April 27, 2026 11:43
@lpahlavi lpahlavi force-pushed the lpahlavi/defi-2780-mint-automatic-deposits branch from 0d23e9f to 65c11e1 Compare April 27, 2026 13:14
@lpahlavi lpahlavi force-pushed the lpahlavi/solana-validator-automatic-flow-test branch from d76306d to 9cc29cd Compare April 27, 2026 13:15
@lpahlavi lpahlavi force-pushed the lpahlavi/defi-2780-mint-automatic-deposits branch from 65c11e1 to b01b52d Compare April 27, 2026 13:23
@lpahlavi lpahlavi force-pushed the lpahlavi/solana-validator-automatic-flow-test branch from 9cc29cd to e4024f6 Compare April 27, 2026 13:23
@lpahlavi lpahlavi force-pushed the lpahlavi/defi-2780-mint-automatic-deposits branch from b01b52d to 68f920d Compare April 27, 2026 13:28
Adds `should_automatically_deposit_and_mint` to the solana-test-validator
integration test suite, covering the full end-to-end automatic deposit
flow:

1. Register an account via `update_balance`
2. Send SOL to the deposit address on the local validator
3. Advance simulated time to trigger `poll_monitored_addresses`,
   `process_pending_signatures`, and `mint_automatic_deposits`
4. Verify the ckSOL balance equals deposit_amount − automated_deposit_fee

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lpahlavi lpahlavi force-pushed the lpahlavi/solana-validator-automatic-flow-test branch from e4024f6 to d3c71f7 Compare April 27, 2026 13:29
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