import { bnZero, isDefined } from "../utils";
export function isEVMGasPrice(gasPrice) {
    const { maxFeePerGas, maxPriorityFeePerGas } = gasPrice;
    return isDefined(maxFeePerGas) && isDefined(maxPriorityFeePerGas);
}
export function isType0Gas(gas) {
    return gas.maxPriorityFeePerGas.eq(bnZero);
}
export function isType2Gas(gas) {
    return gas.maxPriorityFeePerGas.gt(bnZero);
}
export function isSVMGasPrice(gasPrice) {
    const { baseFee, microLamportsPerComputeUnit } = gasPrice;
    return isDefined(baseFee) && isDefined(microLamportsPerComputeUnit);
}
//# sourceMappingURL=types.js.map