hyperweb-io / hyperweb-io/create-hyperweb-app
contract syntax
- Langage dominant
- TypeScript
- Étoiles
- 16
- Forks
- 5
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
## 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;
}
}
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- blockchain
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 20/100