viem 0.0.1-alpha.3 → 0.0.1-alpha.30

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-23UHN6UC.mjs +210 -0
  11. package/dist/chunk-23UHN6UC.mjs.map +1 -0
  12. package/dist/chunk-25AJVKAT.mjs +3436 -0
  13. package/dist/chunk-25AJVKAT.mjs.map +1 -0
  14. package/dist/chunk-AO7KQBK3.mjs +265 -0
  15. package/dist/chunk-AO7KQBK3.mjs.map +1 -0
  16. package/dist/chunk-BHMSFL4W.js +265 -0
  17. package/dist/chunk-BHMSFL4W.js.map +1 -0
  18. package/dist/chunk-EAD66IDC.js +3436 -0
  19. package/dist/chunk-EAD66IDC.js.map +1 -0
  20. package/dist/{chunk-YZEQFYZ3.js → chunk-EYRMK2SV.mjs} +725 -556
  21. package/dist/chunk-EYRMK2SV.mjs.map +1 -0
  22. package/dist/chunk-IP3NSE7H.mjs +197 -0
  23. package/dist/chunk-IP3NSE7H.mjs.map +1 -0
  24. package/dist/chunk-NPFW67BV.js +210 -0
  25. package/dist/chunk-NPFW67BV.js.map +1 -0
  26. package/dist/chunk-VOK5ALIT.js +197 -0
  27. package/dist/chunk-VOK5ALIT.js.map +1 -0
  28. package/dist/chunk-ZX4U6QKQ.js +1216 -0
  29. package/dist/chunk-ZX4U6QKQ.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 +245 -66
  46. package/dist/index.js +767 -344
  47. package/dist/index.js.map +1 -0
  48. package/dist/index.mjs +767 -0
  49. package/dist/index.mjs.map +1 -0
  50. package/dist/namehash-88f4639d.d.ts +22 -0
  51. package/dist/parseGwei-e299cf13.d.ts +506 -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 +185 -126
  65. package/dist/utils/index.js.map +1 -0
  66. package/dist/utils/index.mjs +185 -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,767 @@
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 _chunkNPFW67BVjs = require('./chunk-NPFW67BV.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 _chunkZX4U6QKQjs = require('./chunk-ZX4U6QKQ.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 _chunkBHMSFL4Wjs = require('./chunk-BHMSFL4W.js');
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+ var _chunkVOK5ALITjs = require('./chunk-VOK5ALIT.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 _chunkEAD66IDCjs = require('./chunk-EAD66IDC.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: _chunkEAD66IDCjs.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 (_chunkEAD66IDCjs.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
+ key = "http",
308
+ name = "HTTP JSON-RPC",
309
+ retryDelay,
310
+ timeout = 1e4
311
+ } = config;
312
+ return ({ chain, retryCount: defaultRetryCount }) => {
313
+ const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
314
+ const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
315
+ if (!url_)
316
+ throw new (0, _chunkEAD66IDCjs.UrlRequiredError)();
317
+ return createTransport(
318
+ {
319
+ key,
320
+ name,
321
+ async request({ method, params }) {
322
+ const { result } = await _chunkEAD66IDCjs.rpc.http(url_, {
323
+ body: {
324
+ method,
325
+ params
326
+ },
327
+ timeout
328
+ });
329
+ return result;
330
+ },
331
+ retryCount,
332
+ retryDelay,
333
+ timeout,
334
+ type: "http"
335
+ },
336
+ {
337
+ url
338
+ }
339
+ );
340
+ };
341
+ }
342
+
343
+ // src/clients/transports/webSocket.ts
344
+ function webSocket(url, config = {}) {
345
+ const {
346
+ key = "webSocket",
347
+ name = "WebSocket JSON-RPC",
348
+ retryDelay,
349
+ timeout = 1e4
350
+ } = config;
351
+ return ({ chain, retryCount: defaultRetryCount }) => {
352
+ const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
353
+ const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
354
+ if (!url_)
355
+ throw new (0, _chunkEAD66IDCjs.UrlRequiredError)();
356
+ return createTransport(
357
+ {
358
+ key,
359
+ name,
360
+ async request({ method, params }) {
361
+ const socket = await _chunkEAD66IDCjs.getSocket.call(void 0, url_);
362
+ const { result } = await _chunkEAD66IDCjs.rpc.webSocketAsync(socket, {
363
+ body: { method, params },
364
+ timeout
365
+ });
366
+ return result;
367
+ },
368
+ retryCount,
369
+ retryDelay,
370
+ timeout,
371
+ type: "webSocket"
372
+ },
373
+ {
374
+ getSocket() {
375
+ return _chunkEAD66IDCjs.getSocket.call(void 0, url_);
376
+ },
377
+ async subscribe({ params, onData, onError }) {
378
+ const socket = await _chunkEAD66IDCjs.getSocket.call(void 0, url_);
379
+ const { result: subscriptionId } = await new Promise(
380
+ (resolve, reject) => _chunkEAD66IDCjs.rpc.webSocket(socket, {
381
+ body: {
382
+ method: "eth_subscribe",
383
+ params
384
+ },
385
+ onData: (data) => {
386
+ if (typeof data.id === "number") {
387
+ resolve(data);
388
+ return;
389
+ }
390
+ onData(data);
391
+ },
392
+ onError: (error) => {
393
+ reject(error);
394
+ _optionalChain([onError, 'optionalCall', _9 => _9(error)]);
395
+ }
396
+ })
397
+ );
398
+ return {
399
+ subscriptionId,
400
+ async unsubscribe() {
401
+ return new Promise(
402
+ (resolve, reject) => _chunkEAD66IDCjs.rpc.webSocket(socket, {
403
+ body: {
404
+ method: "eth_unsubscribe",
405
+ params: [subscriptionId]
406
+ },
407
+ onData: resolve,
408
+ onError: reject
409
+ })
410
+ );
411
+ }
412
+ };
413
+ }
414
+ }
415
+ );
416
+ };
417
+ }
418
+
419
+ // src/utils/uid.ts
420
+ var size2 = 256;
421
+ var index = size2;
422
+ var buffer;
423
+ function uid(length = 11) {
424
+ if (!buffer || index + length > size2 * 2) {
425
+ buffer = "";
426
+ index = 0;
427
+ for (let i = 0; i < size2; i++) {
428
+ buffer += (256 + Math.random() * 256 | 0).toString(16).substring(1);
429
+ }
430
+ }
431
+ return buffer.substring(index, index++ + length);
432
+ }
433
+
434
+ // src/clients/createClient.ts
435
+ function createClient({
436
+ chain,
437
+ key = "base",
438
+ name = "Base Client",
439
+ pollingInterval = 4e3,
440
+ transport,
441
+ type = "base"
442
+ }) {
443
+ const { config, request, value } = transport({ chain });
444
+ return {
445
+ chain,
446
+ key,
447
+ name,
448
+ pollingInterval,
449
+ request,
450
+ transport: { ...config, ...value },
451
+ type,
452
+ uid: uid()
453
+ };
454
+ }
455
+
456
+ // src/clients/decorators/public.ts
457
+ var publicActions = (client) => ({
458
+ call: (args) => _chunkZX4U6QKQjs.call.call(void 0, client, args),
459
+ createBlockFilter: () => _chunkZX4U6QKQjs.createBlockFilter.call(void 0, client),
460
+ createContractEventFilter: (args) => _chunkZX4U6QKQjs.createContractEventFilter.call(void 0, client, args),
461
+ createEventFilter: (args) => _chunkZX4U6QKQjs.createEventFilter.call(void 0, client, args),
462
+ createPendingTransactionFilter: () => _chunkZX4U6QKQjs.createPendingTransactionFilter.call(void 0, client),
463
+ estimateContractGas: (args) => _chunkZX4U6QKQjs.estimateContractGas.call(void 0, client, args),
464
+ estimateGas: (args) => _chunkZX4U6QKQjs.estimateGas.call(void 0, client, args),
465
+ getBalance: (args) => _chunkZX4U6QKQjs.getBalance.call(void 0, client, args),
466
+ getBlock: (args) => _chunkZX4U6QKQjs.getBlock.call(void 0, client, args),
467
+ getBlockNumber: (args) => _chunkZX4U6QKQjs.getBlockNumber.call(void 0, client, args),
468
+ getBlockTransactionCount: (args) => _chunkZX4U6QKQjs.getBlockTransactionCount.call(void 0, client, args),
469
+ getBytecode: (args) => _chunkZX4U6QKQjs.getBytecode.call(void 0, client, args),
470
+ getChainId: () => _chunkZX4U6QKQjs.getChainId.call(void 0, client),
471
+ getEnsAddress: (args) => _chunkNPFW67BVjs.getEnsAddress.call(void 0, client, args),
472
+ getEnsName: (args) => _chunkNPFW67BVjs.getEnsName.call(void 0, client, args),
473
+ getFeeHistory: (args) => _chunkZX4U6QKQjs.getFeeHistory.call(void 0, client, args),
474
+ getFilterChanges: (args) => _chunkZX4U6QKQjs.getFilterChanges.call(void 0, client, args),
475
+ getFilterLogs: (args) => _chunkZX4U6QKQjs.getFilterLogs.call(void 0, client, args),
476
+ getGasPrice: () => _chunkZX4U6QKQjs.getGasPrice.call(void 0, client),
477
+ getLogs: (args) => _chunkZX4U6QKQjs.getLogs.call(void 0, client, args),
478
+ getStorageAt: (args) => _chunkZX4U6QKQjs.getStorageAt.call(void 0, client, args),
479
+ getTransaction: (args) => _chunkZX4U6QKQjs.getTransaction.call(void 0, client, args),
480
+ getTransactionConfirmations: (args) => _chunkZX4U6QKQjs.getTransactionConfirmations.call(void 0, client, args),
481
+ getTransactionReceipt: (args) => _chunkZX4U6QKQjs.getTransactionReceipt.call(void 0, client, args),
482
+ multicall: (args) => _chunkZX4U6QKQjs.multicall.call(void 0, client, args),
483
+ readContract: (args) => _chunkZX4U6QKQjs.readContract.call(void 0, client, args),
484
+ simulateContract: (args) => _chunkZX4U6QKQjs.simulateContract.call(void 0, client, args),
485
+ uninstallFilter: (args) => _chunkZX4U6QKQjs.uninstallFilter.call(void 0, client, args),
486
+ waitForTransactionReceipt: (args) => _chunkZX4U6QKQjs.waitForTransactionReceipt.call(void 0, client, args),
487
+ watchBlocks: (args) => _chunkZX4U6QKQjs.watchBlocks.call(void 0, client, args),
488
+ watchBlockNumber: (args) => _chunkZX4U6QKQjs.watchBlockNumber.call(void 0, client, args),
489
+ watchContractEvent: (args) => _chunkZX4U6QKQjs.watchContractEvent.call(void 0, client, args),
490
+ watchEvent: (args) => _chunkZX4U6QKQjs.watchEvent.call(void 0, client, args),
491
+ watchPendingTransactions: (args) => _chunkZX4U6QKQjs.watchPendingTransactions.call(void 0, client, args)
492
+ });
493
+
494
+ // src/clients/decorators/test.ts
495
+ var testActions = (client) => ({
496
+ dropTransaction: (args) => _chunkBHMSFL4Wjs.dropTransaction.call(void 0, client, args),
497
+ getAutomine: () => _chunkBHMSFL4Wjs.getAutomine.call(void 0, client),
498
+ getTxPoolContent: () => _chunkBHMSFL4Wjs.getTxpoolContent.call(void 0, client),
499
+ getTxPoolStatus: () => _chunkBHMSFL4Wjs.getTxpoolStatus.call(void 0, client),
500
+ impersonateAccount: (args) => _chunkBHMSFL4Wjs.impersonateAccount.call(void 0, client, args),
501
+ increaseTime: (args) => _chunkBHMSFL4Wjs.increaseTime.call(void 0, client, args),
502
+ inspectTxpool: () => _chunkBHMSFL4Wjs.inspectTxpool.call(void 0, client),
503
+ mine: (args) => _chunkBHMSFL4Wjs.mine.call(void 0, client, args),
504
+ removeBlockTimestampInterval: () => _chunkBHMSFL4Wjs.removeBlockTimestampInterval.call(void 0, client),
505
+ reset: (args) => _chunkBHMSFL4Wjs.reset.call(void 0, client, args),
506
+ revert: (args) => _chunkBHMSFL4Wjs.revert.call(void 0, client, args),
507
+ sendUnsignedTransaction: (args) => _chunkBHMSFL4Wjs.sendUnsignedTransaction.call(void 0, client, args),
508
+ setAutomine: (args) => _chunkBHMSFL4Wjs.setAutomine.call(void 0, client, args),
509
+ setBalance: (args) => _chunkBHMSFL4Wjs.setBalance.call(void 0, client, args),
510
+ setBlockGasLimit: (args) => _chunkBHMSFL4Wjs.setBlockGasLimit.call(void 0, client, args),
511
+ setBlockTimestampInterval: (args) => _chunkBHMSFL4Wjs.setBlockTimestampInterval.call(void 0, client, args),
512
+ setCode: (args) => _chunkBHMSFL4Wjs.setCode.call(void 0, client, args),
513
+ setCoinbase: (args) => _chunkBHMSFL4Wjs.setCoinbase.call(void 0, client, args),
514
+ setIntervalMining: (args) => _chunkBHMSFL4Wjs.setIntervalMining.call(void 0, client, args),
515
+ setLoggingEnabled: (args) => _chunkBHMSFL4Wjs.setLoggingEnabled.call(void 0, client, args),
516
+ setMinGasPrice: (args) => _chunkBHMSFL4Wjs.setMinGasPrice.call(void 0, client, args),
517
+ setNextBlockBaseFeePerGas: (args) => _chunkBHMSFL4Wjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
518
+ setNextBlockTimestamp: (args) => _chunkBHMSFL4Wjs.setNextBlockTimestamp.call(void 0, client, args),
519
+ setNonce: (args) => _chunkBHMSFL4Wjs.setNonce.call(void 0, client, args),
520
+ setRpcUrl: (args) => _chunkBHMSFL4Wjs.setRpcUrl.call(void 0, client, args),
521
+ setStorageAt: (args) => _chunkBHMSFL4Wjs.setStorageAt.call(void 0, client, args),
522
+ snapshot: () => _chunkBHMSFL4Wjs.snapshot.call(void 0, client),
523
+ stopImpersonatingAccount: (args) => _chunkBHMSFL4Wjs.stopImpersonatingAccount.call(void 0, client, args)
524
+ });
525
+
526
+ // src/clients/decorators/wallet.ts
527
+ var walletActions = (client) => ({
528
+ addChain: (args) => _chunkVOK5ALITjs.addChain.call(void 0, client, args),
529
+ deployContract: (args) => _chunkVOK5ALITjs.deployContract.call(void 0, client, args),
530
+ getAccounts: () => _chunkVOK5ALITjs.getAccounts.call(void 0, client),
531
+ getPermissions: () => _chunkVOK5ALITjs.getPermissions.call(void 0, client),
532
+ requestAccounts: () => _chunkVOK5ALITjs.requestAccounts.call(void 0, client),
533
+ requestPermissions: (args) => _chunkVOK5ALITjs.requestPermissions.call(void 0, client, args),
534
+ sendTransaction: (args) => _chunkVOK5ALITjs.sendTransaction.call(void 0, client, args),
535
+ signMessage: (args) => _chunkVOK5ALITjs.signMessage.call(void 0, client, args),
536
+ switchChain: (args) => _chunkVOK5ALITjs.switchChain.call(void 0, client, args),
537
+ watchAsset: (args) => _chunkVOK5ALITjs.watchAsset.call(void 0, client, args),
538
+ writeContract: (args) => _chunkVOK5ALITjs.writeContract.call(void 0, client, args)
539
+ });
540
+
541
+ // src/clients/createPublicClient.ts
542
+ function createPublicClient({
543
+ chain,
544
+ key = "public",
545
+ name = "Public Client",
546
+ transport,
547
+ pollingInterval
548
+ }) {
549
+ const client = createClient({
550
+ chain,
551
+ key,
552
+ name,
553
+ pollingInterval,
554
+ transport,
555
+ type: "publicClient"
556
+ });
557
+ return {
558
+ ...client,
559
+ ...publicActions(client)
560
+ };
561
+ }
562
+
563
+ // src/clients/createTestClient.ts
564
+ function createTestClient({
565
+ chain,
566
+ key = "test",
567
+ name = "Test Client",
568
+ mode,
569
+ pollingInterval,
570
+ transport
571
+ }) {
572
+ const client = {
573
+ ...createClient({
574
+ chain,
575
+ key,
576
+ name,
577
+ pollingInterval,
578
+ transport,
579
+ type: "testClient"
580
+ }),
581
+ mode
582
+ };
583
+ return {
584
+ ...client,
585
+ ...testActions(client)
586
+ };
587
+ }
588
+
589
+ // src/clients/createWalletClient.ts
590
+ function createWalletClient({
591
+ transport,
592
+ key = "wallet",
593
+ name = "Wallet Client",
594
+ pollingInterval
595
+ }) {
596
+ const client = createClient({
597
+ key,
598
+ name,
599
+ pollingInterval,
600
+ transport,
601
+ type: "walletClient"
602
+ });
603
+ return {
604
+ ...client,
605
+ ...walletActions(client)
606
+ };
607
+ }
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
+ exports.AbiConstructorNotFoundError = _chunkEAD66IDCjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkEAD66IDCjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkEAD66IDCjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkEAD66IDCjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkEAD66IDCjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkEAD66IDCjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkEAD66IDCjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkEAD66IDCjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkEAD66IDCjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkEAD66IDCjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkEAD66IDCjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkEAD66IDCjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkEAD66IDCjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkEAD66IDCjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkEAD66IDCjs.BaseError; exports.BlockNotFoundError = _chunkEAD66IDCjs.BlockNotFoundError; exports.CallExecutionError = _chunkEAD66IDCjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkEAD66IDCjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkEAD66IDCjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkEAD66IDCjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkEAD66IDCjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkEAD66IDCjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkEAD66IDCjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkEAD66IDCjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkEAD66IDCjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkEAD66IDCjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkEAD66IDCjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkEAD66IDCjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkEAD66IDCjs.HttpRequestError; exports.InsufficientFundsError = _chunkEAD66IDCjs.InsufficientFundsError; exports.InternalRpcError = _chunkEAD66IDCjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkEAD66IDCjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkEAD66IDCjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkEAD66IDCjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkEAD66IDCjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkEAD66IDCjs.InvalidAddressError; exports.InvalidArrayError = _chunkEAD66IDCjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkEAD66IDCjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkEAD66IDCjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkEAD66IDCjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkEAD66IDCjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkEAD66IDCjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkEAD66IDCjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkEAD66IDCjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkEAD66IDCjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkEAD66IDCjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkEAD66IDCjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkEAD66IDCjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkEAD66IDCjs.NonceMaxValueError; exports.NonceTooHighError = _chunkEAD66IDCjs.NonceTooHighError; exports.NonceTooLowError = _chunkEAD66IDCjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkEAD66IDCjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkEAD66IDCjs.ParseRpcError; exports.RawContractError = _chunkEAD66IDCjs.RawContractError; exports.RequestError = _chunkEAD66IDCjs.RequestError; exports.ResourceNotFoundRpcError = _chunkEAD66IDCjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkEAD66IDCjs.ResourceUnavailableRpcError; exports.RpcError = _chunkEAD66IDCjs.RpcError; exports.RpcRequestError = _chunkEAD66IDCjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkEAD66IDCjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkEAD66IDCjs.TimeoutError; exports.TipAboveFeeCapError = _chunkEAD66IDCjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkEAD66IDCjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkEAD66IDCjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkEAD66IDCjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkEAD66IDCjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkEAD66IDCjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkEAD66IDCjs.UnknownNodeError; exports.UnknownRpcError = _chunkEAD66IDCjs.UnknownRpcError; exports.UrlRequiredError = _chunkEAD66IDCjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkEAD66IDCjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkEAD66IDCjs.WebSocketRequestError; exports.boolToBytes = _chunkEAD66IDCjs.boolToBytes; exports.boolToHex = _chunkEAD66IDCjs.boolToHex; exports.bytesToBigint = _chunkEAD66IDCjs.bytesToBigint; exports.bytesToBool = _chunkEAD66IDCjs.bytesToBool; exports.bytesToHex = _chunkEAD66IDCjs.bytesToHex; exports.bytesToNumber = _chunkEAD66IDCjs.bytesToNumber; exports.bytesToString = _chunkEAD66IDCjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbi = _chunkEAD66IDCjs.decodeAbi; exports.decodeErrorResult = _chunkEAD66IDCjs.decodeErrorResult; exports.decodeEventLog = _chunkEAD66IDCjs.decodeEventLog; exports.decodeFunctionData = _chunkEAD66IDCjs.decodeFunctionData; exports.decodeFunctionResult = _chunkEAD66IDCjs.decodeFunctionResult; exports.defineBlock = _chunkEAD66IDCjs.defineBlock; exports.defineChain = _chunkEAD66IDCjs.defineChain; exports.defineTransaction = _chunkEAD66IDCjs.defineTransaction; exports.defineTransactionReceipt = _chunkEAD66IDCjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkEAD66IDCjs.defineTransactionRequest; exports.encodeAbi = _chunkEAD66IDCjs.encodeAbi; exports.encodeDeployData = _chunkEAD66IDCjs.encodeDeployData; exports.encodeErrorResult = _chunkEAD66IDCjs.encodeErrorResult; exports.encodeEventTopics = _chunkEAD66IDCjs.encodeEventTopics; exports.encodeFunctionData = _chunkEAD66IDCjs.encodeFunctionData; exports.encodeFunctionResult = _chunkEAD66IDCjs.encodeFunctionResult; exports.etherUnits = _chunkEAD66IDCjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkEAD66IDCjs.formatBlock; exports.formatEther = _chunkEAD66IDCjs.formatEther; exports.formatGwei = _chunkEAD66IDCjs.formatGwei; exports.formatTransaction = _chunkEAD66IDCjs.formatTransaction; exports.formatTransactionRequest = _chunkEAD66IDCjs.formatTransactionRequest; exports.formatUnit = _chunkEAD66IDCjs.formatUnit; exports.fromBytes = _chunkEAD66IDCjs.fromBytes; exports.fromHex = _chunkEAD66IDCjs.fromHex; exports.fromRlp = _chunkEAD66IDCjs.fromRlp; exports.getAbiItem = _chunkEAD66IDCjs.getAbiItem; exports.getAddress = _chunkEAD66IDCjs.getAddress; exports.getContractAddress = _chunkEAD66IDCjs.getContractAddress; exports.getContractError = _chunkEAD66IDCjs.getContractError; exports.getCreate2Address = _chunkEAD66IDCjs.getCreate2Address; exports.getCreateAddress = _chunkEAD66IDCjs.getCreateAddress; exports.getEventSignature = _chunkEAD66IDCjs.getEventSignature; exports.getFunctionSignature = _chunkEAD66IDCjs.getFunctionSignature; exports.gweiUnits = _chunkEAD66IDCjs.gweiUnits; exports.hexToBigInt = _chunkEAD66IDCjs.hexToBigInt; exports.hexToBool = _chunkEAD66IDCjs.hexToBool; exports.hexToBytes = _chunkEAD66IDCjs.hexToBytes; exports.hexToNumber = _chunkEAD66IDCjs.hexToNumber; exports.hexToString = _chunkEAD66IDCjs.hexToString; exports.http = http; exports.isAddress = _chunkEAD66IDCjs.isAddress; exports.isAddressEqual = _chunkEAD66IDCjs.isAddressEqual; exports.isBytes = _chunkEAD66IDCjs.isBytes; exports.isHex = _chunkEAD66IDCjs.isHex; exports.keccak256 = _chunkEAD66IDCjs.keccak256; exports.labelhash = _chunkNPFW67BVjs.labelhash; exports.multicall3Abi = _chunkEAD66IDCjs.multicall3Abi; exports.namehash = _chunkNPFW67BVjs.namehash; exports.numberToBytes = _chunkEAD66IDCjs.numberToBytes; exports.numberToHex = _chunkEAD66IDCjs.numberToHex; exports.pad = _chunkEAD66IDCjs.pad; exports.padBytes = _chunkEAD66IDCjs.padBytes; exports.padHex = _chunkEAD66IDCjs.padHex; exports.parseEther = _chunkEAD66IDCjs.parseEther; exports.parseGwei = _chunkEAD66IDCjs.parseGwei; exports.parseUnit = _chunkEAD66IDCjs.parseUnit; exports.size = _chunkEAD66IDCjs.size; exports.slice = _chunkEAD66IDCjs.slice; exports.sliceBytes = _chunkEAD66IDCjs.sliceBytes; exports.sliceHex = _chunkEAD66IDCjs.sliceHex; exports.stringToBytes = _chunkEAD66IDCjs.stringToBytes; exports.stringToHex = _chunkEAD66IDCjs.stringToHex; exports.stringify = _chunkEAD66IDCjs.stringify; exports.toBytes = _chunkEAD66IDCjs.toBytes; exports.toHex = _chunkEAD66IDCjs.toHex; exports.toRlp = _chunkEAD66IDCjs.toRlp; exports.transactionType = _chunkEAD66IDCjs.transactionType; exports.trim = _chunkEAD66IDCjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkEAD66IDCjs.weiUnits;
767
+ //# sourceMappingURL=index.js.map