Socket
Socket
Sign inDemoInstall

@taquito/core

Package Overview
Dependencies
1
Maintainers
6
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 19.2.1-beta.0 to 20.0.0-beta.0

22

dist/lib/errors.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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;
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.InvalidFinalizeUnstakeAmountError = exports.InvalidStakingAddressError = exports.InvalidAddressError = exports.PermissionDeniedError = exports.NetworkError = exports.UnsupportedActionError = exports.TezosToolkitConfigError = exports.RpcError = exports.ParameterValidationError = exports.TaquitoError = void 0;
// ==========================================================================================

@@ -74,2 +74,22 @@ // parent error classes for Taquito

exports.InvalidAddressError = InvalidAddressError;
class InvalidStakingAddressError extends ParameterValidationError {
constructor(address, errorDetail) {
super();
this.address = address;
this.errorDetail = errorDetail;
this.name = 'InvalidStakingAddressError';
this.message = `Invalid staking address "${address}", you can only set destination as your own address`;
}
}
exports.InvalidStakingAddressError = InvalidStakingAddressError;
class InvalidFinalizeUnstakeAmountError extends ParameterValidationError {
constructor(address, errorDetail) {
super();
this.address = address;
this.errorDetail = errorDetail;
this.name = 'InvalidFinalizeUnstakeAmountError';
this.message = `The amount can only be 0 when finalizing an unstake`;
}
}
exports.InvalidFinalizeUnstakeAmountError = InvalidFinalizeUnstakeAmountError;
/**

@@ -76,0 +96,0 @@ * @category Error

4

dist/lib/version.js

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

exports.VERSION = {
"commitHash": "149f239050448e0dfb7d5e1ab98e578f61085d61",
"version": "19.2.1-beta.0"
"commitHash": "0ef631853ccfda5c5faed584f16069f34085817e",
"version": "20.0.0-beta.0"
};

@@ -63,2 +63,20 @@ // ==========================================================================================

}
class InvalidStakingAddressError extends ParameterValidationError {
constructor(address, errorDetail) {
super();
this.address = address;
this.errorDetail = errorDetail;
this.name = 'InvalidStakingAddressError';
this.message = `Invalid staking address "${address}", you can only set destination as your own address`;
}
}
class InvalidFinalizeUnstakeAmountError extends ParameterValidationError {
constructor(address, errorDetail) {
super();
this.address = address;
this.errorDetail = errorDetail;
this.name = 'InvalidFinalizeUnstakeAmountError';
this.message = `The amount can only be 0 when finalizing an unstake`;
}
}
/**

@@ -294,3 +312,3 @@ * @category Error

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

@@ -69,2 +69,20 @@ (function (global, factory) {

}
class InvalidStakingAddressError extends ParameterValidationError {
constructor(address, errorDetail) {
super();
this.address = address;
this.errorDetail = errorDetail;
this.name = 'InvalidStakingAddressError';
this.message = `Invalid staking address "${address}", you can only set destination as your own address`;
}
}
class InvalidFinalizeUnstakeAmountError extends ParameterValidationError {
constructor(address, errorDetail) {
super();
this.address = address;
this.errorDetail = errorDetail;
this.name = 'InvalidFinalizeUnstakeAmountError';
this.message = `The amount can only be 0 when finalizing an unstake`;
}
}
/**

@@ -307,2 +325,3 @@ * @category Error

exports.InvalidDerivationPathError = InvalidDerivationPathError;
exports.InvalidFinalizeUnstakeAmountError = InvalidFinalizeUnstakeAmountError;
exports.InvalidHexStringError = InvalidHexStringError;

@@ -316,2 +335,3 @@ exports.InvalidKeyError = InvalidKeyError;

exports.InvalidSignatureError = InvalidSignatureError;
exports.InvalidStakingAddressError = InvalidStakingAddressError;
exports.InvalidViewParameterError = InvalidViewParameterError;

@@ -318,0 +338,0 @@ exports.NetworkError = NetworkError;

@@ -52,2 +52,12 @@ /**

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

@@ -54,0 +64,0 @@ * @category Error

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

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

},
"gitHead": "5ca99ce640b7b450a3236babed4bfe0e77cb7368"
"gitHead": "88980709574468fad5e4e7d63d34e1d71accf550"
}

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