@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
package/dist/lib/version.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "
|
|
6
|
+
"commitHash": "6d90b3d5e616a6e9b9ad9dd8453b5068e7396fff",
|
|
7
|
+
"version": "13.0.1"
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
|
@@ -1779,6 +1779,8 @@ const tezosPrefix = {
|
|
|
1779
1779
|
P256Signature: [64, [54, 240, 44, 52]],
|
|
1780
1780
|
GenericSignature: [64, [4, 130, 43]],
|
|
1781
1781
|
ChainID: [4, [87, 82, 0]],
|
|
1782
|
+
RollupAddress: [20, [1, 128, 120, 31]],
|
|
1783
|
+
TxRollupL2Address: [20, [6, 161, 166]],
|
|
1782
1784
|
};
|
|
1783
1785
|
function checkDecodeTezosID(id, ...types) {
|
|
1784
1786
|
const buf = decodeBase58Check(id);
|
|
@@ -1938,6 +1940,7 @@ const noArgInstructionIDs = {
|
|
|
1938
1940
|
RENAME: true,
|
|
1939
1941
|
OPEN_CHEST: true,
|
|
1940
1942
|
SUB_MUTEZ: true,
|
|
1943
|
+
MIN_BLOCK_TIME: true,
|
|
1941
1944
|
};
|
|
1942
1945
|
const instructionIDs = Object.assign({}, noArgInstructionIDs, {
|
|
1943
1946
|
CONTRACT: true,
|
|
@@ -1988,6 +1991,7 @@ const simpleComparableTypeIDs = {
|
|
|
1988
1991
|
signature: true,
|
|
1989
1992
|
timestamp: true,
|
|
1990
1993
|
address: true,
|
|
1994
|
+
tx_rollup_l2_address: true,
|
|
1991
1995
|
};
|
|
1992
1996
|
const typeIDs = Object.assign({}, simpleComparableTypeIDs, {
|
|
1993
1997
|
or: true,
|
|
@@ -2534,6 +2538,9 @@ function assertMichelsonContract(ex) {
|
|
|
2534
2538
|
if (assertArgs(sec, 1)) {
|
|
2535
2539
|
assertMichelsonPassableType(sec.args[0]);
|
|
2536
2540
|
}
|
|
2541
|
+
if (sec.annots) {
|
|
2542
|
+
throw new MichelsonValidationError(sec, 'Annotation must be part of the parameter type');
|
|
2543
|
+
}
|
|
2537
2544
|
break;
|
|
2538
2545
|
case 'storage':
|
|
2539
2546
|
if (assertArgs(sec, 1)) {
|
|
@@ -2637,7 +2644,7 @@ function assertDataListIfAny(d) {
|
|
|
2637
2644
|
return true;
|
|
2638
2645
|
}
|
|
2639
2646
|
|
|
2640
|
-
|
|
2647
|
+
/******************************************************************************
|
|
2641
2648
|
Copyright (c) Microsoft Corporation.
|
|
2642
2649
|
|
|
2643
2650
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -4101,7 +4108,7 @@ function assertDataValidInternal(d, t, ctx) {
|
|
|
4101
4108
|
// trim entry point
|
|
4102
4109
|
address = d.string.slice(0, ep);
|
|
4103
4110
|
}
|
|
4104
|
-
if (checkDecodeTezosID(address, 'ED25519PublicKeyHash', 'SECP256K1PublicKeyHash', 'P256PublicKeyHash', 'ContractHash') !== null) {
|
|
4111
|
+
if (checkDecodeTezosID(address, 'ED25519PublicKeyHash', 'SECP256K1PublicKeyHash', 'P256PublicKeyHash', 'ContractHash', 'TxRollupL2Address', 'RollupAddress') !== null) {
|
|
4105
4112
|
return;
|
|
4106
4113
|
}
|
|
4107
4114
|
}
|
|
@@ -5307,6 +5314,8 @@ function functionTypeInternal(inst, stack, ctx) {
|
|
|
5307
5314
|
ensurePushableType(s[0]);
|
|
5308
5315
|
return [annotateVar({ prim: 'option', args: [instruction.args[1]] }), ...stack.slice(2)];
|
|
5309
5316
|
}
|
|
5317
|
+
case 'MIN_BLOCK_TIME':
|
|
5318
|
+
return [annotateVar({ prim: 'nat' }), ...stack];
|
|
5310
5319
|
default:
|
|
5311
5320
|
throw new MichelsonError(instruction, `unexpected instruction: ${instruction.prim}`);
|
|
5312
5321
|
}
|
|
@@ -5630,8 +5639,8 @@ ${err.data
|
|
|
5630
5639
|
|
|
5631
5640
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5632
5641
|
const VERSION = {
|
|
5633
|
-
"commitHash": "
|
|
5634
|
-
"version": "
|
|
5642
|
+
"commitHash": "6d90b3d5e616a6e9b9ad9dd8453b5068e7396fff",
|
|
5643
|
+
"version": "13.0.1"
|
|
5635
5644
|
};
|
|
5636
5645
|
|
|
5637
5646
|
export { Contract, DefaultProtocol, JSONParseError, MacroError, MichelineParseError, MichelsonError, MichelsonInstructionError, MichelsonTypeError, MichelsonValidationError, Parser, ProtoGreaterOfEqual, ProtoInferiorTo, Protocol, VERSION, assertContractValid, assertDataListIfAny, assertDataValid, assertMichelsonBigMapStorableType, assertMichelsonComparableType, assertMichelsonContract, assertMichelsonData, assertMichelsonInstruction, assertMichelsonPackableType, assertMichelsonPassableType, assertMichelsonPushableType, assertMichelsonStorableType, assertMichelsonType, assertTypeAnnotationsValid, assertTypesEqual, assertViewNameValid, contractEntryPoint, contractEntryPoints, contractSection, contractViews, decodeAddressBytes, decodePublicKeyBytes, decodePublicKeyHashBytes, dummyContract, emitMicheline, formatError, formatStack, functionType, instructionIDs, isContractValid, isDataValid, isInstruction, isMichelsonCode, isMichelsonData, isMichelsonError, isMichelsonScript, isMichelsonType, isTypeAnnotationsValid, isTypeEqual, packData, packDataBytes, refContract, sourceReference, traceDumpFunc, unpackData, unpackDataBytes };
|