UNPKG

zumokit

Version:

ZumoKit is a Wallet as a Service SDK

26 lines (25 loc) 972 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComposedTransaction = void 0; var decimal_js_1 = require("decimal.js"); var Account_1 = require("./Account"); /** * Result of one of the transaction compose methods on {@link Wallet Wallet} object. */ var ComposedTransaction = /** @class */ (function () { /** @internal */ function ComposedTransaction(json) { this.json = json; this.type = json.type; this.signedTransaction = json.signedTransaction; this.account = new Account_1.Account(json.account); this.destination = json.destination; this.amount = json.amount ? new decimal_js_1.Decimal(json.amount) : null; this.data = json.data; this.fee = new decimal_js_1.Decimal(json.fee); this.nonce = json.nonce; this.custodyOrderId = json.custodyOrderId; } return ComposedTransaction; }()); exports.ComposedTransaction = ComposedTransaction;