"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEVMGasPrice = isEVMGasPrice;
exports.isType0Gas = isType0Gas;
exports.isType2Gas = isType2Gas;
exports.isSVMGasPrice = isSVMGasPrice;
const utils_1 = require("../utils");
function isEVMGasPrice(gasPrice) {
    const { maxFeePerGas, maxPriorityFeePerGas } = gasPrice;
    return (0, utils_1.isDefined)(maxFeePerGas) && (0, utils_1.isDefined)(maxPriorityFeePerGas);
}
function isType0Gas(gas) {
    return gas.maxPriorityFeePerGas.eq(utils_1.bnZero);
}
function isType2Gas(gas) {
    return gas.maxPriorityFeePerGas.gt(utils_1.bnZero);
}
function isSVMGasPrice(gasPrice) {
    const { baseFee, microLamportsPerComputeUnit } = gasPrice;
    return (0, utils_1.isDefined)(baseFee) && (0, utils_1.isDefined)(microLamportsPerComputeUnit);
}
//# sourceMappingURL=types.js.map