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