@taquito/local-forging 16.0.0 → 16.1.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/codec.js +12 -1
- package/dist/lib/codec.js.map +1 -1
- package/dist/lib/constants.js +3 -0
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/decoder.js +2 -0
- package/dist/lib/decoder.js.map +1 -1
- package/dist/lib/encoder.js +2 -0
- package/dist/lib/encoder.js.map +1 -1
- package/dist/lib/schema/operation.js +9 -1
- package/dist/lib/schema/operation.js.map +1 -1
- package/dist/lib/taquito-local-forging.js +3 -0
- package/dist/lib/taquito-local-forging.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 +32 -4
- package/dist/taquito-local-forging.es6.js.map +1 -1
- package/dist/taquito-local-forging.umd.js +32 -4
- package/dist/taquito-local-forging.umd.js.map +1 -1
- package/dist/types/codec.d.ts +2 -0
- package/dist/types/constants.d.ts +2 -0
- package/dist/types/schema/operation.d.ts +8 -0
- package/package.json +4 -4
|
@@ -67,6 +67,8 @@
|
|
|
67
67
|
CODEC["OP_INCREASE_PAID_STORAGE"] = "increase_paid_storage";
|
|
68
68
|
CODEC["OP_UPDATE_CONSENSUS_KEY"] = "update_consensus_key";
|
|
69
69
|
CODEC["OP_DRAIN_DELEGATE"] = "drain_delegate";
|
|
70
|
+
CODEC["DEPOSITS_LIMIT"] = "deposits_limit";
|
|
71
|
+
CODEC["OP_SET_DEPOSITS_LIMIT"] = "set_deposits_limit";
|
|
70
72
|
CODEC["OP_SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate";
|
|
71
73
|
CODEC["PVM_KIND"] = "pvm_kind";
|
|
72
74
|
CODEC["OP_SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
|
|
@@ -254,6 +256,7 @@
|
|
|
254
256
|
0x96: 'tx_rollup_origination',
|
|
255
257
|
0x97: 'tx_rollup_submit_batch',
|
|
256
258
|
0x9e: 'transfer_ticket',
|
|
259
|
+
0x70: 'set_deposits_limit',
|
|
257
260
|
0x71: 'increase_paid_storage',
|
|
258
261
|
0x72: 'update_consensus_key',
|
|
259
262
|
0x09: 'drain_delegate',
|
|
@@ -1106,6 +1109,15 @@
|
|
|
1106
1109
|
return zarithDecoder(value);
|
|
1107
1110
|
}
|
|
1108
1111
|
};
|
|
1112
|
+
const depositsLimitEncoder = (val) => {
|
|
1113
|
+
return !val ? '00' : `ff${zarithEncoder(val)}`;
|
|
1114
|
+
};
|
|
1115
|
+
const depositsLimitDecoder = (value) => {
|
|
1116
|
+
const prefix = value.consume(1);
|
|
1117
|
+
if (Buffer.from(prefix).toString('hex') !== '00') {
|
|
1118
|
+
return zarithDecoder(value);
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1109
1121
|
const paddedBytesEncoder = (val, paddingLength = 8) => {
|
|
1110
1122
|
return `${pad(val.length / 2, paddingLength)}${val}`;
|
|
1111
1123
|
};
|
|
@@ -1251,6 +1263,14 @@
|
|
|
1251
1263
|
delegate: exports.CODEC.PKH,
|
|
1252
1264
|
destination: exports.CODEC.PKH,
|
|
1253
1265
|
};
|
|
1266
|
+
const SetDepositsLimitSchema = {
|
|
1267
|
+
source: exports.CODEC.PKH,
|
|
1268
|
+
fee: exports.CODEC.ZARITH,
|
|
1269
|
+
counter: exports.CODEC.ZARITH,
|
|
1270
|
+
gas_limit: exports.CODEC.ZARITH,
|
|
1271
|
+
storage_limit: exports.CODEC.ZARITH,
|
|
1272
|
+
limit: exports.CODEC.DEPOSITS_LIMIT,
|
|
1273
|
+
};
|
|
1254
1274
|
const SmartRollupOriginateSchema = {
|
|
1255
1275
|
source: exports.CODEC.PKH,
|
|
1256
1276
|
fee: exports.CODEC.ZARITH,
|
|
@@ -1372,6 +1392,7 @@
|
|
|
1372
1392
|
[exports.CODEC.TX_ROLLUP_ID]: txRollupIdDecoder,
|
|
1373
1393
|
[exports.CODEC.TX_ROLLUP_BATCH_CONTENT]: txRollupBatchContentDecoder,
|
|
1374
1394
|
[exports.CODEC.BURN_LIMIT]: burnLimitDecoder,
|
|
1395
|
+
[exports.CODEC.DEPOSITS_LIMIT]: depositsLimitDecoder,
|
|
1375
1396
|
[exports.CODEC.PVM_KIND]: pvmKindDecoder,
|
|
1376
1397
|
[exports.CODEC.PADDED_BYTES]: paddedBytesDecoder,
|
|
1377
1398
|
[exports.CODEC.SMART_ROLLUP_MESSAGE]: smartRollupMessageDecoder,
|
|
@@ -1396,7 +1417,8 @@
|
|
|
1396
1417
|
decoders[exports.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => schemaDecoder(decoders)(SmartRollupOriginateSchema)(val);
|
|
1397
1418
|
decoders[exports.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => schemaDecoder(decoders)(SmartRollupAddMessagesSchema)(val);
|
|
1398
1419
|
decoders[exports.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => schemaDecoder(decoders)(SmartRollupExecuteOutboxMessageSchema)(val);
|
|
1399
|
-
decoders[exports.CODEC.MANAGER] = schemaDecoder(decoders)(ManagerOperationSchema);
|
|
1420
|
+
decoders[exports.CODEC.MANAGER] = schemaDecoder(decoders)(ManagerOperationSchema);
|
|
1421
|
+
decoders[exports.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaDecoder(decoders)(SetDepositsLimitSchema)(val);
|
|
1400
1422
|
|
|
1401
1423
|
const encoders = {
|
|
1402
1424
|
[exports.CODEC.SECRET]: (val) => val,
|
|
@@ -1425,6 +1447,7 @@
|
|
|
1425
1447
|
[exports.CODEC.TX_ROLLUP_ID]: txRollupIdEncoder,
|
|
1426
1448
|
[exports.CODEC.TX_ROLLUP_BATCH_CONTENT]: txRollupBatchContentEncoder,
|
|
1427
1449
|
[exports.CODEC.BURN_LIMIT]: burnLimitEncoder,
|
|
1450
|
+
[exports.CODEC.DEPOSITS_LIMIT]: depositsLimitEncoder,
|
|
1428
1451
|
[exports.CODEC.PVM_KIND]: pvmKindEncoder,
|
|
1429
1452
|
[exports.CODEC.PADDED_BYTES]: paddedBytesEncoder,
|
|
1430
1453
|
[exports.CODEC.SMART_ROLLUP_MESSAGE]: smartRollupMessageEncoder,
|
|
@@ -1449,7 +1472,8 @@
|
|
|
1449
1472
|
encoders[exports.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => schemaEncoder(encoders)(SmartRollupOriginateSchema)(val);
|
|
1450
1473
|
encoders[exports.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => schemaEncoder(encoders)(SmartRollupAddMessagesSchema)(val);
|
|
1451
1474
|
encoders[exports.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => schemaEncoder(encoders)(SmartRollupExecuteOutboxMessageSchema)(val);
|
|
1452
|
-
encoders[exports.CODEC.MANAGER] = schemaEncoder(encoders)(ManagerOperationSchema);
|
|
1475
|
+
encoders[exports.CODEC.MANAGER] = schemaEncoder(encoders)(ManagerOperationSchema);
|
|
1476
|
+
encoders[exports.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaEncoder(encoders)(SetDepositsLimitSchema)(val);
|
|
1453
1477
|
|
|
1454
1478
|
const OperationKindMapping = {
|
|
1455
1479
|
activate_account: ActivationSchema,
|
|
@@ -1468,6 +1492,7 @@
|
|
|
1468
1492
|
increase_paid_storage: IncreasePaidStorageSchema,
|
|
1469
1493
|
update_consensus_key: UpdateConsensusKeySchema,
|
|
1470
1494
|
drain_delegate: DrainDelegateSchema,
|
|
1495
|
+
set_deposits_limit: SetDepositsLimitSchema,
|
|
1471
1496
|
smart_rollup_originate: SmartRollupOriginateSchema,
|
|
1472
1497
|
smart_rollup_add_messages: SmartRollupAddMessagesSchema,
|
|
1473
1498
|
smart_rollup_execute_outbox_message: SmartRollupExecuteOutboxMessageSchema,
|
|
@@ -1522,8 +1547,8 @@
|
|
|
1522
1547
|
|
|
1523
1548
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1524
1549
|
const VERSION = {
|
|
1525
|
-
"commitHash": "
|
|
1526
|
-
"version": "16.
|
|
1550
|
+
"commitHash": "840f2a29ce4e52826df53e5a1ac879c2deaa433b",
|
|
1551
|
+
"version": "16.1.0"
|
|
1527
1552
|
};
|
|
1528
1553
|
|
|
1529
1554
|
/**
|
|
@@ -1564,6 +1589,9 @@
|
|
|
1564
1589
|
else if (content.kind === 'transaction' && diff[0] === 'parameters') {
|
|
1565
1590
|
continue;
|
|
1566
1591
|
}
|
|
1592
|
+
else if (content.kind === 'set_deposits_limit' && diff[0] === 'limit') {
|
|
1593
|
+
continue;
|
|
1594
|
+
}
|
|
1567
1595
|
else if (content.kind === 'tx_rollup_submit_batch' &&
|
|
1568
1596
|
diff[0] === 'burn_limit') {
|
|
1569
1597
|
continue;
|