@taquito/core 17.1.1 → 17.2.0
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.
- package/dist/lib/errors.js +19 -19
- package/dist/lib/version.js +2 -2
- package/dist/taquito-core.es6.js +19 -19
- package/dist/taquito-core.es6.js.map +1 -1
- package/dist/taquito-core.umd.js +19 -19
- package/dist/taquito-core.umd.js.map +1 -1
- package/dist/types/errors.d.ts +19 -19
- package/package.json +2 -2
package/dist/lib/errors.js
CHANGED
|
@@ -13,7 +13,7 @@ class TaquitoError extends Error {
|
|
|
13
13
|
exports.TaquitoError = TaquitoError;
|
|
14
14
|
/**
|
|
15
15
|
* @category Error
|
|
16
|
-
* @description Error indicates invalid user inputs
|
|
16
|
+
* @description Error that indicates invalid user inputs
|
|
17
17
|
*/
|
|
18
18
|
class ParameterValidationError extends TaquitoError {
|
|
19
19
|
}
|
|
@@ -27,14 +27,14 @@ class RpcError extends TaquitoError {
|
|
|
27
27
|
exports.RpcError = RpcError;
|
|
28
28
|
/**
|
|
29
29
|
* @category Error
|
|
30
|
-
* @description Error indicates TezosToolKit has not been configured appropriately
|
|
30
|
+
* @description Error that indicates TezosToolKit has not been configured appropriately
|
|
31
31
|
*/
|
|
32
32
|
class TezosToolkitConfigError extends TaquitoError {
|
|
33
33
|
}
|
|
34
34
|
exports.TezosToolkitConfigError = TezosToolkitConfigError;
|
|
35
35
|
/**
|
|
36
36
|
* @category Error
|
|
37
|
-
* @description Error indicates a requested action is not supported by Taquito
|
|
37
|
+
* @description Error that indicates a requested action is not supported by Taquito
|
|
38
38
|
*/
|
|
39
39
|
class UnsupportedActionError extends TaquitoError {
|
|
40
40
|
}
|
|
@@ -48,7 +48,7 @@ class NetworkError extends TaquitoError {
|
|
|
48
48
|
exports.NetworkError = NetworkError;
|
|
49
49
|
/**
|
|
50
50
|
* @category Error
|
|
51
|
-
* @description Error indicates user attempts an action without necessary permissions
|
|
51
|
+
* @description Error that indicates user attempts an action without necessary permissions
|
|
52
52
|
*/
|
|
53
53
|
class PermissionDeniedError extends TaquitoError {
|
|
54
54
|
}
|
|
@@ -58,7 +58,7 @@ exports.PermissionDeniedError = PermissionDeniedError;
|
|
|
58
58
|
// ==========================================================================================
|
|
59
59
|
/**
|
|
60
60
|
* @category Error
|
|
61
|
-
* @description Error indicates an invalid originated or implicit address being passed or used
|
|
61
|
+
* @description Error that indicates an invalid originated or implicit address being passed or used
|
|
62
62
|
*/
|
|
63
63
|
class InvalidAddressError extends ParameterValidationError {
|
|
64
64
|
constructor(address, errorDetail) {
|
|
@@ -73,7 +73,7 @@ class InvalidAddressError extends ParameterValidationError {
|
|
|
73
73
|
exports.InvalidAddressError = InvalidAddressError;
|
|
74
74
|
/**
|
|
75
75
|
* @category Error
|
|
76
|
-
* @description Error indicates an invalid block hash being passed or used
|
|
76
|
+
* @description Error that indicates an invalid block hash being passed or used
|
|
77
77
|
*/
|
|
78
78
|
class InvalidBlockHashError extends ParameterValidationError {
|
|
79
79
|
constructor(blockHash, errorDetail) {
|
|
@@ -88,7 +88,7 @@ class InvalidBlockHashError extends ParameterValidationError {
|
|
|
88
88
|
exports.InvalidBlockHashError = InvalidBlockHashError;
|
|
89
89
|
/**
|
|
90
90
|
* @category Error
|
|
91
|
-
* @description Error indicates an invalid amount of tez being passed as a parameter
|
|
91
|
+
* @description Error that indicates an invalid amount of tez being passed as a parameter
|
|
92
92
|
*/
|
|
93
93
|
class InvalidAmountError extends ParameterValidationError {
|
|
94
94
|
constructor(amount) {
|
|
@@ -101,7 +101,7 @@ class InvalidAmountError extends ParameterValidationError {
|
|
|
101
101
|
exports.InvalidAmountError = InvalidAmountError;
|
|
102
102
|
/**
|
|
103
103
|
* @category Error
|
|
104
|
-
* @description Error indicates an invalid derivation path being passed or used
|
|
104
|
+
* @description Error that indicates an invalid derivation path being passed or used
|
|
105
105
|
*/
|
|
106
106
|
class InvalidDerivationPathError extends ParameterValidationError {
|
|
107
107
|
constructor(derivationPath, errorDetail) {
|
|
@@ -116,7 +116,7 @@ class InvalidDerivationPathError extends ParameterValidationError {
|
|
|
116
116
|
exports.InvalidDerivationPathError = InvalidDerivationPathError;
|
|
117
117
|
/**
|
|
118
118
|
* @category Error
|
|
119
|
-
* @description Error indicates an invalid hex string have been passed or used
|
|
119
|
+
* @description Error that indicates an invalid hex string have been passed or used
|
|
120
120
|
*/
|
|
121
121
|
class InvalidHexStringError extends ParameterValidationError {
|
|
122
122
|
constructor(hexString, errorDetail) {
|
|
@@ -146,7 +146,7 @@ class InvalidMessageError extends ParameterValidationError {
|
|
|
146
146
|
exports.InvalidMessageError = InvalidMessageError;
|
|
147
147
|
/**
|
|
148
148
|
* @category Error
|
|
149
|
-
* @description Error indicates invalid view parameter of a smart contract
|
|
149
|
+
* @description Error that indicates invalid view parameter of a smart contract
|
|
150
150
|
*/
|
|
151
151
|
class InvalidViewParameterError extends ParameterValidationError {
|
|
152
152
|
constructor(viewName, sigs, args, cause) {
|
|
@@ -162,7 +162,7 @@ class InvalidViewParameterError extends ParameterValidationError {
|
|
|
162
162
|
exports.InvalidViewParameterError = InvalidViewParameterError;
|
|
163
163
|
/**
|
|
164
164
|
* @category Error
|
|
165
|
-
* @description Error indicates an invalid private key being passed or used
|
|
165
|
+
* @description Error that indicates an invalid private key being passed or used
|
|
166
166
|
*/
|
|
167
167
|
class InvalidKeyError extends ParameterValidationError {
|
|
168
168
|
constructor(errorDetail) {
|
|
@@ -176,7 +176,7 @@ class InvalidKeyError extends ParameterValidationError {
|
|
|
176
176
|
exports.InvalidKeyError = InvalidKeyError;
|
|
177
177
|
/**
|
|
178
178
|
* @category Error
|
|
179
|
-
* @description Error indicates an Invalid Public Key being passed or used
|
|
179
|
+
* @description Error that indicates an Invalid Public Key being passed or used
|
|
180
180
|
*/
|
|
181
181
|
class InvalidPublicKeyError extends ParameterValidationError {
|
|
182
182
|
constructor(publicKey, errorDetail) {
|
|
@@ -191,7 +191,7 @@ class InvalidPublicKeyError extends ParameterValidationError {
|
|
|
191
191
|
exports.InvalidPublicKeyError = InvalidPublicKeyError;
|
|
192
192
|
/**
|
|
193
193
|
* @category Error
|
|
194
|
-
* @description Error indicates an invalid signature being passed or used
|
|
194
|
+
* @description Error that indicates an invalid signature being passed or used
|
|
195
195
|
*/
|
|
196
196
|
class InvalidSignatureError extends ParameterValidationError {
|
|
197
197
|
constructor(signature, errorDetail) {
|
|
@@ -206,7 +206,7 @@ class InvalidSignatureError extends ParameterValidationError {
|
|
|
206
206
|
exports.InvalidSignatureError = InvalidSignatureError;
|
|
207
207
|
/**
|
|
208
208
|
* @category Error
|
|
209
|
-
* @description Error indicates an invalid contract address being passed or used
|
|
209
|
+
* @description Error that indicates an invalid contract address being passed or used
|
|
210
210
|
*/
|
|
211
211
|
class InvalidContractAddressError extends ParameterValidationError {
|
|
212
212
|
constructor(contractAddress, errorDetail) {
|
|
@@ -221,7 +221,7 @@ class InvalidContractAddressError extends ParameterValidationError {
|
|
|
221
221
|
exports.InvalidContractAddressError = InvalidContractAddressError;
|
|
222
222
|
/**
|
|
223
223
|
* @category Error
|
|
224
|
-
* @description Error indicates an invalid chain id being passed or used
|
|
224
|
+
* @description Error that indicates an invalid chain id being passed or used
|
|
225
225
|
*/
|
|
226
226
|
class InvalidChainIdError extends ParameterValidationError {
|
|
227
227
|
constructor(chainId, errorDetail) {
|
|
@@ -236,7 +236,7 @@ class InvalidChainIdError extends ParameterValidationError {
|
|
|
236
236
|
exports.InvalidChainIdError = InvalidChainIdError;
|
|
237
237
|
/**
|
|
238
238
|
* @category Error
|
|
239
|
-
* @description Error indicates an invalid public key hash being passed or used
|
|
239
|
+
* @description Error that indicates an invalid public key hash being passed or used
|
|
240
240
|
*/
|
|
241
241
|
class InvalidKeyHashError extends ParameterValidationError {
|
|
242
242
|
constructor(keyHash, errorDetail) {
|
|
@@ -251,7 +251,7 @@ class InvalidKeyHashError extends ParameterValidationError {
|
|
|
251
251
|
exports.InvalidKeyHashError = InvalidKeyHashError;
|
|
252
252
|
/**
|
|
253
253
|
* @category Error
|
|
254
|
-
* @description Error indicates an invalid operation hash being passed or used
|
|
254
|
+
* @description Error that indicates an invalid operation hash being passed or used
|
|
255
255
|
*/
|
|
256
256
|
class InvalidOperationHashError extends ParameterValidationError {
|
|
257
257
|
constructor(operationHash, errorDetail) {
|
|
@@ -266,7 +266,7 @@ class InvalidOperationHashError extends ParameterValidationError {
|
|
|
266
266
|
exports.InvalidOperationHashError = InvalidOperationHashError;
|
|
267
267
|
/**
|
|
268
268
|
* @category Error
|
|
269
|
-
* @description Error indicates an invalid operation kind being passed or used
|
|
269
|
+
* @description Error that indicates an invalid operation kind being passed or used
|
|
270
270
|
*/
|
|
271
271
|
class InvalidOperationKindError extends ParameterValidationError {
|
|
272
272
|
constructor(operationKind, errorDetail) {
|
|
@@ -305,7 +305,7 @@ class ProhibitedActionError extends UnsupportedActionError {
|
|
|
305
305
|
exports.ProhibitedActionError = ProhibitedActionError;
|
|
306
306
|
/**
|
|
307
307
|
* @category Error
|
|
308
|
-
* @description Error indicates a failure in grabbing the public key
|
|
308
|
+
* @description Error that indicates a failure in grabbing the public key
|
|
309
309
|
*/
|
|
310
310
|
class PublicKeyNotFoundError extends TaquitoError {
|
|
311
311
|
constructor(pkh, cause) {
|
package/dist/lib/version.js
CHANGED
|
@@ -3,7 +3,7 @@ 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": "
|
|
7
|
-
"version": "17.
|
|
6
|
+
"commitHash": "b85fc404e34545a518215e449b3f1253f4520eec",
|
|
7
|
+
"version": "17.2.0"
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
package/dist/taquito-core.es6.js
CHANGED
|
@@ -9,7 +9,7 @@ class TaquitoError extends Error {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* @category Error
|
|
12
|
-
* @description Error indicates invalid user inputs
|
|
12
|
+
* @description Error that indicates invalid user inputs
|
|
13
13
|
*/
|
|
14
14
|
class ParameterValidationError extends TaquitoError {
|
|
15
15
|
}
|
|
@@ -21,13 +21,13 @@ class RpcError extends TaquitoError {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @category Error
|
|
24
|
-
* @description Error indicates TezosToolKit has not been configured appropriately
|
|
24
|
+
* @description Error that indicates TezosToolKit has not been configured appropriately
|
|
25
25
|
*/
|
|
26
26
|
class TezosToolkitConfigError extends TaquitoError {
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* @category Error
|
|
30
|
-
* @description Error indicates a requested action is not supported by Taquito
|
|
30
|
+
* @description Error that indicates a requested action is not supported by Taquito
|
|
31
31
|
*/
|
|
32
32
|
class UnsupportedActionError extends TaquitoError {
|
|
33
33
|
}
|
|
@@ -39,7 +39,7 @@ class NetworkError extends TaquitoError {
|
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* @category Error
|
|
42
|
-
* @description Error indicates user attempts an action without necessary permissions
|
|
42
|
+
* @description Error that indicates user attempts an action without necessary permissions
|
|
43
43
|
*/
|
|
44
44
|
class PermissionDeniedError extends TaquitoError {
|
|
45
45
|
}
|
|
@@ -48,7 +48,7 @@ class PermissionDeniedError extends TaquitoError {
|
|
|
48
48
|
// ==========================================================================================
|
|
49
49
|
/**
|
|
50
50
|
* @category Error
|
|
51
|
-
* @description Error indicates an invalid originated or implicit address being passed or used
|
|
51
|
+
* @description Error that indicates an invalid originated or implicit address being passed or used
|
|
52
52
|
*/
|
|
53
53
|
class InvalidAddressError extends ParameterValidationError {
|
|
54
54
|
constructor(address, errorDetail) {
|
|
@@ -62,7 +62,7 @@ class InvalidAddressError extends ParameterValidationError {
|
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* @category Error
|
|
65
|
-
* @description Error indicates an invalid block hash being passed or used
|
|
65
|
+
* @description Error that indicates an invalid block hash being passed or used
|
|
66
66
|
*/
|
|
67
67
|
class InvalidBlockHashError extends ParameterValidationError {
|
|
68
68
|
constructor(blockHash, errorDetail) {
|
|
@@ -76,7 +76,7 @@ class InvalidBlockHashError extends ParameterValidationError {
|
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* @category Error
|
|
79
|
-
* @description Error indicates an invalid amount of tez being passed as a parameter
|
|
79
|
+
* @description Error that indicates an invalid amount of tez being passed as a parameter
|
|
80
80
|
*/
|
|
81
81
|
class InvalidAmountError extends ParameterValidationError {
|
|
82
82
|
constructor(amount) {
|
|
@@ -88,7 +88,7 @@ class InvalidAmountError extends ParameterValidationError {
|
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* @category Error
|
|
91
|
-
* @description Error indicates an invalid derivation path being passed or used
|
|
91
|
+
* @description Error that indicates an invalid derivation path being passed or used
|
|
92
92
|
*/
|
|
93
93
|
class InvalidDerivationPathError extends ParameterValidationError {
|
|
94
94
|
constructor(derivationPath, errorDetail) {
|
|
@@ -102,7 +102,7 @@ class InvalidDerivationPathError extends ParameterValidationError {
|
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* @category Error
|
|
105
|
-
* @description Error indicates an invalid hex string have been passed or used
|
|
105
|
+
* @description Error that indicates an invalid hex string have been passed or used
|
|
106
106
|
*/
|
|
107
107
|
class InvalidHexStringError extends ParameterValidationError {
|
|
108
108
|
constructor(hexString, errorDetail) {
|
|
@@ -130,7 +130,7 @@ class InvalidMessageError extends ParameterValidationError {
|
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* @category Error
|
|
133
|
-
* @description Error indicates invalid view parameter of a smart contract
|
|
133
|
+
* @description Error that indicates invalid view parameter of a smart contract
|
|
134
134
|
*/
|
|
135
135
|
class InvalidViewParameterError extends ParameterValidationError {
|
|
136
136
|
constructor(viewName, sigs, args, cause) {
|
|
@@ -145,7 +145,7 @@ class InvalidViewParameterError extends ParameterValidationError {
|
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
147
|
* @category Error
|
|
148
|
-
* @description Error indicates an invalid private key being passed or used
|
|
148
|
+
* @description Error that indicates an invalid private key being passed or used
|
|
149
149
|
*/
|
|
150
150
|
class InvalidKeyError extends ParameterValidationError {
|
|
151
151
|
constructor(errorDetail) {
|
|
@@ -158,7 +158,7 @@ class InvalidKeyError extends ParameterValidationError {
|
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
160
|
* @category Error
|
|
161
|
-
* @description Error indicates an Invalid Public Key being passed or used
|
|
161
|
+
* @description Error that indicates an Invalid Public Key being passed or used
|
|
162
162
|
*/
|
|
163
163
|
class InvalidPublicKeyError extends ParameterValidationError {
|
|
164
164
|
constructor(publicKey, errorDetail) {
|
|
@@ -172,7 +172,7 @@ class InvalidPublicKeyError extends ParameterValidationError {
|
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
174
|
* @category Error
|
|
175
|
-
* @description Error indicates an invalid signature being passed or used
|
|
175
|
+
* @description Error that indicates an invalid signature being passed or used
|
|
176
176
|
*/
|
|
177
177
|
class InvalidSignatureError extends ParameterValidationError {
|
|
178
178
|
constructor(signature, errorDetail) {
|
|
@@ -186,7 +186,7 @@ class InvalidSignatureError extends ParameterValidationError {
|
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
188
|
* @category Error
|
|
189
|
-
* @description Error indicates an invalid contract address being passed or used
|
|
189
|
+
* @description Error that indicates an invalid contract address being passed or used
|
|
190
190
|
*/
|
|
191
191
|
class InvalidContractAddressError extends ParameterValidationError {
|
|
192
192
|
constructor(contractAddress, errorDetail) {
|
|
@@ -200,7 +200,7 @@ class InvalidContractAddressError extends ParameterValidationError {
|
|
|
200
200
|
}
|
|
201
201
|
/**
|
|
202
202
|
* @category Error
|
|
203
|
-
* @description Error indicates an invalid chain id being passed or used
|
|
203
|
+
* @description Error that indicates an invalid chain id being passed or used
|
|
204
204
|
*/
|
|
205
205
|
class InvalidChainIdError extends ParameterValidationError {
|
|
206
206
|
constructor(chainId, errorDetail) {
|
|
@@ -214,7 +214,7 @@ class InvalidChainIdError extends ParameterValidationError {
|
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* @category Error
|
|
217
|
-
* @description Error indicates an invalid public key hash being passed or used
|
|
217
|
+
* @description Error that indicates an invalid public key hash being passed or used
|
|
218
218
|
*/
|
|
219
219
|
class InvalidKeyHashError extends ParameterValidationError {
|
|
220
220
|
constructor(keyHash, errorDetail) {
|
|
@@ -228,7 +228,7 @@ class InvalidKeyHashError extends ParameterValidationError {
|
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
230
|
* @category Error
|
|
231
|
-
* @description Error indicates an invalid operation hash being passed or used
|
|
231
|
+
* @description Error that indicates an invalid operation hash being passed or used
|
|
232
232
|
*/
|
|
233
233
|
class InvalidOperationHashError extends ParameterValidationError {
|
|
234
234
|
constructor(operationHash, errorDetail) {
|
|
@@ -242,7 +242,7 @@ class InvalidOperationHashError extends ParameterValidationError {
|
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
244
|
* @category Error
|
|
245
|
-
* @description Error indicates an invalid operation kind being passed or used
|
|
245
|
+
* @description Error that indicates an invalid operation kind being passed or used
|
|
246
246
|
*/
|
|
247
247
|
class InvalidOperationKindError extends ParameterValidationError {
|
|
248
248
|
constructor(operationKind, errorDetail) {
|
|
@@ -278,7 +278,7 @@ class ProhibitedActionError extends UnsupportedActionError {
|
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
280
|
* @category Error
|
|
281
|
-
* @description Error indicates a failure in grabbing the public key
|
|
281
|
+
* @description Error that indicates a failure in grabbing the public key
|
|
282
282
|
*/
|
|
283
283
|
class PublicKeyNotFoundError extends TaquitoError {
|
|
284
284
|
constructor(pkh, cause) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-core.es6.js","sources":["../src/errors.ts"],"sourcesContent":["// ==========================================================================================\n// parent error classes for Taquito\n// ==========================================================================================\n/**\n * @category Error\n * @description Parent error class all taquito errors to extend from\n */\nexport class TaquitoError extends Error {}\n\n/**\n * @category Error\n * @description Error indicates invalid user inputs\n */\nexport class ParameterValidationError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error returned by RPC node\n */\nexport class RpcError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error indicates TezosToolKit has not been configured appropriately\n */\nexport class TezosToolkitConfigError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error indicates a requested action is not supported by Taquito\n */\nexport class UnsupportedActionError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error during a network operation\n */\nexport class NetworkError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error indicates user attempts an action without necessary permissions\n */\nexport class PermissionDeniedError extends TaquitoError {}\n\n// ==========================================================================================\n// common error classes for Taquito\n// ==========================================================================================\n/**\n * @category Error\n * @description Error indicates an invalid originated or implicit address being passed or used\n */\nexport class InvalidAddressError extends ParameterValidationError {\n constructor(public readonly address: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidAddressError';\n this.message = `Invalid address \"${address}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid block hash being passed or used\n */\nexport class InvalidBlockHashError extends ParameterValidationError {\n constructor(public readonly blockHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidBlockHashError';\n this.message = `Invalid block hash \"${blockHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid amount of tez being passed as a parameter\n */\nexport class InvalidAmountError extends ParameterValidationError {\n constructor(public readonly amount: string) {\n super();\n this.name = 'InvalidAmountError';\n this.message = `Invalid amount \"${amount}\"`;\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid derivation path being passed or used\n */\nexport class InvalidDerivationPathError extends ParameterValidationError {\n constructor(public readonly derivationPath: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidDerivationPathError';\n this.message = `Invalid derivation path \"${derivationPath}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid hex string have been passed or used\n */\nexport class InvalidHexStringError extends ParameterValidationError {\n constructor(public readonly hexString: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidHexStringError';\n this.message = `Invalid hex string \"${hexString}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid message being passed or used\n */\nexport class InvalidMessageError extends ParameterValidationError {\n constructor(public readonly msg: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidMessageError';\n this.message = `Invalid message \"${msg}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates invalid view parameter of a smart contract\n */\nexport class InvalidViewParameterError extends ParameterValidationError {\n constructor(\n public readonly viewName: string,\n public readonly sigs: any,\n public readonly args: any,\n public readonly cause?: any\n ) {\n super();\n this.name = 'InvalidViewParameterError';\n this.message = `Invalid view arguments ${JSON.stringify(\n args\n )} received for name \"${viewName}\" expecting one of the following signatures ${JSON.stringify(\n sigs\n )}.`;\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid private key being passed or used\n */\nexport class InvalidKeyError extends ParameterValidationError {\n constructor(public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidKeyError';\n this.message = `Invalid private key`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an Invalid Public Key being passed or used\n */\nexport class InvalidPublicKeyError extends ParameterValidationError {\n constructor(public readonly publicKey: string, readonly errorDetail?: string) {\n super();\n this.name = 'InvalidPublicKeyError';\n this.message = `Invalid public key \"${publicKey}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid signature being passed or used\n */\nexport class InvalidSignatureError extends ParameterValidationError {\n constructor(public readonly signature: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidSignatureError';\n this.message = `Invalid signature \"${signature}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid contract address being passed or used\n */\nexport class InvalidContractAddressError extends ParameterValidationError {\n constructor(public readonly contractAddress: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidContractAddressError';\n this.message = `Invalid contract address \"${contractAddress}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid chain id being passed or used\n */\nexport class InvalidChainIdError extends ParameterValidationError {\n constructor(public readonly chainId: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidChainIdError';\n this.message = `Invalid chain id \"${chainId}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid public key hash being passed or used\n */\nexport class InvalidKeyHashError extends ParameterValidationError {\n constructor(public readonly keyHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidKeyHashError';\n this.message = `Invalid public key hash \"${keyHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid operation hash being passed or used\n */\nexport class InvalidOperationHashError extends ParameterValidationError {\n constructor(public readonly operationHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidOperationHashError';\n this.message = `Invalid operation hash \"${operationHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid operation kind being passed or used\n */\nexport class InvalidOperationKindError extends ParameterValidationError {\n constructor(public readonly operationKind: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidOperationKindError';\n this.message = `Invalid operation kind \"${operationKind}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description General error that indicates something is no longer supported and/or deprecated\n */\nexport class DeprecationError extends UnsupportedActionError {\n constructor(public readonly message: string) {\n super();\n this.name = 'DeprecationError';\n }\n}\n\n/**\n * @category Error\n * @description General error that indicates an action is prohibited or not allowed\n */\nexport class ProhibitedActionError extends UnsupportedActionError {\n constructor(public readonly message: string) {\n super();\n this.name = 'ProhibitedActionError';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates a failure in grabbing the public key\n */\nexport class PublicKeyNotFoundError extends TaquitoError {\n constructor(public readonly pkh: string, public readonly cause?: any) {\n super();\n this.name = 'PublicKeyNotFoundError';\n this.message = `Public key not found of this address \"${pkh}\" in either wallet or contract API.`;\n }\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;;;AAGG;AACG,MAAO,YAAa,SAAQ,KAAK,CAAA;AAAG,CAAA;AAE1C;;;AAGG;AACG,MAAO,wBAAyB,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE7D;;;AAGG;AACG,MAAO,QAAS,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE7C;;;AAGG;AACG,MAAO,uBAAwB,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE5D;;;AAGG;AACG,MAAO,sBAAuB,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE3D;;;AAGG;AACG,MAAO,YAAa,SAAQ,YAAY,CAAA;AAAG,CAAA;AAEjD;;;AAGG;AACG,MAAO,qBAAsB,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE1D;AACA;AACA;AACA;;;AAGG;AACG,MAAO,mBAAoB,SAAQ,wBAAwB,CAAA;IAC/D,WAA4B,CAAA,OAAe,EAAkB,WAAoB,EAAA;AAC/E,QAAA,KAAK,EAAE,CAAC;QADkB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;QAAkB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAS;AAE/E,QAAA,IAAI,CAAC,IAAI,GAAG,qBAA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C;AACrC,QAAA,IAAI,CAAC,OAAO,GAAG,CAAyC,sCAAA,EAAA,GAAG,qCAAqC,CAAC;KAClG;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"taquito-core.es6.js","sources":["../src/errors.ts"],"sourcesContent":["// ==========================================================================================\n// parent error classes for Taquito\n// ==========================================================================================\n/**\n * @category Error\n * @description Parent error class all taquito errors to extend from\n */\nexport class TaquitoError extends Error {}\n\n/**\n * @category Error\n * @description Error that indicates invalid user inputs\n */\nexport class ParameterValidationError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error returned by RPC node\n */\nexport class RpcError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error that indicates TezosToolKit has not been configured appropriately\n */\nexport class TezosToolkitConfigError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error that indicates a requested action is not supported by Taquito\n */\nexport class UnsupportedActionError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error during a network operation\n */\nexport class NetworkError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error that indicates user attempts an action without necessary permissions\n */\nexport class PermissionDeniedError extends TaquitoError {}\n\n// ==========================================================================================\n// common error classes for Taquito\n// ==========================================================================================\n/**\n * @category Error\n * @description Error that indicates an invalid originated or implicit address being passed or used\n */\nexport class InvalidAddressError extends ParameterValidationError {\n constructor(public readonly address: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidAddressError';\n this.message = `Invalid address \"${address}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid block hash being passed or used\n */\nexport class InvalidBlockHashError extends ParameterValidationError {\n constructor(public readonly blockHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidBlockHashError';\n this.message = `Invalid block hash \"${blockHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid amount of tez being passed as a parameter\n */\nexport class InvalidAmountError extends ParameterValidationError {\n constructor(public readonly amount: string) {\n super();\n this.name = 'InvalidAmountError';\n this.message = `Invalid amount \"${amount}\"`;\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid derivation path being passed or used\n */\nexport class InvalidDerivationPathError extends ParameterValidationError {\n constructor(public readonly derivationPath: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidDerivationPathError';\n this.message = `Invalid derivation path \"${derivationPath}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid hex string have been passed or used\n */\nexport class InvalidHexStringError extends ParameterValidationError {\n constructor(public readonly hexString: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidHexStringError';\n this.message = `Invalid hex string \"${hexString}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid message being passed or used\n */\nexport class InvalidMessageError extends ParameterValidationError {\n constructor(public readonly msg: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidMessageError';\n this.message = `Invalid message \"${msg}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates invalid view parameter of a smart contract\n */\nexport class InvalidViewParameterError extends ParameterValidationError {\n constructor(\n public readonly viewName: string,\n public readonly sigs: any,\n public readonly args: any,\n public readonly cause?: any\n ) {\n super();\n this.name = 'InvalidViewParameterError';\n this.message = `Invalid view arguments ${JSON.stringify(\n args\n )} received for name \"${viewName}\" expecting one of the following signatures ${JSON.stringify(\n sigs\n )}.`;\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid private key being passed or used\n */\nexport class InvalidKeyError extends ParameterValidationError {\n constructor(public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidKeyError';\n this.message = `Invalid private key`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an Invalid Public Key being passed or used\n */\nexport class InvalidPublicKeyError extends ParameterValidationError {\n constructor(public readonly publicKey: string, readonly errorDetail?: string) {\n super();\n this.name = 'InvalidPublicKeyError';\n this.message = `Invalid public key \"${publicKey}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid signature being passed or used\n */\nexport class InvalidSignatureError extends ParameterValidationError {\n constructor(public readonly signature: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidSignatureError';\n this.message = `Invalid signature \"${signature}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid contract address being passed or used\n */\nexport class InvalidContractAddressError extends ParameterValidationError {\n constructor(public readonly contractAddress: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidContractAddressError';\n this.message = `Invalid contract address \"${contractAddress}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid chain id being passed or used\n */\nexport class InvalidChainIdError extends ParameterValidationError {\n constructor(public readonly chainId: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidChainIdError';\n this.message = `Invalid chain id \"${chainId}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid public key hash being passed or used\n */\nexport class InvalidKeyHashError extends ParameterValidationError {\n constructor(public readonly keyHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidKeyHashError';\n this.message = `Invalid public key hash \"${keyHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid operation hash being passed or used\n */\nexport class InvalidOperationHashError extends ParameterValidationError {\n constructor(public readonly operationHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidOperationHashError';\n this.message = `Invalid operation hash \"${operationHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid operation kind being passed or used\n */\nexport class InvalidOperationKindError extends ParameterValidationError {\n constructor(public readonly operationKind: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidOperationKindError';\n this.message = `Invalid operation kind \"${operationKind}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description General error that indicates something is no longer supported and/or deprecated\n */\nexport class DeprecationError extends UnsupportedActionError {\n constructor(public readonly message: string) {\n super();\n this.name = 'DeprecationError';\n }\n}\n\n/**\n * @category Error\n * @description General error that indicates an action is prohibited or not allowed\n */\nexport class ProhibitedActionError extends UnsupportedActionError {\n constructor(public readonly message: string) {\n super();\n this.name = 'ProhibitedActionError';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates a failure in grabbing the public key\n */\nexport class PublicKeyNotFoundError extends TaquitoError {\n constructor(public readonly pkh: string, public readonly cause?: any) {\n super();\n this.name = 'PublicKeyNotFoundError';\n this.message = `Public key not found of this address \"${pkh}\" in either wallet or contract API.`;\n }\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;;;AAGG;AACG,MAAO,YAAa,SAAQ,KAAK,CAAA;AAAG,CAAA;AAE1C;;;AAGG;AACG,MAAO,wBAAyB,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE7D;;;AAGG;AACG,MAAO,QAAS,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE7C;;;AAGG;AACG,MAAO,uBAAwB,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE5D;;;AAGG;AACG,MAAO,sBAAuB,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE3D;;;AAGG;AACG,MAAO,YAAa,SAAQ,YAAY,CAAA;AAAG,CAAA;AAEjD;;;AAGG;AACG,MAAO,qBAAsB,SAAQ,YAAY,CAAA;AAAG,CAAA;AAE1D;AACA;AACA;AACA;;;AAGG;AACG,MAAO,mBAAoB,SAAQ,wBAAwB,CAAA;IAC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WAA4B,CAAA,GAAW,EAAkB,KAAW,EAAA;AAClE,QAAA,KAAK,EAAE,CAAC;QADkB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAQ;QAAkB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAM;AAElE,QAAA,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;AACrC,QAAA,IAAI,CAAC,OAAO,GAAG,CAAyC,sCAAA,EAAA,GAAG,qCAAqC,CAAC;KAClG;AACF;;;;"}
|
package/dist/taquito-core.umd.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* @category Error
|
|
18
|
-
* @description Error indicates invalid user inputs
|
|
18
|
+
* @description Error that indicates invalid user inputs
|
|
19
19
|
*/
|
|
20
20
|
class ParameterValidationError extends TaquitoError {
|
|
21
21
|
}
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* @category Error
|
|
30
|
-
* @description Error indicates TezosToolKit has not been configured appropriately
|
|
30
|
+
* @description Error that indicates TezosToolKit has not been configured appropriately
|
|
31
31
|
*/
|
|
32
32
|
class TezosToolkitConfigError extends TaquitoError {
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* @category Error
|
|
36
|
-
* @description Error indicates a requested action is not supported by Taquito
|
|
36
|
+
* @description Error that indicates a requested action is not supported by Taquito
|
|
37
37
|
*/
|
|
38
38
|
class UnsupportedActionError extends TaquitoError {
|
|
39
39
|
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* @category Error
|
|
48
|
-
* @description Error indicates user attempts an action without necessary permissions
|
|
48
|
+
* @description Error that indicates user attempts an action without necessary permissions
|
|
49
49
|
*/
|
|
50
50
|
class PermissionDeniedError extends TaquitoError {
|
|
51
51
|
}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
// ==========================================================================================
|
|
55
55
|
/**
|
|
56
56
|
* @category Error
|
|
57
|
-
* @description Error indicates an invalid originated or implicit address being passed or used
|
|
57
|
+
* @description Error that indicates an invalid originated or implicit address being passed or used
|
|
58
58
|
*/
|
|
59
59
|
class InvalidAddressError extends ParameterValidationError {
|
|
60
60
|
constructor(address, errorDetail) {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* @category Error
|
|
71
|
-
* @description Error indicates an invalid block hash being passed or used
|
|
71
|
+
* @description Error that indicates an invalid block hash being passed or used
|
|
72
72
|
*/
|
|
73
73
|
class InvalidBlockHashError extends ParameterValidationError {
|
|
74
74
|
constructor(blockHash, errorDetail) {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* @category Error
|
|
85
|
-
* @description Error indicates an invalid amount of tez being passed as a parameter
|
|
85
|
+
* @description Error that indicates an invalid amount of tez being passed as a parameter
|
|
86
86
|
*/
|
|
87
87
|
class InvalidAmountError extends ParameterValidationError {
|
|
88
88
|
constructor(amount) {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* @category Error
|
|
97
|
-
* @description Error indicates an invalid derivation path being passed or used
|
|
97
|
+
* @description Error that indicates an invalid derivation path being passed or used
|
|
98
98
|
*/
|
|
99
99
|
class InvalidDerivationPathError extends ParameterValidationError {
|
|
100
100
|
constructor(derivationPath, errorDetail) {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* @category Error
|
|
111
|
-
* @description Error indicates an invalid hex string have been passed or used
|
|
111
|
+
* @description Error that indicates an invalid hex string have been passed or used
|
|
112
112
|
*/
|
|
113
113
|
class InvalidHexStringError extends ParameterValidationError {
|
|
114
114
|
constructor(hexString, errorDetail) {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* @category Error
|
|
139
|
-
* @description Error indicates invalid view parameter of a smart contract
|
|
139
|
+
* @description Error that indicates invalid view parameter of a smart contract
|
|
140
140
|
*/
|
|
141
141
|
class InvalidViewParameterError extends ParameterValidationError {
|
|
142
142
|
constructor(viewName, sigs, args, cause) {
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
153
|
* @category Error
|
|
154
|
-
* @description Error indicates an invalid private key being passed or used
|
|
154
|
+
* @description Error that indicates an invalid private key being passed or used
|
|
155
155
|
*/
|
|
156
156
|
class InvalidKeyError extends ParameterValidationError {
|
|
157
157
|
constructor(errorDetail) {
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* @category Error
|
|
167
|
-
* @description Error indicates an Invalid Public Key being passed or used
|
|
167
|
+
* @description Error that indicates an Invalid Public Key being passed or used
|
|
168
168
|
*/
|
|
169
169
|
class InvalidPublicKeyError extends ParameterValidationError {
|
|
170
170
|
constructor(publicKey, errorDetail) {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
180
|
* @category Error
|
|
181
|
-
* @description Error indicates an invalid signature being passed or used
|
|
181
|
+
* @description Error that indicates an invalid signature being passed or used
|
|
182
182
|
*/
|
|
183
183
|
class InvalidSignatureError extends ParameterValidationError {
|
|
184
184
|
constructor(signature, errorDetail) {
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
194
|
* @category Error
|
|
195
|
-
* @description Error indicates an invalid contract address being passed or used
|
|
195
|
+
* @description Error that indicates an invalid contract address being passed or used
|
|
196
196
|
*/
|
|
197
197
|
class InvalidContractAddressError extends ParameterValidationError {
|
|
198
198
|
constructor(contractAddress, errorDetail) {
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
208
|
* @category Error
|
|
209
|
-
* @description Error indicates an invalid chain id being passed or used
|
|
209
|
+
* @description Error that indicates an invalid chain id being passed or used
|
|
210
210
|
*/
|
|
211
211
|
class InvalidChainIdError extends ParameterValidationError {
|
|
212
212
|
constructor(chainId, errorDetail) {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
222
|
* @category Error
|
|
223
|
-
* @description Error indicates an invalid public key hash being passed or used
|
|
223
|
+
* @description Error that indicates an invalid public key hash being passed or used
|
|
224
224
|
*/
|
|
225
225
|
class InvalidKeyHashError extends ParameterValidationError {
|
|
226
226
|
constructor(keyHash, errorDetail) {
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
236
|
* @category Error
|
|
237
|
-
* @description Error indicates an invalid operation hash being passed or used
|
|
237
|
+
* @description Error that indicates an invalid operation hash being passed or used
|
|
238
238
|
*/
|
|
239
239
|
class InvalidOperationHashError extends ParameterValidationError {
|
|
240
240
|
constructor(operationHash, errorDetail) {
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* @category Error
|
|
251
|
-
* @description Error indicates an invalid operation kind being passed or used
|
|
251
|
+
* @description Error that indicates an invalid operation kind being passed or used
|
|
252
252
|
*/
|
|
253
253
|
class InvalidOperationKindError extends ParameterValidationError {
|
|
254
254
|
constructor(operationKind, errorDetail) {
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
286
|
* @category Error
|
|
287
|
-
* @description Error indicates a failure in grabbing the public key
|
|
287
|
+
* @description Error that indicates a failure in grabbing the public key
|
|
288
288
|
*/
|
|
289
289
|
class PublicKeyNotFoundError extends TaquitoError {
|
|
290
290
|
constructor(pkh, cause) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-core.umd.js","sources":["../src/errors.ts"],"sourcesContent":["// ==========================================================================================\n// parent error classes for Taquito\n// ==========================================================================================\n/**\n * @category Error\n * @description Parent error class all taquito errors to extend from\n */\nexport class TaquitoError extends Error {}\n\n/**\n * @category Error\n * @description Error indicates invalid user inputs\n */\nexport class ParameterValidationError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error returned by RPC node\n */\nexport class RpcError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error indicates TezosToolKit has not been configured appropriately\n */\nexport class TezosToolkitConfigError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error indicates a requested action is not supported by Taquito\n */\nexport class UnsupportedActionError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error during a network operation\n */\nexport class NetworkError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error indicates user attempts an action without necessary permissions\n */\nexport class PermissionDeniedError extends TaquitoError {}\n\n// ==========================================================================================\n// common error classes for Taquito\n// ==========================================================================================\n/**\n * @category Error\n * @description Error indicates an invalid originated or implicit address being passed or used\n */\nexport class InvalidAddressError extends ParameterValidationError {\n constructor(public readonly address: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidAddressError';\n this.message = `Invalid address \"${address}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid block hash being passed or used\n */\nexport class InvalidBlockHashError extends ParameterValidationError {\n constructor(public readonly blockHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidBlockHashError';\n this.message = `Invalid block hash \"${blockHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid amount of tez being passed as a parameter\n */\nexport class InvalidAmountError extends ParameterValidationError {\n constructor(public readonly amount: string) {\n super();\n this.name = 'InvalidAmountError';\n this.message = `Invalid amount \"${amount}\"`;\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid derivation path being passed or used\n */\nexport class InvalidDerivationPathError extends ParameterValidationError {\n constructor(public readonly derivationPath: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidDerivationPathError';\n this.message = `Invalid derivation path \"${derivationPath}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid hex string have been passed or used\n */\nexport class InvalidHexStringError extends ParameterValidationError {\n constructor(public readonly hexString: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidHexStringError';\n this.message = `Invalid hex string \"${hexString}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid message being passed or used\n */\nexport class InvalidMessageError extends ParameterValidationError {\n constructor(public readonly msg: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidMessageError';\n this.message = `Invalid message \"${msg}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates invalid view parameter of a smart contract\n */\nexport class InvalidViewParameterError extends ParameterValidationError {\n constructor(\n public readonly viewName: string,\n public readonly sigs: any,\n public readonly args: any,\n public readonly cause?: any\n ) {\n super();\n this.name = 'InvalidViewParameterError';\n this.message = `Invalid view arguments ${JSON.stringify(\n args\n )} received for name \"${viewName}\" expecting one of the following signatures ${JSON.stringify(\n sigs\n )}.`;\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid private key being passed or used\n */\nexport class InvalidKeyError extends ParameterValidationError {\n constructor(public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidKeyError';\n this.message = `Invalid private key`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an Invalid Public Key being passed or used\n */\nexport class InvalidPublicKeyError extends ParameterValidationError {\n constructor(public readonly publicKey: string, readonly errorDetail?: string) {\n super();\n this.name = 'InvalidPublicKeyError';\n this.message = `Invalid public key \"${publicKey}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid signature being passed or used\n */\nexport class InvalidSignatureError extends ParameterValidationError {\n constructor(public readonly signature: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidSignatureError';\n this.message = `Invalid signature \"${signature}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid contract address being passed or used\n */\nexport class InvalidContractAddressError extends ParameterValidationError {\n constructor(public readonly contractAddress: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidContractAddressError';\n this.message = `Invalid contract address \"${contractAddress}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid chain id being passed or used\n */\nexport class InvalidChainIdError extends ParameterValidationError {\n constructor(public readonly chainId: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidChainIdError';\n this.message = `Invalid chain id \"${chainId}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid public key hash being passed or used\n */\nexport class InvalidKeyHashError extends ParameterValidationError {\n constructor(public readonly keyHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidKeyHashError';\n this.message = `Invalid public key hash \"${keyHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid operation hash being passed or used\n */\nexport class InvalidOperationHashError extends ParameterValidationError {\n constructor(public readonly operationHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidOperationHashError';\n this.message = `Invalid operation hash \"${operationHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates an invalid operation kind being passed or used\n */\nexport class InvalidOperationKindError extends ParameterValidationError {\n constructor(public readonly operationKind: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidOperationKindError';\n this.message = `Invalid operation kind \"${operationKind}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description General error that indicates something is no longer supported and/or deprecated\n */\nexport class DeprecationError extends UnsupportedActionError {\n constructor(public readonly message: string) {\n super();\n this.name = 'DeprecationError';\n }\n}\n\n/**\n * @category Error\n * @description General error that indicates an action is prohibited or not allowed\n */\nexport class ProhibitedActionError extends UnsupportedActionError {\n constructor(public readonly message: string) {\n super();\n this.name = 'ProhibitedActionError';\n }\n}\n\n/**\n * @category Error\n * @description Error indicates a failure in grabbing the public key\n */\nexport class PublicKeyNotFoundError extends TaquitoError {\n constructor(public readonly pkh: string, public readonly cause?: any) {\n super();\n this.name = 'PublicKeyNotFoundError';\n this.message = `Public key not found of this address \"${pkh}\" in either wallet or contract API.`;\n }\n}\n"],"names":[],"mappings":";;;;;;EAAA;EACA;EACA;EACA;;;EAGG;EACG,MAAO,YAAa,SAAQ,KAAK,CAAA;EAAG,CAAA;EAE1C;;;EAGG;EACG,MAAO,wBAAyB,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE7D;;;EAGG;EACG,MAAO,QAAS,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE7C;;;EAGG;EACG,MAAO,uBAAwB,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE5D;;;EAGG;EACG,MAAO,sBAAuB,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE3D;;;EAGG;EACG,MAAO,YAAa,SAAQ,YAAY,CAAA;EAAG,CAAA;EAEjD;;;EAGG;EACG,MAAO,qBAAsB,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE1D;EACA;EACA;EACA;;;EAGG;EACG,MAAO,mBAAoB,SAAQ,wBAAwB,CAAA;MAC/D,WAA4B,CAAA,OAAe,EAAkB,WAAoB,EAAA;EAC/E,QAAA,KAAK,EAAE,CAAC;UADkB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;UAAkB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAS;EAE/E,QAAA,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;EAClC,QAAA,IAAI,CAAC,OAAO,GAAG,CAAoB,i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AAA,GAAG,qCAAqC,CAAC;OAClG;EACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taquito-core.umd.js","sources":["../src/errors.ts"],"sourcesContent":["// ==========================================================================================\n// parent error classes for Taquito\n// ==========================================================================================\n/**\n * @category Error\n * @description Parent error class all taquito errors to extend from\n */\nexport class TaquitoError extends Error {}\n\n/**\n * @category Error\n * @description Error that indicates invalid user inputs\n */\nexport class ParameterValidationError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error returned by RPC node\n */\nexport class RpcError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error that indicates TezosToolKit has not been configured appropriately\n */\nexport class TezosToolkitConfigError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error that indicates a requested action is not supported by Taquito\n */\nexport class UnsupportedActionError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error during a network operation\n */\nexport class NetworkError extends TaquitoError {}\n\n/**\n * @category Error\n * @description Error that indicates user attempts an action without necessary permissions\n */\nexport class PermissionDeniedError extends TaquitoError {}\n\n// ==========================================================================================\n// common error classes for Taquito\n// ==========================================================================================\n/**\n * @category Error\n * @description Error that indicates an invalid originated or implicit address being passed or used\n */\nexport class InvalidAddressError extends ParameterValidationError {\n constructor(public readonly address: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidAddressError';\n this.message = `Invalid address \"${address}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid block hash being passed or used\n */\nexport class InvalidBlockHashError extends ParameterValidationError {\n constructor(public readonly blockHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidBlockHashError';\n this.message = `Invalid block hash \"${blockHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid amount of tez being passed as a parameter\n */\nexport class InvalidAmountError extends ParameterValidationError {\n constructor(public readonly amount: string) {\n super();\n this.name = 'InvalidAmountError';\n this.message = `Invalid amount \"${amount}\"`;\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid derivation path being passed or used\n */\nexport class InvalidDerivationPathError extends ParameterValidationError {\n constructor(public readonly derivationPath: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidDerivationPathError';\n this.message = `Invalid derivation path \"${derivationPath}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid hex string have been passed or used\n */\nexport class InvalidHexStringError extends ParameterValidationError {\n constructor(public readonly hexString: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidHexStringError';\n this.message = `Invalid hex string \"${hexString}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid message being passed or used\n */\nexport class InvalidMessageError extends ParameterValidationError {\n constructor(public readonly msg: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidMessageError';\n this.message = `Invalid message \"${msg}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates invalid view parameter of a smart contract\n */\nexport class InvalidViewParameterError extends ParameterValidationError {\n constructor(\n public readonly viewName: string,\n public readonly sigs: any,\n public readonly args: any,\n public readonly cause?: any\n ) {\n super();\n this.name = 'InvalidViewParameterError';\n this.message = `Invalid view arguments ${JSON.stringify(\n args\n )} received for name \"${viewName}\" expecting one of the following signatures ${JSON.stringify(\n sigs\n )}.`;\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid private key being passed or used\n */\nexport class InvalidKeyError extends ParameterValidationError {\n constructor(public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidKeyError';\n this.message = `Invalid private key`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an Invalid Public Key being passed or used\n */\nexport class InvalidPublicKeyError extends ParameterValidationError {\n constructor(public readonly publicKey: string, readonly errorDetail?: string) {\n super();\n this.name = 'InvalidPublicKeyError';\n this.message = `Invalid public key \"${publicKey}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid signature being passed or used\n */\nexport class InvalidSignatureError extends ParameterValidationError {\n constructor(public readonly signature: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidSignatureError';\n this.message = `Invalid signature \"${signature}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid contract address being passed or used\n */\nexport class InvalidContractAddressError extends ParameterValidationError {\n constructor(public readonly contractAddress: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidContractAddressError';\n this.message = `Invalid contract address \"${contractAddress}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid chain id being passed or used\n */\nexport class InvalidChainIdError extends ParameterValidationError {\n constructor(public readonly chainId: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidChainIdError';\n this.message = `Invalid chain id \"${chainId}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid public key hash being passed or used\n */\nexport class InvalidKeyHashError extends ParameterValidationError {\n constructor(public readonly keyHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidKeyHashError';\n this.message = `Invalid public key hash \"${keyHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid operation hash being passed or used\n */\nexport class InvalidOperationHashError extends ParameterValidationError {\n constructor(public readonly operationHash: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidOperationHashError';\n this.message = `Invalid operation hash \"${operationHash}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates an invalid operation kind being passed or used\n */\nexport class InvalidOperationKindError extends ParameterValidationError {\n constructor(public readonly operationKind: string, public readonly errorDetail?: string) {\n super();\n this.name = 'InvalidOperationKindError';\n this.message = `Invalid operation kind \"${operationKind}\"`;\n this.message += errorDetail ? ` ${errorDetail}.` : '.';\n }\n}\n\n/**\n * @category Error\n * @description General error that indicates something is no longer supported and/or deprecated\n */\nexport class DeprecationError extends UnsupportedActionError {\n constructor(public readonly message: string) {\n super();\n this.name = 'DeprecationError';\n }\n}\n\n/**\n * @category Error\n * @description General error that indicates an action is prohibited or not allowed\n */\nexport class ProhibitedActionError extends UnsupportedActionError {\n constructor(public readonly message: string) {\n super();\n this.name = 'ProhibitedActionError';\n }\n}\n\n/**\n * @category Error\n * @description Error that indicates a failure in grabbing the public key\n */\nexport class PublicKeyNotFoundError extends TaquitoError {\n constructor(public readonly pkh: string, public readonly cause?: any) {\n super();\n this.name = 'PublicKeyNotFoundError';\n this.message = `Public key not found of this address \"${pkh}\" in either wallet or contract API.`;\n }\n}\n"],"names":[],"mappings":";;;;;;EAAA;EACA;EACA;EACA;;;EAGG;EACG,MAAO,YAAa,SAAQ,KAAK,CAAA;EAAG,CAAA;EAE1C;;;EAGG;EACG,MAAO,wBAAyB,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE7D;;;EAGG;EACG,MAAO,QAAS,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE7C;;;EAGG;EACG,MAAO,uBAAwB,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE5D;;;EAGG;EACG,MAAO,sBAAuB,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE3D;;;EAGG;EACG,MAAO,YAAa,SAAQ,YAAY,CAAA;EAAG,CAAA;EAEjD;;;EAGG;EACG,MAAO,qBAAsB,SAAQ,YAAY,CAAA;EAAG,CAAA;EAE1D;EACA;EACA;EACA;;;EAGG;EACG,MAAO,mBAAoB,SAAQ,wBAAwB,CAAA;MAC/D,WAA4B,C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,GAAW,EAAkB,KAAW,EAAA;EAClE,QAAA,KAAK,EAAE,CAAC;UADkB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAQ;UAAkB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAM;EAElE,QAAA,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;EACrC,QAAA,IAAI,CAAC,OAAO,GAAG,CAAyC,sCAAA,EAAA,GAAG,qCAAqC,CAAC;OAClG;EACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/types/errors.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class TaquitoError extends Error {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* @category Error
|
|
9
|
-
* @description Error indicates invalid user inputs
|
|
9
|
+
* @description Error that indicates invalid user inputs
|
|
10
10
|
*/
|
|
11
11
|
export declare class ParameterValidationError extends TaquitoError {
|
|
12
12
|
}
|
|
@@ -18,13 +18,13 @@ export declare class RpcError extends TaquitoError {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* @category Error
|
|
21
|
-
* @description Error indicates TezosToolKit has not been configured appropriately
|
|
21
|
+
* @description Error that indicates TezosToolKit has not been configured appropriately
|
|
22
22
|
*/
|
|
23
23
|
export declare class TezosToolkitConfigError extends TaquitoError {
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* @category Error
|
|
27
|
-
* @description Error indicates a requested action is not supported by Taquito
|
|
27
|
+
* @description Error that indicates a requested action is not supported by Taquito
|
|
28
28
|
*/
|
|
29
29
|
export declare class UnsupportedActionError extends TaquitoError {
|
|
30
30
|
}
|
|
@@ -36,13 +36,13 @@ export declare class NetworkError extends TaquitoError {
|
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @category Error
|
|
39
|
-
* @description Error indicates user attempts an action without necessary permissions
|
|
39
|
+
* @description Error that indicates user attempts an action without necessary permissions
|
|
40
40
|
*/
|
|
41
41
|
export declare class PermissionDeniedError extends TaquitoError {
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* @category Error
|
|
45
|
-
* @description Error indicates an invalid originated or implicit address being passed or used
|
|
45
|
+
* @description Error that indicates an invalid originated or implicit address being passed or used
|
|
46
46
|
*/
|
|
47
47
|
export declare class InvalidAddressError extends ParameterValidationError {
|
|
48
48
|
readonly address: string;
|
|
@@ -51,7 +51,7 @@ export declare class InvalidAddressError extends ParameterValidationError {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* @category Error
|
|
54
|
-
* @description Error indicates an invalid block hash being passed or used
|
|
54
|
+
* @description Error that indicates an invalid block hash being passed or used
|
|
55
55
|
*/
|
|
56
56
|
export declare class InvalidBlockHashError extends ParameterValidationError {
|
|
57
57
|
readonly blockHash: string;
|
|
@@ -60,7 +60,7 @@ export declare class InvalidBlockHashError extends ParameterValidationError {
|
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* @category Error
|
|
63
|
-
* @description Error indicates an invalid amount of tez being passed as a parameter
|
|
63
|
+
* @description Error that indicates an invalid amount of tez being passed as a parameter
|
|
64
64
|
*/
|
|
65
65
|
export declare class InvalidAmountError extends ParameterValidationError {
|
|
66
66
|
readonly amount: string;
|
|
@@ -68,7 +68,7 @@ export declare class InvalidAmountError extends ParameterValidationError {
|
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* @category Error
|
|
71
|
-
* @description Error indicates an invalid derivation path being passed or used
|
|
71
|
+
* @description Error that indicates an invalid derivation path being passed or used
|
|
72
72
|
*/
|
|
73
73
|
export declare class InvalidDerivationPathError extends ParameterValidationError {
|
|
74
74
|
readonly derivationPath: string;
|
|
@@ -77,7 +77,7 @@ export declare class InvalidDerivationPathError extends ParameterValidationError
|
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* @category Error
|
|
80
|
-
* @description Error indicates an invalid hex string have been passed or used
|
|
80
|
+
* @description Error that indicates an invalid hex string have been passed or used
|
|
81
81
|
*/
|
|
82
82
|
export declare class InvalidHexStringError extends ParameterValidationError {
|
|
83
83
|
readonly hexString: string;
|
|
@@ -95,7 +95,7 @@ export declare class InvalidMessageError extends ParameterValidationError {
|
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* @category Error
|
|
98
|
-
* @description Error indicates invalid view parameter of a smart contract
|
|
98
|
+
* @description Error that indicates invalid view parameter of a smart contract
|
|
99
99
|
*/
|
|
100
100
|
export declare class InvalidViewParameterError extends ParameterValidationError {
|
|
101
101
|
readonly viewName: string;
|
|
@@ -106,7 +106,7 @@ export declare class InvalidViewParameterError extends ParameterValidationError
|
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* @category Error
|
|
109
|
-
* @description Error indicates an invalid private key being passed or used
|
|
109
|
+
* @description Error that indicates an invalid private key being passed or used
|
|
110
110
|
*/
|
|
111
111
|
export declare class InvalidKeyError extends ParameterValidationError {
|
|
112
112
|
readonly errorDetail?: string | undefined;
|
|
@@ -114,7 +114,7 @@ export declare class InvalidKeyError extends ParameterValidationError {
|
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* @category Error
|
|
117
|
-
* @description Error indicates an Invalid Public Key being passed or used
|
|
117
|
+
* @description Error that indicates an Invalid Public Key being passed or used
|
|
118
118
|
*/
|
|
119
119
|
export declare class InvalidPublicKeyError extends ParameterValidationError {
|
|
120
120
|
readonly publicKey: string;
|
|
@@ -123,7 +123,7 @@ export declare class InvalidPublicKeyError extends ParameterValidationError {
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* @category Error
|
|
126
|
-
* @description Error indicates an invalid signature being passed or used
|
|
126
|
+
* @description Error that indicates an invalid signature being passed or used
|
|
127
127
|
*/
|
|
128
128
|
export declare class InvalidSignatureError extends ParameterValidationError {
|
|
129
129
|
readonly signature: string;
|
|
@@ -132,7 +132,7 @@ export declare class InvalidSignatureError extends ParameterValidationError {
|
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* @category Error
|
|
135
|
-
* @description Error indicates an invalid contract address being passed or used
|
|
135
|
+
* @description Error that indicates an invalid contract address being passed or used
|
|
136
136
|
*/
|
|
137
137
|
export declare class InvalidContractAddressError extends ParameterValidationError {
|
|
138
138
|
readonly contractAddress: string;
|
|
@@ -141,7 +141,7 @@ export declare class InvalidContractAddressError extends ParameterValidationErro
|
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* @category Error
|
|
144
|
-
* @description Error indicates an invalid chain id being passed or used
|
|
144
|
+
* @description Error that indicates an invalid chain id being passed or used
|
|
145
145
|
*/
|
|
146
146
|
export declare class InvalidChainIdError extends ParameterValidationError {
|
|
147
147
|
readonly chainId: string;
|
|
@@ -150,7 +150,7 @@ export declare class InvalidChainIdError extends ParameterValidationError {
|
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* @category Error
|
|
153
|
-
* @description Error indicates an invalid public key hash being passed or used
|
|
153
|
+
* @description Error that indicates an invalid public key hash being passed or used
|
|
154
154
|
*/
|
|
155
155
|
export declare class InvalidKeyHashError extends ParameterValidationError {
|
|
156
156
|
readonly keyHash: string;
|
|
@@ -159,7 +159,7 @@ export declare class InvalidKeyHashError extends ParameterValidationError {
|
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
161
|
* @category Error
|
|
162
|
-
* @description Error indicates an invalid operation hash being passed or used
|
|
162
|
+
* @description Error that indicates an invalid operation hash being passed or used
|
|
163
163
|
*/
|
|
164
164
|
export declare class InvalidOperationHashError extends ParameterValidationError {
|
|
165
165
|
readonly operationHash: string;
|
|
@@ -168,7 +168,7 @@ export declare class InvalidOperationHashError extends ParameterValidationError
|
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* @category Error
|
|
171
|
-
* @description Error indicates an invalid operation kind being passed or used
|
|
171
|
+
* @description Error that indicates an invalid operation kind being passed or used
|
|
172
172
|
*/
|
|
173
173
|
export declare class InvalidOperationKindError extends ParameterValidationError {
|
|
174
174
|
readonly operationKind: string;
|
|
@@ -193,7 +193,7 @@ export declare class ProhibitedActionError extends UnsupportedActionError {
|
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
195
|
* @category Error
|
|
196
|
-
* @description Error indicates a failure in grabbing the public key
|
|
196
|
+
* @description Error that indicates a failure in grabbing the public key
|
|
197
197
|
*/
|
|
198
198
|
export declare class PublicKeyNotFoundError extends TaquitoError {
|
|
199
199
|
readonly pkh: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/core",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.2.0",
|
|
4
4
|
"description": "Classes, interfaces, and types shared across Taquito packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"src/**/*.{js,ts}"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "8fe3376401f12f5a97556479620c0414a6e5c7c3"
|
|
64
64
|
}
|