@taquito/local-forging 17.1.1 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/constants.js +2 -0
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/decoder.js +1 -0
- package/dist/lib/decoder.js.map +1 -1
- package/dist/lib/encoder.js +1 -0
- package/dist/lib/encoder.js.map +1 -1
- package/dist/lib/errors.js +12 -12
- package/dist/lib/schema/operation.js +4 -1
- package/dist/lib/schema/operation.js.map +1 -1
- package/dist/lib/validator.js +1 -0
- package/dist/lib/validator.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-local-forging.es6.js +23 -15
- package/dist/taquito-local-forging.es6.js.map +1 -1
- package/dist/taquito-local-forging.umd.js +23 -15
- package/dist/taquito-local-forging.umd.js.map +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/errors.d.ts +12 -12
- package/dist/types/schema/operation.d.ts +3 -0
- package/package.json +5 -5
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
CODEC["OP_TRANSACTION"] = "transaction";
|
|
53
53
|
CODEC["OP_ORIGINATION"] = "origination";
|
|
54
54
|
CODEC["OP_BALLOT"] = "ballot";
|
|
55
|
+
CODEC["OP_FAILING_NOOP"] = "failing_noop";
|
|
55
56
|
CODEC["OP_ENDORSEMENT"] = "endorsement";
|
|
56
57
|
CODEC["OP_SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
|
|
57
58
|
CODEC["OP_REVEAL"] = "reveal";
|
|
@@ -263,6 +264,7 @@
|
|
|
263
264
|
0xc8: 'smart_rollup_originate',
|
|
264
265
|
0xc9: 'smart_rollup_add_messages',
|
|
265
266
|
0xce: 'smart_rollup_execute_outbox_message',
|
|
267
|
+
0x11: 'failing_noop',
|
|
266
268
|
};
|
|
267
269
|
const kindMappingReverse = (() => {
|
|
268
270
|
const result = {};
|
|
@@ -291,7 +293,7 @@
|
|
|
291
293
|
|
|
292
294
|
/**
|
|
293
295
|
* @category Error
|
|
294
|
-
* @description Error indicates an invalid operation content being passed or used
|
|
296
|
+
* @description Error that indicates an invalid operation content being passed or used
|
|
295
297
|
*/ class InvalidOperationSchemaError extends core.ParameterValidationError {
|
|
296
298
|
constructor(operation, errorDetail) {
|
|
297
299
|
super();
|
|
@@ -304,7 +306,7 @@
|
|
|
304
306
|
}
|
|
305
307
|
/**
|
|
306
308
|
* @category Error
|
|
307
|
-
* @description Error indicates an entrypoint name exceeding maximum length
|
|
309
|
+
* @description Error that indicates an entrypoint name exceeding maximum length
|
|
308
310
|
*/
|
|
309
311
|
class OversizedEntryPointError extends core.ParameterValidationError {
|
|
310
312
|
constructor(entrypoint) {
|
|
@@ -316,7 +318,7 @@
|
|
|
316
318
|
}
|
|
317
319
|
/**
|
|
318
320
|
* @category Error
|
|
319
|
-
* @description Error indicates an invalid ballot value being used
|
|
321
|
+
* @description Error that indicates an invalid ballot value being used
|
|
320
322
|
*/
|
|
321
323
|
class InvalidBallotValueError extends core.ParameterValidationError {
|
|
322
324
|
constructor(ballotValue) {
|
|
@@ -328,7 +330,7 @@
|
|
|
328
330
|
}
|
|
329
331
|
/**
|
|
330
332
|
* @category Error
|
|
331
|
-
* @description Error indicates a failure when trying to decode ballot value
|
|
333
|
+
* @description Error that indicates a failure when trying to decode ballot value
|
|
332
334
|
*/
|
|
333
335
|
class DecodeBallotValueError extends core.ParameterValidationError {
|
|
334
336
|
constructor(ballotValue) {
|
|
@@ -340,7 +342,7 @@
|
|
|
340
342
|
}
|
|
341
343
|
/**
|
|
342
344
|
* @category Error
|
|
343
|
-
* @description Error indicates unexpected Michelson Value being passed or used
|
|
345
|
+
* @description Error that indicates unexpected Michelson Value being passed or used
|
|
344
346
|
*/
|
|
345
347
|
class UnexpectedMichelsonValueError extends core.ParameterValidationError {
|
|
346
348
|
constructor(value) {
|
|
@@ -352,7 +354,7 @@
|
|
|
352
354
|
}
|
|
353
355
|
/**
|
|
354
356
|
* @category Error
|
|
355
|
-
* @description Error indicates a failure when trying to decode an operation
|
|
357
|
+
* @description Error that indicates a failure when trying to decode an operation
|
|
356
358
|
*/
|
|
357
359
|
class OperationDecodingError extends core.ParameterValidationError {
|
|
358
360
|
constructor(message) {
|
|
@@ -363,7 +365,7 @@
|
|
|
363
365
|
}
|
|
364
366
|
/**
|
|
365
367
|
* @category Error
|
|
366
|
-
* @description Error indicates a failure when trying to encode an operation
|
|
368
|
+
* @description Error that indicates a failure when trying to encode an operation
|
|
367
369
|
*/
|
|
368
370
|
class OperationEncodingError extends core.ParameterValidationError {
|
|
369
371
|
constructor(message) {
|
|
@@ -374,7 +376,7 @@
|
|
|
374
376
|
}
|
|
375
377
|
/**
|
|
376
378
|
* @category Error
|
|
377
|
-
* @description Error indicates an unsupported operation being passed or used
|
|
379
|
+
* @description Error that indicates an unsupported operation being passed or used
|
|
378
380
|
*/
|
|
379
381
|
class UnsupportedOperationError extends core.ParameterValidationError {
|
|
380
382
|
constructor(op) {
|
|
@@ -386,7 +388,7 @@
|
|
|
386
388
|
}
|
|
387
389
|
/**
|
|
388
390
|
* @cateogry Error
|
|
389
|
-
* @description Error indicates an unsupported pvm being passed or used
|
|
391
|
+
* @description Error that indicates an unsupported pvm being passed or used
|
|
390
392
|
*/
|
|
391
393
|
class UnsupportedPvmKindError extends core.ParameterValidationError {
|
|
392
394
|
constructor(pvm) {
|
|
@@ -398,7 +400,7 @@
|
|
|
398
400
|
}
|
|
399
401
|
/**
|
|
400
402
|
* @category Error
|
|
401
|
-
* @description Error indicates an unsupported pvm to decode
|
|
403
|
+
* @description Error that indicates an unsupported pvm to decode
|
|
402
404
|
*/
|
|
403
405
|
class DecodePvmKindError extends core.ParameterValidationError {
|
|
404
406
|
constructor(pvm) {
|
|
@@ -410,7 +412,7 @@
|
|
|
410
412
|
}
|
|
411
413
|
/**
|
|
412
414
|
* @category Error
|
|
413
|
-
* @description Error indicates an invalid Smart Rollup Address (sr1)
|
|
415
|
+
* @description Error that indicates an invalid Smart Rollup Address (sr1)
|
|
414
416
|
*/
|
|
415
417
|
class InvalidSmartRollupAddressError extends core.ParameterValidationError {
|
|
416
418
|
constructor(address, errorDetail) {
|
|
@@ -424,7 +426,7 @@
|
|
|
424
426
|
}
|
|
425
427
|
/**
|
|
426
428
|
* @category Error
|
|
427
|
-
* @description Error indicates an invalid Smart Rollup commitment hash (src1)
|
|
429
|
+
* @description Error that indicates an invalid Smart Rollup commitment hash (src1)
|
|
428
430
|
*/
|
|
429
431
|
class InvalidSmartRollupCommitmentHashError extends core.ParameterValidationError {
|
|
430
432
|
constructor(hash, errorDetail) {
|
|
@@ -1297,6 +1299,9 @@
|
|
|
1297
1299
|
cemented_commitment: exports.CODEC.SMART_ROLLUP_COMMITMENT_HASH,
|
|
1298
1300
|
output_proof: exports.CODEC.PADDED_BYTES,
|
|
1299
1301
|
};
|
|
1302
|
+
const FailingNoopSchema = {
|
|
1303
|
+
arbitrary: exports.CODEC.PADDED_BYTES,
|
|
1304
|
+
};
|
|
1300
1305
|
const operationEncoder = (encoders) => (operation) => {
|
|
1301
1306
|
if (!(operation.kind in encoders) || !(operation.kind in kindMappingReverse)) {
|
|
1302
1307
|
throw new core.InvalidOperationKindError(operation.kind);
|
|
@@ -1396,6 +1401,7 @@
|
|
|
1396
1401
|
};
|
|
1397
1402
|
decoders[exports.CODEC.OPERATION] = operationDecoder(decoders);
|
|
1398
1403
|
decoders[exports.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => schemaDecoder(decoders)(ActivationSchema)(val);
|
|
1404
|
+
decoders[exports.CODEC.OP_FAILING_NOOP] = (val) => schemaDecoder(decoders)(FailingNoopSchema)(val);
|
|
1399
1405
|
decoders[exports.CODEC.OP_DELEGATION] = (val) => schemaDecoder(decoders)(DelegationSchema)(val);
|
|
1400
1406
|
decoders[exports.CODEC.OP_TRANSACTION] = (val) => schemaDecoder(decoders)(TransactionSchema)(val);
|
|
1401
1407
|
decoders[exports.CODEC.OP_ORIGINATION] = (val) => schemaDecoder(decoders)(OriginationSchema)(val);
|
|
@@ -1470,7 +1476,8 @@
|
|
|
1470
1476
|
encoders[exports.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => schemaEncoder(encoders)(SmartRollupAddMessagesSchema)(val);
|
|
1471
1477
|
encoders[exports.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => schemaEncoder(encoders)(SmartRollupExecuteOutboxMessageSchema)(val);
|
|
1472
1478
|
encoders[exports.CODEC.MANAGER] = schemaEncoder(encoders)(ManagerOperationSchema);
|
|
1473
|
-
encoders[exports.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaEncoder(encoders)(SetDepositsLimitSchema)(val);
|
|
1479
|
+
encoders[exports.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaEncoder(encoders)(SetDepositsLimitSchema)(val);
|
|
1480
|
+
encoders[exports.CODEC.OP_FAILING_NOOP] = (val) => schemaEncoder(encoders)(FailingNoopSchema)(val);
|
|
1474
1481
|
|
|
1475
1482
|
const OperationKindMapping = {
|
|
1476
1483
|
activate_account: ActivationSchema,
|
|
@@ -1493,6 +1500,7 @@
|
|
|
1493
1500
|
smart_rollup_originate: SmartRollupOriginateSchema,
|
|
1494
1501
|
smart_rollup_add_messages: SmartRollupAddMessagesSchema,
|
|
1495
1502
|
smart_rollup_execute_outbox_message: SmartRollupExecuteOutboxMessageSchema,
|
|
1503
|
+
failing_noop: FailingNoopSchema,
|
|
1496
1504
|
};
|
|
1497
1505
|
// Asymmetric difference: only account for things in arr2 that are not present in arr1, not vice versa
|
|
1498
1506
|
const getArrayDifference = (arr1, arr2) => {
|
|
@@ -1545,8 +1553,8 @@
|
|
|
1545
1553
|
|
|
1546
1554
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1547
1555
|
const VERSION = {
|
|
1548
|
-
"commitHash": "
|
|
1549
|
-
"version": "17.
|
|
1556
|
+
"commitHash": "b85fc404e34545a518215e449b3f1253f4520eec",
|
|
1557
|
+
"version": "17.2.0"
|
|
1550
1558
|
};
|
|
1551
1559
|
|
|
1552
1560
|
/**
|