@silvana-one/mina-utils
Version:
Silvana Mina Utils
22 lines • 675 B
JavaScript
import { __decorate, __metadata } from "tslib";
import { Field, SmartContract, method, state, State } from "o1js";
export class TinyContract extends SmartContract {
constructor() {
super(...arguments);
this.value = State();
}
async setValue(value) {
this.value.set(value);
}
}
__decorate([
state(Field),
__metadata("design:type", Object)
], TinyContract.prototype, "value", void 0);
__decorate([
method,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Field]),
__metadata("design:returntype", Promise)
], TinyContract.prototype, "setValue", null);
//# sourceMappingURL=tiny-contract.js.map