@taquito/utils 23.0.3 → 24.0.0-beta.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,134 +1,7 @@
1
1
  "use strict";
2
2
  // ref https://gitlab.com/tezos/tezos/-/blob/master/src/lib_crypto/base58.ml
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.payloadLength = exports.prefixV2 = exports.PrefixV2 = exports.prefixLength = exports.prefix = exports.Prefix = void 0;
5
- /**
6
- * @deprecated use PrefixV2 instead, this enum will be removed in the next minor release
7
- * @description base58 prefix definition enum
8
- */
9
- var Prefix;
10
- (function (Prefix) {
11
- Prefix["TZ1"] = "tz1";
12
- Prefix["TZ2"] = "tz2";
13
- Prefix["TZ3"] = "tz3";
14
- Prefix["TZ4"] = "tz4";
15
- Prefix["KT"] = "KT";
16
- Prefix["KT1"] = "KT1";
17
- Prefix["EDSK"] = "edsk";
18
- Prefix["EDSK2"] = "edsk2";
19
- Prefix["SPSK"] = "spsk";
20
- Prefix["P2SK"] = "p2sk";
21
- Prefix["BLSK"] = "BLsk";
22
- Prefix["EDPK"] = "edpk";
23
- Prefix["SPPK"] = "sppk";
24
- Prefix["P2PK"] = "p2pk";
25
- Prefix["BLPK"] = "BLpk";
26
- Prefix["EDESK"] = "edesk";
27
- Prefix["SPESK"] = "spesk";
28
- Prefix["P2ESK"] = "p2esk";
29
- Prefix["BLESK"] = "BLesk";
30
- Prefix["EDSIG"] = "edsig";
31
- Prefix["SPSIG"] = "spsig";
32
- Prefix["P2SIG"] = "p2sig";
33
- Prefix["BLSIG"] = "BLsig";
34
- Prefix["SIG"] = "sig";
35
- Prefix["NET"] = "Net";
36
- Prefix["NCE"] = "nce";
37
- Prefix["B"] = "B";
38
- Prefix["O"] = "o";
39
- Prefix["LO"] = "Lo";
40
- Prefix["LLO"] = "LLo";
41
- Prefix["P"] = "P";
42
- Prefix["CO"] = "Co";
43
- Prefix["ID"] = "id";
44
- Prefix["EXPR"] = "expr";
45
- Prefix["TZ"] = "TZ";
46
- Prefix["VH"] = "vh";
47
- Prefix["SASK"] = "sask";
48
- Prefix["ZET1"] = "zet1";
49
- Prefix["SR1"] = "sr1";
50
- Prefix["SRC1"] = "src1";
51
- Prefix["SH"] = "sh";
52
- })(Prefix || (exports.Prefix = Prefix = {}));
53
- /**
54
- * @deprecated use prefixV2 instead this constant will be removed in the next minor release
55
- * @description base58 prefix to bytes mapping
56
- */
57
- exports.prefix = {
58
- [Prefix.TZ1]: new Uint8Array([6, 161, 159]),
59
- [Prefix.TZ2]: new Uint8Array([6, 161, 161]),
60
- [Prefix.TZ3]: new Uint8Array([6, 161, 164]),
61
- [Prefix.TZ4]: new Uint8Array([6, 161, 166]),
62
- [Prefix.KT]: new Uint8Array([2, 90, 121]),
63
- [Prefix.KT1]: new Uint8Array([2, 90, 121]),
64
- [Prefix.EDSK]: new Uint8Array([43, 246, 78, 7]),
65
- [Prefix.EDSK2]: new Uint8Array([13, 15, 58, 7]),
66
- [Prefix.SPSK]: new Uint8Array([17, 162, 224, 201]),
67
- [Prefix.P2SK]: new Uint8Array([16, 81, 238, 189]),
68
- [Prefix.BLSK]: new Uint8Array([3, 150, 192, 40]),
69
- [Prefix.EDPK]: new Uint8Array([13, 15, 37, 217]),
70
- [Prefix.SPPK]: new Uint8Array([3, 254, 226, 86]),
71
- [Prefix.P2PK]: new Uint8Array([3, 178, 139, 127]),
72
- [Prefix.BLPK]: new Uint8Array([6, 149, 135, 204]),
73
- [Prefix.EDESK]: new Uint8Array([7, 90, 60, 179, 41]),
74
- [Prefix.SPESK]: new Uint8Array([0x09, 0xed, 0xf1, 0xae, 0x96]),
75
- [Prefix.P2ESK]: new Uint8Array([0x09, 0x30, 0x39, 0x73, 0xab]),
76
- [Prefix.BLESK]: new Uint8Array([2, 5, 30, 53, 25]),
77
- [Prefix.EDSIG]: new Uint8Array([9, 245, 205, 134, 18]),
78
- [Prefix.SPSIG]: new Uint8Array([13, 115, 101, 19, 63]),
79
- [Prefix.P2SIG]: new Uint8Array([54, 240, 44, 52]),
80
- [Prefix.BLSIG]: new Uint8Array([40, 171, 64, 207]),
81
- [Prefix.SIG]: new Uint8Array([4, 130, 43]),
82
- [Prefix.NET]: new Uint8Array([87, 82, 0]),
83
- [Prefix.NCE]: new Uint8Array([69, 220, 169]),
84
- [Prefix.B]: new Uint8Array([1, 52]),
85
- [Prefix.O]: new Uint8Array([5, 116]),
86
- [Prefix.LO]: new Uint8Array([133, 233]),
87
- [Prefix.LLO]: new Uint8Array([29, 159, 109]),
88
- [Prefix.P]: new Uint8Array([2, 170]),
89
- [Prefix.CO]: new Uint8Array([79, 179]),
90
- [Prefix.ID]: new Uint8Array([153, 103]),
91
- [Prefix.EXPR]: new Uint8Array([13, 44, 64, 27]),
92
- // Legacy prefix
93
- [Prefix.TZ]: new Uint8Array([2, 90, 121]),
94
- [Prefix.VH]: new Uint8Array([1, 106, 242]),
95
- [Prefix.SASK]: new Uint8Array([11, 237, 20, 92]),
96
- [Prefix.ZET1]: new Uint8Array([18, 71, 40, 223]),
97
- [Prefix.SR1]: new Uint8Array([6, 124, 117]),
98
- [Prefix.SRC1]: new Uint8Array([17, 165, 134, 138]),
99
- [Prefix.SH]: new Uint8Array([2, 116, 180]),
100
- };
101
- /**
102
- * @deprecated use payloadLength instead this constant will be removed in the next minor release
103
- * @description base58 prefix to payload length mapping
104
- */
105
- exports.prefixLength = {
106
- [Prefix.TZ1]: 20,
107
- [Prefix.TZ2]: 20,
108
- [Prefix.TZ3]: 20,
109
- [Prefix.TZ4]: 20,
110
- [Prefix.KT]: 20,
111
- [Prefix.KT1]: 20,
112
- [Prefix.EDPK]: 32,
113
- [Prefix.SPPK]: 33,
114
- [Prefix.P2PK]: 33,
115
- [Prefix.BLPK]: 48,
116
- [Prefix.EDSIG]: 64,
117
- [Prefix.SPSIG]: 64,
118
- [Prefix.P2SIG]: 64,
119
- [Prefix.BLSIG]: 96,
120
- [Prefix.SIG]: 64,
121
- [Prefix.NET]: 4,
122
- [Prefix.B]: 32,
123
- [Prefix.P]: 32,
124
- [Prefix.O]: 32,
125
- [Prefix.VH]: 32,
126
- [Prefix.SASK]: 169,
127
- [Prefix.ZET1]: 43,
128
- [Prefix.SR1]: 20,
129
- [Prefix.SRC1]: 32,
130
- [Prefix.SH]: 48,
131
- };
4
+ exports.payloadLength = exports.prefixV2 = exports.PrefixV2 = void 0;
132
5
  /**
133
6
  * @description base58 name to prefix mapping
134
7
  */