Skip to content

102. [Advanced] Custom Gas Models for Private Networks #155

@dotandev

Description

@dotandev

Description
Allow users to define custom gas and resource cost models for the simulator to match private network configurations.

Requirements and Context

  • Background: Private networks might have different economic parameters than Mainnet.
  • Success Criteria (Done):
    • --gas-model ./model.json overrides host costs.

Suggested Execution

  • Fork/Branch: feature/advanced-custom-gas
  • Implementation:
    • Implement a JSON parser for host budget costs.
    • Inject custom costs into the soroban-env-host.

Test and Commit

  • Testing:
    • Override a cost and verify it is reflected in the simulation result.
  • PR Inclusions:
    • Gas model parser and host override logic.

Example Commit Message
feat(advanced): support custom gas and budget cost models

Guidelines

  • Must-haves: Validation that the model is mathematically sound.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions