Labels: core, high-difficulty, math, evm, soroban
Difficulty: High
Module: libs/gas-evaluator/
🧠 Concept
Construct an execution model that calculates exact gas/fee differences ($\Delta \text{Gas}$) in USD and native gas tokens ($XLM, ETH$) based on identified optimization rules.
⚠️ Problem
Developers often ask: "How much money will fixing this actually save?" Providing precise estimated monetary savings makes audit reports actionable for team decision-makers.
📁 Implementation Scope
libs/gas-evaluator/src/evm-opcode-calculator.ts
libs/gas-evaluator/src/soroban-resource-calculator.ts
libs/gas-evaluator/src/gas-delta-evaluator.ts
🛠️ Requirements
- Map Solidity optimization rules to EVM opcode differential tables (e.g.,
SLOAD [100-2100 gas] vs MWRITE [3 gas]).
- Map Soroban rules to Stellar CPU instruction and Ledger read/write byte resource cost schedules.
- Fetch real-time token pricing ($ETH, XLM$) via cached pricing service to render estimated annual gas cost savings based on historical contract execution volume.
🎯 Acceptance Criteria
Labels:
core,high-difficulty,math,evm,sorobanDifficulty: High
Module:
libs/gas-evaluator/🧠 Concept
Construct an execution model that calculates exact gas/fee differences ($\Delta \text{Gas}$ ) in USD and native gas tokens ($XLM, ETH$ ) based on identified optimization rules.
Developers often ask: "How much money will fixing this actually save?" Providing precise estimated monetary savings makes audit reports actionable for team decision-makers.
📁 Implementation Scope
libs/gas-evaluator/src/evm-opcode-calculator.tslibs/gas-evaluator/src/soroban-resource-calculator.tslibs/gas-evaluator/src/gas-delta-evaluator.ts🛠️ Requirements
SLOAD[100-2100 gas] vsMWRITE[3 gas]).🎯 Acceptance Criteria