"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JSONRPCErrorCode = exports.TxErrorCode = void 0;
/**
 * See explanation of the error codes in the comments at the end of this file
 * or at https://docs.ethers.org/v5/troubleshooting/errors
 */
var TxErrorCode;
(function (TxErrorCode) {
    TxErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
    TxErrorCode["NOT_IMPLEMENTED"] = "NOT_IMPLEMENTED";
    TxErrorCode["UNSUPPORTED_OPERATION"] = "UNSUPPORTED_OPERATION";
    TxErrorCode["NETWORK_ERROR"] = "NETWORK_ERROR";
    TxErrorCode["SERVER_ERROR"] = "SERVER_ERROR";
    TxErrorCode["TIMEOUT"] = "TIMEOUT";
    TxErrorCode["BUFFER_OVERRUN"] = "BUFFER_OVERRUN";
    TxErrorCode["NUMERIC_FAULT"] = "NUMERIC_FAULT";
    TxErrorCode["MISSING_NEW"] = "MISSING_NEW";
    TxErrorCode["INVALID_ARGUMENT"] = "INVALID_ARGUMENT";
    TxErrorCode["MISSING_ARGUMENT"] = "MISSING_ARGUMENT";
    TxErrorCode["UNEXPECTED_ARGUMENT"] = "UNEXPECTED_ARGUMENT";
    TxErrorCode["CALL_EXCEPTION"] = "CALL_EXCEPTION";
    TxErrorCode["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
    TxErrorCode["NONCE_EXPIRED"] = "NONCE_EXPIRED";
    TxErrorCode["UNPREDICTABLE_GAS_LIMIT"] = "UNPREDICTABLE_GAS_LIMIT";
    TxErrorCode["TRANSACTION_REPLACED"] = "TRANSACTION_REPLACED";
    TxErrorCode["ACTION_REJECTED"] = "ACTION_REJECTED";
    TxErrorCode["REPLACEMENT_UNDERPRICED"] = "REPLACEMENT_UNDERPRICED";
})(TxErrorCode || (exports.TxErrorCode = TxErrorCode = {}));
// https://www.jsonrpc.org/specification#error_object
var JSONRPCErrorCode;
(function (JSONRPCErrorCode) {
    JSONRPCErrorCode[JSONRPCErrorCode["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
    JSONRPCErrorCode[JSONRPCErrorCode["INTERNAL_ERROR"] = -32603] = "INTERNAL_ERROR";
    JSONRPCErrorCode[JSONRPCErrorCode["INVALID_PARAMS"] = -32602] = "INVALID_PARAMS";
    JSONRPCErrorCode[JSONRPCErrorCode["METHOD_NOT_FOUND"] = -32601] = "METHOD_NOT_FOUND";
    JSONRPCErrorCode[JSONRPCErrorCode["INVALID_REQUEST"] = -32600] = "INVALID_REQUEST";
    // NOTE:-32000 to -32099 are reserved for implementation-defined server-errors.
    JSONRPCErrorCode[JSONRPCErrorCode["RATE_LIMITING"] = -32005] = "RATE_LIMITING";
    JSONRPCErrorCode[JSONRPCErrorCode["SERVER_ERROR"] = -32000] = "SERVER_ERROR";
})(JSONRPCErrorCode || (exports.JSONRPCErrorCode = JSONRPCErrorCode = {}));
//# sourceMappingURL=types.js.map