Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Contracts] Add stream_count view function

Abierto
#421 6 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 3 días

@Anthony-19 ya está trabajando en esto.

Desde el 30/6/2026.

  • #433 de @dubemoyibe-star — cerrado sin fusionar
  • #964 de @Anthony-19 — cerrado sin fusionar
  • #988 de @Anthony-19 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
18
Forks
250
Merge medio
4 d 12 h
PR fusionados (30 d)
65

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LabsCrypt/flowfi

Todos los issues de LabsCrypt/flowfi

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.