hyperweb-io / hyperweb-io/create-hyperweb-app
contract syntax
- Lingua principale
- TypeScript
- Stelle
- 16
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## state on the class itself
```ts
import { BigNumber } from "jsd-std";
export class Counter {
private count: BigNumber;
constructor(initialState: BigNumber) {
this.count = initialState;
}
public increment(amount: BigNumber): void {
this.count = this.count.add(amount);
}
public decrement(amount: BigNumber): void {
if (this.count.lt(amount)) {
throw new Error("Count cannot be negative");
}
this.count = this.count.sub(amount);
}
public getCount(): BigNumber {
return this.count;
}
}
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
The issue provides only a TypeScript Counter example and does not identify repository files, entry points, or tests. First clarify what “state on the class itself” and “contract syntax” should change, then locate the relevant contract-processing path and define tests that demonstrate the intended syntax is accepted.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- blockchain
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100