@taquito/michel-codec 15.1.0 → 16.0.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/binary.js +2 -0
- package/dist/lib/binary.js.map +1 -1
- package/dist/lib/michelson-typecheck.js +14 -10
- package/dist/lib/michelson-typecheck.js.map +1 -1
- package/dist/lib/michelson-types.js +5 -1
- package/dist/lib/michelson-types.js.map +1 -1
- package/dist/lib/michelson-validator.js +2 -0
- package/dist/lib/michelson-validator.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-michel-codec.es6.js +25 -13
- package/dist/taquito-michel-codec.es6.js.map +1 -1
- package/dist/taquito-michel-codec.umd.js +25 -13
- package/dist/taquito-michel-codec.umd.js.map +1 -1
- package/dist/types/michelson-types.d.ts +3 -1
- package/package.json +4 -4
- package/signature.json +2 -2
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
Protocol["PtJakart2"] = "PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY";
|
|
157
157
|
Protocol["PtKathman"] = "PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg";
|
|
158
158
|
Protocol["PtLimaPtL"] = "PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW";
|
|
159
|
+
Protocol["PtMumbaii"] = "PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc";
|
|
160
|
+
Protocol["PtMumbai2"] = "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1";
|
|
159
161
|
Protocol["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
|
|
160
162
|
})(exports.Protocol || (exports.Protocol = {}));
|
|
161
163
|
const DefaultProtocol = exports.Protocol.Psithaca2;
|
|
@@ -181,7 +183,9 @@
|
|
|
181
183
|
PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY: 13,
|
|
182
184
|
PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg: 14,
|
|
183
185
|
PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW: 15,
|
|
184
|
-
|
|
186
|
+
PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc: 16,
|
|
187
|
+
PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1: 16,
|
|
188
|
+
ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK: 17,
|
|
185
189
|
};
|
|
186
190
|
function ProtoGreaterOfEqual(a, b) {
|
|
187
191
|
return protoLevel[a] >= protoLevel[b];
|
|
@@ -1952,6 +1956,8 @@
|
|
|
1952
1956
|
OPEN_CHEST: true,
|
|
1953
1957
|
SUB_MUTEZ: true,
|
|
1954
1958
|
MIN_BLOCK_TIME: true,
|
|
1959
|
+
BYTES: true,
|
|
1960
|
+
NAT: true,
|
|
1955
1961
|
};
|
|
1956
1962
|
const instructionIDs = Object.assign({}, noArgInstructionIDs, {
|
|
1957
1963
|
CONTRACT: true,
|
|
@@ -2857,6 +2863,8 @@
|
|
|
2857
2863
|
'Lambda_rec',
|
|
2858
2864
|
'LAMBDA_REC',
|
|
2859
2865
|
'TICKET',
|
|
2866
|
+
'BYTES',
|
|
2867
|
+
'NAT',
|
|
2860
2868
|
];
|
|
2861
2869
|
const primTags = Object.assign({}, ...primitives.map((v, i) => ({ [v]: i })));
|
|
2862
2870
|
var Tag;
|
|
@@ -4823,8 +4831,14 @@
|
|
|
4823
4831
|
args(0, ['int']);
|
|
4824
4832
|
return [annotateVar({ prim: 'option', args: [{ prim: 'nat' }] }), ...stack.slice(1)];
|
|
4825
4833
|
case 'INT':
|
|
4826
|
-
args(0, ['nat', 'bls12_381_fr']);
|
|
4834
|
+
args(0, ['nat', 'bls12_381_fr', 'bytes']);
|
|
4827
4835
|
return [annotateVar({ prim: 'int' }), ...stack.slice(1)];
|
|
4836
|
+
case 'BYTES':
|
|
4837
|
+
args(0, ['nat', 'int']);
|
|
4838
|
+
return [annotateVar({ prim: 'bytes' }), ...stack.slice(1)];
|
|
4839
|
+
case 'NAT':
|
|
4840
|
+
args(0, ['bytes']);
|
|
4841
|
+
return [annotateVar({ prim: 'nat' }), ...stack.slice(1)];
|
|
4828
4842
|
case 'NEG': {
|
|
4829
4843
|
const s = args(0, ['nat', 'int', 'bls12_381_g1', 'bls12_381_g2', 'bls12_381_fr'])[0];
|
|
4830
4844
|
if (s.prim === 'nat' || s.prim === 'int') {
|
|
@@ -4834,25 +4848,25 @@
|
|
|
4834
4848
|
}
|
|
4835
4849
|
case 'LSL':
|
|
4836
4850
|
case 'LSR':
|
|
4837
|
-
args(0, ['nat'], ['nat']);
|
|
4851
|
+
args(0, ['nat', 'bytes'], ['nat', 'bytes']);
|
|
4838
4852
|
return [annotateVar({ prim: 'nat' }), ...stack.slice(2)];
|
|
4839
4853
|
case 'OR':
|
|
4840
4854
|
case 'XOR': {
|
|
4841
|
-
const s = args(0, ['nat', 'bool'], ['nat', 'bool']);
|
|
4855
|
+
const s = args(0, ['nat', 'bytes', 'bool'], ['nat', 'bytes', 'bool']);
|
|
4842
4856
|
if (s[0].prim !== s[1].prim) {
|
|
4843
4857
|
throw new MichelsonInstructionError(instruction, stack, `${instruction.prim}: both arguments must be of the same type: ${s[0].prim}, ${s[1].prim}`);
|
|
4844
4858
|
}
|
|
4845
4859
|
return [annotateVar(s[1]), ...stack.slice(2)];
|
|
4846
4860
|
}
|
|
4847
4861
|
case 'AND': {
|
|
4848
|
-
const s = args(0, ['nat', 'bool', 'int'], ['nat', 'bool']);
|
|
4862
|
+
const s = args(0, ['nat', 'bytes', 'bool', 'int'], ['nat', 'bytes', 'bool']);
|
|
4849
4863
|
if ((s[0].prim !== 'int' || s[1].prim !== 'nat') && s[0].prim !== s[1].prim) {
|
|
4850
4864
|
throw new MichelsonInstructionError(instruction, stack, `${instruction.prim}: both arguments must be of the same type: ${s[0].prim}, ${s[1].prim}`);
|
|
4851
4865
|
}
|
|
4852
4866
|
return [annotateVar(s[1]), ...stack.slice(2)];
|
|
4853
4867
|
}
|
|
4854
4868
|
case 'NOT': {
|
|
4855
|
-
const s = args(0, ['nat', 'bool', 'int'])[0];
|
|
4869
|
+
const s = args(0, ['nat', 'bytes', 'bool', 'int'])[0];
|
|
4856
4870
|
if (s.prim === 'bool') {
|
|
4857
4871
|
return [annotateVar({ prim: 'bool' }), ...stack.slice(1)];
|
|
4858
4872
|
}
|
|
@@ -5211,7 +5225,7 @@
|
|
|
5211
5225
|
assertTypeAnnotationsValid(instruction.args[0]);
|
|
5212
5226
|
assertTypeAnnotationsValid(instruction.args[1]);
|
|
5213
5227
|
const s = [instruction.args[0]];
|
|
5214
|
-
if (instruction.prim ===
|
|
5228
|
+
if (instruction.prim === 'LAMBDA_REC') {
|
|
5215
5229
|
s.push({ prim: 'lambda', args: [instruction.args[0], instruction.args[1]] });
|
|
5216
5230
|
}
|
|
5217
5231
|
const body = functionTypeInternal(instruction.args[2], s, Object.assign(Object.assign({}, ctx), { contract: undefined }));
|
|
@@ -5247,11 +5261,9 @@
|
|
|
5247
5261
|
return [
|
|
5248
5262
|
annotateVar({
|
|
5249
5263
|
prim: 'option',
|
|
5250
|
-
args: [
|
|
5251
|
-
annotate({ prim: 'ticket', args: [s] }, instructionAnn({ t: 1, v: 1 }))
|
|
5252
|
-
]
|
|
5264
|
+
args: [annotate({ prim: 'ticket', args: [s] }, instructionAnn({ t: 1, v: 1 }))],
|
|
5253
5265
|
}),
|
|
5254
|
-
...stack.slice(2)
|
|
5266
|
+
...stack.slice(2),
|
|
5255
5267
|
];
|
|
5256
5268
|
}
|
|
5257
5269
|
}
|
|
@@ -5704,8 +5716,8 @@ ${err.data
|
|
|
5704
5716
|
|
|
5705
5717
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5706
5718
|
const VERSION = {
|
|
5707
|
-
"commitHash": "
|
|
5708
|
-
"version": "
|
|
5719
|
+
"commitHash": "49a724eb9d4947e2aed19bfa1462fa7ae7848add",
|
|
5720
|
+
"version": "16.0.0"
|
|
5709
5721
|
};
|
|
5710
5722
|
|
|
5711
5723
|
exports.Contract = Contract;
|