Socket
Socket
Sign inDemoInstall

@vechain/sdk-errors

Package Overview
Dependencies
Maintainers
8
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vechain/sdk-errors - npm Package Compare versions

Comparing version 1.0.0-beta.29 to 1.0.0-beta.30

src/available-errors/rpc-proxy/index.ts

52

dist/index.d.ts

@@ -307,2 +307,36 @@ /**

/**
* Invalid command line arguments
*
* WHEN TO USE:
* * When the RPC proxy is called with invalid command line arguments
*/
declare class InvalidCommandLineArguments extends VechainSDKError<{
flag: string;
value: string;
}> {
}
/**
* Invalid configuration file path
*
* WHEN TO USE:
* * When the configuration file path given as input is invalid
*/
declare class InvalidConfigurationFilePath extends VechainSDKError<{
filePath: string;
}> {
}
/**
* Invalid configuration file
*
* WHEN TO USE:
* * When the configuration file given as input is invalid
*/
declare class InvalidConfigurationFile extends VechainSDKError<{
filePath?: string;
wrongField?: string;
message?: string;
}> {
}
/**
* Invalid secp256k1 private key error.

@@ -385,5 +419,5 @@ *

* WHEN TO USE:
* * Error will be thrown when a cast between types is invalid.
* * Error will be thrown when a method call or property read fails.
*/
declare class InvalidCastType<T> extends VechainSDKError<T> {
declare class InvalidOperation extends VechainSDKError<ObjectErrorData> {
}

@@ -411,4 +445,8 @@

declare const errors_InvalidBloomParams: typeof InvalidBloomParams;
type errors_InvalidCastType<T> = InvalidCastType<T>;
declare const errors_InvalidCastType: typeof InvalidCastType;
type errors_InvalidCommandLineArguments = InvalidCommandLineArguments;
declare const errors_InvalidCommandLineArguments: typeof InvalidCommandLineArguments;
type errors_InvalidConfigurationFile = InvalidConfigurationFile;
declare const errors_InvalidConfigurationFile: typeof InvalidConfigurationFile;
type errors_InvalidConfigurationFilePath = InvalidConfigurationFilePath;
declare const errors_InvalidConfigurationFilePath: typeof InvalidConfigurationFilePath;
type errors_InvalidDataType = InvalidDataType;

@@ -426,2 +464,4 @@ declare const errors_InvalidDataType: typeof InvalidDataType;

declare const errors_InvalidKeystoreParams: typeof InvalidKeystoreParams;
type errors_InvalidOperation = InvalidOperation;
declare const errors_InvalidOperation: typeof InvalidOperation;
type errors_InvalidRLP = InvalidRLP;

@@ -466,5 +506,5 @@ declare const errors_InvalidRLP: typeof InvalidRLP;

declare namespace errors {
export { errors_CannotFindTransaction as CannotFindTransaction, errors_CertificateSignature as CertificateSignature, errors_ContractDeploymentFailed as ContractDeploymentFailed, errors_FunctionNotImplemented as FunctionNotImplemented, errors_InvalidAbiDataToEncodeOrDecode as InvalidAbiDataToEncodeOrDecode, errors_InvalidAbiFragment as InvalidAbiFragment, errors_InvalidAbiSignatureFormat as InvalidAbiSignatureFormat, errors_InvalidAddress as InvalidAddress, errors_InvalidBloom as InvalidBloom, errors_InvalidBloomParams as InvalidBloomParams, errors_InvalidCastType as InvalidCastType, errors_InvalidDataType as InvalidDataType, errors_InvalidHDNode as InvalidHDNode, errors_InvalidHDNodeMnemonic as InvalidHDNodeMnemonic, errors_InvalidHTTPRequest as InvalidHTTPRequest, errors_InvalidKeystore as InvalidKeystore, errors_InvalidKeystoreParams as InvalidKeystoreParams, errors_InvalidRLP as InvalidRLP, errors_InvalidSecp256k1MessageHash as InvalidSecp256k1MessageHash, errors_InvalidSecp256k1PrivateKey as InvalidSecp256k1PrivateKey, errors_InvalidSecp256k1Signature as InvalidSecp256k1Signature, errors_InvalidTransactionField as InvalidTransactionField, errors_JSONRPCInternalError as JSONRPCInternalError, errors_JSONRPCInvalidParams as JSONRPCInvalidParams, errors_JSONRPCInvalidRequest as JSONRPCInvalidRequest, errors_JSONRPCMethodNotFound as JSONRPCMethodNotFound, errors_JSONRPCParseError as JSONRPCParseError, errors_JSONRPCProviderError as JSONRPCProviderError, errors_JSONRPCServerError as JSONRPCServerError, errors_NotDelegatedTransaction as NotDelegatedTransaction, type errors_ObjectErrorData as ObjectErrorData, errors_PollExecution as PollExecution, errors_UnavailableTransactionField as UnavailableTransactionField, errors_UnsupportedOperation as UnsupportedOperation, errors_VechainSDKError as VechainSDKError, errors_assertInnerError as assertInnerError, errors_createErrorMessage as createErrorMessage, errors_stringifyData as stringifyData };
export { errors_CannotFindTransaction as CannotFindTransaction, errors_CertificateSignature as CertificateSignature, errors_ContractDeploymentFailed as ContractDeploymentFailed, errors_FunctionNotImplemented as FunctionNotImplemented, errors_InvalidAbiDataToEncodeOrDecode as InvalidAbiDataToEncodeOrDecode, errors_InvalidAbiFragment as InvalidAbiFragment, errors_InvalidAbiSignatureFormat as InvalidAbiSignatureFormat, errors_InvalidAddress as InvalidAddress, errors_InvalidBloom as InvalidBloom, errors_InvalidBloomParams as InvalidBloomParams, errors_InvalidCommandLineArguments as InvalidCommandLineArguments, errors_InvalidConfigurationFile as InvalidConfigurationFile, errors_InvalidConfigurationFilePath as InvalidConfigurationFilePath, errors_InvalidDataType as InvalidDataType, errors_InvalidHDNode as InvalidHDNode, errors_InvalidHDNodeMnemonic as InvalidHDNodeMnemonic, errors_InvalidHTTPRequest as InvalidHTTPRequest, errors_InvalidKeystore as InvalidKeystore, errors_InvalidKeystoreParams as InvalidKeystoreParams, errors_InvalidOperation as InvalidOperation, errors_InvalidRLP as InvalidRLP, errors_InvalidSecp256k1MessageHash as InvalidSecp256k1MessageHash, errors_InvalidSecp256k1PrivateKey as InvalidSecp256k1PrivateKey, errors_InvalidSecp256k1Signature as InvalidSecp256k1Signature, errors_InvalidTransactionField as InvalidTransactionField, errors_JSONRPCInternalError as JSONRPCInternalError, errors_JSONRPCInvalidParams as JSONRPCInvalidParams, errors_JSONRPCInvalidRequest as JSONRPCInvalidRequest, errors_JSONRPCMethodNotFound as JSONRPCMethodNotFound, errors_JSONRPCParseError as JSONRPCParseError, errors_JSONRPCProviderError as JSONRPCProviderError, errors_JSONRPCServerError as JSONRPCServerError, errors_NotDelegatedTransaction as NotDelegatedTransaction, type errors_ObjectErrorData as ObjectErrorData, errors_PollExecution as PollExecution, errors_UnavailableTransactionField as UnavailableTransactionField, errors_UnsupportedOperation as UnsupportedOperation, errors_VechainSDKError as VechainSDKError, errors_assertInnerError as assertInnerError, errors_createErrorMessage as createErrorMessage, errors_stringifyData as stringifyData };
}
export { CannotFindTransaction, CertificateSignature, ContractDeploymentFailed, FunctionNotImplemented, InvalidAbiDataToEncodeOrDecode, InvalidAbiFragment, InvalidAbiSignatureFormat, InvalidAddress, InvalidBloom, InvalidBloomParams, InvalidCastType, InvalidDataType, InvalidHDNode, InvalidHDNodeMnemonic, InvalidHTTPRequest, InvalidKeystore, InvalidKeystoreParams, InvalidRLP, InvalidSecp256k1MessageHash, InvalidSecp256k1PrivateKey, InvalidSecp256k1Signature, InvalidTransactionField, JSONRPCInternalError, JSONRPCInvalidParams, JSONRPCInvalidRequest, JSONRPCMethodNotFound, JSONRPCParseError, JSONRPCProviderError, JSONRPCServerError, NotDelegatedTransaction, type ObjectErrorData, PollExecution, UnavailableTransactionField, UnsupportedOperation, VechainSDKError, assertInnerError, createErrorMessage, errors, stringifyData };
export { CannotFindTransaction, CertificateSignature, ContractDeploymentFailed, FunctionNotImplemented, InvalidAbiDataToEncodeOrDecode, InvalidAbiFragment, InvalidAbiSignatureFormat, InvalidAddress, InvalidBloom, InvalidBloomParams, InvalidCommandLineArguments, InvalidConfigurationFile, InvalidConfigurationFilePath, InvalidDataType, InvalidHDNode, InvalidHDNodeMnemonic, InvalidHTTPRequest, InvalidKeystore, InvalidKeystoreParams, InvalidOperation, InvalidRLP, InvalidSecp256k1MessageHash, InvalidSecp256k1PrivateKey, InvalidSecp256k1Signature, InvalidTransactionField, JSONRPCInternalError, JSONRPCInvalidParams, JSONRPCInvalidRequest, JSONRPCMethodNotFound, JSONRPCParseError, JSONRPCProviderError, JSONRPCServerError, NotDelegatedTransaction, type ObjectErrorData, PollExecution, UnavailableTransactionField, UnsupportedOperation, VechainSDKError, assertInnerError, createErrorMessage, errors, stringifyData };

@@ -33,3 +33,5 @@ "use strict";

InvalidBloomParams: () => InvalidBloomParams,
InvalidCastType: () => InvalidCastType,
InvalidCommandLineArguments: () => InvalidCommandLineArguments,
InvalidConfigurationFile: () => InvalidConfigurationFile,
InvalidConfigurationFilePath: () => InvalidConfigurationFilePath,
InvalidDataType: () => InvalidDataType,

@@ -41,2 +43,3 @@ InvalidHDNode: () => InvalidHDNode,

InvalidKeystoreParams: () => InvalidKeystoreParams,
InvalidOperation: () => InvalidOperation,
InvalidRLP: () => InvalidRLP,

@@ -79,3 +82,5 @@ InvalidSecp256k1MessageHash: () => InvalidSecp256k1MessageHash,

InvalidBloomParams: () => InvalidBloomParams,
InvalidCastType: () => InvalidCastType,
InvalidCommandLineArguments: () => InvalidCommandLineArguments,
InvalidConfigurationFile: () => InvalidConfigurationFile,
InvalidConfigurationFilePath: () => InvalidConfigurationFilePath,
InvalidDataType: () => InvalidDataType,

@@ -87,2 +92,3 @@ InvalidHDNode: () => InvalidHDNode,

InvalidKeystoreParams: () => InvalidKeystoreParams,
InvalidOperation: () => InvalidOperation,
InvalidRLP: () => InvalidRLP,

@@ -243,2 +249,10 @@ InvalidSecp256k1MessageHash: () => InvalidSecp256k1MessageHash,

// src/available-errors/rpc-proxy/rpc-proxy.ts
var InvalidCommandLineArguments = class extends VechainSDKError {
};
var InvalidConfigurationFilePath = class extends VechainSDKError {
};
var InvalidConfigurationFile = class extends VechainSDKError {
};
// src/available-errors/secp256k1/secp256k1.ts

@@ -263,3 +277,3 @@ var InvalidSecp256k1PrivateKey = class extends VechainSDKError {

// src/available-errors/vcdm/vcdm.ts
var InvalidCastType = class extends VechainSDKError {
var InvalidOperation = class extends VechainSDKError {
};

@@ -278,3 +292,5 @@ // Annotate the CommonJS export names for ESM import in node:

InvalidBloomParams,
InvalidCastType,
InvalidCommandLineArguments,
InvalidConfigurationFile,
InvalidConfigurationFilePath,
InvalidDataType,

@@ -286,2 +302,3 @@ InvalidHDNode,

InvalidKeystoreParams,
InvalidOperation,
InvalidRLP,

@@ -288,0 +305,0 @@ InvalidSecp256k1MessageHash,

2

package.json
{
"name": "@vechain/sdk-errors",
"version": "1.0.0-beta.29",
"version": "1.0.0-beta.30",
"description": "This module is dedicated to managing and customizing errors within the SDK",

@@ -5,0 +5,0 @@ "author": "vechain Foundation",

@@ -14,2 +14,3 @@ export * from './abi';

export * from './rlp';
export * from './rpc-proxy';
export * from './secp256k1';

@@ -16,0 +17,0 @@ export * from './transaction';

import { VechainSDKError } from '../sdk-error';
import { type ObjectErrorData } from '../types';

@@ -7,6 +8,6 @@ /**

* WHEN TO USE:
* * Error will be thrown when a cast between types is invalid.
* * Error will be thrown when a method call or property read fails.
*/
class InvalidCastType<T> extends VechainSDKError<T> {}
class InvalidOperation extends VechainSDKError<ObjectErrorData> {}
export { InvalidCastType };
export { InvalidOperation };

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