"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isViemError = exports.isEthersError = exports.isError = exports.isSolanaError = void 0;
var ethers_1 = require("ethers");
var viem_1 = require("viem");
var svm_1 = require("../arch/svm");
Object.defineProperty(exports, "isSolanaError", { enumerable: true, get: function () { return svm_1.isSolanaError; } });
var isError = function (error) { return error instanceof Error; };
exports.isError = isError;
var isEthersError = function (error) {
    return (error === null || error === void 0 ? void 0 : error.code) in ethers_1.ethers.utils.Logger.errors;
};
exports.isEthersError = isEthersError;
var isViemError = function (error) { return error instanceof viem_1.BaseError; };
exports.isViemError = isViemError;
//# sourceMappingURL=error.js.map