Expose storage price calculations and meaningful stamp purchase errors
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 1.5k
- フォーク
- 390
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ethersphere/bee のほかの issue
-
Chequebook deployment uses a fixed 175,000 gas limit; it needs about 630,000 under Glamsterdam (live on Sepolia since 2026-10-06)再び着手できるかも @sbackend123 が 28 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
ethersphere/bee#5650 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
ethersphere/bee#5682 ·
メンテナーはふだん 3 日以内に返信
-
ENSv2 is not supported, `resolve failed`対応中かも @akrem-chabchoub が 7 日前に担当しました。 オープン
ethersphere/bee#5680 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ethersphere/bee#5678 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ethersphere/bee#5666 ·
メンテナーはふだん 3 日以内に返信
ethersphere/bee の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
blocked-needs-validation bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
projectcapsule/capsule#2280 ·
メンテナーはふだん 1 日以内に返信
-
bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
kerti/balances-v2#801 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
[BUG] AdvancedCronJob validating webhook reports incorrect field paths for concurrencyPolicy and pod templates対応中かも @bhuvan-somisetty が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openkruise/kruise#2650 ·
メンテナーはふだん 1 日以内に返信