@taquito/michel-codec 12.1.1 → 13.0.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/michelson-typecheck.js +3 -1
- package/dist/lib/michelson-typecheck.js.map +1 -1
- package/dist/lib/michelson-types.js.map +1 -1
- package/dist/lib/michelson-validator.js +5 -0
- package/dist/lib/michelson-validator.js.map +1 -1
- package/dist/lib/utils.js +2 -0
- package/dist/lib/utils.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-michel-codec.es6.js +13 -4
- package/dist/taquito-michel-codec.es6.js.map +1 -1
- package/dist/taquito-michel-codec.umd.js +13 -4
- package/dist/taquito-michel-codec.umd.js.map +1 -1
- package/dist/types/michelson-types.d.ts +2 -2
- package/dist/types/utils.d.ts +1 -1
- package/package.json +9 -10
|
@@ -1785,6 +1785,8 @@
|
|
|
1785
1785
|
P256Signature: [64, [54, 240, 44, 52]],
|
|
1786
1786
|
GenericSignature: [64, [4, 130, 43]],
|
|
1787
1787
|
ChainID: [4, [87, 82, 0]],
|
|
1788
|
+
RollupAddress: [20, [1, 128, 120, 31]],
|
|
1789
|
+
TxRollupL2Address: [20, [6, 161, 166]],
|
|
1788
1790
|
};
|
|
1789
1791
|
function checkDecodeTezosID(id, ...types) {
|
|
1790
1792
|
const buf = decodeBase58Check(id);
|
|
@@ -1944,6 +1946,7 @@
|
|
|
1944
1946
|
RENAME: true,
|
|
1945
1947
|
OPEN_CHEST: true,
|
|
1946
1948
|
SUB_MUTEZ: true,
|
|
1949
|
+
MIN_BLOCK_TIME: true,
|
|
1947
1950
|
};
|
|
1948
1951
|
const instructionIDs = Object.assign({}, noArgInstructionIDs, {
|
|
1949
1952
|
CONTRACT: true,
|
|
@@ -1994,6 +1997,7 @@
|
|
|
1994
1997
|
signature: true,
|
|
1995
1998
|
timestamp: true,
|
|
1996
1999
|
address: true,
|
|
2000
|
+
tx_rollup_l2_address: true,
|
|
1997
2001
|
};
|
|
1998
2002
|
const typeIDs = Object.assign({}, simpleComparableTypeIDs, {
|
|
1999
2003
|
or: true,
|
|
@@ -2540,6 +2544,9 @@
|
|
|
2540
2544
|
if (assertArgs(sec, 1)) {
|
|
2541
2545
|
assertMichelsonPassableType(sec.args[0]);
|
|
2542
2546
|
}
|
|
2547
|
+
if (sec.annots) {
|
|
2548
|
+
throw new MichelsonValidationError(sec, 'Annotation must be part of the parameter type');
|
|
2549
|
+
}
|
|
2543
2550
|
break;
|
|
2544
2551
|
case 'storage':
|
|
2545
2552
|
if (assertArgs(sec, 1)) {
|
|
@@ -2643,7 +2650,7 @@
|
|
|
2643
2650
|
return true;
|
|
2644
2651
|
}
|
|
2645
2652
|
|
|
2646
|
-
|
|
2653
|
+
/******************************************************************************
|
|
2647
2654
|
Copyright (c) Microsoft Corporation.
|
|
2648
2655
|
|
|
2649
2656
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -4107,7 +4114,7 @@
|
|
|
4107
4114
|
// trim entry point
|
|
4108
4115
|
address = d.string.slice(0, ep);
|
|
4109
4116
|
}
|
|
4110
|
-
if (checkDecodeTezosID(address, 'ED25519PublicKeyHash', 'SECP256K1PublicKeyHash', 'P256PublicKeyHash', 'ContractHash') !== null) {
|
|
4117
|
+
if (checkDecodeTezosID(address, 'ED25519PublicKeyHash', 'SECP256K1PublicKeyHash', 'P256PublicKeyHash', 'ContractHash', 'TxRollupL2Address', 'RollupAddress') !== null) {
|
|
4111
4118
|
return;
|
|
4112
4119
|
}
|
|
4113
4120
|
}
|
|
@@ -5313,6 +5320,8 @@
|
|
|
5313
5320
|
ensurePushableType(s[0]);
|
|
5314
5321
|
return [annotateVar({ prim: 'option', args: [instruction.args[1]] }), ...stack.slice(2)];
|
|
5315
5322
|
}
|
|
5323
|
+
case 'MIN_BLOCK_TIME':
|
|
5324
|
+
return [annotateVar({ prim: 'nat' }), ...stack];
|
|
5316
5325
|
default:
|
|
5317
5326
|
throw new MichelsonError(instruction, `unexpected instruction: ${instruction.prim}`);
|
|
5318
5327
|
}
|
|
@@ -5636,8 +5645,8 @@ ${err.data
|
|
|
5636
5645
|
|
|
5637
5646
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5638
5647
|
const VERSION = {
|
|
5639
|
-
"commitHash": "
|
|
5640
|
-
"version": "
|
|
5648
|
+
"commitHash": "6d90b3d5e616a6e9b9ad9dd8453b5068e7396fff",
|
|
5649
|
+
"version": "13.0.1"
|
|
5641
5650
|
};
|
|
5642
5651
|
|
|
5643
5652
|
exports.Contract = Contract;
|