Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Expose storage price calculations and meaningful stamp purchase errors

Aperta
#5,301 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
api, backend

Direzione di ricerca

Start by locating the /chainstate handler and the stamp purchase validation and error paths; the issue does not name files or tests. Read how current price, amount, depth, and duration are represented, then identify relevant tests before changing behavior. Done means exposing the requested calculations and returning actionable constraint errors with price context; the exact endpoint and calculation details remain to be designed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

seen

Summary

Users currently need to call Gnosis RPC and inspect smart contracts to calculate storage costs. The Bee node has this information (via /chainstate) but doesn't expose it in a user-friendly way with calculations.

Additionally, when stamp purchases fail (e.g., duration too short), users get unhelpful error messages.

Current Behavior

  • /chainstate returns raw currentPrice (PLUR per chunk per block), but no calculations
  • Stamp purchase failures return generic errors without explaining why or what's needed

Expected Behavior

1. Storage price calculations endpoint

Extend /chainstate or add new endpoint that provides:

  • Current storage price (PLUR per chunk per block) - already in chainstate
  • Calculator: given amount + depth → expected duration
  • Calculator: given duration + depth → required amount
  • Calculator: given duration + depth → total cost to pay
2. Meaningful stamp purchase errors

When a stamp purchase fails due to constraints, return a clear error explaining:

  • Why it failed (e.g., "duration less than minimum 24 hours")
  • What's required (e.g., "use amount of at least XXX for 24h minimum")
  • Include current price context so user can adjust

Use Case

Developers and users want to purchase stamps without needing to:

  1. Query Gnosis RPC directly
  2. Understand PLUR/chunk/block calculations manually
  3. Guess why their purchase failed

This would significantly improve the stamp purchasing UX.

Lingua principale
Go
Stelle
1.5k
Fork
390
Merge medio
2g 12h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ethersphere/bee

Tutte le issue di ethersphere/bee

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.