Skip to content

[Smart Contracts] Add gas-regression thresholds for critical Soroban contract operationsΒ #903

Description

@ayomideadeniran

πŸš€ Feature Overview

[Smart Contracts] Add gas-regression thresholds for critical Soroban contract operations

πŸ› οΈ Implementation Requirements

  • Turn existing gas-awareness documentation into a repeatable safeguard against expensive contract changes.
  • Select representative critical operations such as issuance, enrollment, payment, or access checks.
  • Measure resources with stable fixtures and record approved baselines.
  • Fail or flag CI when a change exceeds an agreed threshold.
  • Document how maintainers intentionally update a baseline.

πŸ”§ Technical Specifications

TypeScript, React/Next.js, Node.js/Express, PostgreSQL/Redis, Rust/Soroban, GitHub Actions β€” as applicable to the scoped implementation.

βœ… Acceptance Criteria

  • Critical operations have repeatable resource measurements.
  • CI detects material gas or resource regressions.
  • Baselines are versioned with a documented update process.
  • Measurements run without mainnet credentials.
  • Results identify the affected contract operation.

πŸŽ“ Difficulty Level

Intermediate to Advanced β€” requires careful production-quality implementation.

⏱️ Timeline

ETA: 2 days

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions