@account-kit/wallet-client 0.1.0-alpha.5 → 0.1.0-alpha.7
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/esm/capabilities/eip7702Auth.js +3 -1
- package/dist/esm/capabilities/eip7702Auth.js.map +1 -1
- package/dist/esm/capabilities/overrides.js +8 -8
- package/dist/esm/capabilities/overrides.js.map +1 -1
- package/dist/esm/capabilities/permissions/index.d.ts +1 -1
- package/dist/esm/capabilities/permissions/index.js +6 -3
- package/dist/esm/capabilities/permissions/index.js.map +1 -1
- package/dist/esm/client/actions/grantPermissions.d.ts +5 -60
- package/dist/esm/client/actions/grantPermissions.js +5 -58
- package/dist/esm/client/actions/grantPermissions.js.map +1 -1
- package/dist/esm/client/actions/requestAccount.js +5 -2
- package/dist/esm/client/actions/requestAccount.js.map +1 -1
- package/dist/esm/client/actions/sendPreparedCalls.d.ts +6 -14
- package/dist/esm/client/actions/sendPreparedCalls.js +11 -12
- package/dist/esm/client/actions/sendPreparedCalls.js.map +1 -1
- package/dist/esm/client/actions/signPreparedCalls.d.ts +14 -0
- package/dist/esm/client/actions/signPreparedCalls.js +54 -0
- package/dist/esm/client/actions/signPreparedCalls.js.map +1 -0
- package/dist/esm/client/actions/signSignatureRequest.d.ts +8 -7
- package/dist/esm/client/actions/signSignatureRequest.js +69 -31
- package/dist/esm/client/actions/signSignatureRequest.js.map +1 -1
- package/dist/esm/client/client.e2e-test.js +80 -24
- package/dist/esm/client/client.e2e-test.js.map +1 -1
- package/dist/esm/client/decorator.d.ts +3 -1
- package/dist/esm/client/decorator.js +3 -1
- package/dist/esm/client/decorator.js.map +1 -1
- package/dist/esm/exports/index.d.ts +2 -1
- package/dist/esm/exports/index.js +2 -1
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/isomorphic/actions/createSession.js +18 -32
- package/dist/esm/isomorphic/actions/createSession.js.map +1 -1
- package/dist/esm/isomorphic/actions/prepareCalls.js +22 -16
- package/dist/esm/isomorphic/actions/prepareCalls.js.map +1 -1
- package/dist/esm/isomorphic/actions/sendPreparedCalls.d.ts +3 -3
- package/dist/esm/isomorphic/actions/sendPreparedCalls.js +76 -36
- package/dist/esm/isomorphic/actions/sendPreparedCalls.js.map +1 -1
- package/dist/esm/isomorphic/client.d.ts +139 -13
- package/dist/esm/isomorphic/utils/7702.d.ts +4 -3
- package/dist/esm/isomorphic/utils/7702.js +14 -6
- package/dist/esm/isomorphic/utils/7702.js.map +1 -1
- package/dist/esm/isomorphic/utils/decodeSignature.d.ts +3 -0
- package/dist/esm/isomorphic/utils/decodeSignature.js +13 -0
- package/dist/esm/isomorphic/utils/decodeSignature.js.map +1 -0
- package/dist/esm/local/client.js +2 -3
- package/dist/esm/local/client.js.map +1 -1
- package/dist/esm/remote/client.js +3 -7
- package/dist/esm/remote/client.js.map +1 -1
- package/dist/esm/rpc/examples.d.ts +3 -3
- package/dist/esm/rpc/examples.js +3 -3
- package/dist/esm/rpc/examples.js.map +1 -1
- package/dist/esm/rpc/request.d.ts +357 -49
- package/dist/esm/rpc/request.js +26 -53
- package/dist/esm/rpc/request.js.map +1 -1
- package/dist/esm/rpc/schema.d.ts +323 -57
- package/dist/esm/rpc/schema.js.map +1 -1
- package/dist/esm/schemas.d.ts +451 -13
- package/dist/esm/schemas.js +165 -52
- package/dist/esm/schemas.js.map +1 -1
- package/dist/esm/types.d.ts +3 -0
- package/dist/esm/types.js.map +1 -1
- package/dist/types/capabilities/eip7702Auth.d.ts.map +1 -1
- package/dist/types/capabilities/permissions/index.d.ts +1 -1
- package/dist/types/capabilities/permissions/index.d.ts.map +1 -1
- package/dist/types/client/actions/grantPermissions.d.ts +5 -60
- package/dist/types/client/actions/grantPermissions.d.ts.map +1 -1
- package/dist/types/client/actions/requestAccount.d.ts.map +1 -1
- package/dist/types/client/actions/sendPreparedCalls.d.ts +6 -14
- package/dist/types/client/actions/sendPreparedCalls.d.ts.map +1 -1
- package/dist/types/client/actions/signPreparedCalls.d.ts +15 -0
- package/dist/types/client/actions/signPreparedCalls.d.ts.map +1 -0
- package/dist/types/client/actions/signSignatureRequest.d.ts +8 -7
- package/dist/types/client/actions/signSignatureRequest.d.ts.map +1 -1
- package/dist/types/client/decorator.d.ts +3 -1
- package/dist/types/client/decorator.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +2 -1
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/isomorphic/actions/createSession.d.ts.map +1 -1
- package/dist/types/isomorphic/actions/prepareCalls.d.ts.map +1 -1
- package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts +3 -3
- package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts.map +1 -1
- package/dist/types/isomorphic/client.d.ts +139 -13
- package/dist/types/isomorphic/client.d.ts.map +1 -1
- package/dist/types/isomorphic/utils/7702.d.ts +4 -3
- package/dist/types/isomorphic/utils/7702.d.ts.map +1 -1
- package/dist/types/isomorphic/utils/decodeSignature.d.ts +4 -0
- package/dist/types/isomorphic/utils/decodeSignature.d.ts.map +1 -0
- package/dist/types/remote/client.d.ts.map +1 -1
- package/dist/types/rpc/examples.d.ts +3 -3
- package/dist/types/rpc/examples.d.ts.map +1 -1
- package/dist/types/rpc/request.d.ts +357 -49
- package/dist/types/rpc/request.d.ts.map +1 -1
- package/dist/types/rpc/schema.d.ts +323 -57
- package/dist/types/rpc/schema.d.ts.map +1 -1
- package/dist/types/schemas.d.ts +451 -13
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/types.d.ts +3 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/capabilities/eip7702Auth.ts +17 -10
- package/src/capabilities/overrides.ts +8 -8
- package/src/capabilities/permissions/index.ts +8 -3
- package/src/client/actions/grantPermissions.ts +5 -60
- package/src/client/actions/requestAccount.ts +10 -8
- package/src/client/actions/sendPreparedCalls.ts +17 -17
- package/src/client/actions/signPreparedCalls.ts +72 -0
- package/src/client/actions/signSignatureRequest.ts +50 -46
- package/src/client/client.e2e-test.ts +101 -33
- package/src/client/decorator.ts +14 -5
- package/src/exports/index.ts +2 -1
- package/src/isomorphic/actions/createSession.ts +20 -42
- package/src/isomorphic/actions/prepareCalls.ts +25 -17
- package/src/isomorphic/actions/sendPreparedCalls.ts +104 -54
- package/src/isomorphic/utils/7702.ts +18 -8
- package/src/isomorphic/utils/decodeSignature.ts +18 -0
- package/src/local/client.ts +2 -6
- package/src/remote/client.ts +3 -10
- package/src/rpc/examples.ts +3 -4
- package/src/rpc/request.ts +41 -63
- package/src/rpc/schema.ts +2 -2
- package/src/schemas.ts +227 -53
- package/src/types.ts +4 -0
|
@@ -2,6 +2,10 @@ export declare const WalletServerRpcSchema: {
|
|
|
2
2
|
Request: {
|
|
3
3
|
params: [{
|
|
4
4
|
capabilities?: {
|
|
5
|
+
eip7702Auth?: true | {
|
|
6
|
+
account?: `0x${string}` | undefined;
|
|
7
|
+
delegation: "ModularAccountV2" | "0x69007702764179f14F51cdce752f4f775d74E139";
|
|
8
|
+
} | undefined;
|
|
5
9
|
permissions?: {
|
|
6
10
|
context: `0x${string}`;
|
|
7
11
|
} | {
|
|
@@ -34,10 +38,6 @@ export declare const WalletServerRpcSchema: {
|
|
|
34
38
|
multiplier: number;
|
|
35
39
|
} | undefined;
|
|
36
40
|
} | undefined;
|
|
37
|
-
eip7702Auth?: true | {
|
|
38
|
-
account?: `0x${string}` | undefined;
|
|
39
|
-
delegation: "ModularAccountV2" | "0x69007702764179f14F51cdce752f4f775d74E139";
|
|
40
|
-
} | undefined;
|
|
41
41
|
} | undefined;
|
|
42
42
|
chainId: `0x${string}`;
|
|
43
43
|
calls: {
|
|
@@ -50,7 +50,108 @@ export declare const WalletServerRpcSchema: {
|
|
|
50
50
|
method: "wallet_prepareCalls";
|
|
51
51
|
};
|
|
52
52
|
ReturnType: {
|
|
53
|
-
type: "
|
|
53
|
+
type: "array";
|
|
54
|
+
data: ({
|
|
55
|
+
type: "user-operation-v060";
|
|
56
|
+
chainId: `0x${string}`;
|
|
57
|
+
data: {
|
|
58
|
+
sender: `0x${string}`;
|
|
59
|
+
nonce: `0x${string}`;
|
|
60
|
+
initCode: `0x${string}`;
|
|
61
|
+
callData: `0x${string}`;
|
|
62
|
+
callGasLimit: `0x${string}`;
|
|
63
|
+
verificationGasLimit: `0x${string}`;
|
|
64
|
+
preVerificationGas: `0x${string}`;
|
|
65
|
+
maxFeePerGas: `0x${string}`;
|
|
66
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
67
|
+
paymasterAndData: `0x${string}`;
|
|
68
|
+
};
|
|
69
|
+
signatureRequest: {
|
|
70
|
+
type: "eth_signTypedData_v4";
|
|
71
|
+
data: {
|
|
72
|
+
domain?: {
|
|
73
|
+
chainId?: number | undefined;
|
|
74
|
+
salt?: `0x${string}` | undefined;
|
|
75
|
+
name?: string | undefined;
|
|
76
|
+
verifyingContract?: `0x${string}` | undefined;
|
|
77
|
+
version?: string | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
types: {
|
|
80
|
+
[x: string]: {
|
|
81
|
+
type: string;
|
|
82
|
+
name: string;
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
primaryType: string;
|
|
86
|
+
message: {
|
|
87
|
+
[x: string]: unknown;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
} | {
|
|
91
|
+
type: "personal_sign";
|
|
92
|
+
data: string | {
|
|
93
|
+
raw: `0x${string}`;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
} | {
|
|
97
|
+
type: "user-operation-v070";
|
|
98
|
+
chainId: `0x${string}`;
|
|
99
|
+
data: {
|
|
100
|
+
factory?: `0x${string}` | undefined;
|
|
101
|
+
factoryData?: `0x${string}` | undefined;
|
|
102
|
+
paymaster?: `0x${string}` | undefined;
|
|
103
|
+
paymasterData?: `0x${string}` | undefined;
|
|
104
|
+
paymasterVerificationGasLimit?: `0x${string}` | undefined;
|
|
105
|
+
paymasterPostOpGasLimit?: `0x${string}` | undefined;
|
|
106
|
+
sender: `0x${string}`;
|
|
107
|
+
nonce: `0x${string}`;
|
|
108
|
+
callData: `0x${string}`;
|
|
109
|
+
callGasLimit: `0x${string}`;
|
|
110
|
+
verificationGasLimit: `0x${string}`;
|
|
111
|
+
preVerificationGas: `0x${string}`;
|
|
112
|
+
maxFeePerGas: `0x${string}`;
|
|
113
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
114
|
+
};
|
|
115
|
+
signatureRequest: {
|
|
116
|
+
type: "eth_signTypedData_v4";
|
|
117
|
+
data: {
|
|
118
|
+
domain?: {
|
|
119
|
+
chainId?: number | undefined;
|
|
120
|
+
salt?: `0x${string}` | undefined;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
verifyingContract?: `0x${string}` | undefined;
|
|
123
|
+
version?: string | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
types: {
|
|
126
|
+
[x: string]: {
|
|
127
|
+
type: string;
|
|
128
|
+
name: string;
|
|
129
|
+
}[];
|
|
130
|
+
};
|
|
131
|
+
primaryType: string;
|
|
132
|
+
message: {
|
|
133
|
+
[x: string]: unknown;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
} | {
|
|
137
|
+
type: "personal_sign";
|
|
138
|
+
data: string | {
|
|
139
|
+
raw: `0x${string}`;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
} | {
|
|
143
|
+
type: "authorization";
|
|
144
|
+
chainId: `0x${string}`;
|
|
145
|
+
data: {
|
|
146
|
+
nonce: `0x${string}`;
|
|
147
|
+
address: `0x${string}`;
|
|
148
|
+
};
|
|
149
|
+
signatureRequest: {
|
|
150
|
+
type: "eip7702Auth";
|
|
151
|
+
};
|
|
152
|
+
})[];
|
|
153
|
+
} | {
|
|
154
|
+
type: "user-operation-v060";
|
|
54
155
|
chainId: `0x${string}`;
|
|
55
156
|
data: {
|
|
56
157
|
sender: `0x${string}`;
|
|
@@ -63,7 +164,38 @@ export declare const WalletServerRpcSchema: {
|
|
|
63
164
|
maxFeePerGas: `0x${string}`;
|
|
64
165
|
maxPriorityFeePerGas: `0x${string}`;
|
|
65
166
|
paymasterAndData: `0x${string}`;
|
|
167
|
+
};
|
|
168
|
+
signatureRequest: {
|
|
169
|
+
type: "eth_signTypedData_v4";
|
|
170
|
+
data: {
|
|
171
|
+
domain?: {
|
|
172
|
+
chainId?: number | undefined;
|
|
173
|
+
salt?: `0x${string}` | undefined;
|
|
174
|
+
name?: string | undefined;
|
|
175
|
+
verifyingContract?: `0x${string}` | undefined;
|
|
176
|
+
version?: string | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
types: {
|
|
179
|
+
[x: string]: {
|
|
180
|
+
type: string;
|
|
181
|
+
name: string;
|
|
182
|
+
}[];
|
|
183
|
+
};
|
|
184
|
+
primaryType: string;
|
|
185
|
+
message: {
|
|
186
|
+
[x: string]: unknown;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
66
189
|
} | {
|
|
190
|
+
type: "personal_sign";
|
|
191
|
+
data: string | {
|
|
192
|
+
raw: `0x${string}`;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
} | {
|
|
196
|
+
type: "user-operation-v070";
|
|
197
|
+
chainId: `0x${string}`;
|
|
198
|
+
data: {
|
|
67
199
|
factory?: `0x${string}` | undefined;
|
|
68
200
|
factoryData?: `0x${string}` | undefined;
|
|
69
201
|
paymaster?: `0x${string}` | undefined;
|
|
@@ -79,12 +211,7 @@ export declare const WalletServerRpcSchema: {
|
|
|
79
211
|
maxFeePerGas: `0x${string}`;
|
|
80
212
|
maxPriorityFeePerGas: `0x${string}`;
|
|
81
213
|
};
|
|
82
|
-
signatureRequest:
|
|
83
|
-
type: "personal_sign";
|
|
84
|
-
data: string | {
|
|
85
|
-
raw: `0x${string}`;
|
|
86
|
-
};
|
|
87
|
-
} | {
|
|
214
|
+
signatureRequest: {
|
|
88
215
|
type: "eth_signTypedData_v4";
|
|
89
216
|
data: {
|
|
90
217
|
domain?: {
|
|
@@ -105,38 +232,133 @@ export declare const WalletServerRpcSchema: {
|
|
|
105
232
|
[x: string]: unknown;
|
|
106
233
|
};
|
|
107
234
|
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
} | undefined;
|
|
235
|
+
} | {
|
|
236
|
+
type: "personal_sign";
|
|
237
|
+
data: string | {
|
|
238
|
+
raw: `0x${string}`;
|
|
239
|
+
};
|
|
114
240
|
};
|
|
115
241
|
};
|
|
116
242
|
} | {
|
|
117
243
|
Request: {
|
|
118
|
-
params: [{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
244
|
+
params: [({
|
|
245
|
+
type: "array";
|
|
246
|
+
data: (({
|
|
247
|
+
type: "user-operation-v060";
|
|
248
|
+
chainId: `0x${string}`;
|
|
249
|
+
data: {
|
|
250
|
+
sender: `0x${string}`;
|
|
251
|
+
nonce: `0x${string}`;
|
|
252
|
+
initCode: `0x${string}`;
|
|
253
|
+
callData: `0x${string}`;
|
|
254
|
+
callGasLimit: `0x${string}`;
|
|
255
|
+
verificationGasLimit: `0x${string}`;
|
|
256
|
+
preVerificationGas: `0x${string}`;
|
|
257
|
+
maxFeePerGas: `0x${string}`;
|
|
258
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
259
|
+
paymasterAndData: `0x${string}`;
|
|
260
|
+
};
|
|
261
|
+
} & {
|
|
262
|
+
signature: {
|
|
263
|
+
type: "secp256k1";
|
|
264
|
+
data: `0x${string}` | {
|
|
265
|
+
r: `0x${string}`;
|
|
266
|
+
s: `0x${string}`;
|
|
267
|
+
yParity: `0x${string}`;
|
|
268
|
+
} | {
|
|
269
|
+
r: `0x${string}`;
|
|
270
|
+
s: `0x${string}`;
|
|
271
|
+
v: `0x${string}`;
|
|
272
|
+
};
|
|
122
273
|
} | {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
274
|
+
type: "ecdsa";
|
|
275
|
+
data: `0x${string}` | {
|
|
276
|
+
r: `0x${string}`;
|
|
277
|
+
s: `0x${string}`;
|
|
278
|
+
yParity: `0x${string}`;
|
|
279
|
+
} | {
|
|
280
|
+
r: `0x${string}`;
|
|
281
|
+
s: `0x${string}`;
|
|
282
|
+
v: `0x${string}`;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
}) | ({
|
|
286
|
+
type: "user-operation-v070";
|
|
129
287
|
chainId: `0x${string}`;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
288
|
+
data: {
|
|
289
|
+
factory?: `0x${string}` | undefined;
|
|
290
|
+
factoryData?: `0x${string}` | undefined;
|
|
291
|
+
paymaster?: `0x${string}` | undefined;
|
|
292
|
+
paymasterData?: `0x${string}` | undefined;
|
|
293
|
+
paymasterVerificationGasLimit?: `0x${string}` | undefined;
|
|
294
|
+
paymasterPostOpGasLimit?: `0x${string}` | undefined;
|
|
295
|
+
sender: `0x${string}`;
|
|
296
|
+
nonce: `0x${string}`;
|
|
297
|
+
callData: `0x${string}`;
|
|
298
|
+
callGasLimit: `0x${string}`;
|
|
299
|
+
verificationGasLimit: `0x${string}`;
|
|
300
|
+
preVerificationGas: `0x${string}`;
|
|
301
|
+
maxFeePerGas: `0x${string}`;
|
|
302
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
303
|
+
};
|
|
304
|
+
} & {
|
|
305
|
+
signature: {
|
|
306
|
+
type: "secp256k1";
|
|
307
|
+
data: `0x${string}` | {
|
|
308
|
+
r: `0x${string}`;
|
|
309
|
+
s: `0x${string}`;
|
|
310
|
+
yParity: `0x${string}`;
|
|
311
|
+
} | {
|
|
312
|
+
r: `0x${string}`;
|
|
313
|
+
s: `0x${string}`;
|
|
314
|
+
v: `0x${string}`;
|
|
315
|
+
};
|
|
316
|
+
} | {
|
|
317
|
+
type: "ecdsa";
|
|
318
|
+
data: `0x${string}` | {
|
|
319
|
+
r: `0x${string}`;
|
|
320
|
+
s: `0x${string}`;
|
|
321
|
+
yParity: `0x${string}`;
|
|
322
|
+
} | {
|
|
323
|
+
r: `0x${string}`;
|
|
324
|
+
s: `0x${string}`;
|
|
325
|
+
v: `0x${string}`;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
}) | ({
|
|
329
|
+
type: "authorization";
|
|
330
|
+
chainId: `0x${string}`;
|
|
331
|
+
data: {
|
|
332
|
+
nonce: `0x${string}`;
|
|
333
|
+
address: `0x${string}`;
|
|
334
|
+
};
|
|
335
|
+
} & {
|
|
336
|
+
signature: {
|
|
337
|
+
type: "secp256k1";
|
|
338
|
+
data: `0x${string}` | {
|
|
339
|
+
r: `0x${string}`;
|
|
340
|
+
s: `0x${string}`;
|
|
341
|
+
yParity: `0x${string}`;
|
|
342
|
+
} | {
|
|
343
|
+
r: `0x${string}`;
|
|
344
|
+
s: `0x${string}`;
|
|
345
|
+
v: `0x${string}`;
|
|
346
|
+
};
|
|
347
|
+
} | {
|
|
348
|
+
type: "ecdsa";
|
|
349
|
+
data: `0x${string}` | {
|
|
350
|
+
r: `0x${string}`;
|
|
351
|
+
s: `0x${string}`;
|
|
352
|
+
yParity: `0x${string}`;
|
|
353
|
+
} | {
|
|
354
|
+
r: `0x${string}`;
|
|
355
|
+
s: `0x${string}`;
|
|
356
|
+
v: `0x${string}`;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
}))[];
|
|
360
|
+
} | ({
|
|
361
|
+
type: "user-operation-v060";
|
|
140
362
|
chainId: `0x${string}`;
|
|
141
363
|
data: {
|
|
142
364
|
sender: `0x${string}`;
|
|
@@ -149,7 +371,35 @@ export declare const WalletServerRpcSchema: {
|
|
|
149
371
|
maxFeePerGas: `0x${string}`;
|
|
150
372
|
maxPriorityFeePerGas: `0x${string}`;
|
|
151
373
|
paymasterAndData: `0x${string}`;
|
|
374
|
+
};
|
|
375
|
+
} & {
|
|
376
|
+
signature: {
|
|
377
|
+
type: "secp256k1";
|
|
378
|
+
data: `0x${string}` | {
|
|
379
|
+
r: `0x${string}`;
|
|
380
|
+
s: `0x${string}`;
|
|
381
|
+
yParity: `0x${string}`;
|
|
382
|
+
} | {
|
|
383
|
+
r: `0x${string}`;
|
|
384
|
+
s: `0x${string}`;
|
|
385
|
+
v: `0x${string}`;
|
|
386
|
+
};
|
|
152
387
|
} | {
|
|
388
|
+
type: "ecdsa";
|
|
389
|
+
data: `0x${string}` | {
|
|
390
|
+
r: `0x${string}`;
|
|
391
|
+
s: `0x${string}`;
|
|
392
|
+
yParity: `0x${string}`;
|
|
393
|
+
} | {
|
|
394
|
+
r: `0x${string}`;
|
|
395
|
+
s: `0x${string}`;
|
|
396
|
+
v: `0x${string}`;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
}) | ({
|
|
400
|
+
type: "user-operation-v070";
|
|
401
|
+
chainId: `0x${string}`;
|
|
402
|
+
data: {
|
|
153
403
|
factory?: `0x${string}` | undefined;
|
|
154
404
|
factoryData?: `0x${string}` | undefined;
|
|
155
405
|
paymaster?: `0x${string}` | undefined;
|
|
@@ -165,6 +415,39 @@ export declare const WalletServerRpcSchema: {
|
|
|
165
415
|
maxFeePerGas: `0x${string}`;
|
|
166
416
|
maxPriorityFeePerGas: `0x${string}`;
|
|
167
417
|
};
|
|
418
|
+
} & {
|
|
419
|
+
signature: {
|
|
420
|
+
type: "secp256k1";
|
|
421
|
+
data: `0x${string}` | {
|
|
422
|
+
r: `0x${string}`;
|
|
423
|
+
s: `0x${string}`;
|
|
424
|
+
yParity: `0x${string}`;
|
|
425
|
+
} | {
|
|
426
|
+
r: `0x${string}`;
|
|
427
|
+
s: `0x${string}`;
|
|
428
|
+
v: `0x${string}`;
|
|
429
|
+
};
|
|
430
|
+
} | {
|
|
431
|
+
type: "ecdsa";
|
|
432
|
+
data: `0x${string}` | {
|
|
433
|
+
r: `0x${string}`;
|
|
434
|
+
s: `0x${string}`;
|
|
435
|
+
yParity: `0x${string}`;
|
|
436
|
+
} | {
|
|
437
|
+
r: `0x${string}`;
|
|
438
|
+
s: `0x${string}`;
|
|
439
|
+
v: `0x${string}`;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
})) & {
|
|
443
|
+
capabilities?: {
|
|
444
|
+
permissions?: {
|
|
445
|
+
context: `0x${string}`;
|
|
446
|
+
} | {
|
|
447
|
+
signature: `0x${string}`;
|
|
448
|
+
sessionId: `0x${string}`;
|
|
449
|
+
} | undefined;
|
|
450
|
+
} | undefined;
|
|
168
451
|
}];
|
|
169
452
|
method: "wallet_sendPreparedCalls";
|
|
170
453
|
};
|
|
@@ -239,7 +522,7 @@ export declare const WalletServerRpcSchema: {
|
|
|
239
522
|
} | {
|
|
240
523
|
Request: {
|
|
241
524
|
params: [{
|
|
242
|
-
|
|
525
|
+
expirySec?: number | undefined;
|
|
243
526
|
chainId: `0x${string}`;
|
|
244
527
|
key: {
|
|
245
528
|
type: "secp256k1" | "ecdsa" | "contract";
|
|
@@ -287,24 +570,12 @@ export declare const WalletServerRpcSchema: {
|
|
|
287
570
|
type: "root";
|
|
288
571
|
})[];
|
|
289
572
|
} & {
|
|
290
|
-
capabilities?: {
|
|
291
|
-
eip7702Auth?: true | {
|
|
292
|
-
account?: `0x${string}` | undefined;
|
|
293
|
-
delegation: "ModularAccountV2" | "0x69007702764179f14F51cdce752f4f775d74E139";
|
|
294
|
-
} | undefined;
|
|
295
|
-
} | undefined;
|
|
296
573
|
account: `0x${string}`;
|
|
297
574
|
}];
|
|
298
575
|
method: "wallet_createSession";
|
|
299
576
|
};
|
|
300
577
|
ReturnType: {
|
|
301
|
-
|
|
302
|
-
signatureRequest: ({
|
|
303
|
-
type: "personal_sign";
|
|
304
|
-
data: string | {
|
|
305
|
-
raw: `0x${string}`;
|
|
306
|
-
};
|
|
307
|
-
} | {
|
|
578
|
+
signatureRequest: {
|
|
308
579
|
type: "eth_signTypedData_v4";
|
|
309
580
|
data: {
|
|
310
581
|
domain?: {
|
|
@@ -325,13 +596,8 @@ export declare const WalletServerRpcSchema: {
|
|
|
325
596
|
[x: string]: unknown;
|
|
326
597
|
};
|
|
327
598
|
};
|
|
328
|
-
}) & {
|
|
329
|
-
authorizationRequest?: {
|
|
330
|
-
nonce: number;
|
|
331
|
-
chainId: number;
|
|
332
|
-
address: `0x${string}`;
|
|
333
|
-
} | undefined;
|
|
334
599
|
};
|
|
600
|
+
sessionId: `0x${string}`;
|
|
335
601
|
};
|
|
336
602
|
} | {
|
|
337
603
|
Request: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/rpc/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/rpc/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ/B,CAAC;AAEJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,qBAAqB,CAAC;AAErE,KAAK,qBAAqB,GAAG;KAC1B,CAAC,IAAI,yBAAyB,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG;QACrD,MAAM,EAAE,CAAC,CAAC;QACV,UAAU,EAAE,OAAO,CACjB,yBAAyB,CAAC,SAAS,CAAC,EACpC;YAAE,MAAM,EAAE,CAAC,CAAA;SAAE,CACd,CAAC,QAAQ,CAAC,CAAC;QACZ,UAAU,EAAE,OAAO,CACjB,yBAAyB,EACzB;YAAE,OAAO,EAAE;gBAAE,MAAM,EAAE,CAAC,CAAA;aAAE,CAAA;SAAE,CAC3B,CAAC,YAAY,CAAC,CAAC;KACjB;CACF,CAAC;AAGF,MAAM,MAAM,yBAAyB,GAAG;IACtC,qBAAqB,CAAC,sBAAsB,CAAC;IAC7C,qBAAqB,CAAC,uBAAuB,CAAC;IAC9C,qBAAqB,CAAC,qBAAqB,CAAC;IAC5C,qBAAqB,CAAC,qBAAqB,CAAC;IAC5C,qBAAqB,CAAC,0BAA0B,CAAC;IACjD,qBAAqB,CAAC,uBAAuB,CAAC;IAC9C,qBAAqB,CAAC,sBAAsB,CAAC;CAC9C,CAAC"}
|