UNPKG

chaingate

Version:

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

17 lines 577 B
import { CurrencyFee } from '../../CurrencyFee'; export class EvmFee extends 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; } } } //# sourceMappingURL=EvmFee.js.map