Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

web3-errors

Package Overview
Dependencies
Maintainers
4
Versions
327
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-errors - npm Package Compare versions

Comparing version 1.1.1-dev.7a38fee.0 to 1.1.1-dev.86f0cdb.0

36

lib/commonjs/errors/rpc_error_messages.js

@@ -20,3 +20,3 @@ "use strict";

exports.RpcErrorMessages = exports.genericRpcErrorMessageTemplate = void 0;
const error_codes_1 = require("../error_codes");
const error_codes_js_1 = require("../error_codes.js");
/**

@@ -32,47 +32,47 @@ * A template string for a generic Rpc Error. The `*code*` will be replaced with the code number.

// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1474.md
[error_codes_1.ERR_RPC_INVALID_JSON]: {
[error_codes_js_1.ERR_RPC_INVALID_JSON]: {
message: 'Parse error',
description: 'Invalid JSON',
},
[error_codes_1.ERR_RPC_INVALID_REQUEST]: {
[error_codes_js_1.ERR_RPC_INVALID_REQUEST]: {
message: 'Invalid request',
description: 'JSON is not a valid request object ',
},
[error_codes_1.ERR_RPC_INVALID_METHOD]: {
[error_codes_js_1.ERR_RPC_INVALID_METHOD]: {
message: 'Method not found',
description: 'Method does not exist ',
},
[error_codes_1.ERR_RPC_INVALID_PARAMS]: {
[error_codes_js_1.ERR_RPC_INVALID_PARAMS]: {
message: 'Invalid params',
description: 'Invalid method parameters',
},
[error_codes_1.ERR_RPC_INTERNAL_ERROR]: {
[error_codes_js_1.ERR_RPC_INTERNAL_ERROR]: {
message: 'Internal error',
description: 'Internal JSON-RPC error',
},
[error_codes_1.ERR_RPC_INVALID_INPUT]: {
[error_codes_js_1.ERR_RPC_INVALID_INPUT]: {
message: 'Invalid input',
description: 'Missing or invalid parameters',
},
[error_codes_1.ERR_RPC_MISSING_RESOURCE]: {
[error_codes_js_1.ERR_RPC_MISSING_RESOURCE]: {
message: 'Resource not found',
description: 'Requested resource not found',
},
[error_codes_1.ERR_RPC_UNAVAILABLE_RESOURCE]: {
[error_codes_js_1.ERR_RPC_UNAVAILABLE_RESOURCE]: {
message: 'Resource unavailable',
description: 'Requested resource not available',
},
[error_codes_1.ERR_RPC_TRANSACTION_REJECTED]: {
[error_codes_js_1.ERR_RPC_TRANSACTION_REJECTED]: {
message: 'Transaction rejected',
description: 'Transaction creation failed',
},
[error_codes_1.ERR_RPC_UNSUPPORTED_METHOD]: {
[error_codes_js_1.ERR_RPC_UNSUPPORTED_METHOD]: {
message: 'Method not supported',
description: 'Method is not implemented',
},
[error_codes_1.ERR_RPC_LIMIT_EXCEEDED]: {
[error_codes_js_1.ERR_RPC_LIMIT_EXCEEDED]: {
message: 'Limit exceeded',
description: 'Request exceeds defined limit',
},
[error_codes_1.ERR_RPC_NOT_SUPPORTED]: {
[error_codes_js_1.ERR_RPC_NOT_SUPPORTED]: {
message: 'JSON-RPC version not supported',

@@ -83,19 +83,19 @@ description: 'Version of JSON-RPC protocol is not supported',

// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md#provider-errors
[error_codes_1.JSONRPC_ERR_REJECTED_REQUEST]: {
[error_codes_js_1.JSONRPC_ERR_REJECTED_REQUEST]: {
name: 'User Rejected Request',
message: 'The user rejected the request.',
},
[error_codes_1.JSONRPC_ERR_UNAUTHORIZED]: {
[error_codes_js_1.JSONRPC_ERR_UNAUTHORIZED]: {
name: 'Unauthorized',
message: 'The requested method and/or account has not been authorized by the user.',
},
[error_codes_1.JSONRPC_ERR_UNSUPPORTED_METHOD]: {
[error_codes_js_1.JSONRPC_ERR_UNSUPPORTED_METHOD]: {
name: 'Unsupported Method',
message: 'The Provider does not support the requested method.',
},
[error_codes_1.JSONRPC_ERR_DISCONNECTED]: {
[error_codes_js_1.JSONRPC_ERR_DISCONNECTED]: {
name: 'Disconnected',
message: 'The Provider is disconnected from all chains.',
},
[error_codes_1.JSONRPC_ERR_CHAIN_DISCONNECTED]: {
[error_codes_js_1.JSONRPC_ERR_CHAIN_DISCONNECTED]: {
name: 'Chain Disconnected',

@@ -102,0 +102,0 @@ message: 'The Provider is not connected to the requested chain.',

@@ -17,3 +17,3 @@ /*

*/
import { ERR_RPC_INTERNAL_ERROR, ERR_RPC_INVALID_INPUT, ERR_RPC_INVALID_JSON, ERR_RPC_INVALID_METHOD, ERR_RPC_INVALID_PARAMS, ERR_RPC_INVALID_REQUEST, ERR_RPC_LIMIT_EXCEEDED, ERR_RPC_MISSING_RESOURCE, ERR_RPC_NOT_SUPPORTED, ERR_RPC_TRANSACTION_REJECTED, ERR_RPC_UNAVAILABLE_RESOURCE, ERR_RPC_UNSUPPORTED_METHOD, JSONRPC_ERR_CHAIN_DISCONNECTED, JSONRPC_ERR_DISCONNECTED, JSONRPC_ERR_REJECTED_REQUEST, JSONRPC_ERR_UNAUTHORIZED, JSONRPC_ERR_UNSUPPORTED_METHOD, } from '../error_codes';
import { ERR_RPC_INTERNAL_ERROR, ERR_RPC_INVALID_INPUT, ERR_RPC_INVALID_JSON, ERR_RPC_INVALID_METHOD, ERR_RPC_INVALID_PARAMS, ERR_RPC_INVALID_REQUEST, ERR_RPC_LIMIT_EXCEEDED, ERR_RPC_MISSING_RESOURCE, ERR_RPC_NOT_SUPPORTED, ERR_RPC_TRANSACTION_REJECTED, ERR_RPC_UNAVAILABLE_RESOURCE, ERR_RPC_UNSUPPORTED_METHOD, JSONRPC_ERR_CHAIN_DISCONNECTED, JSONRPC_ERR_DISCONNECTED, JSONRPC_ERR_REJECTED_REQUEST, JSONRPC_ERR_UNAUTHORIZED, JSONRPC_ERR_UNSUPPORTED_METHOD, } from '../error_codes.js';
/**

@@ -20,0 +20,0 @@ * A template string for a generic Rpc Error. The `*code*` will be replaced with the code number.

{
"name": "web3-errors",
"version": "1.1.1-dev.7a38fee.0+7a38fee",
"version": "1.1.1-dev.86f0cdb.0+86f0cdb",
"description": "This package has web3 error classes",

@@ -44,3 +44,3 @@ "main": "./lib/commonjs/index.js",

"dependencies": {
"web3-types": "1.1.1-dev.7a38fee.0+7a38fee"
"web3-types": "1.1.1-dev.86f0cdb.0+86f0cdb"
},

@@ -61,3 +61,3 @@ "devDependencies": {

},
"gitHead": "7a38fee406f926ca8dad9a46ed86cd35b742e9ca"
"gitHead": "86f0cdbad9b40c3a1e37a4ca3f425684bebfe491"
}

@@ -36,3 +36,3 @@ /*

JSONRPC_ERR_UNSUPPORTED_METHOD,
} from '../error_codes';
} from '../error_codes.js';

@@ -39,0 +39,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc