viem 0.0.1-alpha.0 → 0.0.1-alpha.10
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/README.md +16 -0
- package/dist/actions/index.d.ts +6 -10
- package/dist/actions/index.js +6 -2
- package/dist/chains.d.ts +3 -3
- package/dist/chains.js +1 -1
- package/dist/{chunk-OPR6LKYX.js → chunk-3TSTZHVO.js} +57 -50
- package/dist/{chunk-GI67STNV.js → chunk-6GAKRM5P.js} +1499 -355
- package/dist/{chunk-JSYJDK4W.js → chunk-NMN4TFDP.js} +248 -196
- package/dist/clients/index.d.ts +5 -6
- package/dist/clients/index.js +6 -6
- package/dist/{createWalletClient-c40fef16.d.ts → createWalletClient-d612fe08.d.ts} +6 -6
- package/dist/{eip1193-8f7c22ce.d.ts → eip1193-020a6f13.d.ts} +2 -2
- package/dist/index.d.ts +341 -9
- package/dist/index.js +102 -6
- package/dist/{parseGwei-a7d0bcb2.d.ts → parseGwei-7c87ff41.d.ts} +90 -87
- package/dist/{rpc-3c0e3985.d.ts → rpc-26932bae.d.ts} +1 -38
- package/dist/{rpc-655c0ba4.d.ts → rpc-b77c5aee.d.ts} +1 -1
- package/dist/transactionRequest-08d30731.d.ts +132 -0
- package/dist/utils/index.d.ts +41 -6
- package/dist/utils/index.js +33 -35
- package/dist/{watchAsset-bb30848d.d.ts → watchAsset-bc6373f4.d.ts} +35 -36
- package/dist/{webSocket-14584a7e.d.ts → webSocket-7f88e9e0.d.ts} +27 -21
- package/dist/window.d.ts +2 -2
- package/package.json +64 -10
- package/dist/BaseError-7688f84e.d.ts +0 -18
- package/dist/transactionRequest-ade896ac.d.ts +0 -44
package/dist/index.d.ts
CHANGED
@@ -1,11 +1,343 @@
|
|
1
|
-
export { C as CallArgs, a as
|
2
|
-
export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from './createWalletClient-
|
3
|
-
export {
|
4
|
-
|
5
|
-
export {
|
6
|
-
export {
|
7
|
-
export {
|
8
|
-
|
1
|
+
export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, G as GetBalanceArgs, g as GetBalanceResponse, h as GetBlockArgs, i as GetBlockNumberArgs, j as GetBlockNumberResponse, k as GetBlockResponse, l as GetBlockTransactionCountArgs, m as GetBlockTransactionCountResponse, n as GetFeeHistoryArgs, o as GetFeeHistoryResponse, p as GetFilterChangesArgs, q as GetFilterChangesResponse, r as GetFilterLogsArgs, s as GetFilterLogsResponse, t as GetGasPriceResponse, u as GetPermissionsResponse, v as GetTransactionArgs, w as GetTransactionConfirmationsArgs, x as GetTransactionConfirmationsResponse, y as GetTransactionCountArgs, z as GetTransactionCountResponse, B as GetTransactionReceiptArgs, F as GetTransactionReceiptResponse, A as GetTransactionResponse, I as ImpersonateAccountArgs, H as IncreaseTimeArgs, M as MineArgs, O as OnBlock, J as OnBlockNumber, K as OnBlockNumberResponse, L as OnBlockResponse, N as OnTransactions, P as OnTransactionsResponse, Q as RequestPermissionsResponse, R as ResetArgs, S as RevertArgs, T as SendTransactionArgs, U as SendTransactionResponse, V as SendUnsignedTransactionArgs, W as SendUnsignedTransactionResponse, X as SetBalanceArgs, Y as SetBlockGasLimitArgs, a1 as SetBlockTimestampIntervalArgs, Z as SetCodeArgs, _ as SetCoinbaseArgs, $ as SetIntervalMiningArgs, a0 as SetMinGasPriceArgs, a3 as SetNextBlockBaseFeePerGasArgs, a2 as SetNextBlockTimestampArgs, a4 as SetNonceArgs, a5 as SetStorageAtArgs, a6 as SignMessageArgs, a7 as SignMessageResponse, a8 as StopImpersonatingAccountArgs, a9 as SwitchChainArgs, aa as UninstallFilterArgs, ab as UninstallFilterResponse, ac as WaitForTransactionReceiptArgs, ad as WaitForTransactionReceiptResponse, ae as WatchAssetArgs, af as WatchAssetResponse, ag as WatchBlockNumberArgs, ah as WatchBlocksArgs, ai as WatchPendingTransactionsArgs, aj as addChain, ak as call, al as callContract, am as createBlockFilter, an as createPendingTransactionFilter, ap as dropTransaction, ao as estimateGas, aq as getAccounts, ar as getAutomine, as as getBalance, at as getBlock, au as getBlockNumber, av as getBlockTransactionCount, aw as getChainId, ax as getFeeHistory, ay as getFilterChanges, az as getFilterLogs, aA as getGasPrice, aB as getPermissions, aC as getTransaction, aD as getTransactionConfirmations, aE as getTransactionCount, aF as getTransactionReceipt, aG as getTxpoolContent, aH as getTxpoolStatus, aI as impersonateAccount, aJ as increaseTime, aK as inspectTxpool, aL as mine, aM as removeBlockTimestampInterval, aO as requestAccounts, aP as requestPermissions, aN as reset, aQ as revert, aR as sendTransaction, aS as sendUnsignedTransaction, aT as setAutomine, aU as setBalance, aV as setBlockGasLimit, aW as setBlockTimestampInterval, aX as setCode, aY as setCoinbase, aZ as setIntervalMining, a_ as setLoggingEnabled, a$ as setMinGasPrice, b0 as setNextBlockBaseFeePerGas, b1 as setNextBlockTimestamp, b2 as setNonce, b3 as setStorageAt, b4 as signMessage, b5 as snapshot, b6 as stopImpersonatingAccount, b7 as switchChain, b8 as uninstallFilter, b9 as waitForTransactionReceipt, ba as watchAsset, bb as watchBlockNumber, bc as watchBlocks, bd as watchPendingTransactions } from './watchAsset-bc6373f4.js';
|
2
|
+
export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from './createWalletClient-d612fe08.js';
|
3
|
+
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from './webSocket-7f88e9e0.js';
|
4
|
+
import { H as Hex, A as Address, a as Hash, B as ByteArray, b as BlockTag } from './rpc-b77c5aee.js';
|
5
|
+
export { c as AccessList, A as Address, d as Block, f as BlockIdentifier, h as BlockNumber, b as BlockTag, B as ByteArray, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, a as Hash, H as Hex, L as Log, R as RpcBlock, l as RpcBlockIdentifier, m as RpcBlockNumber, n as RpcFeeHistory, o as RpcFeeValues, p as RpcLog, q as RpcTransaction, r as RpcTransactionReceipt, s as RpcTransactionRequest, u as RpcUncle, D as Transaction, E as TransactionBase, G as TransactionEIP1559, I as TransactionEIP2930, J as TransactionLegacy, T as TransactionReceipt, v as TransactionRequest, x as TransactionRequestBase, y as TransactionRequestEIP1559, z as TransactionRequestEIP2930, C as TransactionRequestLegacy, U as Uncle, e as etherUnits, g as gweiUnits, t as transactionType, w as weiUnits } from './rpc-b77c5aee.js';
|
6
|
+
export { A as AbiItem, F as FormattedBlock, a as FormattedTransaction, b as FormattedTransactionRequest, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from './transactionRequest-08d30731.js';
|
7
|
+
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeFunctionDataArgs, c as DecodeFunctionResultArgs, d as DecodeFunctionResultResponse, E as EncodeAbiArgs, e as EncodeDeployDataArgs, f as EncodeErrorResultArgs, g as EncodeEventTopicsArgs, h as EncodeFunctionDataArgs, i as EncodeFunctionResultArgs, l as EncodeRlpResponse, G as GetContractAddressOptions, k as GetCreate2AddressOptions, j as GetCreateAddressOptions, o as boolToBytes, p as boolToHex, q as bytesToBigint, r as bytesToBool, m as bytesToHex, s as bytesToNumber, n as bytesToString, t as decodeAbi, u as decodeBytes, v as decodeErrorResult, w as decodeFunctionData, x as decodeFunctionResult, y as decodeHex, z as decodeRlp, A as encodeAbi, B as encodeBytes, C as encodeDeployData, F as encodeErrorResult, H as encodeEventTopics, I as encodeFunctionData, J as encodeFunctionResult, K as encodeHex, L as encodeRlp, S as formatEther, a7 as formatGwei, a8 as formatUnit, M as getAddress, N as getContractAddress, P as getCreate2Address, O as getCreateAddress, Q as getEventSignature, R as getFunctionSignature, X as hexToBigInt, Y as hexToBool, Z as hexToBytes, a9 as hexToNumber, _ as hexToString, T as isAddress, U as isAddressEqual, V as isBytes, W as isHex, $ as keccak256, a0 as numberToBytes, aa as numberToHex, a1 as pad, a2 as padBytes, a3 as padHex, a4 as parseEther, a5 as parseGwei, a6 as parseUnit, ab as size, ac as slice, ad as sliceBytes, ae as sliceHex, af as stringToBytes, ag as stringToHex, ah as trim } from './parseGwei-7c87ff41.js';
|
8
|
+
import 'abitype';
|
9
9
|
import './chains.js';
|
10
10
|
import '@wagmi/chains';
|
11
|
-
import './eip1193-
|
11
|
+
import './eip1193-020a6f13.js';
|
12
|
+
import './rpc-26932bae.js';
|
13
|
+
|
14
|
+
type BaseErrorArgs = {
|
15
|
+
docsPath?: string;
|
16
|
+
} & ({
|
17
|
+
cause?: never;
|
18
|
+
details?: string;
|
19
|
+
} | {
|
20
|
+
cause: BaseError | Error;
|
21
|
+
details?: never;
|
22
|
+
});
|
23
|
+
declare class BaseError extends Error {
|
24
|
+
humanMessage: string;
|
25
|
+
details: string;
|
26
|
+
docsPath?: string;
|
27
|
+
name: string;
|
28
|
+
constructor(humanMessage: string, args?: BaseErrorArgs);
|
29
|
+
}
|
30
|
+
|
31
|
+
declare class AbiConstructorNotFoundError extends BaseError {
|
32
|
+
name: string;
|
33
|
+
constructor({ docsPath }: {
|
34
|
+
docsPath: string;
|
35
|
+
});
|
36
|
+
}
|
37
|
+
declare class AbiConstructorParamsNotFoundError extends BaseError {
|
38
|
+
name: string;
|
39
|
+
constructor({ docsPath }: {
|
40
|
+
docsPath: string;
|
41
|
+
});
|
42
|
+
}
|
43
|
+
declare class AbiDecodingDataSizeInvalidError extends BaseError {
|
44
|
+
name: string;
|
45
|
+
constructor(size: number);
|
46
|
+
}
|
47
|
+
declare class AbiEncodingArrayLengthMismatchError extends BaseError {
|
48
|
+
name: string;
|
49
|
+
constructor({ expectedLength, givenLength, type, }: {
|
50
|
+
expectedLength: number;
|
51
|
+
givenLength: number;
|
52
|
+
type: string;
|
53
|
+
});
|
54
|
+
}
|
55
|
+
declare class AbiEncodingLengthMismatchError extends BaseError {
|
56
|
+
name: string;
|
57
|
+
constructor({ expectedLength, givenLength, }: {
|
58
|
+
expectedLength: number;
|
59
|
+
givenLength: number;
|
60
|
+
});
|
61
|
+
}
|
62
|
+
declare class AbiErrorInputsNotFoundError extends BaseError {
|
63
|
+
name: string;
|
64
|
+
constructor(errorName: string, { docsPath }: {
|
65
|
+
docsPath: string;
|
66
|
+
});
|
67
|
+
}
|
68
|
+
declare class AbiErrorNotFoundError extends BaseError {
|
69
|
+
name: string;
|
70
|
+
constructor(errorName: string, { docsPath }: {
|
71
|
+
docsPath: string;
|
72
|
+
});
|
73
|
+
}
|
74
|
+
declare class AbiErrorSignatureNotFoundError extends BaseError {
|
75
|
+
name: string;
|
76
|
+
constructor(signature: Hex, { docsPath }: {
|
77
|
+
docsPath: string;
|
78
|
+
});
|
79
|
+
}
|
80
|
+
declare class AbiEventNotFoundError extends BaseError {
|
81
|
+
name: string;
|
82
|
+
constructor(eventName: string, { docsPath }: {
|
83
|
+
docsPath: string;
|
84
|
+
});
|
85
|
+
}
|
86
|
+
declare class AbiFunctionNotFoundError extends BaseError {
|
87
|
+
name: string;
|
88
|
+
constructor(functionName: string, { docsPath }: {
|
89
|
+
docsPath: string;
|
90
|
+
});
|
91
|
+
}
|
92
|
+
declare class AbiFunctionOutputsNotFoundError extends BaseError {
|
93
|
+
name: string;
|
94
|
+
constructor(functionName: string, { docsPath }: {
|
95
|
+
docsPath: string;
|
96
|
+
});
|
97
|
+
}
|
98
|
+
declare class AbiFunctionSignatureNotFoundError extends BaseError {
|
99
|
+
name: string;
|
100
|
+
constructor(signature: Hex, { docsPath }: {
|
101
|
+
docsPath: string;
|
102
|
+
});
|
103
|
+
}
|
104
|
+
declare class InvalidAbiEncodingTypeError extends BaseError {
|
105
|
+
name: string;
|
106
|
+
constructor(type: string, { docsPath }: {
|
107
|
+
docsPath: string;
|
108
|
+
});
|
109
|
+
}
|
110
|
+
declare class InvalidAbiDecodingTypeError extends BaseError {
|
111
|
+
name: string;
|
112
|
+
constructor(type: string, { docsPath }: {
|
113
|
+
docsPath: string;
|
114
|
+
});
|
115
|
+
}
|
116
|
+
declare class InvalidArrayError extends BaseError {
|
117
|
+
name: string;
|
118
|
+
constructor(value: unknown);
|
119
|
+
}
|
120
|
+
declare class InvalidDefinitionTypeError extends BaseError {
|
121
|
+
name: string;
|
122
|
+
constructor(type: string);
|
123
|
+
}
|
124
|
+
|
125
|
+
declare class InvalidAddressError extends BaseError {
|
126
|
+
name: string;
|
127
|
+
constructor({ address }: {
|
128
|
+
address: Address;
|
129
|
+
});
|
130
|
+
}
|
131
|
+
|
132
|
+
declare class BlockNotFoundError extends BaseError {
|
133
|
+
name: string;
|
134
|
+
constructor({ blockHash, blockNumber, }: {
|
135
|
+
blockHash?: Hash;
|
136
|
+
blockNumber?: bigint;
|
137
|
+
});
|
138
|
+
}
|
139
|
+
|
140
|
+
declare class SizeExceedsPaddingSizeError extends BaseError {
|
141
|
+
name: string;
|
142
|
+
constructor({ size, targetSize, type, }: {
|
143
|
+
size: number;
|
144
|
+
targetSize: number;
|
145
|
+
type: 'hex' | 'bytes';
|
146
|
+
});
|
147
|
+
}
|
148
|
+
|
149
|
+
declare class DataLengthTooLongError extends BaseError {
|
150
|
+
name: string;
|
151
|
+
constructor({ consumed, length }: {
|
152
|
+
consumed: number;
|
153
|
+
length: number;
|
154
|
+
});
|
155
|
+
}
|
156
|
+
declare class DataLengthTooShortError extends BaseError {
|
157
|
+
name: string;
|
158
|
+
constructor({ length, dataLength }: {
|
159
|
+
length: number;
|
160
|
+
dataLength: number;
|
161
|
+
});
|
162
|
+
}
|
163
|
+
declare class InvalidBytesBooleanError extends BaseError {
|
164
|
+
name: string;
|
165
|
+
constructor(bytes: ByteArray);
|
166
|
+
}
|
167
|
+
declare class InvalidHexBooleanError extends BaseError {
|
168
|
+
name: string;
|
169
|
+
constructor(hex: Hex);
|
170
|
+
}
|
171
|
+
declare class InvalidHexValueError extends BaseError {
|
172
|
+
name: string;
|
173
|
+
constructor(value: Hex);
|
174
|
+
}
|
175
|
+
declare class OffsetOutOfBoundsError extends BaseError {
|
176
|
+
name: string;
|
177
|
+
constructor({ nextOffset, offset }: {
|
178
|
+
nextOffset: number;
|
179
|
+
offset: number;
|
180
|
+
});
|
181
|
+
}
|
182
|
+
|
183
|
+
declare class FilterTypeNotSupportedError extends BaseError {
|
184
|
+
name: string;
|
185
|
+
constructor(type: string);
|
186
|
+
}
|
187
|
+
|
188
|
+
declare class HttpRequestError extends BaseError {
|
189
|
+
name: string;
|
190
|
+
status: number;
|
191
|
+
constructor({ body, details, status, url, }: {
|
192
|
+
body: {
|
193
|
+
[key: string]: unknown;
|
194
|
+
};
|
195
|
+
details: string;
|
196
|
+
status: number;
|
197
|
+
url: string;
|
198
|
+
});
|
199
|
+
}
|
200
|
+
declare class WebSocketRequestError extends BaseError {
|
201
|
+
name: string;
|
202
|
+
constructor({ body, details, url, }: {
|
203
|
+
body: {
|
204
|
+
[key: string]: unknown;
|
205
|
+
};
|
206
|
+
details: string;
|
207
|
+
url: string;
|
208
|
+
});
|
209
|
+
}
|
210
|
+
declare class RpcError extends BaseError {
|
211
|
+
code: number;
|
212
|
+
name: string;
|
213
|
+
constructor({ body, error, url, }: {
|
214
|
+
body: {
|
215
|
+
[key: string]: unknown;
|
216
|
+
};
|
217
|
+
error: {
|
218
|
+
code: number;
|
219
|
+
message: string;
|
220
|
+
};
|
221
|
+
url: string;
|
222
|
+
});
|
223
|
+
}
|
224
|
+
declare class TimeoutError extends BaseError {
|
225
|
+
name: string;
|
226
|
+
constructor({ body, url, }: {
|
227
|
+
body: {
|
228
|
+
[key: string]: unknown;
|
229
|
+
};
|
230
|
+
url: string;
|
231
|
+
});
|
232
|
+
}
|
233
|
+
|
234
|
+
declare class RequestError extends BaseError {
|
235
|
+
constructor(err: Error, { docsPath, humanMessage }: {
|
236
|
+
docsPath?: string;
|
237
|
+
humanMessage: string;
|
238
|
+
});
|
239
|
+
}
|
240
|
+
declare class RpcRequestError extends RequestError {
|
241
|
+
code: number;
|
242
|
+
constructor(err: RpcError, { docsPath, humanMessage }: {
|
243
|
+
docsPath?: string;
|
244
|
+
humanMessage: string;
|
245
|
+
});
|
246
|
+
}
|
247
|
+
declare class ParseRpcError extends RpcRequestError {
|
248
|
+
name: string;
|
249
|
+
code: number;
|
250
|
+
constructor(err: RpcError);
|
251
|
+
}
|
252
|
+
declare class InvalidRequestRpcError extends RpcRequestError {
|
253
|
+
name: string;
|
254
|
+
code: number;
|
255
|
+
constructor(err: RpcError);
|
256
|
+
}
|
257
|
+
declare class MethodNotFoundRpcError extends RpcRequestError {
|
258
|
+
name: string;
|
259
|
+
code: number;
|
260
|
+
constructor(err: RpcError);
|
261
|
+
}
|
262
|
+
declare class InvalidParamsRpcError extends RpcRequestError {
|
263
|
+
name: string;
|
264
|
+
code: number;
|
265
|
+
constructor(err: RpcError);
|
266
|
+
}
|
267
|
+
declare class InternalRpcError extends RpcRequestError {
|
268
|
+
name: string;
|
269
|
+
code: number;
|
270
|
+
constructor(err: RpcError);
|
271
|
+
}
|
272
|
+
declare class InvalidInputRpcError extends RpcRequestError {
|
273
|
+
name: string;
|
274
|
+
code: number;
|
275
|
+
constructor(err: RpcError);
|
276
|
+
}
|
277
|
+
declare class ResourceNotFoundRpcError extends RpcRequestError {
|
278
|
+
name: string;
|
279
|
+
code: number;
|
280
|
+
constructor(err: RpcError);
|
281
|
+
}
|
282
|
+
declare class ResourceUnavailableRpcError extends RpcRequestError {
|
283
|
+
name: string;
|
284
|
+
code: number;
|
285
|
+
constructor(err: RpcError);
|
286
|
+
}
|
287
|
+
declare class TransactionRejectedRpcError extends RpcRequestError {
|
288
|
+
name: string;
|
289
|
+
code: number;
|
290
|
+
constructor(err: RpcError);
|
291
|
+
}
|
292
|
+
declare class MethodNotSupportedRpcError extends RpcRequestError {
|
293
|
+
name: string;
|
294
|
+
code: number;
|
295
|
+
constructor(err: RpcError);
|
296
|
+
}
|
297
|
+
declare class LimitExceededRpcError extends RpcRequestError {
|
298
|
+
name: string;
|
299
|
+
code: number;
|
300
|
+
constructor(err: RpcError);
|
301
|
+
}
|
302
|
+
declare class JsonRpcVersionUnsupportedError extends RpcRequestError {
|
303
|
+
name: string;
|
304
|
+
code: number;
|
305
|
+
constructor(err: RpcError);
|
306
|
+
}
|
307
|
+
declare class UnknownRpcError extends RequestError {
|
308
|
+
name: string;
|
309
|
+
constructor(err: Error);
|
310
|
+
}
|
311
|
+
|
312
|
+
declare class InvalidGasArgumentsError extends BaseError {
|
313
|
+
name: string;
|
314
|
+
constructor();
|
315
|
+
}
|
316
|
+
declare class TransactionNotFoundError extends BaseError {
|
317
|
+
name: string;
|
318
|
+
constructor({ blockHash, blockNumber, blockTag, hash, index, }: {
|
319
|
+
blockHash?: Hash;
|
320
|
+
blockNumber?: bigint;
|
321
|
+
blockTag?: BlockTag;
|
322
|
+
hash?: Hash;
|
323
|
+
index?: number;
|
324
|
+
});
|
325
|
+
}
|
326
|
+
declare class TransactionReceiptNotFoundError extends BaseError {
|
327
|
+
name: string;
|
328
|
+
constructor({ hash }: {
|
329
|
+
hash: Hash;
|
330
|
+
});
|
331
|
+
}
|
332
|
+
declare class WaitForTransactionReceiptTimeoutError extends BaseError {
|
333
|
+
name: string;
|
334
|
+
constructor({ hash }: {
|
335
|
+
hash: Hash;
|
336
|
+
});
|
337
|
+
}
|
338
|
+
|
339
|
+
declare class UrlRequiredError extends BaseError {
|
340
|
+
constructor();
|
341
|
+
}
|
342
|
+
|
343
|
+
export { AbiConstructorNotFoundError, AbiConstructorParamsNotFoundError, AbiDecodingDataSizeInvalidError, AbiEncodingArrayLengthMismatchError, AbiEncodingLengthMismatchError, AbiErrorInputsNotFoundError, AbiErrorNotFoundError, AbiErrorSignatureNotFoundError, AbiEventNotFoundError, AbiFunctionNotFoundError, AbiFunctionOutputsNotFoundError, AbiFunctionSignatureNotFoundError, BaseError, BlockNotFoundError, DataLengthTooLongError, DataLengthTooShortError, FilterTypeNotSupportedError, HttpRequestError, InternalRpcError, InvalidAbiDecodingTypeError, InvalidAbiEncodingTypeError, InvalidAddressError, InvalidArrayError, InvalidBytesBooleanError, InvalidDefinitionTypeError, InvalidGasArgumentsError, InvalidHexBooleanError, InvalidHexValueError, InvalidInputRpcError, InvalidParamsRpcError, InvalidRequestRpcError, JsonRpcVersionUnsupportedError, LimitExceededRpcError, MethodNotFoundRpcError, MethodNotSupportedRpcError, OffsetOutOfBoundsError, ParseRpcError, RequestError, ResourceNotFoundRpcError, ResourceUnavailableRpcError, RpcError, RpcRequestError, SizeExceedsPaddingSizeError, TimeoutError, TransactionNotFoundError, TransactionReceiptNotFoundError, TransactionRejectedRpcError, UnknownRpcError, UrlRequiredError, WaitForTransactionReceiptTimeoutError, WebSocketRequestError };
|
package/dist/index.js
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
addChain,
|
3
3
|
call,
|
4
|
+
callContract,
|
4
5
|
createBlockFilter,
|
5
6
|
createPendingTransactionFilter,
|
6
7
|
dropTransaction,
|
7
8
|
estimateGas,
|
9
|
+
getAccounts,
|
8
10
|
getAutomine,
|
9
11
|
getBalance,
|
10
12
|
getBlock,
|
@@ -12,6 +14,8 @@ import {
|
|
12
14
|
getBlockTransactionCount,
|
13
15
|
getChainId,
|
14
16
|
getFeeHistory,
|
17
|
+
getFilterChanges,
|
18
|
+
getFilterLogs,
|
15
19
|
getGasPrice,
|
16
20
|
getPermissions,
|
17
21
|
getTransaction,
|
@@ -54,22 +58,47 @@ import {
|
|
54
58
|
watchBlockNumber,
|
55
59
|
watchBlocks,
|
56
60
|
watchPendingTransactions
|
57
|
-
} from "./chunk-
|
61
|
+
} from "./chunk-NMN4TFDP.js";
|
58
62
|
import {
|
59
|
-
UrlRequiredError,
|
60
63
|
createClient,
|
61
64
|
createPublicClient,
|
62
65
|
createTestClient,
|
63
66
|
createTransport,
|
64
67
|
createWalletClient,
|
65
|
-
|
68
|
+
custom,
|
69
|
+
fallback,
|
66
70
|
http,
|
67
71
|
webSocket
|
68
|
-
} from "./chunk-
|
72
|
+
} from "./chunk-3TSTZHVO.js";
|
69
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,
|
70
86
|
BaseError,
|
87
|
+
BlockNotFoundError,
|
88
|
+
DataLengthTooLongError,
|
89
|
+
DataLengthTooShortError,
|
90
|
+
FilterTypeNotSupportedError,
|
71
91
|
HttpRequestError,
|
72
92
|
InternalRpcError,
|
93
|
+
InvalidAbiDecodingTypeError,
|
94
|
+
InvalidAbiEncodingTypeError,
|
95
|
+
InvalidAddressError,
|
96
|
+
InvalidArrayError,
|
97
|
+
InvalidBytesBooleanError,
|
98
|
+
InvalidDefinitionTypeError,
|
99
|
+
InvalidGasArgumentsError,
|
100
|
+
InvalidHexBooleanError,
|
101
|
+
InvalidHexValueError,
|
73
102
|
InvalidInputRpcError,
|
74
103
|
InvalidParamsRpcError,
|
75
104
|
InvalidRequestRpcError,
|
@@ -77,13 +106,22 @@ import {
|
|
77
106
|
LimitExceededRpcError,
|
78
107
|
MethodNotFoundRpcError,
|
79
108
|
MethodNotSupportedRpcError,
|
109
|
+
OffsetOutOfBoundsError,
|
80
110
|
ParseRpcError,
|
111
|
+
RequestError,
|
81
112
|
ResourceNotFoundRpcError,
|
82
113
|
ResourceUnavailableRpcError,
|
83
114
|
RpcError,
|
84
115
|
RpcRequestError,
|
116
|
+
SizeExceedsPaddingSizeError,
|
85
117
|
TimeoutError,
|
118
|
+
TransactionNotFoundError,
|
119
|
+
TransactionReceiptNotFoundError,
|
86
120
|
TransactionRejectedRpcError,
|
121
|
+
UnknownRpcError,
|
122
|
+
UrlRequiredError,
|
123
|
+
WaitForTransactionReceiptTimeoutError,
|
124
|
+
WebSocketRequestError,
|
87
125
|
boolToBytes,
|
88
126
|
boolToHex,
|
89
127
|
bytesToBigint,
|
@@ -91,10 +129,20 @@ import {
|
|
91
129
|
bytesToHex,
|
92
130
|
bytesToNumber,
|
93
131
|
bytesToString,
|
132
|
+
decodeAbi,
|
94
133
|
decodeBytes,
|
134
|
+
decodeErrorResult,
|
135
|
+
decodeFunctionData,
|
136
|
+
decodeFunctionResult,
|
95
137
|
decodeHex,
|
96
138
|
decodeRlp,
|
139
|
+
encodeAbi,
|
97
140
|
encodeBytes,
|
141
|
+
encodeDeployData,
|
142
|
+
encodeErrorResult,
|
143
|
+
encodeEventTopics,
|
144
|
+
encodeFunctionData,
|
145
|
+
encodeFunctionResult,
|
98
146
|
encodeHex,
|
99
147
|
encodeRlp,
|
100
148
|
etherUnits,
|
@@ -138,11 +186,36 @@ import {
|
|
138
186
|
transactionType,
|
139
187
|
trim,
|
140
188
|
weiUnits
|
141
|
-
} from "./chunk-
|
189
|
+
} from "./chunk-6GAKRM5P.js";
|
142
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,
|
143
203
|
BaseError,
|
204
|
+
BlockNotFoundError,
|
205
|
+
DataLengthTooLongError,
|
206
|
+
DataLengthTooShortError,
|
207
|
+
FilterTypeNotSupportedError,
|
144
208
|
HttpRequestError,
|
145
209
|
InternalRpcError,
|
210
|
+
InvalidAbiDecodingTypeError,
|
211
|
+
InvalidAbiEncodingTypeError,
|
212
|
+
InvalidAddressError,
|
213
|
+
InvalidArrayError,
|
214
|
+
InvalidBytesBooleanError,
|
215
|
+
InvalidDefinitionTypeError,
|
216
|
+
InvalidGasArgumentsError,
|
217
|
+
InvalidHexBooleanError,
|
218
|
+
InvalidHexValueError,
|
146
219
|
InvalidInputRpcError,
|
147
220
|
InvalidParamsRpcError,
|
148
221
|
InvalidRequestRpcError,
|
@@ -150,14 +223,22 @@ export {
|
|
150
223
|
LimitExceededRpcError,
|
151
224
|
MethodNotFoundRpcError,
|
152
225
|
MethodNotSupportedRpcError,
|
226
|
+
OffsetOutOfBoundsError,
|
153
227
|
ParseRpcError,
|
228
|
+
RequestError,
|
154
229
|
ResourceNotFoundRpcError,
|
155
230
|
ResourceUnavailableRpcError,
|
156
231
|
RpcError,
|
157
232
|
RpcRequestError,
|
233
|
+
SizeExceedsPaddingSizeError,
|
158
234
|
TimeoutError,
|
235
|
+
TransactionNotFoundError,
|
236
|
+
TransactionReceiptNotFoundError,
|
159
237
|
TransactionRejectedRpcError,
|
238
|
+
UnknownRpcError,
|
160
239
|
UrlRequiredError,
|
240
|
+
WaitForTransactionReceiptTimeoutError,
|
241
|
+
WebSocketRequestError,
|
161
242
|
addChain,
|
162
243
|
boolToBytes,
|
163
244
|
boolToHex,
|
@@ -167,6 +248,7 @@ export {
|
|
167
248
|
bytesToNumber,
|
168
249
|
bytesToString,
|
169
250
|
call,
|
251
|
+
callContract,
|
170
252
|
createBlockFilter,
|
171
253
|
createClient,
|
172
254
|
createPendingTransactionFilter,
|
@@ -174,22 +256,34 @@ export {
|
|
174
256
|
createTestClient,
|
175
257
|
createTransport,
|
176
258
|
createWalletClient,
|
259
|
+
custom,
|
260
|
+
decodeAbi,
|
177
261
|
decodeBytes,
|
262
|
+
decodeErrorResult,
|
263
|
+
decodeFunctionData,
|
264
|
+
decodeFunctionResult,
|
178
265
|
decodeHex,
|
179
266
|
decodeRlp,
|
180
267
|
dropTransaction,
|
268
|
+
encodeAbi,
|
181
269
|
encodeBytes,
|
270
|
+
encodeDeployData,
|
271
|
+
encodeErrorResult,
|
272
|
+
encodeEventTopics,
|
273
|
+
encodeFunctionData,
|
274
|
+
encodeFunctionResult,
|
182
275
|
encodeHex,
|
183
276
|
encodeRlp,
|
184
277
|
estimateGas,
|
185
278
|
etherUnits,
|
186
|
-
|
279
|
+
fallback,
|
187
280
|
formatBlock,
|
188
281
|
formatEther,
|
189
282
|
formatGwei,
|
190
283
|
formatTransaction,
|
191
284
|
formatTransactionRequest,
|
192
285
|
formatUnit,
|
286
|
+
getAccounts,
|
193
287
|
getAddress,
|
194
288
|
getAutomine,
|
195
289
|
getBalance,
|
@@ -202,6 +296,8 @@ export {
|
|
202
296
|
getCreateAddress,
|
203
297
|
getEventSignature,
|
204
298
|
getFeeHistory,
|
299
|
+
getFilterChanges,
|
300
|
+
getFilterLogs,
|
205
301
|
getFunctionSignature,
|
206
302
|
getGasPrice,
|
207
303
|
getPermissions,
|