viem 0.0.1-alpha.3 → 0.0.1-alpha.31
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/chains/package.json +1 -1
- package/contract/package.json +4 -0
- package/dist/chain-00b37e4e.d.ts +543 -0
- package/dist/chain-38182d92.d.ts +5 -0
- package/dist/chains.d.ts +1305 -74
- package/dist/chains.js +125 -130
- package/dist/chains.js.map +1 -0
- package/dist/chains.mjs +129 -0
- package/dist/chains.mjs.map +1 -0
- package/dist/chunk-5STAX3WF.js +265 -0
- package/dist/chunk-5STAX3WF.js.map +1 -0
- package/dist/chunk-6ZFIUYGC.mjs +3436 -0
- package/dist/chunk-6ZFIUYGC.mjs.map +1 -0
- package/dist/chunk-APXHGB76.mjs +197 -0
- package/dist/chunk-APXHGB76.mjs.map +1 -0
- package/dist/chunk-C54QK7K3.mjs +210 -0
- package/dist/chunk-C54QK7K3.mjs.map +1 -0
- package/dist/{chunk-YZEQFYZ3.js → chunk-IBWRBL2I.mjs} +725 -556
- package/dist/chunk-IBWRBL2I.mjs.map +1 -0
- package/dist/chunk-J7QHQ26Y.js +3436 -0
- package/dist/chunk-J7QHQ26Y.js.map +1 -0
- package/dist/chunk-MYFKW55L.js +210 -0
- package/dist/chunk-MYFKW55L.js.map +1 -0
- package/dist/chunk-NCPBWOQA.js +1216 -0
- package/dist/chunk-NCPBWOQA.js.map +1 -0
- package/dist/chunk-QBB3DFIB.mjs +265 -0
- package/dist/chunk-QBB3DFIB.mjs.map +1 -0
- package/dist/chunk-UUULPQHV.js +197 -0
- package/dist/chunk-UUULPQHV.js.map +1 -0
- package/dist/contract.d.ts +11 -0
- package/dist/contract.js +57 -0
- package/dist/contract.js.map +1 -0
- package/dist/contract.mjs +57 -0
- package/dist/contract.mjs.map +1 -0
- package/dist/createClient-5258d590.d.ts +70 -0
- package/dist/createPublicClient-99be385b.d.ts +650 -0
- package/dist/{eip1193-8b4d90ce.d.ts → eip1193-fcdeee04.d.ts} +13 -10
- package/dist/ens.d.ts +22 -0
- package/dist/ens.js +22 -0
- package/dist/ens.js.map +1 -0
- package/dist/ens.mjs +22 -0
- package/dist/ens.mjs.map +1 -0
- package/dist/formatAbiItem-50cb39d8.d.ts +14 -0
- package/dist/getAbiItem-6d4f64d2.d.ts +97 -0
- package/dist/index.d.ts +251 -67
- package/dist/index.js +769 -344
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +769 -0
- package/dist/index.mjs.map +1 -0
- package/dist/namehash-88f4639d.d.ts +22 -0
- package/dist/parseGwei-8af7a0a6.d.ts +509 -0
- package/dist/public.d.ts +29 -0
- package/dist/public.js +60 -0
- package/dist/public.js.map +1 -0
- package/dist/public.mjs +60 -0
- package/dist/public.mjs.map +1 -0
- package/dist/test-79ec416c.d.ts +213 -0
- package/dist/test.d.ts +20 -0
- package/dist/test.js +62 -0
- package/dist/test.js.map +1 -0
- package/dist/test.mjs +62 -0
- package/dist/test.mjs.map +1 -0
- package/dist/utils/index.d.ts +52 -7
- package/dist/utils/index.js +187 -126
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +187 -0
- package/dist/utils/index.mjs.map +1 -0
- package/dist/wallet-cf5c8351.d.ts +115 -0
- package/dist/wallet.d.ts +7 -0
- package/dist/wallet.js +24 -0
- package/dist/wallet.js.map +1 -0
- package/dist/wallet.mjs +24 -0
- package/dist/wallet.mjs.map +1 -0
- package/dist/window.d.ts +5 -2
- package/dist/window.js +1 -0
- package/dist/window.js.map +1 -0
- package/dist/window.mjs +1 -0
- package/dist/window.mjs.map +1 -0
- package/ens/package.json +4 -0
- package/package.json +46 -73
- package/public/package.json +4 -0
- package/test/package.json +4 -0
- package/utils/package.json +1 -1
- package/wallet/package.json +4 -0
- package/window/package.json +1 -1
- package/actions/package.json +0 -4
- package/clients/package.json +0 -4
- package/dist/actions/index.d.ts +0 -7
- package/dist/actions/index.js +0 -124
- package/dist/chunk-SRDTRROA.js +0 -1214
- package/dist/chunk-TLEMV4T3.js +0 -258
- package/dist/chunk-WZITKXV3.js +0 -996
- package/dist/clients/index.d.ts +0 -7
- package/dist/clients/index.js +0 -23
- package/dist/createWalletClient-15ad1601.d.ts +0 -130
- package/dist/parseGwei-0f85e8ca.d.ts +0 -248
- package/dist/rpc-15b85963.d.ts +0 -292
- package/dist/rpc-26932bae.d.ts +0 -61
- package/dist/transactionRequest-f538ea86.d.ts +0 -44
- package/dist/watchAsset-0c9d01e2.d.ts +0 -522
- package/dist/webSocket-b55b0951.d.ts +0 -83
package/dist/index.js
CHANGED
@@ -1,344 +1,769 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
var _chunkMYFKW55Ljs = require('./chunk-MYFKW55L.js');
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
var _chunkNCPBWOQAjs = require('./chunk-NCPBWOQA.js');
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
var _chunk5STAX3WFjs = require('./chunk-5STAX3WF.js');
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
var _chunkUUULPQHVjs = require('./chunk-UUULPQHV.js');
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
var _chunkJ7QHQ26Yjs = require('./chunk-J7QHQ26Y.js');
|
236
|
+
|
237
|
+
// src/clients/transports/createTransport.ts
|
238
|
+
function createTransport({
|
239
|
+
key,
|
240
|
+
name,
|
241
|
+
request,
|
242
|
+
retryCount = 3,
|
243
|
+
retryDelay = 150,
|
244
|
+
timeout,
|
245
|
+
type
|
246
|
+
}, value) {
|
247
|
+
return {
|
248
|
+
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
249
|
+
request: _chunkJ7QHQ26Yjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
250
|
+
value
|
251
|
+
};
|
252
|
+
}
|
253
|
+
|
254
|
+
// src/clients/transports/custom.ts
|
255
|
+
function custom(provider, config = {}) {
|
256
|
+
const { key = "custom", name = "Custom Provider", retryDelay } = config;
|
257
|
+
return ({ retryCount: defaultRetryCount }) => createTransport({
|
258
|
+
key,
|
259
|
+
name,
|
260
|
+
request: provider.request.bind(provider),
|
261
|
+
retryCount: _nullishCoalesce(config.retryCount, () => ( defaultRetryCount)),
|
262
|
+
retryDelay,
|
263
|
+
type: "custom"
|
264
|
+
});
|
265
|
+
}
|
266
|
+
|
267
|
+
// src/clients/transports/fallback.ts
|
268
|
+
function fallback(transports, config = {}) {
|
269
|
+
const { key = "fallback", name = "Fallback", retryCount, retryDelay } = config;
|
270
|
+
return ({ chain }) => createTransport(
|
271
|
+
{
|
272
|
+
key,
|
273
|
+
name,
|
274
|
+
async request({ method, params }) {
|
275
|
+
const fetch = async (i = 0) => {
|
276
|
+
const transport = transports[i]({ chain, retryCount: 0 });
|
277
|
+
try {
|
278
|
+
return await transport.request({
|
279
|
+
method,
|
280
|
+
params
|
281
|
+
});
|
282
|
+
} catch (err) {
|
283
|
+
if (_chunkJ7QHQ26Yjs.isDeterministicError.call(void 0, err))
|
284
|
+
throw err;
|
285
|
+
if (i === transports.length - 1)
|
286
|
+
throw err;
|
287
|
+
return fetch(i + 1);
|
288
|
+
}
|
289
|
+
};
|
290
|
+
return fetch();
|
291
|
+
},
|
292
|
+
retryCount,
|
293
|
+
retryDelay,
|
294
|
+
type: "fallback"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
transports: transports.map(
|
298
|
+
(fn) => fn({ chain, retryCount: 0 })
|
299
|
+
)
|
300
|
+
}
|
301
|
+
);
|
302
|
+
}
|
303
|
+
|
304
|
+
// src/clients/transports/http.ts
|
305
|
+
function http(url, config = {}) {
|
306
|
+
const {
|
307
|
+
fetchOptions,
|
308
|
+
key = "http",
|
309
|
+
name = "HTTP JSON-RPC",
|
310
|
+
retryDelay,
|
311
|
+
timeout = 1e4
|
312
|
+
} = config;
|
313
|
+
return ({ chain, retryCount: defaultRetryCount }) => {
|
314
|
+
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
315
|
+
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
316
|
+
if (!url_)
|
317
|
+
throw new (0, _chunkJ7QHQ26Yjs.UrlRequiredError)();
|
318
|
+
return createTransport(
|
319
|
+
{
|
320
|
+
key,
|
321
|
+
name,
|
322
|
+
async request({ method, params }) {
|
323
|
+
const { result } = await _chunkJ7QHQ26Yjs.rpc.http(url_, {
|
324
|
+
body: {
|
325
|
+
method,
|
326
|
+
params
|
327
|
+
},
|
328
|
+
fetchOptions,
|
329
|
+
timeout
|
330
|
+
});
|
331
|
+
return result;
|
332
|
+
},
|
333
|
+
retryCount,
|
334
|
+
retryDelay,
|
335
|
+
timeout,
|
336
|
+
type: "http"
|
337
|
+
},
|
338
|
+
{
|
339
|
+
url
|
340
|
+
}
|
341
|
+
);
|
342
|
+
};
|
343
|
+
}
|
344
|
+
|
345
|
+
// src/clients/transports/webSocket.ts
|
346
|
+
function webSocket(url, config = {}) {
|
347
|
+
const {
|
348
|
+
key = "webSocket",
|
349
|
+
name = "WebSocket JSON-RPC",
|
350
|
+
retryDelay,
|
351
|
+
timeout = 1e4
|
352
|
+
} = config;
|
353
|
+
return ({ chain, retryCount: defaultRetryCount }) => {
|
354
|
+
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
355
|
+
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
356
|
+
if (!url_)
|
357
|
+
throw new (0, _chunkJ7QHQ26Yjs.UrlRequiredError)();
|
358
|
+
return createTransport(
|
359
|
+
{
|
360
|
+
key,
|
361
|
+
name,
|
362
|
+
async request({ method, params }) {
|
363
|
+
const socket = await _chunkJ7QHQ26Yjs.getSocket.call(void 0, url_);
|
364
|
+
const { result } = await _chunkJ7QHQ26Yjs.rpc.webSocketAsync(socket, {
|
365
|
+
body: { method, params },
|
366
|
+
timeout
|
367
|
+
});
|
368
|
+
return result;
|
369
|
+
},
|
370
|
+
retryCount,
|
371
|
+
retryDelay,
|
372
|
+
timeout,
|
373
|
+
type: "webSocket"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
getSocket() {
|
377
|
+
return _chunkJ7QHQ26Yjs.getSocket.call(void 0, url_);
|
378
|
+
},
|
379
|
+
async subscribe({ params, onData, onError }) {
|
380
|
+
const socket = await _chunkJ7QHQ26Yjs.getSocket.call(void 0, url_);
|
381
|
+
const { result: subscriptionId } = await new Promise(
|
382
|
+
(resolve, reject) => _chunkJ7QHQ26Yjs.rpc.webSocket(socket, {
|
383
|
+
body: {
|
384
|
+
method: "eth_subscribe",
|
385
|
+
params
|
386
|
+
},
|
387
|
+
onData: (data) => {
|
388
|
+
if (typeof data.id === "number") {
|
389
|
+
resolve(data);
|
390
|
+
return;
|
391
|
+
}
|
392
|
+
onData(data);
|
393
|
+
},
|
394
|
+
onError: (error) => {
|
395
|
+
reject(error);
|
396
|
+
_optionalChain([onError, 'optionalCall', _9 => _9(error)]);
|
397
|
+
}
|
398
|
+
})
|
399
|
+
);
|
400
|
+
return {
|
401
|
+
subscriptionId,
|
402
|
+
async unsubscribe() {
|
403
|
+
return new Promise(
|
404
|
+
(resolve, reject) => _chunkJ7QHQ26Yjs.rpc.webSocket(socket, {
|
405
|
+
body: {
|
406
|
+
method: "eth_unsubscribe",
|
407
|
+
params: [subscriptionId]
|
408
|
+
},
|
409
|
+
onData: resolve,
|
410
|
+
onError: reject
|
411
|
+
})
|
412
|
+
);
|
413
|
+
}
|
414
|
+
};
|
415
|
+
}
|
416
|
+
}
|
417
|
+
);
|
418
|
+
};
|
419
|
+
}
|
420
|
+
|
421
|
+
// src/utils/uid.ts
|
422
|
+
var size2 = 256;
|
423
|
+
var index = size2;
|
424
|
+
var buffer;
|
425
|
+
function uid(length = 11) {
|
426
|
+
if (!buffer || index + length > size2 * 2) {
|
427
|
+
buffer = "";
|
428
|
+
index = 0;
|
429
|
+
for (let i = 0; i < size2; i++) {
|
430
|
+
buffer += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
431
|
+
}
|
432
|
+
}
|
433
|
+
return buffer.substring(index, index++ + length);
|
434
|
+
}
|
435
|
+
|
436
|
+
// src/clients/createClient.ts
|
437
|
+
function createClient({
|
438
|
+
chain,
|
439
|
+
key = "base",
|
440
|
+
name = "Base Client",
|
441
|
+
pollingInterval = 4e3,
|
442
|
+
transport,
|
443
|
+
type = "base"
|
444
|
+
}) {
|
445
|
+
const { config, request, value } = transport({ chain });
|
446
|
+
return {
|
447
|
+
chain,
|
448
|
+
key,
|
449
|
+
name,
|
450
|
+
pollingInterval,
|
451
|
+
request,
|
452
|
+
transport: { ...config, ...value },
|
453
|
+
type,
|
454
|
+
uid: uid()
|
455
|
+
};
|
456
|
+
}
|
457
|
+
|
458
|
+
// src/clients/decorators/public.ts
|
459
|
+
var publicActions = (client) => ({
|
460
|
+
call: (args) => _chunkNCPBWOQAjs.call.call(void 0, client, args),
|
461
|
+
createBlockFilter: () => _chunkNCPBWOQAjs.createBlockFilter.call(void 0, client),
|
462
|
+
createContractEventFilter: (args) => _chunkNCPBWOQAjs.createContractEventFilter.call(void 0, client, args),
|
463
|
+
createEventFilter: (args) => _chunkNCPBWOQAjs.createEventFilter.call(void 0, client, args),
|
464
|
+
createPendingTransactionFilter: () => _chunkNCPBWOQAjs.createPendingTransactionFilter.call(void 0, client),
|
465
|
+
estimateContractGas: (args) => _chunkNCPBWOQAjs.estimateContractGas.call(void 0, client, args),
|
466
|
+
estimateGas: (args) => _chunkNCPBWOQAjs.estimateGas.call(void 0, client, args),
|
467
|
+
getBalance: (args) => _chunkNCPBWOQAjs.getBalance.call(void 0, client, args),
|
468
|
+
getBlock: (args) => _chunkNCPBWOQAjs.getBlock.call(void 0, client, args),
|
469
|
+
getBlockNumber: (args) => _chunkNCPBWOQAjs.getBlockNumber.call(void 0, client, args),
|
470
|
+
getBlockTransactionCount: (args) => _chunkNCPBWOQAjs.getBlockTransactionCount.call(void 0, client, args),
|
471
|
+
getBytecode: (args) => _chunkNCPBWOQAjs.getBytecode.call(void 0, client, args),
|
472
|
+
getChainId: () => _chunkNCPBWOQAjs.getChainId.call(void 0, client),
|
473
|
+
getEnsAddress: (args) => _chunkMYFKW55Ljs.getEnsAddress.call(void 0, client, args),
|
474
|
+
getEnsName: (args) => _chunkMYFKW55Ljs.getEnsName.call(void 0, client, args),
|
475
|
+
getFeeHistory: (args) => _chunkNCPBWOQAjs.getFeeHistory.call(void 0, client, args),
|
476
|
+
getFilterChanges: (args) => _chunkNCPBWOQAjs.getFilterChanges.call(void 0, client, args),
|
477
|
+
getFilterLogs: (args) => _chunkNCPBWOQAjs.getFilterLogs.call(void 0, client, args),
|
478
|
+
getGasPrice: () => _chunkNCPBWOQAjs.getGasPrice.call(void 0, client),
|
479
|
+
getLogs: (args) => _chunkNCPBWOQAjs.getLogs.call(void 0, client, args),
|
480
|
+
getStorageAt: (args) => _chunkNCPBWOQAjs.getStorageAt.call(void 0, client, args),
|
481
|
+
getTransaction: (args) => _chunkNCPBWOQAjs.getTransaction.call(void 0, client, args),
|
482
|
+
getTransactionConfirmations: (args) => _chunkNCPBWOQAjs.getTransactionConfirmations.call(void 0, client, args),
|
483
|
+
getTransactionReceipt: (args) => _chunkNCPBWOQAjs.getTransactionReceipt.call(void 0, client, args),
|
484
|
+
multicall: (args) => _chunkNCPBWOQAjs.multicall.call(void 0, client, args),
|
485
|
+
readContract: (args) => _chunkNCPBWOQAjs.readContract.call(void 0, client, args),
|
486
|
+
simulateContract: (args) => _chunkNCPBWOQAjs.simulateContract.call(void 0, client, args),
|
487
|
+
uninstallFilter: (args) => _chunkNCPBWOQAjs.uninstallFilter.call(void 0, client, args),
|
488
|
+
waitForTransactionReceipt: (args) => _chunkNCPBWOQAjs.waitForTransactionReceipt.call(void 0, client, args),
|
489
|
+
watchBlocks: (args) => _chunkNCPBWOQAjs.watchBlocks.call(void 0, client, args),
|
490
|
+
watchBlockNumber: (args) => _chunkNCPBWOQAjs.watchBlockNumber.call(void 0, client, args),
|
491
|
+
watchContractEvent: (args) => _chunkNCPBWOQAjs.watchContractEvent.call(void 0, client, args),
|
492
|
+
watchEvent: (args) => _chunkNCPBWOQAjs.watchEvent.call(void 0, client, args),
|
493
|
+
watchPendingTransactions: (args) => _chunkNCPBWOQAjs.watchPendingTransactions.call(void 0, client, args)
|
494
|
+
});
|
495
|
+
|
496
|
+
// src/clients/decorators/test.ts
|
497
|
+
var testActions = (client) => ({
|
498
|
+
dropTransaction: (args) => _chunk5STAX3WFjs.dropTransaction.call(void 0, client, args),
|
499
|
+
getAutomine: () => _chunk5STAX3WFjs.getAutomine.call(void 0, client),
|
500
|
+
getTxPoolContent: () => _chunk5STAX3WFjs.getTxpoolContent.call(void 0, client),
|
501
|
+
getTxPoolStatus: () => _chunk5STAX3WFjs.getTxpoolStatus.call(void 0, client),
|
502
|
+
impersonateAccount: (args) => _chunk5STAX3WFjs.impersonateAccount.call(void 0, client, args),
|
503
|
+
increaseTime: (args) => _chunk5STAX3WFjs.increaseTime.call(void 0, client, args),
|
504
|
+
inspectTxpool: () => _chunk5STAX3WFjs.inspectTxpool.call(void 0, client),
|
505
|
+
mine: (args) => _chunk5STAX3WFjs.mine.call(void 0, client, args),
|
506
|
+
removeBlockTimestampInterval: () => _chunk5STAX3WFjs.removeBlockTimestampInterval.call(void 0, client),
|
507
|
+
reset: (args) => _chunk5STAX3WFjs.reset.call(void 0, client, args),
|
508
|
+
revert: (args) => _chunk5STAX3WFjs.revert.call(void 0, client, args),
|
509
|
+
sendUnsignedTransaction: (args) => _chunk5STAX3WFjs.sendUnsignedTransaction.call(void 0, client, args),
|
510
|
+
setAutomine: (args) => _chunk5STAX3WFjs.setAutomine.call(void 0, client, args),
|
511
|
+
setBalance: (args) => _chunk5STAX3WFjs.setBalance.call(void 0, client, args),
|
512
|
+
setBlockGasLimit: (args) => _chunk5STAX3WFjs.setBlockGasLimit.call(void 0, client, args),
|
513
|
+
setBlockTimestampInterval: (args) => _chunk5STAX3WFjs.setBlockTimestampInterval.call(void 0, client, args),
|
514
|
+
setCode: (args) => _chunk5STAX3WFjs.setCode.call(void 0, client, args),
|
515
|
+
setCoinbase: (args) => _chunk5STAX3WFjs.setCoinbase.call(void 0, client, args),
|
516
|
+
setIntervalMining: (args) => _chunk5STAX3WFjs.setIntervalMining.call(void 0, client, args),
|
517
|
+
setLoggingEnabled: (args) => _chunk5STAX3WFjs.setLoggingEnabled.call(void 0, client, args),
|
518
|
+
setMinGasPrice: (args) => _chunk5STAX3WFjs.setMinGasPrice.call(void 0, client, args),
|
519
|
+
setNextBlockBaseFeePerGas: (args) => _chunk5STAX3WFjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
520
|
+
setNextBlockTimestamp: (args) => _chunk5STAX3WFjs.setNextBlockTimestamp.call(void 0, client, args),
|
521
|
+
setNonce: (args) => _chunk5STAX3WFjs.setNonce.call(void 0, client, args),
|
522
|
+
setRpcUrl: (args) => _chunk5STAX3WFjs.setRpcUrl.call(void 0, client, args),
|
523
|
+
setStorageAt: (args) => _chunk5STAX3WFjs.setStorageAt.call(void 0, client, args),
|
524
|
+
snapshot: () => _chunk5STAX3WFjs.snapshot.call(void 0, client),
|
525
|
+
stopImpersonatingAccount: (args) => _chunk5STAX3WFjs.stopImpersonatingAccount.call(void 0, client, args)
|
526
|
+
});
|
527
|
+
|
528
|
+
// src/clients/decorators/wallet.ts
|
529
|
+
var walletActions = (client) => ({
|
530
|
+
addChain: (args) => _chunkUUULPQHVjs.addChain.call(void 0, client, args),
|
531
|
+
deployContract: (args) => _chunkUUULPQHVjs.deployContract.call(void 0, client, args),
|
532
|
+
getAccounts: () => _chunkUUULPQHVjs.getAccounts.call(void 0, client),
|
533
|
+
getPermissions: () => _chunkUUULPQHVjs.getPermissions.call(void 0, client),
|
534
|
+
requestAccounts: () => _chunkUUULPQHVjs.requestAccounts.call(void 0, client),
|
535
|
+
requestPermissions: (args) => _chunkUUULPQHVjs.requestPermissions.call(void 0, client, args),
|
536
|
+
sendTransaction: (args) => _chunkUUULPQHVjs.sendTransaction.call(void 0, client, args),
|
537
|
+
signMessage: (args) => _chunkUUULPQHVjs.signMessage.call(void 0, client, args),
|
538
|
+
switchChain: (args) => _chunkUUULPQHVjs.switchChain.call(void 0, client, args),
|
539
|
+
watchAsset: (args) => _chunkUUULPQHVjs.watchAsset.call(void 0, client, args),
|
540
|
+
writeContract: (args) => _chunkUUULPQHVjs.writeContract.call(void 0, client, args)
|
541
|
+
});
|
542
|
+
|
543
|
+
// src/clients/createPublicClient.ts
|
544
|
+
function createPublicClient({
|
545
|
+
chain,
|
546
|
+
key = "public",
|
547
|
+
name = "Public Client",
|
548
|
+
transport,
|
549
|
+
pollingInterval
|
550
|
+
}) {
|
551
|
+
const client = createClient({
|
552
|
+
chain,
|
553
|
+
key,
|
554
|
+
name,
|
555
|
+
pollingInterval,
|
556
|
+
transport,
|
557
|
+
type: "publicClient"
|
558
|
+
});
|
559
|
+
return {
|
560
|
+
...client,
|
561
|
+
...publicActions(client)
|
562
|
+
};
|
563
|
+
}
|
564
|
+
|
565
|
+
// src/clients/createTestClient.ts
|
566
|
+
function createTestClient({
|
567
|
+
chain,
|
568
|
+
key = "test",
|
569
|
+
name = "Test Client",
|
570
|
+
mode,
|
571
|
+
pollingInterval,
|
572
|
+
transport
|
573
|
+
}) {
|
574
|
+
const client = {
|
575
|
+
...createClient({
|
576
|
+
chain,
|
577
|
+
key,
|
578
|
+
name,
|
579
|
+
pollingInterval,
|
580
|
+
transport,
|
581
|
+
type: "testClient"
|
582
|
+
}),
|
583
|
+
mode
|
584
|
+
};
|
585
|
+
return {
|
586
|
+
...client,
|
587
|
+
...testActions(client)
|
588
|
+
};
|
589
|
+
}
|
590
|
+
|
591
|
+
// src/clients/createWalletClient.ts
|
592
|
+
function createWalletClient({
|
593
|
+
transport,
|
594
|
+
key = "wallet",
|
595
|
+
name = "Wallet Client",
|
596
|
+
pollingInterval
|
597
|
+
}) {
|
598
|
+
const client = createClient({
|
599
|
+
key,
|
600
|
+
name,
|
601
|
+
pollingInterval,
|
602
|
+
transport,
|
603
|
+
type: "walletClient"
|
604
|
+
});
|
605
|
+
return {
|
606
|
+
...client,
|
607
|
+
...walletActions(client)
|
608
|
+
};
|
609
|
+
}
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
|
699
|
+
|
700
|
+
|
701
|
+
|
702
|
+
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
|
754
|
+
|
755
|
+
|
756
|
+
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
exports.AbiConstructorNotFoundError = _chunkJ7QHQ26Yjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkJ7QHQ26Yjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkJ7QHQ26Yjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkJ7QHQ26Yjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkJ7QHQ26Yjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkJ7QHQ26Yjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkJ7QHQ26Yjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkJ7QHQ26Yjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkJ7QHQ26Yjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkJ7QHQ26Yjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkJ7QHQ26Yjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkJ7QHQ26Yjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkJ7QHQ26Yjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkJ7QHQ26Yjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkJ7QHQ26Yjs.BaseError; exports.BlockNotFoundError = _chunkJ7QHQ26Yjs.BlockNotFoundError; exports.CallExecutionError = _chunkJ7QHQ26Yjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkJ7QHQ26Yjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkJ7QHQ26Yjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkJ7QHQ26Yjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkJ7QHQ26Yjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkJ7QHQ26Yjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkJ7QHQ26Yjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkJ7QHQ26Yjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkJ7QHQ26Yjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkJ7QHQ26Yjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkJ7QHQ26Yjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkJ7QHQ26Yjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkJ7QHQ26Yjs.HttpRequestError; exports.InsufficientFundsError = _chunkJ7QHQ26Yjs.InsufficientFundsError; exports.InternalRpcError = _chunkJ7QHQ26Yjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkJ7QHQ26Yjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkJ7QHQ26Yjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkJ7QHQ26Yjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkJ7QHQ26Yjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkJ7QHQ26Yjs.InvalidAddressError; exports.InvalidArrayError = _chunkJ7QHQ26Yjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkJ7QHQ26Yjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkJ7QHQ26Yjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkJ7QHQ26Yjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkJ7QHQ26Yjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkJ7QHQ26Yjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkJ7QHQ26Yjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkJ7QHQ26Yjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkJ7QHQ26Yjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkJ7QHQ26Yjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkJ7QHQ26Yjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkJ7QHQ26Yjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkJ7QHQ26Yjs.NonceMaxValueError; exports.NonceTooHighError = _chunkJ7QHQ26Yjs.NonceTooHighError; exports.NonceTooLowError = _chunkJ7QHQ26Yjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkJ7QHQ26Yjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkJ7QHQ26Yjs.ParseRpcError; exports.RawContractError = _chunkJ7QHQ26Yjs.RawContractError; exports.RequestError = _chunkJ7QHQ26Yjs.RequestError; exports.ResourceNotFoundRpcError = _chunkJ7QHQ26Yjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkJ7QHQ26Yjs.ResourceUnavailableRpcError; exports.RpcError = _chunkJ7QHQ26Yjs.RpcError; exports.RpcRequestError = _chunkJ7QHQ26Yjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkJ7QHQ26Yjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkJ7QHQ26Yjs.TimeoutError; exports.TipAboveFeeCapError = _chunkJ7QHQ26Yjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkJ7QHQ26Yjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkJ7QHQ26Yjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkJ7QHQ26Yjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkJ7QHQ26Yjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkJ7QHQ26Yjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkJ7QHQ26Yjs.UnknownNodeError; exports.UnknownRpcError = _chunkJ7QHQ26Yjs.UnknownRpcError; exports.UrlRequiredError = _chunkJ7QHQ26Yjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkJ7QHQ26Yjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkJ7QHQ26Yjs.WebSocketRequestError; exports.boolToBytes = _chunkJ7QHQ26Yjs.boolToBytes; exports.boolToHex = _chunkJ7QHQ26Yjs.boolToHex; exports.bytesToBigint = _chunkJ7QHQ26Yjs.bytesToBigint; exports.bytesToBool = _chunkJ7QHQ26Yjs.bytesToBool; exports.bytesToHex = _chunkJ7QHQ26Yjs.bytesToHex; exports.bytesToNumber = _chunkJ7QHQ26Yjs.bytesToNumber; exports.bytesToString = _chunkJ7QHQ26Yjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbi = _chunkJ7QHQ26Yjs.decodeAbi; exports.decodeErrorResult = _chunkJ7QHQ26Yjs.decodeErrorResult; exports.decodeEventLog = _chunkJ7QHQ26Yjs.decodeEventLog; exports.decodeFunctionData = _chunkJ7QHQ26Yjs.decodeFunctionData; exports.decodeFunctionResult = _chunkJ7QHQ26Yjs.decodeFunctionResult; exports.defineBlock = _chunkJ7QHQ26Yjs.defineBlock; exports.defineChain = _chunkJ7QHQ26Yjs.defineChain; exports.defineTransaction = _chunkJ7QHQ26Yjs.defineTransaction; exports.defineTransactionReceipt = _chunkJ7QHQ26Yjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkJ7QHQ26Yjs.defineTransactionRequest; exports.encodeAbi = _chunkJ7QHQ26Yjs.encodeAbi; exports.encodeDeployData = _chunkJ7QHQ26Yjs.encodeDeployData; exports.encodeErrorResult = _chunkJ7QHQ26Yjs.encodeErrorResult; exports.encodeEventTopics = _chunkJ7QHQ26Yjs.encodeEventTopics; exports.encodeFunctionData = _chunkJ7QHQ26Yjs.encodeFunctionData; exports.encodeFunctionResult = _chunkJ7QHQ26Yjs.encodeFunctionResult; exports.etherUnits = _chunkJ7QHQ26Yjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkJ7QHQ26Yjs.formatBlock; exports.formatEther = _chunkJ7QHQ26Yjs.formatEther; exports.formatGwei = _chunkJ7QHQ26Yjs.formatGwei; exports.formatTransaction = _chunkJ7QHQ26Yjs.formatTransaction; exports.formatTransactionRequest = _chunkJ7QHQ26Yjs.formatTransactionRequest; exports.formatUnit = _chunkJ7QHQ26Yjs.formatUnit; exports.fromBytes = _chunkJ7QHQ26Yjs.fromBytes; exports.fromHex = _chunkJ7QHQ26Yjs.fromHex; exports.fromRlp = _chunkJ7QHQ26Yjs.fromRlp; exports.getAbiItem = _chunkJ7QHQ26Yjs.getAbiItem; exports.getAddress = _chunkJ7QHQ26Yjs.getAddress; exports.getContractAddress = _chunkJ7QHQ26Yjs.getContractAddress; exports.getContractError = _chunkJ7QHQ26Yjs.getContractError; exports.getCreate2Address = _chunkJ7QHQ26Yjs.getCreate2Address; exports.getCreateAddress = _chunkJ7QHQ26Yjs.getCreateAddress; exports.getEventSelector = _chunkJ7QHQ26Yjs.getEventSelector; exports.getFunctionSelector = _chunkJ7QHQ26Yjs.getFunctionSelector; exports.gweiUnits = _chunkJ7QHQ26Yjs.gweiUnits; exports.hexToBigInt = _chunkJ7QHQ26Yjs.hexToBigInt; exports.hexToBool = _chunkJ7QHQ26Yjs.hexToBool; exports.hexToBytes = _chunkJ7QHQ26Yjs.hexToBytes; exports.hexToNumber = _chunkJ7QHQ26Yjs.hexToNumber; exports.hexToString = _chunkJ7QHQ26Yjs.hexToString; exports.http = http; exports.isAddress = _chunkJ7QHQ26Yjs.isAddress; exports.isAddressEqual = _chunkJ7QHQ26Yjs.isAddressEqual; exports.isBytes = _chunkJ7QHQ26Yjs.isBytes; exports.isHex = _chunkJ7QHQ26Yjs.isHex; exports.keccak256 = _chunkJ7QHQ26Yjs.keccak256; exports.labelhash = _chunkMYFKW55Ljs.labelhash; exports.multicall3Abi = _chunkJ7QHQ26Yjs.multicall3Abi; exports.namehash = _chunkMYFKW55Ljs.namehash; exports.numberToBytes = _chunkJ7QHQ26Yjs.numberToBytes; exports.numberToHex = _chunkJ7QHQ26Yjs.numberToHex; exports.pad = _chunkJ7QHQ26Yjs.pad; exports.padBytes = _chunkJ7QHQ26Yjs.padBytes; exports.padHex = _chunkJ7QHQ26Yjs.padHex; exports.parseEther = _chunkJ7QHQ26Yjs.parseEther; exports.parseGwei = _chunkJ7QHQ26Yjs.parseGwei; exports.parseUnit = _chunkJ7QHQ26Yjs.parseUnit; exports.size = _chunkJ7QHQ26Yjs.size; exports.slice = _chunkJ7QHQ26Yjs.slice; exports.sliceBytes = _chunkJ7QHQ26Yjs.sliceBytes; exports.sliceHex = _chunkJ7QHQ26Yjs.sliceHex; exports.stringToBytes = _chunkJ7QHQ26Yjs.stringToBytes; exports.stringToHex = _chunkJ7QHQ26Yjs.stringToHex; exports.stringify = _chunkJ7QHQ26Yjs.stringify; exports.toBytes = _chunkJ7QHQ26Yjs.toBytes; exports.toHex = _chunkJ7QHQ26Yjs.toHex; exports.toRlp = _chunkJ7QHQ26Yjs.toRlp; exports.transactionType = _chunkJ7QHQ26Yjs.transactionType; exports.trim = _chunkJ7QHQ26Yjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkJ7QHQ26Yjs.weiUnits;
|
769
|
+
//# sourceMappingURL=index.js.map
|