[Contracts] Add stream_count view function
Los mantenedores suelen responder en 3 días
@Anthony-19 ya está trabajando en esto.
Desde el 30/6/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 18
- Forks
- 250
- Merge medio
- 4 d 12 h
- PR fusionados (30 d)
- 65
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de LabsCrypt/flowfi
-
[test] Cover indexed fee event accountingPosiblemente ocupada @huangji6693-max la tomó hace 3 días. Abiertobackend points: 150 testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
LabsCrypt/flowfi#1764 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
backend points: 150 testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 3 días
-
backend points: 150 testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 3 días
-
backend points: 150 testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 3 días
-
[test] Cover admin ledger reset validationPosiblemente ocupada @Ranjeet2063 la tomó hace 3 días. Abiertobackend points: 150 testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 3 días
Todos los issues de LabsCrypt/flowfi
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Automattic/data-liberation-agent#1115 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Enhance blog readabilityAbiertoCSS enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
pychess/pychess-variants#2448 ·
Los mantenedores suelen responder en 1 día
-
[architect] Stale planning/scratch files at repo root (COMPONENT_SPLIT_SUMMARY.md etc.) describe already-completed workPosiblemente ocupada @hivecommons-hive la tomó hoy. Abiertoagent/architect architecture help wanted stage/040-covered-by-pr tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
kubestellar/console#24716 ·
Los mantenedores suelen responder en 1 día
-
helm-knative-apply.sh fails with Helm 4Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea: triage theme: undefined
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
jhipster/generator-jhipster#35895 ·
Los mantenedores suelen responder en 1 día