@gardenfi/core 0.2.0-beta.72 → 0.2.0-beta.74

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.
Files changed (276) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +15 -14
  3. package/dist/index10.cjs +1 -1
  4. package/dist/index10.js +55 -41
  5. package/dist/index100.cjs +1 -0
  6. package/dist/index100.js +37 -0
  7. package/dist/index101.cjs +1 -0
  8. package/dist/index101.js +369 -0
  9. package/dist/index102.cjs +1 -0
  10. package/dist/index102.js +23 -0
  11. package/dist/index103.cjs +1 -0
  12. package/dist/index103.js +58 -0
  13. package/dist/index104.cjs +1 -0
  14. package/dist/index104.js +5 -0
  15. package/dist/index105.cjs +1 -0
  16. package/dist/index105.js +51 -0
  17. package/dist/index106.cjs +1 -0
  18. package/dist/index106.js +28 -0
  19. package/dist/index107.cjs +1 -0
  20. package/dist/index107.js +4 -0
  21. package/dist/index108.cjs +1 -0
  22. package/dist/index108.js +4 -0
  23. package/dist/index109.cjs +1 -0
  24. package/dist/index109.js +64 -0
  25. package/dist/index11.cjs +1 -1
  26. package/dist/index11.js +2 -2
  27. package/dist/index110.cjs +1 -0
  28. package/dist/index110.js +37 -0
  29. package/dist/index111.cjs +1 -0
  30. package/dist/index111.js +7 -0
  31. package/dist/index112.cjs +1 -0
  32. package/dist/index112.js +4 -0
  33. package/dist/index113.cjs +1 -0
  34. package/dist/index113.js +60 -0
  35. package/dist/index114.cjs +1 -0
  36. package/dist/index114.js +4 -0
  37. package/dist/index115.cjs +1 -0
  38. package/dist/index115.js +42 -0
  39. package/dist/index116.cjs +1 -0
  40. package/dist/index116.js +45 -0
  41. package/dist/index117.cjs +1 -0
  42. package/dist/index117.js +20 -0
  43. package/dist/index118.cjs +1 -0
  44. package/dist/index118.js +111 -0
  45. package/dist/index119.cjs +1 -0
  46. package/dist/index119.js +23 -0
  47. package/dist/index120.cjs +1 -0
  48. package/dist/index120.js +228 -0
  49. package/dist/index121.cjs +1 -0
  50. package/dist/index121.js +6 -0
  51. package/dist/index122.cjs +1 -0
  52. package/dist/index122.js +160 -0
  53. package/dist/index123.cjs +1 -0
  54. package/dist/index123.js +4 -0
  55. package/dist/index124.cjs +1 -0
  56. package/dist/index124.js +75 -0
  57. package/dist/index125.cjs +1 -0
  58. package/dist/index125.js +107 -0
  59. package/dist/index126.cjs +1 -0
  60. package/dist/index126.js +15 -0
  61. package/dist/index127.cjs +1 -0
  62. package/dist/index127.js +35 -0
  63. package/dist/index128.cjs +1 -0
  64. package/dist/index128.js +4 -0
  65. package/dist/index129.cjs +1 -0
  66. package/dist/index129.js +32 -0
  67. package/dist/index130.cjs +1 -0
  68. package/dist/index130.js +21 -0
  69. package/dist/index131.cjs +1 -0
  70. package/dist/index131.js +4 -0
  71. package/dist/index132.cjs +1 -0
  72. package/dist/index132.js +358 -0
  73. package/dist/index133.cjs +1 -0
  74. package/dist/index133.js +241 -0
  75. package/dist/index134.cjs +1 -0
  76. package/dist/index134.js +70 -0
  77. package/dist/index135.cjs +1 -0
  78. package/dist/index135.js +64 -0
  79. package/dist/index136.cjs +1 -0
  80. package/dist/index136.js +14 -0
  81. package/dist/index137.cjs +1 -0
  82. package/dist/index137.js +47 -0
  83. package/dist/index138.cjs +1 -0
  84. package/dist/index138.js +65 -0
  85. package/dist/index139.cjs +1 -0
  86. package/dist/index139.js +228 -0
  87. package/dist/index14.cjs +1 -1
  88. package/dist/index14.js +2 -2
  89. package/dist/index140.cjs +1 -0
  90. package/dist/index140.js +5 -0
  91. package/dist/index141.cjs +1 -0
  92. package/dist/index141.js +171 -0
  93. package/dist/index142.cjs +1 -0
  94. package/dist/index142.js +30 -0
  95. package/dist/index143.cjs +1 -0
  96. package/dist/index143.js +23 -0
  97. package/dist/index144.cjs +1 -0
  98. package/dist/index144.js +72 -0
  99. package/dist/index145.cjs +1 -0
  100. package/dist/index145.js +130 -0
  101. package/dist/index146.cjs +1 -0
  102. package/dist/index146.js +9 -0
  103. package/dist/index147.cjs +1 -0
  104. package/dist/index147.js +4 -0
  105. package/dist/index148.cjs +1 -0
  106. package/dist/index148.js +28 -0
  107. package/dist/index149.cjs +1 -0
  108. package/dist/index149.js +4 -0
  109. package/dist/index16.cjs +1 -1
  110. package/dist/index16.js +30 -136
  111. package/dist/index17.cjs +1 -1
  112. package/dist/index17.js +25 -2
  113. package/dist/index18.cjs +1 -3
  114. package/dist/index18.js +29 -26
  115. package/dist/index19.cjs +1 -1
  116. package/dist/index19.js +32 -17
  117. package/dist/index20.cjs +1 -2
  118. package/dist/index20.js +53 -25
  119. package/dist/index21.cjs +1 -1
  120. package/dist/index21.js +6 -38
  121. package/dist/index22.cjs +1 -1
  122. package/dist/index22.js +9 -199
  123. package/dist/index23.cjs +1 -1
  124. package/dist/index23.js +138 -2
  125. package/dist/index24.js +2 -2
  126. package/dist/index25.cjs +1 -1
  127. package/dist/index25.js +13 -2
  128. package/dist/index26.cjs +1 -1
  129. package/dist/index26.js +36 -27
  130. package/dist/index27.cjs +1 -1
  131. package/dist/index27.js +41 -14
  132. package/dist/index28.cjs +1 -1
  133. package/dist/index28.js +26 -173
  134. package/dist/index29.cjs +1 -1
  135. package/dist/index29.js +15 -22
  136. package/dist/index30.cjs +1 -1
  137. package/dist/index30.js +24 -2
  138. package/dist/index31.cjs +1 -1
  139. package/dist/index31.js +25 -34
  140. package/dist/index32.cjs +1 -1
  141. package/dist/index32.js +54 -8
  142. package/dist/index33.cjs +1 -1
  143. package/dist/index33.js +28 -2
  144. package/dist/index34.cjs +3 -6
  145. package/dist/index34.js +30 -949
  146. package/dist/index35.cjs +1 -1
  147. package/dist/index35.js +17 -4
  148. package/dist/index36.cjs +2 -1
  149. package/dist/index36.js +23 -18
  150. package/dist/index37.cjs +1 -1
  151. package/dist/index37.js +38 -29
  152. package/dist/index38.cjs +1 -1
  153. package/dist/index38.js +197 -60
  154. package/dist/index39.cjs +1 -1
  155. package/dist/index39.js +2 -33
  156. package/dist/index40.cjs +1 -1
  157. package/dist/index40.js +2 -87
  158. package/dist/index41.cjs +1 -1
  159. package/dist/index41.js +2 -49
  160. package/dist/index42.cjs +1 -1
  161. package/dist/index42.js +12 -25
  162. package/dist/index43.cjs +1 -1
  163. package/dist/index43.js +12 -2
  164. package/dist/index44.cjs +1 -1
  165. package/dist/index44.js +4 -2
  166. package/dist/index45.cjs +1 -1
  167. package/dist/index45.js +45 -19
  168. package/dist/index46.cjs +1 -1
  169. package/dist/index46.js +38 -30
  170. package/dist/index47.cjs +1 -1
  171. package/dist/index47.js +165 -360
  172. package/dist/index48.cjs +1 -1
  173. package/dist/index48.js +13 -21
  174. package/dist/index49.cjs +1 -1
  175. package/dist/index49.js +3 -54
  176. package/dist/index50.cjs +1 -1
  177. package/dist/index50.js +17 -3
  178. package/dist/index51.cjs +1 -1
  179. package/dist/index51.js +9 -70
  180. package/dist/index52.cjs +1 -1
  181. package/dist/index52.js +175 -2
  182. package/dist/index53.cjs +1 -1
  183. package/dist/index53.js +21 -57
  184. package/dist/index54.js +2 -2
  185. package/dist/index55.cjs +1 -1
  186. package/dist/index55.js +34 -39
  187. package/dist/index56.cjs +1 -1
  188. package/dist/index56.js +9 -43
  189. package/dist/index57.cjs +1 -1
  190. package/dist/index57.js +34 -17
  191. package/dist/index58.cjs +1 -1
  192. package/dist/index58.js +50 -103
  193. package/dist/index59.cjs +2 -1
  194. package/dist/index59.js +58 -19
  195. package/dist/index60.cjs +1 -1
  196. package/dist/index60.js +3 -225
  197. package/dist/index61.cjs +1 -1
  198. package/dist/index61.js +128 -4
  199. package/dist/index62.cjs +2 -1
  200. package/dist/index62.js +37 -152
  201. package/dist/index63.cjs +1 -1
  202. package/dist/index63.js +9 -2
  203. package/dist/index64.cjs +1 -1
  204. package/dist/index64.js +11 -13
  205. package/dist/index65.cjs +1 -1
  206. package/dist/index65.js +12 -2
  207. package/dist/index66.cjs +1 -1
  208. package/dist/index66.js +13 -32
  209. package/dist/index67.cjs +1 -1
  210. package/dist/index67.js +7 -2
  211. package/dist/index68.cjs +1 -1
  212. package/dist/index68.js +17 -355
  213. package/dist/index69.cjs +1 -1
  214. package/dist/index69.js +75 -235
  215. package/dist/index70.cjs +1 -1
  216. package/dist/index70.js +14 -67
  217. package/dist/index71.cjs +1 -1
  218. package/dist/index71.js +17 -60
  219. package/dist/index72.cjs +1 -1
  220. package/dist/index72.js +6 -11
  221. package/dist/index73.cjs +1 -1
  222. package/dist/index73.js +20 -43
  223. package/dist/index74.cjs +1 -1
  224. package/dist/index74.js +13 -62
  225. package/dist/index75.cjs +1 -1
  226. package/dist/index75.js +2 -226
  227. package/dist/index76.cjs +1 -1
  228. package/dist/index76.js +2 -3
  229. package/dist/index77.cjs +2 -1
  230. package/dist/index77.js +32 -166
  231. package/dist/index78.cjs +1 -1
  232. package/dist/index78.js +5 -27
  233. package/dist/index79.cjs +1 -1
  234. package/dist/index79.js +18 -19
  235. package/dist/index80.cjs +1 -1
  236. package/dist/index80.js +30 -68
  237. package/dist/index81.cjs +1 -1
  238. package/dist/index81.js +2 -128
  239. package/dist/index82.cjs +6 -1
  240. package/dist/index82.js +949 -9
  241. package/dist/index83.cjs +1 -1
  242. package/dist/index84.cjs +1 -1
  243. package/dist/index84.js +61 -25
  244. package/dist/index85.cjs +1 -1
  245. package/dist/index85.js +33 -2
  246. package/dist/index86.cjs +1 -0
  247. package/dist/index86.js +89 -0
  248. package/dist/index87.cjs +1 -0
  249. package/dist/index87.js +15 -0
  250. package/dist/index88.cjs +1 -0
  251. package/dist/index88.js +9 -0
  252. package/dist/index89.cjs +1 -0
  253. package/dist/index89.js +115 -0
  254. package/dist/index90.cjs +1 -0
  255. package/dist/index90.js +9 -0
  256. package/dist/index91.cjs +1 -0
  257. package/dist/index91.js +35 -0
  258. package/dist/index92.cjs +1 -0
  259. package/dist/index92.js +4 -0
  260. package/dist/index93.cjs +1 -0
  261. package/dist/index93.js +40 -0
  262. package/dist/index94.cjs +1 -0
  263. package/dist/index94.js +31 -0
  264. package/dist/index95.cjs +1 -0
  265. package/dist/index95.js +23 -0
  266. package/dist/index96.cjs +1 -0
  267. package/dist/index96.js +9 -0
  268. package/dist/index97.cjs +1 -0
  269. package/dist/index97.js +7 -0
  270. package/dist/index98.cjs +1 -0
  271. package/dist/index98.js +13 -0
  272. package/dist/index99.cjs +1 -0
  273. package/dist/index99.js +22 -0
  274. package/dist/src/index.d.ts +1 -1
  275. package/dist/src/lib/utils.d.ts +3 -1
  276. package/package.json +2 -2
package/dist/index62.js CHANGED
@@ -1,160 +1,45 @@
1
- import { __exports as o } from "./index63.js";
2
- import { s as c } from "./index31.js";
3
- var l = c.Buffer, h = l.isEncoding || function(t) {
4
- switch (t = "" + t, t && t.toLowerCase()) {
5
- case "hex":
6
- case "utf8":
7
- case "utf-8":
8
- case "ascii":
9
- case "binary":
10
- case "base64":
11
- case "ucs2":
12
- case "ucs-2":
13
- case "utf16le":
14
- case "utf-16le":
15
- case "raw":
16
- return !0;
17
- default:
18
- return !1;
1
+ import { BaseError as t } from "./index59.js";
2
+ function i(n) {
3
+ const r = Object.entries(n).map(([a, e]) => e === void 0 || e === !1 ? null : [a, e]).filter(Boolean), o = r.reduce((a, [e]) => Math.max(a, e.length), 0);
4
+ return r.map(([a, e]) => ` ${`${a}:`.padEnd(o + 1)} ${e}`).join(`
5
+ `);
6
+ }
7
+ class c extends t {
8
+ constructor({ v: r }) {
9
+ super(`Invalid \`v\` value "${r}". Expected 27 or 28.`, {
10
+ name: "InvalidLegacyVError"
11
+ });
19
12
  }
20
- };
21
- function d(t) {
22
- if (!t) return "utf8";
23
- for (var e; ; )
24
- switch (t) {
25
- case "utf8":
26
- case "utf-8":
27
- return "utf8";
28
- case "ucs2":
29
- case "ucs-2":
30
- case "utf16le":
31
- case "utf-16le":
32
- return "utf16le";
33
- case "latin1":
34
- case "binary":
35
- return "latin1";
36
- case "base64":
37
- case "ascii":
38
- case "hex":
39
- return t;
40
- default:
41
- if (e) return;
42
- t = ("" + t).toLowerCase(), e = !0;
43
- }
44
- }
45
- function u(t) {
46
- var e = d(t);
47
- if (typeof e != "string" && (l.isEncoding === h || !h(t))) throw new Error("Unknown encoding: " + t);
48
- return e || t;
49
13
  }
50
- o.StringDecoder = a;
51
- function a(t) {
52
- this.encoding = u(t);
53
- var e;
54
- switch (this.encoding) {
55
- case "utf16le":
56
- this.text = p, this.end = v, e = 4;
57
- break;
58
- case "utf8":
59
- this.fillLast = N, e = 4;
60
- break;
61
- case "base64":
62
- this.text = w, this.end = E, e = 3;
63
- break;
64
- default:
65
- this.write = T, this.end = S;
66
- return;
14
+ class d extends t {
15
+ constructor({ transaction: r }) {
16
+ super("Cannot infer a transaction type from provided transaction.", {
17
+ metaMessages: [
18
+ "Provided Transaction:",
19
+ "{",
20
+ i(r),
21
+ "}",
22
+ "",
23
+ "To infer the type, either provide:",
24
+ "- a `type` to the Transaction, or",
25
+ "- an EIP-1559 Transaction with `maxFeePerGas`, or",
26
+ "- an EIP-2930 Transaction with `gasPrice` & `accessList`, or",
27
+ "- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or",
28
+ "- an EIP-7702 Transaction with `authorizationList`, or",
29
+ "- a Legacy Transaction with `gasPrice`"
30
+ ],
31
+ name: "InvalidSerializableTransactionError"
32
+ });
67
33
  }
68
- this.lastNeed = 0, this.lastTotal = 0, this.lastChar = l.allocUnsafe(e);
69
- }
70
- a.prototype.write = function(t) {
71
- if (t.length === 0) return "";
72
- var e, s;
73
- if (this.lastNeed) {
74
- if (e = this.fillLast(t), e === void 0) return "";
75
- s = this.lastNeed, this.lastNeed = 0;
76
- } else
77
- s = 0;
78
- return s < t.length ? e ? e + this.text(t, s) : this.text(t, s) : e || "";
79
- };
80
- a.prototype.end = C;
81
- a.prototype.text = x;
82
- a.prototype.fillLast = function(t) {
83
- if (this.lastNeed <= t.length)
84
- return t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
85
- t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, t.length), this.lastNeed -= t.length;
86
- };
87
- function n(t) {
88
- return t <= 127 ? 0 : t >> 5 === 6 ? 2 : t >> 4 === 14 ? 3 : t >> 3 === 30 ? 4 : t >> 6 === 2 ? -1 : -2;
89
34
  }
90
- function f(t, e, s) {
91
- var i = e.length - 1;
92
- if (i < s) return 0;
93
- var r = n(e[i]);
94
- return r >= 0 ? (r > 0 && (t.lastNeed = r - 1), r) : --i < s || r === -2 ? 0 : (r = n(e[i]), r >= 0 ? (r > 0 && (t.lastNeed = r - 2), r) : --i < s || r === -2 ? 0 : (r = n(e[i]), r >= 0 ? (r > 0 && (r === 2 ? r = 0 : t.lastNeed = r - 3), r) : 0));
95
- }
96
- function g(t, e, s) {
97
- if ((e[0] & 192) !== 128)
98
- return t.lastNeed = 0, "�";
99
- if (t.lastNeed > 1 && e.length > 1) {
100
- if ((e[1] & 192) !== 128)
101
- return t.lastNeed = 1, "�";
102
- if (t.lastNeed > 2 && e.length > 2 && (e[2] & 192) !== 128)
103
- return t.lastNeed = 2, "�";
35
+ class l extends t {
36
+ constructor({ storageKey: r }) {
37
+ super(`Size for storage key "${r}" is invalid. Expected 32 bytes. Got ${Math.floor((r.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
104
38
  }
105
39
  }
106
- function N(t) {
107
- var e = this.lastTotal - this.lastNeed, s = g(this, t);
108
- if (s !== void 0) return s;
109
- if (this.lastNeed <= t.length)
110
- return t.copy(this.lastChar, e, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
111
- t.copy(this.lastChar, e, 0, t.length), this.lastNeed -= t.length;
112
- }
113
- function x(t, e) {
114
- var s = f(this, t, e);
115
- if (!this.lastNeed) return t.toString("utf8", e);
116
- this.lastTotal = s;
117
- var i = t.length - (s - this.lastNeed);
118
- return t.copy(this.lastChar, 0, i), t.toString("utf8", e, i);
119
- }
120
- function C(t) {
121
- var e = t && t.length ? this.write(t) : "";
122
- return this.lastNeed ? e + "�" : e;
123
- }
124
- function p(t, e) {
125
- if ((t.length - e) % 2 === 0) {
126
- var s = t.toString("utf16le", e);
127
- if (s) {
128
- var i = s.charCodeAt(s.length - 1);
129
- if (i >= 55296 && i <= 56319)
130
- return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1], s.slice(0, -1);
131
- }
132
- return s;
133
- }
134
- return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = t[t.length - 1], t.toString("utf16le", e, t.length - 1);
135
- }
136
- function v(t) {
137
- var e = t && t.length ? this.write(t) : "";
138
- if (this.lastNeed) {
139
- var s = this.lastTotal - this.lastNeed;
140
- return e + this.lastChar.toString("utf16le", 0, s);
141
- }
142
- return e;
143
- }
144
- function w(t, e) {
145
- var s = (t.length - e) % 3;
146
- return s === 0 ? t.toString("base64", e) : (this.lastNeed = 3 - s, this.lastTotal = 3, s === 1 ? this.lastChar[0] = t[t.length - 1] : (this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1]), t.toString("base64", e, t.length - s));
147
- }
148
- function E(t) {
149
- var e = t && t.length ? this.write(t) : "";
150
- return this.lastNeed ? e + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : e;
151
- }
152
- function T(t) {
153
- return t.toString(this.encoding);
154
- }
155
- function S(t) {
156
- return t && t.length ? this.write(t) : "";
157
- }
158
40
  export {
159
- o as default
41
+ c as InvalidLegacyVError,
42
+ d as InvalidSerializableTransactionError,
43
+ l as InvalidStorageKeySizeError,
44
+ i as prettyPrint
160
45
  };
package/dist/index63.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index58.cjs"),l=require("./index45.cjs");function c(o){const{kzg:s}=o,n=o.to??(typeof o.blobs[0]=="string"?"hex":"bytes"),e=typeof o.blobs[0]=="string"?o.blobs.map(t=>i.hexToBytes(t)):o.blobs,b=[];for(const t of e)b.push(Uint8Array.from(s.blobToKzgCommitment(t)));return n==="bytes"?b:b.map(t=>l.bytesToHex(t))}exports.blobsToCommitments=c;
package/dist/index63.js CHANGED
@@ -1,4 +1,11 @@
1
- var r = {};
1
+ import { hexToBytes as i } from "./index58.js";
2
+ import { bytesToHex as f } from "./index45.js";
3
+ function y(o) {
4
+ const { kzg: s } = o, n = o.to ?? (typeof o.blobs[0] == "string" ? "hex" : "bytes"), m = typeof o.blobs[0] == "string" ? o.blobs.map((t) => i(t)) : o.blobs, b = [];
5
+ for (const t of m)
6
+ b.push(Uint8Array.from(s.blobToKzgCommitment(t)));
7
+ return n === "bytes" ? b : b.map((t) => f(t));
8
+ }
2
9
  export {
3
- r as __exports
10
+ y as blobsToCommitments
4
11
  };
package/dist/index64.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index67.cjs"),_=require("./index68.cjs"),t=require("./index69.cjs"),i=require("./index70.cjs"),s=require("./index71.cjs"),u=require("./index72.cjs"),n=require("./index73.cjs"),o=require("./index74.cjs");(function(a,e){e=a.exports=_.__require(),e.Stream=e,e.Readable=e,e.Writable=t.__require(),e.Duplex=i.__require(),e.Transform=s._stream_transform,e.PassThrough=u._stream_passthrough,e.finished=n.endOfStream,e.pipeline=o.pipeline_1})(r.__module,r.__module.exports);var l=r.__module.exports;exports.readableBrowserExports=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index58.cjs"),y=require("./index45.cjs");function f(t){const{kzg:c}=t,e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),n=typeof t.blobs[0]=="string"?t.blobs.map(o=>b.hexToBytes(o)):t.blobs,i=typeof t.commitments[0]=="string"?t.commitments.map(o=>b.hexToBytes(o)):t.commitments,s=[];for(let o=0;o<n.length;o++){const l=n[o],m=i[o];s.push(Uint8Array.from(c.computeBlobKzgProof(l,m)))}return e==="bytes"?s:s.map(o=>y.bytesToHex(o))}exports.blobsToProofs=f;
package/dist/index64.js CHANGED
@@ -1,15 +1,13 @@
1
- import { __module as e } from "./index67.js";
2
- import { __require as m } from "./index68.js";
3
- import { __require as i } from "./index69.js";
4
- import { __require as _ } from "./index70.js";
5
- import { _ as o } from "./index71.js";
6
- import { _ as s } from "./index72.js";
7
- import { e as t } from "./index73.js";
8
- import { p as f } from "./index74.js";
9
- (function(a, r) {
10
- r = a.exports = m(), r.Stream = r, r.Readable = r, r.Writable = i(), r.Duplex = _(), r.Transform = o, r.PassThrough = s, r.finished = t, r.pipeline = f;
11
- })(e, e.exports);
12
- var w = e.exports;
1
+ import { hexToBytes as b } from "./index58.js";
2
+ import { bytesToHex as y } from "./index45.js";
3
+ function h(t) {
4
+ const { kzg: m } = t, c = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), s = typeof t.blobs[0] == "string" ? t.blobs.map((o) => b(o)) : t.blobs, i = typeof t.commitments[0] == "string" ? t.commitments.map((o) => b(o)) : t.commitments, n = [];
5
+ for (let o = 0; o < s.length; o++) {
6
+ const f = s[o], l = i[o];
7
+ n.push(Uint8Array.from(m.computeBlobKzgProof(f, l)));
8
+ }
9
+ return c === "bytes" ? n : n.map((o) => y(o));
10
+ }
13
11
  export {
14
- w as r
12
+ h as blobsToProofs
15
13
  };
package/dist/index65.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const t={};module.exports=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index90.cjs");function c(o){const{commitments:e,version:s}=o,n=o.to??(typeof e[0]=="string"?"hex":"bytes"),t=[];for(const m of e)t.push(i.commitmentToVersionedHash({commitment:m,to:n,version:s}));return t}exports.commitmentsToVersionedHashes=c;
package/dist/index65.js CHANGED
@@ -1,4 +1,14 @@
1
- const e = {};
1
+ import { commitmentToVersionedHash as i } from "./index90.js";
2
+ function r(o) {
3
+ const { commitments: t, version: n } = o, e = o.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), s = [];
4
+ for (const m of t)
5
+ s.push(i({
6
+ commitment: m,
7
+ to: e,
8
+ version: n
9
+ }));
10
+ return s;
11
+ }
2
12
  export {
3
- e as default
13
+ r as commitmentsToVersionedHashes
4
14
  };
package/dist/index66.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index31.cjs");var n=a.safeBufferExports.Buffer;function f(t,i){this._block=n.alloc(t),this._finalSize=i,this._blockSize=t,this._len=0}f.prototype.update=function(t,i){typeof t=="string"&&(i=i||"utf8",t=n.from(t,i));for(var e=this._block,h=this._blockSize,s=t.length,r=this._len,l=0;l<s;){for(var c=r%h,_=Math.min(s-l,h-c),o=0;o<_;o++)e[c+o]=t[l+o];r+=_,l+=_,r%h===0&&this._update(e)}return this._len+=s,this};f.prototype.digest=function(t){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=this._len*8;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var h=(e&4294967295)>>>0,s=(e-h)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(h,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r};f.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var b=f;exports.hash=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index63.cjs"),m=require("./index64.cjs"),u=require("./index91.cjs");function f(t){const{data:i,kzg:n,to:b}=t,s=t.blobs??u.toBlobs({data:i,to:b}),e=t.commitments??r.blobsToCommitments({blobs:s,kzg:n,to:b}),l=t.proofs??m.blobsToProofs({blobs:s,commitments:e,kzg:n,to:b}),c=[];for(let o=0;o<s.length;o++)c.push({blob:s[o],commitment:e[o],proof:l[o]});return c}exports.toBlobSidecars=f;
package/dist/index66.js CHANGED
@@ -1,35 +1,16 @@
1
- import { s as b } from "./index31.js";
2
- var c = b.Buffer;
3
- function e(t, i) {
4
- this._block = c.alloc(t), this._finalSize = i, this._blockSize = t, this._len = 0;
1
+ import { blobsToCommitments as f } from "./index63.js";
2
+ import { blobsToProofs as l } from "./index64.js";
3
+ import { toBlobs as p } from "./index91.js";
4
+ function k(t) {
5
+ const { data: i, kzg: n, to: m } = t, s = t.blobs ?? p({ data: i, to: m }), b = t.commitments ?? f({ blobs: s, kzg: n, to: m }), r = t.proofs ?? l({ blobs: s, commitments: b, kzg: n, to: m }), c = [];
6
+ for (let o = 0; o < s.length; o++)
7
+ c.push({
8
+ blob: s[o],
9
+ commitment: b[o],
10
+ proof: r[o]
11
+ });
12
+ return c;
5
13
  }
6
- e.prototype.update = function(t, i) {
7
- typeof t == "string" && (i = i || "utf8", t = c.from(t, i));
8
- for (var h = this._block, s = this._blockSize, f = t.length, r = this._len, o = 0; o < f; ) {
9
- for (var a = r % s, _ = Math.min(f - o, s - a), l = 0; l < _; l++)
10
- h[a + l] = t[o + l];
11
- r += _, o += _, r % s === 0 && this._update(h);
12
- }
13
- return this._len += f, this;
14
- };
15
- e.prototype.digest = function(t) {
16
- var i = this._len % this._blockSize;
17
- this._block[i] = 128, this._block.fill(0, i + 1), i >= this._finalSize && (this._update(this._block), this._block.fill(0));
18
- var h = this._len * 8;
19
- if (h <= 4294967295)
20
- this._block.writeUInt32BE(h, this._blockSize - 4);
21
- else {
22
- var s = (h & 4294967295) >>> 0, f = (h - s) / 4294967296;
23
- this._block.writeUInt32BE(f, this._blockSize - 8), this._block.writeUInt32BE(s, this._blockSize - 4);
24
- }
25
- this._update(this._block);
26
- var r = this._hash();
27
- return t ? r.toString(t) : r;
28
- };
29
- e.prototype._update = function() {
30
- throw new Error("_update must be implemented by subclass");
31
- };
32
- var u = e;
33
14
  export {
34
- u as h
15
+ k as toBlobSidecars
35
16
  };
package/dist/index67.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function g(e,{dir:i="left"}={}){let t=typeof e=="string"?e.replace("0x",""):e,n=0;for(let l=0;l<t.length-1&&t[i==="left"?l:t.length-l-1].toString()==="0";l++)n++;return t=i==="left"?t.slice(n):t.slice(0,t.length-n),typeof e=="string"?(t.length===1&&i==="right"&&(t=`${t}0`),`0x${t.length%2===1?`0${t}`:t}`):t}exports.trim=g;
package/dist/index67.js CHANGED
@@ -1,4 +1,9 @@
1
- var e = { exports: {} };
1
+ function f(e, { dir: n = "left" } = {}) {
2
+ let t = typeof e == "string" ? e.replace("0x", "") : e, i = 0;
3
+ for (let l = 0; l < t.length - 1 && t[n === "left" ? l : t.length - l - 1].toString() === "0"; l++)
4
+ i++;
5
+ return t = n === "left" ? t.slice(i) : t.slice(0, t.length - i), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
6
+ }
2
7
  export {
3
- e as __module
8
+ f as trim
4
9
  };
package/dist/index68.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("./index29.cjs"),ge=require("./index75.cjs"),_e=require("./index76.cjs");require("./index34.cjs");const ye=require("./index61.cjs"),ve=require("./index77.cjs"),we=require("./index78.cjs"),me=require("./index79.cjs");require("./index80.cjs");const Re=require("./index45.cjs"),Y=require("./index70.cjs");require("./index62.cjs");const Se=require("./index81.cjs"),Ee=require("./index82.cjs"),Me=require("./index35.cjs"),X=require("./index63.cjs"),Le=require("./index83.cjs");var x,$;function Te(){if($)return x;$=1,x=o;var l;o.ReadableState=W,ge.eventsExports.EventEmitter;var O=function(e,t){return e.listeners(t).length},c=_e.streamBrowser,_=Me.__exports.Buffer,z=(typeof V.commonjsGlobal<"u"?V.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function J(r){return _.from(r)}function K(r){return _.isBuffer(r)||r instanceof z}var m=ye,n;m&&m.debuglog?n=m.debuglog("stream"):n=function(){};var Q=ve.__require(),R=we.destroy_1,Z=me.state,ee=Z.getHighWaterMark,y=Le.__exports.codes,re=y.ERR_INVALID_ARG_TYPE,te=y.ERR_STREAM_PUSH_AFTER_EOF,ie=y.ERR_METHOD_NOT_IMPLEMENTED,ne=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,s,S,E;Re.inherits_browserExports(o,c);var b=R.errorOrDestroy,M=["error","close","destroy","pause","resume"];function ae(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function W(r,e,t){l=l||Y.__require(),r=r||{},typeof t!="boolean"&&(t=e instanceof l),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=ee(this,r,"readableHighWaterMark",t),this.buffer=new Q,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(s||(s=X.__exports.StringDecoder),this.decoder=new s(r.encoding),this.encoding=r.encoding)}function o(r){if(l=l||Y.__require(),!(this instanceof o))return new o(r);var e=this instanceof l;this._readableState=new W(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),c.call(this)}Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),o.prototype.destroy=R.destroy,o.prototype._undestroy=R.undestroy,o.prototype._destroy=function(r,e){e(r)},o.prototype.push=function(r,e){var t=this._readableState,i;return t.objectMode?i=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=_.from(r,e),e=""),i=!0),N(this,r,e,!1,i)},o.prototype.unshift=function(r){return N(this,r,null,!0,!1)};function N(r,e,t,i,f){n("readableAddChunk",e);var a=r._readableState;if(e===null)a.reading=!1,fe(r,a);else{var d;if(f||(d=oe(a,e)),d)b(r,d);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==_.prototype&&(e=J(e)),i)a.endEmitted?b(r,new ne):L(r,a,e,!0);else if(a.ended)b(r,new te);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!t?(e=a.decoder.write(e),a.objectMode||e.length!==0?L(r,a,e,!1):T(r,a)):L(r,a,e,!1)}else i||(a.reading=!1,T(r,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function L(r,e,t,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,i?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&v(r)),T(r,e)}function oe(r,e){var t;return!K(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new re("chunk",["string","Buffer","Uint8Array"],e)),t}o.prototype.isPaused=function(){return this._readableState.flowing===!1},o.prototype.setEncoding=function(r){s||(s=X.__exports.StringDecoder);var e=new s(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,i="";t!==null;)i+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var P=1073741824;function de(r){return r>=P?r=P:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function U(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=de(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}o.prototype.read=function(r){n("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return n("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?j(this):v(this),null;if(r=U(r,e),r===0&&e.ended)return e.length===0&&j(this),null;var i=e.needReadable;n("need readable",i),(e.length===0||e.length-r<e.highWaterMark)&&(i=!0,n("length less than watermark",i)),e.ended||e.reading?(i=!1,n("reading or ended",i)):i&&(n("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=U(t,e)));var f;return r>0?f=I(r,e):f=null,f===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&j(this)),f!==null&&this.emit("data",f),f};function fe(r,e){if(n("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?v(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,H(r)))}}function v(r){var e=r._readableState;n("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(n("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(H,r))}function H(r){var e=r._readableState;n("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,D(r)}function T(r,e){e.readingMore||(e.readingMore=!0,process.nextTick(le,r,e))}function le(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(n("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}o.prototype._read=function(r){b(this,new ie("_read()"))},o.prototype.pipe=function(r,e){var t=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r);break}i.pipesCount+=1,n("pipe count=%d opts=%j",i.pipesCount,e);var f=(!e||e.end!==!1)&&r!==process.stdout&&r!==process.stderr,a=f?u:g;i.endEmitted?process.nextTick(a):t.once("end",a),r.on("unpipe",d);function d(p,h){n("onunpipe"),p===t&&h&&h.hasUnpiped===!1&&(h.hasUnpiped=!0,be())}function u(){n("onend"),r.end()}var w=se(t);r.on("drain",w);var k=!1;function be(){n("cleanup"),r.removeListener("close",C),r.removeListener("finish",A),r.removeListener("drain",w),r.removeListener("error",q),r.removeListener("unpipe",d),t.removeListener("end",u),t.removeListener("end",g),t.removeListener("data",G),k=!0,i.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&w()}t.on("data",G);function G(p){n("ondata");var h=r.write(p);n("dest.write",h),h===!1&&((i.pipesCount===1&&i.pipes===r||i.pipesCount>1&&F(i.pipes,r)!==-1)&&!k&&(n("false write response, pause",i.awaitDrain),i.awaitDrain++),t.pause())}function q(p){n("onerror",p),g(),r.removeListener("error",q),O(r,"error")===0&&b(r,p)}ae(r,"error",q);function C(){r.removeListener("finish",A),g()}r.once("close",C);function A(){n("onfinish"),r.removeListener("close",C),g()}r.once("finish",A);function g(){n("unpipe"),t.unpipe(r)}return r.emit("pipe",t),i.flowing||(n("pipe resume"),t.resume()),r};function se(r){return function(){var t=r._readableState;n("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&O(r,"data")&&(t.flowing=!0,D(r))}}o.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var i=e.pipes,f=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<f;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var d=F(e.pipes,r);return d===-1?this:(e.pipes.splice(d,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)},o.prototype.on=function(r,e){var t=c.prototype.on.call(this,r,e),i=this._readableState;return r==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):r==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,n("on readable",i.length,i.reading),i.length?v(this):i.reading||process.nextTick(ue,this)),t},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(r,e){var t=c.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(B,this),t},o.prototype.removeAllListeners=function(r){var e=c.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(B,this),e};function B(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function ue(r){n("readable nexttick read 0"),r.read(0)}o.prototype.resume=function(){var r=this._readableState;return r.flowing||(n("resume"),r.flowing=!r.readableListening,pe(this,r)),r.paused=!1,this};function pe(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(he,r,e))}function he(r,e){n("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),D(r),e.flowing&&!e.reading&&r.read(0)}o.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function D(r){var e=r._readableState;for(n("flow",e.flowing);e.flowing&&r.read()!==null;);}o.prototype.wrap=function(r){var e=this,t=this._readableState,i=!1;r.on("end",function(){if(n("wrapped end"),t.decoder&&!t.ended){var d=t.decoder.end();d&&d.length&&e.push(d)}e.push(null)}),r.on("data",function(d){if(n("wrapped data"),t.decoder&&(d=t.decoder.write(d)),!(t.objectMode&&d==null)&&!(!t.objectMode&&(!d||!d.length))){var u=e.push(d);u||(i=!0,r.pause())}});for(var f in r)this[f]===void 0&&typeof r[f]=="function"&&(this[f]=function(u){return function(){return r[u].apply(r,arguments)}}(f));for(var a=0;a<M.length;a++)r.on(M[a],this.emit.bind(this,M[a]));return this._read=function(d){n("wrapped _read",d),i&&(i=!1,r.resume())},this},typeof Symbol=="function"&&(o.prototype[Symbol.asyncIterator]=function(){return S===void 0&&(S=Se.__require()),S(this)}),Object.defineProperty(o.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(o.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(o.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),o._fromList=I,Object.defineProperty(o.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function I(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function j(r){var e=r._readableState;n("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(ce,e,r))}function ce(r,e){if(n("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(o.from=function(r,e){return E===void 0&&(E=Ee.__require()),E(o,r,e)});function F(r,e){for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t;return-1}return x}exports.__require=Te;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index45.cjs"),c=require("./index47.cjs");function u(t){if(!t||t.length===0)return[];const e=[];for(const o of t){const{contractAddress:n,chainId:s,nonce:r,...a}=o;e.push([i.toHex(s),n,r?i.toHex(r):"0x",...c.toYParitySignatureArray({},a)])}return e}exports.serializeAuthorizationList=u;