Test the debugger's transaction replay functionality
- 主要言語
- Rust
- スター
- 115
- フォーク
- 84
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 15
説明
High level flow would be:
- Compile tx script / note
- Use mockchain to execute it in tx, recording `AdviceMutations` triggered by events
- Programatically invoke the debugger with replay mode, passing in the `AdviceMutations`
- Make assertions regarding state / side effects as the tx is replayed in the debugger
I'm thinking to add these tests to the compiler repo, as it already has the setup to execute transactions (mockchain). The debugger repo doesn't have it and I assume we don't want to add it there.
コントリビューションガイド
調査の方向性
Look at the existing mockchain setup in the compiler repo to understand how transactions are executed and AdviceMutations are recorded. The debugger's replay mode needs to be invoked programmatically with these mutations. Write tests that compile a transaction script, execute it via mockchain, capture mutations, replay in the debugger, and assert on state changes. Check for existing test patterns in the codebase for guidance.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- testing
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100