@taquito/michel-codec 24.3.0-beta.1 → 24.3.0-beta.2
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/README.md
CHANGED
|
@@ -15,7 +15,7 @@ See the top-level project [https://github.com/ecadlabs/taquito](https://github.c
|
|
|
15
15
|
### Michelson expression to JSON
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
|
-
const code = `(Pair
|
|
18
|
+
const code = `(Pair
|
|
19
19
|
(Pair { Elt 1 (Pair (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") 0x0501000000026869)}
|
|
20
20
|
10000000)
|
|
21
21
|
(Pair 2 333)
|
|
@@ -83,7 +83,7 @@ Type definition allows some types like `timestamp` and `address` and other base5
|
|
|
83
83
|
|
|
84
84
|
```js
|
|
85
85
|
const data: MichelsonData = {
|
|
86
|
-
string: '
|
|
86
|
+
string: 'KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main',
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
const typ: MichelsonType = {
|
|
@@ -91,27 +91,27 @@ const typ: MichelsonType = {
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
const packed = packData(data, typ);
|
|
94
|
-
//
|
|
94
|
+
// 050a0000001a0167ea84b1082efb9619d6ce04e033633906636e1d006d61696e
|
|
95
95
|
|
|
96
96
|
// alternatively
|
|
97
97
|
const packedBytes = packDataBytes(data, typ);
|
|
98
|
-
// { bytes: "
|
|
98
|
+
// { bytes: "050a0000001a0167ea84b1082efb9619d6ce04e033633906636e1d006d61696e" }
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
Without a type definition the base58 encoded address will be treated as a string
|
|
102
102
|
|
|
103
103
|
```js
|
|
104
104
|
const data: MichelsonData = {
|
|
105
|
-
string: '
|
|
105
|
+
string: 'KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main',
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
const packed = packData(data);
|
|
109
|
-
//
|
|
109
|
+
// 0501000000294b54314a344537394631714c366b474253513379584264586d7571356a34464e54684b32256d61696e
|
|
110
110
|
|
|
111
111
|
// alternatively
|
|
112
112
|
const packedBytes = packDataBytes(data);
|
|
113
113
|
// {
|
|
114
|
-
// bytes: "
|
|
114
|
+
// bytes: "0501000000294b54314a344537394631714c366b474253513379584264586d7571356a34464e54684b32256d61696e"
|
|
115
115
|
// }
|
|
116
116
|
```
|
|
117
117
|
|
package/dist/lib/binary.js
CHANGED
|
@@ -901,7 +901,7 @@ const writePassThrough = (e) => {
|
|
|
901
901
|
*
|
|
902
902
|
* ```typescript
|
|
903
903
|
* const data: MichelsonData = {
|
|
904
|
-
* string: "
|
|
904
|
+
* string: "KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main"
|
|
905
905
|
* };
|
|
906
906
|
*
|
|
907
907
|
* const typ: MichelsonType = {
|
|
@@ -910,18 +910,18 @@ const writePassThrough = (e) => {
|
|
|
910
910
|
*
|
|
911
911
|
* const packed = packData(data, typ);
|
|
912
912
|
*
|
|
913
|
-
* //
|
|
913
|
+
* // 050a0000001a0167ea84b1082efb9619d6ce04e033633906636e1d006d61696e
|
|
914
914
|
* ```
|
|
915
915
|
*
|
|
916
916
|
* Without a type definition the base58 encoded address will be treated as a string
|
|
917
917
|
* ```typescript
|
|
918
918
|
* const data: MichelsonData = {
|
|
919
|
-
* string: "
|
|
919
|
+
* string: "KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main"
|
|
920
920
|
* };
|
|
921
921
|
*
|
|
922
922
|
* const packed = packData(data);
|
|
923
923
|
*
|
|
924
|
-
* //
|
|
924
|
+
* // 0501000000294b54314a344537394631714c366b474253513379584264586d7571356a34464e54684b32256d61696e
|
|
925
925
|
* ```
|
|
926
926
|
* @param d Data object
|
|
927
927
|
* @param t Optional type definition
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "24.3.0-beta.
|
|
6
|
+
"commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
|
|
7
|
+
"version": "24.3.0-beta.2"
|
|
8
8
|
};
|
|
@@ -3594,7 +3594,7 @@ const writePassThrough = (e) => {
|
|
|
3594
3594
|
*
|
|
3595
3595
|
* ```typescript
|
|
3596
3596
|
* const data: MichelsonData = {
|
|
3597
|
-
* string: "
|
|
3597
|
+
* string: "KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main"
|
|
3598
3598
|
* };
|
|
3599
3599
|
*
|
|
3600
3600
|
* const typ: MichelsonType = {
|
|
@@ -3603,18 +3603,18 @@ const writePassThrough = (e) => {
|
|
|
3603
3603
|
*
|
|
3604
3604
|
* const packed = packData(data, typ);
|
|
3605
3605
|
*
|
|
3606
|
-
* //
|
|
3606
|
+
* // 050a0000001a0167ea84b1082efb9619d6ce04e033633906636e1d006d61696e
|
|
3607
3607
|
* ```
|
|
3608
3608
|
*
|
|
3609
3609
|
* Without a type definition the base58 encoded address will be treated as a string
|
|
3610
3610
|
* ```typescript
|
|
3611
3611
|
* const data: MichelsonData = {
|
|
3612
|
-
* string: "
|
|
3612
|
+
* string: "KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main"
|
|
3613
3613
|
* };
|
|
3614
3614
|
*
|
|
3615
3615
|
* const packed = packData(data);
|
|
3616
3616
|
*
|
|
3617
|
-
* //
|
|
3617
|
+
* // 0501000000294b54314a344537394631714c366b474253513379584264586d7571356a34464e54684b32256d61696e
|
|
3618
3618
|
* ```
|
|
3619
3619
|
* @param d Data object
|
|
3620
3620
|
* @param t Optional type definition
|
|
@@ -5758,8 +5758,8 @@ ${err.data
|
|
|
5758
5758
|
|
|
5759
5759
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5760
5760
|
const VERSION = {
|
|
5761
|
-
"commitHash": "
|
|
5762
|
-
"version": "24.3.0-beta.
|
|
5761
|
+
"commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
|
|
5762
|
+
"version": "24.3.0-beta.2"
|
|
5763
5763
|
};
|
|
5764
5764
|
|
|
5765
5765
|
export { Contract, DefaultProtocol, JSONParseError, MacroError, MichelineParseError, MichelsonError, MichelsonInstructionError, MichelsonTypeError, MichelsonValidationError, Parser, ProtoGreaterOrEqual, 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 };
|
|
@@ -3598,7 +3598,7 @@
|
|
|
3598
3598
|
*
|
|
3599
3599
|
* ```typescript
|
|
3600
3600
|
* const data: MichelsonData = {
|
|
3601
|
-
* string: "
|
|
3601
|
+
* string: "KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main"
|
|
3602
3602
|
* };
|
|
3603
3603
|
*
|
|
3604
3604
|
* const typ: MichelsonType = {
|
|
@@ -3607,18 +3607,18 @@
|
|
|
3607
3607
|
*
|
|
3608
3608
|
* const packed = packData(data, typ);
|
|
3609
3609
|
*
|
|
3610
|
-
* //
|
|
3610
|
+
* // 050a0000001a0167ea84b1082efb9619d6ce04e033633906636e1d006d61696e
|
|
3611
3611
|
* ```
|
|
3612
3612
|
*
|
|
3613
3613
|
* Without a type definition the base58 encoded address will be treated as a string
|
|
3614
3614
|
* ```typescript
|
|
3615
3615
|
* const data: MichelsonData = {
|
|
3616
|
-
* string: "
|
|
3616
|
+
* string: "KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main"
|
|
3617
3617
|
* };
|
|
3618
3618
|
*
|
|
3619
3619
|
* const packed = packData(data);
|
|
3620
3620
|
*
|
|
3621
|
-
* //
|
|
3621
|
+
* // 0501000000294b54314a344537394631714c366b474253513379584264586d7571356a34464e54684b32256d61696e
|
|
3622
3622
|
* ```
|
|
3623
3623
|
* @param d Data object
|
|
3624
3624
|
* @param t Optional type definition
|
|
@@ -5762,8 +5762,8 @@ ${err.data
|
|
|
5762
5762
|
|
|
5763
5763
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5764
5764
|
const VERSION = {
|
|
5765
|
-
"commitHash": "
|
|
5766
|
-
"version": "24.3.0-beta.
|
|
5765
|
+
"commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
|
|
5766
|
+
"version": "24.3.0-beta.2"
|
|
5767
5767
|
};
|
|
5768
5768
|
|
|
5769
5769
|
exports.Contract = Contract;
|
package/dist/types/binary.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface PublicKey {
|
|
|
20
20
|
*
|
|
21
21
|
* ```typescript
|
|
22
22
|
* const data: MichelsonData = {
|
|
23
|
-
* string: "
|
|
23
|
+
* string: "KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main"
|
|
24
24
|
* };
|
|
25
25
|
*
|
|
26
26
|
* const typ: MichelsonType = {
|
|
@@ -29,18 +29,18 @@ export interface PublicKey {
|
|
|
29
29
|
*
|
|
30
30
|
* const packed = packData(data, typ);
|
|
31
31
|
*
|
|
32
|
-
* //
|
|
32
|
+
* // 050a0000001a0167ea84b1082efb9619d6ce04e033633906636e1d006d61696e
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
35
|
* Without a type definition the base58 encoded address will be treated as a string
|
|
36
36
|
* ```typescript
|
|
37
37
|
* const data: MichelsonData = {
|
|
38
|
-
* string: "
|
|
38
|
+
* string: "KT1J4E79F1qL6kGBSQ3yXBdXmuq5j4FNThK2%main"
|
|
39
39
|
* };
|
|
40
40
|
*
|
|
41
41
|
* const packed = packData(data);
|
|
42
42
|
*
|
|
43
|
-
* //
|
|
43
|
+
* // 0501000000294b54314a344537394631714c366b474253513379584264586d7571356a34464e54684b32256d61696e
|
|
44
44
|
* ```
|
|
45
45
|
* @param d Data object
|
|
46
46
|
* @param t Optional type definition
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/michel-codec",
|
|
3
|
-
"version": "24.3.0-beta.
|
|
3
|
+
"version": "24.3.0-beta.2",
|
|
4
4
|
"description": "Michelson parser, validator, and formatter for Taquito.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"taquito",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"node": ">=22"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"test": "
|
|
45
|
-
"test:watch": "
|
|
46
|
-
"test:prod": "npm run lint && npm run test
|
|
44
|
+
"test": "vitest run --config ./vitest.config.ts",
|
|
45
|
+
"test:watch": "vitest --config ./vitest.config.ts",
|
|
46
|
+
"test:prod": "npm run lint && npm run test",
|
|
47
47
|
"lint": "eslint --ext .js,.ts .",
|
|
48
48
|
"precommit": "lint-staged",
|
|
49
49
|
"prebuild": "rimraf dist",
|
|
@@ -57,41 +57,15 @@
|
|
|
57
57
|
"eslint --fix"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"jest": {
|
|
61
|
-
"transform": {
|
|
62
|
-
".(ts|tsx)": "ts-jest"
|
|
63
|
-
},
|
|
64
|
-
"testEnvironment": "node",
|
|
65
|
-
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
66
|
-
"moduleFileExtensions": [
|
|
67
|
-
"ts",
|
|
68
|
-
"tsx",
|
|
69
|
-
"js"
|
|
70
|
-
],
|
|
71
|
-
"moduleNameMapper": {
|
|
72
|
-
"^@taquito/utils$": "<rootDir>/../taquito-utils/src/taquito-utils.ts"
|
|
73
|
-
},
|
|
74
|
-
"coveragePathIgnorePatterns": [
|
|
75
|
-
"/node_modules/",
|
|
76
|
-
"/test/"
|
|
77
|
-
],
|
|
78
|
-
"collectCoverageFrom": [
|
|
79
|
-
"src/**/*.{js,ts}"
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
60
|
"dependencies": {
|
|
83
|
-
"@taquito/core": "^24.3.0-beta.
|
|
61
|
+
"@taquito/core": "^24.3.0-beta.2"
|
|
84
62
|
},
|
|
85
63
|
"devDependencies": {
|
|
86
64
|
"@types/bluebird": "^3.5.42",
|
|
87
|
-
"@types/
|
|
88
|
-
"@types/node": "^20",
|
|
65
|
+
"@types/node": "^22.0.0",
|
|
89
66
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
90
67
|
"@typescript-eslint/parser": "^6.21.0",
|
|
91
68
|
"eslint": "^8.57.0",
|
|
92
|
-
"jest": "^29.7.0",
|
|
93
|
-
"jest-config": "^29.7.0",
|
|
94
|
-
"jest-extended": "^4.0.2",
|
|
95
69
|
"lint-staged": "^15.2.7",
|
|
96
70
|
"lodash.camelcase": "^4.3.0",
|
|
97
71
|
"prettier": "^3.3.3",
|
|
@@ -99,7 +73,6 @@
|
|
|
99
73
|
"rollup": "^4.59.0",
|
|
100
74
|
"rollup-plugin-json": "^4.0.0",
|
|
101
75
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
102
|
-
"ts-jest": "^29.2.3",
|
|
103
76
|
"ts-node": "^10.9.2",
|
|
104
77
|
"ts-toolbelt": "^9.6.0",
|
|
105
78
|
"typescript": "^5.9.3"
|