Skip to content

Conversation

@jeuryink
Copy link
Collaborator

@jeuryink jeuryink commented Dec 9, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 9, 2025 19:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for querying subaccount pre-state information when simulating transactions. The change enables retrieving the subaccount state both before and after applying simulated transactions.

Key changes:

  • Added pre_state parameter to the get_subaccount_info query method
  • Introduced PreState model to represent subaccount state before transaction application
  • Updated the sanity check script to demonstrate the new pre-state functionality

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
sanity/engine_client.py Added example code demonstrating the use of pre_state parameter with simulated transactions
nado_protocol/engine_client/types/query.py Added PreState model and pre_state field to QuerySubaccountInfoParams and SubaccountInfoData
nado_protocol/engine_client/types/init.py Exported the new PreState model
nado_protocol/engine_client/query.py Updated get_subaccount_info method signature to accept pre_state parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jeuryink jeuryink merged commit c791568 into main Dec 9, 2025
7 checks passed
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.

2 participants