Skip to content

Implement Arkiv Fee System (V1) #88

@arrivets

Description

@arrivets

Implements the Arkiv Fee Function defined in
https://github.com/Arkiv-Network/arkiv-architecture/blob/main/arkiv/tokenomics/arkiv-fee-spec.md

V1 scope

  • Pure deterministic fee function:
    fee_GLM = f(op, op_args, fee_multiplier, usd_per_glm)
  • Six ops: CREATE_ENTITY, DELETE_ENTITY, SET_ATTRIBUTE, REMOVE_ATTRIBUTE,
    EXTEND_LIFETIME, CHANGE_OWNER
  • Storage-rent term (size × time) for ops that allocate or extend storage
  • Two governance scalars (fee_multiplier, usd_per_glm) plus seven cost knobs,
    all on-chain in a governance contract; per-chain fee_multiplier_max
  • Fee collection via the standard OP Stack sequencer revenue path (spec §7)
  • Permissionless DELETE for expired entities + a V1 cleanup bot (spec §2)
  • Lightweight fee-estimation RPC for UX and pre-submit predictability (spec §8)

Sub-issues

Sequencing

Out of scope (deferred to V2 per spec §10)

  • Read pricing
  • Refunds on early DELETE or REMOVE_ATTRIBUTE
  • Downstream fee-distribution mechanics (burn / lock / foundation allocation)
  • SDK cost-preview surface (eth_estimateGas × eth_gasPrice remains available
    as the authoritative real-tx GLM cost; Implement arkiv_estimateFee RPC #92 covers the lightweight UX path)
  • Per-attribute-type indexing cost differentiation (spec §10.3 — V1 stance is
    type-blind, revisit if calibration shows >30% under/over-charge per class)

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