hyperweb-io / hyperweb-io/create-hyperweb-app
contract syntax
- 主要言語
- TypeScript
- スター
- 16
- フォーク
- 5
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## 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;
}
}
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- blockchain
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100