Skip to content

Calibrate Gas Constants #89

@arrivets

Description

@arrivets

Determine production values for the seven cost knobs (§5):

  • op_cost_create / delete / set_attr / remove_attr / extend / change_owner
  • storage_rate_USD_per_KB_per_day

Approach (independent of #87):

  • Profile the existing entitydb crate (crates/arkiv-entitydb/) for per-op
    compute, IO, and storage cost in real terms.
  • Convert measured resource cost → $ using the operator hardware/bandwidth
    cost model.
  • Cross-check against §6 worked examples (≈$0.0093 for 10 KB / 10-attr / 30-day
    is the spec author's reasonableness anchor).
  • Check spec §10.3: confirm the type-blind storage_rate is within ±30% across
    attribute-type mix on realistic loads; if not, escalate to spec author.

Output: PR setting initial values in #86's contract deployment script + a brief
justifying each number.

Can ship in parallel with #86/#87

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions