hyperweb-io / hyperweb-io/create-hyperweb-app
contract syntax
- Lenguaje dominante
- TypeScript
- Estrellas
- 16
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
## 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;
}
}
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- blockchain
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 20/100