@taquito/core
Advanced tools
Comparing version 19.2.1 to 20.0.0-RC.0
"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 |
@@ -6,4 +6,4 @@ "use strict"; | ||
exports.VERSION = { | ||
"commitHash": "2e05f6f865be17a1b367b284542b24ffa9823271", | ||
"version": "19.2.1" | ||
"commitHash": "8e07853b62879d06b02ba80c84004fb591452edb", | ||
"version": "20.0.0-RC.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", | ||
"version": "20.0.0-RC.0", | ||
"description": "Classes, interfaces, and types shared across Taquito packages", | ||
@@ -70,3 +70,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "3b9dbecb374ffd8136f494ae0817b2d1d530f8d9" | ||
"gitHead": "35bba2dcede224a126fd82e28c441756a5b962e6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59853
1248
2