@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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -14
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +55 -41
- package/dist/index100.cjs +1 -0
- package/dist/index100.js +37 -0
- package/dist/index101.cjs +1 -0
- package/dist/index101.js +369 -0
- package/dist/index102.cjs +1 -0
- package/dist/index102.js +23 -0
- package/dist/index103.cjs +1 -0
- package/dist/index103.js +58 -0
- package/dist/index104.cjs +1 -0
- package/dist/index104.js +5 -0
- package/dist/index105.cjs +1 -0
- package/dist/index105.js +51 -0
- package/dist/index106.cjs +1 -0
- package/dist/index106.js +28 -0
- package/dist/index107.cjs +1 -0
- package/dist/index107.js +4 -0
- package/dist/index108.cjs +1 -0
- package/dist/index108.js +4 -0
- package/dist/index109.cjs +1 -0
- package/dist/index109.js +64 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +37 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +7 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +4 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +60 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +4 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +42 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +45 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +20 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +111 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +23 -0
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +228 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +6 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +160 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +4 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +75 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +107 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +15 -0
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +35 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +4 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +32 -0
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +21 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +4 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +358 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +241 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +70 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +64 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +14 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +47 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +65 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +228 -0
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -2
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +5 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +171 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +30 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +23 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +72 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +130 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +9 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +4 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +28 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +4 -0
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +30 -136
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +25 -2
- package/dist/index18.cjs +1 -3
- package/dist/index18.js +29 -26
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +32 -17
- package/dist/index20.cjs +1 -2
- package/dist/index20.js +53 -25
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +6 -38
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +9 -199
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +138 -2
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +13 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +36 -27
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +41 -14
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +26 -173
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +15 -22
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +24 -2
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +25 -34
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +54 -8
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +28 -2
- package/dist/index34.cjs +3 -6
- package/dist/index34.js +30 -949
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +17 -4
- package/dist/index36.cjs +2 -1
- package/dist/index36.js +23 -18
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +38 -29
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +197 -60
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +2 -33
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +2 -87
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +2 -49
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +12 -25
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +12 -2
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +4 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +45 -19
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +38 -30
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +165 -360
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +13 -21
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +3 -54
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +17 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +9 -70
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +175 -2
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +21 -57
- package/dist/index54.js +2 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +34 -39
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +9 -43
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +34 -17
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +50 -103
- package/dist/index59.cjs +2 -1
- package/dist/index59.js +58 -19
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +3 -225
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +128 -4
- package/dist/index62.cjs +2 -1
- package/dist/index62.js +37 -152
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +11 -13
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +12 -2
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +13 -32
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -2
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +17 -355
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +75 -235
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +14 -67
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +17 -60
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +6 -11
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +20 -43
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +13 -62
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +2 -226
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +2 -3
- package/dist/index77.cjs +2 -1
- package/dist/index77.js +32 -166
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +5 -27
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +18 -19
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +30 -68
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +2 -128
- package/dist/index82.cjs +6 -1
- package/dist/index82.js +949 -9
- package/dist/index83.cjs +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +61 -25
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +33 -2
- package/dist/index86.cjs +1 -0
- package/dist/index86.js +89 -0
- package/dist/index87.cjs +1 -0
- package/dist/index87.js +15 -0
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +9 -0
- package/dist/index89.cjs +1 -0
- package/dist/index89.js +115 -0
- package/dist/index90.cjs +1 -0
- package/dist/index90.js +9 -0
- package/dist/index91.cjs +1 -0
- package/dist/index91.js +35 -0
- package/dist/index92.cjs +1 -0
- package/dist/index92.js +4 -0
- package/dist/index93.cjs +1 -0
- package/dist/index93.js +40 -0
- package/dist/index94.cjs +1 -0
- package/dist/index94.js +31 -0
- package/dist/index95.cjs +1 -0
- package/dist/index95.js +23 -0
- package/dist/index96.cjs +1 -0
- package/dist/index96.js +9 -0
- package/dist/index97.cjs +1 -0
- package/dist/index97.js +7 -0
- package/dist/index98.cjs +1 -0
- package/dist/index98.js +13 -0
- package/dist/index99.cjs +1 -0
- package/dist/index99.js +22 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +3 -1
- package/package.json +2 -2
package/dist/index47.js
CHANGED
|
@@ -1,369 +1,174 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
11,
|
|
18
|
-
12,
|
|
19
|
-
13,
|
|
20
|
-
14,
|
|
21
|
-
15,
|
|
22
|
-
7,
|
|
23
|
-
4,
|
|
24
|
-
13,
|
|
25
|
-
1,
|
|
26
|
-
10,
|
|
27
|
-
6,
|
|
28
|
-
15,
|
|
29
|
-
3,
|
|
30
|
-
12,
|
|
31
|
-
0,
|
|
32
|
-
9,
|
|
33
|
-
5,
|
|
34
|
-
2,
|
|
35
|
-
14,
|
|
36
|
-
11,
|
|
37
|
-
8,
|
|
38
|
-
3,
|
|
39
|
-
10,
|
|
40
|
-
14,
|
|
41
|
-
4,
|
|
42
|
-
9,
|
|
43
|
-
15,
|
|
44
|
-
8,
|
|
45
|
-
1,
|
|
46
|
-
2,
|
|
47
|
-
7,
|
|
48
|
-
0,
|
|
49
|
-
6,
|
|
50
|
-
13,
|
|
51
|
-
11,
|
|
52
|
-
5,
|
|
53
|
-
12,
|
|
54
|
-
1,
|
|
55
|
-
9,
|
|
56
|
-
11,
|
|
57
|
-
10,
|
|
58
|
-
0,
|
|
59
|
-
8,
|
|
60
|
-
12,
|
|
61
|
-
4,
|
|
62
|
-
13,
|
|
63
|
-
3,
|
|
64
|
-
7,
|
|
65
|
-
15,
|
|
66
|
-
14,
|
|
67
|
-
5,
|
|
68
|
-
6,
|
|
69
|
-
2,
|
|
70
|
-
4,
|
|
71
|
-
0,
|
|
72
|
-
5,
|
|
73
|
-
9,
|
|
74
|
-
7,
|
|
75
|
-
12,
|
|
76
|
-
2,
|
|
77
|
-
10,
|
|
78
|
-
14,
|
|
79
|
-
1,
|
|
80
|
-
3,
|
|
81
|
-
8,
|
|
82
|
-
11,
|
|
83
|
-
6,
|
|
84
|
-
15,
|
|
85
|
-
13
|
|
86
|
-
], x = [
|
|
87
|
-
5,
|
|
88
|
-
14,
|
|
89
|
-
7,
|
|
90
|
-
0,
|
|
91
|
-
9,
|
|
92
|
-
2,
|
|
93
|
-
11,
|
|
94
|
-
4,
|
|
95
|
-
13,
|
|
96
|
-
6,
|
|
97
|
-
15,
|
|
98
|
-
8,
|
|
99
|
-
1,
|
|
100
|
-
10,
|
|
101
|
-
3,
|
|
102
|
-
12,
|
|
103
|
-
6,
|
|
104
|
-
11,
|
|
105
|
-
3,
|
|
106
|
-
7,
|
|
107
|
-
0,
|
|
108
|
-
13,
|
|
109
|
-
5,
|
|
110
|
-
10,
|
|
111
|
-
14,
|
|
112
|
-
15,
|
|
113
|
-
8,
|
|
114
|
-
12,
|
|
115
|
-
4,
|
|
116
|
-
9,
|
|
117
|
-
1,
|
|
118
|
-
2,
|
|
119
|
-
15,
|
|
120
|
-
5,
|
|
121
|
-
1,
|
|
122
|
-
3,
|
|
123
|
-
7,
|
|
124
|
-
14,
|
|
125
|
-
6,
|
|
126
|
-
9,
|
|
127
|
-
11,
|
|
128
|
-
8,
|
|
129
|
-
12,
|
|
130
|
-
2,
|
|
131
|
-
10,
|
|
132
|
-
0,
|
|
133
|
-
4,
|
|
134
|
-
13,
|
|
135
|
-
8,
|
|
136
|
-
6,
|
|
137
|
-
4,
|
|
138
|
-
1,
|
|
139
|
-
3,
|
|
140
|
-
11,
|
|
141
|
-
15,
|
|
142
|
-
0,
|
|
143
|
-
5,
|
|
144
|
-
12,
|
|
145
|
-
2,
|
|
146
|
-
13,
|
|
147
|
-
9,
|
|
148
|
-
7,
|
|
149
|
-
10,
|
|
150
|
-
14,
|
|
151
|
-
12,
|
|
152
|
-
15,
|
|
153
|
-
10,
|
|
154
|
-
4,
|
|
155
|
-
1,
|
|
156
|
-
5,
|
|
157
|
-
8,
|
|
158
|
-
7,
|
|
159
|
-
6,
|
|
160
|
-
2,
|
|
161
|
-
13,
|
|
162
|
-
14,
|
|
163
|
-
0,
|
|
164
|
-
3,
|
|
165
|
-
9,
|
|
166
|
-
11
|
|
167
|
-
], p = [
|
|
168
|
-
11,
|
|
169
|
-
14,
|
|
170
|
-
15,
|
|
171
|
-
12,
|
|
172
|
-
5,
|
|
173
|
-
8,
|
|
174
|
-
7,
|
|
175
|
-
9,
|
|
176
|
-
11,
|
|
177
|
-
13,
|
|
178
|
-
14,
|
|
179
|
-
15,
|
|
180
|
-
6,
|
|
181
|
-
7,
|
|
182
|
-
9,
|
|
183
|
-
8,
|
|
184
|
-
7,
|
|
185
|
-
6,
|
|
186
|
-
8,
|
|
187
|
-
13,
|
|
188
|
-
11,
|
|
189
|
-
9,
|
|
190
|
-
7,
|
|
191
|
-
15,
|
|
192
|
-
7,
|
|
193
|
-
12,
|
|
194
|
-
15,
|
|
195
|
-
9,
|
|
196
|
-
11,
|
|
197
|
-
7,
|
|
198
|
-
13,
|
|
199
|
-
12,
|
|
200
|
-
11,
|
|
201
|
-
13,
|
|
202
|
-
6,
|
|
203
|
-
7,
|
|
204
|
-
14,
|
|
205
|
-
9,
|
|
206
|
-
13,
|
|
207
|
-
15,
|
|
208
|
-
14,
|
|
209
|
-
8,
|
|
210
|
-
13,
|
|
211
|
-
6,
|
|
212
|
-
5,
|
|
213
|
-
12,
|
|
214
|
-
7,
|
|
215
|
-
5,
|
|
216
|
-
11,
|
|
217
|
-
12,
|
|
218
|
-
14,
|
|
219
|
-
15,
|
|
220
|
-
14,
|
|
221
|
-
15,
|
|
222
|
-
9,
|
|
223
|
-
8,
|
|
224
|
-
9,
|
|
225
|
-
14,
|
|
226
|
-
5,
|
|
227
|
-
6,
|
|
228
|
-
8,
|
|
229
|
-
6,
|
|
230
|
-
5,
|
|
231
|
-
12,
|
|
232
|
-
9,
|
|
233
|
-
15,
|
|
234
|
-
5,
|
|
235
|
-
11,
|
|
236
|
-
6,
|
|
237
|
-
8,
|
|
238
|
-
13,
|
|
239
|
-
12,
|
|
240
|
-
5,
|
|
241
|
-
12,
|
|
242
|
-
13,
|
|
243
|
-
14,
|
|
244
|
-
11,
|
|
245
|
-
8,
|
|
246
|
-
5,
|
|
247
|
-
6
|
|
248
|
-
], k = [
|
|
249
|
-
8,
|
|
250
|
-
9,
|
|
251
|
-
9,
|
|
252
|
-
11,
|
|
253
|
-
13,
|
|
254
|
-
15,
|
|
255
|
-
15,
|
|
256
|
-
5,
|
|
257
|
-
7,
|
|
258
|
-
7,
|
|
259
|
-
8,
|
|
260
|
-
11,
|
|
261
|
-
14,
|
|
262
|
-
14,
|
|
263
|
-
12,
|
|
264
|
-
6,
|
|
265
|
-
9,
|
|
266
|
-
13,
|
|
267
|
-
15,
|
|
268
|
-
7,
|
|
269
|
-
12,
|
|
270
|
-
8,
|
|
271
|
-
9,
|
|
272
|
-
11,
|
|
273
|
-
7,
|
|
274
|
-
7,
|
|
275
|
-
12,
|
|
276
|
-
7,
|
|
277
|
-
6,
|
|
278
|
-
15,
|
|
279
|
-
13,
|
|
280
|
-
11,
|
|
281
|
-
9,
|
|
282
|
-
7,
|
|
283
|
-
15,
|
|
284
|
-
11,
|
|
285
|
-
8,
|
|
286
|
-
6,
|
|
287
|
-
6,
|
|
288
|
-
14,
|
|
289
|
-
12,
|
|
290
|
-
13,
|
|
291
|
-
5,
|
|
292
|
-
14,
|
|
293
|
-
13,
|
|
294
|
-
13,
|
|
295
|
-
7,
|
|
296
|
-
5,
|
|
297
|
-
15,
|
|
298
|
-
5,
|
|
299
|
-
8,
|
|
300
|
-
11,
|
|
301
|
-
14,
|
|
302
|
-
14,
|
|
303
|
-
6,
|
|
304
|
-
14,
|
|
305
|
-
6,
|
|
306
|
-
9,
|
|
307
|
-
12,
|
|
308
|
-
9,
|
|
309
|
-
12,
|
|
310
|
-
5,
|
|
311
|
-
15,
|
|
312
|
-
8,
|
|
313
|
-
8,
|
|
314
|
-
5,
|
|
315
|
-
12,
|
|
316
|
-
9,
|
|
317
|
-
12,
|
|
318
|
-
5,
|
|
319
|
-
14,
|
|
320
|
-
6,
|
|
321
|
-
8,
|
|
322
|
-
13,
|
|
323
|
-
6,
|
|
324
|
-
5,
|
|
325
|
-
15,
|
|
326
|
-
13,
|
|
327
|
-
11,
|
|
328
|
-
11
|
|
329
|
-
], w = [0, 1518500249, 1859775393, 2400959708, 2840853838], E = [1352829926, 1548603684, 1836072691, 2053994217, 0];
|
|
330
|
-
function I() {
|
|
331
|
-
A.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
|
|
1
|
+
import { InvalidLegacyVError as H } from "./index62.js";
|
|
2
|
+
import { blobsToCommitments as g } from "./index63.js";
|
|
3
|
+
import { blobsToProofs as B } from "./index64.js";
|
|
4
|
+
import { commitmentsToVersionedHashes as V } from "./index65.js";
|
|
5
|
+
import { toBlobSidecars as C } from "./index66.js";
|
|
6
|
+
import { concatHex as h } from "./index44.js";
|
|
7
|
+
import { trim as T } from "./index67.js";
|
|
8
|
+
import { toHex as o, bytesToHex as k } from "./index45.js";
|
|
9
|
+
import { toRlp as y } from "./index46.js";
|
|
10
|
+
import { serializeAuthorizationList as w } from "./index68.js";
|
|
11
|
+
import { assertTransactionEIP7702 as S, assertTransactionEIP4844 as _, assertTransactionEIP1559 as R, assertTransactionEIP2930 as Y, assertTransactionLegacy as j } from "./index69.js";
|
|
12
|
+
import { getTransactionType as q } from "./index70.js";
|
|
13
|
+
import { serializeAccessList as v } from "./index71.js";
|
|
14
|
+
function te(e, r) {
|
|
15
|
+
const i = q(e);
|
|
16
|
+
return i === "eip1559" ? K(e, r) : i === "eip2930" ? M(e, r) : i === "eip4844" ? J(e, r) : i === "eip7702" ? D(e, r) : N(e, r);
|
|
332
17
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
18
|
+
function D(e, r) {
|
|
19
|
+
const { authorizationList: i, chainId: s, gas: n, nonce: c, to: f, value: a, maxFeePerGas: x, maxPriorityFeePerGas: t, accessList: p, data: l } = e;
|
|
20
|
+
S(e);
|
|
21
|
+
const d = v(p), m = w(i);
|
|
22
|
+
return h([
|
|
23
|
+
"0x04",
|
|
24
|
+
y([
|
|
25
|
+
o(s),
|
|
26
|
+
c ? o(c) : "0x",
|
|
27
|
+
t ? o(t) : "0x",
|
|
28
|
+
x ? o(x) : "0x",
|
|
29
|
+
n ? o(n) : "0x",
|
|
30
|
+
f ?? "0x",
|
|
31
|
+
a ? o(a) : "0x",
|
|
32
|
+
l ?? "0x",
|
|
33
|
+
d,
|
|
34
|
+
m,
|
|
35
|
+
...I(e, r)
|
|
36
|
+
])
|
|
37
|
+
]);
|
|
350
38
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
39
|
+
function J(e, r) {
|
|
40
|
+
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerBlobGas: a, maxFeePerGas: x, maxPriorityFeePerGas: t, accessList: p, data: l } = e;
|
|
41
|
+
_(e);
|
|
42
|
+
let d = e.blobVersionedHashes, m = e.sidecars;
|
|
43
|
+
if (e.blobs && (typeof d > "u" || typeof m > "u")) {
|
|
44
|
+
const u = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((P) => k(P)), z = e.kzg, b = g({
|
|
45
|
+
blobs: u,
|
|
46
|
+
kzg: z
|
|
47
|
+
});
|
|
48
|
+
if (typeof d > "u" && (d = V({
|
|
49
|
+
commitments: b
|
|
50
|
+
})), typeof m > "u") {
|
|
51
|
+
const P = B({ blobs: u, commitments: b, kzg: z });
|
|
52
|
+
m = C({ blobs: u, commitments: b, proofs: P });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const L = v(p), E = [
|
|
56
|
+
o(i),
|
|
57
|
+
n ? o(n) : "0x",
|
|
58
|
+
t ? o(t) : "0x",
|
|
59
|
+
x ? o(x) : "0x",
|
|
60
|
+
s ? o(s) : "0x",
|
|
61
|
+
c ?? "0x",
|
|
62
|
+
f ? o(f) : "0x",
|
|
63
|
+
l ?? "0x",
|
|
64
|
+
L,
|
|
65
|
+
a ? o(a) : "0x",
|
|
66
|
+
d ?? [],
|
|
67
|
+
...I(e, r)
|
|
68
|
+
], A = [], F = [], G = [];
|
|
69
|
+
if (m)
|
|
70
|
+
for (let u = 0; u < m.length; u++) {
|
|
71
|
+
const { blob: z, commitment: b, proof: P } = m[u];
|
|
72
|
+
A.push(z), F.push(b), G.push(P);
|
|
73
|
+
}
|
|
74
|
+
return h([
|
|
75
|
+
"0x03",
|
|
76
|
+
m ? (
|
|
77
|
+
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
78
|
+
y([E, A, F, G])
|
|
79
|
+
) : (
|
|
80
|
+
// If sidecars are disabled, standard envelope is used:
|
|
81
|
+
y(E)
|
|
82
|
+
)
|
|
83
|
+
]);
|
|
353
84
|
}
|
|
354
|
-
function
|
|
355
|
-
|
|
85
|
+
function K(e, r) {
|
|
86
|
+
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerGas: a, maxPriorityFeePerGas: x, accessList: t, data: p } = e;
|
|
87
|
+
R(e);
|
|
88
|
+
const l = v(t), d = [
|
|
89
|
+
o(i),
|
|
90
|
+
n ? o(n) : "0x",
|
|
91
|
+
x ? o(x) : "0x",
|
|
92
|
+
a ? o(a) : "0x",
|
|
93
|
+
s ? o(s) : "0x",
|
|
94
|
+
c ?? "0x",
|
|
95
|
+
f ? o(f) : "0x",
|
|
96
|
+
p ?? "0x",
|
|
97
|
+
l,
|
|
98
|
+
...I(e, r)
|
|
99
|
+
];
|
|
100
|
+
return h([
|
|
101
|
+
"0x02",
|
|
102
|
+
y(d)
|
|
103
|
+
]);
|
|
356
104
|
}
|
|
357
|
-
function
|
|
358
|
-
|
|
105
|
+
function M(e, r) {
|
|
106
|
+
const { chainId: i, gas: s, data: n, nonce: c, to: f, value: a, accessList: x, gasPrice: t } = e;
|
|
107
|
+
Y(e);
|
|
108
|
+
const p = v(x), l = [
|
|
109
|
+
o(i),
|
|
110
|
+
c ? o(c) : "0x",
|
|
111
|
+
t ? o(t) : "0x",
|
|
112
|
+
s ? o(s) : "0x",
|
|
113
|
+
f ?? "0x",
|
|
114
|
+
a ? o(a) : "0x",
|
|
115
|
+
n ?? "0x",
|
|
116
|
+
p,
|
|
117
|
+
...I(e, r)
|
|
118
|
+
];
|
|
119
|
+
return h([
|
|
120
|
+
"0x01",
|
|
121
|
+
y(l)
|
|
122
|
+
]);
|
|
359
123
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
124
|
+
function N(e, r) {
|
|
125
|
+
const { chainId: i = 0, gas: s, data: n, nonce: c, to: f, value: a, gasPrice: x } = e;
|
|
126
|
+
j(e);
|
|
127
|
+
let t = [
|
|
128
|
+
c ? o(c) : "0x",
|
|
129
|
+
x ? o(x) : "0x",
|
|
130
|
+
s ? o(s) : "0x",
|
|
131
|
+
f ?? "0x",
|
|
132
|
+
a ? o(a) : "0x",
|
|
133
|
+
n ?? "0x"
|
|
134
|
+
];
|
|
135
|
+
if (r) {
|
|
136
|
+
const p = (() => {
|
|
137
|
+
if (r.v >= 35n)
|
|
138
|
+
return (r.v - 35n) / 2n > 0 ? r.v : 27n + (r.v === 35n ? 0n : 1n);
|
|
139
|
+
if (i > 0)
|
|
140
|
+
return BigInt(i * 2) + BigInt(35n + r.v - 27n);
|
|
141
|
+
const m = 27n + (r.v === 27n ? 0n : 1n);
|
|
142
|
+
if (r.v !== m)
|
|
143
|
+
throw new H({ v: r.v });
|
|
144
|
+
return m;
|
|
145
|
+
})(), l = T(r.r), d = T(r.s);
|
|
146
|
+
t = [
|
|
147
|
+
...t,
|
|
148
|
+
o(p),
|
|
149
|
+
l === "0x00" ? "0x" : l,
|
|
150
|
+
d === "0x00" ? "0x" : d
|
|
151
|
+
];
|
|
152
|
+
} else i > 0 && (t = [
|
|
153
|
+
...t,
|
|
154
|
+
o(i),
|
|
155
|
+
"0x",
|
|
156
|
+
"0x"
|
|
157
|
+
]);
|
|
158
|
+
return y(t);
|
|
362
159
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
160
|
+
function I(e, r) {
|
|
161
|
+
const i = r ?? e, { v: s, yParity: n } = i;
|
|
162
|
+
if (typeof i.r > "u")
|
|
163
|
+
return [];
|
|
164
|
+
if (typeof i.s > "u")
|
|
165
|
+
return [];
|
|
166
|
+
if (typeof s > "u" && typeof n > "u")
|
|
167
|
+
return [];
|
|
168
|
+
const c = T(i.r), f = T(i.s);
|
|
169
|
+
return [typeof n == "number" ? n ? o(1) : "0x" : s === 0n ? "0x" : s === 1n ? o(1) : s === 27n ? "0x" : o(1), c === "0x00" ? "0x" : c, f === "0x00" ? "0x" : f];
|
|
365
170
|
}
|
|
366
|
-
var F = I;
|
|
367
171
|
export {
|
|
368
|
-
|
|
172
|
+
te as serializeTransaction,
|
|
173
|
+
I as toYParitySignatureArray
|
|
369
174
|
};
|
package/dist/index48.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index59.cjs");class i extends n.BaseError{constructor({max:e,min:r,signed:s,size:t,value:a}){super(`Number "${a}" is not in safe ${t?`${t*8}-bit ${s?"signed":"unsigned"} `:""}integer range ${e?`(${r} to ${e})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}}class u extends n.BaseError{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}exports.IntegerOutOfRangeError=i;exports.SizeOverflowError=u;
|
package/dist/index48.js
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return new o();
|
|
13
|
-
};
|
|
14
|
-
s.sha = t;
|
|
15
|
-
s.sha1 = p;
|
|
16
|
-
s.sha224 = e;
|
|
17
|
-
s.sha256 = h;
|
|
18
|
-
s.sha384 = m;
|
|
19
|
-
s.sha512 = f;
|
|
20
|
-
var d = a.exports;
|
|
1
|
+
import { BaseError as t } from "./index59.js";
|
|
2
|
+
class $ extends t {
|
|
3
|
+
constructor({ max: e, min: r, signed: s, size: n, value: a }) {
|
|
4
|
+
super(`Number "${a}" is not in safe ${n ? `${n * 8}-bit ${s ? "signed" : "unsigned"} ` : ""}integer range ${e ? `(${r} to ${e})` : `(above ${r})`}`, { name: "IntegerOutOfRangeError" });
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
class c extends t {
|
|
8
|
+
constructor({ givenSize: e, maxSize: r }) {
|
|
9
|
+
super(`Size cannot exceed ${r} bytes. Given size: ${e} bytes.`, { name: "SizeOverflowError" });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
21
12
|
export {
|
|
22
|
-
|
|
13
|
+
$ as IntegerOutOfRangeError,
|
|
14
|
+
c as SizeOverflowError
|
|
23
15
|
};
|
package/dist/index49.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index60.cjs");function i(e){return t.isHex(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}exports.size=i;
|
package/dist/index49.js
CHANGED
|
@@ -1,58 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import f from "./index61.js";
|
|
3
|
-
import "./index62.js";
|
|
4
|
-
import { i as p } from "./index45.js";
|
|
5
|
-
import { __exports as u } from "./index63.js";
|
|
6
|
-
var s = a.Buffer, n = f.Transform, _ = u.StringDecoder, c = p;
|
|
1
|
+
import { isHex as r } from "./index60.js";
|
|
7
2
|
function i(t) {
|
|
8
|
-
|
|
3
|
+
return r(t, { strict: !1 }) ? Math.ceil((t.length - 2) / 2) : t.length;
|
|
9
4
|
}
|
|
10
|
-
c(i, n);
|
|
11
|
-
i.prototype.update = function(t, r, o) {
|
|
12
|
-
typeof t == "string" && (t = s.from(t, r));
|
|
13
|
-
var e = this._update(t);
|
|
14
|
-
return this.hashMode ? this : (o && (e = this._toString(e, o)), e);
|
|
15
|
-
};
|
|
16
|
-
i.prototype.setAutoPadding = function() {
|
|
17
|
-
};
|
|
18
|
-
i.prototype.getAuthTag = function() {
|
|
19
|
-
throw new Error("trying to get auth tag in unsupported state");
|
|
20
|
-
};
|
|
21
|
-
i.prototype.setAuthTag = function() {
|
|
22
|
-
throw new Error("trying to set auth tag in unsupported state");
|
|
23
|
-
};
|
|
24
|
-
i.prototype.setAAD = function() {
|
|
25
|
-
throw new Error("trying to set aad in unsupported state");
|
|
26
|
-
};
|
|
27
|
-
i.prototype._transform = function(t, r, o) {
|
|
28
|
-
var e;
|
|
29
|
-
try {
|
|
30
|
-
this.hashMode ? this._update(t) : this.push(this._update(t));
|
|
31
|
-
} catch (h) {
|
|
32
|
-
e = h;
|
|
33
|
-
} finally {
|
|
34
|
-
o(e);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
i.prototype._flush = function(t) {
|
|
38
|
-
var r;
|
|
39
|
-
try {
|
|
40
|
-
this.push(this.__final());
|
|
41
|
-
} catch (o) {
|
|
42
|
-
r = o;
|
|
43
|
-
}
|
|
44
|
-
t(r);
|
|
45
|
-
};
|
|
46
|
-
i.prototype._finalOrDigest = function(t) {
|
|
47
|
-
var r = this.__final() || s.alloc(0);
|
|
48
|
-
return t && (r = this._toString(r, t, !0)), r;
|
|
49
|
-
};
|
|
50
|
-
i.prototype._toString = function(t, r, o) {
|
|
51
|
-
if (this._decoder || (this._decoder = new _(r), this._encoding = r), this._encoding !== r) throw new Error("can't switch encodings");
|
|
52
|
-
var e = this._decoder.write(t);
|
|
53
|
-
return o && (e += this._decoder.end()), e;
|
|
54
|
-
};
|
|
55
|
-
var w = i;
|
|
56
5
|
export {
|
|
57
|
-
|
|
6
|
+
i as size
|
|
58
7
|
};
|
package/dist/index50.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(o,n){return({exclude:t,format:f})=>({exclude:t,format:e=>{const r=n(e);if(t)for(const i of t)delete r[i];return{...r,...f(e)}},type:o})}exports.defineFormatter=a;
|
package/dist/index50.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
function a(e, f) {
|
|
2
|
+
return ({ exclude: t, format: n }) => ({
|
|
3
|
+
exclude: t,
|
|
4
|
+
format: (r) => {
|
|
5
|
+
const o = f(r);
|
|
6
|
+
if (t)
|
|
7
|
+
for (const m of t)
|
|
8
|
+
delete o[m];
|
|
9
|
+
return {
|
|
10
|
+
...o,
|
|
11
|
+
...n(r)
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
type: e
|
|
15
|
+
});
|
|
16
|
+
}
|
|
3
17
|
export {
|
|
4
|
-
|
|
18
|
+
a as defineFormatter
|
|
5
19
|
};
|
package/dist/index51.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(n,{args:a,eventName:t}={}){return{...n,blockHash:n.blockHash?n.blockHash:null,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,logIndex:n.logIndex?Number(n.logIndex):null,transactionHash:n.transactionHash?n.transactionHash:null,transactionIndex:n.transactionIndex?Number(n.transactionIndex):null,...t?{args:a,eventName:t}:{}}}exports.formatLog=r;
|