@taquito/core 16.2.0-beta-RC.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2019 ECAD Labs Inc
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Taquito Core package
2
+
3
+ `@taquito/core` This package contains classes and interfaces used across Taquito packages to avoid circular dependencies.
@@ -0,0 +1,281 @@
1
+ "use strict";
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.InvalidBlockHashError = exports.InvalidAddressError = exports.PermissionDeniedError = exports.NetworkError = exports.UnsupportedActionError = exports.TezosToolkitConfigError = exports.RpcError = exports.ParameterValidationError = exports.TaquitoError = void 0;
4
+ // ==========================================================================================
5
+ // parent error classes for Taquito
6
+ // ==========================================================================================
7
+ /**
8
+ * @category Error
9
+ * @description Parent error class all taquito errors to extend from
10
+ */
11
+ class TaquitoError extends Error {
12
+ }
13
+ exports.TaquitoError = TaquitoError;
14
+ /**
15
+ * @category Error
16
+ * @description Error indicates invalid user inputs
17
+ */
18
+ class ParameterValidationError extends TaquitoError {
19
+ }
20
+ exports.ParameterValidationError = ParameterValidationError;
21
+ /**
22
+ * @category Error
23
+ * @description Error returned by RPC node
24
+ */
25
+ class RpcError extends TaquitoError {
26
+ }
27
+ exports.RpcError = RpcError;
28
+ /**
29
+ * @category Error
30
+ * @description Error indicates TezosToolKit has not been configured appropriately
31
+ */
32
+ class TezosToolkitConfigError extends TaquitoError {
33
+ }
34
+ exports.TezosToolkitConfigError = TezosToolkitConfigError;
35
+ /**
36
+ * @category Error
37
+ * @description Error indicates a requested action is not supported by Taquito
38
+ */
39
+ class UnsupportedActionError extends TaquitoError {
40
+ }
41
+ exports.UnsupportedActionError = UnsupportedActionError;
42
+ /**
43
+ * @category Error
44
+ * @description Error during a network operation
45
+ */
46
+ class NetworkError extends TaquitoError {
47
+ }
48
+ exports.NetworkError = NetworkError;
49
+ /**
50
+ * @category Error
51
+ * @description Error indicates user attempts an action without necessary permissions
52
+ */
53
+ class PermissionDeniedError extends TaquitoError {
54
+ }
55
+ exports.PermissionDeniedError = PermissionDeniedError;
56
+ // ==========================================================================================
57
+ // common error classes for Taquito
58
+ // ==========================================================================================
59
+ /**
60
+ * @category Error
61
+ * @description Error indicates an invalid originated or implicit address being passed or used
62
+ */
63
+ class InvalidAddressError extends ParameterValidationError {
64
+ constructor(address, errorDetail) {
65
+ super();
66
+ this.address = address;
67
+ this.name = 'InvalidAddressError';
68
+ this.message = `Invalid address "${address}"`;
69
+ errorDetail ? (this.message += `${errorDetail}`) : null;
70
+ }
71
+ }
72
+ exports.InvalidAddressError = InvalidAddressError;
73
+ /**
74
+ * @category Error
75
+ * @description Error indicates an invalid block hash being passed or used
76
+ */
77
+ class InvalidBlockHashError extends ParameterValidationError {
78
+ constructor(blockHash, errorDetail) {
79
+ super();
80
+ this.blockHash = blockHash;
81
+ this.name = 'InvalidBlockHashError';
82
+ this.message = `Invalid block hash "${blockHash}"`;
83
+ errorDetail ? (this.message += `${errorDetail}`) : null;
84
+ }
85
+ }
86
+ exports.InvalidBlockHashError = InvalidBlockHashError;
87
+ /**
88
+ * @category Error
89
+ * @description Error indicates an invalid derivation path being passed or used
90
+ */
91
+ class InvalidDerivationPathError extends ParameterValidationError {
92
+ constructor(derivationPath, errorDetail) {
93
+ super();
94
+ this.derivationPath = derivationPath;
95
+ this.name = 'InvalidDerivationPathError';
96
+ this.message = `Invalid derivation path "${derivationPath}"`;
97
+ errorDetail ? (this.message += `${errorDetail}`) : null;
98
+ }
99
+ }
100
+ exports.InvalidDerivationPathError = InvalidDerivationPathError;
101
+ /**
102
+ * @category Error
103
+ * @description Error indicates an invalid hex string have been passed or used
104
+ */
105
+ class InvalidHexStringError extends ParameterValidationError {
106
+ constructor(hexString, errorDetail) {
107
+ super();
108
+ this.hexString = hexString;
109
+ this.name = 'InvalidHexStringError';
110
+ this.message = `Invalid hex string "${hexString}"`;
111
+ errorDetail ? (this.message += `${errorDetail}`) : null;
112
+ }
113
+ }
114
+ exports.InvalidHexStringError = InvalidHexStringError;
115
+ /**
116
+ * @category Error
117
+ * @description Error that indicates an invalid message being passed or used
118
+ */
119
+ class InvalidMessageError extends ParameterValidationError {
120
+ constructor(msg, errorDetail) {
121
+ super();
122
+ this.msg = msg;
123
+ this.name = 'InvalidMessageError';
124
+ this.message = `Invalid message "${msg}"`;
125
+ errorDetail ? (this.message += `${errorDetail}`) : null;
126
+ }
127
+ }
128
+ exports.InvalidMessageError = InvalidMessageError;
129
+ /**
130
+ * @category Error
131
+ * @description Error indicates invalid view parameter of a smart contract
132
+ */
133
+ class InvalidViewParameterError extends ParameterValidationError {
134
+ constructor(viewName, sigs, args, cause) {
135
+ super();
136
+ this.viewName = viewName;
137
+ this.sigs = sigs;
138
+ this.args = args;
139
+ this.cause = cause;
140
+ this.name = 'InvalidViewParameterError';
141
+ this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}`;
142
+ }
143
+ }
144
+ exports.InvalidViewParameterError = InvalidViewParameterError;
145
+ /**
146
+ * @category Error
147
+ * @description Error indicates an invalid private key being passed or used
148
+ */
149
+ class InvalidKeyError extends ParameterValidationError {
150
+ constructor(errorDetail) {
151
+ super();
152
+ this.errorDetail = errorDetail;
153
+ this.name = 'InvalidKeyError';
154
+ this.message = `Invalid private key`;
155
+ errorDetail ? (this.message += `${errorDetail}`) : null;
156
+ }
157
+ }
158
+ exports.InvalidKeyError = InvalidKeyError;
159
+ /**
160
+ * @category Error
161
+ * @description Error indicates an Invalid Public Key being passed or used
162
+ */
163
+ class InvalidPublicKeyError extends ParameterValidationError {
164
+ constructor(publicKey, errorDetail) {
165
+ super();
166
+ this.publicKey = publicKey;
167
+ this.name = 'InvalidPublicKeyError';
168
+ this.message = `Invalid public key "${publicKey}"`;
169
+ errorDetail ? (this.message += `${errorDetail}`) : null;
170
+ }
171
+ }
172
+ exports.InvalidPublicKeyError = InvalidPublicKeyError;
173
+ /**
174
+ * @category Error
175
+ * @description Error indicates an invalid signature being passed or used
176
+ */
177
+ class InvalidSignatureError extends ParameterValidationError {
178
+ constructor(signature, errorDetail) {
179
+ super();
180
+ this.signature = signature;
181
+ this.name = 'InvalidSignatureError';
182
+ this.message = `Invalid signature "${signature}"`;
183
+ errorDetail ? (this.message += `${errorDetail}`) : null;
184
+ }
185
+ }
186
+ exports.InvalidSignatureError = InvalidSignatureError;
187
+ /**
188
+ * @category Error
189
+ * @description Error indicates an invalid contract address being passed or used
190
+ */
191
+ class InvalidContractAddressError extends ParameterValidationError {
192
+ constructor(contractAddress, errorDetail) {
193
+ super();
194
+ this.contractAddress = contractAddress;
195
+ this.name = 'InvalidContractAddressError';
196
+ this.message = `Invalid contract address "${contractAddress}"`;
197
+ errorDetail ? (this.message += `${errorDetail}`) : null;
198
+ }
199
+ }
200
+ exports.InvalidContractAddressError = InvalidContractAddressError;
201
+ /**
202
+ * @category Error
203
+ * @description Error indicates an invalid chain id being passed or used
204
+ */
205
+ class InvalidChainIdError extends ParameterValidationError {
206
+ constructor(chainId, errorDetail) {
207
+ super();
208
+ this.chainId = chainId;
209
+ this.name = 'InvalidChainIdError';
210
+ this.message = `Invalid chain id "${chainId}"`;
211
+ errorDetail ? (this.message += `${errorDetail}`) : null;
212
+ }
213
+ }
214
+ exports.InvalidChainIdError = InvalidChainIdError;
215
+ /**
216
+ * @category Error
217
+ * @description Error indicates an invalid public key hash being passed or used
218
+ */
219
+ class InvalidKeyHashError extends ParameterValidationError {
220
+ constructor(keyHash, errorDetail) {
221
+ super();
222
+ this.keyHash = keyHash;
223
+ this.name = 'InvalidKeyHashError';
224
+ this.message = `Invalid public key hash "${keyHash}"`;
225
+ errorDetail ? (this.message += `${errorDetail}`) : null;
226
+ }
227
+ }
228
+ exports.InvalidKeyHashError = InvalidKeyHashError;
229
+ /**
230
+ * @category Error
231
+ * @description Error indicates an invalid operation hash being passed or used
232
+ */
233
+ class InvalidOperationHashError extends ParameterValidationError {
234
+ constructor(operationHash, errorDetail) {
235
+ super();
236
+ this.operationHash = operationHash;
237
+ this.name = 'InvalidOperationHashError';
238
+ this.message = `Invalid operation hash "${operationHash}"`;
239
+ errorDetail ? (this.message += `${errorDetail}`) : null;
240
+ }
241
+ }
242
+ exports.InvalidOperationHashError = InvalidOperationHashError;
243
+ /**
244
+ * @category Error
245
+ * @description Error indicates an invalid operation kind being passed or used
246
+ */
247
+ class InvalidOperationKindError extends ParameterValidationError {
248
+ constructor(operationKind, errorDetail) {
249
+ super();
250
+ this.operationKind = operationKind;
251
+ this.name = 'InvalidOperationKindError';
252
+ this.message = `Invalid operation kind "${operationKind}"`;
253
+ errorDetail ? (this.message += `${errorDetail}`) : null;
254
+ }
255
+ }
256
+ exports.InvalidOperationKindError = InvalidOperationKindError;
257
+ /**
258
+ * @category Error
259
+ * @description General error that indicates something is no longer supported and/or deprecated
260
+ */
261
+ class DeprecationError extends UnsupportedActionError {
262
+ constructor(message) {
263
+ super();
264
+ this.message = message;
265
+ this.name = 'DeprecationError';
266
+ }
267
+ }
268
+ exports.DeprecationError = DeprecationError;
269
+ /**
270
+ * @category Error
271
+ * @description General error that indicates an action is prohibited or not allowed
272
+ */
273
+ class ProhibitedActionError extends UnsupportedActionError {
274
+ constructor(message) {
275
+ super();
276
+ this.message = message;
277
+ this.name = 'ProhibitedActionError';
278
+ }
279
+ }
280
+ exports.ProhibitedActionError = ProhibitedActionError;
281
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +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,wBAA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IAAI,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1D,CAAC;CACF;AAPD,8DAOC;AAED;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,wBAAwB;IACrE,YAAmB,aAAqB,EAAE,WAAoB;QAC5D,KAAK,EAAE,CAAC;QADS,kBAAa,GAAb,aAAa,CAAQ;QAEtC,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,2BAA2B,aAAa,GAAG,CAAC;QAC3D,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1D,CAAC;CACF;AAPD,8DAOC;AAED;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,sBAAsB;IAC1D,YAAmB,OAAe;QAChC,KAAK,EAAE,CAAC;QADS,YAAO,GAAP,OAAO,CAAQ;QAEhC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AALD,4CAKC;AAED;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,sBAAsB;IAC/D,YAAmB,OAAe;QAChC,KAAK,EAAE,CAAC;QADS,YAAO,GAAP,OAAO,CAAQ;QAEhC,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF;AALD,sDAKC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * @packageDocumentation
4
+ * @module @taquito/core
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./errors"), exports);
18
+ //# sourceMappingURL=taquito-core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taquito-core.js","sourceRoot":"","sources":["../../src/taquito-core.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;AAEH,2CAAyB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VERSION = void 0;
4
+ // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
5
+ exports.VERSION = {
6
+ "commitHash": "babcbaf464fd3571a3b88cf7023fefe87809d86d",
7
+ "version": "16.2.0-beta-RC.0"
8
+ };
9
+ //# sourceMappingURL=version.js.map
@@ -0,0 +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,kBAAkB;CAChC,CAAC"}
@@ -0,0 +1,257 @@
1
+ // ==========================================================================================
2
+ // parent error classes for Taquito
3
+ // ==========================================================================================
4
+ /**
5
+ * @category Error
6
+ * @description Parent error class all taquito errors to extend from
7
+ */
8
+ class TaquitoError extends Error {
9
+ }
10
+ /**
11
+ * @category Error
12
+ * @description Error indicates invalid user inputs
13
+ */
14
+ class ParameterValidationError extends TaquitoError {
15
+ }
16
+ /**
17
+ * @category Error
18
+ * @description Error returned by RPC node
19
+ */
20
+ class RpcError extends TaquitoError {
21
+ }
22
+ /**
23
+ * @category Error
24
+ * @description Error indicates TezosToolKit has not been configured appropriately
25
+ */
26
+ class TezosToolkitConfigError extends TaquitoError {
27
+ }
28
+ /**
29
+ * @category Error
30
+ * @description Error indicates a requested action is not supported by Taquito
31
+ */
32
+ class UnsupportedActionError extends TaquitoError {
33
+ }
34
+ /**
35
+ * @category Error
36
+ * @description Error during a network operation
37
+ */
38
+ class NetworkError extends TaquitoError {
39
+ }
40
+ /**
41
+ * @category Error
42
+ * @description Error indicates user attempts an action without necessary permissions
43
+ */
44
+ class PermissionDeniedError extends TaquitoError {
45
+ }
46
+ // ==========================================================================================
47
+ // common error classes for Taquito
48
+ // ==========================================================================================
49
+ /**
50
+ * @category Error
51
+ * @description Error indicates an invalid originated or implicit address being passed or used
52
+ */
53
+ class InvalidAddressError extends ParameterValidationError {
54
+ constructor(address, errorDetail) {
55
+ super();
56
+ this.address = address;
57
+ this.name = 'InvalidAddressError';
58
+ this.message = `Invalid address "${address}"`;
59
+ errorDetail ? (this.message += `${errorDetail}`) : null;
60
+ }
61
+ }
62
+ /**
63
+ * @category Error
64
+ * @description Error indicates an invalid block hash being passed or used
65
+ */
66
+ class InvalidBlockHashError extends ParameterValidationError {
67
+ constructor(blockHash, errorDetail) {
68
+ super();
69
+ this.blockHash = blockHash;
70
+ this.name = 'InvalidBlockHashError';
71
+ this.message = `Invalid block hash "${blockHash}"`;
72
+ errorDetail ? (this.message += `${errorDetail}`) : null;
73
+ }
74
+ }
75
+ /**
76
+ * @category Error
77
+ * @description Error indicates an invalid derivation path being passed or used
78
+ */
79
+ class InvalidDerivationPathError extends ParameterValidationError {
80
+ constructor(derivationPath, errorDetail) {
81
+ super();
82
+ this.derivationPath = derivationPath;
83
+ this.name = 'InvalidDerivationPathError';
84
+ this.message = `Invalid derivation path "${derivationPath}"`;
85
+ errorDetail ? (this.message += `${errorDetail}`) : null;
86
+ }
87
+ }
88
+ /**
89
+ * @category Error
90
+ * @description Error indicates an invalid hex string have been passed or used
91
+ */
92
+ class InvalidHexStringError extends ParameterValidationError {
93
+ constructor(hexString, errorDetail) {
94
+ super();
95
+ this.hexString = hexString;
96
+ this.name = 'InvalidHexStringError';
97
+ this.message = `Invalid hex string "${hexString}"`;
98
+ errorDetail ? (this.message += `${errorDetail}`) : null;
99
+ }
100
+ }
101
+ /**
102
+ * @category Error
103
+ * @description Error that indicates an invalid message being passed or used
104
+ */
105
+ class InvalidMessageError extends ParameterValidationError {
106
+ constructor(msg, errorDetail) {
107
+ super();
108
+ this.msg = msg;
109
+ this.name = 'InvalidMessageError';
110
+ this.message = `Invalid message "${msg}"`;
111
+ errorDetail ? (this.message += `${errorDetail}`) : null;
112
+ }
113
+ }
114
+ /**
115
+ * @category Error
116
+ * @description Error indicates invalid view parameter of a smart contract
117
+ */
118
+ class InvalidViewParameterError extends ParameterValidationError {
119
+ constructor(viewName, sigs, args, cause) {
120
+ super();
121
+ this.viewName = viewName;
122
+ this.sigs = sigs;
123
+ this.args = args;
124
+ this.cause = cause;
125
+ this.name = 'InvalidViewParameterError';
126
+ this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}`;
127
+ }
128
+ }
129
+ /**
130
+ * @category Error
131
+ * @description Error indicates an invalid private key being passed or used
132
+ */
133
+ class InvalidKeyError extends ParameterValidationError {
134
+ constructor(errorDetail) {
135
+ super();
136
+ this.errorDetail = errorDetail;
137
+ this.name = 'InvalidKeyError';
138
+ this.message = `Invalid private key`;
139
+ errorDetail ? (this.message += `${errorDetail}`) : null;
140
+ }
141
+ }
142
+ /**
143
+ * @category Error
144
+ * @description Error indicates an Invalid Public Key being passed or used
145
+ */
146
+ class InvalidPublicKeyError extends ParameterValidationError {
147
+ constructor(publicKey, errorDetail) {
148
+ super();
149
+ this.publicKey = publicKey;
150
+ this.name = 'InvalidPublicKeyError';
151
+ this.message = `Invalid public key "${publicKey}"`;
152
+ errorDetail ? (this.message += `${errorDetail}`) : null;
153
+ }
154
+ }
155
+ /**
156
+ * @category Error
157
+ * @description Error indicates an invalid signature being passed or used
158
+ */
159
+ class InvalidSignatureError extends ParameterValidationError {
160
+ constructor(signature, errorDetail) {
161
+ super();
162
+ this.signature = signature;
163
+ this.name = 'InvalidSignatureError';
164
+ this.message = `Invalid signature "${signature}"`;
165
+ errorDetail ? (this.message += `${errorDetail}`) : null;
166
+ }
167
+ }
168
+ /**
169
+ * @category Error
170
+ * @description Error indicates an invalid contract address being passed or used
171
+ */
172
+ class InvalidContractAddressError extends ParameterValidationError {
173
+ constructor(contractAddress, errorDetail) {
174
+ super();
175
+ this.contractAddress = contractAddress;
176
+ this.name = 'InvalidContractAddressError';
177
+ this.message = `Invalid contract address "${contractAddress}"`;
178
+ errorDetail ? (this.message += `${errorDetail}`) : null;
179
+ }
180
+ }
181
+ /**
182
+ * @category Error
183
+ * @description Error indicates an invalid chain id being passed or used
184
+ */
185
+ class InvalidChainIdError extends ParameterValidationError {
186
+ constructor(chainId, errorDetail) {
187
+ super();
188
+ this.chainId = chainId;
189
+ this.name = 'InvalidChainIdError';
190
+ this.message = `Invalid chain id "${chainId}"`;
191
+ errorDetail ? (this.message += `${errorDetail}`) : null;
192
+ }
193
+ }
194
+ /**
195
+ * @category Error
196
+ * @description Error indicates an invalid public key hash being passed or used
197
+ */
198
+ class InvalidKeyHashError extends ParameterValidationError {
199
+ constructor(keyHash, errorDetail) {
200
+ super();
201
+ this.keyHash = keyHash;
202
+ this.name = 'InvalidKeyHashError';
203
+ this.message = `Invalid public key hash "${keyHash}"`;
204
+ errorDetail ? (this.message += `${errorDetail}`) : null;
205
+ }
206
+ }
207
+ /**
208
+ * @category Error
209
+ * @description Error indicates an invalid operation hash being passed or used
210
+ */
211
+ class InvalidOperationHashError extends ParameterValidationError {
212
+ constructor(operationHash, errorDetail) {
213
+ super();
214
+ this.operationHash = operationHash;
215
+ this.name = 'InvalidOperationHashError';
216
+ this.message = `Invalid operation hash "${operationHash}"`;
217
+ errorDetail ? (this.message += `${errorDetail}`) : null;
218
+ }
219
+ }
220
+ /**
221
+ * @category Error
222
+ * @description Error indicates an invalid operation kind being passed or used
223
+ */
224
+ class InvalidOperationKindError extends ParameterValidationError {
225
+ constructor(operationKind, errorDetail) {
226
+ super();
227
+ this.operationKind = operationKind;
228
+ this.name = 'InvalidOperationKindError';
229
+ this.message = `Invalid operation kind "${operationKind}"`;
230
+ errorDetail ? (this.message += `${errorDetail}`) : null;
231
+ }
232
+ }
233
+ /**
234
+ * @category Error
235
+ * @description General error that indicates something is no longer supported and/or deprecated
236
+ */
237
+ class DeprecationError extends UnsupportedActionError {
238
+ constructor(message) {
239
+ super();
240
+ this.message = message;
241
+ this.name = 'DeprecationError';
242
+ }
243
+ }
244
+ /**
245
+ * @category Error
246
+ * @description General error that indicates an action is prohibited or not allowed
247
+ */
248
+ class ProhibitedActionError extends UnsupportedActionError {
249
+ constructor(message) {
250
+ super();
251
+ this.message = message;
252
+ this.name = 'ProhibitedActionError';
253
+ }
254
+ }
255
+
256
+ export { DeprecationError, InvalidAddressError, InvalidBlockHashError, InvalidChainIdError, InvalidContractAddressError, InvalidDerivationPathError, InvalidHexStringError, InvalidKeyError, InvalidKeyHashError, InvalidMessageError, InvalidOperationHashError, InvalidOperationKindError, InvalidPublicKeyError, InvalidSignatureError, InvalidViewParameterError, NetworkError, ParameterValidationError, PermissionDeniedError, ProhibitedActionError, RpcError, TaquitoError, TezosToolkitConfigError, UnsupportedActionError };
257
+ //# sourceMappingURL=taquito-core.es6.js.map
@@ -0,0 +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 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,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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BAAsB,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;;;;"}
@@ -0,0 +1,289 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoCore = {}));
5
+ })(this, (function (exports) { 'use strict';
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 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 indicates TezosToolKit has not been configured appropriately
31
+ */
32
+ class TezosToolkitConfigError extends TaquitoError {
33
+ }
34
+ /**
35
+ * @category Error
36
+ * @description Error 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 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 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.name = 'InvalidAddressError';
64
+ this.message = `Invalid address "${address}"`;
65
+ errorDetail ? (this.message += `${errorDetail}`) : null;
66
+ }
67
+ }
68
+ /**
69
+ * @category Error
70
+ * @description Error indicates an invalid block hash being passed or used
71
+ */
72
+ class InvalidBlockHashError extends ParameterValidationError {
73
+ constructor(blockHash, errorDetail) {
74
+ super();
75
+ this.blockHash = blockHash;
76
+ this.name = 'InvalidBlockHashError';
77
+ this.message = `Invalid block hash "${blockHash}"`;
78
+ errorDetail ? (this.message += `${errorDetail}`) : null;
79
+ }
80
+ }
81
+ /**
82
+ * @category Error
83
+ * @description Error indicates an invalid derivation path being passed or used
84
+ */
85
+ class InvalidDerivationPathError extends ParameterValidationError {
86
+ constructor(derivationPath, errorDetail) {
87
+ super();
88
+ this.derivationPath = derivationPath;
89
+ this.name = 'InvalidDerivationPathError';
90
+ this.message = `Invalid derivation path "${derivationPath}"`;
91
+ errorDetail ? (this.message += `${errorDetail}`) : null;
92
+ }
93
+ }
94
+ /**
95
+ * @category Error
96
+ * @description Error indicates an invalid hex string have been passed or used
97
+ */
98
+ class InvalidHexStringError extends ParameterValidationError {
99
+ constructor(hexString, errorDetail) {
100
+ super();
101
+ this.hexString = hexString;
102
+ this.name = 'InvalidHexStringError';
103
+ this.message = `Invalid hex string "${hexString}"`;
104
+ errorDetail ? (this.message += `${errorDetail}`) : null;
105
+ }
106
+ }
107
+ /**
108
+ * @category Error
109
+ * @description Error that indicates an invalid message being passed or used
110
+ */
111
+ class InvalidMessageError extends ParameterValidationError {
112
+ constructor(msg, errorDetail) {
113
+ super();
114
+ this.msg = msg;
115
+ this.name = 'InvalidMessageError';
116
+ this.message = `Invalid message "${msg}"`;
117
+ errorDetail ? (this.message += `${errorDetail}`) : null;
118
+ }
119
+ }
120
+ /**
121
+ * @category Error
122
+ * @description Error indicates invalid view parameter of a smart contract
123
+ */
124
+ class InvalidViewParameterError extends ParameterValidationError {
125
+ constructor(viewName, sigs, args, cause) {
126
+ super();
127
+ this.viewName = viewName;
128
+ this.sigs = sigs;
129
+ this.args = args;
130
+ this.cause = cause;
131
+ this.name = 'InvalidViewParameterError';
132
+ this.message = `Invalid view arguments ${JSON.stringify(args)} received for name "${viewName}" expecting one of the following signatures ${JSON.stringify(sigs)}`;
133
+ }
134
+ }
135
+ /**
136
+ * @category Error
137
+ * @description Error indicates an invalid private key being passed or used
138
+ */
139
+ class InvalidKeyError extends ParameterValidationError {
140
+ constructor(errorDetail) {
141
+ super();
142
+ this.errorDetail = errorDetail;
143
+ this.name = 'InvalidKeyError';
144
+ this.message = `Invalid private key`;
145
+ errorDetail ? (this.message += `${errorDetail}`) : null;
146
+ }
147
+ }
148
+ /**
149
+ * @category Error
150
+ * @description Error indicates an Invalid Public Key being passed or used
151
+ */
152
+ class InvalidPublicKeyError extends ParameterValidationError {
153
+ constructor(publicKey, errorDetail) {
154
+ super();
155
+ this.publicKey = publicKey;
156
+ this.name = 'InvalidPublicKeyError';
157
+ this.message = `Invalid public key "${publicKey}"`;
158
+ errorDetail ? (this.message += `${errorDetail}`) : null;
159
+ }
160
+ }
161
+ /**
162
+ * @category Error
163
+ * @description Error indicates an invalid signature being passed or used
164
+ */
165
+ class InvalidSignatureError extends ParameterValidationError {
166
+ constructor(signature, errorDetail) {
167
+ super();
168
+ this.signature = signature;
169
+ this.name = 'InvalidSignatureError';
170
+ this.message = `Invalid signature "${signature}"`;
171
+ errorDetail ? (this.message += `${errorDetail}`) : null;
172
+ }
173
+ }
174
+ /**
175
+ * @category Error
176
+ * @description Error indicates an invalid contract address being passed or used
177
+ */
178
+ class InvalidContractAddressError extends ParameterValidationError {
179
+ constructor(contractAddress, errorDetail) {
180
+ super();
181
+ this.contractAddress = contractAddress;
182
+ this.name = 'InvalidContractAddressError';
183
+ this.message = `Invalid contract address "${contractAddress}"`;
184
+ errorDetail ? (this.message += `${errorDetail}`) : null;
185
+ }
186
+ }
187
+ /**
188
+ * @category Error
189
+ * @description Error indicates an invalid chain id being passed or used
190
+ */
191
+ class InvalidChainIdError extends ParameterValidationError {
192
+ constructor(chainId, errorDetail) {
193
+ super();
194
+ this.chainId = chainId;
195
+ this.name = 'InvalidChainIdError';
196
+ this.message = `Invalid chain id "${chainId}"`;
197
+ errorDetail ? (this.message += `${errorDetail}`) : null;
198
+ }
199
+ }
200
+ /**
201
+ * @category Error
202
+ * @description Error indicates an invalid public key hash being passed or used
203
+ */
204
+ class InvalidKeyHashError extends ParameterValidationError {
205
+ constructor(keyHash, errorDetail) {
206
+ super();
207
+ this.keyHash = keyHash;
208
+ this.name = 'InvalidKeyHashError';
209
+ this.message = `Invalid public key hash "${keyHash}"`;
210
+ errorDetail ? (this.message += `${errorDetail}`) : null;
211
+ }
212
+ }
213
+ /**
214
+ * @category Error
215
+ * @description Error indicates an invalid operation hash being passed or used
216
+ */
217
+ class InvalidOperationHashError extends ParameterValidationError {
218
+ constructor(operationHash, errorDetail) {
219
+ super();
220
+ this.operationHash = operationHash;
221
+ this.name = 'InvalidOperationHashError';
222
+ this.message = `Invalid operation hash "${operationHash}"`;
223
+ errorDetail ? (this.message += `${errorDetail}`) : null;
224
+ }
225
+ }
226
+ /**
227
+ * @category Error
228
+ * @description Error indicates an invalid operation kind being passed or used
229
+ */
230
+ class InvalidOperationKindError extends ParameterValidationError {
231
+ constructor(operationKind, errorDetail) {
232
+ super();
233
+ this.operationKind = operationKind;
234
+ this.name = 'InvalidOperationKindError';
235
+ this.message = `Invalid operation kind "${operationKind}"`;
236
+ errorDetail ? (this.message += `${errorDetail}`) : null;
237
+ }
238
+ }
239
+ /**
240
+ * @category Error
241
+ * @description General error that indicates something is no longer supported and/or deprecated
242
+ */
243
+ class DeprecationError extends UnsupportedActionError {
244
+ constructor(message) {
245
+ super();
246
+ this.message = message;
247
+ this.name = 'DeprecationError';
248
+ }
249
+ }
250
+ /**
251
+ * @category Error
252
+ * @description General error that indicates an action is prohibited or not allowed
253
+ */
254
+ class ProhibitedActionError extends UnsupportedActionError {
255
+ constructor(message) {
256
+ super();
257
+ this.message = message;
258
+ this.name = 'ProhibitedActionError';
259
+ }
260
+ }
261
+
262
+ exports.DeprecationError = DeprecationError;
263
+ exports.InvalidAddressError = InvalidAddressError;
264
+ exports.InvalidBlockHashError = InvalidBlockHashError;
265
+ exports.InvalidChainIdError = InvalidChainIdError;
266
+ exports.InvalidContractAddressError = InvalidContractAddressError;
267
+ exports.InvalidDerivationPathError = InvalidDerivationPathError;
268
+ exports.InvalidHexStringError = InvalidHexStringError;
269
+ exports.InvalidKeyError = InvalidKeyError;
270
+ exports.InvalidKeyHashError = InvalidKeyHashError;
271
+ exports.InvalidMessageError = InvalidMessageError;
272
+ exports.InvalidOperationHashError = InvalidOperationHashError;
273
+ exports.InvalidOperationKindError = InvalidOperationKindError;
274
+ exports.InvalidPublicKeyError = InvalidPublicKeyError;
275
+ exports.InvalidSignatureError = InvalidSignatureError;
276
+ exports.InvalidViewParameterError = InvalidViewParameterError;
277
+ exports.NetworkError = NetworkError;
278
+ exports.ParameterValidationError = ParameterValidationError;
279
+ exports.PermissionDeniedError = PermissionDeniedError;
280
+ exports.ProhibitedActionError = ProhibitedActionError;
281
+ exports.RpcError = RpcError;
282
+ exports.TaquitoError = TaquitoError;
283
+ exports.TezosToolkitConfigError = TezosToolkitConfigError;
284
+ exports.UnsupportedActionError = UnsupportedActionError;
285
+
286
+ Object.defineProperty(exports, '__esModule', { value: true });
287
+
288
+ }));
289
+ //# sourceMappingURL=taquito-core.umd.js.map
@@ -0,0 +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 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;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,uBA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Ae,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,173 @@
1
+ /**
2
+ * @category Error
3
+ * @description Parent error class all taquito errors to extend from
4
+ */
5
+ export declare class TaquitoError extends Error {
6
+ }
7
+ /**
8
+ * @category Error
9
+ * @description Error indicates invalid user inputs
10
+ */
11
+ export declare class ParameterValidationError extends TaquitoError {
12
+ }
13
+ /**
14
+ * @category Error
15
+ * @description Error returned by RPC node
16
+ */
17
+ export declare class RpcError extends TaquitoError {
18
+ }
19
+ /**
20
+ * @category Error
21
+ * @description Error indicates TezosToolKit has not been configured appropriately
22
+ */
23
+ export declare class TezosToolkitConfigError extends TaquitoError {
24
+ }
25
+ /**
26
+ * @category Error
27
+ * @description Error indicates a requested action is not supported by Taquito
28
+ */
29
+ export declare class UnsupportedActionError extends TaquitoError {
30
+ }
31
+ /**
32
+ * @category Error
33
+ * @description Error during a network operation
34
+ */
35
+ export declare class NetworkError extends TaquitoError {
36
+ }
37
+ /**
38
+ * @category Error
39
+ * @description Error indicates user attempts an action without necessary permissions
40
+ */
41
+ export declare class PermissionDeniedError extends TaquitoError {
42
+ }
43
+ /**
44
+ * @category Error
45
+ * @description Error indicates an invalid originated or implicit address being passed or used
46
+ */
47
+ export declare class InvalidAddressError extends ParameterValidationError {
48
+ address: string;
49
+ constructor(address: string, errorDetail?: string);
50
+ }
51
+ /**
52
+ * @category Error
53
+ * @description Error indicates an invalid block hash being passed or used
54
+ */
55
+ export declare class InvalidBlockHashError extends ParameterValidationError {
56
+ blockHash: string;
57
+ constructor(blockHash: string, errorDetail?: string);
58
+ }
59
+ /**
60
+ * @category Error
61
+ * @description Error indicates an invalid derivation path being passed or used
62
+ */
63
+ export declare class InvalidDerivationPathError extends ParameterValidationError {
64
+ derivationPath: string;
65
+ constructor(derivationPath: string, errorDetail?: string);
66
+ }
67
+ /**
68
+ * @category Error
69
+ * @description Error indicates an invalid hex string have been passed or used
70
+ */
71
+ export declare class InvalidHexStringError extends ParameterValidationError {
72
+ hexString: string;
73
+ constructor(hexString: string, errorDetail?: string);
74
+ }
75
+ /**
76
+ * @category Error
77
+ * @description Error that indicates an invalid message being passed or used
78
+ */
79
+ export declare class InvalidMessageError extends ParameterValidationError {
80
+ msg: string;
81
+ constructor(msg: string, errorDetail?: string);
82
+ }
83
+ /**
84
+ * @category Error
85
+ * @description Error indicates invalid view parameter of a smart contract
86
+ */
87
+ export declare class InvalidViewParameterError extends ParameterValidationError {
88
+ viewName: string;
89
+ sigs: any;
90
+ args: any;
91
+ cause?: any;
92
+ constructor(viewName: string, sigs: any, args: any, cause?: any);
93
+ }
94
+ /**
95
+ * @category Error
96
+ * @description Error indicates an invalid private key being passed or used
97
+ */
98
+ export declare class InvalidKeyError extends ParameterValidationError {
99
+ errorDetail?: string | undefined;
100
+ constructor(errorDetail?: string | undefined);
101
+ }
102
+ /**
103
+ * @category Error
104
+ * @description Error indicates an Invalid Public Key being passed or used
105
+ */
106
+ export declare class InvalidPublicKeyError extends ParameterValidationError {
107
+ publicKey: string;
108
+ constructor(publicKey: string, errorDetail?: string);
109
+ }
110
+ /**
111
+ * @category Error
112
+ * @description Error indicates an invalid signature being passed or used
113
+ */
114
+ export declare class InvalidSignatureError extends ParameterValidationError {
115
+ signature: string;
116
+ constructor(signature: string, errorDetail?: string);
117
+ }
118
+ /**
119
+ * @category Error
120
+ * @description Error indicates an invalid contract address being passed or used
121
+ */
122
+ export declare class InvalidContractAddressError extends ParameterValidationError {
123
+ contractAddress: string;
124
+ constructor(contractAddress: string, errorDetail?: string);
125
+ }
126
+ /**
127
+ * @category Error
128
+ * @description Error indicates an invalid chain id being passed or used
129
+ */
130
+ export declare class InvalidChainIdError extends ParameterValidationError {
131
+ chainId: string;
132
+ constructor(chainId: string, errorDetail?: string);
133
+ }
134
+ /**
135
+ * @category Error
136
+ * @description Error indicates an invalid public key hash being passed or used
137
+ */
138
+ export declare class InvalidKeyHashError extends ParameterValidationError {
139
+ keyHash: string;
140
+ constructor(keyHash: string, errorDetail?: string);
141
+ }
142
+ /**
143
+ * @category Error
144
+ * @description Error indicates an invalid operation hash being passed or used
145
+ */
146
+ export declare class InvalidOperationHashError extends ParameterValidationError {
147
+ operationHash: string;
148
+ constructor(operationHash: string, errorDetail?: string);
149
+ }
150
+ /**
151
+ * @category Error
152
+ * @description Error indicates an invalid operation kind being passed or used
153
+ */
154
+ export declare class InvalidOperationKindError extends ParameterValidationError {
155
+ operationKind: string;
156
+ constructor(operationKind: string, errorDetail?: string);
157
+ }
158
+ /**
159
+ * @category Error
160
+ * @description General error that indicates something is no longer supported and/or deprecated
161
+ */
162
+ export declare class DeprecationError extends UnsupportedActionError {
163
+ message: string;
164
+ constructor(message: string);
165
+ }
166
+ /**
167
+ * @category Error
168
+ * @description General error that indicates an action is prohibited or not allowed
169
+ */
170
+ export declare class ProhibitedActionError extends UnsupportedActionError {
171
+ message: string;
172
+ constructor(message: string);
173
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * @module @taquito/core
4
+ */
5
+ export * from './errors';
@@ -0,0 +1,4 @@
1
+ export declare const VERSION: {
2
+ commitHash: string;
3
+ version: string;
4
+ };
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@taquito/core",
3
+ "version": "16.2.0-beta-RC.0",
4
+ "description": "Classes, interfaces, and types shared across Taquito packages",
5
+ "keywords": [
6
+ "tezos",
7
+ "blockchain"
8
+ ],
9
+ "main": "dist/taquito-core.umd.js",
10
+ "module": "dist/taquito-core.es6.js",
11
+ "typings": "dist/types/taquito-core.d.ts",
12
+ "files": [
13
+ "dist",
14
+ "signature.json"
15
+ ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "author": "huianyang <hui-an.yang@ecadlabs.com>",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": ""
23
+ },
24
+ "license": "MIT",
25
+ "engines": {
26
+ "node": ">=16"
27
+ },
28
+ "scripts": {
29
+ "lint": "eslint --ext .js,.ts .",
30
+ "precommit": "lint-staged",
31
+ "prebuild": "rimraf dist",
32
+ "version-stamp": "node ../taquito/version-stamping.js",
33
+ "build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts",
34
+ "start": "rollup -c rollup.config.ts -w",
35
+ "test": "jest"
36
+ },
37
+ "lint-staged": {
38
+ "{src,test}/**/*.ts": [
39
+ "prettier --write",
40
+ "eslint --fix",
41
+ "git add"
42
+ ]
43
+ },
44
+ "jest": {
45
+ "transform": {
46
+ ".(ts|tsx)": "ts-jest"
47
+ },
48
+ "testEnvironment": "node",
49
+ "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
50
+ "moduleFileExtensions": [
51
+ "ts",
52
+ "tsx",
53
+ "js"
54
+ ],
55
+ "coveragePathIgnorePatterns": [
56
+ "/node_modules/",
57
+ "/test/"
58
+ ],
59
+ "collectCoverageFrom": [
60
+ "src/**/*.{js,ts}"
61
+ ]
62
+ },
63
+ "gitHead": "a909a1e61a626eb5a2e9ad269a80a96aceff4e28"
64
+ }