UNPKG

zumokit

Version:

ZumoKit is a Wallet as a Service SDK

27 lines (26 loc) 914 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionCryptoProperties = void 0; var decimal_js_1 = require("decimal.js"); /** * Transaction crypto properties. * <p> * See {@link Transaction}. * */ var TransactionCryptoProperties = /** @class */ (function () { /** @internal */ function TransactionCryptoProperties(json) { this.json = json; this.txHash = json.txHash; this.nonce = json.nonce; this.fromAddress = json.fromAddress; this.toAddress = json.toAddress; this.data = json.data; this.gasPrice = json.gasPrice ? new decimal_js_1.Decimal(json.gasPrice) : null; this.gasLimit = json.gasLimit; this.fiatFee = json.fiatFee; this.fiatAmount = json.fiatAmount; } return TransactionCryptoProperties; }()); exports.TransactionCryptoProperties = TransactionCryptoProperties;