UNPKG

vasku

Version:

TVM-Solidity contract development framework

25 lines (24 loc) 681 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GiverV2 = void 0; const GiverV2_1 = require("../../contract/samples/GiverV2"); class GiverV2 { _contract; constructor(keys, options = {}) { this._contract = new GiverV2_1.GiverV2({ keys }, options); } get contract() { return this._contract; } async send(options) { return await this._contract.call.sendTransaction({ dest: options.to, value: options.value, bounce: false }); } async deploy(value) { return await this._contract._deploy(value, {}, false); } } exports.GiverV2 = GiverV2;