@taquito/michelson-encoder 20.0.2-beta.1 → 20.1.0-RC.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.
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Schema = exports.deepEqual = void 0;
4
+ exports.Schema = void 0;
5
+ exports.deepEqual = deepEqual;
5
6
  const bigmap_1 = require("../tokens/bigmap");
6
7
  const createToken_1 = require("../tokens/createToken");
7
8
  const map_1 = require("../tokens/map");
@@ -51,7 +52,6 @@ function deepEqual(a, b) {
51
52
  ac.annots.length === bc.annots.length &&
52
53
  ac.annots.every((v, i) => { var _b; return v === ((_b = bc.annots) === null || _b === void 0 ? void 0 : _b[i]); }))));
53
54
  }
54
- exports.deepEqual = deepEqual;
55
55
  /**
56
56
  * @warn Our current smart contract abstraction feature is currently in preview. Its API is not final, and it may not cover every use case (yet). We will greatly appreciate any feedback on this feature.
57
57
  */
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createToken = exports.InvalidTokenError = void 0;
3
+ exports.InvalidTokenError = void 0;
4
+ exports.createToken = createToken;
4
5
  const tokens_1 = require("./tokens");
5
6
  const pair_1 = require("./pair");
6
7
  const core_1 = require("@taquito/core");
@@ -32,4 +33,3 @@ function createToken(val, idx, parentTokenType) {
32
33
  }
33
34
  return new t(val, idx, createToken, parentTokenType);
34
35
  }
35
- exports.createToken = createToken;
@@ -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 OR CHECKIN!
5
5
  exports.VERSION = {
6
- "commitHash": "a9cdc31ccbc6e2ed58dedaf3c8c4f0c62bc3ae02",
7
- "version": "20.0.2-beta.1"
6
+ "commitHash": "f903ced4144b4fd7b2afd585612dcf342912299b",
7
+ "version": "20.1.0-RC.0"
8
8
  };
@@ -4232,8 +4232,8 @@ class EventSchema {
4232
4232
 
4233
4233
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
4234
4234
  const VERSION = {
4235
- "commitHash": "a9cdc31ccbc6e2ed58dedaf3c8c4f0c62bc3ae02",
4236
- "version": "20.0.2-beta.1"
4235
+ "commitHash": "f903ced4144b4fd7b2afd585612dcf342912299b",
4236
+ "version": "20.1.0-RC.0"
4237
4237
  };
4238
4238
 
4239
4239
  /**
@@ -4233,8 +4233,8 @@
4233
4233
 
4234
4234
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
4235
4235
  const VERSION = {
4236
- "commitHash": "a9cdc31ccbc6e2ed58dedaf3c8c4f0c62bc3ae02",
4237
- "version": "20.0.2-beta.1"
4236
+ "commitHash": "f903ced4144b4fd7b2afd585612dcf342912299b",
4237
+ "version": "20.1.0-RC.0"
4238
4238
  };
4239
4239
 
4240
4240
  /**
@@ -43,7 +43,7 @@ export declare class Schema {
43
43
  };
44
44
  type: {
45
45
  prim: string;
46
- args?: object[] | undefined;
46
+ args?: object[];
47
47
  };
48
48
  };
49
49
  /**
@@ -18,13 +18,13 @@ export declare class OrToken extends ComparableToken {
18
18
  };
19
19
  protected idx: number;
20
20
  protected fac: TokenFactory;
21
- protected parentTokenType?: "Or" | "Pair" | "Other" | undefined;
21
+ protected parentTokenType?: 'Or' | 'Pair' | 'Other' | undefined;
22
22
  static prim: 'or';
23
23
  constructor(val: {
24
24
  prim: string;
25
25
  args: any[];
26
26
  annots: any[];
27
- }, idx: number, fac: TokenFactory, parentTokenType?: "Or" | "Pair" | "Other" | undefined);
27
+ }, idx: number, fac: TokenFactory, parentTokenType?: 'Or' | 'Pair' | 'Other' | undefined);
28
28
  Encode(args: any[]): any;
29
29
  ExtractSignature(): any;
30
30
  /**
@@ -29,7 +29,7 @@ export declare abstract class Token {
29
29
  protected val: MichelsonV1ExpressionExtended;
30
30
  protected idx: number;
31
31
  protected fac: TokenFactory;
32
- protected parentTokenType?: "Or" | "Pair" | "Other" | undefined;
32
+ protected parentTokenType?: ("Or" | "Pair" | "Other") | undefined;
33
33
  private static _fieldNumberingStrategy;
34
34
  /**
35
35
  * @description Gets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects, returns a value of type {@link FieldNumberingStrategy} that controls how field numbers are calculated
@@ -39,7 +39,7 @@ export declare abstract class Token {
39
39
  * @description Sets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects, accepts a value of type {@link FieldNumberingStrategy} that controls how field numbers are calculated
40
40
  */
41
41
  static set fieldNumberingStrategy(value: FieldNumberingStrategy);
42
- constructor(val: MichelsonV1ExpressionExtended, idx: number, fac: TokenFactory, parentTokenType?: "Or" | "Pair" | "Other" | undefined);
42
+ constructor(val: MichelsonV1ExpressionExtended, idx: number, fac: TokenFactory, parentTokenType?: ("Or" | "Pair" | "Other") | undefined);
43
43
  protected typeWithoutAnnotations(): Omit<MichelsonV1ExpressionExtended, "annots">;
44
44
  annot(): string;
45
45
  hasAnnotations(): number | false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/michelson-encoder",
3
- "version": "20.0.2-beta.1",
3
+ "version": "20.1.0-RC.0",
4
4
  "description": "converts michelson data and types into convenient JS/TS objects",
5
5
  "keywords": [
6
6
  "tezos",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "engines": {
28
- "node": ">=18"
28
+ "node": ">=20"
29
29
  },
30
30
  "scripts": {
31
31
  "test": "jest --coverage",
@@ -67,38 +67,38 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@taquito/core": "^20.0.2-beta.1",
71
- "@taquito/rpc": "^20.0.2-beta.1",
72
- "@taquito/utils": "^20.0.2-beta.1",
70
+ "@taquito/core": "^20.1.0-RC.0",
71
+ "@taquito/rpc": "^20.1.0-RC.0",
72
+ "@taquito/utils": "^20.1.0-RC.0",
73
73
  "bignumber.js": "^9.1.2",
74
74
  "fast-json-stable-stringify": "^2.1.0"
75
75
  },
76
76
  "devDependencies": {
77
- "@types/bluebird": "^3.5.40",
78
- "@types/jest": "^29.5.5",
79
- "@types/node": "^20",
80
- "@typescript-eslint/eslint-plugin": "^6.8.0",
81
- "@typescript-eslint/parser": "^6.8.0",
77
+ "@types/bluebird": "^3.5.42",
78
+ "@types/jest": "^29.5.12",
79
+ "@types/node": "^22",
80
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
81
+ "@typescript-eslint/parser": "^6.21.0",
82
82
  "colors": "^1.4.0",
83
83
  "coveralls": "^3.1.1",
84
84
  "cross-env": "^7.0.3",
85
- "eslint": "^8.51.0",
85
+ "eslint": "^8.57.0",
86
86
  "jest": "^29.7.0",
87
87
  "jest-config": "^29.7.0",
88
- "lint-staged": "^14.0.1",
88
+ "lint-staged": "^15.2.7",
89
89
  "lodash.camelcase": "^4.3.0",
90
- "prettier": "^3.0.3",
90
+ "prettier": "^3.3.3",
91
91
  "prompt": "^1.3.0",
92
- "replace-in-file": "^7.0.1",
93
- "rimraf": "^5.0.5",
94
- "rollup": "^4.1.4",
92
+ "replace-in-file": "^8.1.0",
93
+ "rimraf": "^6.0.1",
94
+ "rollup": "^4.22.4",
95
95
  "rollup-plugin-json": "^4.0.0",
96
96
  "rollup-plugin-typescript2": "^0.36.0",
97
97
  "shelljs": "^0.8.5",
98
- "ts-jest": "^29.1.1",
99
- "ts-node": "^10.9.1",
98
+ "ts-jest": "^29.2.3",
99
+ "ts-node": "^10.9.2",
100
100
  "ts-toolbelt": "^9.6.0",
101
- "typescript": "~5.2.2"
101
+ "typescript": "~5.5.4"
102
102
  },
103
- "gitHead": "6d1e4d129ac57c1bdeb5464601e40c50f413e43f"
103
+ "gitHead": "5300ba83c6cbd62d82138fd831ac60feaff60d6e"
104
104
  }