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.
Files changed (101) hide show
  1. package/chains/package.json +1 -1
  2. package/contract/package.json +4 -0
  3. package/dist/chain-00b37e4e.d.ts +543 -0
  4. package/dist/chain-38182d92.d.ts +5 -0
  5. package/dist/chains.d.ts +1305 -74
  6. package/dist/chains.js +125 -130
  7. package/dist/chains.js.map +1 -0
  8. package/dist/chains.mjs +129 -0
  9. package/dist/chains.mjs.map +1 -0
  10. package/dist/chunk-5STAX3WF.js +265 -0
  11. package/dist/chunk-5STAX3WF.js.map +1 -0
  12. package/dist/chunk-6ZFIUYGC.mjs +3436 -0
  13. package/dist/chunk-6ZFIUYGC.mjs.map +1 -0
  14. package/dist/chunk-APXHGB76.mjs +197 -0
  15. package/dist/chunk-APXHGB76.mjs.map +1 -0
  16. package/dist/chunk-C54QK7K3.mjs +210 -0
  17. package/dist/chunk-C54QK7K3.mjs.map +1 -0
  18. package/dist/{chunk-YZEQFYZ3.js → chunk-IBWRBL2I.mjs} +725 -556
  19. package/dist/chunk-IBWRBL2I.mjs.map +1 -0
  20. package/dist/chunk-J7QHQ26Y.js +3436 -0
  21. package/dist/chunk-J7QHQ26Y.js.map +1 -0
  22. package/dist/chunk-MYFKW55L.js +210 -0
  23. package/dist/chunk-MYFKW55L.js.map +1 -0
  24. package/dist/chunk-NCPBWOQA.js +1216 -0
  25. package/dist/chunk-NCPBWOQA.js.map +1 -0
  26. package/dist/chunk-QBB3DFIB.mjs +265 -0
  27. package/dist/chunk-QBB3DFIB.mjs.map +1 -0
  28. package/dist/chunk-UUULPQHV.js +197 -0
  29. package/dist/chunk-UUULPQHV.js.map +1 -0
  30. package/dist/contract.d.ts +11 -0
  31. package/dist/contract.js +57 -0
  32. package/dist/contract.js.map +1 -0
  33. package/dist/contract.mjs +57 -0
  34. package/dist/contract.mjs.map +1 -0
  35. package/dist/createClient-5258d590.d.ts +70 -0
  36. package/dist/createPublicClient-99be385b.d.ts +650 -0
  37. package/dist/{eip1193-8b4d90ce.d.ts → eip1193-fcdeee04.d.ts} +13 -10
  38. package/dist/ens.d.ts +22 -0
  39. package/dist/ens.js +22 -0
  40. package/dist/ens.js.map +1 -0
  41. package/dist/ens.mjs +22 -0
  42. package/dist/ens.mjs.map +1 -0
  43. package/dist/formatAbiItem-50cb39d8.d.ts +14 -0
  44. package/dist/getAbiItem-6d4f64d2.d.ts +97 -0
  45. package/dist/index.d.ts +251 -67
  46. package/dist/index.js +769 -344
  47. package/dist/index.js.map +1 -0
  48. package/dist/index.mjs +769 -0
  49. package/dist/index.mjs.map +1 -0
  50. package/dist/namehash-88f4639d.d.ts +22 -0
  51. package/dist/parseGwei-8af7a0a6.d.ts +509 -0
  52. package/dist/public.d.ts +29 -0
  53. package/dist/public.js +60 -0
  54. package/dist/public.js.map +1 -0
  55. package/dist/public.mjs +60 -0
  56. package/dist/public.mjs.map +1 -0
  57. package/dist/test-79ec416c.d.ts +213 -0
  58. package/dist/test.d.ts +20 -0
  59. package/dist/test.js +62 -0
  60. package/dist/test.js.map +1 -0
  61. package/dist/test.mjs +62 -0
  62. package/dist/test.mjs.map +1 -0
  63. package/dist/utils/index.d.ts +52 -7
  64. package/dist/utils/index.js +187 -126
  65. package/dist/utils/index.js.map +1 -0
  66. package/dist/utils/index.mjs +187 -0
  67. package/dist/utils/index.mjs.map +1 -0
  68. package/dist/wallet-cf5c8351.d.ts +115 -0
  69. package/dist/wallet.d.ts +7 -0
  70. package/dist/wallet.js +24 -0
  71. package/dist/wallet.js.map +1 -0
  72. package/dist/wallet.mjs +24 -0
  73. package/dist/wallet.mjs.map +1 -0
  74. package/dist/window.d.ts +5 -2
  75. package/dist/window.js +1 -0
  76. package/dist/window.js.map +1 -0
  77. package/dist/window.mjs +1 -0
  78. package/dist/window.mjs.map +1 -0
  79. package/ens/package.json +4 -0
  80. package/package.json +46 -73
  81. package/public/package.json +4 -0
  82. package/test/package.json +4 -0
  83. package/utils/package.json +1 -1
  84. package/wallet/package.json +4 -0
  85. package/window/package.json +1 -1
  86. package/actions/package.json +0 -4
  87. package/clients/package.json +0 -4
  88. package/dist/actions/index.d.ts +0 -7
  89. package/dist/actions/index.js +0 -124
  90. package/dist/chunk-SRDTRROA.js +0 -1214
  91. package/dist/chunk-TLEMV4T3.js +0 -258
  92. package/dist/chunk-WZITKXV3.js +0 -996
  93. package/dist/clients/index.d.ts +0 -7
  94. package/dist/clients/index.js +0 -23
  95. package/dist/createWalletClient-15ad1601.d.ts +0 -130
  96. package/dist/parseGwei-0f85e8ca.d.ts +0 -248
  97. package/dist/rpc-15b85963.d.ts +0 -292
  98. package/dist/rpc-26932bae.d.ts +0 -61
  99. package/dist/transactionRequest-f538ea86.d.ts +0 -44
  100. package/dist/watchAsset-0c9d01e2.d.ts +0 -522
  101. package/dist/webSocket-b55b0951.d.ts +0 -83
package/dist/index.js CHANGED
@@ -1,344 +1,769 @@
1
- import {
2
- addChain,
3
- call,
4
- createBlockFilter,
5
- createPendingTransactionFilter,
6
- dropTransaction,
7
- estimateGas,
8
- getAccounts,
9
- getAutomine,
10
- getBalance,
11
- getBlock,
12
- getBlockNumber,
13
- getBlockTransactionCount,
14
- getChainId,
15
- getFeeHistory,
16
- getFilterChanges,
17
- getFilterLogs,
18
- getGasPrice,
19
- getPermissions,
20
- getTransaction,
21
- getTransactionConfirmations,
22
- getTransactionCount,
23
- getTransactionReceipt,
24
- getTxpoolContent,
25
- getTxpoolStatus,
26
- impersonateAccount,
27
- increaseTime,
28
- inspectTxpool,
29
- mine,
30
- removeBlockTimestampInterval,
31
- requestAccounts,
32
- requestPermissions,
33
- reset,
34
- revert,
35
- sendTransaction,
36
- sendUnsignedTransaction,
37
- setAutomine,
38
- setBalance,
39
- setBlockGasLimit,
40
- setBlockTimestampInterval,
41
- setCode,
42
- setCoinbase,
43
- setIntervalMining,
44
- setLoggingEnabled,
45
- setMinGasPrice,
46
- setNextBlockBaseFeePerGas,
47
- setNextBlockTimestamp,
48
- setNonce,
49
- setStorageAt,
50
- signMessage,
51
- snapshot,
52
- stopImpersonatingAccount,
53
- switchChain,
54
- uninstallFilter,
55
- waitForTransactionReceipt,
56
- watchAsset,
57
- watchBlockNumber,
58
- watchBlocks,
59
- watchPendingTransactions
60
- } from "./chunk-YZEQFYZ3.js";
61
- import {
62
- createClient,
63
- createPublicClient,
64
- createTestClient,
65
- createTransport,
66
- createWalletClient,
67
- custom,
68
- fallback,
69
- http,
70
- webSocket
71
- } from "./chunk-TLEMV4T3.js";
72
- import {
73
- boolToBytes,
74
- boolToHex,
75
- bytesToBigint,
76
- bytesToBool,
77
- bytesToHex,
78
- bytesToNumber,
79
- bytesToString,
80
- decodeAbi,
81
- decodeBytes,
82
- decodeFunctionData,
83
- decodeHex,
84
- decodeRlp,
85
- encodeAbi,
86
- encodeBytes,
87
- encodeFunctionData,
88
- encodeHex,
89
- encodeRlp,
90
- etherUnits,
91
- formatBlock,
92
- formatEther,
93
- formatGwei,
94
- formatTransaction,
95
- formatTransactionRequest,
96
- formatUnit,
97
- getAddress,
98
- getContractAddress,
99
- getCreate2Address,
100
- getCreateAddress,
101
- getEventSignature,
102
- getFunctionSignature,
103
- gweiUnits,
104
- hexToBigInt,
105
- hexToBool,
106
- hexToBytes,
107
- hexToNumber,
108
- hexToString,
109
- isAddress,
110
- isAddressEqual,
111
- isBytes,
112
- isHex,
113
- keccak256,
114
- numberToBytes,
115
- numberToHex,
116
- pad,
117
- padBytes,
118
- padHex,
119
- parseEther,
120
- parseGwei,
121
- parseUnit,
122
- size,
123
- slice,
124
- sliceBytes,
125
- sliceHex,
126
- stringToBytes,
127
- stringToHex,
128
- transactionType,
129
- trim,
130
- weiUnits
131
- } from "./chunk-SRDTRROA.js";
132
- import {
133
- AbiDecodingDataSizeInvalidError,
134
- AbiEncodingArrayLengthMismatchError,
135
- AbiEncodingLengthMismatchError,
136
- AbiFunctionNotFoundError,
137
- BaseError,
138
- BlockNotFoundError,
139
- DataLengthTooLongError,
140
- DataLengthTooShortError,
141
- HttpRequestError,
142
- InternalRpcError,
143
- InvalidAbiDecodingTypeError,
144
- InvalidAbiEncodingTypeError,
145
- InvalidAddressError,
146
- InvalidArrayError,
147
- InvalidBytesBooleanError,
148
- InvalidDefinitionTypeError,
149
- InvalidGasArgumentsError,
150
- InvalidHexBooleanError,
151
- InvalidHexValueError,
152
- InvalidInputRpcError,
153
- InvalidParamsRpcError,
154
- InvalidRequestRpcError,
155
- JsonRpcVersionUnsupportedError,
156
- LimitExceededRpcError,
157
- MethodNotFoundRpcError,
158
- MethodNotSupportedRpcError,
159
- OffsetOutOfBoundsError,
160
- ParseRpcError,
161
- RequestError,
162
- ResourceNotFoundRpcError,
163
- ResourceUnavailableRpcError,
164
- RpcError,
165
- RpcRequestError,
166
- SizeExceedsPaddingSizeError,
167
- TimeoutError,
168
- TransactionNotFoundError,
169
- TransactionReceiptNotFoundError,
170
- TransactionRejectedRpcError,
171
- UnknownRpcError,
172
- UrlRequiredError,
173
- WaitForTransactionReceiptTimeoutError,
174
- WebSocketRequestError
175
- } from "./chunk-WZITKXV3.js";
176
- export {
177
- AbiDecodingDataSizeInvalidError,
178
- AbiEncodingArrayLengthMismatchError,
179
- AbiEncodingLengthMismatchError,
180
- AbiFunctionNotFoundError,
181
- BaseError,
182
- BlockNotFoundError,
183
- DataLengthTooLongError,
184
- DataLengthTooShortError,
185
- HttpRequestError,
186
- InternalRpcError,
187
- InvalidAbiDecodingTypeError,
188
- InvalidAbiEncodingTypeError,
189
- InvalidAddressError,
190
- InvalidArrayError,
191
- InvalidBytesBooleanError,
192
- InvalidDefinitionTypeError,
193
- InvalidGasArgumentsError,
194
- InvalidHexBooleanError,
195
- InvalidHexValueError,
196
- InvalidInputRpcError,
197
- InvalidParamsRpcError,
198
- InvalidRequestRpcError,
199
- JsonRpcVersionUnsupportedError,
200
- LimitExceededRpcError,
201
- MethodNotFoundRpcError,
202
- MethodNotSupportedRpcError,
203
- OffsetOutOfBoundsError,
204
- ParseRpcError,
205
- RequestError,
206
- ResourceNotFoundRpcError,
207
- ResourceUnavailableRpcError,
208
- RpcError,
209
- RpcRequestError,
210
- SizeExceedsPaddingSizeError,
211
- TimeoutError,
212
- TransactionNotFoundError,
213
- TransactionReceiptNotFoundError,
214
- TransactionRejectedRpcError,
215
- UnknownRpcError,
216
- UrlRequiredError,
217
- WaitForTransactionReceiptTimeoutError,
218
- WebSocketRequestError,
219
- addChain,
220
- boolToBytes,
221
- boolToHex,
222
- bytesToBigint,
223
- bytesToBool,
224
- bytesToHex,
225
- bytesToNumber,
226
- bytesToString,
227
- call,
228
- createBlockFilter,
229
- createClient,
230
- createPendingTransactionFilter,
231
- createPublicClient,
232
- createTestClient,
233
- createTransport,
234
- createWalletClient,
235
- custom,
236
- decodeAbi,
237
- decodeBytes,
238
- decodeFunctionData,
239
- decodeHex,
240
- decodeRlp,
241
- dropTransaction,
242
- encodeAbi,
243
- encodeBytes,
244
- encodeFunctionData,
245
- encodeHex,
246
- encodeRlp,
247
- estimateGas,
248
- etherUnits,
249
- fallback,
250
- formatBlock,
251
- formatEther,
252
- formatGwei,
253
- formatTransaction,
254
- formatTransactionRequest,
255
- formatUnit,
256
- getAccounts,
257
- getAddress,
258
- getAutomine,
259
- getBalance,
260
- getBlock,
261
- getBlockNumber,
262
- getBlockTransactionCount,
263
- getChainId,
264
- getContractAddress,
265
- getCreate2Address,
266
- getCreateAddress,
267
- getEventSignature,
268
- getFeeHistory,
269
- getFilterChanges,
270
- getFilterLogs,
271
- getFunctionSignature,
272
- getGasPrice,
273
- getPermissions,
274
- getTransaction,
275
- getTransactionConfirmations,
276
- getTransactionCount,
277
- getTransactionReceipt,
278
- getTxpoolContent,
279
- getTxpoolStatus,
280
- gweiUnits,
281
- hexToBigInt,
282
- hexToBool,
283
- hexToBytes,
284
- hexToNumber,
285
- hexToString,
286
- http,
287
- impersonateAccount,
288
- increaseTime,
289
- inspectTxpool,
290
- isAddress,
291
- isAddressEqual,
292
- isBytes,
293
- isHex,
294
- keccak256,
295
- mine,
296
- numberToBytes,
297
- numberToHex,
298
- pad,
299
- padBytes,
300
- padHex,
301
- parseEther,
302
- parseGwei,
303
- parseUnit,
304
- removeBlockTimestampInterval,
305
- requestAccounts,
306
- requestPermissions,
307
- reset,
308
- revert,
309
- sendTransaction,
310
- sendUnsignedTransaction,
311
- setAutomine,
312
- setBalance,
313
- setBlockGasLimit,
314
- setBlockTimestampInterval,
315
- setCode,
316
- setCoinbase,
317
- setIntervalMining,
318
- setLoggingEnabled,
319
- setMinGasPrice,
320
- setNextBlockBaseFeePerGas,
321
- setNextBlockTimestamp,
322
- setNonce,
323
- setStorageAt,
324
- signMessage,
325
- size,
326
- slice,
327
- sliceBytes,
328
- sliceHex,
329
- snapshot,
330
- stopImpersonatingAccount,
331
- stringToBytes,
332
- stringToHex,
333
- switchChain,
334
- transactionType,
335
- trim,
336
- uninstallFilter,
337
- waitForTransactionReceipt,
338
- watchAsset,
339
- watchBlockNumber,
340
- watchBlocks,
341
- watchPendingTransactions,
342
- webSocket,
343
- weiUnits
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