Socket
Socket
Sign inDemoInstall

@taquito/utils

Package Overview
Dependencies
Maintainers
4
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taquito/utils - npm Package Compare versions

Comparing version 16.1.2 to 16.2.0-beta-RC.0

212

dist/lib/errors.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidHexStringError = exports.ValueConversionError = exports.ProhibitedActionError = exports.DeprecationError = exports.InvalidOperationKindError = exports.InvalidOperationHashError = exports.InvalidProtocolHashError = exports.InvalidBlockHashError = exports.InvalidKeyHashError = exports.InvalidChainIdError = exports.InvalidAddressError = exports.InvalidContractAddressError = exports.InvalidMessageError = exports.InvalidSignatureError = exports.InvalidPublicKeyError = exports.InvalidKeyError = void 0;
exports.ValueConversionError = exports.InvalidProtocolHashError = exports.ProhibitedActionError = exports.DeprecationError = exports.InvalidOperationKindError = exports.InvalidOperationHashError = exports.InvalidKeyHashError = exports.InvalidChainIdError = exports.InvalidContractAddressError = exports.InvalidSignatureError = exports.InvalidPublicKeyError = exports.InvalidKeyError = exports.InvalidMessageError = exports.InvalidHexStringError = exports.InvalidBlockHashError = exports.InvalidAddressError = void 0;
const core_1 = require("@taquito/core");
var core_2 = require("@taquito/core");
Object.defineProperty(exports, "InvalidAddressError", { enumerable: true, get: function () { return core_2.InvalidAddressError; } });
Object.defineProperty(exports, "InvalidBlockHashError", { enumerable: true, get: function () { return core_2.InvalidBlockHashError; } });
Object.defineProperty(exports, "InvalidHexStringError", { enumerable: true, get: function () { return core_2.InvalidHexStringError; } });
Object.defineProperty(exports, "InvalidMessageError", { enumerable: true, get: function () { return core_2.InvalidMessageError; } });
Object.defineProperty(exports, "InvalidKeyError", { enumerable: true, get: function () { return core_2.InvalidKeyError; } });
Object.defineProperty(exports, "InvalidPublicKeyError", { enumerable: true, get: function () { return core_2.InvalidPublicKeyError; } });
Object.defineProperty(exports, "InvalidSignatureError", { enumerable: true, get: function () { return core_2.InvalidSignatureError; } });
Object.defineProperty(exports, "InvalidContractAddressError", { enumerable: true, get: function () { return core_2.InvalidContractAddressError; } });
Object.defineProperty(exports, "InvalidChainIdError", { enumerable: true, get: function () { return core_2.InvalidChainIdError; } });
Object.defineProperty(exports, "InvalidKeyHashError", { enumerable: true, get: function () { return core_2.InvalidKeyHashError; } });
Object.defineProperty(exports, "InvalidOperationHashError", { enumerable: true, get: function () { return core_2.InvalidOperationHashError; } });
Object.defineProperty(exports, "InvalidOperationKindError", { enumerable: true, get: function () { return core_2.InvalidOperationKindError; } });
Object.defineProperty(exports, "DeprecationError", { enumerable: true, get: function () { return core_2.DeprecationError; } });
Object.defineProperty(exports, "ProhibitedActionError", { enumerable: true, get: function () { return core_2.ProhibitedActionError; } });
/**
* @category Error
* @description Error that indicates an invalid key being passed or used
* @description Error indicates invalid protocol hash being passed or used
*/
class InvalidKeyError extends Error {
constructor(key, errorDetail) {
class InvalidProtocolHashError extends core_1.ParameterValidationError {
constructor(protocolHash, errorDetails) {
super();
this.key = key;
this.errorDetail = errorDetail;
this.name = 'InvalidKeyError';
const baseMessage = `The key ${key} is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
exports.InvalidKeyError = InvalidKeyError;
/**
* @category Error
* @description Error that indicates an Invalid Public Key being passed or used
*/
class InvalidPublicKeyError extends Error {
constructor(publicKey, errorDetail) {
super();
this.publicKey = publicKey;
this.name = 'InvalidPublicKeyError';
const baseMessage = `The public key '${publicKey}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
exports.InvalidPublicKeyError = InvalidPublicKeyError;
/**
* @category Error
* @description Error that indicates an invalid signature being passed or used
*/
class InvalidSignatureError extends Error {
constructor(signature, errorDetail) {
super();
this.signature = signature;
this.name = 'InvalidSignatureError';
const baseMessage = `The signature '${signature}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
exports.InvalidSignatureError = InvalidSignatureError;
/**
* @category Error
* @description Error that indicates an invalid message being passed or used
*/
class InvalidMessageError extends Error {
constructor(msg, errorDetail) {
super();
this.msg = msg;
this.errorDetail = errorDetail;
this.name = 'InvalidMessageError';
const baseMessage = `The message '${msg}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
exports.InvalidMessageError = InvalidMessageError;
/**
* @category Error
* @description Error that indicates an invalid contract address being passed or used
*/
class InvalidContractAddressError extends Error {
constructor(contractAddress) {
super(`The contract address '${contractAddress}' is invalid`);
this.contractAddress = contractAddress;
this.name = 'InvalidContractAddressError';
}
}
exports.InvalidContractAddressError = InvalidContractAddressError;
/**
* @category Error
* @description Error that indicates an invalid address being passed or used (both contract and implicit)
*/
class InvalidAddressError extends Error {
constructor(address, errorDetail) {
super();
this.address = address;
this.name = 'InvalidAddressError';
const baseMessage = `The address '${address}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
exports.InvalidAddressError = InvalidAddressError;
/**
* @category Error
* @description Error that indicates an invalid chain id being passed or used
*/
class InvalidChainIdError extends Error {
constructor(chainId) {
super(`The chain id '${chainId}' is invalid`);
this.chainId = chainId;
this.name = 'InvalidChainIdError';
}
}
exports.InvalidChainIdError = InvalidChainIdError;
/**
* @category Error
* @description Error that indicates an invalid key hash being passed or used
*/
class InvalidKeyHashError extends Error {
constructor(keyHash) {
super(`The public key hash '${keyHash}' is invalid`);
this.keyHash = keyHash;
this.name = 'InvalidKeyHashError';
}
}
exports.InvalidKeyHashError = InvalidKeyHashError;
/**
* @category Error
* @description Error that indicates an invalid block hash being passed or used
*/ class InvalidBlockHashError extends Error {
constructor(blockHash) {
super(`The block hash '${blockHash}' is invalid`);
this.blockHash = blockHash;
this.name = 'InvalidBlockHashError';
}
}
exports.InvalidBlockHashError = InvalidBlockHashError;
/**
* @category Error
* @description Error that indicates invalid protocol hash being passed or used
*/
class InvalidProtocolHashError extends Error {
constructor(protocolHash) {
super(`The protocol hash '${protocolHash}' is invalid`);
this.protocolHash = protocolHash;
this.name = 'InvalidProtocolHashError';
this.name = 'InvalidProtocolHashError';
this.message = `The protocol hash '${protocolHash}' is invalid`;
errorDetails ? (this.message += `: ${errorDetails}`) : null;
}

@@ -137,72 +37,14 @@ }

* @category Error
* @description Error that indicates an invalid operation hash being passed or used
*/ class InvalidOperationHashError extends Error {
constructor(operationHash) {
super(`The operation hash '${operationHash}' is invalid`);
this.operationHash = operationHash;
this.name = 'InvalidOperationHashError';
}
}
exports.InvalidOperationHashError = InvalidOperationHashError;
/**
* @category Error
* @description Error that indicates an invalid operation kind being passed or used
* @description Error indicates unable to convert data type from one to another
*/
class InvalidOperationKindError extends Error {
constructor(operationKind) {
super(`The operation kind '${operationKind}' is unsupported`);
this.operationKind = operationKind;
this.name = 'InvalidOperationKindError';
}
}
exports.InvalidOperationKindError = InvalidOperationKindError;
/**
* @category Error
* @description General error that indicates something is no longer supported and/or deprecated
*/
class DeprecationError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'DeprecationError';
}
}
exports.DeprecationError = DeprecationError;
/**
* @category Error
* @description General error that indicates an action is prohibited or not allowed
*/
class ProhibitedActionError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'ProhibitedActionError';
}
}
exports.ProhibitedActionError = ProhibitedActionError;
/**
* @category Error
* @description General error that indicates a failure when trying to convert data from one type to another
*/
class ValueConversionError extends Error {
class ValueConversionError extends core_1.UnsupportedActionError {
constructor(value, desiredType) {
super(`Unable to convert ${value} to a ${desiredType}`);
super();
this.value = value;
this.desiredType = desiredType;
this.name = 'ValueConversionError';
this.message = `Unable to convert ${value} to a ${desiredType}`;
}
}
exports.ValueConversionError = ValueConversionError;
/**
* @category Error
* @description Error that indicates an invalid hex string being passed or used
*/
class InvalidHexStringError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'InvalidHexStringError';
}
}
exports.InvalidHexStringError = InvalidHexStringError;
//# sourceMappingURL=errors.js.map

4

dist/lib/taquito-utils.js

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

const bignumber_js_1 = require("bignumber.js");
const core_1 = require("@taquito/core");
__exportStar(require("./validators"), exports);

@@ -206,2 +207,3 @@ var version_1 = require("./version");

* @param hex Hex string to convert
* @throws {@link ValueConversionError}
*/

@@ -368,3 +370,3 @@ const hex2buf = (hex) => {

if (!hex.match(/[\da-f]{2}/gi)) {
throw new errors_1.InvalidHexStringError(`The hex string ${hex} does not have an even number of characters`);
throw new core_1.InvalidHexStringError(hex, `: Expecting even number of characters`);
}

@@ -371,0 +373,0 @@ return buffer_1.Buffer.from(hex, 'hex');

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateSpendingKey = exports.validateBlock = exports.validateProtocol = exports.validateOperation = exports.validatePublicKey = exports.validateSignature = exports.validateKeyHash = exports.validateContractAddress = exports.validateChain = exports.validateAddress = exports.isValidPrefix = exports.ValidationResult = void 0;
exports.validateSmartRollupAddress = exports.invalidErrorDetail = exports.validateSpendingKey = exports.validateBlock = exports.validateProtocol = exports.validateOperation = exports.validatePublicKey = exports.validateSignature = exports.validateKeyHash = exports.validateContractAddress = exports.validateChain = exports.validateAddress = exports.isValidPrefix = exports.ValidationResult = void 0;
const constants_1 = require("./constants");

@@ -65,2 +65,3 @@ const bs58check_1 = require("bs58check");

const blockPrefix = [constants_1.Prefix.B];
const smartRollupPrefix = [constants_1.Prefix.SR1];
/**

@@ -82,3 +83,7 @@ * @description Used to check if an address or a contract address is valid.

function validateAddress(value) {
return validatePrefixedValue(value, [...implicitPrefix, ...contractPrefix]);
return validatePrefixedValue(value, [
...implicitPrefix,
...contractPrefix,
...smartRollupPrefix,
]);
}

@@ -247,2 +252,19 @@ exports.validateAddress = validateAddress;

exports.validateSpendingKey = validateSpendingKey;
function invalidErrorDetail(validation) {
switch (validation) {
case ValidationResult.NO_PREFIX_MATCHED:
return ': Invalid prefix';
case ValidationResult.INVALID_CHECKSUM:
return ': Checksum failed';
case ValidationResult.INVALID_LENGTH:
return ': Invalid length';
default:
return '';
}
}
exports.invalidErrorDetail = invalidErrorDetail;
function validateSmartRollupAddress(value) {
return validatePrefixedValue(value, [...smartRollupPrefix]);
}
exports.validateSmartRollupAddress = validateSmartRollupAddress;
//# sourceMappingURL=validators.js.map

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

const typedarray_to_buffer_1 = require("typedarray-to-buffer");
const errors_1 = require("./errors");
const core_1 = require("@taquito/core");
/**

@@ -19,3 +19,3 @@ * @description Verify signature of a payload

* @returns A boolean indicating if the signature matches
*
* @throws {@link InvalidPublicKeyError} | {@link InvalidSignatureError} | {@link InvalidMessageError}
* @example

@@ -53,3 +53,3 @@ * ```

if (message === '') {
throw new errors_1.InvalidMessageError(message, 'The message provided for verifying signature cannot be empty.');
throw new core_1.InvalidMessageError(message, ': Cannot be empty.');
}

@@ -60,16 +60,8 @@ return message;

if (publicKey === '') {
throw new errors_1.InvalidPublicKeyError(publicKey, 'Public key cannot be empty');
throw new core_1.InvalidPublicKeyError(publicKey, ': Can not be empty');
}
const pkPrefix = publicKey.substring(0, 4);
const validation = taquito_utils_1.validatePublicKey(publicKey);
if (validation !== taquito_utils_1.ValidationResult.VALID) {
if (validation === taquito_utils_1.ValidationResult.INVALID_CHECKSUM) {
throw new errors_1.InvalidPublicKeyError(publicKey, 'The public key provided has an invalid checksum');
}
else if (validation === taquito_utils_1.ValidationResult.INVALID_LENGTH) {
throw new errors_1.InvalidPublicKeyError(publicKey, 'The public key provided has an invalid length');
}
else if (validation === taquito_utils_1.ValidationResult.NO_PREFIX_MATCHED) {
throw new errors_1.InvalidPublicKeyError(publicKey, `The public key provided has an unsupported prefix: ${pkPrefix}`);
}
const publicKeyValidation = taquito_utils_1.validatePublicKey(publicKey);
if (publicKeyValidation !== taquito_utils_1.ValidationResult.VALID) {
throw new core_1.InvalidPublicKeyError(publicKey, taquito_utils_1.invalidErrorDetail(publicKeyValidation));
}

@@ -81,15 +73,7 @@ return pkPrefix;

const signaturePrefix = signature.startsWith('sig')
? signature.substr(0, 3)
: signature.substr(0, 5);
? signature.substring(0, 3)
: signature.substring(0, 5);
const validation = taquito_utils_1.validateSignature(signature);
if (validation !== taquito_utils_1.ValidationResult.VALID) {
if (validation === taquito_utils_1.ValidationResult.INVALID_CHECKSUM) {
throw new errors_1.InvalidSignatureError(signature, `invalid checksum`);
}
else if (validation === taquito_utils_1.ValidationResult.INVALID_LENGTH) {
throw new errors_1.InvalidSignatureError(signature, 'invalid length');
}
else if (validation === taquito_utils_1.ValidationResult.NO_PREFIX_MATCHED) {
throw new errors_1.InvalidSignatureError(signaturePrefix, 'unsupported prefix');
}
throw new core_1.InvalidSignatureError(signature, taquito_utils_1.invalidErrorDetail(validation));
}

@@ -96,0 +80,0 @@ return signaturePrefix;

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

exports.VERSION = {
"commitHash": "bcc2118ddfafc1995fd125cd74d198fda042bf48",
"version": "16.1.2"
"commitHash": "babcbaf464fd3571a3b88cf7023fefe87809d86d",
"version": "16.2.0-beta-RC.0"
};
//# sourceMappingURL=version.js.map

@@ -6,2 +6,4 @@ import { Buffer } from 'buffer';

import bs58check from 'bs58check';
import { InvalidMessageError, InvalidPublicKeyError, InvalidSignatureError, ParameterValidationError, UnsupportedActionError, InvalidHexStringError } from '@taquito/core';
export { DeprecationError, InvalidAddressError, InvalidBlockHashError, InvalidChainIdError, InvalidContractAddressError, InvalidHexStringError, InvalidKeyError, InvalidKeyHashError, InvalidMessageError, InvalidOperationHashError, InvalidOperationKindError, InvalidPublicKeyError, InvalidSignatureError, ProhibitedActionError } from '@taquito/core';
import BigNumber from 'bignumber.js';

@@ -141,190 +143,2 @@ import elliptic from 'elliptic';

/**
* @category Error
* @description Error that indicates an invalid key being passed or used
*/
class InvalidKeyError extends Error {
constructor(key, errorDetail) {
super();
this.key = key;
this.errorDetail = errorDetail;
this.name = 'InvalidKeyError';
const baseMessage = `The key ${key} is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an Invalid Public Key being passed or used
*/
class InvalidPublicKeyError extends Error {
constructor(publicKey, errorDetail) {
super();
this.publicKey = publicKey;
this.name = 'InvalidPublicKeyError';
const baseMessage = `The public key '${publicKey}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an invalid signature being passed or used
*/
class InvalidSignatureError extends Error {
constructor(signature, errorDetail) {
super();
this.signature = signature;
this.name = 'InvalidSignatureError';
const baseMessage = `The signature '${signature}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an invalid message being passed or used
*/
class InvalidMessageError extends Error {
constructor(msg, errorDetail) {
super();
this.msg = msg;
this.errorDetail = errorDetail;
this.name = 'InvalidMessageError';
const baseMessage = `The message '${msg}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an invalid contract address being passed or used
*/
class InvalidContractAddressError extends Error {
constructor(contractAddress) {
super(`The contract address '${contractAddress}' is invalid`);
this.contractAddress = contractAddress;
this.name = 'InvalidContractAddressError';
}
}
/**
* @category Error
* @description Error that indicates an invalid address being passed or used (both contract and implicit)
*/
class InvalidAddressError extends Error {
constructor(address, errorDetail) {
super();
this.address = address;
this.name = 'InvalidAddressError';
const baseMessage = `The address '${address}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an invalid chain id being passed or used
*/
class InvalidChainIdError extends Error {
constructor(chainId) {
super(`The chain id '${chainId}' is invalid`);
this.chainId = chainId;
this.name = 'InvalidChainIdError';
}
}
/**
* @category Error
* @description Error that indicates an invalid key hash being passed or used
*/
class InvalidKeyHashError extends Error {
constructor(keyHash) {
super(`The public key hash '${keyHash}' is invalid`);
this.keyHash = keyHash;
this.name = 'InvalidKeyHashError';
}
}
/**
* @category Error
* @description Error that indicates an invalid block hash being passed or used
*/ class InvalidBlockHashError extends Error {
constructor(blockHash) {
super(`The block hash '${blockHash}' is invalid`);
this.blockHash = blockHash;
this.name = 'InvalidBlockHashError';
}
}
/**
* @category Error
* @description Error that indicates invalid protocol hash being passed or used
*/
class InvalidProtocolHashError extends Error {
constructor(protocolHash) {
super(`The protocol hash '${protocolHash}' is invalid`);
this.protocolHash = protocolHash;
this.name = 'InvalidProtocolHashError';
}
}
/**
* @category Error
* @description Error that indicates an invalid operation hash being passed or used
*/ class InvalidOperationHashError extends Error {
constructor(operationHash) {
super(`The operation hash '${operationHash}' is invalid`);
this.operationHash = operationHash;
this.name = 'InvalidOperationHashError';
}
}
/**
* @category Error
* @description Error that indicates an invalid operation kind being passed or used
*/
class InvalidOperationKindError extends Error {
constructor(operationKind) {
super(`The operation kind '${operationKind}' is unsupported`);
this.operationKind = operationKind;
this.name = 'InvalidOperationKindError';
}
}
/**
* @category Error
* @description General error that indicates something is no longer supported and/or deprecated
*/
class DeprecationError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'DeprecationError';
}
}
/**
* @category Error
* @description General error that indicates an action is prohibited or not allowed
*/
class ProhibitedActionError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'ProhibitedActionError';
}
}
/**
* @category Error
* @description General error that indicates a failure when trying to convert data from one type to another
*/
class ValueConversionError extends Error {
constructor(value, desiredType) {
super(`Unable to convert ${value} to a ${desiredType}`);
this.value = value;
this.desiredType = desiredType;
this.name = 'ValueConversionError';
}
}
/**
* @category Error
* @description Error that indicates an invalid hex string being passed or used
*/
class InvalidHexStringError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'InvalidHexStringError';
}
}
/**
* @description Verify signature of a payload

@@ -337,3 +151,3 @@ *

* @returns A boolean indicating if the signature matches
*
* @throws {@link InvalidPublicKeyError} | {@link InvalidSignatureError} | {@link InvalidMessageError}
* @example

@@ -370,3 +184,3 @@ * ```

if (message === '') {
throw new InvalidMessageError(message, 'The message provided for verifying signature cannot be empty.');
throw new InvalidMessageError(message, ': Cannot be empty.');
}

@@ -377,16 +191,8 @@ return message;

if (publicKey === '') {
throw new InvalidPublicKeyError(publicKey, 'Public key cannot be empty');
throw new InvalidPublicKeyError(publicKey, ': Can not be empty');
}
const pkPrefix = publicKey.substring(0, 4);
const validation = validatePublicKey(publicKey);
if (validation !== ValidationResult.VALID) {
if (validation === ValidationResult.INVALID_CHECKSUM) {
throw new InvalidPublicKeyError(publicKey, 'The public key provided has an invalid checksum');
}
else if (validation === ValidationResult.INVALID_LENGTH) {
throw new InvalidPublicKeyError(publicKey, 'The public key provided has an invalid length');
}
else if (validation === ValidationResult.NO_PREFIX_MATCHED) {
throw new InvalidPublicKeyError(publicKey, `The public key provided has an unsupported prefix: ${pkPrefix}`);
}
const publicKeyValidation = validatePublicKey(publicKey);
if (publicKeyValidation !== ValidationResult.VALID) {
throw new InvalidPublicKeyError(publicKey, invalidErrorDetail(publicKeyValidation));
}

@@ -397,15 +203,7 @@ return pkPrefix;

const signaturePrefix = signature.startsWith('sig')
? signature.substr(0, 3)
: signature.substr(0, 5);
? signature.substring(0, 3)
: signature.substring(0, 5);
const validation = validateSignature(signature);
if (validation !== ValidationResult.VALID) {
if (validation === ValidationResult.INVALID_CHECKSUM) {
throw new InvalidSignatureError(signature, `invalid checksum`);
}
else if (validation === ValidationResult.INVALID_LENGTH) {
throw new InvalidSignatureError(signature, 'invalid length');
}
else if (validation === ValidationResult.NO_PREFIX_MATCHED) {
throw new InvalidSignatureError(signaturePrefix, 'unsupported prefix');
}
throw new InvalidSignatureError(signature, invalidErrorDetail(validation));
}

@@ -445,2 +243,30 @@ return signaturePrefix;

/**
* @category Error
* @description Error indicates invalid protocol hash being passed or used
*/
class InvalidProtocolHashError extends ParameterValidationError {
constructor(protocolHash, errorDetails) {
super();
this.protocolHash = protocolHash;
this.name = 'InvalidProtocolHashError';
this.name = 'InvalidProtocolHashError';
this.message = `The protocol hash '${protocolHash}' is invalid`;
errorDetails ? (this.message += `: ${errorDetails}`) : null;
}
}
/**
* @category Error
* @description Error indicates unable to convert data type from one to another
*/
class ValueConversionError extends UnsupportedActionError {
constructor(value, desiredType) {
super();
this.value = value;
this.desiredType = desiredType;
this.name = 'ValueConversionError';
this.message = `Unable to convert ${value} to a ${desiredType}`;
}
}
var ValidationResult;

@@ -504,2 +330,3 @@ (function (ValidationResult) {

const blockPrefix = [Prefix.B];
const smartRollupPrefix = [Prefix.SR1];
/**

@@ -521,3 +348,7 @@ * @description Used to check if an address or a contract address is valid.

function validateAddress(value) {
return validatePrefixedValue(value, [...implicitPrefix, ...contractPrefix]);
return validatePrefixedValue(value, [
...implicitPrefix,
...contractPrefix,
...smartRollupPrefix,
]);
}

@@ -676,7 +507,22 @@ /**

}
function invalidErrorDetail(validation) {
switch (validation) {
case ValidationResult.NO_PREFIX_MATCHED:
return ': Invalid prefix';
case ValidationResult.INVALID_CHECKSUM:
return ': Checksum failed';
case ValidationResult.INVALID_LENGTH:
return ': Invalid length';
default:
return '';
}
}
function validateSmartRollupAddress(value) {
return validatePrefixedValue(value, [...smartRollupPrefix]);
}
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
const VERSION = {
"commitHash": "bcc2118ddfafc1995fd125cd74d198fda042bf48",
"version": "16.1.2"
"commitHash": "babcbaf464fd3571a3b88cf7023fefe87809d86d",
"version": "16.2.0-beta-RC.0"
};

@@ -862,2 +708,3 @@

* @param hex Hex string to convert
* @throws {@link ValueConversionError}
*/

@@ -1017,3 +864,3 @@ const hex2buf = (hex) => {

if (!hex.match(/[\da-f]{2}/gi)) {
throw new InvalidHexStringError(`The hex string ${hex} does not have an even number of characters`);
throw new InvalidHexStringError(hex, `: Expecting even number of characters`);
}

@@ -1075,3 +922,3 @@ return Buffer.from(hex, 'hex');

export { DeprecationError, InvalidAddressError, InvalidBlockHashError, InvalidChainIdError, InvalidContractAddressError, InvalidHexStringError, InvalidKeyError, InvalidKeyHashError, InvalidMessageError, InvalidOperationHashError, InvalidOperationKindError, InvalidProtocolHashError, InvalidPublicKeyError, InvalidSignatureError, Prefix, ProhibitedActionError, VERSION, ValidationResult, ValueConversionError, b58cdecode, b58cencode, b58decode, b58decodeL2Address, buf2hex, bytes2Char, char2Bytes, encodeExpr, encodeKey, encodeKeyHash, encodeL2Address, encodeOpHash, encodePubKey, format, getPkhfromPk, hex2Bytes, hex2buf, isValidPrefix, mergebuf, mic2arr, num2PaddedHex, prefix, prefixLength, stripHexPrefix, toHexBuf, validateAddress, validateBlock, validateChain, validateContractAddress, validateKeyHash, validateOperation, validatePkAndExtractPrefix, validateProtocol, validatePublicKey, validateSignature, validateSpendingKey, verifySignature };
export { InvalidProtocolHashError, Prefix, VERSION, ValidationResult, ValueConversionError, b58cdecode, b58cencode, b58decode, b58decodeL2Address, buf2hex, bytes2Char, char2Bytes, encodeExpr, encodeKey, encodeKeyHash, encodeL2Address, encodeOpHash, encodePubKey, format, getPkhfromPk, hex2Bytes, hex2buf, invalidErrorDetail, isValidPrefix, mergebuf, mic2arr, num2PaddedHex, prefix, prefixLength, stripHexPrefix, toHexBuf, validateAddress, validateBlock, validateChain, validateContractAddress, validateKeyHash, validateOperation, validatePkAndExtractPrefix, validateProtocol, validatePublicKey, validateSignature, validateSmartRollupAddress, validateSpendingKey, verifySignature };
//# sourceMappingURL=taquito-utils.es6.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('buffer'), require('@stablelib/ed25519'), require('@stablelib/blake2b'), require('blakejs'), require('bs58check'), require('bignumber.js'), require('elliptic'), require('typedarray-to-buffer')) :
typeof define === 'function' && define.amd ? define(['exports', 'buffer', '@stablelib/ed25519', '@stablelib/blake2b', 'blakejs', 'bs58check', 'bignumber.js', 'elliptic', 'typedarray-to-buffer'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoUtils = {}, global.buffer, global.ed25519, global.blake2b, global.blake, global.bs58check, global.BigNumber, global.elliptic, global.toBuffer));
})(this, (function (exports, buffer, ed25519, blake2b, blake, bs58check, BigNumber, elliptic, toBuffer) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('buffer'), require('@stablelib/ed25519'), require('@stablelib/blake2b'), require('blakejs'), require('bs58check'), require('@taquito/core'), require('bignumber.js'), require('elliptic'), require('typedarray-to-buffer')) :
typeof define === 'function' && define.amd ? define(['exports', 'buffer', '@stablelib/ed25519', '@stablelib/blake2b', 'blakejs', 'bs58check', '@taquito/core', 'bignumber.js', 'elliptic', 'typedarray-to-buffer'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoUtils = {}, global.buffer, global.ed25519, global.blake2b, global.blake, global.bs58check, global.core, global.BigNumber, global.elliptic, global.toBuffer));
})(this, (function (exports, buffer, ed25519, blake2b, blake, bs58check, core, BigNumber, elliptic, toBuffer) { 'use strict';

@@ -145,190 +145,2 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

/**
* @category Error
* @description Error that indicates an invalid key being passed or used
*/
class InvalidKeyError extends Error {
constructor(key, errorDetail) {
super();
this.key = key;
this.errorDetail = errorDetail;
this.name = 'InvalidKeyError';
const baseMessage = `The key ${key} is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an Invalid Public Key being passed or used
*/
class InvalidPublicKeyError extends Error {
constructor(publicKey, errorDetail) {
super();
this.publicKey = publicKey;
this.name = 'InvalidPublicKeyError';
const baseMessage = `The public key '${publicKey}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an invalid signature being passed or used
*/
class InvalidSignatureError extends Error {
constructor(signature, errorDetail) {
super();
this.signature = signature;
this.name = 'InvalidSignatureError';
const baseMessage = `The signature '${signature}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an invalid message being passed or used
*/
class InvalidMessageError extends Error {
constructor(msg, errorDetail) {
super();
this.msg = msg;
this.errorDetail = errorDetail;
this.name = 'InvalidMessageError';
const baseMessage = `The message '${msg}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an invalid contract address being passed or used
*/
class InvalidContractAddressError extends Error {
constructor(contractAddress) {
super(`The contract address '${contractAddress}' is invalid`);
this.contractAddress = contractAddress;
this.name = 'InvalidContractAddressError';
}
}
/**
* @category Error
* @description Error that indicates an invalid address being passed or used (both contract and implicit)
*/
class InvalidAddressError extends Error {
constructor(address, errorDetail) {
super();
this.address = address;
this.name = 'InvalidAddressError';
const baseMessage = `The address '${address}' is invalid.`;
this.message = errorDetail ? `${baseMessage} ${errorDetail}` : baseMessage;
}
}
/**
* @category Error
* @description Error that indicates an invalid chain id being passed or used
*/
class InvalidChainIdError extends Error {
constructor(chainId) {
super(`The chain id '${chainId}' is invalid`);
this.chainId = chainId;
this.name = 'InvalidChainIdError';
}
}
/**
* @category Error
* @description Error that indicates an invalid key hash being passed or used
*/
class InvalidKeyHashError extends Error {
constructor(keyHash) {
super(`The public key hash '${keyHash}' is invalid`);
this.keyHash = keyHash;
this.name = 'InvalidKeyHashError';
}
}
/**
* @category Error
* @description Error that indicates an invalid block hash being passed or used
*/ class InvalidBlockHashError extends Error {
constructor(blockHash) {
super(`The block hash '${blockHash}' is invalid`);
this.blockHash = blockHash;
this.name = 'InvalidBlockHashError';
}
}
/**
* @category Error
* @description Error that indicates invalid protocol hash being passed or used
*/
class InvalidProtocolHashError extends Error {
constructor(protocolHash) {
super(`The protocol hash '${protocolHash}' is invalid`);
this.protocolHash = protocolHash;
this.name = 'InvalidProtocolHashError';
}
}
/**
* @category Error
* @description Error that indicates an invalid operation hash being passed or used
*/ class InvalidOperationHashError extends Error {
constructor(operationHash) {
super(`The operation hash '${operationHash}' is invalid`);
this.operationHash = operationHash;
this.name = 'InvalidOperationHashError';
}
}
/**
* @category Error
* @description Error that indicates an invalid operation kind being passed or used
*/
class InvalidOperationKindError extends Error {
constructor(operationKind) {
super(`The operation kind '${operationKind}' is unsupported`);
this.operationKind = operationKind;
this.name = 'InvalidOperationKindError';
}
}
/**
* @category Error
* @description General error that indicates something is no longer supported and/or deprecated
*/
class DeprecationError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'DeprecationError';
}
}
/**
* @category Error
* @description General error that indicates an action is prohibited or not allowed
*/
class ProhibitedActionError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'ProhibitedActionError';
}
}
/**
* @category Error
* @description General error that indicates a failure when trying to convert data from one type to another
*/
class ValueConversionError extends Error {
constructor(value, desiredType) {
super(`Unable to convert ${value} to a ${desiredType}`);
this.value = value;
this.desiredType = desiredType;
this.name = 'ValueConversionError';
}
}
/**
* @category Error
* @description Error that indicates an invalid hex string being passed or used
*/
class InvalidHexStringError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'InvalidHexStringError';
}
}
/**
* @description Verify signature of a payload

@@ -341,3 +153,3 @@ *

* @returns A boolean indicating if the signature matches
*
* @throws {@link InvalidPublicKeyError} | {@link InvalidSignatureError} | {@link InvalidMessageError}
* @example

@@ -374,3 +186,3 @@ * ```

if (message === '') {
throw new InvalidMessageError(message, 'The message provided for verifying signature cannot be empty.');
throw new core.InvalidMessageError(message, ': Cannot be empty.');
}

@@ -381,16 +193,8 @@ return message;

if (publicKey === '') {
throw new InvalidPublicKeyError(publicKey, 'Public key cannot be empty');
throw new core.InvalidPublicKeyError(publicKey, ': Can not be empty');
}
const pkPrefix = publicKey.substring(0, 4);
const validation = validatePublicKey(publicKey);
if (validation !== exports.ValidationResult.VALID) {
if (validation === exports.ValidationResult.INVALID_CHECKSUM) {
throw new InvalidPublicKeyError(publicKey, 'The public key provided has an invalid checksum');
}
else if (validation === exports.ValidationResult.INVALID_LENGTH) {
throw new InvalidPublicKeyError(publicKey, 'The public key provided has an invalid length');
}
else if (validation === exports.ValidationResult.NO_PREFIX_MATCHED) {
throw new InvalidPublicKeyError(publicKey, `The public key provided has an unsupported prefix: ${pkPrefix}`);
}
const publicKeyValidation = validatePublicKey(publicKey);
if (publicKeyValidation !== exports.ValidationResult.VALID) {
throw new core.InvalidPublicKeyError(publicKey, invalidErrorDetail(publicKeyValidation));
}

@@ -401,15 +205,7 @@ return pkPrefix;

const signaturePrefix = signature.startsWith('sig')
? signature.substr(0, 3)
: signature.substr(0, 5);
? signature.substring(0, 3)
: signature.substring(0, 5);
const validation = validateSignature(signature);
if (validation !== exports.ValidationResult.VALID) {
if (validation === exports.ValidationResult.INVALID_CHECKSUM) {
throw new InvalidSignatureError(signature, `invalid checksum`);
}
else if (validation === exports.ValidationResult.INVALID_LENGTH) {
throw new InvalidSignatureError(signature, 'invalid length');
}
else if (validation === exports.ValidationResult.NO_PREFIX_MATCHED) {
throw new InvalidSignatureError(signaturePrefix, 'unsupported prefix');
}
throw new core.InvalidSignatureError(signature, invalidErrorDetail(validation));
}

@@ -449,2 +245,30 @@ return signaturePrefix;

/**
* @category Error
* @description Error indicates invalid protocol hash being passed or used
*/
class InvalidProtocolHashError extends core.ParameterValidationError {
constructor(protocolHash, errorDetails) {
super();
this.protocolHash = protocolHash;
this.name = 'InvalidProtocolHashError';
this.name = 'InvalidProtocolHashError';
this.message = `The protocol hash '${protocolHash}' is invalid`;
errorDetails ? (this.message += `: ${errorDetails}`) : null;
}
}
/**
* @category Error
* @description Error indicates unable to convert data type from one to another
*/
class ValueConversionError extends core.UnsupportedActionError {
constructor(value, desiredType) {
super();
this.value = value;
this.desiredType = desiredType;
this.name = 'ValueConversionError';
this.message = `Unable to convert ${value} to a ${desiredType}`;
}
}
exports.ValidationResult = void 0;

@@ -508,2 +332,3 @@ (function (ValidationResult) {

const blockPrefix = [exports.Prefix.B];
const smartRollupPrefix = [exports.Prefix.SR1];
/**

@@ -525,3 +350,7 @@ * @description Used to check if an address or a contract address is valid.

function validateAddress(value) {
return validatePrefixedValue(value, [...implicitPrefix, ...contractPrefix]);
return validatePrefixedValue(value, [
...implicitPrefix,
...contractPrefix,
...smartRollupPrefix,
]);
}

@@ -680,7 +509,22 @@ /**

}
function invalidErrorDetail(validation) {
switch (validation) {
case exports.ValidationResult.NO_PREFIX_MATCHED:
return ': Invalid prefix';
case exports.ValidationResult.INVALID_CHECKSUM:
return ': Checksum failed';
case exports.ValidationResult.INVALID_LENGTH:
return ': Invalid length';
default:
return '';
}
}
function validateSmartRollupAddress(value) {
return validatePrefixedValue(value, [...smartRollupPrefix]);
}
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
const VERSION = {
"commitHash": "bcc2118ddfafc1995fd125cd74d198fda042bf48",
"version": "16.1.2"
"commitHash": "babcbaf464fd3571a3b88cf7023fefe87809d86d",
"version": "16.2.0-beta-RC.0"
};

@@ -866,2 +710,3 @@

* @param hex Hex string to convert
* @throws {@link ValueConversionError}
*/

@@ -1021,3 +866,3 @@ const hex2buf = (hex) => {

if (!hex.match(/[\da-f]{2}/gi)) {
throw new InvalidHexStringError(`The hex string ${hex} does not have an even number of characters`);
throw new core.InvalidHexStringError(hex, `: Expecting even number of characters`);
}

@@ -1079,17 +924,59 @@ return buffer.Buffer.from(hex, 'hex');

exports.DeprecationError = DeprecationError;
exports.InvalidAddressError = InvalidAddressError;
exports.InvalidBlockHashError = InvalidBlockHashError;
exports.InvalidChainIdError = InvalidChainIdError;
exports.InvalidContractAddressError = InvalidContractAddressError;
exports.InvalidHexStringError = InvalidHexStringError;
exports.InvalidKeyError = InvalidKeyError;
exports.InvalidKeyHashError = InvalidKeyHashError;
exports.InvalidMessageError = InvalidMessageError;
exports.InvalidOperationHashError = InvalidOperationHashError;
exports.InvalidOperationKindError = InvalidOperationKindError;
Object.defineProperty(exports, 'DeprecationError', {
enumerable: true,
get: function () { return core.DeprecationError; }
});
Object.defineProperty(exports, 'InvalidAddressError', {
enumerable: true,
get: function () { return core.InvalidAddressError; }
});
Object.defineProperty(exports, 'InvalidBlockHashError', {
enumerable: true,
get: function () { return core.InvalidBlockHashError; }
});
Object.defineProperty(exports, 'InvalidChainIdError', {
enumerable: true,
get: function () { return core.InvalidChainIdError; }
});
Object.defineProperty(exports, 'InvalidContractAddressError', {
enumerable: true,
get: function () { return core.InvalidContractAddressError; }
});
Object.defineProperty(exports, 'InvalidHexStringError', {
enumerable: true,
get: function () { return core.InvalidHexStringError; }
});
Object.defineProperty(exports, 'InvalidKeyError', {
enumerable: true,
get: function () { return core.InvalidKeyError; }
});
Object.defineProperty(exports, 'InvalidKeyHashError', {
enumerable: true,
get: function () { return core.InvalidKeyHashError; }
});
Object.defineProperty(exports, 'InvalidMessageError', {
enumerable: true,
get: function () { return core.InvalidMessageError; }
});
Object.defineProperty(exports, 'InvalidOperationHashError', {
enumerable: true,
get: function () { return core.InvalidOperationHashError; }
});
Object.defineProperty(exports, 'InvalidOperationKindError', {
enumerable: true,
get: function () { return core.InvalidOperationKindError; }
});
Object.defineProperty(exports, 'InvalidPublicKeyError', {
enumerable: true,
get: function () { return core.InvalidPublicKeyError; }
});
Object.defineProperty(exports, 'InvalidSignatureError', {
enumerable: true,
get: function () { return core.InvalidSignatureError; }
});
Object.defineProperty(exports, 'ProhibitedActionError', {
enumerable: true,
get: function () { return core.ProhibitedActionError; }
});
exports.InvalidProtocolHashError = InvalidProtocolHashError;
exports.InvalidPublicKeyError = InvalidPublicKeyError;
exports.InvalidSignatureError = InvalidSignatureError;
exports.ProhibitedActionError = ProhibitedActionError;
exports.VERSION = VERSION;

@@ -1114,2 +1001,3 @@ exports.ValueConversionError = ValueConversionError;

exports.hex2buf = hex2buf;
exports.invalidErrorDetail = invalidErrorDetail;
exports.isValidPrefix = isValidPrefix;

@@ -1133,2 +1021,3 @@ exports.mergebuf = mergebuf;

exports.validateSignature = validateSignature;
exports.validateSmartRollupAddress = validateSmartRollupAddress;
exports.validateSpendingKey = validateSpendingKey;

@@ -1135,0 +1024,0 @@ exports.verifySignature = verifySignature;

@@ -0,145 +1,20 @@

import { ParameterValidationError, UnsupportedActionError } from '@taquito/core';
export { InvalidAddressError, InvalidBlockHashError, InvalidHexStringError, InvalidMessageError, InvalidKeyError, InvalidPublicKeyError, InvalidSignatureError, InvalidContractAddressError, InvalidChainIdError, InvalidKeyHashError, InvalidOperationHashError, InvalidOperationKindError, DeprecationError, ProhibitedActionError, } from '@taquito/core';
/**
* @category Error
* @description Error that indicates an invalid key being passed or used
* @description Error indicates invalid protocol hash being passed or used
*/
export declare class InvalidKeyError extends Error {
key: string;
errorDetail?: string | undefined;
name: string;
constructor(key: string, errorDetail?: string | undefined);
}
/**
* @category Error
* @description Error that indicates an Invalid Public Key being passed or used
*/
export declare class InvalidPublicKeyError extends Error {
publicKey: string;
name: string;
constructor(publicKey: string, errorDetail?: string);
}
/**
* @category Error
* @description Error that indicates an invalid signature being passed or used
*/
export declare class InvalidSignatureError extends Error {
signature: string;
name: string;
constructor(signature: string, errorDetail?: string);
}
/**
* @category Error
* @description Error that indicates an invalid message being passed or used
*/
export declare class InvalidMessageError extends Error {
msg: string;
errorDetail?: string | undefined;
name: string;
constructor(msg: string, errorDetail?: string | undefined);
}
/**
* @category Error
* @description Error that indicates an invalid contract address being passed or used
*/
export declare class InvalidContractAddressError extends Error {
contractAddress: string;
name: string;
constructor(contractAddress: string);
}
/**
* @category Error
* @description Error that indicates an invalid address being passed or used (both contract and implicit)
*/
export declare class InvalidAddressError extends Error {
address: string;
name: string;
constructor(address: string, errorDetail?: string);
}
/**
* @category Error
* @description Error that indicates an invalid chain id being passed or used
*/
export declare class InvalidChainIdError extends Error {
chainId: string;
name: string;
constructor(chainId: string);
}
/**
* @category Error
* @description Error that indicates an invalid key hash being passed or used
*/
export declare class InvalidKeyHashError extends Error {
keyHash: string;
name: string;
constructor(keyHash: string);
}
/**
* @category Error
* @description Error that indicates an invalid block hash being passed or used
*/ export declare class InvalidBlockHashError extends Error {
blockHash: string;
name: string;
constructor(blockHash: string);
}
/**
* @category Error
* @description Error that indicates invalid protocol hash being passed or used
*/
export declare class InvalidProtocolHashError extends Error {
export declare class InvalidProtocolHashError extends ParameterValidationError {
protocolHash: string;
name: string;
constructor(protocolHash: string);
constructor(protocolHash: string, errorDetails?: string);
}
/**
* @category Error
* @description Error that indicates an invalid operation hash being passed or used
*/ export declare class InvalidOperationHashError extends Error {
operationHash: string;
name: string;
constructor(operationHash: string);
}
/**
* @category Error
* @description Error that indicates an invalid operation kind being passed or used
* @description Error indicates unable to convert data type from one to another
*/
export declare class InvalidOperationKindError extends Error {
operationKind: string;
name: string;
constructor(operationKind: string);
}
/**
* @category Error
* @description General error that indicates something is no longer supported and/or deprecated
*/
export declare class DeprecationError extends Error {
message: string;
name: string;
constructor(message: string);
}
/**
* @category Error
* @description General error that indicates an action is prohibited or not allowed
*/
export declare class ProhibitedActionError extends Error {
message: string;
name: string;
constructor(message: string);
}
/**
* @category Error
* @description General error that indicates a failure when trying to convert data from one type to another
*/
export declare class ValueConversionError extends Error {
export declare class ValueConversionError extends UnsupportedActionError {
value: string;
desiredType: string;
name: string;
constructor(value: string, desiredType: string);
}
/**
* @category Error
* @description Error that indicates an invalid hex string being passed or used
*/
export declare class InvalidHexStringError extends Error {
message: string;
name: string;
constructor(message: string);
}

@@ -90,2 +90,3 @@ /**

* @param hex Hex string to convert
* @throws {@link ValueConversionError}
*/

@@ -92,0 +93,0 @@ export declare const hex2buf: (hex: string) => Uint8Array;

@@ -159,1 +159,3 @@ import { Prefix } from './constants';

export declare function validateSpendingKey(value: any): ValidationResult;
export declare function invalidErrorDetail(validation: ValidationResult): string;
export declare function validateSmartRollupAddress(value: string): ValidationResult;

@@ -11,3 +11,3 @@ import { Prefix } from './taquito-utils';

* @returns A boolean indicating if the signature matches
*
* @throws {@link InvalidPublicKeyError} | {@link InvalidSignatureError} | {@link InvalidMessageError}
* @example

@@ -14,0 +14,0 @@ * ```

{
"name": "@taquito/utils",
"version": "16.1.2",
"version": "16.2.0-beta-RC.0",
"description": "converts michelson data and types into convenient JS/TS objects",

@@ -68,2 +68,3 @@ "keywords": [

"@stablelib/ed25519": "^1.0.3",
"@taquito/core": "^16.2.0-beta-RC.0",
"@types/bs58check": "^2.1.0",

@@ -106,3 +107,3 @@ "bignumber.js": "^9.1.0",

},
"gitHead": "f44e0fa20e017142543cf0ad49fc8220021f6d1c"
"gitHead": "a909a1e61a626eb5a2e9ad269a80a96aceff4e28"
}

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc