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.30 to 1.0.0-beta.31

src/available-errors/hdkey/hdnode.ts

35

dist/index.d.ts

@@ -151,21 +151,10 @@ /**

/**
* Function not implemented error.
*
* WHEN TO USE:
* * This error will be thrown when a function is not implemented.
*/
declare class FunctionNotImplemented extends VechainSDKError<{
functionName: string;
} & ObjectErrorData> {
}
/**
* Invalid HDNode mnemonic error.
*
* WHEN TO USE:
* * This error will be thrown when the HDNode mnemonic is invalid.
* * This error will be thrown when the HDKey mnemonic is invalid.
*
* @note Data (mnemonic) is undefined for security reasons, the mnemonic should not be logged!
*/
declare class InvalidHDNodeMnemonic extends VechainSDKError<undefined | {
declare class InvalidHDKeyMnemonic extends VechainSDKError<undefined | {
wordlistSize: number;

@@ -178,5 +167,5 @@ }> {

* WHEN TO USE:
* * This error will be thrown when the HDNode is invalid (derivation path / chainCode / public key parameters).
* * This error will be thrown when the HDKey is invalid (derivation path / chainCode / public key parameters).
*/
declare class InvalidHDNode extends VechainSDKError<{
declare class InvalidHDKey extends VechainSDKError<{
derivationPath?: string;

@@ -197,4 +186,2 @@ chainCode?: Uint8Array;

url: string;
message?: string;
status?: number;
}> {

@@ -432,4 +419,2 @@ }

declare const errors_ContractDeploymentFailed: typeof ContractDeploymentFailed;
type errors_FunctionNotImplemented = FunctionNotImplemented;
declare const errors_FunctionNotImplemented: typeof FunctionNotImplemented;
type errors_InvalidAbiDataToEncodeOrDecode = InvalidAbiDataToEncodeOrDecode;

@@ -455,6 +440,6 @@ declare const errors_InvalidAbiDataToEncodeOrDecode: typeof InvalidAbiDataToEncodeOrDecode;

declare const errors_InvalidDataType: typeof InvalidDataType;
type errors_InvalidHDNode = InvalidHDNode;
declare const errors_InvalidHDNode: typeof InvalidHDNode;
type errors_InvalidHDNodeMnemonic = InvalidHDNodeMnemonic;
declare const errors_InvalidHDNodeMnemonic: typeof InvalidHDNodeMnemonic;
type errors_InvalidHDKey = InvalidHDKey;
declare const errors_InvalidHDKey: typeof InvalidHDKey;
type errors_InvalidHDKeyMnemonic = InvalidHDKeyMnemonic;
declare const errors_InvalidHDKeyMnemonic: typeof InvalidHDKeyMnemonic;
type errors_InvalidHTTPRequest = InvalidHTTPRequest;

@@ -507,5 +492,5 @@ declare const errors_InvalidHTTPRequest: typeof InvalidHTTPRequest;

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_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 { errors_CannotFindTransaction as CannotFindTransaction, errors_CertificateSignature as CertificateSignature, errors_ContractDeploymentFailed as ContractDeploymentFailed, 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_InvalidHDKey as InvalidHDKey, errors_InvalidHDKeyMnemonic as InvalidHDKeyMnemonic, 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, 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 };
export { CannotFindTransaction, CertificateSignature, ContractDeploymentFailed, InvalidAbiDataToEncodeOrDecode, InvalidAbiFragment, InvalidAbiSignatureFormat, InvalidAddress, InvalidBloom, InvalidBloomParams, InvalidCommandLineArguments, InvalidConfigurationFile, InvalidConfigurationFilePath, InvalidDataType, InvalidHDKey, InvalidHDKeyMnemonic, 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 };

@@ -26,3 +26,2 @@ "use strict";

ContractDeploymentFailed: () => ContractDeploymentFailed,
FunctionNotImplemented: () => FunctionNotImplemented,
InvalidAbiDataToEncodeOrDecode: () => InvalidAbiDataToEncodeOrDecode,

@@ -38,4 +37,4 @@ InvalidAbiFragment: () => InvalidAbiFragment,

InvalidDataType: () => InvalidDataType,
InvalidHDNode: () => InvalidHDNode,
InvalidHDNodeMnemonic: () => InvalidHDNodeMnemonic,
InvalidHDKey: () => InvalidHDKey,
InvalidHDKeyMnemonic: () => InvalidHDKeyMnemonic,
InvalidHTTPRequest: () => InvalidHTTPRequest,

@@ -75,3 +74,2 @@ InvalidKeystore: () => InvalidKeystore,

ContractDeploymentFailed: () => ContractDeploymentFailed,
FunctionNotImplemented: () => FunctionNotImplemented,
InvalidAbiDataToEncodeOrDecode: () => InvalidAbiDataToEncodeOrDecode,

@@ -87,4 +85,4 @@ InvalidAbiFragment: () => InvalidAbiFragment,

InvalidDataType: () => InvalidDataType,
InvalidHDNode: () => InvalidHDNode,
InvalidHDNodeMnemonic: () => InvalidHDNodeMnemonic,
InvalidHDKey: () => InvalidHDKey,
InvalidHDKeyMnemonic: () => InvalidHDKeyMnemonic,
InvalidHTTPRequest: () => InvalidHTTPRequest,

@@ -130,3 +128,3 @@ InvalidKeystore: () => InvalidKeystore,

};
return JSON.stringify(data, getCircularReplacer());
return JSON.stringify(data, getCircularReplacer(), 2);
};

@@ -146,5 +144,5 @@ function assertInnerError(error) {

-Parameters:
${stringifyData(inputData)}
${stringifyData(inputData)}${innerError?.message !== void 0 ? `
-Internal error:
${innerError?.message !== void 0 ? innerError.message : "No internal error given"}`;
${innerError.message}` : ""}`;
}

@@ -202,11 +200,7 @@

// src/available-errors/function/function.ts
var FunctionNotImplemented = class extends VechainSDKError {
// src/available-errors/hdkey/hdnode.ts
var InvalidHDKeyMnemonic = class extends VechainSDKError {
};
// src/available-errors/hdnode/hdnode.ts
var InvalidHDNodeMnemonic = class extends VechainSDKError {
var InvalidHDKey = class extends VechainSDKError {
};
var InvalidHDNode = class extends VechainSDKError {
};

@@ -286,3 +280,2 @@ // src/available-errors/http/http.ts

ContractDeploymentFailed,
FunctionNotImplemented,
InvalidAbiDataToEncodeOrDecode,

@@ -298,4 +291,4 @@ InvalidAbiFragment,

InvalidDataType,
InvalidHDNode,
InvalidHDNodeMnemonic,
InvalidHDKey,
InvalidHDKeyMnemonic,
InvalidHTTPRequest,

@@ -302,0 +295,0 @@ InvalidKeystore,

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

@@ -30,3 +30,3 @@ "author": "vechain Foundation",

"stop-thor-solo": "echo 'Stopping thor solo node ...' && docker compose down && echo 'Thor solo node stopped ...'",
"build": "rm -rf ./dist && tsup src/index.ts --format cjs,esm --dts",
"build": "rm -rf ./dist && tsup-node src/index.ts --format cjs,esm --dts",
"lint": "eslint --ext .ts src --ext .ts tests",

@@ -33,0 +33,0 @@ "format": "prettier --write src/**/*.ts tests/**/*.ts",

@@ -12,6 +12,4 @@ import { VechainSDKError } from '../sdk-error';

url: string;
message?: string;
status?: number;
}> {}
export { InvalidHTTPRequest };

@@ -7,4 +7,3 @@ export * from './abi';

export * from './data';
export * from './function';
export * from './hdnode';
export * from './hdkey';
export * from './http';

@@ -11,0 +10,0 @@ export * from './keystore';

@@ -30,3 +30,3 @@ /**

// Return the stringified data
return JSON.stringify(data, getCircularReplacer());
return JSON.stringify(data, getCircularReplacer(), 2);
};

@@ -75,3 +75,3 @@

`\n-Parameters: \n\t${stringifyData(inputData)}` +
`\n-Internal error: \n\t${innerError?.message !== undefined ? innerError.message : 'No internal error given'}`
`${innerError?.message !== undefined ? `\n-Internal error: \n\t${innerError.message}` : ''}`
);

@@ -78,0 +78,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