hyperweb-io / hyperweb-io/create-hyperweb-app

contract syntax

Ouverte
#11 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
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

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.