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

contract syntax

オープン
#11 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。