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

Aperta
#155 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
54m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Yormee-103/PayLoop

Tutte le issue di Yormee-103/PayLoop

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.