@taquito/core 19.2.1 → 20.0.0-RC.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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;
3
+ 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;
4
4
  // ==========================================================================================
5
5
  // parent error classes for Taquito
6
6
  // ==========================================================================================
@@ -71,6 +71,26 @@ class InvalidAddressError extends ParameterValidationError {
71
71
  }
72
72
  }
73
73
  exports.InvalidAddressError = InvalidAddressError;
74
+ class InvalidStakingAddressError extends ParameterValidationError {
75
+ constructor(address, errorDetail) {
76
+ super();
77
+ this.address = address;
78
+ this.errorDetail = errorDetail;
79
+ this.name = 'InvalidStakingAddressError';
80
+ this.message = `Invalid staking address "${address}", you can only set destination as your own address`;
81
+ }
82
+ }
83
+ exports.InvalidStakingAddressError = InvalidStakingAddressError;
84
+ class InvalidFinalizeUnstakeAmountError extends ParameterValidationError {
85
+ constructor(address, errorDetail) {
86
+ super();
87
+ this.address = address;
88
+ this.errorDetail = errorDetail;
89
+ this.name = 'InvalidFinalizeUnstakeAmountError';
90
+ this.message = `The amount can only be 0 when finalizing an unstake`;
91
+ }
92
+ }
93
+ exports.InvalidFinalizeUnstakeAmountError = InvalidFinalizeUnstakeAmountError;
74
94
  /**
75
95
  * @category Error
76
96
  * @description Error that indicates an invalid block hash being passed or used
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
5
5
  exports.VERSION = {
6
- "commitHash": "2e05f6f865be17a1b367b284542b24ffa9823271",
7
- "version": "19.2.1"
6
+ "commitHash": "3374a558006fdf94f6a51f86c64c2bfd970d619d",
7
+ "version": "20.0.0-RC.1"
8
8
  };
@@ -60,6 +60,24 @@ class InvalidAddressError extends ParameterValidationError {
60
60
  this.message += errorDetail ? ` ${errorDetail}.` : '.';
61
61
  }
62
62
  }
63
+ class InvalidStakingAddressError extends ParameterValidationError {
64
+ constructor(address, errorDetail) {
65
+ super();
66
+ this.address = address;
67
+ this.errorDetail = errorDetail;
68
+ this.name = 'InvalidStakingAddressError';
69
+ this.message = `Invalid staking address "${address}", you can only set destination as your own address`;
70
+ }
71
+ }
72
+ class InvalidFinalizeUnstakeAmountError extends ParameterValidationError {
73
+ constructor(address, errorDetail) {
74
+ super();
75
+ this.address = address;
76
+ this.errorDetail = errorDetail;
77
+ this.name = 'InvalidFinalizeUnstakeAmountError';
78
+ this.message = `The amount can only be 0 when finalizing an unstake`;
79
+ }
80
+ }
63
81
  /**
64
82
  * @category Error
65
83
  * @description Error that indicates an invalid block hash being passed or used
@@ -290,5 +308,5 @@ class PublicKeyNotFoundError extends TaquitoError {
290
308
  }
291
309
  }
292
310
 
293
- 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 };
311
+ 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 };
294
312
  //# sourceMappingURL=taquito-core.es6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-core.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-core.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -66,6 +66,24 @@
66
66
  this.message += errorDetail ? ` ${errorDetail}.` : '.';
67
67
  }
68
68
  }
69
+ class InvalidStakingAddressError extends ParameterValidationError {
70
+ constructor(address, errorDetail) {
71
+ super();
72
+ this.address = address;
73
+ this.errorDetail = errorDetail;
74
+ this.name = 'InvalidStakingAddressError';
75
+ this.message = `Invalid staking address "${address}", you can only set destination as your own address`;
76
+ }
77
+ }
78
+ class InvalidFinalizeUnstakeAmountError extends ParameterValidationError {
79
+ constructor(address, errorDetail) {
80
+ super();
81
+ this.address = address;
82
+ this.errorDetail = errorDetail;
83
+ this.name = 'InvalidFinalizeUnstakeAmountError';
84
+ this.message = `The amount can only be 0 when finalizing an unstake`;
85
+ }
86
+ }
69
87
  /**
70
88
  * @category Error
71
89
  * @description Error that indicates an invalid block hash being passed or used
@@ -303,6 +321,7 @@
303
321
  exports.InvalidChainIdError = InvalidChainIdError;
304
322
  exports.InvalidContractAddressError = InvalidContractAddressError;
305
323
  exports.InvalidDerivationPathError = InvalidDerivationPathError;
324
+ exports.InvalidFinalizeUnstakeAmountError = InvalidFinalizeUnstakeAmountError;
306
325
  exports.InvalidHexStringError = InvalidHexStringError;
307
326
  exports.InvalidKeyError = InvalidKeyError;
308
327
  exports.InvalidKeyHashError = InvalidKeyHashError;
@@ -311,6 +330,7 @@
311
330
  exports.InvalidOperationKindError = InvalidOperationKindError;
312
331
  exports.InvalidPublicKeyError = InvalidPublicKeyError;
313
332
  exports.InvalidSignatureError = InvalidSignatureError;
333
+ exports.InvalidStakingAddressError = InvalidStakingAddressError;
314
334
  exports.InvalidViewParameterError = InvalidViewParameterError;
315
335
  exports.NetworkError = NetworkError;
316
336
  exports.ParameterValidationError = ParameterValidationError;
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-core.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-core.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -49,6 +49,16 @@ export declare class InvalidAddressError extends ParameterValidationError {
49
49
  readonly errorDetail?: string | undefined;
50
50
  constructor(address: string, errorDetail?: string | undefined);
51
51
  }
52
+ export declare class InvalidStakingAddressError extends ParameterValidationError {
53
+ readonly address: string;
54
+ readonly errorDetail?: string | undefined;
55
+ constructor(address: string, errorDetail?: string | undefined);
56
+ }
57
+ export declare class InvalidFinalizeUnstakeAmountError extends ParameterValidationError {
58
+ readonly address: string;
59
+ readonly errorDetail?: string | undefined;
60
+ constructor(address: string, errorDetail?: string | undefined);
61
+ }
52
62
  /**
53
63
  * @category Error
54
64
  * @description Error that indicates an invalid block hash being passed or used
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/core",
3
- "version": "19.2.1",
3
+ "version": "20.0.0-RC.1",
4
4
  "description": "Classes, interfaces, and types shared across Taquito packages",
5
5
  "keywords": [
6
6
  "tezos",
@@ -67,5 +67,5 @@
67
67
  "rollup": "^4.1.4",
68
68
  "rollup-plugin-typescript2": "^0.36.0"
69
69
  },
70
- "gitHead": "3b9dbecb374ffd8136f494ae0817b2d1d530f8d9"
70
+ "gitHead": "410beab39d1745d4d8c00e92cddf3d1f143ee4bd"
71
71
  }