[Contracts] Add stream_count view function
メンテナーはふだん 3 日以内に返信
@Anthony-19 がすでに取り組んでいます。
2026年6月30日 から。
評価
この issue はまだ評価されていません。
説明
Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Labels: good first issue, contracts, Stellar Wave, smart-contract
There's no way to ask the contract how many streams exist, so the backend can't paginate without a full DB scan.
Add a read-only stream_count(env: Env) -> u64 that returns the global stream ID counter. That's the total number of streams ever created, not the active count. With it, the backend or any external indexer can do cursor/offset pagination without an extra roundtrip.
What the fix has to hold to
- Returns the monotonic stream ID counter, not a filtered/active count
- Doesn't panic on a fresh deploy, returns
0
Done when
-
stream_count(env: Env) -> u64view is implemented - Returns
0on a freshly-deployed contract - Unit test asserts the count goes up by 1 after each
create_stream - TypeScript bindings regenerated
- Tests + fmt pass, CI green
Where to start
Add the function in contracts/flowfi/src/lib.rs, test in contracts/flowfi/src/test.rs, then regen packages/sdk/src/index.ts. Small, good first contract issue.
- 主要言語
- TypeScript
- スター
- 18
- フォーク
- 250
- 平均マージ
- 4日 12時間
- マージ済み PR(30日)
- 65
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LabsCrypt/flowfi のほかの issue
-
[test] Cover indexed fee event accounting対応中かも @huangji6693-max が 2 日前に担当しました。 オープンbackend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
LabsCrypt/flowfi#1764 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
-
[test] Cover admin ledger reset validation対応中かも @Ranjeet2063 が 1 日前に担当しました。 オープンbackend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
LabsCrypt/flowfi の issue をすべて見る
似ている issue
-
area:plugins area:security area:skills bug has repro
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
anthropics/claude-code#105911 ·
メンテナーはふだん 1 日以内に返信
-
openspec-apply-change skill: when blocked, may select a ready artifact unrelated to missingArtifactsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Fission-AI/OpenSpec#2165 ·
メンテナーはふだん 1 日以内に返信
-
🐞 bug 🧐 unconfirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Tencent/tdesign-vue-next#7032 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gnosis/gnosis_vpn#661 ·
メンテナーはふだん 1 日以内に返信
-
content-freshness: staleOwnedContent doc comments still say 'complete receipt' (follow-up to #7912)オープンtriage:bug-verified
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信