UNPKG

@tangany/waas

Version:

node.js SDK for Tangany Wallet as a Service API

85 lines 2.99 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.EthTransactionAsync = void 0; var t = require("typeforce"); var eth_transaction_1 = require("./eth-transaction"); /** * Represents the result that asynchronous sending Ethereum endpoints return. */ var EthTransactionAsync = /** @class */ (function (_super) { __extends(EthTransactionAsync, _super); function EthTransactionAsync(waas, details) { var _this = _super.call(this, waas, details.hash) || this; _this.details = details; t({ hash: "String", blockNr: "Number", data: "String", status: "String", nonce: "Number", gas: "String", gasPrice: "String" }, details); return _this; } Object.defineProperty(EthTransactionAsync.prototype, "blockNr", { get: function () { return this.details.blockNr; }, enumerable: false, configurable: true }); Object.defineProperty(EthTransactionAsync.prototype, "data", { get: function () { return this.details.data; }, enumerable: false, configurable: true }); Object.defineProperty(EthTransactionAsync.prototype, "status", { get: function () { return this.details.status; }, enumerable: false, configurable: true }); Object.defineProperty(EthTransactionAsync.prototype, "nonce", { get: function () { return this.details.nonce; }, enumerable: false, configurable: true }); Object.defineProperty(EthTransactionAsync.prototype, "gas", { get: function () { return this.details.gas; }, enumerable: false, configurable: true }); Object.defineProperty(EthTransactionAsync.prototype, "gasPrice", { get: function () { return this.details.gasPrice; }, enumerable: false, configurable: true }); return EthTransactionAsync; }(eth_transaction_1.EthTransaction)); exports.EthTransactionAsync = EthTransactionAsync; //# sourceMappingURL=eth-transaction-async.js.map