@taquito/core 17.3.2 → 17.4.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.
@@ -4,296 +4,296 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoCore = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- // ==========================================================================================
8
- // parent error classes for Taquito
9
- // ==========================================================================================
10
- /**
11
- * @category Error
12
- * @description Parent error class all taquito errors to extend from
13
- */
14
- class TaquitoError extends Error {
15
- }
16
- /**
17
- * @category Error
18
- * @description Error that indicates invalid user inputs
19
- */
20
- class ParameterValidationError extends TaquitoError {
21
- }
22
- /**
23
- * @category Error
24
- * @description Error returned by RPC node
25
- */
26
- class RpcError extends TaquitoError {
27
- }
28
- /**
29
- * @category Error
30
- * @description Error that indicates TezosToolKit has not been configured appropriately
31
- */
32
- class TezosToolkitConfigError extends TaquitoError {
33
- }
34
- /**
35
- * @category Error
36
- * @description Error that indicates a requested action is not supported by Taquito
37
- */
38
- class UnsupportedActionError extends TaquitoError {
39
- }
40
- /**
41
- * @category Error
42
- * @description Error during a network operation
43
- */
44
- class NetworkError extends TaquitoError {
45
- }
46
- /**
47
- * @category Error
48
- * @description Error that indicates user attempts an action without necessary permissions
49
- */
50
- class PermissionDeniedError extends TaquitoError {
51
- }
52
- // ==========================================================================================
53
- // common error classes for Taquito
54
- // ==========================================================================================
55
- /**
56
- * @category Error
57
- * @description Error that indicates an invalid originated or implicit address being passed or used
58
- */
59
- class InvalidAddressError extends ParameterValidationError {
60
- constructor(address, errorDetail) {
61
- super();
62
- this.address = address;
63
- this.errorDetail = errorDetail;
64
- this.name = 'InvalidAddressError';
65
- this.message = `Invalid address "${address}"`;
66
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
67
- }
68
- }
69
- /**
70
- * @category Error
71
- * @description Error that indicates an invalid block hash being passed or used
72
- */
73
- class InvalidBlockHashError extends ParameterValidationError {
74
- constructor(blockHash, errorDetail) {
75
- super();
76
- this.blockHash = blockHash;
77
- this.errorDetail = errorDetail;
78
- this.name = 'InvalidBlockHashError';
79
- this.message = `Invalid block hash "${blockHash}"`;
80
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
81
- }
82
- }
83
- /**
84
- * @category Error
85
- * @description Error that indicates an invalid amount of tez being passed as a parameter
86
- */
87
- class InvalidAmountError extends ParameterValidationError {
88
- constructor(amount) {
89
- super();
90
- this.amount = amount;
91
- this.name = 'InvalidAmountError';
92
- this.message = `Invalid amount "${amount}"`;
93
- }
94
- }
95
- /**
96
- * @category Error
97
- * @description Error that indicates an invalid derivation path being passed or used
98
- */
99
- class InvalidDerivationPathError extends ParameterValidationError {
100
- constructor(derivationPath, errorDetail) {
101
- super();
102
- this.derivationPath = derivationPath;
103
- this.errorDetail = errorDetail;
104
- this.name = 'InvalidDerivationPathError';
105
- this.message = `Invalid derivation path "${derivationPath}"`;
106
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
107
- }
108
- }
109
- /**
110
- * @category Error
111
- * @description Error that indicates an invalid hex string have been passed or used
112
- */
113
- class InvalidHexStringError extends ParameterValidationError {
114
- constructor(hexString, errorDetail) {
115
- super();
116
- this.hexString = hexString;
117
- this.errorDetail = errorDetail;
118
- this.name = 'InvalidHexStringError';
119
- this.message = `Invalid hex string "${hexString}"`;
120
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
121
- }
122
- }
123
- /**
124
- * @category Error
125
- * @description Error that indicates an invalid message being passed or used
126
- */
127
- class InvalidMessageError extends ParameterValidationError {
128
- constructor(msg, errorDetail) {
129
- super();
130
- this.msg = msg;
131
- this.errorDetail = errorDetail;
132
- this.name = 'InvalidMessageError';
133
- this.message = `Invalid message "${msg}"`;
134
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
135
- }
136
- }
137
- /**
138
- * @category Error
139
- * @description Error that indicates invalid view parameter of a smart contract
140
- */
141
- class InvalidViewParameterError extends ParameterValidationError {
142
- constructor(viewName, sigs, args, cause) {
143
- super();
144
- this.viewName = viewName;
145
- this.sigs = sigs;
146
- this.args = args;
147
- this.cause = cause;
148
- this.name = 'InvalidViewParameterError';
149
- this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}.`;
150
- }
151
- }
152
- /**
153
- * @category Error
154
- * @description Error that indicates an invalid private key being passed or used
155
- */
156
- class InvalidKeyError extends ParameterValidationError {
157
- constructor(errorDetail) {
158
- super();
159
- this.errorDetail = errorDetail;
160
- this.name = 'InvalidKeyError';
161
- this.message = `Invalid private key`;
162
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
163
- }
164
- }
165
- /**
166
- * @category Error
167
- * @description Error that indicates an Invalid Public Key being passed or used
168
- */
169
- class InvalidPublicKeyError extends ParameterValidationError {
170
- constructor(publicKey, errorDetail) {
171
- super();
172
- this.publicKey = publicKey;
173
- this.errorDetail = errorDetail;
174
- this.name = 'InvalidPublicKeyError';
175
- this.message = `Invalid public key "${publicKey}"`;
176
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
177
- }
178
- }
179
- /**
180
- * @category Error
181
- * @description Error that indicates an invalid signature being passed or used
182
- */
183
- class InvalidSignatureError extends ParameterValidationError {
184
- constructor(signature, errorDetail) {
185
- super();
186
- this.signature = signature;
187
- this.errorDetail = errorDetail;
188
- this.name = 'InvalidSignatureError';
189
- this.message = `Invalid signature "${signature}"`;
190
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
191
- }
192
- }
193
- /**
194
- * @category Error
195
- * @description Error that indicates an invalid contract address being passed or used
196
- */
197
- class InvalidContractAddressError extends ParameterValidationError {
198
- constructor(contractAddress, errorDetail) {
199
- super();
200
- this.contractAddress = contractAddress;
201
- this.errorDetail = errorDetail;
202
- this.name = 'InvalidContractAddressError';
203
- this.message = `Invalid contract address "${contractAddress}"`;
204
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
205
- }
206
- }
207
- /**
208
- * @category Error
209
- * @description Error that indicates an invalid chain id being passed or used
210
- */
211
- class InvalidChainIdError extends ParameterValidationError {
212
- constructor(chainId, errorDetail) {
213
- super();
214
- this.chainId = chainId;
215
- this.errorDetail = errorDetail;
216
- this.name = 'InvalidChainIdError';
217
- this.message = `Invalid chain id "${chainId}"`;
218
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
219
- }
220
- }
221
- /**
222
- * @category Error
223
- * @description Error that indicates an invalid public key hash being passed or used
224
- */
225
- class InvalidKeyHashError extends ParameterValidationError {
226
- constructor(keyHash, errorDetail) {
227
- super();
228
- this.keyHash = keyHash;
229
- this.errorDetail = errorDetail;
230
- this.name = 'InvalidKeyHashError';
231
- this.message = `Invalid public key hash "${keyHash}"`;
232
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
233
- }
234
- }
235
- /**
236
- * @category Error
237
- * @description Error that indicates an invalid operation hash being passed or used
238
- */
239
- class InvalidOperationHashError extends ParameterValidationError {
240
- constructor(operationHash, errorDetail) {
241
- super();
242
- this.operationHash = operationHash;
243
- this.errorDetail = errorDetail;
244
- this.name = 'InvalidOperationHashError';
245
- this.message = `Invalid operation hash "${operationHash}"`;
246
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
247
- }
248
- }
249
- /**
250
- * @category Error
251
- * @description Error that indicates an invalid operation kind being passed or used
252
- */
253
- class InvalidOperationKindError extends ParameterValidationError {
254
- constructor(operationKind, errorDetail) {
255
- super();
256
- this.operationKind = operationKind;
257
- this.errorDetail = errorDetail;
258
- this.name = 'InvalidOperationKindError';
259
- this.message = `Invalid operation kind "${operationKind}"`;
260
- this.message += errorDetail ? ` ${errorDetail}.` : '.';
261
- }
262
- }
263
- /**
264
- * @category Error
265
- * @description General error that indicates something is no longer supported and/or deprecated
266
- */
267
- class DeprecationError extends UnsupportedActionError {
268
- constructor(message) {
269
- super();
270
- this.message = message;
271
- this.name = 'DeprecationError';
272
- }
273
- }
274
- /**
275
- * @category Error
276
- * @description General error that indicates an action is prohibited or not allowed
277
- */
278
- class ProhibitedActionError extends UnsupportedActionError {
279
- constructor(message) {
280
- super();
281
- this.message = message;
282
- this.name = 'ProhibitedActionError';
283
- }
284
- }
285
- /**
286
- * @category Error
287
- * @description Error that indicates a failure in grabbing the public key
288
- */
289
- class PublicKeyNotFoundError extends TaquitoError {
290
- constructor(pkh, cause) {
291
- super();
292
- this.pkh = pkh;
293
- this.cause = cause;
294
- this.name = 'PublicKeyNotFoundError';
295
- this.message = `Public key not found of this address "${pkh}" in either wallet or contract API.`;
296
- }
7
+ // ==========================================================================================
8
+ // parent error classes for Taquito
9
+ // ==========================================================================================
10
+ /**
11
+ * @category Error
12
+ * @description Parent error class all taquito errors to extend from
13
+ */
14
+ class TaquitoError extends Error {
15
+ }
16
+ /**
17
+ * @category Error
18
+ * @description Error that indicates invalid user inputs
19
+ */
20
+ class ParameterValidationError extends TaquitoError {
21
+ }
22
+ /**
23
+ * @category Error
24
+ * @description Error returned by RPC node
25
+ */
26
+ class RpcError extends TaquitoError {
27
+ }
28
+ /**
29
+ * @category Error
30
+ * @description Error that indicates TezosToolKit has not been configured appropriately
31
+ */
32
+ class TezosToolkitConfigError extends TaquitoError {
33
+ }
34
+ /**
35
+ * @category Error
36
+ * @description Error that indicates a requested action is not supported by Taquito
37
+ */
38
+ class UnsupportedActionError extends TaquitoError {
39
+ }
40
+ /**
41
+ * @category Error
42
+ * @description Error during a network operation
43
+ */
44
+ class NetworkError extends TaquitoError {
45
+ }
46
+ /**
47
+ * @category Error
48
+ * @description Error that indicates user attempts an action without necessary permissions
49
+ */
50
+ class PermissionDeniedError extends TaquitoError {
51
+ }
52
+ // ==========================================================================================
53
+ // common error classes for Taquito
54
+ // ==========================================================================================
55
+ /**
56
+ * @category Error
57
+ * @description Error that indicates an invalid originated or implicit address being passed or used
58
+ */
59
+ class InvalidAddressError extends ParameterValidationError {
60
+ constructor(address, errorDetail) {
61
+ super();
62
+ this.address = address;
63
+ this.errorDetail = errorDetail;
64
+ this.name = 'InvalidAddressError';
65
+ this.message = `Invalid address "${address}"`;
66
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
67
+ }
68
+ }
69
+ /**
70
+ * @category Error
71
+ * @description Error that indicates an invalid block hash being passed or used
72
+ */
73
+ class InvalidBlockHashError extends ParameterValidationError {
74
+ constructor(blockHash, errorDetail) {
75
+ super();
76
+ this.blockHash = blockHash;
77
+ this.errorDetail = errorDetail;
78
+ this.name = 'InvalidBlockHashError';
79
+ this.message = `Invalid block hash "${blockHash}"`;
80
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
81
+ }
82
+ }
83
+ /**
84
+ * @category Error
85
+ * @description Error that indicates an invalid amount of tez being passed as a parameter
86
+ */
87
+ class InvalidAmountError extends ParameterValidationError {
88
+ constructor(amount) {
89
+ super();
90
+ this.amount = amount;
91
+ this.name = 'InvalidAmountError';
92
+ this.message = `Invalid amount "${amount}"`;
93
+ }
94
+ }
95
+ /**
96
+ * @category Error
97
+ * @description Error that indicates an invalid derivation path being passed or used
98
+ */
99
+ class InvalidDerivationPathError extends ParameterValidationError {
100
+ constructor(derivationPath, errorDetail) {
101
+ super();
102
+ this.derivationPath = derivationPath;
103
+ this.errorDetail = errorDetail;
104
+ this.name = 'InvalidDerivationPathError';
105
+ this.message = `Invalid derivation path "${derivationPath}"`;
106
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
107
+ }
108
+ }
109
+ /**
110
+ * @category Error
111
+ * @description Error that indicates an invalid hex string have been passed or used
112
+ */
113
+ class InvalidHexStringError extends ParameterValidationError {
114
+ constructor(hexString, errorDetail) {
115
+ super();
116
+ this.hexString = hexString;
117
+ this.errorDetail = errorDetail;
118
+ this.name = 'InvalidHexStringError';
119
+ this.message = `Invalid hex string "${hexString}"`;
120
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
121
+ }
122
+ }
123
+ /**
124
+ * @category Error
125
+ * @description Error that indicates an invalid message being passed or used
126
+ */
127
+ class InvalidMessageError extends ParameterValidationError {
128
+ constructor(msg, errorDetail) {
129
+ super();
130
+ this.msg = msg;
131
+ this.errorDetail = errorDetail;
132
+ this.name = 'InvalidMessageError';
133
+ this.message = `Invalid message "${msg}"`;
134
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
135
+ }
136
+ }
137
+ /**
138
+ * @category Error
139
+ * @description Error that indicates invalid view parameter of a smart contract
140
+ */
141
+ class InvalidViewParameterError extends ParameterValidationError {
142
+ constructor(viewName, sigs, args, cause) {
143
+ super();
144
+ this.viewName = viewName;
145
+ this.sigs = sigs;
146
+ this.args = args;
147
+ this.cause = cause;
148
+ this.name = 'InvalidViewParameterError';
149
+ this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}.`;
150
+ }
151
+ }
152
+ /**
153
+ * @category Error
154
+ * @description Error that indicates an invalid private key being passed or used
155
+ */
156
+ class InvalidKeyError extends ParameterValidationError {
157
+ constructor(errorDetail) {
158
+ super();
159
+ this.errorDetail = errorDetail;
160
+ this.name = 'InvalidKeyError';
161
+ this.message = `Invalid private key`;
162
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
163
+ }
164
+ }
165
+ /**
166
+ * @category Error
167
+ * @description Error that indicates an Invalid Public Key being passed or used
168
+ */
169
+ class InvalidPublicKeyError extends ParameterValidationError {
170
+ constructor(publicKey, errorDetail) {
171
+ super();
172
+ this.publicKey = publicKey;
173
+ this.errorDetail = errorDetail;
174
+ this.name = 'InvalidPublicKeyError';
175
+ this.message = `Invalid public key "${publicKey}"`;
176
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
177
+ }
178
+ }
179
+ /**
180
+ * @category Error
181
+ * @description Error that indicates an invalid signature being passed or used
182
+ */
183
+ class InvalidSignatureError extends ParameterValidationError {
184
+ constructor(signature, errorDetail) {
185
+ super();
186
+ this.signature = signature;
187
+ this.errorDetail = errorDetail;
188
+ this.name = 'InvalidSignatureError';
189
+ this.message = `Invalid signature "${signature}"`;
190
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
191
+ }
192
+ }
193
+ /**
194
+ * @category Error
195
+ * @description Error that indicates an invalid contract address being passed or used
196
+ */
197
+ class InvalidContractAddressError extends ParameterValidationError {
198
+ constructor(contractAddress, errorDetail) {
199
+ super();
200
+ this.contractAddress = contractAddress;
201
+ this.errorDetail = errorDetail;
202
+ this.name = 'InvalidContractAddressError';
203
+ this.message = `Invalid contract address "${contractAddress}"`;
204
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
205
+ }
206
+ }
207
+ /**
208
+ * @category Error
209
+ * @description Error that indicates an invalid chain id being passed or used
210
+ */
211
+ class InvalidChainIdError extends ParameterValidationError {
212
+ constructor(chainId, errorDetail) {
213
+ super();
214
+ this.chainId = chainId;
215
+ this.errorDetail = errorDetail;
216
+ this.name = 'InvalidChainIdError';
217
+ this.message = `Invalid chain id "${chainId}"`;
218
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
219
+ }
220
+ }
221
+ /**
222
+ * @category Error
223
+ * @description Error that indicates an invalid public key hash being passed or used
224
+ */
225
+ class InvalidKeyHashError extends ParameterValidationError {
226
+ constructor(keyHash, errorDetail) {
227
+ super();
228
+ this.keyHash = keyHash;
229
+ this.errorDetail = errorDetail;
230
+ this.name = 'InvalidKeyHashError';
231
+ this.message = `Invalid public key hash "${keyHash}"`;
232
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
233
+ }
234
+ }
235
+ /**
236
+ * @category Error
237
+ * @description Error that indicates an invalid operation hash being passed or used
238
+ */
239
+ class InvalidOperationHashError extends ParameterValidationError {
240
+ constructor(operationHash, errorDetail) {
241
+ super();
242
+ this.operationHash = operationHash;
243
+ this.errorDetail = errorDetail;
244
+ this.name = 'InvalidOperationHashError';
245
+ this.message = `Invalid operation hash "${operationHash}"`;
246
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
247
+ }
248
+ }
249
+ /**
250
+ * @category Error
251
+ * @description Error that indicates an invalid operation kind being passed or used
252
+ */
253
+ class InvalidOperationKindError extends ParameterValidationError {
254
+ constructor(operationKind, errorDetail) {
255
+ super();
256
+ this.operationKind = operationKind;
257
+ this.errorDetail = errorDetail;
258
+ this.name = 'InvalidOperationKindError';
259
+ this.message = `Invalid operation kind "${operationKind}"`;
260
+ this.message += errorDetail ? ` ${errorDetail}.` : '.';
261
+ }
262
+ }
263
+ /**
264
+ * @category Error
265
+ * @description General error that indicates something is no longer supported and/or deprecated
266
+ */
267
+ class DeprecationError extends UnsupportedActionError {
268
+ constructor(message) {
269
+ super();
270
+ this.message = message;
271
+ this.name = 'DeprecationError';
272
+ }
273
+ }
274
+ /**
275
+ * @category Error
276
+ * @description General error that indicates an action is prohibited or not allowed
277
+ */
278
+ class ProhibitedActionError extends UnsupportedActionError {
279
+ constructor(message) {
280
+ super();
281
+ this.message = message;
282
+ this.name = 'ProhibitedActionError';
283
+ }
284
+ }
285
+ /**
286
+ * @category Error
287
+ * @description Error that indicates a failure in grabbing the public key
288
+ */
289
+ class PublicKeyNotFoundError extends TaquitoError {
290
+ constructor(pkh, cause) {
291
+ super();
292
+ this.pkh = pkh;
293
+ this.cause = cause;
294
+ this.name = 'PublicKeyNotFoundError';
295
+ this.message = `Public key not found of this address "${pkh}" in either wallet or contract API.`;
296
+ }
297
297
  }
298
298
 
299
299
  exports.DeprecationError = DeprecationError;
@@ -322,7 +322,5 @@
322
322
  exports.TezosToolkitConfigError = TezosToolkitConfigError;
323
323
  exports.UnsupportedActionError = UnsupportedActionError;
324
324
 
325
- Object.defineProperty(exports, '__esModule', { value: true });
326
-
327
325
  }));
328
326
  //# sourceMappingURL=taquito-core.umd.js.map
@@ -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 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,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,iBAAA,EAAA,OAAO,GAAG,CAAC;EAC9C,QAAA,IAAI,CAAC,OAAO,IAAI,WAAW,G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