Socket
Socket
Sign inDemoInstall

@taquito/core

Package Overview
Dependencies
0
Maintainers
6
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 17.1.0-beta-RC.0 to 17.1.0-beta-RC.1

54

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.InvalidAmountError = exports.InvalidBlockHashError = exports.InvalidAddressError = exports.PermissionDeniedError = exports.NetworkError = exports.UnsupportedActionError = exports.TezosToolkitConfigError = exports.RpcError = exports.ParameterValidationError = exports.TaquitoError = void 0;
exports.PublicKeyNotFoundError = 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;
// ==========================================================================================

@@ -67,5 +67,6 @@ // parent error classes for Taquito

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

@@ -82,5 +83,6 @@ }

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

@@ -110,5 +112,6 @@ }

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

@@ -125,5 +128,6 @@ }

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

@@ -140,5 +144,6 @@ }

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

@@ -173,3 +178,3 @@ }

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

@@ -186,5 +191,6 @@ }

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

@@ -201,5 +207,6 @@ }

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

@@ -216,5 +223,6 @@ }

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

@@ -231,5 +239,6 @@ }

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

@@ -246,5 +255,6 @@ }

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

@@ -261,5 +271,6 @@ }

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

@@ -276,5 +287,6 @@ }

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

@@ -307,2 +319,16 @@ }

exports.ProhibitedActionError = ProhibitedActionError;
/**
* @category Error
* @description Error indicates a failure in grabbing the public key
*/
class PublicKeyNotFoundError extends TaquitoError {
constructor(pkh, cause) {
super();
this.pkh = pkh;
this.cause = cause;
this.name = 'PublicKeyNotFoundError';
this.message = `Public key not found of this address "${pkh}" in either wallet or contract API.`;
}
}
exports.PublicKeyNotFoundError = PublicKeyNotFoundError;
//# sourceMappingURL=errors.js.map

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

exports.VERSION = {
"commitHash": "5e47743ada31a9c8118f836c31b50a94d97255a6",
"version": "17.1.0-beta-RC.0"
"commitHash": "35185f70bf071114f22f169d2e1f7f8747ced2d0",
"version": "17.1.0-beta-RC.1"
};
//# sourceMappingURL=version.js.map

@@ -57,5 +57,6 @@ // ==========================================================================================

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

@@ -71,5 +72,6 @@ }

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

@@ -97,5 +99,6 @@ }

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

@@ -111,5 +114,6 @@ }

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

@@ -125,5 +129,6 @@ }

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

@@ -156,3 +161,3 @@ }

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

@@ -168,5 +173,6 @@ }

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

@@ -182,5 +188,6 @@ }

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

@@ -196,5 +203,6 @@ }

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

@@ -210,5 +218,6 @@ }

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

@@ -224,5 +233,6 @@ }

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

@@ -238,5 +248,6 @@ }

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

@@ -252,5 +263,6 @@ }

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

@@ -280,4 +292,17 @@ }

}
/**
* @category Error
* @description Error indicates a failure in grabbing the public key
*/
class PublicKeyNotFoundError extends TaquitoError {
constructor(pkh, cause) {
super();
this.pkh = pkh;
this.cause = cause;
this.name = 'PublicKeyNotFoundError';
this.message = `Public key not found of this address "${pkh}" in either wallet or contract API.`;
}
}
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 };
export { DeprecationError, InvalidAddressError, InvalidAmountError, InvalidBlockHashError, InvalidChainIdError, InvalidContractAddressError, InvalidDerivationPathError, InvalidHexStringError, InvalidKeyError, InvalidKeyHashError, InvalidMessageError, InvalidOperationHashError, InvalidOperationKindError, InvalidPublicKeyError, InvalidSignatureError, InvalidViewParameterError, NetworkError, ParameterValidationError, PermissionDeniedError, ProhibitedActionError, PublicKeyNotFoundError, RpcError, TaquitoError, TezosToolkitConfigError, UnsupportedActionError };
//# sourceMappingURL=taquito-core.es6.js.map

@@ -63,5 +63,6 @@ (function (global, factory) {

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

@@ -77,5 +78,6 @@ }

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

@@ -103,5 +105,6 @@ }

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

@@ -117,5 +120,6 @@ }

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

@@ -131,5 +135,6 @@ }

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

@@ -162,3 +167,3 @@ }

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

@@ -174,5 +179,6 @@ }

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

@@ -188,5 +194,6 @@ }

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

@@ -202,5 +209,6 @@ }

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

@@ -216,5 +224,6 @@ }

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

@@ -230,5 +239,6 @@ }

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

@@ -244,5 +254,6 @@ }

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

@@ -258,5 +269,6 @@ }

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

@@ -286,2 +298,15 @@ }

}
/**
* @category Error
* @description Error indicates a failure in grabbing the public key
*/
class PublicKeyNotFoundError extends TaquitoError {
constructor(pkh, cause) {
super();
this.pkh = pkh;
this.cause = cause;
this.name = 'PublicKeyNotFoundError';
this.message = `Public key not found of this address "${pkh}" in either wallet or contract API.`;
}
}

@@ -308,2 +333,3 @@ exports.DeprecationError = DeprecationError;

exports.ProhibitedActionError = ProhibitedActionError;
exports.PublicKeyNotFoundError = PublicKeyNotFoundError;
exports.RpcError = RpcError;

@@ -310,0 +336,0 @@ exports.TaquitoError = TaquitoError;

@@ -48,4 +48,5 @@ /**

export declare class InvalidAddressError extends ParameterValidationError {
address: string;
constructor(address: string, errorDetail?: string);
readonly address: string;
readonly errorDetail?: string | undefined;
constructor(address: string, errorDetail?: string | undefined);
}

@@ -57,4 +58,5 @@ /**

export declare class InvalidBlockHashError extends ParameterValidationError {
blockHash: string;
constructor(blockHash: string, errorDetail?: string);
readonly blockHash: string;
readonly errorDetail?: string | undefined;
constructor(blockHash: string, errorDetail?: string | undefined);
}

@@ -66,3 +68,3 @@ /**

export declare class InvalidAmountError extends ParameterValidationError {
amount: string;
readonly amount: string;
constructor(amount: string);

@@ -75,4 +77,5 @@ }

export declare class InvalidDerivationPathError extends ParameterValidationError {
derivationPath: string;
constructor(derivationPath: string, errorDetail?: string);
readonly derivationPath: string;
readonly errorDetail?: string | undefined;
constructor(derivationPath: string, errorDetail?: string | undefined);
}

@@ -84,4 +87,5 @@ /**

export declare class InvalidHexStringError extends ParameterValidationError {
hexString: string;
constructor(hexString: string, errorDetail?: string);
readonly hexString: string;
readonly errorDetail?: string | undefined;
constructor(hexString: string, errorDetail?: string | undefined);
}

@@ -93,4 +97,5 @@ /**

export declare class InvalidMessageError extends ParameterValidationError {
msg: string;
constructor(msg: string, errorDetail?: string);
readonly msg: string;
readonly errorDetail?: string | undefined;
constructor(msg: string, errorDetail?: string | undefined);
}

@@ -102,6 +107,6 @@ /**

export declare class InvalidViewParameterError extends ParameterValidationError {
viewName: string;
sigs: any;
args: any;
cause?: any;
readonly viewName: string;
readonly sigs: any;
readonly args: any;
readonly cause?: any;
constructor(viewName: string, sigs: any, args: any, cause?: any);

@@ -114,3 +119,3 @@ }

export declare class InvalidKeyError extends ParameterValidationError {
errorDetail?: string | undefined;
readonly errorDetail?: string | undefined;
constructor(errorDetail?: string | undefined);

@@ -123,4 +128,5 @@ }

export declare class InvalidPublicKeyError extends ParameterValidationError {
publicKey: string;
constructor(publicKey: string, errorDetail?: string);
readonly publicKey: string;
readonly errorDetail?: string | undefined;
constructor(publicKey: string, errorDetail?: string | undefined);
}

@@ -132,4 +138,5 @@ /**

export declare class InvalidSignatureError extends ParameterValidationError {
signature: string;
constructor(signature: string, errorDetail?: string);
readonly signature: string;
readonly errorDetail?: string | undefined;
constructor(signature: string, errorDetail?: string | undefined);
}

@@ -141,4 +148,5 @@ /**

export declare class InvalidContractAddressError extends ParameterValidationError {
contractAddress: string;
constructor(contractAddress: string, errorDetail?: string);
readonly contractAddress: string;
readonly errorDetail?: string | undefined;
constructor(contractAddress: string, errorDetail?: string | undefined);
}

@@ -150,4 +158,5 @@ /**

export declare class InvalidChainIdError extends ParameterValidationError {
chainId: string;
constructor(chainId: string, errorDetail?: string);
readonly chainId: string;
readonly errorDetail?: string | undefined;
constructor(chainId: string, errorDetail?: string | undefined);
}

@@ -159,4 +168,5 @@ /**

export declare class InvalidKeyHashError extends ParameterValidationError {
keyHash: string;
constructor(keyHash: string, errorDetail?: string);
readonly keyHash: string;
readonly errorDetail?: string | undefined;
constructor(keyHash: string, errorDetail?: string | undefined);
}

@@ -168,4 +178,5 @@ /**

export declare class InvalidOperationHashError extends ParameterValidationError {
operationHash: string;
constructor(operationHash: string, errorDetail?: string);
readonly operationHash: string;
readonly errorDetail?: string | undefined;
constructor(operationHash: string, errorDetail?: string | undefined);
}

@@ -177,4 +188,5 @@ /**

export declare class InvalidOperationKindError extends ParameterValidationError {
operationKind: string;
constructor(operationKind: string, errorDetail?: string);
readonly operationKind: string;
readonly errorDetail?: string | undefined;
constructor(operationKind: string, errorDetail?: string | undefined);
}

@@ -186,3 +198,3 @@ /**

export declare class DeprecationError extends UnsupportedActionError {
message: string;
readonly message: string;
constructor(message: string);

@@ -195,4 +207,13 @@ }

export declare class ProhibitedActionError extends UnsupportedActionError {
message: string;
readonly message: string;
constructor(message: string);
}
/**
* @category Error
* @description Error indicates a failure in grabbing the public key
*/
export declare class PublicKeyNotFoundError extends TaquitoError {
readonly pkh: string;
readonly cause?: any;
constructor(pkh: string, cause?: any);
}
{
"name": "@taquito/core",
"version": "17.1.0-beta-RC.0",
"version": "17.1.0-beta-RC.1",
"description": "Classes, interfaces, and types shared across Taquito packages",

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

},
"gitHead": "37b7cea2af882794ddd67b1228df808888af9fc4"
"gitHead": "c0494008115163a124fa466444585d7f3f1de48c"
}

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc