🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@taquito/core

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taquito/core - npm Package Compare versions

Comparing version

to
17.0.0-beta-RC.0

43

dist/lib/errors.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProhibitedActionError = exports.DeprecationError = exports.InvalidOperationKindError = exports.InvalidOperationHashError = exports.InvalidKeyHashError = exports.InvalidChainIdError = exports.InvalidContractAddressError = exports.InvalidSignatureError = exports.InvalidPublicKeyError = exports.InvalidKeyError = exports.InvalidViewParameterError = exports.InvalidMessageError = exports.InvalidHexStringError = exports.InvalidDerivationPathError = exports.InvalidBlockHashError = exports.InvalidAddressError = exports.PermissionDeniedError = exports.NetworkError = exports.UnsupportedActionError = exports.TezosToolkitConfigError = exports.RpcError = exports.ParameterValidationError = exports.TaquitoError = void 0;
exports.ProhibitedActionError = exports.DeprecationError = exports.InvalidOperationKindError = exports.InvalidOperationHashError = exports.InvalidKeyHashError = exports.InvalidChainIdError = exports.InvalidContractAddressError = exports.InvalidSignatureError = exports.InvalidPublicKeyError = exports.InvalidKeyError = exports.InvalidViewParameterError = exports.InvalidMessageError = exports.InvalidHexStringError = exports.InvalidDerivationPathError = exports.InvalidAmountError = exports.InvalidBlockHashError = exports.InvalidAddressError = exports.PermissionDeniedError = exports.NetworkError = exports.UnsupportedActionError = exports.TezosToolkitConfigError = exports.RpcError = exports.ParameterValidationError = exports.TaquitoError = void 0;
// ==========================================================================================

@@ -69,3 +69,3 @@ // parent error classes for Taquito

this.message = `Invalid address "${address}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -84,3 +84,3 @@ }

this.message = `Invalid block hash "${blockHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -90,2 +90,15 @@ }

/**
* @category Error
* @description Error indicates an invalid amount of tez being passed as a parameter
*/
class InvalidAmountError extends ParameterValidationError {
constructor(amount) {
super();
this.amount = amount;
this.name = 'InvalidAmountError';
this.message = `Invalid amount "${amount}"`;
}
}
exports.InvalidAmountError = InvalidAmountError;
/**
* @category Error

@@ -100,3 +113,3 @@ * @description Error indicates an invalid derivation path being passed or used

this.message = `Invalid derivation path "${derivationPath}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -115,3 +128,3 @@ }

this.message = `Invalid hex string "${hexString}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -130,3 +143,3 @@ }

this.message = `Invalid message "${msg}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -147,3 +160,3 @@ }

this.name = 'InvalidViewParameterError';
this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}`;
this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}.`;
}

@@ -162,3 +175,3 @@ }

this.message = `Invalid private key`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -177,3 +190,3 @@ }

this.message = `Invalid public key "${publicKey}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -192,3 +205,3 @@ }

this.message = `Invalid signature "${signature}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -207,3 +220,3 @@ }

this.message = `Invalid contract address "${contractAddress}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -222,3 +235,3 @@ }

this.message = `Invalid chain id "${chainId}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -237,3 +250,3 @@ }

this.message = `Invalid public key hash "${keyHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -252,3 +265,3 @@ }

this.message = `Invalid operation hash "${operationHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -267,3 +280,3 @@ }

this.message = `Invalid operation kind "${operationKind}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -270,0 +283,0 @@ }

@@ -6,5 +6,5 @@ "use strict";

exports.VERSION = {
"commitHash": "adc0f8c31492e8eb2f03b06ac36ba053e8ba6224",
"version": "16.2.0"
"commitHash": "1169170fdbf4efd03283dc902bc03b9df5bb2fb1",
"version": "17.0.0-beta-RC.0"
};
//# sourceMappingURL=version.js.map

@@ -59,3 +59,3 @@ // ==========================================================================================

this.message = `Invalid address "${address}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -73,6 +73,18 @@ }

this.message = `Invalid block hash "${blockHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}
}
/**
* @category Error
* @description Error indicates an invalid amount of tez being passed as a parameter
*/
class InvalidAmountError extends ParameterValidationError {
constructor(amount) {
super();
this.amount = amount;
this.name = 'InvalidAmountError';
this.message = `Invalid amount "${amount}"`;
}
}
/**
* @category Error

@@ -87,3 +99,3 @@ * @description Error indicates an invalid derivation path being passed or used

this.message = `Invalid derivation path "${derivationPath}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -101,3 +113,3 @@ }

this.message = `Invalid hex string "${hexString}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -115,3 +127,3 @@ }

this.message = `Invalid message "${msg}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -131,3 +143,3 @@ }

this.name = 'InvalidViewParameterError';
this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}`;
this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}.`;
}

@@ -145,3 +157,3 @@ }

this.message = `Invalid private key`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -159,3 +171,3 @@ }

this.message = `Invalid public key "${publicKey}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -173,3 +185,3 @@ }

this.message = `Invalid signature "${signature}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -187,3 +199,3 @@ }

this.message = `Invalid contract address "${contractAddress}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -201,3 +213,3 @@ }

this.message = `Invalid chain id "${chainId}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -215,3 +227,3 @@ }

this.message = `Invalid public key hash "${keyHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -229,3 +241,3 @@ }

this.message = `Invalid operation hash "${operationHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -243,3 +255,3 @@ }

this.message = `Invalid operation kind "${operationKind}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -270,3 +282,3 @@ }

export { DeprecationError, InvalidAddressError, InvalidBlockHashError, InvalidChainIdError, InvalidContractAddressError, InvalidDerivationPathError, InvalidHexStringError, InvalidKeyError, InvalidKeyHashError, InvalidMessageError, InvalidOperationHashError, InvalidOperationKindError, InvalidPublicKeyError, InvalidSignatureError, InvalidViewParameterError, NetworkError, ParameterValidationError, PermissionDeniedError, ProhibitedActionError, RpcError, TaquitoError, TezosToolkitConfigError, UnsupportedActionError };
export { DeprecationError, InvalidAddressError, InvalidAmountError, InvalidBlockHashError, InvalidChainIdError, InvalidContractAddressError, InvalidDerivationPathError, InvalidHexStringError, InvalidKeyError, InvalidKeyHashError, InvalidMessageError, InvalidOperationHashError, InvalidOperationKindError, InvalidPublicKeyError, InvalidSignatureError, InvalidViewParameterError, NetworkError, ParameterValidationError, PermissionDeniedError, ProhibitedActionError, RpcError, TaquitoError, TezosToolkitConfigError, UnsupportedActionError };
//# sourceMappingURL=taquito-core.es6.js.map

@@ -65,3 +65,3 @@ (function (global, factory) {

this.message = `Invalid address "${address}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -79,6 +79,18 @@ }

this.message = `Invalid block hash "${blockHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}
}
/**
* @category Error
* @description Error indicates an invalid amount of tez being passed as a parameter
*/
class InvalidAmountError extends ParameterValidationError {
constructor(amount) {
super();
this.amount = amount;
this.name = 'InvalidAmountError';
this.message = `Invalid amount "${amount}"`;
}
}
/**
* @category Error

@@ -93,3 +105,3 @@ * @description Error indicates an invalid derivation path being passed or used

this.message = `Invalid derivation path "${derivationPath}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -107,3 +119,3 @@ }

this.message = `Invalid hex string "${hexString}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -121,3 +133,3 @@ }

this.message = `Invalid message "${msg}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -137,3 +149,3 @@ }

this.name = 'InvalidViewParameterError';
this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}`;
this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}.`;
}

@@ -151,3 +163,3 @@ }

this.message = `Invalid private key`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -165,3 +177,3 @@ }

this.message = `Invalid public key "${publicKey}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -179,3 +191,3 @@ }

this.message = `Invalid signature "${signature}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -193,3 +205,3 @@ }

this.message = `Invalid contract address "${contractAddress}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -207,3 +219,3 @@ }

this.message = `Invalid chain id "${chainId}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -221,3 +233,3 @@ }

this.message = `Invalid public key hash "${keyHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -235,3 +247,3 @@ }

this.message = `Invalid operation hash "${operationHash}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -249,3 +261,3 @@ }

this.message = `Invalid operation kind "${operationKind}"`;
errorDetail ? (this.message += `${errorDetail}`) : null;
errorDetail ? (this.message += ` ${errorDetail}.`) : null;
}

@@ -278,2 +290,3 @@ }

exports.InvalidAddressError = InvalidAddressError;
exports.InvalidAmountError = InvalidAmountError;
exports.InvalidBlockHashError = InvalidBlockHashError;

@@ -280,0 +293,0 @@ exports.InvalidChainIdError = InvalidChainIdError;

@@ -60,2 +60,10 @@ /**

/**
* @category Error
* @description Error indicates an invalid amount of tez being passed as a parameter
*/
export declare class InvalidAmountError extends ParameterValidationError {
amount: string;
constructor(amount: string);
}
/**
* @category Error

@@ -62,0 +70,0 @@ * @description Error indicates an invalid derivation path being passed or used

{
"name": "@taquito/core",
"version": "16.2.0",
"version": "17.0.0-beta-RC.0",
"description": "Classes, interfaces, and types shared across Taquito packages",

@@ -63,3 +63,3 @@ "keywords": [

},
"gitHead": "148b11675d2c3d3a10ce20c02dcece388ef59414"
"gitHead": "8acebfdf7b4361533d963eed87f03f8983dc679b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet