"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEvmProvider = exports.isDefined = exports.isPromiseRejected = exports.isPromiseFulfilled = void 0;
var ethers_1 = require("ethers");
function isPromiseFulfilled(promiseSettledResult) {
    return promiseSettledResult.status === "fulfilled";
}
exports.isPromiseFulfilled = isPromiseFulfilled;
function isPromiseRejected(promiseSettledResult) {
    return promiseSettledResult.status === "rejected";
}
exports.isPromiseRejected = isPromiseRejected;
function isDefined(input) {
    return input !== null && input !== undefined;
}
exports.isDefined = isDefined;
function isEvmProvider(provider) {
    return provider instanceof ethers_1.providers.Provider;
}
exports.isEvmProvider = isEvmProvider;
//# sourceMappingURL=TypeGuards.js.map