viem 0.0.1-alpha.10 → 0.0.1-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,374 @@
1
+ import {
2
+ addChain,
3
+ call,
4
+ callContract,
5
+ createBlockFilter,
6
+ createPendingTransactionFilter,
7
+ dropTransaction,
8
+ estimateGas,
9
+ getAccounts,
10
+ getAutomine,
11
+ getBalance,
12
+ getBlock,
13
+ getBlockNumber,
14
+ getBlockTransactionCount,
15
+ getChainId,
16
+ getFeeHistory,
17
+ getFilterChanges,
18
+ getFilterLogs,
19
+ getGasPrice,
20
+ getPermissions,
21
+ getTransaction,
22
+ getTransactionConfirmations,
23
+ getTransactionCount,
24
+ getTransactionReceipt,
25
+ getTxpoolContent,
26
+ getTxpoolStatus,
27
+ impersonateAccount,
28
+ increaseTime,
29
+ inspectTxpool,
30
+ mine,
31
+ removeBlockTimestampInterval,
32
+ requestAccounts,
33
+ requestPermissions,
34
+ reset,
35
+ revert,
36
+ sendTransaction,
37
+ sendUnsignedTransaction,
38
+ setAutomine,
39
+ setBalance,
40
+ setBlockGasLimit,
41
+ setBlockTimestampInterval,
42
+ setCode,
43
+ setCoinbase,
44
+ setIntervalMining,
45
+ setLoggingEnabled,
46
+ setMinGasPrice,
47
+ setNextBlockBaseFeePerGas,
48
+ setNextBlockTimestamp,
49
+ setNonce,
50
+ setStorageAt,
51
+ signMessage,
52
+ snapshot,
53
+ stopImpersonatingAccount,
54
+ switchChain,
55
+ uninstallFilter,
56
+ waitForTransactionReceipt,
57
+ watchAsset,
58
+ watchBlockNumber,
59
+ watchBlocks,
60
+ watchPendingTransactions
61
+ } from "./chunk-JXGK2LUM.mjs";
62
+ import {
63
+ createClient,
64
+ createPublicClient,
65
+ createTestClient,
66
+ createTransport,
67
+ createWalletClient,
68
+ custom,
69
+ fallback,
70
+ http,
71
+ webSocket
72
+ } from "./chunk-TP542F7H.mjs";
73
+ import {
74
+ AbiConstructorNotFoundError,
75
+ AbiConstructorParamsNotFoundError,
76
+ AbiDecodingDataSizeInvalidError,
77
+ AbiEncodingArrayLengthMismatchError,
78
+ AbiEncodingLengthMismatchError,
79
+ AbiErrorInputsNotFoundError,
80
+ AbiErrorNotFoundError,
81
+ AbiErrorSignatureNotFoundError,
82
+ AbiEventNotFoundError,
83
+ AbiFunctionNotFoundError,
84
+ AbiFunctionOutputsNotFoundError,
85
+ AbiFunctionSignatureNotFoundError,
86
+ BaseError,
87
+ BlockNotFoundError,
88
+ DataLengthTooLongError,
89
+ DataLengthTooShortError,
90
+ FilterTypeNotSupportedError,
91
+ HttpRequestError,
92
+ InternalRpcError,
93
+ InvalidAbiDecodingTypeError,
94
+ InvalidAbiEncodingTypeError,
95
+ InvalidAddressError,
96
+ InvalidArrayError,
97
+ InvalidBytesBooleanError,
98
+ InvalidDefinitionTypeError,
99
+ InvalidGasArgumentsError,
100
+ InvalidHexBooleanError,
101
+ InvalidHexValueError,
102
+ InvalidInputRpcError,
103
+ InvalidParamsRpcError,
104
+ InvalidRequestRpcError,
105
+ JsonRpcVersionUnsupportedError,
106
+ LimitExceededRpcError,
107
+ MethodNotFoundRpcError,
108
+ MethodNotSupportedRpcError,
109
+ OffsetOutOfBoundsError,
110
+ ParseRpcError,
111
+ RequestError,
112
+ ResourceNotFoundRpcError,
113
+ ResourceUnavailableRpcError,
114
+ RpcError,
115
+ RpcRequestError,
116
+ SizeExceedsPaddingSizeError,
117
+ TimeoutError,
118
+ TransactionNotFoundError,
119
+ TransactionReceiptNotFoundError,
120
+ TransactionRejectedRpcError,
121
+ UnknownRpcError,
122
+ UrlRequiredError,
123
+ WaitForTransactionReceiptTimeoutError,
124
+ WebSocketRequestError,
125
+ boolToBytes,
126
+ boolToHex,
127
+ bytesToBigint,
128
+ bytesToBool,
129
+ bytesToHex,
130
+ bytesToNumber,
131
+ bytesToString,
132
+ decodeAbi,
133
+ decodeBytes,
134
+ decodeErrorResult,
135
+ decodeFunctionData,
136
+ decodeFunctionResult,
137
+ decodeHex,
138
+ decodeRlp,
139
+ encodeAbi,
140
+ encodeBytes,
141
+ encodeDeployData,
142
+ encodeErrorResult,
143
+ encodeEventTopics,
144
+ encodeFunctionData,
145
+ encodeFunctionResult,
146
+ encodeHex,
147
+ encodeRlp,
148
+ etherUnits,
149
+ formatBlock,
150
+ formatEther,
151
+ formatGwei,
152
+ formatTransaction,
153
+ formatTransactionRequest,
154
+ formatUnit,
155
+ getAddress,
156
+ getContractAddress,
157
+ getCreate2Address,
158
+ getCreateAddress,
159
+ getEventSignature,
160
+ getFunctionSignature,
161
+ gweiUnits,
162
+ hexToBigInt,
163
+ hexToBool,
164
+ hexToBytes,
165
+ hexToNumber,
166
+ hexToString,
167
+ isAddress,
168
+ isAddressEqual,
169
+ isBytes,
170
+ isHex,
171
+ keccak256,
172
+ numberToBytes,
173
+ numberToHex,
174
+ pad,
175
+ padBytes,
176
+ padHex,
177
+ parseEther,
178
+ parseGwei,
179
+ parseUnit,
180
+ size,
181
+ slice,
182
+ sliceBytes,
183
+ sliceHex,
184
+ stringToBytes,
185
+ stringToHex,
186
+ transactionType,
187
+ trim,
188
+ weiUnits
189
+ } from "./chunk-DY4MSK2M.mjs";
190
+ export {
191
+ AbiConstructorNotFoundError,
192
+ AbiConstructorParamsNotFoundError,
193
+ AbiDecodingDataSizeInvalidError,
194
+ AbiEncodingArrayLengthMismatchError,
195
+ AbiEncodingLengthMismatchError,
196
+ AbiErrorInputsNotFoundError,
197
+ AbiErrorNotFoundError,
198
+ AbiErrorSignatureNotFoundError,
199
+ AbiEventNotFoundError,
200
+ AbiFunctionNotFoundError,
201
+ AbiFunctionOutputsNotFoundError,
202
+ AbiFunctionSignatureNotFoundError,
203
+ BaseError,
204
+ BlockNotFoundError,
205
+ DataLengthTooLongError,
206
+ DataLengthTooShortError,
207
+ FilterTypeNotSupportedError,
208
+ HttpRequestError,
209
+ InternalRpcError,
210
+ InvalidAbiDecodingTypeError,
211
+ InvalidAbiEncodingTypeError,
212
+ InvalidAddressError,
213
+ InvalidArrayError,
214
+ InvalidBytesBooleanError,
215
+ InvalidDefinitionTypeError,
216
+ InvalidGasArgumentsError,
217
+ InvalidHexBooleanError,
218
+ InvalidHexValueError,
219
+ InvalidInputRpcError,
220
+ InvalidParamsRpcError,
221
+ InvalidRequestRpcError,
222
+ JsonRpcVersionUnsupportedError,
223
+ LimitExceededRpcError,
224
+ MethodNotFoundRpcError,
225
+ MethodNotSupportedRpcError,
226
+ OffsetOutOfBoundsError,
227
+ ParseRpcError,
228
+ RequestError,
229
+ ResourceNotFoundRpcError,
230
+ ResourceUnavailableRpcError,
231
+ RpcError,
232
+ RpcRequestError,
233
+ SizeExceedsPaddingSizeError,
234
+ TimeoutError,
235
+ TransactionNotFoundError,
236
+ TransactionReceiptNotFoundError,
237
+ TransactionRejectedRpcError,
238
+ UnknownRpcError,
239
+ UrlRequiredError,
240
+ WaitForTransactionReceiptTimeoutError,
241
+ WebSocketRequestError,
242
+ addChain,
243
+ boolToBytes,
244
+ boolToHex,
245
+ bytesToBigint,
246
+ bytesToBool,
247
+ bytesToHex,
248
+ bytesToNumber,
249
+ bytesToString,
250
+ call,
251
+ callContract,
252
+ createBlockFilter,
253
+ createClient,
254
+ createPendingTransactionFilter,
255
+ createPublicClient,
256
+ createTestClient,
257
+ createTransport,
258
+ createWalletClient,
259
+ custom,
260
+ decodeAbi,
261
+ decodeBytes,
262
+ decodeErrorResult,
263
+ decodeFunctionData,
264
+ decodeFunctionResult,
265
+ decodeHex,
266
+ decodeRlp,
267
+ dropTransaction,
268
+ encodeAbi,
269
+ encodeBytes,
270
+ encodeDeployData,
271
+ encodeErrorResult,
272
+ encodeEventTopics,
273
+ encodeFunctionData,
274
+ encodeFunctionResult,
275
+ encodeHex,
276
+ encodeRlp,
277
+ estimateGas,
278
+ etherUnits,
279
+ fallback,
280
+ formatBlock,
281
+ formatEther,
282
+ formatGwei,
283
+ formatTransaction,
284
+ formatTransactionRequest,
285
+ formatUnit,
286
+ getAccounts,
287
+ getAddress,
288
+ getAutomine,
289
+ getBalance,
290
+ getBlock,
291
+ getBlockNumber,
292
+ getBlockTransactionCount,
293
+ getChainId,
294
+ getContractAddress,
295
+ getCreate2Address,
296
+ getCreateAddress,
297
+ getEventSignature,
298
+ getFeeHistory,
299
+ getFilterChanges,
300
+ getFilterLogs,
301
+ getFunctionSignature,
302
+ getGasPrice,
303
+ getPermissions,
304
+ getTransaction,
305
+ getTransactionConfirmations,
306
+ getTransactionCount,
307
+ getTransactionReceipt,
308
+ getTxpoolContent,
309
+ getTxpoolStatus,
310
+ gweiUnits,
311
+ hexToBigInt,
312
+ hexToBool,
313
+ hexToBytes,
314
+ hexToNumber,
315
+ hexToString,
316
+ http,
317
+ impersonateAccount,
318
+ increaseTime,
319
+ inspectTxpool,
320
+ isAddress,
321
+ isAddressEqual,
322
+ isBytes,
323
+ isHex,
324
+ keccak256,
325
+ mine,
326
+ numberToBytes,
327
+ numberToHex,
328
+ pad,
329
+ padBytes,
330
+ padHex,
331
+ parseEther,
332
+ parseGwei,
333
+ parseUnit,
334
+ removeBlockTimestampInterval,
335
+ requestAccounts,
336
+ requestPermissions,
337
+ reset,
338
+ revert,
339
+ sendTransaction,
340
+ sendUnsignedTransaction,
341
+ setAutomine,
342
+ setBalance,
343
+ setBlockGasLimit,
344
+ setBlockTimestampInterval,
345
+ setCode,
346
+ setCoinbase,
347
+ setIntervalMining,
348
+ setLoggingEnabled,
349
+ setMinGasPrice,
350
+ setNextBlockBaseFeePerGas,
351
+ setNextBlockTimestamp,
352
+ setNonce,
353
+ setStorageAt,
354
+ signMessage,
355
+ size,
356
+ slice,
357
+ sliceBytes,
358
+ sliceHex,
359
+ snapshot,
360
+ stopImpersonatingAccount,
361
+ stringToBytes,
362
+ stringToHex,
363
+ switchChain,
364
+ transactionType,
365
+ trim,
366
+ uninstallFilter,
367
+ waitForTransactionReceipt,
368
+ watchAsset,
369
+ watchBlockNumber,
370
+ watchBlocks,
371
+ watchPendingTransactions,
372
+ webSocket,
373
+ weiUnits
374
+ };
@@ -1,148 +1,148 @@
1
- import {
2
- boolToBytes,
3
- boolToHex,
4
- buildRequest,
5
- bytesToBigint,
6
- bytesToBool,
7
- bytesToHex,
8
- bytesToNumber,
9
- bytesToString,
10
- decodeAbi,
11
- decodeBytes,
12
- decodeErrorResult,
13
- decodeFunctionData,
14
- decodeFunctionResult,
15
- decodeHex,
16
- decodeRlp,
17
- encodeAbi,
18
- encodeBytes,
19
- encodeDeployData,
20
- encodeErrorResult,
21
- encodeEventTopics,
22
- encodeFunctionData,
23
- encodeFunctionResult,
24
- encodeHex,
25
- encodeRlp,
26
- extractFunctionName,
27
- extractFunctionParams,
28
- extractFunctionParts,
29
- extractFunctionType,
30
- format,
31
- formatAbiItemWithArgs,
32
- formatAbiItemWithParams,
33
- formatBlock,
34
- formatEther,
35
- formatGwei,
36
- formatTransaction,
37
- formatTransactionRequest,
38
- formatUnit,
39
- getAbiItem,
40
- getAddress,
41
- getContractAddress,
42
- getContractError,
43
- getCreate2Address,
44
- getCreateAddress,
45
- getEventSignature,
46
- getFunctionSignature,
47
- hexToBigInt,
48
- hexToBool,
49
- hexToBytes,
50
- hexToNumber,
51
- hexToString,
52
- isAddress,
53
- isAddressEqual,
54
- isBytes,
55
- isHex,
56
- keccak256,
57
- numberToBytes,
58
- numberToHex,
59
- pad,
60
- padBytes,
61
- padHex,
62
- parseEther,
63
- parseGwei,
64
- parseUnit,
65
- rpc,
66
- size,
67
- slice,
68
- sliceBytes,
69
- sliceHex,
70
- stringToBytes,
71
- stringToHex,
72
- stringify,
73
- trim
74
- } from "../chunk-6GAKRM5P.js";
75
- export {
76
- boolToBytes,
77
- boolToHex,
78
- buildRequest,
79
- bytesToBigint,
80
- bytesToBool,
81
- bytesToHex,
82
- bytesToNumber,
83
- bytesToString,
84
- decodeAbi,
85
- decodeBytes,
86
- decodeErrorResult,
87
- decodeFunctionData,
88
- decodeFunctionResult,
89
- decodeHex,
90
- decodeRlp,
91
- encodeAbi,
92
- encodeBytes,
93
- encodeDeployData,
94
- encodeErrorResult,
95
- encodeEventTopics,
96
- encodeFunctionData,
97
- encodeFunctionResult,
98
- encodeHex,
99
- encodeRlp,
100
- extractFunctionName,
101
- extractFunctionParams,
102
- extractFunctionParts,
103
- extractFunctionType,
104
- format,
105
- formatAbiItemWithArgs,
106
- formatAbiItemWithParams,
107
- formatBlock,
108
- formatEther,
109
- formatGwei,
110
- formatTransaction,
111
- formatTransactionRequest,
112
- formatUnit,
113
- getAbiItem,
114
- getAddress,
115
- getContractAddress,
116
- getContractError,
117
- getCreate2Address,
118
- getCreateAddress,
119
- getEventSignature,
120
- getFunctionSignature,
121
- hexToBigInt,
122
- hexToBool,
123
- hexToBytes,
124
- hexToNumber,
125
- hexToString,
126
- isAddress,
127
- isAddressEqual,
128
- isBytes,
129
- isHex,
130
- keccak256,
131
- numberToBytes,
132
- numberToHex,
133
- pad,
134
- padBytes,
135
- padHex,
136
- parseEther,
137
- parseGwei,
138
- parseUnit,
139
- rpc,
140
- size,
141
- slice,
142
- sliceBytes,
143
- sliceHex,
144
- stringToBytes,
145
- stringToHex,
146
- stringify,
147
- trim
148
- };
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
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
+ var _chunk35OJIFIWjs = require('../chunk-35OJIFIW.js');
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
+ exports.boolToBytes = _chunk35OJIFIWjs.boolToBytes; exports.boolToHex = _chunk35OJIFIWjs.boolToHex; exports.buildRequest = _chunk35OJIFIWjs.buildRequest; exports.bytesToBigint = _chunk35OJIFIWjs.bytesToBigint; exports.bytesToBool = _chunk35OJIFIWjs.bytesToBool; exports.bytesToHex = _chunk35OJIFIWjs.bytesToHex; exports.bytesToNumber = _chunk35OJIFIWjs.bytesToNumber; exports.bytesToString = _chunk35OJIFIWjs.bytesToString; exports.decodeAbi = _chunk35OJIFIWjs.decodeAbi; exports.decodeBytes = _chunk35OJIFIWjs.decodeBytes; exports.decodeErrorResult = _chunk35OJIFIWjs.decodeErrorResult; exports.decodeFunctionData = _chunk35OJIFIWjs.decodeFunctionData; exports.decodeFunctionResult = _chunk35OJIFIWjs.decodeFunctionResult; exports.decodeHex = _chunk35OJIFIWjs.decodeHex; exports.decodeRlp = _chunk35OJIFIWjs.decodeRlp; exports.encodeAbi = _chunk35OJIFIWjs.encodeAbi; exports.encodeBytes = _chunk35OJIFIWjs.encodeBytes; exports.encodeDeployData = _chunk35OJIFIWjs.encodeDeployData; exports.encodeErrorResult = _chunk35OJIFIWjs.encodeErrorResult; exports.encodeEventTopics = _chunk35OJIFIWjs.encodeEventTopics; exports.encodeFunctionData = _chunk35OJIFIWjs.encodeFunctionData; exports.encodeFunctionResult = _chunk35OJIFIWjs.encodeFunctionResult; exports.encodeHex = _chunk35OJIFIWjs.encodeHex; exports.encodeRlp = _chunk35OJIFIWjs.encodeRlp; exports.extractFunctionName = _chunk35OJIFIWjs.extractFunctionName; exports.extractFunctionParams = _chunk35OJIFIWjs.extractFunctionParams; exports.extractFunctionParts = _chunk35OJIFIWjs.extractFunctionParts; exports.extractFunctionType = _chunk35OJIFIWjs.extractFunctionType; exports.format = _chunk35OJIFIWjs.format; exports.formatAbiItemWithArgs = _chunk35OJIFIWjs.formatAbiItemWithArgs; exports.formatAbiItemWithParams = _chunk35OJIFIWjs.formatAbiItemWithParams; exports.formatBlock = _chunk35OJIFIWjs.formatBlock; exports.formatEther = _chunk35OJIFIWjs.formatEther; exports.formatGwei = _chunk35OJIFIWjs.formatGwei; exports.formatTransaction = _chunk35OJIFIWjs.formatTransaction; exports.formatTransactionRequest = _chunk35OJIFIWjs.formatTransactionRequest; exports.formatUnit = _chunk35OJIFIWjs.formatUnit; exports.getAbiItem = _chunk35OJIFIWjs.getAbiItem; exports.getAddress = _chunk35OJIFIWjs.getAddress; exports.getContractAddress = _chunk35OJIFIWjs.getContractAddress; exports.getContractError = _chunk35OJIFIWjs.getContractError; exports.getCreate2Address = _chunk35OJIFIWjs.getCreate2Address; exports.getCreateAddress = _chunk35OJIFIWjs.getCreateAddress; exports.getEventSignature = _chunk35OJIFIWjs.getEventSignature; exports.getFunctionSignature = _chunk35OJIFIWjs.getFunctionSignature; exports.hexToBigInt = _chunk35OJIFIWjs.hexToBigInt; exports.hexToBool = _chunk35OJIFIWjs.hexToBool; exports.hexToBytes = _chunk35OJIFIWjs.hexToBytes; exports.hexToNumber = _chunk35OJIFIWjs.hexToNumber; exports.hexToString = _chunk35OJIFIWjs.hexToString; exports.isAddress = _chunk35OJIFIWjs.isAddress; exports.isAddressEqual = _chunk35OJIFIWjs.isAddressEqual; exports.isBytes = _chunk35OJIFIWjs.isBytes; exports.isHex = _chunk35OJIFIWjs.isHex; exports.keccak256 = _chunk35OJIFIWjs.keccak256; exports.numberToBytes = _chunk35OJIFIWjs.numberToBytes; exports.numberToHex = _chunk35OJIFIWjs.numberToHex; exports.pad = _chunk35OJIFIWjs.pad; exports.padBytes = _chunk35OJIFIWjs.padBytes; exports.padHex = _chunk35OJIFIWjs.padHex; exports.parseEther = _chunk35OJIFIWjs.parseEther; exports.parseGwei = _chunk35OJIFIWjs.parseGwei; exports.parseUnit = _chunk35OJIFIWjs.parseUnit; exports.rpc = _chunk35OJIFIWjs.rpc; exports.size = _chunk35OJIFIWjs.size; exports.slice = _chunk35OJIFIWjs.slice; exports.sliceBytes = _chunk35OJIFIWjs.sliceBytes; exports.sliceHex = _chunk35OJIFIWjs.sliceHex; exports.stringToBytes = _chunk35OJIFIWjs.stringToBytes; exports.stringToHex = _chunk35OJIFIWjs.stringToHex; exports.stringify = _chunk35OJIFIWjs.stringify; exports.trim = _chunk35OJIFIWjs.trim;