@taquito/core 17.0.0 → 17.1.0-beta-RC.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/errors.js +40 -14
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/lib/version.js.map +1 -1
- package/dist/taquito-core.es6.js +39 -14
- package/dist/taquito-core.es6.js.map +1 -1
- package/dist/taquito-core.umd.js +39 -13
- package/dist/taquito-core.umd.js.map +1 -1
- package/dist/types/errors.d.ts +53 -32
- package/package.json +2 -2
package/dist/lib/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProhibitedActionError = exports.DeprecationError = exports.InvalidOperationKindError = exports.InvalidOperationHashError = exports.InvalidKeyHashError = exports.InvalidChainIdError = exports.InvalidContractAddressError = exports.InvalidSignatureError = exports.InvalidPublicKeyError = exports.InvalidKeyError = exports.InvalidViewParameterError = exports.InvalidMessageError = exports.InvalidHexStringError = exports.InvalidDerivationPathError = exports.InvalidAmountError = exports.InvalidBlockHashError = exports.InvalidAddressError = exports.PermissionDeniedError = exports.NetworkError = exports.UnsupportedActionError = exports.TezosToolkitConfigError = exports.RpcError = exports.ParameterValidationError = exports.TaquitoError = void 0;
|
|
3
|
+
exports.PublicKeyNotFoundError = exports.ProhibitedActionError = exports.DeprecationError = exports.InvalidOperationKindError = exports.InvalidOperationHashError = exports.InvalidKeyHashError = exports.InvalidChainIdError = exports.InvalidContractAddressError = exports.InvalidSignatureError = exports.InvalidPublicKeyError = exports.InvalidKeyError = exports.InvalidViewParameterError = exports.InvalidMessageError = exports.InvalidHexStringError = exports.InvalidDerivationPathError = exports.InvalidAmountError = exports.InvalidBlockHashError = exports.InvalidAddressError = exports.PermissionDeniedError = exports.NetworkError = exports.UnsupportedActionError = exports.TezosToolkitConfigError = exports.RpcError = exports.ParameterValidationError = exports.TaquitoError = void 0;
|
|
4
4
|
// ==========================================================================================
|
|
5
5
|
// parent error classes for Taquito
|
|
6
6
|
// ==========================================================================================
|
|
@@ -64,9 +64,10 @@ class InvalidAddressError extends ParameterValidationError {
|
|
|
64
64
|
constructor(address, errorDetail) {
|
|
65
65
|
super();
|
|
66
66
|
this.address = address;
|
|
67
|
+
this.errorDetail = errorDetail;
|
|
67
68
|
this.name = 'InvalidAddressError';
|
|
68
69
|
this.message = `Invalid address "${address}"`;
|
|
69
|
-
|
|
70
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
exports.InvalidAddressError = InvalidAddressError;
|
|
@@ -78,9 +79,10 @@ class InvalidBlockHashError extends ParameterValidationError {
|
|
|
78
79
|
constructor(blockHash, errorDetail) {
|
|
79
80
|
super();
|
|
80
81
|
this.blockHash = blockHash;
|
|
82
|
+
this.errorDetail = errorDetail;
|
|
81
83
|
this.name = 'InvalidBlockHashError';
|
|
82
84
|
this.message = `Invalid block hash "${blockHash}"`;
|
|
83
|
-
|
|
85
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
88
|
exports.InvalidBlockHashError = InvalidBlockHashError;
|
|
@@ -105,9 +107,10 @@ class InvalidDerivationPathError extends ParameterValidationError {
|
|
|
105
107
|
constructor(derivationPath, errorDetail) {
|
|
106
108
|
super();
|
|
107
109
|
this.derivationPath = derivationPath;
|
|
110
|
+
this.errorDetail = errorDetail;
|
|
108
111
|
this.name = 'InvalidDerivationPathError';
|
|
109
112
|
this.message = `Invalid derivation path "${derivationPath}"`;
|
|
110
|
-
|
|
113
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
116
|
exports.InvalidDerivationPathError = InvalidDerivationPathError;
|
|
@@ -119,9 +122,10 @@ class InvalidHexStringError extends ParameterValidationError {
|
|
|
119
122
|
constructor(hexString, errorDetail) {
|
|
120
123
|
super();
|
|
121
124
|
this.hexString = hexString;
|
|
125
|
+
this.errorDetail = errorDetail;
|
|
122
126
|
this.name = 'InvalidHexStringError';
|
|
123
127
|
this.message = `Invalid hex string "${hexString}"`;
|
|
124
|
-
|
|
128
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
exports.InvalidHexStringError = InvalidHexStringError;
|
|
@@ -133,9 +137,10 @@ class InvalidMessageError extends ParameterValidationError {
|
|
|
133
137
|
constructor(msg, errorDetail) {
|
|
134
138
|
super();
|
|
135
139
|
this.msg = msg;
|
|
140
|
+
this.errorDetail = errorDetail;
|
|
136
141
|
this.name = 'InvalidMessageError';
|
|
137
142
|
this.message = `Invalid message "${msg}"`;
|
|
138
|
-
|
|
143
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
139
144
|
}
|
|
140
145
|
}
|
|
141
146
|
exports.InvalidMessageError = InvalidMessageError;
|
|
@@ -165,7 +170,7 @@ class InvalidKeyError extends ParameterValidationError {
|
|
|
165
170
|
this.errorDetail = errorDetail;
|
|
166
171
|
this.name = 'InvalidKeyError';
|
|
167
172
|
this.message = `Invalid private key`;
|
|
168
|
-
|
|
173
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
176
|
exports.InvalidKeyError = InvalidKeyError;
|
|
@@ -177,9 +182,10 @@ class InvalidPublicKeyError extends ParameterValidationError {
|
|
|
177
182
|
constructor(publicKey, errorDetail) {
|
|
178
183
|
super();
|
|
179
184
|
this.publicKey = publicKey;
|
|
185
|
+
this.errorDetail = errorDetail;
|
|
180
186
|
this.name = 'InvalidPublicKeyError';
|
|
181
187
|
this.message = `Invalid public key "${publicKey}"`;
|
|
182
|
-
|
|
188
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
183
189
|
}
|
|
184
190
|
}
|
|
185
191
|
exports.InvalidPublicKeyError = InvalidPublicKeyError;
|
|
@@ -191,9 +197,10 @@ class InvalidSignatureError extends ParameterValidationError {
|
|
|
191
197
|
constructor(signature, errorDetail) {
|
|
192
198
|
super();
|
|
193
199
|
this.signature = signature;
|
|
200
|
+
this.errorDetail = errorDetail;
|
|
194
201
|
this.name = 'InvalidSignatureError';
|
|
195
202
|
this.message = `Invalid signature "${signature}"`;
|
|
196
|
-
|
|
203
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
197
204
|
}
|
|
198
205
|
}
|
|
199
206
|
exports.InvalidSignatureError = InvalidSignatureError;
|
|
@@ -205,9 +212,10 @@ class InvalidContractAddressError extends ParameterValidationError {
|
|
|
205
212
|
constructor(contractAddress, errorDetail) {
|
|
206
213
|
super();
|
|
207
214
|
this.contractAddress = contractAddress;
|
|
215
|
+
this.errorDetail = errorDetail;
|
|
208
216
|
this.name = 'InvalidContractAddressError';
|
|
209
217
|
this.message = `Invalid contract address "${contractAddress}"`;
|
|
210
|
-
|
|
218
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
211
219
|
}
|
|
212
220
|
}
|
|
213
221
|
exports.InvalidContractAddressError = InvalidContractAddressError;
|
|
@@ -219,9 +227,10 @@ class InvalidChainIdError extends ParameterValidationError {
|
|
|
219
227
|
constructor(chainId, errorDetail) {
|
|
220
228
|
super();
|
|
221
229
|
this.chainId = chainId;
|
|
230
|
+
this.errorDetail = errorDetail;
|
|
222
231
|
this.name = 'InvalidChainIdError';
|
|
223
232
|
this.message = `Invalid chain id "${chainId}"`;
|
|
224
|
-
|
|
233
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
225
234
|
}
|
|
226
235
|
}
|
|
227
236
|
exports.InvalidChainIdError = InvalidChainIdError;
|
|
@@ -233,9 +242,10 @@ class InvalidKeyHashError extends ParameterValidationError {
|
|
|
233
242
|
constructor(keyHash, errorDetail) {
|
|
234
243
|
super();
|
|
235
244
|
this.keyHash = keyHash;
|
|
245
|
+
this.errorDetail = errorDetail;
|
|
236
246
|
this.name = 'InvalidKeyHashError';
|
|
237
247
|
this.message = `Invalid public key hash "${keyHash}"`;
|
|
238
|
-
|
|
248
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
239
249
|
}
|
|
240
250
|
}
|
|
241
251
|
exports.InvalidKeyHashError = InvalidKeyHashError;
|
|
@@ -247,9 +257,10 @@ class InvalidOperationHashError extends ParameterValidationError {
|
|
|
247
257
|
constructor(operationHash, errorDetail) {
|
|
248
258
|
super();
|
|
249
259
|
this.operationHash = operationHash;
|
|
260
|
+
this.errorDetail = errorDetail;
|
|
250
261
|
this.name = 'InvalidOperationHashError';
|
|
251
262
|
this.message = `Invalid operation hash "${operationHash}"`;
|
|
252
|
-
|
|
263
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
253
264
|
}
|
|
254
265
|
}
|
|
255
266
|
exports.InvalidOperationHashError = InvalidOperationHashError;
|
|
@@ -261,9 +272,10 @@ class InvalidOperationKindError extends ParameterValidationError {
|
|
|
261
272
|
constructor(operationKind, errorDetail) {
|
|
262
273
|
super();
|
|
263
274
|
this.operationKind = operationKind;
|
|
275
|
+
this.errorDetail = errorDetail;
|
|
264
276
|
this.name = 'InvalidOperationKindError';
|
|
265
277
|
this.message = `Invalid operation kind "${operationKind}"`;
|
|
266
|
-
|
|
278
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
267
279
|
}
|
|
268
280
|
}
|
|
269
281
|
exports.InvalidOperationKindError = InvalidOperationKindError;
|
|
@@ -291,4 +303,18 @@ class ProhibitedActionError extends UnsupportedActionError {
|
|
|
291
303
|
}
|
|
292
304
|
}
|
|
293
305
|
exports.ProhibitedActionError = ProhibitedActionError;
|
|
306
|
+
/**
|
|
307
|
+
* @category Error
|
|
308
|
+
* @description Error indicates a failure in grabbing the public key
|
|
309
|
+
*/
|
|
310
|
+
class PublicKeyNotFoundError extends TaquitoError {
|
|
311
|
+
constructor(pkh, cause) {
|
|
312
|
+
super();
|
|
313
|
+
this.pkh = pkh;
|
|
314
|
+
this.cause = cause;
|
|
315
|
+
this.name = 'PublicKeyNotFoundError';
|
|
316
|
+
this.message = `Public key not found of this address "${pkh}" in either wallet or contract API.`;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
exports.PublicKeyNotFoundError = PublicKeyNotFoundError;
|
|
294
320
|
//# sourceMappingURL=errors.js.map
|
package/dist/lib/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAAA,6FAA6F;AAC7F,mCAAmC;AACnC,6FAA6F;AAC7F;;;GAGG;AACH,MAAa,YAAa,SAAQ,KAAK;CAAG;AAA1C,oCAA0C;AAE1C;;;GAGG;AACH,MAAa,wBAAyB,SAAQ,YAAY;CAAG;AAA7D,4DAA6D;AAE7D;;;GAGG;AACH,MAAa,QAAS,SAAQ,YAAY;CAAG;AAA7C,4BAA6C;AAE7C;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,YAAY;CAAG;AAA5D,0DAA4D;AAE5D;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,YAAY;CAAG;AAA3D,wDAA2D;AAE3D;;;GAGG;AACH,MAAa,YAAa,SAAQ,YAAY;CAAG;AAAjD,oCAAiD;AAEjD;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,YAAY;CAAG;AAA1D,sDAA0D;AAE1D,6FAA6F;AAC7F,mCAAmC;AACnC,6FAA6F;AAC7F;;;GAGG;AACH,MAAa,mBAAoB,SAAQ,wBAAwB;IAC/D,
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAAA,6FAA6F;AAC7F,mCAAmC;AACnC,6FAA6F;AAC7F;;;GAGG;AACH,MAAa,YAAa,SAAQ,KAAK;CAAG;AAA1C,oCAA0C;AAE1C;;;GAGG;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,CAAS;QAErF,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,2BAA2B,aAAa,GAAG,CAAC;QAC3D,IAAI,CAAC,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IACzD,CAAC;CACF;AAPD,8DAOC;AAED;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,sBAAsB;IAC1D,YAA4B,OAAe;QACzC,KAAK,EAAE,CAAC;QADkB,YAAO,GAAP,OAAO,CAAQ;QAEzC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AALD,4CAKC;AAED;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,sBAAsB;IAC/D,YAA4B,OAAe;QACzC,KAAK,EAAE,CAAC;QADkB,YAAO,GAAP,OAAO,CAAQ;QAEzC,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF;AALD,sDAKC;AAED;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,YAAY;IACtD,YAA4B,GAAW,EAAkB,KAAW;QAClE,KAAK,EAAE,CAAC;QADkB,QAAG,GAAH,GAAG,CAAQ;QAAkB,UAAK,GAAL,KAAK,CAAM;QAElE,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,yCAAyC,GAAG,qCAAqC,CAAC;IACnG,CAAC;CACF;AAND,wDAMC"}
|
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.0.
|
|
6
|
+
"commitHash": "35185f70bf071114f22f169d2e1f7f8747ced2d0",
|
|
7
|
+
"version": "17.1.0-beta-RC.1"
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
package/dist/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AACA,2EAA2E;AAC9D,QAAA,OAAO,GAAG;IACnB,YAAY,EAAE,0CAA0C;IACxD,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AACA,2EAA2E;AAC9D,QAAA,OAAO,GAAG;IACnB,YAAY,EAAE,0CAA0C;IACxD,SAAS,EAAE,kBAAkB;CAChC,CAAC"}
|
package/dist/taquito-core.es6.js
CHANGED
|
@@ -54,9 +54,10 @@ class InvalidAddressError extends ParameterValidationError {
|
|
|
54
54
|
constructor(address, errorDetail) {
|
|
55
55
|
super();
|
|
56
56
|
this.address = address;
|
|
57
|
+
this.errorDetail = errorDetail;
|
|
57
58
|
this.name = 'InvalidAddressError';
|
|
58
59
|
this.message = `Invalid address "${address}"`;
|
|
59
|
-
|
|
60
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
@@ -67,9 +68,10 @@ class InvalidBlockHashError extends ParameterValidationError {
|
|
|
67
68
|
constructor(blockHash, errorDetail) {
|
|
68
69
|
super();
|
|
69
70
|
this.blockHash = blockHash;
|
|
71
|
+
this.errorDetail = errorDetail;
|
|
70
72
|
this.name = 'InvalidBlockHashError';
|
|
71
73
|
this.message = `Invalid block hash "${blockHash}"`;
|
|
72
|
-
|
|
74
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
/**
|
|
@@ -92,9 +94,10 @@ class InvalidDerivationPathError extends ParameterValidationError {
|
|
|
92
94
|
constructor(derivationPath, errorDetail) {
|
|
93
95
|
super();
|
|
94
96
|
this.derivationPath = derivationPath;
|
|
97
|
+
this.errorDetail = errorDetail;
|
|
95
98
|
this.name = 'InvalidDerivationPathError';
|
|
96
99
|
this.message = `Invalid derivation path "${derivationPath}"`;
|
|
97
|
-
|
|
100
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
/**
|
|
@@ -105,9 +108,10 @@ class InvalidHexStringError extends ParameterValidationError {
|
|
|
105
108
|
constructor(hexString, errorDetail) {
|
|
106
109
|
super();
|
|
107
110
|
this.hexString = hexString;
|
|
111
|
+
this.errorDetail = errorDetail;
|
|
108
112
|
this.name = 'InvalidHexStringError';
|
|
109
113
|
this.message = `Invalid hex string "${hexString}"`;
|
|
110
|
-
|
|
114
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
111
115
|
}
|
|
112
116
|
}
|
|
113
117
|
/**
|
|
@@ -118,9 +122,10 @@ class InvalidMessageError extends ParameterValidationError {
|
|
|
118
122
|
constructor(msg, errorDetail) {
|
|
119
123
|
super();
|
|
120
124
|
this.msg = msg;
|
|
125
|
+
this.errorDetail = errorDetail;
|
|
121
126
|
this.name = 'InvalidMessageError';
|
|
122
127
|
this.message = `Invalid message "${msg}"`;
|
|
123
|
-
|
|
128
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
124
129
|
}
|
|
125
130
|
}
|
|
126
131
|
/**
|
|
@@ -148,7 +153,7 @@ class InvalidKeyError extends ParameterValidationError {
|
|
|
148
153
|
this.errorDetail = errorDetail;
|
|
149
154
|
this.name = 'InvalidKeyError';
|
|
150
155
|
this.message = `Invalid private key`;
|
|
151
|
-
|
|
156
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
152
157
|
}
|
|
153
158
|
}
|
|
154
159
|
/**
|
|
@@ -159,9 +164,10 @@ class InvalidPublicKeyError extends ParameterValidationError {
|
|
|
159
164
|
constructor(publicKey, errorDetail) {
|
|
160
165
|
super();
|
|
161
166
|
this.publicKey = publicKey;
|
|
167
|
+
this.errorDetail = errorDetail;
|
|
162
168
|
this.name = 'InvalidPublicKeyError';
|
|
163
169
|
this.message = `Invalid public key "${publicKey}"`;
|
|
164
|
-
|
|
170
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
165
171
|
}
|
|
166
172
|
}
|
|
167
173
|
/**
|
|
@@ -172,9 +178,10 @@ class InvalidSignatureError extends ParameterValidationError {
|
|
|
172
178
|
constructor(signature, errorDetail) {
|
|
173
179
|
super();
|
|
174
180
|
this.signature = signature;
|
|
181
|
+
this.errorDetail = errorDetail;
|
|
175
182
|
this.name = 'InvalidSignatureError';
|
|
176
183
|
this.message = `Invalid signature "${signature}"`;
|
|
177
|
-
|
|
184
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
178
185
|
}
|
|
179
186
|
}
|
|
180
187
|
/**
|
|
@@ -185,9 +192,10 @@ class InvalidContractAddressError extends ParameterValidationError {
|
|
|
185
192
|
constructor(contractAddress, errorDetail) {
|
|
186
193
|
super();
|
|
187
194
|
this.contractAddress = contractAddress;
|
|
195
|
+
this.errorDetail = errorDetail;
|
|
188
196
|
this.name = 'InvalidContractAddressError';
|
|
189
197
|
this.message = `Invalid contract address "${contractAddress}"`;
|
|
190
|
-
|
|
198
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
191
199
|
}
|
|
192
200
|
}
|
|
193
201
|
/**
|
|
@@ -198,9 +206,10 @@ class InvalidChainIdError extends ParameterValidationError {
|
|
|
198
206
|
constructor(chainId, errorDetail) {
|
|
199
207
|
super();
|
|
200
208
|
this.chainId = chainId;
|
|
209
|
+
this.errorDetail = errorDetail;
|
|
201
210
|
this.name = 'InvalidChainIdError';
|
|
202
211
|
this.message = `Invalid chain id "${chainId}"`;
|
|
203
|
-
|
|
212
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
204
213
|
}
|
|
205
214
|
}
|
|
206
215
|
/**
|
|
@@ -211,9 +220,10 @@ class InvalidKeyHashError extends ParameterValidationError {
|
|
|
211
220
|
constructor(keyHash, errorDetail) {
|
|
212
221
|
super();
|
|
213
222
|
this.keyHash = keyHash;
|
|
223
|
+
this.errorDetail = errorDetail;
|
|
214
224
|
this.name = 'InvalidKeyHashError';
|
|
215
225
|
this.message = `Invalid public key hash "${keyHash}"`;
|
|
216
|
-
|
|
226
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
217
227
|
}
|
|
218
228
|
}
|
|
219
229
|
/**
|
|
@@ -224,9 +234,10 @@ class InvalidOperationHashError extends ParameterValidationError {
|
|
|
224
234
|
constructor(operationHash, errorDetail) {
|
|
225
235
|
super();
|
|
226
236
|
this.operationHash = operationHash;
|
|
237
|
+
this.errorDetail = errorDetail;
|
|
227
238
|
this.name = 'InvalidOperationHashError';
|
|
228
239
|
this.message = `Invalid operation hash "${operationHash}"`;
|
|
229
|
-
|
|
240
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
230
241
|
}
|
|
231
242
|
}
|
|
232
243
|
/**
|
|
@@ -237,9 +248,10 @@ class InvalidOperationKindError extends ParameterValidationError {
|
|
|
237
248
|
constructor(operationKind, errorDetail) {
|
|
238
249
|
super();
|
|
239
250
|
this.operationKind = operationKind;
|
|
251
|
+
this.errorDetail = errorDetail;
|
|
240
252
|
this.name = 'InvalidOperationKindError';
|
|
241
253
|
this.message = `Invalid operation kind "${operationKind}"`;
|
|
242
|
-
|
|
254
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
243
255
|
}
|
|
244
256
|
}
|
|
245
257
|
/**
|
|
@@ -263,7 +275,20 @@ class ProhibitedActionError extends UnsupportedActionError {
|
|
|
263
275
|
this.message = message;
|
|
264
276
|
this.name = 'ProhibitedActionError';
|
|
265
277
|
}
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* @category Error
|
|
281
|
+
* @description Error indicates a failure in grabbing the public key
|
|
282
|
+
*/
|
|
283
|
+
class PublicKeyNotFoundError extends TaquitoError {
|
|
284
|
+
constructor(pkh, cause) {
|
|
285
|
+
super();
|
|
286
|
+
this.pkh = pkh;
|
|
287
|
+
this.cause = cause;
|
|
288
|
+
this.name = 'PublicKeyNotFoundError';
|
|
289
|
+
this.message = `Public key not found of this address "${pkh}" in either wallet or contract API.`;
|
|
290
|
+
}
|
|
266
291
|
}
|
|
267
292
|
|
|
268
|
-
export { DeprecationError, InvalidAddressError, InvalidAmountError, InvalidBlockHashError, InvalidChainIdError, InvalidContractAddressError, InvalidDerivationPathError, InvalidHexStringError, InvalidKeyError, InvalidKeyHashError, InvalidMessageError, InvalidOperationHashError, InvalidOperationKindError, InvalidPublicKeyError, InvalidSignatureError, InvalidViewParameterError, NetworkError, ParameterValidationError, PermissionDeniedError, ProhibitedActionError, RpcError, TaquitoError, TezosToolkitConfigError, UnsupportedActionError };
|
|
293
|
+
export { DeprecationError, InvalidAddressError, InvalidAmountError, InvalidBlockHashError, InvalidChainIdError, InvalidContractAddressError, InvalidDerivationPathError, InvalidHexStringError, InvalidKeyError, InvalidKeyHashError, InvalidMessageError, InvalidOperationHashError, InvalidOperationKindError, InvalidPublicKeyError, InvalidSignatureError, InvalidViewParameterError, NetworkError, ParameterValidationError, PermissionDeniedError, ProhibitedActionError, PublicKeyNotFoundError, RpcError, TaquitoError, TezosToolkitConfigError, UnsupportedActionError };
|
|
269
294
|
//# sourceMappingURL=taquito-core.es6.js.map
|
|
@@ -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 address: string, errorDetail?: string) {\n super();\n this.name = 'InvalidAddressError';\n this.message = `Invalid address \"${address}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 blockHash: string, errorDetail?: string) {\n super();\n this.name = 'InvalidBlockHashError';\n this.message = `Invalid block hash \"${blockHash}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 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 derivationPath: string, errorDetail?: string) {\n super();\n this.name = 'InvalidDerivationPathError';\n this.message = `Invalid derivation path \"${derivationPath}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 hexString: string, errorDetail?: string) {\n super();\n this.name = 'InvalidHexStringError';\n this.message = `Invalid hex string \"${hexString}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 msg: string, errorDetail?: string) {\n super();\n this.name = 'InvalidMessageError';\n this.message = `Invalid message \"${msg}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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(public viewName: string, public sigs: any, public args: any, public cause?: any) {\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 errorDetail?: string) {\n super();\n this.name = 'InvalidKeyError';\n this.message = `Invalid private key`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 publicKey: string, errorDetail?: string) {\n super();\n this.name = 'InvalidPublicKeyError';\n this.message = `Invalid public key \"${publicKey}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 signature: string, errorDetail?: string) {\n super();\n this.name = 'InvalidSignatureError';\n this.message = `Invalid signature \"${signature}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 contractAddress: string, errorDetail?: string) {\n super();\n this.name = 'InvalidContractAddressError';\n this.message = `Invalid contract address \"${contractAddress}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 chainId: string, errorDetail?: string) {\n super();\n this.name = 'InvalidChainIdError';\n this.message = `Invalid chain id \"${chainId}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 keyHash: string, errorDetail?: string) {\n super();\n this.name = 'InvalidKeyHashError';\n this.message = `Invalid public key hash \"${keyHash}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 operationHash: string, errorDetail?: string) {\n super();\n this.name = 'InvalidOperationHashError';\n this.message = `Invalid operation hash \"${operationHash}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 operationKind: string, errorDetail?: string) {\n super();\n this.name = 'InvalidOperationKindError';\n this.message = `Invalid operation kind \"${operationKind}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 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 message: string) {\n super();\n this.name = 'ProhibitedActionError';\n }\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;;;AAGG;AACG,MA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AAA,WAAW,IAAI,IAAI,CAAC,OAAO,IAAI,CAAI,CAAA,EAAA,WAAW,GAAG,IAAI,IAAI,CAAC;KAC3D;AACF,CAAA;AAED;;;AAGG;AACG,MAAO,yBAA0B,SAAQ,wBAAwB,CAAA;IACrE,WAAmB,CAAA,aAAqB,EAAE,WAAoB,EAAA;AAC5D,QAAA,KAAK,EAAE,CAAC;QADS,IAAa,CAAA,aAAA,GAAb,aAAa,CAAQ;AAEtC,QAAA,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;AACxC,QAAA,IAAI,CAAC,OAAO,GAAG,CAA2B,wBAAA,EAAA,aAAa,GAAG,CAAC;AAC3D,QAAA,WAAW,IAAI,IAAI,CAAC,OAAO,IAAI,CAAI,CAAA,EAAA,WAAW,GAAG,IAAI,IAAI,CAAC;KAC3D;AACF,CAAA;AAED;;;AAGG;AACG,MAAO,gBAAiB,SAAQ,sBAAsB,CAAA;AAC1D,IAAA,WAAA,CAAmB,OAAe,EAAA;AAChC,QAAA,KAAK,EAAE,CAAC;QADS,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;AAEhC,QAAA,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;KAChC;AACF,CAAA;AAED;;;AAGG;AACG,MAAO,qBAAsB,SAAQ,sBAAsB,CAAA;AAC/D,IAAA,WAAA,CAAmB,OAAe,EAAA;AAChC,QAAA,KAAK,EAAE,CAAC;QADS,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;AAEhC,QAAA,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;KACrC;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 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,qBAAqB,CAAC;AAClC,QAAA,IAAI,CAAC,OAAO,GAAG,CAAoB,iBAAA,EAAA,OAAO,GAAG,CAAC;AAC9C,QAAA,IAAI,CAAC,OAAO,IAAI,WAAW,GAAG,CAAI,CAAA,EAAA,WAAW,C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
|
constructor(address, errorDetail) {
|
|
61
61
|
super();
|
|
62
62
|
this.address = address;
|
|
63
|
+
this.errorDetail = errorDetail;
|
|
63
64
|
this.name = 'InvalidAddressError';
|
|
64
65
|
this.message = `Invalid address "${address}"`;
|
|
65
|
-
|
|
66
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
/**
|
|
@@ -73,9 +74,10 @@
|
|
|
73
74
|
constructor(blockHash, errorDetail) {
|
|
74
75
|
super();
|
|
75
76
|
this.blockHash = blockHash;
|
|
77
|
+
this.errorDetail = errorDetail;
|
|
76
78
|
this.name = 'InvalidBlockHashError';
|
|
77
79
|
this.message = `Invalid block hash "${blockHash}"`;
|
|
78
|
-
|
|
80
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
/**
|
|
@@ -98,9 +100,10 @@
|
|
|
98
100
|
constructor(derivationPath, errorDetail) {
|
|
99
101
|
super();
|
|
100
102
|
this.derivationPath = derivationPath;
|
|
103
|
+
this.errorDetail = errorDetail;
|
|
101
104
|
this.name = 'InvalidDerivationPathError';
|
|
102
105
|
this.message = `Invalid derivation path "${derivationPath}"`;
|
|
103
|
-
|
|
106
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
/**
|
|
@@ -111,9 +114,10 @@
|
|
|
111
114
|
constructor(hexString, errorDetail) {
|
|
112
115
|
super();
|
|
113
116
|
this.hexString = hexString;
|
|
117
|
+
this.errorDetail = errorDetail;
|
|
114
118
|
this.name = 'InvalidHexStringError';
|
|
115
119
|
this.message = `Invalid hex string "${hexString}"`;
|
|
116
|
-
|
|
120
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
123
|
/**
|
|
@@ -124,9 +128,10 @@
|
|
|
124
128
|
constructor(msg, errorDetail) {
|
|
125
129
|
super();
|
|
126
130
|
this.msg = msg;
|
|
131
|
+
this.errorDetail = errorDetail;
|
|
127
132
|
this.name = 'InvalidMessageError';
|
|
128
133
|
this.message = `Invalid message "${msg}"`;
|
|
129
|
-
|
|
134
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
130
135
|
}
|
|
131
136
|
}
|
|
132
137
|
/**
|
|
@@ -154,7 +159,7 @@
|
|
|
154
159
|
this.errorDetail = errorDetail;
|
|
155
160
|
this.name = 'InvalidKeyError';
|
|
156
161
|
this.message = `Invalid private key`;
|
|
157
|
-
|
|
162
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
158
163
|
}
|
|
159
164
|
}
|
|
160
165
|
/**
|
|
@@ -165,9 +170,10 @@
|
|
|
165
170
|
constructor(publicKey, errorDetail) {
|
|
166
171
|
super();
|
|
167
172
|
this.publicKey = publicKey;
|
|
173
|
+
this.errorDetail = errorDetail;
|
|
168
174
|
this.name = 'InvalidPublicKeyError';
|
|
169
175
|
this.message = `Invalid public key "${publicKey}"`;
|
|
170
|
-
|
|
176
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
171
177
|
}
|
|
172
178
|
}
|
|
173
179
|
/**
|
|
@@ -178,9 +184,10 @@
|
|
|
178
184
|
constructor(signature, errorDetail) {
|
|
179
185
|
super();
|
|
180
186
|
this.signature = signature;
|
|
187
|
+
this.errorDetail = errorDetail;
|
|
181
188
|
this.name = 'InvalidSignatureError';
|
|
182
189
|
this.message = `Invalid signature "${signature}"`;
|
|
183
|
-
|
|
190
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
184
191
|
}
|
|
185
192
|
}
|
|
186
193
|
/**
|
|
@@ -191,9 +198,10 @@
|
|
|
191
198
|
constructor(contractAddress, errorDetail) {
|
|
192
199
|
super();
|
|
193
200
|
this.contractAddress = contractAddress;
|
|
201
|
+
this.errorDetail = errorDetail;
|
|
194
202
|
this.name = 'InvalidContractAddressError';
|
|
195
203
|
this.message = `Invalid contract address "${contractAddress}"`;
|
|
196
|
-
|
|
204
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
197
205
|
}
|
|
198
206
|
}
|
|
199
207
|
/**
|
|
@@ -204,9 +212,10 @@
|
|
|
204
212
|
constructor(chainId, errorDetail) {
|
|
205
213
|
super();
|
|
206
214
|
this.chainId = chainId;
|
|
215
|
+
this.errorDetail = errorDetail;
|
|
207
216
|
this.name = 'InvalidChainIdError';
|
|
208
217
|
this.message = `Invalid chain id "${chainId}"`;
|
|
209
|
-
|
|
218
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
210
219
|
}
|
|
211
220
|
}
|
|
212
221
|
/**
|
|
@@ -217,9 +226,10 @@
|
|
|
217
226
|
constructor(keyHash, errorDetail) {
|
|
218
227
|
super();
|
|
219
228
|
this.keyHash = keyHash;
|
|
229
|
+
this.errorDetail = errorDetail;
|
|
220
230
|
this.name = 'InvalidKeyHashError';
|
|
221
231
|
this.message = `Invalid public key hash "${keyHash}"`;
|
|
222
|
-
|
|
232
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
223
233
|
}
|
|
224
234
|
}
|
|
225
235
|
/**
|
|
@@ -230,9 +240,10 @@
|
|
|
230
240
|
constructor(operationHash, errorDetail) {
|
|
231
241
|
super();
|
|
232
242
|
this.operationHash = operationHash;
|
|
243
|
+
this.errorDetail = errorDetail;
|
|
233
244
|
this.name = 'InvalidOperationHashError';
|
|
234
245
|
this.message = `Invalid operation hash "${operationHash}"`;
|
|
235
|
-
|
|
246
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
236
247
|
}
|
|
237
248
|
}
|
|
238
249
|
/**
|
|
@@ -243,9 +254,10 @@
|
|
|
243
254
|
constructor(operationKind, errorDetail) {
|
|
244
255
|
super();
|
|
245
256
|
this.operationKind = operationKind;
|
|
257
|
+
this.errorDetail = errorDetail;
|
|
246
258
|
this.name = 'InvalidOperationKindError';
|
|
247
259
|
this.message = `Invalid operation kind "${operationKind}"`;
|
|
248
|
-
|
|
260
|
+
this.message += errorDetail ? ` ${errorDetail}.` : '.';
|
|
249
261
|
}
|
|
250
262
|
}
|
|
251
263
|
/**
|
|
@@ -269,6 +281,19 @@
|
|
|
269
281
|
this.message = message;
|
|
270
282
|
this.name = 'ProhibitedActionError';
|
|
271
283
|
}
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* @category Error
|
|
287
|
+
* @description Error 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
|
+
}
|
|
272
297
|
}
|
|
273
298
|
|
|
274
299
|
exports.DeprecationError = DeprecationError;
|
|
@@ -291,6 +316,7 @@
|
|
|
291
316
|
exports.ParameterValidationError = ParameterValidationError;
|
|
292
317
|
exports.PermissionDeniedError = PermissionDeniedError;
|
|
293
318
|
exports.ProhibitedActionError = ProhibitedActionError;
|
|
319
|
+
exports.PublicKeyNotFoundError = PublicKeyNotFoundError;
|
|
294
320
|
exports.RpcError = RpcError;
|
|
295
321
|
exports.TaquitoError = TaquitoError;
|
|
296
322
|
exports.TezosToolkitConfigError = TezosToolkitConfigError;
|
|
@@ -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 address: string, errorDetail?: string) {\n super();\n this.name = 'InvalidAddressError';\n this.message = `Invalid address \"${address}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 blockHash: string, errorDetail?: string) {\n super();\n this.name = 'InvalidBlockHashError';\n this.message = `Invalid block hash \"${blockHash}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 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 derivationPath: string, errorDetail?: string) {\n super();\n this.name = 'InvalidDerivationPathError';\n this.message = `Invalid derivation path \"${derivationPath}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 hexString: string, errorDetail?: string) {\n super();\n this.name = 'InvalidHexStringError';\n this.message = `Invalid hex string \"${hexString}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 msg: string, errorDetail?: string) {\n super();\n this.name = 'InvalidMessageError';\n this.message = `Invalid message \"${msg}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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(public viewName: string, public sigs: any, public args: any, public cause?: any) {\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 errorDetail?: string) {\n super();\n this.name = 'InvalidKeyError';\n this.message = `Invalid private key`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 publicKey: string, errorDetail?: string) {\n super();\n this.name = 'InvalidPublicKeyError';\n this.message = `Invalid public key \"${publicKey}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 signature: string, errorDetail?: string) {\n super();\n this.name = 'InvalidSignatureError';\n this.message = `Invalid signature \"${signature}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 contractAddress: string, errorDetail?: string) {\n super();\n this.name = 'InvalidContractAddressError';\n this.message = `Invalid contract address \"${contractAddress}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 chainId: string, errorDetail?: string) {\n super();\n this.name = 'InvalidChainIdError';\n this.message = `Invalid chain id \"${chainId}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 keyHash: string, errorDetail?: string) {\n super();\n this.name = 'InvalidKeyHashError';\n this.message = `Invalid public key hash \"${keyHash}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 operationHash: string, errorDetail?: string) {\n super();\n this.name = 'InvalidOperationHashError';\n this.message = `Invalid operation hash \"${operationHash}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 operationKind: string, errorDetail?: string) {\n super();\n this.name = 'InvalidOperationKindError';\n this.message = `Invalid operation kind \"${operationKind}\"`;\n errorDetail ? (this.message += ` ${errorDetail}.`) : null;\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 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 message: string) {\n super();\n this.name = 'ProhibitedActionError';\n }\n}\n"],"names":[],"mappings":";;;;;;EAAA;EACA;EACA;EAC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AG,CAAC;EAC3D,QAAA,WAAW,IAAI,IAAI,CAAC,OAAO,IAAI,CAAI,CAAA,EAAA,WAAW,GAAG,IAAI,IAAI,CAAC;OAC3D;EACF,CAAA;EAED;;;EAGG;EACG,MAAO,yBAA0B,SAAQ,wBAAwB,CAAA;MACrE,WAAmB,CAAA,aAAqB,EAAE,WAAoB,EAAA;EAC5D,QAAA,KAAK,EAAE,CAAC;UADS,IAAa,CAAA,aAAA,GAAb,aAAa,CAAQ;EAEtC,QAAA,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;EACxC,QAAA,IAAI,CAAC,OAAO,GAAG,CAA2B,wBAAA,EAAA,aAAa,GAAG,CAAC;EAC3D,QAAA,WAAW,IAAI,IAAI,CAAC,OAAO,IAAI,CAAI,CAAA,EAAA,WAAW,GAAG,IAAI,IAAI,CAAC;OAC3D;EACF,CAAA;EAED;;;EAGG;EACG,MAAO,gBAAiB,SAAQ,sBAAsB,CAAA;EAC1D,IAAA,WAAA,CAAmB,OAAe,EAAA;EAChC,QAAA,KAAK,EAAE,CAAC;UADS,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;EAEhC,QAAA,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;OAChC;EACF,CAAA;EAED;;;EAGG;EACG,MAAO,qBAAsB,SAAQ,sBAAsB,CAAA;EAC/D,IAAA,WAAA,CAAmB,OAAe,EAAA;EAChC,QAAA,KAAK,EAAE,CAAC;UADS,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;EAEhC,QAAA,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;OACrC;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 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,iBAAA,EAAA,OAAO,GAAG,CAAC;EAC9C,QAAA,IA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;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/types/errors.d.ts
CHANGED
|
@@ -45,23 +45,25 @@ export declare class PermissionDeniedError extends TaquitoError {
|
|
|
45
45
|
* @description Error indicates an invalid originated or implicit address being passed or used
|
|
46
46
|
*/
|
|
47
47
|
export declare class InvalidAddressError extends ParameterValidationError {
|
|
48
|
-
address: string;
|
|
49
|
-
|
|
48
|
+
readonly address: string;
|
|
49
|
+
readonly errorDetail?: string | undefined;
|
|
50
|
+
constructor(address: string, errorDetail?: string | undefined);
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
53
|
* @category Error
|
|
53
54
|
* @description Error indicates an invalid block hash being passed or used
|
|
54
55
|
*/
|
|
55
56
|
export declare class InvalidBlockHashError extends ParameterValidationError {
|
|
56
|
-
blockHash: string;
|
|
57
|
-
|
|
57
|
+
readonly blockHash: string;
|
|
58
|
+
readonly errorDetail?: string | undefined;
|
|
59
|
+
constructor(blockHash: string, errorDetail?: string | undefined);
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
60
62
|
* @category Error
|
|
61
63
|
* @description Error indicates an invalid amount of tez being passed as a parameter
|
|
62
64
|
*/
|
|
63
65
|
export declare class InvalidAmountError extends ParameterValidationError {
|
|
64
|
-
amount: string;
|
|
66
|
+
readonly amount: string;
|
|
65
67
|
constructor(amount: string);
|
|
66
68
|
}
|
|
67
69
|
/**
|
|
@@ -69,34 +71,37 @@ export declare class InvalidAmountError extends ParameterValidationError {
|
|
|
69
71
|
* @description Error indicates an invalid derivation path being passed or used
|
|
70
72
|
*/
|
|
71
73
|
export declare class InvalidDerivationPathError extends ParameterValidationError {
|
|
72
|
-
derivationPath: string;
|
|
73
|
-
|
|
74
|
+
readonly derivationPath: string;
|
|
75
|
+
readonly errorDetail?: string | undefined;
|
|
76
|
+
constructor(derivationPath: string, errorDetail?: string | undefined);
|
|
74
77
|
}
|
|
75
78
|
/**
|
|
76
79
|
* @category Error
|
|
77
80
|
* @description Error indicates an invalid hex string have been passed or used
|
|
78
81
|
*/
|
|
79
82
|
export declare class InvalidHexStringError extends ParameterValidationError {
|
|
80
|
-
hexString: string;
|
|
81
|
-
|
|
83
|
+
readonly hexString: string;
|
|
84
|
+
readonly errorDetail?: string | undefined;
|
|
85
|
+
constructor(hexString: string, errorDetail?: string | undefined);
|
|
82
86
|
}
|
|
83
87
|
/**
|
|
84
88
|
* @category Error
|
|
85
89
|
* @description Error that indicates an invalid message being passed or used
|
|
86
90
|
*/
|
|
87
91
|
export declare class InvalidMessageError extends ParameterValidationError {
|
|
88
|
-
msg: string;
|
|
89
|
-
|
|
92
|
+
readonly msg: string;
|
|
93
|
+
readonly errorDetail?: string | undefined;
|
|
94
|
+
constructor(msg: string, errorDetail?: string | undefined);
|
|
90
95
|
}
|
|
91
96
|
/**
|
|
92
97
|
* @category Error
|
|
93
98
|
* @description Error indicates invalid view parameter of a smart contract
|
|
94
99
|
*/
|
|
95
100
|
export declare class InvalidViewParameterError extends ParameterValidationError {
|
|
96
|
-
viewName: string;
|
|
97
|
-
sigs: any;
|
|
98
|
-
args: any;
|
|
99
|
-
cause?: any;
|
|
101
|
+
readonly viewName: string;
|
|
102
|
+
readonly sigs: any;
|
|
103
|
+
readonly args: any;
|
|
104
|
+
readonly cause?: any;
|
|
100
105
|
constructor(viewName: string, sigs: any, args: any, cause?: any);
|
|
101
106
|
}
|
|
102
107
|
/**
|
|
@@ -104,7 +109,7 @@ export declare class InvalidViewParameterError extends ParameterValidationError
|
|
|
104
109
|
* @description Error indicates an invalid private key being passed or used
|
|
105
110
|
*/
|
|
106
111
|
export declare class InvalidKeyError extends ParameterValidationError {
|
|
107
|
-
errorDetail?: string | undefined;
|
|
112
|
+
readonly errorDetail?: string | undefined;
|
|
108
113
|
constructor(errorDetail?: string | undefined);
|
|
109
114
|
}
|
|
110
115
|
/**
|
|
@@ -112,63 +117,70 @@ export declare class InvalidKeyError extends ParameterValidationError {
|
|
|
112
117
|
* @description Error indicates an Invalid Public Key being passed or used
|
|
113
118
|
*/
|
|
114
119
|
export declare class InvalidPublicKeyError extends ParameterValidationError {
|
|
115
|
-
publicKey: string;
|
|
116
|
-
|
|
120
|
+
readonly publicKey: string;
|
|
121
|
+
readonly errorDetail?: string | undefined;
|
|
122
|
+
constructor(publicKey: string, errorDetail?: string | undefined);
|
|
117
123
|
}
|
|
118
124
|
/**
|
|
119
125
|
* @category Error
|
|
120
126
|
* @description Error indicates an invalid signature being passed or used
|
|
121
127
|
*/
|
|
122
128
|
export declare class InvalidSignatureError extends ParameterValidationError {
|
|
123
|
-
signature: string;
|
|
124
|
-
|
|
129
|
+
readonly signature: string;
|
|
130
|
+
readonly errorDetail?: string | undefined;
|
|
131
|
+
constructor(signature: string, errorDetail?: string | undefined);
|
|
125
132
|
}
|
|
126
133
|
/**
|
|
127
134
|
* @category Error
|
|
128
135
|
* @description Error indicates an invalid contract address being passed or used
|
|
129
136
|
*/
|
|
130
137
|
export declare class InvalidContractAddressError extends ParameterValidationError {
|
|
131
|
-
contractAddress: string;
|
|
132
|
-
|
|
138
|
+
readonly contractAddress: string;
|
|
139
|
+
readonly errorDetail?: string | undefined;
|
|
140
|
+
constructor(contractAddress: string, errorDetail?: string | undefined);
|
|
133
141
|
}
|
|
134
142
|
/**
|
|
135
143
|
* @category Error
|
|
136
144
|
* @description Error indicates an invalid chain id being passed or used
|
|
137
145
|
*/
|
|
138
146
|
export declare class InvalidChainIdError extends ParameterValidationError {
|
|
139
|
-
chainId: string;
|
|
140
|
-
|
|
147
|
+
readonly chainId: string;
|
|
148
|
+
readonly errorDetail?: string | undefined;
|
|
149
|
+
constructor(chainId: string, errorDetail?: string | undefined);
|
|
141
150
|
}
|
|
142
151
|
/**
|
|
143
152
|
* @category Error
|
|
144
153
|
* @description Error indicates an invalid public key hash being passed or used
|
|
145
154
|
*/
|
|
146
155
|
export declare class InvalidKeyHashError extends ParameterValidationError {
|
|
147
|
-
keyHash: string;
|
|
148
|
-
|
|
156
|
+
readonly keyHash: string;
|
|
157
|
+
readonly errorDetail?: string | undefined;
|
|
158
|
+
constructor(keyHash: string, errorDetail?: string | undefined);
|
|
149
159
|
}
|
|
150
160
|
/**
|
|
151
161
|
* @category Error
|
|
152
162
|
* @description Error indicates an invalid operation hash being passed or used
|
|
153
163
|
*/
|
|
154
164
|
export declare class InvalidOperationHashError extends ParameterValidationError {
|
|
155
|
-
operationHash: string;
|
|
156
|
-
|
|
165
|
+
readonly operationHash: string;
|
|
166
|
+
readonly errorDetail?: string | undefined;
|
|
167
|
+
constructor(operationHash: string, errorDetail?: string | undefined);
|
|
157
168
|
}
|
|
158
169
|
/**
|
|
159
170
|
* @category Error
|
|
160
171
|
* @description Error indicates an invalid operation kind being passed or used
|
|
161
172
|
*/
|
|
162
173
|
export declare class InvalidOperationKindError extends ParameterValidationError {
|
|
163
|
-
operationKind: string;
|
|
164
|
-
|
|
174
|
+
readonly operationKind: string;
|
|
175
|
+
readonly errorDetail?: string | undefined;
|
|
176
|
+
constructor(operationKind: string, errorDetail?: string | undefined);
|
|
165
177
|
}
|
|
166
178
|
/**
|
|
167
179
|
* @category Error
|
|
168
180
|
* @description General error that indicates something is no longer supported and/or deprecated
|
|
169
181
|
*/
|
|
170
182
|
export declare class DeprecationError extends UnsupportedActionError {
|
|
171
|
-
message: string;
|
|
183
|
+
readonly message: string;
|
|
172
184
|
constructor(message: string);
|
|
173
185
|
}
|
|
174
186
|
/**
|
|
@@ -176,6 +188,15 @@ export declare class DeprecationError extends UnsupportedActionError {
|
|
|
176
188
|
* @description General error that indicates an action is prohibited or not allowed
|
|
177
189
|
*/
|
|
178
190
|
export declare class ProhibitedActionError extends UnsupportedActionError {
|
|
179
|
-
message: string;
|
|
191
|
+
readonly message: string;
|
|
180
192
|
constructor(message: string);
|
|
181
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* @category Error
|
|
196
|
+
* @description Error indicates a failure in grabbing the public key
|
|
197
|
+
*/
|
|
198
|
+
export declare class PublicKeyNotFoundError extends TaquitoError {
|
|
199
|
+
readonly pkh: string;
|
|
200
|
+
readonly cause?: any;
|
|
201
|
+
constructor(pkh: string, cause?: any);
|
|
202
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/core",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.1.0-beta-RC.1",
|
|
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": "c0494008115163a124fa466444585d7f3f1de48c"
|
|
64
64
|
}
|