UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

21 lines 714 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EvmFee = void 0; const CurrencyFee_1 = require("../../CurrencyFee"); class EvmFee extends CurrencyFee_1.CurrencyFee { gasPrice; maxFeePerGas; maxPriorityFeePerGas; constructor(fee, isApproximate, enoughFunds, confirmationTimeSecs, feeAmount) { super(isApproximate, enoughFunds, confirmationTimeSecs, feeAmount); if ('gasPrice' in fee) { this.gasPrice = fee.gasPrice; } else { this.maxFeePerGas = fee.maxFeePerGas; this.maxPriorityFeePerGas = fee.maxPriorityFeePerGas; } } } exports.EvmFee = EvmFee; //# sourceMappingURL=EvmFee.js.map