Description
Build a helper contract that simulates events and calculates gas consumption for arbitrary invocations.
Current Problem
Complex multi-contract invocations frequently fail on-chain due to gas budget exhaustion, and developers lack tools to pre-calculate accurate resource fees.
Proposed Solution
Build a simulation runner contract that runs target methods in dry-run mode and calculates CPU, RAM, and storage fee footprints.
Technical Tasks
Acceptance Criteria
- Invocations report resource footprints without performing actual state writes
- Estimator reports match actual on-chain executions within a 5% margin
- Simulation handles out-of-gas exceptions gracefully, returning details on where it failed
Testing Requirements
- Benchmark gas estimates against real execution runs of several contracts
Metadata
- Priority: Medium
- Difficulty: Medium
Description
Build a helper contract that simulates events and calculates gas consumption for arbitrary invocations.
Current Problem
Complex multi-contract invocations frequently fail on-chain due to gas budget exhaustion, and developers lack tools to pre-calculate accurate resource fees.
Proposed Solution
Build a simulation runner contract that runs target methods in dry-run mode and calculates CPU, RAM, and storage fee footprints.
Technical Tasks
Acceptance Criteria
Testing Requirements
Metadata