@taquito/utils 20.0.0-beta.0 → 20.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.prefixLength = exports.prefix = exports.Prefix = void 0;
4
+ // ref https://gitlab.com/tezos/tezos/-/blob/master/src/lib_crypto/base58.ml
4
5
  var Prefix;
5
6
  (function (Prefix) {
6
7
  Prefix["TZ1"] = "tz1";
@@ -40,6 +41,7 @@ var Prefix;
40
41
  Prefix["ZET1"] = "zet1";
41
42
  Prefix["SR1"] = "sr1";
42
43
  Prefix["SRC1"] = "src1";
44
+ Prefix["SH"] = "sh";
43
45
  })(Prefix || (exports.Prefix = Prefix = {}));
44
46
  exports.prefix = {
45
47
  [Prefix.TZ1]: new Uint8Array([6, 161, 159]),
@@ -80,6 +82,7 @@ exports.prefix = {
80
82
  [Prefix.ZET1]: new Uint8Array([18, 71, 40, 223]),
81
83
  [Prefix.SR1]: new Uint8Array([6, 124, 117]),
82
84
  [Prefix.SRC1]: new Uint8Array([17, 165, 134, 138]),
85
+ [Prefix.SH]: new Uint8Array([2, 116, 180]),
83
86
  };
84
87
  exports.prefixLength = {
85
88
  [Prefix.TZ1]: 20,
@@ -106,4 +109,5 @@ exports.prefixLength = {
106
109
  [Prefix.ZET1]: 43,
107
110
  [Prefix.SR1]: 20,
108
111
  [Prefix.SRC1]: 32,
112
+ [Prefix.SH]: 48,
109
113
  };
@@ -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": "0ef631853ccfda5c5faed584f16069f34085817e",
7
- "version": "20.0.0-beta.0"
6
+ "commitHash": "45fea4a361f29598063e448574800220c4687001",
7
+ "version": "20.0.0"
8
8
  };
@@ -9,6 +9,7 @@ import BigNumber from 'bignumber.js';
9
9
  import elliptic from 'elliptic';
10
10
  import toBuffer from 'typedarray-to-buffer';
11
11
 
12
+ // ref https://gitlab.com/tezos/tezos/-/blob/master/src/lib_crypto/base58.ml
12
13
  var Prefix;
13
14
  (function (Prefix) {
14
15
  Prefix["TZ1"] = "tz1";
@@ -48,6 +49,7 @@ var Prefix;
48
49
  Prefix["ZET1"] = "zet1";
49
50
  Prefix["SR1"] = "sr1";
50
51
  Prefix["SRC1"] = "src1";
52
+ Prefix["SH"] = "sh";
51
53
  })(Prefix || (Prefix = {}));
52
54
  const prefix = {
53
55
  [Prefix.TZ1]: new Uint8Array([6, 161, 159]),
@@ -88,6 +90,7 @@ const prefix = {
88
90
  [Prefix.ZET1]: new Uint8Array([18, 71, 40, 223]),
89
91
  [Prefix.SR1]: new Uint8Array([6, 124, 117]),
90
92
  [Prefix.SRC1]: new Uint8Array([17, 165, 134, 138]),
93
+ [Prefix.SH]: new Uint8Array([2, 116, 180]),
91
94
  };
92
95
  const prefixLength = {
93
96
  [Prefix.TZ1]: 20,
@@ -114,6 +117,7 @@ const prefixLength = {
114
117
  [Prefix.ZET1]: 43,
115
118
  [Prefix.SR1]: 20,
116
119
  [Prefix.SRC1]: 32,
120
+ [Prefix.SH]: 48,
117
121
  };
118
122
 
119
123
  /**
@@ -492,8 +496,8 @@ function validateSmartRollupAddress(value) {
492
496
 
493
497
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
494
498
  const VERSION = {
495
- "commitHash": "0ef631853ccfda5c5faed584f16069f34085817e",
496
- "version": "20.0.0-beta.0"
499
+ "commitHash": "45fea4a361f29598063e448574800220c4687001",
500
+ "version": "20.0.0"
497
501
  };
498
502
 
499
503
  const TZ_DECIMALS = 6;
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-utils.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,6 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoUtils = {}, global.buffer, global.ed25519, global.blake2b, global.blake, global.bs58check, global.core, global.BigNumber, global.elliptic, global.toBuffer));
5
5
  })(this, (function (exports, buffer, ed25519, blake2b, blake, bs58check, core, BigNumber, elliptic, toBuffer) { 'use strict';
6
6
 
7
+ // ref https://gitlab.com/tezos/tezos/-/blob/master/src/lib_crypto/base58.ml
7
8
  exports.Prefix = void 0;
8
9
  (function (Prefix) {
9
10
  Prefix["TZ1"] = "tz1";
@@ -43,6 +44,7 @@
43
44
  Prefix["ZET1"] = "zet1";
44
45
  Prefix["SR1"] = "sr1";
45
46
  Prefix["SRC1"] = "src1";
47
+ Prefix["SH"] = "sh";
46
48
  })(exports.Prefix || (exports.Prefix = {}));
47
49
  const prefix = {
48
50
  [exports.Prefix.TZ1]: new Uint8Array([6, 161, 159]),
@@ -83,6 +85,7 @@
83
85
  [exports.Prefix.ZET1]: new Uint8Array([18, 71, 40, 223]),
84
86
  [exports.Prefix.SR1]: new Uint8Array([6, 124, 117]),
85
87
  [exports.Prefix.SRC1]: new Uint8Array([17, 165, 134, 138]),
88
+ [exports.Prefix.SH]: new Uint8Array([2, 116, 180]),
86
89
  };
87
90
  const prefixLength = {
88
91
  [exports.Prefix.TZ1]: 20,
@@ -109,6 +112,7 @@
109
112
  [exports.Prefix.ZET1]: 43,
110
113
  [exports.Prefix.SR1]: 20,
111
114
  [exports.Prefix.SRC1]: 32,
115
+ [exports.Prefix.SH]: 48,
112
116
  };
113
117
 
114
118
  /**
@@ -487,8 +491,8 @@
487
491
 
488
492
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
489
493
  const VERSION = {
490
- "commitHash": "0ef631853ccfda5c5faed584f16069f34085817e",
491
- "version": "20.0.0-beta.0"
494
+ "commitHash": "45fea4a361f29598063e448574800220c4687001",
495
+ "version": "20.0.0"
492
496
  };
493
497
 
494
498
  const TZ_DECIMALS = 6;
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-utils.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -35,7 +35,8 @@ export declare enum Prefix {
35
35
  SASK = "sask",
36
36
  ZET1 = "zet1",
37
37
  SR1 = "sr1",
38
- SRC1 = "src1"
38
+ SRC1 = "src1",
39
+ SH = "sh"
39
40
  }
40
41
  export declare const prefix: {
41
42
  tz1: Uint8Array;
@@ -75,6 +76,7 @@ export declare const prefix: {
75
76
  zet1: Uint8Array;
76
77
  sr1: Uint8Array;
77
78
  src1: Uint8Array;
79
+ sh: Uint8Array;
78
80
  };
79
81
  export declare const prefixLength: {
80
82
  [key: string]: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/utils",
3
- "version": "20.0.0-beta.0",
3
+ "version": "20.0.0",
4
4
  "description": "converts michelson data and types into convenient JS/TS objects",
5
5
  "keywords": [
6
6
  "tezos",
@@ -64,7 +64,7 @@
64
64
  "dependencies": {
65
65
  "@stablelib/blake2b": "^1.0.1",
66
66
  "@stablelib/ed25519": "^1.0.3",
67
- "@taquito/core": "^20.0.0-beta.0",
67
+ "@taquito/core": "^20.0.0",
68
68
  "@types/bs58check": "^2.1.0",
69
69
  "bignumber.js": "^9.1.2",
70
70
  "blakejs": "^1.2.1",
@@ -101,5 +101,5 @@
101
101
  "ts-toolbelt": "^9.6.0",
102
102
  "typescript": "~5.2.2"
103
103
  },
104
- "gitHead": "88980709574468fad5e4e7d63d34e1d71accf550"
104
+ "gitHead": "4871f03155be8dfce81ff24cb45fe0e3049c7646"
105
105
  }