@dappworks/kit 0.4.122 → 0.4.123

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 (42) hide show
  1. package/dist/{PromiseState-b0cc408e.d.ts → PromiseState-yojg0WLR.d.ts} +3 -3
  2. package/dist/aiem.d.mts +630 -1
  3. package/dist/aiem.mjs +8 -21
  4. package/dist/aiem.mjs.map +1 -1
  5. package/dist/{chunk-WYGQ3Y4R.mjs → chunk-AIZ7XDNV.mjs} +14 -14
  6. package/dist/chunk-AIZ7XDNV.mjs.map +1 -0
  7. package/dist/{chunk-WT2ARRCR.mjs → chunk-HRYH37UI.mjs} +2 -2
  8. package/dist/{chunk-PPYYRQDD.mjs → chunk-QWHU3HBK.mjs} +2 -2
  9. package/dist/{chunk-6F7H4PAA.mjs → chunk-R4SQKVDQ.mjs} +1 -1
  10. package/dist/{chunk-7FF4BCFW.mjs → chunk-SVPD6PC6.mjs} +4 -4
  11. package/dist/{chunk-DZMNL4BZ.mjs → chunk-WS43BV7Y.mjs} +2 -2
  12. package/dist/{chunk-HRWHDF2F.mjs → chunk-XJMRAPHI.mjs} +7 -7
  13. package/dist/{chunk-HRWHDF2F.mjs.map → chunk-XJMRAPHI.mjs.map} +1 -1
  14. package/dist/dev.d.mts +1 -1
  15. package/dist/dev.mjs +2 -2
  16. package/dist/experimental.d.mts +2 -2
  17. package/dist/experimental.mjs +3 -3
  18. package/dist/form.d.mts +4 -4
  19. package/dist/form.mjs +5 -20
  20. package/dist/form.mjs.map +1 -1
  21. package/dist/index.d.mts +4 -4
  22. package/dist/index.mjs +5 -5
  23. package/dist/inspector.d.mts +1 -1
  24. package/dist/inspector.mjs +1 -1
  25. package/dist/jsontable.d.mts +2 -2
  26. package/dist/jsontable.mjs +4 -4
  27. package/dist/metrics.d.mts +1 -1
  28. package/dist/metrics.mjs +4 -4
  29. package/dist/plugins.d.mts +2 -2
  30. package/dist/plugins.mjs +4 -4
  31. package/dist/{root-766ae985.d.ts → root-C3lZnoCI.d.ts} +1 -1
  32. package/dist/ui.mjs +3 -3
  33. package/dist/utils.d.mts +8 -3
  34. package/dist/utils.mjs +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunk-WYGQ3Y4R.mjs.map +0 -1
  37. /package/dist/{PaginationState-c19e621a.d.ts → PaginationState-Bmrrw0ky.d.ts} +0 -0
  38. /package/dist/{chunk-WT2ARRCR.mjs.map → chunk-HRYH37UI.mjs.map} +0 -0
  39. /package/dist/{chunk-PPYYRQDD.mjs.map → chunk-QWHU3HBK.mjs.map} +0 -0
  40. /package/dist/{chunk-6F7H4PAA.mjs.map → chunk-R4SQKVDQ.mjs.map} +0 -0
  41. /package/dist/{chunk-7FF4BCFW.mjs.map → chunk-SVPD6PC6.mjs.map} +0 -0
  42. /package/dist/{chunk-DZMNL4BZ.mjs.map → chunk-WS43BV7Y.mjs.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from 'events';
2
- import { c as BooleanState, B as BaseState } from './root-766ae985.js';
2
+ import { c as BooleanState, B as BaseState } from './root-C3lZnoCI.js';
3
3
 
4
4
  interface Events {
5
5
  data: (data: any) => void;
@@ -22,10 +22,10 @@ declare class PromiseState<T extends (...args: any[]) => Promise<any>, U = Retur
22
22
  successMsg: string;
23
23
  errMsg: string;
24
24
  loadingLock: boolean;
25
- event: EventEmitter;
25
+ event: EventEmitter<[never]>;
26
26
  on<E extends keyof Events>(event: E, listener: Events[E]): this;
27
27
  once<E extends keyof Events>(event: E, listener: Events[E]): this;
28
- use<E extends keyof Events>(event: E, listener: Events[E]): () => EventEmitter;
28
+ use<E extends keyof Events>(event: E, listener: Events[E]): () => EventEmitter<[never]>;
29
29
  emit<E extends keyof Events>(event: E, ...args: Parameters<Events[E]>): void;
30
30
  init: () => Promise<void>;
31
31
  currentIndex: BaseState;
package/dist/aiem.d.mts CHANGED
@@ -1,3 +1,6 @@
1
+ import * as viem_chains from 'viem/chains';
2
+ import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
3
+ import * as viem from 'viem';
1
4
  import { Abi, Chain, GetContractReturnType, PublicClient, HttpTransport, WalletClient } from 'viem';
2
5
  import TTLCache from '@isaacs/ttlcache';
3
6
 
@@ -68,6 +71,632 @@ declare class AIem<Contracts extends Record<string, Abi>, Chains extends Record<
68
71
  };
69
72
  }>(args: Pick<AIem<Contracts, Chains, Addrs>, "contractMap" | "chainMap" | "nameMap" | "getWallet" | "cache" | "funcMap">): AIem<Contracts, Chains, Addrs>;
70
73
  constructor(args?: Pick<AIem<Contracts, Chains, Addrs>, "contractMap" | "chainMap" | "nameMap" | "getWallet" | "cache" | "funcMap">);
74
+ static PubClient(chainId: string): {
75
+ account: any;
76
+ batch?: viem.ClientConfig["batch"] | undefined;
77
+ cacheTime: number;
78
+ ccipRead?: viem.ClientConfig["ccipRead"] | undefined;
79
+ chain: Chain;
80
+ key: string;
81
+ name: string;
82
+ pollingInterval: number;
83
+ request: viem.EIP1193RequestFn<viem.PublicRpcSchema | [{
84
+ Method: "web3_clientVersion";
85
+ Parameters?: undefined;
86
+ ReturnType: string;
87
+ }, {
88
+ Method: "web3_sha3";
89
+ Parameters: [data: viem.Hash];
90
+ ReturnType: string;
91
+ }, {
92
+ Method: "net_listening";
93
+ Parameters?: undefined;
94
+ ReturnType: boolean;
95
+ }, {
96
+ Method: "net_peerCount";
97
+ Parameters?: undefined;
98
+ ReturnType: viem.Quantity;
99
+ }, {
100
+ Method: "net_version";
101
+ Parameters?: undefined;
102
+ ReturnType: viem.Quantity;
103
+ }, {
104
+ Method: "eth_blobBaseFee";
105
+ Parameters?: undefined;
106
+ ReturnType: viem.Quantity;
107
+ }, {
108
+ Method: "eth_blockNumber";
109
+ Parameters?: undefined;
110
+ ReturnType: viem.Quantity;
111
+ }, {
112
+ Method: "eth_call";
113
+ Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
114
+ ReturnType: viem.Hex;
115
+ }, {
116
+ Method: "eth_chainId";
117
+ Parameters?: undefined;
118
+ ReturnType: viem.Quantity;
119
+ }, {
120
+ Method: "eth_coinbase";
121
+ Parameters?: undefined;
122
+ ReturnType: viem.Address;
123
+ }, {
124
+ Method: "eth_estimateGas";
125
+ Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
126
+ ReturnType: viem.Quantity;
127
+ }, {
128
+ Method: "eth_feeHistory";
129
+ Parameters: [blockCount: viem.Quantity, newestBlock: viem.RpcBlockNumber | viem.BlockTag, rewardPercentiles: number[] | undefined];
130
+ ReturnType: viem.RpcFeeHistory;
131
+ }, {
132
+ Method: "eth_gasPrice";
133
+ Parameters?: undefined;
134
+ ReturnType: viem.Quantity;
135
+ }, {
136
+ Method: "eth_getBalance";
137
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
138
+ ReturnType: viem.Quantity;
139
+ }, {
140
+ Method: "eth_getBlockByHash";
141
+ Parameters: [hash: viem.Hash, includeTransactionObjects: boolean];
142
+ ReturnType: viem.RpcBlock | null;
143
+ }, {
144
+ Method: "eth_getBlockByNumber";
145
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, includeTransactionObjects: boolean];
146
+ ReturnType: viem.RpcBlock | null;
147
+ }, {
148
+ Method: "eth_getBlockTransactionCountByHash";
149
+ Parameters: [hash: viem.Hash];
150
+ ReturnType: viem.Quantity;
151
+ }, {
152
+ Method: "eth_getBlockTransactionCountByNumber";
153
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
154
+ ReturnType: viem.Quantity;
155
+ }, {
156
+ Method: "eth_getCode";
157
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
158
+ ReturnType: viem.Hex;
159
+ }, {
160
+ Method: "eth_getFilterChanges";
161
+ Parameters: [filterId: viem.Quantity];
162
+ ReturnType: viem.RpcLog[] | viem.Hex[];
163
+ }, {
164
+ Method: "eth_getFilterLogs";
165
+ Parameters: [filterId: viem.Quantity];
166
+ ReturnType: viem.RpcLog[];
167
+ }, {
168
+ Method: "eth_getLogs";
169
+ Parameters: [{
170
+ address?: viem.Address | viem.Address[] | undefined;
171
+ topics?: viem.LogTopic[] | undefined;
172
+ } & ({
173
+ fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
174
+ toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
175
+ blockHash?: undefined;
176
+ } | {
177
+ fromBlock?: undefined;
178
+ toBlock?: undefined;
179
+ blockHash?: viem.Hash | undefined;
180
+ })];
181
+ ReturnType: viem.RpcLog[];
182
+ }, {
183
+ Method: "eth_getProof";
184
+ Parameters: [address: viem.Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
185
+ ReturnType: viem.RpcProof;
186
+ }, {
187
+ Method: "eth_getStorageAt";
188
+ Parameters: [address: viem.Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
189
+ ReturnType: viem.Hex;
190
+ }, {
191
+ Method: "eth_getTransactionByBlockHashAndIndex";
192
+ Parameters: [hash: viem.Hash, index: viem.Quantity];
193
+ ReturnType: viem.RpcTransaction | null;
194
+ }, {
195
+ Method: "eth_getTransactionByBlockNumberAndIndex";
196
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
197
+ ReturnType: viem.RpcTransaction | null;
198
+ }, {
199
+ Method: "eth_getTransactionByHash";
200
+ Parameters: [hash: viem.Hash];
201
+ ReturnType: viem.RpcTransaction | null;
202
+ }, {
203
+ Method: "eth_getTransactionCount";
204
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
205
+ ReturnType: viem.Quantity;
206
+ }, {
207
+ Method: "eth_getTransactionReceipt";
208
+ Parameters: [hash: viem.Hash];
209
+ ReturnType: viem.RpcTransactionReceipt | null;
210
+ }, {
211
+ Method: "eth_getUncleByBlockHashAndIndex";
212
+ Parameters: [hash: viem.Hash, index: viem.Quantity];
213
+ ReturnType: viem.RpcUncle | null;
214
+ }, {
215
+ Method: "eth_getUncleByBlockNumberAndIndex";
216
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
217
+ ReturnType: viem.RpcUncle | null;
218
+ }, {
219
+ Method: "eth_getUncleCountByBlockHash";
220
+ Parameters: [hash: viem.Hash];
221
+ ReturnType: viem.Quantity;
222
+ }, {
223
+ Method: "eth_getUncleCountByBlockNumber";
224
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
225
+ ReturnType: viem.Quantity;
226
+ }, {
227
+ Method: "eth_maxPriorityFeePerGas";
228
+ Parameters?: undefined;
229
+ ReturnType: viem.Quantity;
230
+ }, {
231
+ Method: "eth_newBlockFilter";
232
+ Parameters?: undefined;
233
+ ReturnType: viem.Quantity;
234
+ }, {
235
+ Method: "eth_newFilter";
236
+ Parameters: [filter: {
237
+ fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
238
+ toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
239
+ address?: viem.Address | viem.Address[] | undefined;
240
+ topics?: viem.LogTopic[] | undefined;
241
+ }];
242
+ ReturnType: viem.Quantity;
243
+ }, {
244
+ Method: "eth_newPendingTransactionFilter";
245
+ Parameters?: undefined;
246
+ ReturnType: viem.Quantity;
247
+ }, {
248
+ Method: "eth_protocolVersion";
249
+ Parameters?: undefined;
250
+ ReturnType: string;
251
+ }, {
252
+ Method: "eth_sendRawTransaction";
253
+ Parameters: [signedTransaction: viem.Hex];
254
+ ReturnType: viem.Hash;
255
+ }, {
256
+ Method: "eth_uninstallFilter";
257
+ Parameters: [filterId: viem.Quantity];
258
+ ReturnType: boolean;
259
+ }, ...any[]]>;
260
+ transport: viem.TransportConfig<"http", viem.EIP1193RequestFn> & {
261
+ fetchOptions?: viem.HttpTransportConfig["fetchOptions"] | undefined;
262
+ url?: string | undefined;
263
+ };
264
+ type: string;
265
+ uid: string;
266
+ call: (parameters: viem.CallParameters<Chain>) => Promise<viem.CallReturnType>;
267
+ createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>;
268
+ createContractEventFilter: <const TAbi extends Abi | readonly unknown[], TEventName extends viem.ContractEventName<TAbi> | undefined, TArgs extends viem.MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, TToBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.CreateContractEventFilterParameters<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>) => Promise<viem.CreateContractEventFilterReturnType<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>>;
269
+ createEventFilter: <const TAbiEvent extends viem.AbiEvent | undefined = undefined, const TAbiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = TAbiEvent extends viem.AbiEvent ? [TAbiEvent] : undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, TToBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, _EventName extends string | undefined = viem.MaybeAbiEventName<TAbiEvent>, _Args extends viem.MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName> | undefined = undefined>(args?: viem.CreateEventFilterParameters<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args> | undefined) => Promise<viem.CreateEventFilterReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args>>;
270
+ createPendingTransactionFilter: () => Promise<viem.CreatePendingTransactionFilterReturnType>;
271
+ estimateContractGas: <TChain extends Chain | undefined, const abi extends Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: viem.EstimateContractGasParameters<abi, functionName, args, TChain>) => Promise<viem.EstimateContractGasReturnType>;
272
+ estimateGas: (args: viem.EstimateGasParameters<Chain>) => Promise<viem.EstimateGasReturnType>;
273
+ getBalance: (args: viem.GetBalanceParameters) => Promise<viem.GetBalanceReturnType>;
274
+ getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
275
+ getBlock: <TIncludeTransactions extends boolean = false, TBlockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<TIncludeTransactions, TBlockTag>) => Promise<viem.GetBlockReturnType<Chain, TIncludeTransactions, TBlockTag>>;
276
+ getBlockNumber: (args?: viem.GetBlockNumberParameters | undefined) => Promise<viem.GetBlockNumberReturnType>;
277
+ getBlockTransactionCount: (args?: viem.GetBlockTransactionCountParameters | undefined) => Promise<viem.GetBlockTransactionCountReturnType>;
278
+ getBytecode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
279
+ getChainId: () => Promise<viem.GetChainIdReturnType>;
280
+ getCode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
281
+ getContractEvents: <const abi extends Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined = undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
282
+ getEip712Domain: (args: viem.GetEip712DomainParameters) => Promise<viem.GetEip712DomainReturnType>;
283
+ getEnsAddress: (args: viem.GetEnsAddressParameters) => Promise<viem.GetEnsAddressReturnType>;
284
+ getEnsAvatar: (args: viem.GetEnsAvatarParameters) => Promise<viem.GetEnsAvatarReturnType>;
285
+ getEnsName: (args: viem.GetEnsNameParameters) => Promise<viem.GetEnsNameReturnType>;
286
+ getEnsResolver: (args: viem.GetEnsResolverParameters) => Promise<viem.GetEnsResolverReturnType>;
287
+ getEnsText: (args: viem.GetEnsTextParameters) => Promise<viem.GetEnsTextReturnType>;
288
+ getFeeHistory: (args: viem.GetFeeHistoryParameters) => Promise<viem.GetFeeHistoryReturnType>;
289
+ estimateFeesPerGas: <TChainOverride extends Chain | undefined = undefined, TType extends viem.FeeValuesType = "eip1559">(args?: viem.EstimateFeesPerGasParameters<Chain, TChainOverride, TType>) => Promise<viem.EstimateFeesPerGasReturnType>;
290
+ getFilterChanges: <TFilterType extends viem.FilterType, const TAbi extends Abi | readonly unknown[] | undefined, TEventName extends string | undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, TToBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterChangesParameters<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>) => Promise<viem.GetFilterChangesReturnType<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>>;
291
+ getFilterLogs: <const TAbi extends Abi | readonly unknown[] | undefined, TEventName extends string | undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, TToBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterLogsParameters<TAbi, TEventName, TStrict, TFromBlock, TToBlock>) => Promise<viem.GetFilterLogsReturnType<TAbi, TEventName, TStrict, TFromBlock, TToBlock>>;
292
+ getGasPrice: () => Promise<viem.GetGasPriceReturnType>;
293
+ getLogs: <const TAbiEvent extends viem.AbiEvent | undefined = undefined, const TAbiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = TAbiEvent extends viem.AbiEvent ? [TAbiEvent] : undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, TToBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args?: viem.GetLogsParameters<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock> | undefined) => Promise<viem.GetLogsReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>>;
294
+ getProof: (args: viem.GetProofParameters) => Promise<viem.GetProofReturnType>;
295
+ estimateMaxPriorityFeePerGas: <TChainOverride extends Chain | undefined = undefined>(args?: {
296
+ chain: TChainOverride;
297
+ }) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
298
+ getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
299
+ getTransaction: <TBlockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<TBlockTag>) => Promise<viem.GetTransactionReturnType<Chain, TBlockTag>>;
300
+ getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<Chain>) => Promise<viem.GetTransactionConfirmationsReturnType>;
301
+ getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
302
+ getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.GetTransactionReceiptReturnType<Chain>>;
303
+ multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
304
+ prepareTransactionRequest: <const TRequest extends viem.PrepareTransactionRequestRequest<Chain, TChainOverride>, TChainOverride extends Chain | undefined = undefined, TAccountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<Chain, viem.Account, TChainOverride, TAccountOverride, TRequest>) => Promise<viem.PrepareTransactionRequestReturnType<Chain, viem.Account, TChainOverride, TAccountOverride, TRequest>>;
305
+ readContract: <const abi extends Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
306
+ sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
307
+ simulateContract: <const abi extends Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends Chain | undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, Chain, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, Chain, viem.Account, chainOverride, accountOverride>>;
308
+ verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
309
+ verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
310
+ verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
311
+ uninstallFilter: (args: viem.UninstallFilterParameters) => Promise<viem.UninstallFilterReturnType>;
312
+ waitForTransactionReceipt: (args: viem.WaitForTransactionReceiptParameters<Chain>) => Promise<viem.WaitForTransactionReceiptReturnType<Chain>>;
313
+ watchBlockNumber: (args: viem.WatchBlockNumberParameters) => viem.WatchBlockNumberReturnType;
314
+ watchBlocks: <TIncludeTransactions extends boolean = false, TBlockTag extends viem.BlockTag = "latest">(args: viem.WatchBlocksParameters<HttpTransport, Chain, TIncludeTransactions, TBlockTag>) => viem.WatchBlocksReturnType;
315
+ watchContractEvent: <const TAbi extends Abi | readonly unknown[], TEventName extends viem.ContractEventName<TAbi>, TStrict extends boolean | undefined = undefined>(args: viem.WatchContractEventParameters<TAbi, TEventName, TStrict, HttpTransport>) => viem.WatchContractEventReturnType;
316
+ watchEvent: <const TAbiEvent extends viem.AbiEvent | undefined = undefined, const TAbiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = TAbiEvent extends viem.AbiEvent ? [TAbiEvent] : undefined, TStrict extends boolean | undefined = undefined>(args: viem.WatchEventParameters<TAbiEvent, TAbiEvents, TStrict, HttpTransport>) => viem.WatchEventReturnType;
317
+ watchPendingTransactions: (args: viem.WatchPendingTransactionsParameters<HttpTransport>) => viem.WatchPendingTransactionsReturnType;
318
+ extend: <const client extends {
319
+ [x: string]: unknown;
320
+ account?: undefined;
321
+ batch?: undefined;
322
+ cacheTime?: undefined;
323
+ ccipRead?: undefined;
324
+ chain?: undefined;
325
+ key?: undefined;
326
+ name?: undefined;
327
+ pollingInterval?: undefined;
328
+ request?: undefined;
329
+ transport?: undefined;
330
+ type?: undefined;
331
+ uid?: undefined;
332
+ } & viem.ExactPartial<Pick<viem.PublicActions<HttpTransport, Chain, any>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<Chain, any>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<HttpTransport, Chain, any, viem.PublicRpcSchema | [{
333
+ Method: "web3_clientVersion";
334
+ Parameters?: undefined;
335
+ ReturnType: string;
336
+ }, {
337
+ Method: "web3_sha3";
338
+ Parameters: [data: viem.Hash];
339
+ ReturnType: string;
340
+ }, {
341
+ Method: "net_listening";
342
+ Parameters?: undefined;
343
+ ReturnType: boolean;
344
+ }, {
345
+ Method: "net_peerCount";
346
+ Parameters?: undefined;
347
+ ReturnType: viem.Quantity;
348
+ }, {
349
+ Method: "net_version";
350
+ Parameters?: undefined;
351
+ ReturnType: viem.Quantity;
352
+ }, {
353
+ Method: "eth_blobBaseFee";
354
+ Parameters?: undefined;
355
+ ReturnType: viem.Quantity;
356
+ }, {
357
+ Method: "eth_blockNumber";
358
+ Parameters?: undefined;
359
+ ReturnType: viem.Quantity;
360
+ }, {
361
+ Method: "eth_call";
362
+ Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
363
+ ReturnType: viem.Hex;
364
+ }, {
365
+ Method: "eth_chainId";
366
+ Parameters?: undefined;
367
+ ReturnType: viem.Quantity;
368
+ }, {
369
+ Method: "eth_coinbase";
370
+ Parameters?: undefined;
371
+ ReturnType: viem.Address;
372
+ }, {
373
+ Method: "eth_estimateGas";
374
+ Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
375
+ ReturnType: viem.Quantity;
376
+ }, {
377
+ Method: "eth_feeHistory";
378
+ Parameters: [blockCount: viem.Quantity, newestBlock: viem.RpcBlockNumber | viem.BlockTag, rewardPercentiles: number[] | undefined];
379
+ ReturnType: viem.RpcFeeHistory;
380
+ }, {
381
+ Method: "eth_gasPrice";
382
+ Parameters?: undefined;
383
+ ReturnType: viem.Quantity;
384
+ }, {
385
+ Method: "eth_getBalance";
386
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
387
+ ReturnType: viem.Quantity;
388
+ }, {
389
+ Method: "eth_getBlockByHash";
390
+ Parameters: [hash: viem.Hash, includeTransactionObjects: boolean];
391
+ ReturnType: viem.RpcBlock | null;
392
+ }, {
393
+ Method: "eth_getBlockByNumber";
394
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, includeTransactionObjects: boolean];
395
+ ReturnType: viem.RpcBlock | null;
396
+ }, {
397
+ Method: "eth_getBlockTransactionCountByHash";
398
+ Parameters: [hash: viem.Hash];
399
+ ReturnType: viem.Quantity;
400
+ }, {
401
+ Method: "eth_getBlockTransactionCountByNumber";
402
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
403
+ ReturnType: viem.Quantity;
404
+ }, {
405
+ Method: "eth_getCode";
406
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
407
+ ReturnType: viem.Hex;
408
+ }, {
409
+ Method: "eth_getFilterChanges";
410
+ Parameters: [filterId: viem.Quantity];
411
+ ReturnType: viem.RpcLog[] | viem.Hex[];
412
+ }, {
413
+ Method: "eth_getFilterLogs";
414
+ Parameters: [filterId: viem.Quantity];
415
+ ReturnType: viem.RpcLog[];
416
+ }, {
417
+ Method: "eth_getLogs";
418
+ Parameters: [{
419
+ address?: viem.Address | viem.Address[] | undefined;
420
+ topics?: viem.LogTopic[] | undefined;
421
+ } & ({
422
+ fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
423
+ toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
424
+ blockHash?: undefined;
425
+ } | {
426
+ fromBlock?: undefined;
427
+ toBlock?: undefined;
428
+ blockHash?: viem.Hash | undefined;
429
+ })];
430
+ ReturnType: viem.RpcLog[];
431
+ }, {
432
+ Method: "eth_getProof";
433
+ Parameters: [address: viem.Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
434
+ ReturnType: viem.RpcProof;
435
+ }, {
436
+ Method: "eth_getStorageAt";
437
+ Parameters: [address: viem.Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
438
+ ReturnType: viem.Hex;
439
+ }, {
440
+ Method: "eth_getTransactionByBlockHashAndIndex";
441
+ Parameters: [hash: viem.Hash, index: viem.Quantity];
442
+ ReturnType: viem.RpcTransaction | null;
443
+ }, {
444
+ Method: "eth_getTransactionByBlockNumberAndIndex";
445
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
446
+ ReturnType: viem.RpcTransaction | null;
447
+ }, {
448
+ Method: "eth_getTransactionByHash";
449
+ Parameters: [hash: viem.Hash];
450
+ ReturnType: viem.RpcTransaction | null;
451
+ }, {
452
+ Method: "eth_getTransactionCount";
453
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
454
+ ReturnType: viem.Quantity;
455
+ }, {
456
+ Method: "eth_getTransactionReceipt";
457
+ Parameters: [hash: viem.Hash];
458
+ ReturnType: viem.RpcTransactionReceipt | null;
459
+ }, {
460
+ Method: "eth_getUncleByBlockHashAndIndex";
461
+ Parameters: [hash: viem.Hash, index: viem.Quantity];
462
+ ReturnType: viem.RpcUncle | null;
463
+ }, {
464
+ Method: "eth_getUncleByBlockNumberAndIndex";
465
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
466
+ ReturnType: viem.RpcUncle | null;
467
+ }, {
468
+ Method: "eth_getUncleCountByBlockHash";
469
+ Parameters: [hash: viem.Hash];
470
+ ReturnType: viem.Quantity;
471
+ }, {
472
+ Method: "eth_getUncleCountByBlockNumber";
473
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
474
+ ReturnType: viem.Quantity;
475
+ }, {
476
+ Method: "eth_maxPriorityFeePerGas";
477
+ Parameters?: undefined;
478
+ ReturnType: viem.Quantity;
479
+ }, {
480
+ Method: "eth_newBlockFilter";
481
+ Parameters?: undefined;
482
+ ReturnType: viem.Quantity;
483
+ }, {
484
+ Method: "eth_newFilter";
485
+ Parameters: [filter: {
486
+ fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
487
+ toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
488
+ address?: viem.Address | viem.Address[] | undefined;
489
+ topics?: viem.LogTopic[] | undefined;
490
+ }];
491
+ ReturnType: viem.Quantity;
492
+ }, {
493
+ Method: "eth_newPendingTransactionFilter";
494
+ Parameters?: undefined;
495
+ ReturnType: viem.Quantity;
496
+ }, {
497
+ Method: "eth_protocolVersion";
498
+ Parameters?: undefined;
499
+ ReturnType: string;
500
+ }, {
501
+ Method: "eth_sendRawTransaction";
502
+ Parameters: [signedTransaction: viem.Hex];
503
+ ReturnType: viem.Hash;
504
+ }, {
505
+ Method: "eth_uninstallFilter";
506
+ Parameters: [filterId: viem.Quantity];
507
+ ReturnType: boolean;
508
+ }, ...any[]], viem.PublicActions<HttpTransport, Chain>>) => client) => viem.Client<HttpTransport, Chain, any, viem.PublicRpcSchema | [{
509
+ Method: "web3_clientVersion";
510
+ Parameters?: undefined;
511
+ ReturnType: string;
512
+ }, {
513
+ Method: "web3_sha3";
514
+ Parameters: [data: viem.Hash];
515
+ ReturnType: string;
516
+ }, {
517
+ Method: "net_listening";
518
+ Parameters?: undefined;
519
+ ReturnType: boolean;
520
+ }, {
521
+ Method: "net_peerCount";
522
+ Parameters?: undefined;
523
+ ReturnType: viem.Quantity;
524
+ }, {
525
+ Method: "net_version";
526
+ Parameters?: undefined;
527
+ ReturnType: viem.Quantity;
528
+ }, {
529
+ Method: "eth_blobBaseFee";
530
+ Parameters?: undefined;
531
+ ReturnType: viem.Quantity;
532
+ }, {
533
+ Method: "eth_blockNumber";
534
+ Parameters?: undefined;
535
+ ReturnType: viem.Quantity;
536
+ }, {
537
+ Method: "eth_call";
538
+ Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
539
+ ReturnType: viem.Hex;
540
+ }, {
541
+ Method: "eth_chainId";
542
+ Parameters?: undefined;
543
+ ReturnType: viem.Quantity;
544
+ }, {
545
+ Method: "eth_coinbase";
546
+ Parameters?: undefined;
547
+ ReturnType: viem.Address;
548
+ }, {
549
+ Method: "eth_estimateGas";
550
+ Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
551
+ ReturnType: viem.Quantity;
552
+ }, {
553
+ Method: "eth_feeHistory";
554
+ Parameters: [blockCount: viem.Quantity, newestBlock: viem.RpcBlockNumber | viem.BlockTag, rewardPercentiles: number[] | undefined];
555
+ ReturnType: viem.RpcFeeHistory;
556
+ }, {
557
+ Method: "eth_gasPrice";
558
+ Parameters?: undefined;
559
+ ReturnType: viem.Quantity;
560
+ }, {
561
+ Method: "eth_getBalance";
562
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
563
+ ReturnType: viem.Quantity;
564
+ }, {
565
+ Method: "eth_getBlockByHash";
566
+ Parameters: [hash: viem.Hash, includeTransactionObjects: boolean];
567
+ ReturnType: viem.RpcBlock | null;
568
+ }, {
569
+ Method: "eth_getBlockByNumber";
570
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, includeTransactionObjects: boolean];
571
+ ReturnType: viem.RpcBlock | null;
572
+ }, {
573
+ Method: "eth_getBlockTransactionCountByHash";
574
+ Parameters: [hash: viem.Hash];
575
+ ReturnType: viem.Quantity;
576
+ }, {
577
+ Method: "eth_getBlockTransactionCountByNumber";
578
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
579
+ ReturnType: viem.Quantity;
580
+ }, {
581
+ Method: "eth_getCode";
582
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
583
+ ReturnType: viem.Hex;
584
+ }, {
585
+ Method: "eth_getFilterChanges";
586
+ Parameters: [filterId: viem.Quantity];
587
+ ReturnType: viem.RpcLog[] | viem.Hex[];
588
+ }, {
589
+ Method: "eth_getFilterLogs";
590
+ Parameters: [filterId: viem.Quantity];
591
+ ReturnType: viem.RpcLog[];
592
+ }, {
593
+ Method: "eth_getLogs";
594
+ Parameters: [{
595
+ address?: viem.Address | viem.Address[] | undefined;
596
+ topics?: viem.LogTopic[] | undefined;
597
+ } & ({
598
+ fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
599
+ toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
600
+ blockHash?: undefined;
601
+ } | {
602
+ fromBlock?: undefined;
603
+ toBlock?: undefined;
604
+ blockHash?: viem.Hash | undefined;
605
+ })];
606
+ ReturnType: viem.RpcLog[];
607
+ }, {
608
+ Method: "eth_getProof";
609
+ Parameters: [address: viem.Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
610
+ ReturnType: viem.RpcProof;
611
+ }, {
612
+ Method: "eth_getStorageAt";
613
+ Parameters: [address: viem.Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
614
+ ReturnType: viem.Hex;
615
+ }, {
616
+ Method: "eth_getTransactionByBlockHashAndIndex";
617
+ Parameters: [hash: viem.Hash, index: viem.Quantity];
618
+ ReturnType: viem.RpcTransaction | null;
619
+ }, {
620
+ Method: "eth_getTransactionByBlockNumberAndIndex";
621
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
622
+ ReturnType: viem.RpcTransaction | null;
623
+ }, {
624
+ Method: "eth_getTransactionByHash";
625
+ Parameters: [hash: viem.Hash];
626
+ ReturnType: viem.RpcTransaction | null;
627
+ }, {
628
+ Method: "eth_getTransactionCount";
629
+ Parameters: [address: viem.Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
630
+ ReturnType: viem.Quantity;
631
+ }, {
632
+ Method: "eth_getTransactionReceipt";
633
+ Parameters: [hash: viem.Hash];
634
+ ReturnType: viem.RpcTransactionReceipt | null;
635
+ }, {
636
+ Method: "eth_getUncleByBlockHashAndIndex";
637
+ Parameters: [hash: viem.Hash, index: viem.Quantity];
638
+ ReturnType: viem.RpcUncle | null;
639
+ }, {
640
+ Method: "eth_getUncleByBlockNumberAndIndex";
641
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
642
+ ReturnType: viem.RpcUncle | null;
643
+ }, {
644
+ Method: "eth_getUncleCountByBlockHash";
645
+ Parameters: [hash: viem.Hash];
646
+ ReturnType: viem.Quantity;
647
+ }, {
648
+ Method: "eth_getUncleCountByBlockNumber";
649
+ Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
650
+ ReturnType: viem.Quantity;
651
+ }, {
652
+ Method: "eth_maxPriorityFeePerGas";
653
+ Parameters?: undefined;
654
+ ReturnType: viem.Quantity;
655
+ }, {
656
+ Method: "eth_newBlockFilter";
657
+ Parameters?: undefined;
658
+ ReturnType: viem.Quantity;
659
+ }, {
660
+ Method: "eth_newFilter";
661
+ Parameters: [filter: {
662
+ fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
663
+ toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
664
+ address?: viem.Address | viem.Address[] | undefined;
665
+ topics?: viem.LogTopic[] | undefined;
666
+ }];
667
+ ReturnType: viem.Quantity;
668
+ }, {
669
+ Method: "eth_newPendingTransactionFilter";
670
+ Parameters?: undefined;
671
+ ReturnType: viem.Quantity;
672
+ }, {
673
+ Method: "eth_protocolVersion";
674
+ Parameters?: undefined;
675
+ ReturnType: string;
676
+ }, {
677
+ Method: "eth_sendRawTransaction";
678
+ Parameters: [signedTransaction: viem.Hex];
679
+ ReturnType: viem.Hash;
680
+ }, {
681
+ Method: "eth_uninstallFilter";
682
+ Parameters: [filterId: viem.Quantity];
683
+ ReturnType: boolean;
684
+ }, ...any[]], viem_chains.Prettify<client> & (viem.PublicActions<HttpTransport, Chain> extends {
685
+ [x: string]: unknown;
686
+ account?: undefined;
687
+ batch?: undefined;
688
+ cacheTime?: undefined;
689
+ ccipRead?: undefined;
690
+ chain?: undefined;
691
+ key?: undefined;
692
+ name?: undefined;
693
+ pollingInterval?: undefined;
694
+ request?: undefined;
695
+ transport?: undefined;
696
+ type?: undefined;
697
+ uid?: undefined;
698
+ } ? viem.PublicActions<HttpTransport, Chain> : unknown)>;
699
+ };
71
700
  PubClient<C extends keyof Chains>(chainId: C): PublicClient<HttpTransport, Chain, any, any>;
72
701
  Get<K extends keyof Contracts, C extends keyof Chains, Addr extends `0x${string}`>(contractName: K, chainId: C, address: Addr): GetContractReturnType<Contracts[K], PublicClient<HttpTransport, Chain, any, any>>;
73
702
  getContract({ client, address, abi, }: {
@@ -110,4 +739,4 @@ type QueryReturnType<E, S extends QuerySelect<E>> = {
110
739
  [K in keyof E]: K extends keyof S ? E[K] extends (...args: any[]) => any ? Awaited<ReturnType<E[K]>> : E[K] extends object ? S[K] extends object ? QueryReturnType<E[K], S[K]> : E[K] : E[K] : E[K];
111
740
  };
112
741
 
113
- export { AIem, Cache, Fields, Item, QueryReturnType };
742
+ export { AIem, Cache, Fields, type Item, type QueryReturnType };