@taquito/utils 17.5.2 → 19.0.0-beta-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.
@@ -38,14 +38,6 @@ var Prefix;
38
38
  Prefix["VH"] = "vh";
39
39
  Prefix["SASK"] = "sask";
40
40
  Prefix["ZET1"] = "zet1";
41
- //rollups
42
- Prefix["TXR1"] = "txr1";
43
- Prefix["TXI"] = "txi";
44
- Prefix["TXM"] = "txm";
45
- Prefix["TXC"] = "txc";
46
- Prefix["TXMR"] = "txmr";
47
- Prefix["TXRL"] = "txM";
48
- Prefix["TXW"] = "txw";
49
41
  Prefix["SR1"] = "sr1";
50
42
  Prefix["SRC1"] = "src1";
51
43
  })(Prefix || (exports.Prefix = Prefix = {}));
@@ -86,13 +78,6 @@ exports.prefix = {
86
78
  [Prefix.VH]: new Uint8Array([1, 106, 242]),
87
79
  [Prefix.SASK]: new Uint8Array([11, 237, 20, 92]),
88
80
  [Prefix.ZET1]: new Uint8Array([18, 71, 40, 223]),
89
- [Prefix.TXR1]: new Uint8Array([1, 128, 120, 31]),
90
- [Prefix.TXI]: new Uint8Array([79, 148, 196]),
91
- [Prefix.TXM]: new Uint8Array([79, 149, 30]),
92
- [Prefix.TXC]: new Uint8Array([79, 148, 17]),
93
- [Prefix.TXMR]: new Uint8Array([18, 7, 206, 87]),
94
- [Prefix.TXRL]: new Uint8Array([79, 146, 82]),
95
- [Prefix.TXW]: new Uint8Array([79, 150, 72]),
96
81
  [Prefix.SR1]: new Uint8Array([6, 124, 117]),
97
82
  [Prefix.SRC1]: new Uint8Array([17, 165, 134, 138]),
98
83
  };
@@ -119,13 +104,6 @@ exports.prefixLength = {
119
104
  [Prefix.VH]: 32,
120
105
  [Prefix.SASK]: 169,
121
106
  [Prefix.ZET1]: 43,
122
- [Prefix.TXR1]: 20,
123
- [Prefix.TXI]: 32,
124
- [Prefix.TXM]: 32,
125
- [Prefix.TXC]: 32,
126
- [Prefix.TXMR]: 32,
127
- [Prefix.TXRL]: 32,
128
- [Prefix.TXW]: 32,
129
107
  [Prefix.SR1]: 20,
130
108
  [Prefix.SRC1]: 32,
131
109
  };
@@ -104,20 +104,12 @@ function b58decode(payload) {
104
104
  [constants_1.prefix.tz2.toString()]: '0001',
105
105
  [constants_1.prefix.tz3.toString()]: '0002',
106
106
  };
107
- const rollupPrefMap = {
108
- [constants_1.prefix.txr1.toString()]: '02',
109
- };
110
107
  const pref = prefixMap[new Uint8Array(buf.slice(0, 3)).toString()];
111
- const rollupPref = rollupPrefMap[new Uint8Array(buf.slice(0, 4)).toString()];
112
108
  if (pref) {
113
109
  // tz addresses
114
110
  const hex = (0, exports.buf2hex)(buf.slice(3));
115
111
  return pref + hex;
116
112
  }
117
- else if (rollupPref) {
118
- const hex = (0, exports.buf2hex)(buf.slice(4));
119
- return rollupPref + hex + '00';
120
- }
121
113
  else {
122
114
  // other (kt addresses)
123
115
  return '01' + (0, exports.buf2hex)(buf.slice(3, 42)) + '00';
@@ -151,10 +143,6 @@ function encodePubKey(value) {
151
143
  };
152
144
  return b58cencode(value.substring(4), pref[value.substring(0, 4)]);
153
145
  }
154
- else if (value.substring(0, 2) === '02') {
155
- // 42 also works but the removes the 00 padding at the end
156
- return b58cencode(value.substring(2, value.length - 2), constants_1.prefix.txr1);
157
- }
158
146
  return b58cencode(value.substring(2, 42), constants_1.prefix.KT);
159
147
  }
160
148
  exports.encodePubKey = encodePubKey;
@@ -56,7 +56,7 @@ function validatePrefixedValue(value, prefixes) {
56
56
  return ValidationResult.VALID;
57
57
  }
58
58
  const implicitPrefix = [constants_1.Prefix.TZ1, constants_1.Prefix.TZ2, constants_1.Prefix.TZ3, constants_1.Prefix.TZ4];
59
- const contractPrefix = [constants_1.Prefix.KT1, constants_1.Prefix.TXR1];
59
+ const contractPrefix = [constants_1.Prefix.KT1];
60
60
  const signaturePrefix = [constants_1.Prefix.EDSIG, constants_1.Prefix.P2SIG, constants_1.Prefix.SPSIG, constants_1.Prefix.SIG];
61
61
  const pkPrefix = [constants_1.Prefix.EDPK, constants_1.Prefix.SPPK, constants_1.Prefix.P2PK, constants_1.Prefix.BLPK];
62
62
  const operationPrefix = [constants_1.Prefix.O];
@@ -11,7 +11,7 @@ const core_1 = require("@taquito/core");
11
11
  * @description Verify signature of a payload
12
12
  *
13
13
  * @param messageBytes The forged message including the magic byte (11 for block,
14
- * 12 for preendorsement, 13 for endorsement, 3 for generic, 5 for the PACK format of michelson)
14
+ * 12 for preattestation/preendorsement, 13 for attestation/endorsement, 3 for generic, 5 for the PACK format of michelson)
15
15
  * @param publicKey The public key to verify the signature against
16
16
  * @param signature The signature to verify
17
17
  * @returns A boolean indicating if the signature matches
@@ -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": "46a535eea78d77ebb5509ccd1d1cbd01075c7461",
7
- "version": "17.5.2"
6
+ "commitHash": "bd52c12d05e329e4cf3a81fe55c4778a47879ccd",
7
+ "version": "19.0.0-beta-RC.0"
8
8
  };
@@ -46,14 +46,6 @@ var Prefix;
46
46
  Prefix["VH"] = "vh";
47
47
  Prefix["SASK"] = "sask";
48
48
  Prefix["ZET1"] = "zet1";
49
- //rollups
50
- Prefix["TXR1"] = "txr1";
51
- Prefix["TXI"] = "txi";
52
- Prefix["TXM"] = "txm";
53
- Prefix["TXC"] = "txc";
54
- Prefix["TXMR"] = "txmr";
55
- Prefix["TXRL"] = "txM";
56
- Prefix["TXW"] = "txw";
57
49
  Prefix["SR1"] = "sr1";
58
50
  Prefix["SRC1"] = "src1";
59
51
  })(Prefix || (Prefix = {}));
@@ -94,13 +86,6 @@ const prefix = {
94
86
  [Prefix.VH]: new Uint8Array([1, 106, 242]),
95
87
  [Prefix.SASK]: new Uint8Array([11, 237, 20, 92]),
96
88
  [Prefix.ZET1]: new Uint8Array([18, 71, 40, 223]),
97
- [Prefix.TXR1]: new Uint8Array([1, 128, 120, 31]),
98
- [Prefix.TXI]: new Uint8Array([79, 148, 196]),
99
- [Prefix.TXM]: new Uint8Array([79, 149, 30]),
100
- [Prefix.TXC]: new Uint8Array([79, 148, 17]),
101
- [Prefix.TXMR]: new Uint8Array([18, 7, 206, 87]),
102
- [Prefix.TXRL]: new Uint8Array([79, 146, 82]),
103
- [Prefix.TXW]: new Uint8Array([79, 150, 72]),
104
89
  [Prefix.SR1]: new Uint8Array([6, 124, 117]),
105
90
  [Prefix.SRC1]: new Uint8Array([17, 165, 134, 138]),
106
91
  };
@@ -127,13 +112,6 @@ const prefixLength = {
127
112
  [Prefix.VH]: 32,
128
113
  [Prefix.SASK]: 169,
129
114
  [Prefix.ZET1]: 43,
130
- [Prefix.TXR1]: 20,
131
- [Prefix.TXI]: 32,
132
- [Prefix.TXM]: 32,
133
- [Prefix.TXC]: 32,
134
- [Prefix.TXMR]: 32,
135
- [Prefix.TXRL]: 32,
136
- [Prefix.TXW]: 32,
137
115
  [Prefix.SR1]: 20,
138
116
  [Prefix.SRC1]: 32,
139
117
  };
@@ -142,7 +120,7 @@ const prefixLength = {
142
120
  * @description Verify signature of a payload
143
121
  *
144
122
  * @param messageBytes The forged message including the magic byte (11 for block,
145
- * 12 for preendorsement, 13 for endorsement, 3 for generic, 5 for the PACK format of michelson)
123
+ * 12 for preattestation/preendorsement, 13 for attestation/endorsement, 3 for generic, 5 for the PACK format of michelson)
146
124
  * @param publicKey The public key to verify the signature against
147
125
  * @param signature The signature to verify
148
126
  * @returns A boolean indicating if the signature matches
@@ -319,7 +297,7 @@ function validatePrefixedValue(value, prefixes) {
319
297
  return ValidationResult.VALID;
320
298
  }
321
299
  const implicitPrefix = [Prefix.TZ1, Prefix.TZ2, Prefix.TZ3, Prefix.TZ4];
322
- const contractPrefix = [Prefix.KT1, Prefix.TXR1];
300
+ const contractPrefix = [Prefix.KT1];
323
301
  const signaturePrefix = [Prefix.EDSIG, Prefix.P2SIG, Prefix.SPSIG, Prefix.SIG];
324
302
  const pkPrefix = [Prefix.EDPK, Prefix.SPPK, Prefix.P2PK, Prefix.BLPK];
325
303
  const operationPrefix = [Prefix.O];
@@ -514,8 +492,8 @@ function validateSmartRollupAddress(value) {
514
492
 
515
493
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
516
494
  const VERSION = {
517
- "commitHash": "46a535eea78d77ebb5509ccd1d1cbd01075c7461",
518
- "version": "17.5.2"
495
+ "commitHash": "bd52c12d05e329e4cf3a81fe55c4778a47879ccd",
496
+ "version": "19.0.0-beta-RC.0"
519
497
  };
520
498
 
521
499
  const TZ_DECIMALS = 6;
@@ -604,20 +582,12 @@ function b58decode(payload) {
604
582
  [prefix.tz2.toString()]: '0001',
605
583
  [prefix.tz3.toString()]: '0002',
606
584
  };
607
- const rollupPrefMap = {
608
- [prefix.txr1.toString()]: '02',
609
- };
610
585
  const pref = prefixMap[new Uint8Array(buf.slice(0, 3)).toString()];
611
- const rollupPref = rollupPrefMap[new Uint8Array(buf.slice(0, 4)).toString()];
612
586
  if (pref) {
613
587
  // tz addresses
614
588
  const hex = buf2hex(buf.slice(3));
615
589
  return pref + hex;
616
590
  }
617
- else if (rollupPref) {
618
- const hex = buf2hex(buf.slice(4));
619
- return rollupPref + hex + '00';
620
- }
621
591
  else {
622
592
  // other (kt addresses)
623
593
  return '01' + buf2hex(buf.slice(3, 42)) + '00';
@@ -649,10 +619,6 @@ function encodePubKey(value) {
649
619
  };
650
620
  return b58cencode(value.substring(4), pref[value.substring(0, 4)]);
651
621
  }
652
- else if (value.substring(0, 2) === '02') {
653
- // 42 also works but the removes the 00 padding at the end
654
- return b58cencode(value.substring(2, value.length - 2), prefix.txr1);
655
- }
656
622
  return b58cencode(value.substring(2, 42), prefix.KT);
657
623
  }
658
624
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-utils.es6.js","sources":[],"sourcesContent":[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= "txc";
49
- Prefix["TXMR"] = "txmr";
50
- Prefix["TXRL"] = "txM";
51
- Prefix["TXW"] = "txw";
52
44
  Prefix["SR1"] = "sr1";
53
45
  Prefix["SRC1"] = "src1";
54
46
  })(exports.Prefix || (exports.Prefix = {}));
@@ -89,13 +81,6 @@
89
81
  [exports.Prefix.VH]: new Uint8Array([1, 106, 242]),
90
82
  [exports.Prefix.SASK]: new Uint8Array([11, 237, 20, 92]),
91
83
  [exports.Prefix.ZET1]: new Uint8Array([18, 71, 40, 223]),
92
- [exports.Prefix.TXR1]: new Uint8Array([1, 128, 120, 31]),
93
- [exports.Prefix.TXI]: new Uint8Array([79, 148, 196]),
94
- [exports.Prefix.TXM]: new Uint8Array([79, 149, 30]),
95
- [exports.Prefix.TXC]: new Uint8Array([79, 148, 17]),
96
- [exports.Prefix.TXMR]: new Uint8Array([18, 7, 206, 87]),
97
- [exports.Prefix.TXRL]: new Uint8Array([79, 146, 82]),
98
- [exports.Prefix.TXW]: new Uint8Array([79, 150, 72]),
99
84
  [exports.Prefix.SR1]: new Uint8Array([6, 124, 117]),
100
85
  [exports.Prefix.SRC1]: new Uint8Array([17, 165, 134, 138]),
101
86
  };
@@ -122,13 +107,6 @@
122
107
  [exports.Prefix.VH]: 32,
123
108
  [exports.Prefix.SASK]: 169,
124
109
  [exports.Prefix.ZET1]: 43,
125
- [exports.Prefix.TXR1]: 20,
126
- [exports.Prefix.TXI]: 32,
127
- [exports.Prefix.TXM]: 32,
128
- [exports.Prefix.TXC]: 32,
129
- [exports.Prefix.TXMR]: 32,
130
- [exports.Prefix.TXRL]: 32,
131
- [exports.Prefix.TXW]: 32,
132
110
  [exports.Prefix.SR1]: 20,
133
111
  [exports.Prefix.SRC1]: 32,
134
112
  };
@@ -137,7 +115,7 @@
137
115
  * @description Verify signature of a payload
138
116
  *
139
117
  * @param messageBytes The forged message including the magic byte (11 for block,
140
- * 12 for preendorsement, 13 for endorsement, 3 for generic, 5 for the PACK format of michelson)
118
+ * 12 for preattestation/preendorsement, 13 for attestation/endorsement, 3 for generic, 5 for the PACK format of michelson)
141
119
  * @param publicKey The public key to verify the signature against
142
120
  * @param signature The signature to verify
143
121
  * @returns A boolean indicating if the signature matches
@@ -314,7 +292,7 @@
314
292
  return exports.ValidationResult.VALID;
315
293
  }
316
294
  const implicitPrefix = [exports.Prefix.TZ1, exports.Prefix.TZ2, exports.Prefix.TZ3, exports.Prefix.TZ4];
317
- const contractPrefix = [exports.Prefix.KT1, exports.Prefix.TXR1];
295
+ const contractPrefix = [exports.Prefix.KT1];
318
296
  const signaturePrefix = [exports.Prefix.EDSIG, exports.Prefix.P2SIG, exports.Prefix.SPSIG, exports.Prefix.SIG];
319
297
  const pkPrefix = [exports.Prefix.EDPK, exports.Prefix.SPPK, exports.Prefix.P2PK, exports.Prefix.BLPK];
320
298
  const operationPrefix = [exports.Prefix.O];
@@ -509,8 +487,8 @@
509
487
 
510
488
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
511
489
  const VERSION = {
512
- "commitHash": "46a535eea78d77ebb5509ccd1d1cbd01075c7461",
513
- "version": "17.5.2"
490
+ "commitHash": "bd52c12d05e329e4cf3a81fe55c4778a47879ccd",
491
+ "version": "19.0.0-beta-RC.0"
514
492
  };
515
493
 
516
494
  const TZ_DECIMALS = 6;
@@ -599,20 +577,12 @@
599
577
  [prefix.tz2.toString()]: '0001',
600
578
  [prefix.tz3.toString()]: '0002',
601
579
  };
602
- const rollupPrefMap = {
603
- [prefix.txr1.toString()]: '02',
604
- };
605
580
  const pref = prefixMap[new Uint8Array(buf.slice(0, 3)).toString()];
606
- const rollupPref = rollupPrefMap[new Uint8Array(buf.slice(0, 4)).toString()];
607
581
  if (pref) {
608
582
  // tz addresses
609
583
  const hex = buf2hex(buf.slice(3));
610
584
  return pref + hex;
611
585
  }
612
- else if (rollupPref) {
613
- const hex = buf2hex(buf.slice(4));
614
- return rollupPref + hex + '00';
615
- }
616
586
  else {
617
587
  // other (kt addresses)
618
588
  return '01' + buf2hex(buf.slice(3, 42)) + '00';
@@ -644,10 +614,6 @@
644
614
  };
645
615
  return b58cencode(value.substring(4), pref[value.substring(0, 4)]);
646
616
  }
647
- else if (value.substring(0, 2) === '02') {
648
- // 42 also works but the removes the 00 padding at the end
649
- return b58cencode(value.substring(2, value.length - 2), prefix.txr1);
650
- }
651
617
  return b58cencode(value.substring(2, 42), prefix.KT);
652
618
  }
653
619
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-utils.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -34,13 +34,6 @@ export declare enum Prefix {
34
34
  VH = "vh",
35
35
  SASK = "sask",
36
36
  ZET1 = "zet1",
37
- TXR1 = "txr1",
38
- TXI = "txi",
39
- TXM = "txm",
40
- TXC = "txc",
41
- TXMR = "txmr",
42
- TXRL = "txM",
43
- TXW = "txw",
44
37
  SR1 = "sr1",
45
38
  SRC1 = "src1"
46
39
  }
@@ -80,13 +73,6 @@ export declare const prefix: {
80
73
  vh: Uint8Array;
81
74
  sask: Uint8Array;
82
75
  zet1: Uint8Array;
83
- txr1: Uint8Array;
84
- txi: Uint8Array;
85
- txm: Uint8Array;
86
- txc: Uint8Array;
87
- txmr: Uint8Array;
88
- txM: Uint8Array;
89
- txw: Uint8Array;
90
76
  sr1: Uint8Array;
91
77
  src1: Uint8Array;
92
78
  };
@@ -4,7 +4,7 @@ type PkPrefix = Prefix.EDPK | Prefix.SPPK | Prefix.P2PK | Prefix.BLPK;
4
4
  * @description Verify signature of a payload
5
5
  *
6
6
  * @param messageBytes The forged message including the magic byte (11 for block,
7
- * 12 for preendorsement, 13 for endorsement, 3 for generic, 5 for the PACK format of michelson)
7
+ * 12 for preattestation/preendorsement, 13 for attestation/endorsement, 3 for generic, 5 for the PACK format of michelson)
8
8
  * @param publicKey The public key to verify the signature against
9
9
  * @param signature The signature to verify
10
10
  * @returns A boolean indicating if the signature matches
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/utils",
3
- "version": "17.5.2",
3
+ "version": "19.0.0-beta-RC.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": "^17.5.2",
67
+ "@taquito/core": "^19.0.0-beta-RC.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": "16d75a1beefb47874b696ee49d61769d6cf04f7b"
104
+ "gitHead": "959e385ba06d8932866503bb538252a3912acbc9"
105
105
  }