UNPKG

zumokit

Version:

ZumoKit is a Wallet as a Service SDK

28 lines (27 loc) 982 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InternalTransaction = void 0; var decimal_js_1 = require("decimal.js"); /** * Internal transaction details. * <p> * See {@link Transaction}. * */ var InternalTransaction = /** @class */ (function () { /** @internal */ function InternalTransaction(json) { this.json = json; this.fromUserId = json.fromUserId; this.fromUserIntegratorId = json.fromUserIntegratorId; this.fromAccountId = json.fromAccountId; this.fromAddress = json.fromAddress; this.toUserId = json.toUserId; this.toUserIntegratorId = json.toUserIntegratorId; this.toAccountId = json.toAccountId; this.toAddress = json.toAddress; this.amount = json.amount ? new decimal_js_1.Decimal(json.amount) : null; this.fiatAmount = json.fiatAmount; } return InternalTransaction; }()); exports.InternalTransaction = InternalTransaction;