@permissionless/wagmi 0.0.3 → 0.1.0
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/CHANGELOG.md +13 -0
- package/_cjs/context.js +14 -0
- package/_cjs/context.js.map +1 -0
- package/_cjs/hooks/useAvailableCapabilities.js +37 -0
- package/_cjs/hooks/useAvailableCapabilities.js.map +1 -0
- package/_cjs/hooks/useSendTransaction.js +42 -0
- package/_cjs/hooks/useSendTransaction.js.map +1 -0
- package/_cjs/hooks/useWaitForTransactionReceipt.js +168 -0
- package/_cjs/hooks/useWaitForTransactionReceipt.js.map +1 -0
- package/_cjs/index.js +7 -11
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/observe.js +43 -0
- package/_cjs/utils/observe.js.map +1 -0
- package/_esm/context.js +10 -0
- package/_esm/context.js.map +1 -0
- package/_esm/hooks/useAvailableCapabilities.js +33 -0
- package/_esm/hooks/useAvailableCapabilities.js.map +1 -0
- package/_esm/hooks/useSendTransaction.js +38 -0
- package/_esm/hooks/useSendTransaction.js.map +1 -0
- package/_esm/hooks/useWaitForTransactionReceipt.js +175 -0
- package/_esm/hooks/useWaitForTransactionReceipt.js.map +1 -0
- package/_esm/index.js +3 -6
- package/_esm/index.js.map +1 -1
- package/_esm/utils/observe.js +46 -0
- package/_esm/utils/observe.js.map +1 -0
- package/_types/context.d.ts +12 -0
- package/_types/context.d.ts.map +1 -0
- package/_types/hooks/useAvailableCapabilities.d.ts +5 -0
- package/_types/hooks/useAvailableCapabilities.d.ts.map +1 -0
- package/_types/hooks/useSendTransaction.d.ts +34 -0
- package/_types/hooks/useSendTransaction.d.ts.map +1 -0
- package/_types/hooks/useWaitForTransactionReceipt.d.ts +92 -0
- package/_types/hooks/useWaitForTransactionReceipt.d.ts.map +1 -0
- package/_types/index.d.ts +3 -6
- package/_types/index.d.ts.map +1 -1
- package/_types/utils/observe.d.ts +23 -0
- package/_types/utils/observe.d.ts.map +1 -0
- package/context.ts +22 -0
- package/hooks/useAvailableCapabilities.ts +43 -0
- package/hooks/useSendTransaction.ts +148 -0
- package/hooks/useWaitForTransactionReceipt.ts +431 -0
- package/index.ts +6 -31
- package/package.json +3 -11
- package/utils/observe.ts +76 -0
- package/_cjs/connectors/biconomySmartAccount.js +0 -18
- package/_cjs/connectors/biconomySmartAccount.js.map +0 -1
- package/_cjs/connectors/kernelSmartAccount.js +0 -18
- package/_cjs/connectors/kernelSmartAccount.js.map +0 -1
- package/_cjs/connectors/safeSmartAccount.js +0 -18
- package/_cjs/connectors/safeSmartAccount.js.map +0 -1
- package/_cjs/connectors/simpleSmartAccount.js +0 -30
- package/_cjs/connectors/simpleSmartAccount.js.map +0 -1
- package/_cjs/connectors/smartAccount.js +0 -51
- package/_cjs/connectors/smartAccount.js.map +0 -1
- package/_esm/connectors/biconomySmartAccount.js +0 -14
- package/_esm/connectors/biconomySmartAccount.js.map +0 -1
- package/_esm/connectors/kernelSmartAccount.js +0 -14
- package/_esm/connectors/kernelSmartAccount.js.map +0 -1
- package/_esm/connectors/safeSmartAccount.js +0 -14
- package/_esm/connectors/safeSmartAccount.js.map +0 -1
- package/_esm/connectors/simpleSmartAccount.js +0 -26
- package/_esm/connectors/simpleSmartAccount.js.map +0 -1
- package/_esm/connectors/smartAccount.js +0 -53
- package/_esm/connectors/smartAccount.js.map +0 -1
- package/_types/connectors/biconomySmartAccount.d.ts +0 -317
- package/_types/connectors/biconomySmartAccount.d.ts.map +0 -1
- package/_types/connectors/kernelSmartAccount.d.ts +0 -317
- package/_types/connectors/kernelSmartAccount.d.ts.map +0 -1
- package/_types/connectors/safeSmartAccount.d.ts +0 -317
- package/_types/connectors/safeSmartAccount.d.ts.map +0 -1
- package/_types/connectors/simpleSmartAccount.d.ts +0 -635
- package/_types/connectors/simpleSmartAccount.d.ts.map +0 -1
- package/_types/connectors/smartAccount.d.ts +0 -294
- package/_types/connectors/smartAccount.d.ts.map +0 -1
- package/connectors/biconomySmartAccount.ts +0 -53
- package/connectors/kernelSmartAccount.ts +0 -53
- package/connectors/safeSmartAccount.ts +0 -50
- package/connectors/simpleSmartAccount.ts +0 -90
- package/connectors/smartAccount.ts +0 -72
|
@@ -1,635 +0,0 @@
|
|
|
1
|
-
import { type SignerToSimpleSmartAccountParameters, type SmartAccount, type SmartAccountSigner } from "permissionless/accounts";
|
|
2
|
-
import { type SponsorUserOperationMiddleware } from "permissionless/actions/smartAccount";
|
|
3
|
-
import type { Prettify } from "permissionless/types";
|
|
4
|
-
import type { Address, Chain, PublicClient, Transport } from "viem";
|
|
5
|
-
export type SmartAccountParameters<T, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = "custom", TAddress extends Address = Address> = {
|
|
6
|
-
publicClient: PublicClient<TTransport, TChain>;
|
|
7
|
-
signer: SmartAccountSigner<TSource, TAddress>;
|
|
8
|
-
bundlerTransport: TTransport;
|
|
9
|
-
} & SponsorUserOperationMiddleware & T;
|
|
10
|
-
export type SimpleSmartAccountParameters<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = "custom", TAddress extends Address = Address> = Prettify<SmartAccountParameters<Omit<SignerToSimpleSmartAccountParameters<TSource, TAddress>, "signer">, TTransport, TChain, TSource, TAddress>>;
|
|
11
|
-
export declare function smartAccountConnectorHelper<X, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = "custom", TAddress extends Address = Address, Name extends string = string>({ bundlerTransport, sponsorUserOperation, account }: Omit<SmartAccountParameters<X, TTransport, TChain, TSource, TAddress>, "signer"> & {
|
|
12
|
-
account: SmartAccount<Name, TTransport, TChain>;
|
|
13
|
-
}): Promise<import("wagmi").CreateConnectorFn<unknown, {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
type: string;
|
|
17
|
-
connect: ({ chainId }?: {
|
|
18
|
-
chainId?: number | undefined;
|
|
19
|
-
isReconnecting?: boolean | undefined;
|
|
20
|
-
} | undefined) => Promise<{
|
|
21
|
-
accounts: `0x${string}`[];
|
|
22
|
-
chainId: number;
|
|
23
|
-
}>;
|
|
24
|
-
disconnect: () => Promise<void>;
|
|
25
|
-
getAccounts: () => Promise<`0x${string}`[]>;
|
|
26
|
-
getChainId: () => Promise<number>;
|
|
27
|
-
getProvider: () => Promise<void>;
|
|
28
|
-
isAuthorized: () => Promise<true>;
|
|
29
|
-
onAccountsChanged: () => void;
|
|
30
|
-
onChainChanged: () => void;
|
|
31
|
-
onDisconnect: () => void;
|
|
32
|
-
getClient: ({ chainId: requestedChainId }: {
|
|
33
|
-
chainId: number;
|
|
34
|
-
}) => Promise<{
|
|
35
|
-
account: SmartAccount<Name, TTransport, TChain>;
|
|
36
|
-
batch?: {
|
|
37
|
-
multicall?: boolean | {
|
|
38
|
-
batchSize?: number | undefined;
|
|
39
|
-
wait?: number | undefined;
|
|
40
|
-
} | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
cacheTime: number;
|
|
43
|
-
chain: undefined;
|
|
44
|
-
key: string;
|
|
45
|
-
name: string;
|
|
46
|
-
pollingInterval: number;
|
|
47
|
-
request: import("viem").EIP1193RequestFn<import("permissionless/_types/types/bundler").BundlerRpcSchema>;
|
|
48
|
-
transport: ReturnType<SmartAccountParameters<X, TTransport, TChain, TSource, TAddress>["bundlerTransport"]>["config"] & ReturnType<SmartAccountParameters<X, TTransport, TChain, TSource, TAddress>["bundlerTransport"]>["value"];
|
|
49
|
-
type: string;
|
|
50
|
-
uid: string;
|
|
51
|
-
sendTransaction: <TChainOverride extends Chain | undefined>(args: import("viem").SendTransactionParameters<undefined, SmartAccount<Name, TTransport, TChain>, TChainOverride>) => Promise<`0x${string}`>;
|
|
52
|
-
signMessage: (args: import("viem").SignMessageParameters<SmartAccount<Name, TTransport, TChain>>) => Promise<`0x${string}`>;
|
|
53
|
-
signTypedData: <const TTypedData extends {
|
|
54
|
-
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
55
|
-
[x: `string[${string}]`]: undefined;
|
|
56
|
-
[x: `function[${string}]`]: undefined;
|
|
57
|
-
[x: `address[${string}]`]: undefined;
|
|
58
|
-
[x: `bool[${string}]`]: undefined;
|
|
59
|
-
[x: `bytes[${string}]`]: undefined;
|
|
60
|
-
[x: `bytes1[${string}]`]: undefined;
|
|
61
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
62
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
63
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
64
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
65
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
66
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
67
|
-
[x: `bytes7[${string}]`]: undefined;
|
|
68
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
69
|
-
[x: `bytes9[${string}]`]: undefined;
|
|
70
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
71
|
-
[x: `bytes11[${string}]`]: undefined;
|
|
72
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
73
|
-
[x: `bytes13[${string}]`]: undefined;
|
|
74
|
-
[x: `bytes14[${string}]`]: undefined;
|
|
75
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
76
|
-
[x: `bytes17[${string}]`]: undefined;
|
|
77
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
78
|
-
[x: `bytes19[${string}]`]: undefined;
|
|
79
|
-
[x: `bytes20[${string}]`]: undefined;
|
|
80
|
-
[x: `bytes21[${string}]`]: undefined;
|
|
81
|
-
[x: `bytes22[${string}]`]: undefined;
|
|
82
|
-
[x: `bytes23[${string}]`]: undefined;
|
|
83
|
-
[x: `bytes24[${string}]`]: undefined;
|
|
84
|
-
[x: `bytes25[${string}]`]: undefined;
|
|
85
|
-
[x: `bytes26[${string}]`]: undefined;
|
|
86
|
-
[x: `bytes27[${string}]`]: undefined;
|
|
87
|
-
[x: `bytes28[${string}]`]: undefined;
|
|
88
|
-
[x: `bytes29[${string}]`]: undefined;
|
|
89
|
-
[x: `bytes30[${string}]`]: undefined;
|
|
90
|
-
[x: `bytes31[${string}]`]: undefined;
|
|
91
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
92
|
-
[x: `int[${string}]`]: undefined;
|
|
93
|
-
[x: `int40[${string}]`]: undefined;
|
|
94
|
-
[x: `int16[${string}]`]: undefined;
|
|
95
|
-
[x: `int56[${string}]`]: undefined;
|
|
96
|
-
[x: `int8[${string}]`]: undefined;
|
|
97
|
-
[x: `int24[${string}]`]: undefined;
|
|
98
|
-
[x: `int32[${string}]`]: undefined;
|
|
99
|
-
[x: `int48[${string}]`]: undefined;
|
|
100
|
-
[x: `int64[${string}]`]: undefined;
|
|
101
|
-
[x: `int72[${string}]`]: undefined;
|
|
102
|
-
[x: `int80[${string}]`]: undefined;
|
|
103
|
-
[x: `int88[${string}]`]: undefined;
|
|
104
|
-
[x: `int96[${string}]`]: undefined;
|
|
105
|
-
[x: `int104[${string}]`]: undefined;
|
|
106
|
-
[x: `int112[${string}]`]: undefined;
|
|
107
|
-
[x: `int120[${string}]`]: undefined;
|
|
108
|
-
[x: `int128[${string}]`]: undefined;
|
|
109
|
-
[x: `int136[${string}]`]: undefined;
|
|
110
|
-
[x: `int144[${string}]`]: undefined;
|
|
111
|
-
[x: `int152[${string}]`]: undefined;
|
|
112
|
-
[x: `int160[${string}]`]: undefined;
|
|
113
|
-
[x: `int168[${string}]`]: undefined;
|
|
114
|
-
[x: `int176[${string}]`]: undefined;
|
|
115
|
-
[x: `int184[${string}]`]: undefined;
|
|
116
|
-
[x: `int192[${string}]`]: undefined;
|
|
117
|
-
[x: `int200[${string}]`]: undefined;
|
|
118
|
-
[x: `int208[${string}]`]: undefined;
|
|
119
|
-
[x: `int216[${string}]`]: undefined;
|
|
120
|
-
[x: `int224[${string}]`]: undefined;
|
|
121
|
-
[x: `int232[${string}]`]: undefined;
|
|
122
|
-
[x: `int240[${string}]`]: undefined;
|
|
123
|
-
[x: `int248[${string}]`]: undefined;
|
|
124
|
-
[x: `int256[${string}]`]: undefined;
|
|
125
|
-
[x: `uint[${string}]`]: undefined;
|
|
126
|
-
[x: `uint40[${string}]`]: undefined;
|
|
127
|
-
[x: `uint16[${string}]`]: undefined;
|
|
128
|
-
[x: `uint56[${string}]`]: undefined;
|
|
129
|
-
[x: `uint8[${string}]`]: undefined;
|
|
130
|
-
[x: `uint24[${string}]`]: undefined;
|
|
131
|
-
[x: `uint32[${string}]`]: undefined;
|
|
132
|
-
[x: `uint48[${string}]`]: undefined;
|
|
133
|
-
[x: `uint64[${string}]`]: undefined;
|
|
134
|
-
[x: `uint72[${string}]`]: undefined;
|
|
135
|
-
[x: `uint80[${string}]`]: undefined;
|
|
136
|
-
[x: `uint88[${string}]`]: undefined;
|
|
137
|
-
[x: `uint96[${string}]`]: undefined;
|
|
138
|
-
[x: `uint104[${string}]`]: undefined;
|
|
139
|
-
[x: `uint112[${string}]`]: undefined;
|
|
140
|
-
[x: `uint120[${string}]`]: undefined;
|
|
141
|
-
[x: `uint128[${string}]`]: undefined;
|
|
142
|
-
[x: `uint136[${string}]`]: undefined;
|
|
143
|
-
[x: `uint144[${string}]`]: undefined;
|
|
144
|
-
[x: `uint152[${string}]`]: undefined;
|
|
145
|
-
[x: `uint160[${string}]`]: undefined;
|
|
146
|
-
[x: `uint168[${string}]`]: undefined;
|
|
147
|
-
[x: `uint176[${string}]`]: undefined;
|
|
148
|
-
[x: `uint184[${string}]`]: undefined;
|
|
149
|
-
[x: `uint192[${string}]`]: undefined;
|
|
150
|
-
[x: `uint200[${string}]`]: undefined;
|
|
151
|
-
[x: `uint208[${string}]`]: undefined;
|
|
152
|
-
[x: `uint216[${string}]`]: undefined;
|
|
153
|
-
[x: `uint224[${string}]`]: undefined;
|
|
154
|
-
[x: `uint232[${string}]`]: undefined;
|
|
155
|
-
[x: `uint240[${string}]`]: undefined;
|
|
156
|
-
[x: `uint248[${string}]`]: undefined;
|
|
157
|
-
[x: `uint256[${string}]`]: undefined;
|
|
158
|
-
string?: undefined;
|
|
159
|
-
address?: undefined;
|
|
160
|
-
bool?: undefined;
|
|
161
|
-
bytes?: undefined;
|
|
162
|
-
bytes1?: undefined;
|
|
163
|
-
bytes16?: undefined;
|
|
164
|
-
bytes2?: undefined;
|
|
165
|
-
bytes3?: undefined;
|
|
166
|
-
bytes4?: undefined;
|
|
167
|
-
bytes5?: undefined;
|
|
168
|
-
bytes6?: undefined;
|
|
169
|
-
bytes7?: undefined;
|
|
170
|
-
bytes8?: undefined;
|
|
171
|
-
bytes9?: undefined;
|
|
172
|
-
bytes10?: undefined;
|
|
173
|
-
bytes11?: undefined;
|
|
174
|
-
bytes12?: undefined;
|
|
175
|
-
bytes13?: undefined;
|
|
176
|
-
bytes14?: undefined;
|
|
177
|
-
bytes15?: undefined;
|
|
178
|
-
bytes17?: undefined;
|
|
179
|
-
bytes18?: undefined;
|
|
180
|
-
bytes19?: undefined;
|
|
181
|
-
bytes20?: undefined;
|
|
182
|
-
bytes21?: undefined;
|
|
183
|
-
bytes22?: undefined;
|
|
184
|
-
bytes23?: undefined;
|
|
185
|
-
bytes24?: undefined;
|
|
186
|
-
bytes25?: undefined;
|
|
187
|
-
bytes26?: undefined;
|
|
188
|
-
bytes27?: undefined;
|
|
189
|
-
bytes28?: undefined;
|
|
190
|
-
bytes29?: undefined;
|
|
191
|
-
bytes30?: undefined;
|
|
192
|
-
bytes31?: undefined;
|
|
193
|
-
bytes32?: undefined;
|
|
194
|
-
int40?: undefined;
|
|
195
|
-
int16?: undefined;
|
|
196
|
-
int56?: undefined;
|
|
197
|
-
int8?: undefined;
|
|
198
|
-
int24?: undefined;
|
|
199
|
-
int32?: undefined;
|
|
200
|
-
int48?: undefined;
|
|
201
|
-
int64?: undefined;
|
|
202
|
-
int72?: undefined;
|
|
203
|
-
int80?: undefined;
|
|
204
|
-
int88?: undefined;
|
|
205
|
-
int96?: undefined;
|
|
206
|
-
int104?: undefined;
|
|
207
|
-
int112?: undefined;
|
|
208
|
-
int120?: undefined;
|
|
209
|
-
int128?: undefined;
|
|
210
|
-
int136?: undefined;
|
|
211
|
-
int144?: undefined;
|
|
212
|
-
int152?: undefined;
|
|
213
|
-
int160?: undefined;
|
|
214
|
-
int168?: undefined;
|
|
215
|
-
int176?: undefined;
|
|
216
|
-
int184?: undefined;
|
|
217
|
-
int192?: undefined;
|
|
218
|
-
int200?: undefined;
|
|
219
|
-
int208?: undefined;
|
|
220
|
-
int216?: undefined;
|
|
221
|
-
int224?: undefined;
|
|
222
|
-
int232?: undefined;
|
|
223
|
-
int240?: undefined;
|
|
224
|
-
int248?: undefined;
|
|
225
|
-
int256?: undefined;
|
|
226
|
-
uint40?: undefined;
|
|
227
|
-
uint16?: undefined;
|
|
228
|
-
uint56?: undefined;
|
|
229
|
-
uint8?: undefined;
|
|
230
|
-
uint24?: undefined;
|
|
231
|
-
uint32?: undefined;
|
|
232
|
-
uint48?: undefined;
|
|
233
|
-
uint64?: undefined;
|
|
234
|
-
uint72?: undefined;
|
|
235
|
-
uint80?: undefined;
|
|
236
|
-
uint88?: undefined;
|
|
237
|
-
uint96?: undefined;
|
|
238
|
-
uint104?: undefined;
|
|
239
|
-
uint112?: undefined;
|
|
240
|
-
uint120?: undefined;
|
|
241
|
-
uint128?: undefined;
|
|
242
|
-
uint136?: undefined;
|
|
243
|
-
uint144?: undefined;
|
|
244
|
-
uint152?: undefined;
|
|
245
|
-
uint160?: undefined;
|
|
246
|
-
uint168?: undefined;
|
|
247
|
-
uint176?: undefined;
|
|
248
|
-
uint184?: undefined;
|
|
249
|
-
uint192?: undefined;
|
|
250
|
-
uint200?: undefined;
|
|
251
|
-
uint208?: undefined;
|
|
252
|
-
uint216?: undefined;
|
|
253
|
-
uint224?: undefined;
|
|
254
|
-
uint232?: undefined;
|
|
255
|
-
uint240?: undefined;
|
|
256
|
-
uint248?: undefined;
|
|
257
|
-
uint256?: undefined;
|
|
258
|
-
} | {
|
|
259
|
-
[key: string]: unknown;
|
|
260
|
-
}, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, SmartAccount<Name, TTransport, TChain>>) => Promise<`0x${string}`>;
|
|
261
|
-
deployContract: <const TAbi extends readonly unknown[] | import("viem").Abi, TChainOverride_1 extends Chain | undefined = undefined>(args: import("viem").DeployContractParameters<TAbi, undefined, SmartAccount<Name, TTransport, TChain>, TChainOverride_1> extends infer T ? { [K in keyof T]: import("viem").DeployContractParameters<TAbi, undefined, SmartAccount<Name, TTransport, TChain>, TChainOverride_1>[K]; } : never) => Promise<`0x${string}`>;
|
|
262
|
-
writeContract: <const TAbi_1 extends readonly unknown[] | import("viem").Abi, TFunctionName extends import("viem").ContractFunctionName<TAbi_1, "nonpayable" | "payable"> = import("viem").ContractFunctionName<TAbi_1, "nonpayable" | "payable">, TArgs extends import("viem").ContractFunctionArgs<TAbi_1, "nonpayable" | "payable", TFunctionName> = import("viem").ContractFunctionArgs<TAbi_1, "nonpayable" | "payable", TFunctionName>, TChainOverride_2 extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TArgs, undefined, SmartAccount<Name, TTransport, TChain>, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
263
|
-
prepareUserOperationRequest: <TTransport extends Transport>(args: {
|
|
264
|
-
userOperation: import("permissionless/types").PartialBy<import("permissionless").UserOperation, "sender" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData" | "signature">;
|
|
265
|
-
account?: import("permissionless/_types/accounts").SmartAccount | undefined;
|
|
266
|
-
sponsorUserOperation?: ((args: {
|
|
267
|
-
userOperation: import("permissionless").UserOperation;
|
|
268
|
-
entryPoint: `0x${string}`;
|
|
269
|
-
}) => Promise<import("permissionless").UserOperation>) | undefined;
|
|
270
|
-
}, stateOverrides?: import("permissionless/_types/types/bundler").StateOverrides | undefined) => Promise<{
|
|
271
|
-
sender: `0x${string}`;
|
|
272
|
-
nonce: bigint;
|
|
273
|
-
initCode: `0x${string}`;
|
|
274
|
-
callData: `0x${string}`;
|
|
275
|
-
callGasLimit: bigint;
|
|
276
|
-
verificationGasLimit: bigint;
|
|
277
|
-
preVerificationGas: bigint;
|
|
278
|
-
maxFeePerGas: bigint;
|
|
279
|
-
maxPriorityFeePerGas: bigint;
|
|
280
|
-
paymasterAndData: `0x${string}`;
|
|
281
|
-
signature: `0x${string}`;
|
|
282
|
-
}>;
|
|
283
|
-
sendUserOperation: <TTransport_1 extends Transport>(args: {
|
|
284
|
-
userOperation: import("permissionless/types").PartialBy<import("permissionless").UserOperation, "sender" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData" | "signature">;
|
|
285
|
-
account?: import("permissionless/_types/accounts").SmartAccount | undefined;
|
|
286
|
-
sponsorUserOperation?: ((args: {
|
|
287
|
-
userOperation: import("permissionless").UserOperation;
|
|
288
|
-
entryPoint: `0x${string}`;
|
|
289
|
-
}) => Promise<import("permissionless").UserOperation>) | undefined;
|
|
290
|
-
}) => Promise<`0x${string}`>;
|
|
291
|
-
sendTransactions: (args: {
|
|
292
|
-
transactions: {
|
|
293
|
-
to: `0x${string}`;
|
|
294
|
-
value: bigint;
|
|
295
|
-
data: `0x${string}`;
|
|
296
|
-
}[];
|
|
297
|
-
account?: import("permissionless/_types/accounts").SmartAccount | undefined;
|
|
298
|
-
sponsorUserOperation?: ((args: {
|
|
299
|
-
userOperation: import("permissionless").UserOperation;
|
|
300
|
-
entryPoint: `0x${string}`;
|
|
301
|
-
}) => Promise<import("permissionless").UserOperation>) | undefined;
|
|
302
|
-
maxFeePerGas?: bigint | undefined;
|
|
303
|
-
maxPriorityFeePerGas?: bigint | undefined;
|
|
304
|
-
nonce?: bigint | undefined;
|
|
305
|
-
}) => Promise<`0x${string}`>;
|
|
306
|
-
extend: <const client extends {
|
|
307
|
-
[x: string]: unknown;
|
|
308
|
-
account?: undefined;
|
|
309
|
-
batch?: undefined;
|
|
310
|
-
cacheTime?: undefined;
|
|
311
|
-
chain?: undefined;
|
|
312
|
-
key?: undefined;
|
|
313
|
-
name?: undefined;
|
|
314
|
-
pollingInterval?: undefined;
|
|
315
|
-
request?: undefined;
|
|
316
|
-
transport?: undefined;
|
|
317
|
-
type?: undefined;
|
|
318
|
-
uid?: undefined;
|
|
319
|
-
} & Partial<Pick<import("viem").PublicActions, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<SmartAccountParameters<X, TTransport, TChain, TSource, TAddress>["bundlerTransport"], undefined, SmartAccount<Name, TTransport, TChain>, import("permissionless/_types/types/bundler").BundlerRpcSchema, import("permissionless").SmartAccountActions<undefined, SmartAccount<Name, TTransport, TChain>>>) => client) => import("viem").Client<SmartAccountParameters<X, TTransport, TChain, TSource, TAddress>["bundlerTransport"], undefined, SmartAccount<Name, TTransport, TChain>, import("permissionless/_types/types/bundler").BundlerRpcSchema, { [K_1 in keyof client]: client[K_1]; } & import("permissionless").SmartAccountActions<undefined, SmartAccount<Name, TTransport, TChain>>>;
|
|
320
|
-
} & {
|
|
321
|
-
estimateGas?: (() => bigint | undefined) | undefined;
|
|
322
|
-
}>;
|
|
323
|
-
}, {}>>;
|
|
324
|
-
export declare function simpleSmartAccount<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = "custom", TAddress extends Address = Address>({ publicClient, signer, bundlerTransport, sponsorUserOperation, ...rest }: SimpleSmartAccountParameters<TTransport, TChain, TSource, TAddress>): Promise<import("wagmi").CreateConnectorFn<unknown, {
|
|
325
|
-
id: string;
|
|
326
|
-
name: string;
|
|
327
|
-
type: string;
|
|
328
|
-
connect: ({ chainId }?: {
|
|
329
|
-
chainId?: number | undefined;
|
|
330
|
-
isReconnecting?: boolean | undefined;
|
|
331
|
-
} | undefined) => Promise<{
|
|
332
|
-
accounts: `0x${string}`[];
|
|
333
|
-
chainId: number;
|
|
334
|
-
}>;
|
|
335
|
-
disconnect: () => Promise<void>;
|
|
336
|
-
getAccounts: () => Promise<`0x${string}`[]>;
|
|
337
|
-
getChainId: () => Promise<number>;
|
|
338
|
-
getProvider: () => Promise<void>;
|
|
339
|
-
isAuthorized: () => Promise<true>;
|
|
340
|
-
onAccountsChanged: () => void;
|
|
341
|
-
onChainChanged: () => void;
|
|
342
|
-
onDisconnect: () => void;
|
|
343
|
-
getClient: ({ chainId: requestedChainId }: {
|
|
344
|
-
chainId: number;
|
|
345
|
-
}) => Promise<{
|
|
346
|
-
account: SmartAccount<"SimpleSmartAccount", TTransport, TChain>;
|
|
347
|
-
batch?: {
|
|
348
|
-
multicall?: boolean | {
|
|
349
|
-
batchSize?: number | undefined;
|
|
350
|
-
wait?: number | undefined;
|
|
351
|
-
} | undefined;
|
|
352
|
-
} | undefined;
|
|
353
|
-
cacheTime: number;
|
|
354
|
-
chain: undefined;
|
|
355
|
-
key: string;
|
|
356
|
-
name: string;
|
|
357
|
-
pollingInterval: number;
|
|
358
|
-
request: import("viem").EIP1193RequestFn<import("permissionless/_types/types/bundler").BundlerRpcSchema>;
|
|
359
|
-
transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
|
|
360
|
-
type: string;
|
|
361
|
-
uid: string;
|
|
362
|
-
sendTransaction: <TChainOverride extends Chain | undefined>(args: import("viem").SendTransactionParameters<undefined, SmartAccount<"SimpleSmartAccount", TTransport, TChain>, TChainOverride>) => Promise<`0x${string}`>;
|
|
363
|
-
signMessage: (args: import("viem").SignMessageParameters<SmartAccount<"SimpleSmartAccount", TTransport, TChain>>) => Promise<`0x${string}`>;
|
|
364
|
-
signTypedData: <const TTypedData extends {
|
|
365
|
-
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
366
|
-
[x: `string[${string}]`]: undefined;
|
|
367
|
-
[x: `function[${string}]`]: undefined;
|
|
368
|
-
[x: `address[${string}]`]: undefined;
|
|
369
|
-
[x: `bool[${string}]`]: undefined;
|
|
370
|
-
[x: `bytes[${string}]`]: undefined;
|
|
371
|
-
[x: `bytes1[${string}]`]: undefined;
|
|
372
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
373
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
374
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
375
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
376
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
377
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
378
|
-
[x: `bytes7[${string}]`]: undefined;
|
|
379
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
380
|
-
[x: `bytes9[${string}]`]: undefined;
|
|
381
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
382
|
-
[x: `bytes11[${string}]`]: undefined;
|
|
383
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
384
|
-
[x: `bytes13[${string}]`]: undefined;
|
|
385
|
-
[x: `bytes14[${string}]`]: undefined;
|
|
386
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
387
|
-
[x: `bytes17[${string}]`]: undefined;
|
|
388
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
389
|
-
[x: `bytes19[${string}]`]: undefined;
|
|
390
|
-
[x: `bytes20[${string}]`]: undefined;
|
|
391
|
-
[x: `bytes21[${string}]`]: undefined;
|
|
392
|
-
[x: `bytes22[${string}]`]: undefined;
|
|
393
|
-
[x: `bytes23[${string}]`]: undefined;
|
|
394
|
-
[x: `bytes24[${string}]`]: undefined;
|
|
395
|
-
[x: `bytes25[${string}]`]: undefined;
|
|
396
|
-
[x: `bytes26[${string}]`]: undefined;
|
|
397
|
-
[x: `bytes27[${string}]`]: undefined;
|
|
398
|
-
[x: `bytes28[${string}]`]: undefined;
|
|
399
|
-
[x: `bytes29[${string}]`]: undefined;
|
|
400
|
-
[x: `bytes30[${string}]`]: undefined;
|
|
401
|
-
[x: `bytes31[${string}]`]: undefined;
|
|
402
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
403
|
-
[x: `int[${string}]`]: undefined;
|
|
404
|
-
[x: `int40[${string}]`]: undefined;
|
|
405
|
-
[x: `int16[${string}]`]: undefined;
|
|
406
|
-
[x: `int56[${string}]`]: undefined;
|
|
407
|
-
[x: `int8[${string}]`]: undefined;
|
|
408
|
-
[x: `int24[${string}]`]: undefined;
|
|
409
|
-
[x: `int32[${string}]`]: undefined;
|
|
410
|
-
[x: `int48[${string}]`]: undefined;
|
|
411
|
-
[x: `int64[${string}]`]: undefined;
|
|
412
|
-
[x: `int72[${string}]`]: undefined;
|
|
413
|
-
[x: `int80[${string}]`]: undefined;
|
|
414
|
-
[x: `int88[${string}]`]: undefined;
|
|
415
|
-
[x: `int96[${string}]`]: undefined;
|
|
416
|
-
[x: `int104[${string}]`]: undefined;
|
|
417
|
-
[x: `int112[${string}]`]: undefined;
|
|
418
|
-
[x: `int120[${string}]`]: undefined;
|
|
419
|
-
[x: `int128[${string}]`]: undefined;
|
|
420
|
-
[x: `int136[${string}]`]: undefined;
|
|
421
|
-
[x: `int144[${string}]`]: undefined;
|
|
422
|
-
[x: `int152[${string}]`]: undefined;
|
|
423
|
-
[x: `int160[${string}]`]: undefined;
|
|
424
|
-
[x: `int168[${string}]`]: undefined;
|
|
425
|
-
[x: `int176[${string}]`]: undefined;
|
|
426
|
-
[x: `int184[${string}]`]: undefined;
|
|
427
|
-
[x: `int192[${string}]`]: undefined;
|
|
428
|
-
[x: `int200[${string}]`]: undefined;
|
|
429
|
-
[x: `int208[${string}]`]: undefined;
|
|
430
|
-
[x: `int216[${string}]`]: undefined;
|
|
431
|
-
[x: `int224[${string}]`]: undefined;
|
|
432
|
-
[x: `int232[${string}]`]: undefined;
|
|
433
|
-
[x: `int240[${string}]`]: undefined;
|
|
434
|
-
[x: `int248[${string}]`]: undefined;
|
|
435
|
-
[x: `int256[${string}]`]: undefined;
|
|
436
|
-
[x: `uint[${string}]`]: undefined;
|
|
437
|
-
[x: `uint40[${string}]`]: undefined;
|
|
438
|
-
[x: `uint16[${string}]`]: undefined;
|
|
439
|
-
[x: `uint56[${string}]`]: undefined;
|
|
440
|
-
[x: `uint8[${string}]`]: undefined;
|
|
441
|
-
[x: `uint24[${string}]`]: undefined;
|
|
442
|
-
[x: `uint32[${string}]`]: undefined;
|
|
443
|
-
[x: `uint48[${string}]`]: undefined;
|
|
444
|
-
[x: `uint64[${string}]`]: undefined;
|
|
445
|
-
[x: `uint72[${string}]`]: undefined;
|
|
446
|
-
[x: `uint80[${string}]`]: undefined;
|
|
447
|
-
[x: `uint88[${string}]`]: undefined;
|
|
448
|
-
[x: `uint96[${string}]`]: undefined;
|
|
449
|
-
[x: `uint104[${string}]`]: undefined;
|
|
450
|
-
[x: `uint112[${string}]`]: undefined;
|
|
451
|
-
[x: `uint120[${string}]`]: undefined;
|
|
452
|
-
[x: `uint128[${string}]`]: undefined;
|
|
453
|
-
[x: `uint136[${string}]`]: undefined;
|
|
454
|
-
[x: `uint144[${string}]`]: undefined;
|
|
455
|
-
[x: `uint152[${string}]`]: undefined;
|
|
456
|
-
[x: `uint160[${string}]`]: undefined;
|
|
457
|
-
[x: `uint168[${string}]`]: undefined;
|
|
458
|
-
[x: `uint176[${string}]`]: undefined;
|
|
459
|
-
[x: `uint184[${string}]`]: undefined;
|
|
460
|
-
[x: `uint192[${string}]`]: undefined;
|
|
461
|
-
[x: `uint200[${string}]`]: undefined;
|
|
462
|
-
[x: `uint208[${string}]`]: undefined;
|
|
463
|
-
[x: `uint216[${string}]`]: undefined;
|
|
464
|
-
[x: `uint224[${string}]`]: undefined;
|
|
465
|
-
[x: `uint232[${string}]`]: undefined;
|
|
466
|
-
[x: `uint240[${string}]`]: undefined;
|
|
467
|
-
[x: `uint248[${string}]`]: undefined;
|
|
468
|
-
[x: `uint256[${string}]`]: undefined;
|
|
469
|
-
string?: undefined;
|
|
470
|
-
address?: undefined;
|
|
471
|
-
bool?: undefined;
|
|
472
|
-
bytes?: undefined;
|
|
473
|
-
bytes1?: undefined;
|
|
474
|
-
bytes16?: undefined;
|
|
475
|
-
bytes2?: undefined;
|
|
476
|
-
bytes3?: undefined;
|
|
477
|
-
bytes4?: undefined;
|
|
478
|
-
bytes5?: undefined;
|
|
479
|
-
bytes6?: undefined;
|
|
480
|
-
bytes7?: undefined;
|
|
481
|
-
bytes8?: undefined;
|
|
482
|
-
bytes9?: undefined;
|
|
483
|
-
bytes10?: undefined;
|
|
484
|
-
bytes11?: undefined;
|
|
485
|
-
bytes12?: undefined;
|
|
486
|
-
bytes13?: undefined;
|
|
487
|
-
bytes14?: undefined;
|
|
488
|
-
bytes15?: undefined;
|
|
489
|
-
bytes17?: undefined;
|
|
490
|
-
bytes18?: undefined;
|
|
491
|
-
bytes19?: undefined;
|
|
492
|
-
bytes20?: undefined;
|
|
493
|
-
bytes21?: undefined;
|
|
494
|
-
bytes22?: undefined;
|
|
495
|
-
bytes23?: undefined;
|
|
496
|
-
bytes24?: undefined;
|
|
497
|
-
bytes25?: undefined;
|
|
498
|
-
bytes26?: undefined;
|
|
499
|
-
bytes27?: undefined;
|
|
500
|
-
bytes28?: undefined;
|
|
501
|
-
bytes29?: undefined;
|
|
502
|
-
bytes30?: undefined;
|
|
503
|
-
bytes31?: undefined;
|
|
504
|
-
bytes32?: undefined;
|
|
505
|
-
int40?: undefined;
|
|
506
|
-
int16?: undefined;
|
|
507
|
-
int56?: undefined;
|
|
508
|
-
int8?: undefined;
|
|
509
|
-
int24?: undefined;
|
|
510
|
-
int32?: undefined;
|
|
511
|
-
int48?: undefined;
|
|
512
|
-
int64?: undefined;
|
|
513
|
-
int72?: undefined;
|
|
514
|
-
int80?: undefined;
|
|
515
|
-
int88?: undefined;
|
|
516
|
-
int96?: undefined;
|
|
517
|
-
int104?: undefined;
|
|
518
|
-
int112?: undefined;
|
|
519
|
-
int120?: undefined;
|
|
520
|
-
int128?: undefined;
|
|
521
|
-
int136?: undefined;
|
|
522
|
-
int144?: undefined;
|
|
523
|
-
int152?: undefined;
|
|
524
|
-
int160?: undefined;
|
|
525
|
-
int168?: undefined;
|
|
526
|
-
int176?: undefined;
|
|
527
|
-
int184?: undefined;
|
|
528
|
-
int192?: undefined;
|
|
529
|
-
int200?: undefined;
|
|
530
|
-
int208?: undefined;
|
|
531
|
-
int216?: undefined;
|
|
532
|
-
int224?: undefined;
|
|
533
|
-
int232?: undefined;
|
|
534
|
-
int240?: undefined;
|
|
535
|
-
int248?: undefined;
|
|
536
|
-
int256?: undefined;
|
|
537
|
-
uint40?: undefined;
|
|
538
|
-
uint16?: undefined;
|
|
539
|
-
uint56?: undefined;
|
|
540
|
-
uint8?: undefined;
|
|
541
|
-
uint24?: undefined;
|
|
542
|
-
uint32?: undefined;
|
|
543
|
-
uint48?: undefined;
|
|
544
|
-
uint64?: undefined;
|
|
545
|
-
uint72?: undefined;
|
|
546
|
-
uint80?: undefined;
|
|
547
|
-
uint88?: undefined;
|
|
548
|
-
uint96?: undefined;
|
|
549
|
-
uint104?: undefined;
|
|
550
|
-
uint112?: undefined;
|
|
551
|
-
uint120?: undefined;
|
|
552
|
-
uint128?: undefined;
|
|
553
|
-
uint136?: undefined;
|
|
554
|
-
uint144?: undefined;
|
|
555
|
-
uint152?: undefined;
|
|
556
|
-
uint160?: undefined;
|
|
557
|
-
uint168?: undefined;
|
|
558
|
-
uint176?: undefined;
|
|
559
|
-
uint184?: undefined;
|
|
560
|
-
uint192?: undefined;
|
|
561
|
-
uint200?: undefined;
|
|
562
|
-
uint208?: undefined;
|
|
563
|
-
uint216?: undefined;
|
|
564
|
-
uint224?: undefined;
|
|
565
|
-
uint232?: undefined;
|
|
566
|
-
uint240?: undefined;
|
|
567
|
-
uint248?: undefined;
|
|
568
|
-
uint256?: undefined;
|
|
569
|
-
} | {
|
|
570
|
-
[key: string]: unknown;
|
|
571
|
-
}, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, SmartAccount<"SimpleSmartAccount", TTransport, TChain>>) => Promise<`0x${string}`>;
|
|
572
|
-
deployContract: <const TAbi extends readonly unknown[] | import("viem").Abi, TChainOverride_1 extends Chain | undefined = undefined>(args: import("viem").DeployContractParameters<TAbi, undefined, SmartAccount<"SimpleSmartAccount", TTransport, TChain>, TChainOverride_1> extends infer T ? { [K in keyof T]: import("viem").DeployContractParameters<TAbi, undefined, SmartAccount<"SimpleSmartAccount", TTransport, TChain>, TChainOverride_1>[K]; } : never) => Promise<`0x${string}`>;
|
|
573
|
-
writeContract: <const TAbi_1 extends readonly unknown[] | import("viem").Abi, TFunctionName extends import("viem").ContractFunctionName<TAbi_1, "nonpayable" | "payable"> = import("viem").ContractFunctionName<TAbi_1, "nonpayable" | "payable">, TArgs extends import("viem").ContractFunctionArgs<TAbi_1, "nonpayable" | "payable", TFunctionName> = import("viem").ContractFunctionArgs<TAbi_1, "nonpayable" | "payable", TFunctionName>, TChainOverride_2 extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TArgs, undefined, SmartAccount<"SimpleSmartAccount", TTransport, TChain>, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
574
|
-
prepareUserOperationRequest: <TTransport extends Transport>(args: {
|
|
575
|
-
userOperation: import("permissionless/types").PartialBy<import("permissionless").UserOperation, "sender" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData" | "signature">;
|
|
576
|
-
account?: import("permissionless/_types/accounts").SmartAccount | undefined;
|
|
577
|
-
sponsorUserOperation?: ((args: {
|
|
578
|
-
userOperation: import("permissionless").UserOperation;
|
|
579
|
-
entryPoint: `0x${string}`;
|
|
580
|
-
}) => Promise<import("permissionless").UserOperation>) | undefined;
|
|
581
|
-
}, stateOverrides?: import("permissionless/_types/types/bundler").StateOverrides | undefined) => Promise<{
|
|
582
|
-
sender: `0x${string}`;
|
|
583
|
-
nonce: bigint;
|
|
584
|
-
initCode: `0x${string}`;
|
|
585
|
-
callData: `0x${string}`;
|
|
586
|
-
callGasLimit: bigint;
|
|
587
|
-
verificationGasLimit: bigint;
|
|
588
|
-
preVerificationGas: bigint;
|
|
589
|
-
maxFeePerGas: bigint;
|
|
590
|
-
maxPriorityFeePerGas: bigint;
|
|
591
|
-
paymasterAndData: `0x${string}`;
|
|
592
|
-
signature: `0x${string}`;
|
|
593
|
-
}>;
|
|
594
|
-
sendUserOperation: <TTransport_1 extends Transport>(args: {
|
|
595
|
-
userOperation: import("permissionless/types").PartialBy<import("permissionless").UserOperation, "sender" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData" | "signature">;
|
|
596
|
-
account?: import("permissionless/_types/accounts").SmartAccount | undefined;
|
|
597
|
-
sponsorUserOperation?: ((args: {
|
|
598
|
-
userOperation: import("permissionless").UserOperation;
|
|
599
|
-
entryPoint: `0x${string}`;
|
|
600
|
-
}) => Promise<import("permissionless").UserOperation>) | undefined;
|
|
601
|
-
}) => Promise<`0x${string}`>;
|
|
602
|
-
sendTransactions: (args: {
|
|
603
|
-
transactions: {
|
|
604
|
-
to: `0x${string}`;
|
|
605
|
-
value: bigint;
|
|
606
|
-
data: `0x${string}`;
|
|
607
|
-
}[];
|
|
608
|
-
account?: import("permissionless/_types/accounts").SmartAccount | undefined;
|
|
609
|
-
sponsorUserOperation?: ((args: {
|
|
610
|
-
userOperation: import("permissionless").UserOperation;
|
|
611
|
-
entryPoint: `0x${string}`;
|
|
612
|
-
}) => Promise<import("permissionless").UserOperation>) | undefined;
|
|
613
|
-
maxFeePerGas?: bigint | undefined;
|
|
614
|
-
maxPriorityFeePerGas?: bigint | undefined;
|
|
615
|
-
nonce?: bigint | undefined;
|
|
616
|
-
}) => Promise<`0x${string}`>;
|
|
617
|
-
extend: <const client extends {
|
|
618
|
-
[x: string]: unknown;
|
|
619
|
-
account?: undefined;
|
|
620
|
-
batch?: undefined;
|
|
621
|
-
cacheTime?: undefined;
|
|
622
|
-
chain?: undefined;
|
|
623
|
-
key?: undefined;
|
|
624
|
-
name?: undefined;
|
|
625
|
-
pollingInterval?: undefined;
|
|
626
|
-
request?: undefined;
|
|
627
|
-
transport?: undefined;
|
|
628
|
-
type?: undefined;
|
|
629
|
-
uid?: undefined;
|
|
630
|
-
} & Partial<Pick<import("viem").PublicActions, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<TTransport, undefined, SmartAccount<"SimpleSmartAccount", TTransport, TChain>, import("permissionless/_types/types/bundler").BundlerRpcSchema, import("permissionless").SmartAccountActions<undefined, SmartAccount<"SimpleSmartAccount", TTransport, TChain>>>) => client) => import("viem").Client<TTransport, undefined, SmartAccount<"SimpleSmartAccount", TTransport, TChain>, import("permissionless/_types/types/bundler").BundlerRpcSchema, { [K_1 in keyof client]: client[K_1]; } & import("permissionless").SmartAccountActions<undefined, SmartAccount<"SimpleSmartAccount", TTransport, TChain>>>;
|
|
631
|
-
} & {
|
|
632
|
-
estimateGas?: (() => bigint | undefined) | undefined;
|
|
633
|
-
}>;
|
|
634
|
-
}, {}>>;
|
|
635
|
-
//# sourceMappingURL=simpleSmartAccount.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simpleSmartAccount.d.ts","sourceRoot":"","sources":["../../connectors/simpleSmartAccount.ts"],"names":[],"mappings":"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"}
|