Expose storage price calculations and meaningful stamp purchase errors
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
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
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
/chainstatereturns rawcurrentPrice(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:
- Query Gnosis RPC directly
- Understand PLUR/chunk/block calculations manually
- 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
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ethersphere/bee
-
Chequebook deployment uses a fixed 175,000 gas limit; it needs about 630,000 under Glamsterdam (live on Sepolia since 2026-10-06)Forse già presa @sbackend123 l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ethersphere/bee#5650 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
ethersphere/bee#5660 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
ethersphere/bee#5659 ·
I maintainer di solito rispondono entro 2 giorni
-
seen
Difficoltà 4/5 3-5 giorni Idoneità per principianti 40/100
ethersphere/bee#5648 ·
I maintainer di solito rispondono entro 2 giorni
-
pusher: chunksWorker deadlocks on a deferred chunk that fails IdentityAddress (send on nil op.Err), halting all push-syncForse già presa @sbackend123 l’ha presa 7 giorni fa. Apertaseen
Difficoltà 3/5 1-2 giorni Idoneità per principianti 75/100
ethersphere/bee#5641 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di ethersphere/bee
Issue simili
-
scaleway_lb_frontend: updating a frontend with external_acls = true deletes all scaleway_lb_aclAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
scaleway/terraform-provider-scaleway#4485 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Add SolentaForse già presa @sharmao07 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
slavakurilyak/awesome-ai-agents#760 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100