Define a contract versioning policy (`version()` still returns "v1")

Abierto
#155 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
30/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Start in contracts/invoice/src/lib.rs at the version() function, which still returns the symbol v1, and compare it with the functions and error codes the contract now exposes. Check contracts/invoice/src/test.rs for the existing version assertion and contracts/invoice/README.md for where the policy belongs. The work is done when a versioning rule is written in the README, and version() and its test both follow that rule. The scheme itself needs a maintainer decision before the code change.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

contract difficulty: beginner documentation needs-discussion

Difficulty: Beginner

Problem

version() returns the symbol v1, although the contract's public interface has since gained functions and error codes. There is no stated rule for when the version changes.

Why it matters

Integrators use the version to know which functions exist.

Scope of work

Propose and document a scheme (for example semantic version in a symbol, bumped on any ABI addition), apply it in version(), update the test, README and deployment.testnet.json conventions.

Expected outcome

A written policy and a version() value that reflects the current interface.

Acceptance criteria

  • The policy is documented in the contract README.
  • version() and its test match the policy.

Relevant files

  • contracts/invoice/src/lib.rs, contracts/invoice/src/test.rs, contracts/invoice/README.md

Dependencies

Pair with the next contract redeploy.

Maintainer discussion needed?

Yes: choose the scheme.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
54 min
PR fusionados (30 d)
6

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 Yormee-103/PayLoop

Todos los issues de Yormee-103/PayLoop

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.