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

contract syntax

Open
#11 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16
Forks
5
PR merge metrics
No merged PRs in 30d

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;
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.