viem 0.0.1-alpha.1 → 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/dist/actions/index.d.ts +6 -6
- package/dist/actions/index.js +4 -2
- package/dist/chains.d.ts +3 -3
- package/dist/chains.js +1 -1
- package/dist/{chunk-OQTFTQTO.js → chunk-3TSTZHVO.js} +44 -63
- package/dist/{chunk-Z6LRV6XI.js → chunk-6GAKRM5P.js} +1062 -427
- package/dist/{chunk-LLYFXUSV.js → chunk-NMN4TFDP.js} +184 -198
- package/dist/clients/index.d.ts +5 -6
- package/dist/clients/index.js +2 -4
- package/dist/{createWalletClient-915223f3.d.ts → createWalletClient-d612fe08.d.ts} +1 -1
- package/dist/{eip1193-8f7c22ce.d.ts → eip1193-020a6f13.d.ts} +2 -2
- package/dist/index.d.ts +341 -10
- package/dist/index.js +88 -4
- package/dist/{parseGwei-bbc055e4.d.ts → parseGwei-7c87ff41.d.ts} +70 -118
- 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 -7
- package/dist/utils/index.js +29 -35
- package/dist/{watchAsset-04ab8db5.d.ts → watchAsset-bc6373f4.d.ts} +17 -16
- package/dist/{webSocket-c6e0d26f.d.ts → webSocket-7f88e9e0.d.ts} +4 -9
- package/dist/window.d.ts +2 -2
- package/package.json +5 -2
- package/dist/BaseError-7688f84e.d.ts +0 -18
- package/dist/transactionRequest-ade896ac.d.ts +0 -44
package/dist/index.d.ts
CHANGED
@@ -1,12 +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 { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig,
|
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-
|
12
|
-
import '
|
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,6 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
addChain,
|
3
3
|
call,
|
4
|
+
callContract,
|
4
5
|
createBlockFilter,
|
5
6
|
createPendingTransactionFilter,
|
6
7
|
dropTransaction,
|
@@ -57,9 +58,8 @@ import {
|
|
57
58
|
watchBlockNumber,
|
58
59
|
watchBlocks,
|
59
60
|
watchPendingTransactions
|
60
|
-
} from "./chunk-
|
61
|
+
} from "./chunk-NMN4TFDP.js";
|
61
62
|
import {
|
62
|
-
UrlRequiredError,
|
63
63
|
createClient,
|
64
64
|
createPublicClient,
|
65
65
|
createTestClient,
|
@@ -69,11 +69,36 @@ import {
|
|
69
69
|
fallback,
|
70
70
|
http,
|
71
71
|
webSocket
|
72
|
-
} from "./chunk-
|
72
|
+
} from "./chunk-3TSTZHVO.js";
|
73
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,
|
74
86
|
BaseError,
|
87
|
+
BlockNotFoundError,
|
88
|
+
DataLengthTooLongError,
|
89
|
+
DataLengthTooShortError,
|
90
|
+
FilterTypeNotSupportedError,
|
75
91
|
HttpRequestError,
|
76
92
|
InternalRpcError,
|
93
|
+
InvalidAbiDecodingTypeError,
|
94
|
+
InvalidAbiEncodingTypeError,
|
95
|
+
InvalidAddressError,
|
96
|
+
InvalidArrayError,
|
97
|
+
InvalidBytesBooleanError,
|
98
|
+
InvalidDefinitionTypeError,
|
99
|
+
InvalidGasArgumentsError,
|
100
|
+
InvalidHexBooleanError,
|
101
|
+
InvalidHexValueError,
|
77
102
|
InvalidInputRpcError,
|
78
103
|
InvalidParamsRpcError,
|
79
104
|
InvalidRequestRpcError,
|
@@ -81,13 +106,22 @@ import {
|
|
81
106
|
LimitExceededRpcError,
|
82
107
|
MethodNotFoundRpcError,
|
83
108
|
MethodNotSupportedRpcError,
|
109
|
+
OffsetOutOfBoundsError,
|
84
110
|
ParseRpcError,
|
111
|
+
RequestError,
|
85
112
|
ResourceNotFoundRpcError,
|
86
113
|
ResourceUnavailableRpcError,
|
87
114
|
RpcError,
|
88
115
|
RpcRequestError,
|
116
|
+
SizeExceedsPaddingSizeError,
|
89
117
|
TimeoutError,
|
118
|
+
TransactionNotFoundError,
|
119
|
+
TransactionReceiptNotFoundError,
|
90
120
|
TransactionRejectedRpcError,
|
121
|
+
UnknownRpcError,
|
122
|
+
UrlRequiredError,
|
123
|
+
WaitForTransactionReceiptTimeoutError,
|
124
|
+
WebSocketRequestError,
|
91
125
|
boolToBytes,
|
92
126
|
boolToHex,
|
93
127
|
bytesToBigint,
|
@@ -97,10 +131,18 @@ import {
|
|
97
131
|
bytesToString,
|
98
132
|
decodeAbi,
|
99
133
|
decodeBytes,
|
134
|
+
decodeErrorResult,
|
135
|
+
decodeFunctionData,
|
136
|
+
decodeFunctionResult,
|
100
137
|
decodeHex,
|
101
138
|
decodeRlp,
|
102
139
|
encodeAbi,
|
103
140
|
encodeBytes,
|
141
|
+
encodeDeployData,
|
142
|
+
encodeErrorResult,
|
143
|
+
encodeEventTopics,
|
144
|
+
encodeFunctionData,
|
145
|
+
encodeFunctionResult,
|
104
146
|
encodeHex,
|
105
147
|
encodeRlp,
|
106
148
|
etherUnits,
|
@@ -144,11 +186,36 @@ import {
|
|
144
186
|
transactionType,
|
145
187
|
trim,
|
146
188
|
weiUnits
|
147
|
-
} from "./chunk-
|
189
|
+
} from "./chunk-6GAKRM5P.js";
|
148
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,
|
149
203
|
BaseError,
|
204
|
+
BlockNotFoundError,
|
205
|
+
DataLengthTooLongError,
|
206
|
+
DataLengthTooShortError,
|
207
|
+
FilterTypeNotSupportedError,
|
150
208
|
HttpRequestError,
|
151
209
|
InternalRpcError,
|
210
|
+
InvalidAbiDecodingTypeError,
|
211
|
+
InvalidAbiEncodingTypeError,
|
212
|
+
InvalidAddressError,
|
213
|
+
InvalidArrayError,
|
214
|
+
InvalidBytesBooleanError,
|
215
|
+
InvalidDefinitionTypeError,
|
216
|
+
InvalidGasArgumentsError,
|
217
|
+
InvalidHexBooleanError,
|
218
|
+
InvalidHexValueError,
|
152
219
|
InvalidInputRpcError,
|
153
220
|
InvalidParamsRpcError,
|
154
221
|
InvalidRequestRpcError,
|
@@ -156,14 +223,22 @@ export {
|
|
156
223
|
LimitExceededRpcError,
|
157
224
|
MethodNotFoundRpcError,
|
158
225
|
MethodNotSupportedRpcError,
|
226
|
+
OffsetOutOfBoundsError,
|
159
227
|
ParseRpcError,
|
228
|
+
RequestError,
|
160
229
|
ResourceNotFoundRpcError,
|
161
230
|
ResourceUnavailableRpcError,
|
162
231
|
RpcError,
|
163
232
|
RpcRequestError,
|
233
|
+
SizeExceedsPaddingSizeError,
|
164
234
|
TimeoutError,
|
235
|
+
TransactionNotFoundError,
|
236
|
+
TransactionReceiptNotFoundError,
|
165
237
|
TransactionRejectedRpcError,
|
238
|
+
UnknownRpcError,
|
166
239
|
UrlRequiredError,
|
240
|
+
WaitForTransactionReceiptTimeoutError,
|
241
|
+
WebSocketRequestError,
|
167
242
|
addChain,
|
168
243
|
boolToBytes,
|
169
244
|
boolToHex,
|
@@ -173,6 +248,7 @@ export {
|
|
173
248
|
bytesToNumber,
|
174
249
|
bytesToString,
|
175
250
|
call,
|
251
|
+
callContract,
|
176
252
|
createBlockFilter,
|
177
253
|
createClient,
|
178
254
|
createPendingTransactionFilter,
|
@@ -183,11 +259,19 @@ export {
|
|
183
259
|
custom,
|
184
260
|
decodeAbi,
|
185
261
|
decodeBytes,
|
262
|
+
decodeErrorResult,
|
263
|
+
decodeFunctionData,
|
264
|
+
decodeFunctionResult,
|
186
265
|
decodeHex,
|
187
266
|
decodeRlp,
|
188
267
|
dropTransaction,
|
189
268
|
encodeAbi,
|
190
269
|
encodeBytes,
|
270
|
+
encodeDeployData,
|
271
|
+
encodeErrorResult,
|
272
|
+
encodeEventTopics,
|
273
|
+
encodeFunctionData,
|
274
|
+
encodeFunctionResult,
|
191
275
|
encodeHex,
|
192
276
|
encodeRlp,
|
193
277
|
estimateGas,
|