Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

[Contracts] Add stream_count view function

Offen
#421 6 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

@Anthony-19 arbeitet bereits daran.

Seit 30.6.2026.

  • #433 von @dubemoyibe-star — ohne Merge geschlossen
  • #964 von @Anthony-19 — ohne Merge geschlossen
  • #988 von @Anthony-19 — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

contracts good first issue GrantFox OSS Maybe Rewarded Official Campaign | FWC26 smart-contract Stellar Wave

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) -> u64 view is implemented
  • Returns 0 on 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.

Vorherrschende Sprache
TypeScript
Sterne
18
Forks
250
Ø Merge
4 T. 12 Std.
Gemergte PRs (30 T.)
65

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus LabsCrypt/flowfi

Alle Issues in LabsCrypt/flowfi

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.