@account-kit/wallet-client 0.1.0-alpha.4 → 0.1.0-alpha.6
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.d.ts +4 -0
- package/dist/esm/capabilities/eip7702Auth.js +18 -0
- package/dist/esm/capabilities/eip7702Auth.js.map +1 -0
- package/dist/esm/capabilities/index.d.ts +4 -0
- package/dist/esm/capabilities/index.js +2 -0
- package/dist/esm/capabilities/index.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 +2 -2
- package/dist/esm/capabilities/permissions/index.js +6 -3
- package/dist/esm/capabilities/permissions/index.js.map +1 -1
- package/dist/esm/capabilities/permissions/mav2.js +1 -0
- package/dist/esm/capabilities/permissions/mav2.js.map +1 -1
- package/dist/esm/client/actions/getCallsStatus.d.ts +1 -2
- package/dist/esm/client/actions/getCallsStatus.js +19 -0
- package/dist/esm/client/actions/getCallsStatus.js.map +1 -1
- package/dist/esm/client/actions/grantPermissions.d.ts +10 -65
- package/dist/esm/client/actions/grantPermissions.js +63 -4
- package/dist/esm/client/actions/grantPermissions.js.map +1 -1
- package/dist/esm/client/actions/prepareCalls.d.ts +4 -4
- package/dist/esm/client/actions/prepareCalls.js +38 -5
- package/dist/esm/client/actions/prepareCalls.js.map +1 -1
- package/dist/esm/client/actions/requestAccount.d.ts +3 -4
- package/dist/esm/client/actions/requestAccount.js +18 -1
- 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/signMessage.d.ts +3 -3
- package/dist/esm/client/actions/signMessage.js +18 -0
- package/dist/esm/client/actions/signMessage.js.map +1 -1
- package/dist/esm/client/actions/signPreparedCalls.d.ts +14 -0
- package/dist/esm/client/actions/signPreparedCalls.js +53 -0
- package/dist/esm/client/actions/signPreparedCalls.js.map +1 -0
- package/dist/esm/client/actions/signSignatureRequest.d.ts +9 -8
- package/dist/esm/client/actions/signSignatureRequest.js +69 -31
- package/dist/esm/client/actions/signSignatureRequest.js.map +1 -1
- package/dist/esm/client/actions/signTypedData.d.ts +2 -2
- package/dist/esm/client/actions/signTypedData.js +31 -0
- package/dist/esm/client/actions/signTypedData.js.map +1 -1
- package/dist/esm/client/client.e2e-test.js +47 -44
- package/dist/esm/client/client.e2e-test.js.map +1 -1
- package/dist/esm/client/decorator.d.ts +7 -5
- package/dist/esm/client/decorator.js +3 -1
- package/dist/esm/client/decorator.js.map +1 -1
- package/dist/esm/client/index.d.ts +35 -10
- package/dist/esm/client/index.js +0 -29
- package/dist/esm/client/index.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 +15 -18
- package/dist/esm/isomorphic/actions/createSession.js.map +1 -1
- package/dist/esm/isomorphic/actions/getCallsStatus.js +62 -9
- package/dist/esm/isomorphic/actions/getCallsStatus.js.map +1 -1
- package/dist/esm/isomorphic/actions/prepareCalls.js +39 -26
- 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 +77 -37
- 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 +13 -6
- package/dist/esm/isomorphic/utils/7702.js +48 -13
- package/dist/esm/isomorphic/utils/7702.js.map +1 -1
- package/dist/esm/isomorphic/utils/createAccount.d.ts +2 -2
- package/dist/esm/isomorphic/utils/createAccount.js +4 -3
- package/dist/esm/isomorphic/utils/createAccount.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/isomorphic/utils/parsePermissionsContext.d.ts +2 -2
- package/dist/esm/isomorphic/utils/parsePermissionsContext.js +8 -7
- package/dist/esm/isomorphic/utils/parsePermissionsContext.js.map +1 -1
- package/dist/esm/local/client.d.ts +2 -2
- package/dist/esm/local/client.js +2 -3
- package/dist/esm/local/client.js.map +1 -1
- package/dist/esm/remote/client.d.ts +8 -2
- package/dist/esm/remote/client.js +3 -13
- 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 +362 -44
- package/dist/esm/rpc/request.js +26 -56
- package/dist/esm/rpc/request.js.map +1 -1
- package/dist/esm/rpc/schema.d.ts +325 -49
- package/dist/esm/rpc/schema.js.map +1 -1
- package/dist/esm/schemas.d.ts +454 -14
- package/dist/esm/schemas.js +168 -53
- package/dist/esm/schemas.js.map +1 -1
- package/dist/esm/types.d.ts +10 -10
- package/dist/esm/types.js.map +1 -1
- package/dist/types/capabilities/eip7702Auth.d.ts +5 -0
- package/dist/types/capabilities/eip7702Auth.d.ts.map +1 -0
- package/dist/types/capabilities/index.d.ts +4 -0
- package/dist/types/capabilities/index.d.ts.map +1 -1
- package/dist/types/capabilities/permissions/index.d.ts +2 -2
- package/dist/types/capabilities/permissions/index.d.ts.map +1 -1
- package/dist/types/capabilities/permissions/mav2.d.ts.map +1 -1
- package/dist/types/client/actions/getCallsStatus.d.ts +1 -2
- package/dist/types/client/actions/getCallsStatus.d.ts.map +1 -1
- package/dist/types/client/actions/grantPermissions.d.ts +10 -65
- package/dist/types/client/actions/grantPermissions.d.ts.map +1 -1
- package/dist/types/client/actions/prepareCalls.d.ts +4 -4
- package/dist/types/client/actions/prepareCalls.d.ts.map +1 -1
- package/dist/types/client/actions/requestAccount.d.ts +3 -4
- 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/signMessage.d.ts +3 -3
- package/dist/types/client/actions/signMessage.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 +9 -8
- package/dist/types/client/actions/signSignatureRequest.d.ts.map +1 -1
- package/dist/types/client/actions/signTypedData.d.ts +2 -2
- package/dist/types/client/actions/signTypedData.d.ts.map +1 -1
- package/dist/types/client/decorator.d.ts +7 -5
- package/dist/types/client/decorator.d.ts.map +1 -1
- package/dist/types/client/index.d.ts +35 -10
- package/dist/types/client/index.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/getCallsStatus.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 +13 -6
- package/dist/types/isomorphic/utils/7702.d.ts.map +1 -1
- package/dist/types/isomorphic/utils/createAccount.d.ts +2 -2
- package/dist/types/isomorphic/utils/createAccount.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/isomorphic/utils/parsePermissionsContext.d.ts +2 -2
- package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts.map +1 -1
- package/dist/types/local/client.d.ts +2 -2
- package/dist/types/local/client.d.ts.map +1 -1
- package/dist/types/remote/client.d.ts +8 -2
- 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 +362 -44
- package/dist/types/rpc/request.d.ts.map +1 -1
- package/dist/types/rpc/schema.d.ts +325 -49
- package/dist/types/rpc/schema.d.ts.map +1 -1
- package/dist/types/schemas.d.ts +454 -14
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/types.d.ts +10 -10
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/capabilities/eip7702Auth.ts +26 -0
- package/src/capabilities/index.ts +2 -0
- package/src/capabilities/overrides.ts +8 -8
- package/src/capabilities/permissions/index.ts +8 -3
- package/src/capabilities/permissions/mav2.ts +1 -0
- package/src/client/actions/getCallsStatus.ts +0 -10
- package/src/client/actions/grantPermissions.ts +16 -84
- package/src/client/actions/prepareCalls.ts +18 -23
- package/src/client/actions/requestAccount.ts +9 -26
- package/src/client/actions/sendPreparedCalls.ts +17 -17
- package/src/client/actions/signMessage.ts +2 -17
- package/src/client/actions/signPreparedCalls.ts +71 -0
- package/src/client/actions/signSignatureRequest.ts +51 -47
- package/src/client/actions/signTypedData.ts +1 -16
- package/src/client/client.e2e-test.ts +54 -57
- package/src/client/decorator.ts +19 -15
- package/src/client/index.ts +16 -39
- package/src/exports/index.ts +2 -1
- package/src/isomorphic/actions/createSession.ts +17 -20
- package/src/isomorphic/actions/getCallsStatus.ts +82 -10
- package/src/isomorphic/actions/prepareCalls.ts +43 -27
- package/src/isomorphic/actions/sendPreparedCalls.ts +105 -55
- package/src/isomorphic/utils/7702.ts +79 -21
- package/src/isomorphic/utils/createAccount.ts +5 -5
- package/src/isomorphic/utils/decodeSignature.ts +18 -0
- package/src/isomorphic/utils/parsePermissionsContext.ts +9 -9
- package/src/local/client.ts +5 -11
- package/src/remote/client.ts +7 -22
- package/src/rpc/examples.ts +3 -4
- package/src/rpc/request.ts +41 -64
- package/src/rpc/schema.ts +2 -2
- package/src/schemas.ts +232 -54
- package/src/types.ts +9 -21
|
@@ -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
|
} | {
|
|
@@ -46,7 +50,108 @@ export declare const WalletServerRpcSchema: {
|
|
|
46
50
|
method: "wallet_prepareCalls";
|
|
47
51
|
};
|
|
48
52
|
ReturnType: {
|
|
49
|
-
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";
|
|
50
155
|
chainId: `0x${string}`;
|
|
51
156
|
data: {
|
|
52
157
|
sender: `0x${string}`;
|
|
@@ -59,7 +164,38 @@ export declare const WalletServerRpcSchema: {
|
|
|
59
164
|
maxFeePerGas: `0x${string}`;
|
|
60
165
|
maxPriorityFeePerGas: `0x${string}`;
|
|
61
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
|
+
};
|
|
62
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: {
|
|
63
199
|
factory?: `0x${string}` | undefined;
|
|
64
200
|
factoryData?: `0x${string}` | undefined;
|
|
65
201
|
paymaster?: `0x${string}` | undefined;
|
|
@@ -75,12 +211,7 @@ export declare const WalletServerRpcSchema: {
|
|
|
75
211
|
maxFeePerGas: `0x${string}`;
|
|
76
212
|
maxPriorityFeePerGas: `0x${string}`;
|
|
77
213
|
};
|
|
78
|
-
signatureRequest:
|
|
79
|
-
type: "personal_sign";
|
|
80
|
-
data: string | {
|
|
81
|
-
raw: `0x${string}`;
|
|
82
|
-
};
|
|
83
|
-
} | {
|
|
214
|
+
signatureRequest: {
|
|
84
215
|
type: "eth_signTypedData_v4";
|
|
85
216
|
data: {
|
|
86
217
|
domain?: {
|
|
@@ -101,38 +232,133 @@ export declare const WalletServerRpcSchema: {
|
|
|
101
232
|
[x: string]: unknown;
|
|
102
233
|
};
|
|
103
234
|
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
} | undefined;
|
|
235
|
+
} | {
|
|
236
|
+
type: "personal_sign";
|
|
237
|
+
data: string | {
|
|
238
|
+
raw: `0x${string}`;
|
|
239
|
+
};
|
|
110
240
|
};
|
|
111
241
|
};
|
|
112
242
|
} | {
|
|
113
243
|
Request: {
|
|
114
|
-
params: [{
|
|
115
|
-
|
|
116
|
-
|
|
244
|
+
params: [({
|
|
245
|
+
type: "array";
|
|
246
|
+
data: (({
|
|
247
|
+
type: "user-operation-v060";
|
|
117
248
|
chainId: `0x${string}`;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
+
};
|
|
126
273
|
} | {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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";
|
|
287
|
+
chainId: `0x${string}`;
|
|
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";
|
|
136
362
|
chainId: `0x${string}`;
|
|
137
363
|
data: {
|
|
138
364
|
sender: `0x${string}`;
|
|
@@ -145,7 +371,35 @@ export declare const WalletServerRpcSchema: {
|
|
|
145
371
|
maxFeePerGas: `0x${string}`;
|
|
146
372
|
maxPriorityFeePerGas: `0x${string}`;
|
|
147
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
|
+
};
|
|
148
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: {
|
|
149
403
|
factory?: `0x${string}` | undefined;
|
|
150
404
|
factoryData?: `0x${string}` | undefined;
|
|
151
405
|
paymaster?: `0x${string}` | undefined;
|
|
@@ -161,6 +415,39 @@ export declare const WalletServerRpcSchema: {
|
|
|
161
415
|
maxFeePerGas: `0x${string}`;
|
|
162
416
|
maxPriorityFeePerGas: `0x${string}`;
|
|
163
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;
|
|
164
451
|
}];
|
|
165
452
|
method: "wallet_sendPreparedCalls";
|
|
166
453
|
};
|
|
@@ -204,12 +491,12 @@ export declare const WalletServerRpcSchema: {
|
|
|
204
491
|
method: "wallet_requestAccount";
|
|
205
492
|
};
|
|
206
493
|
ReturnType: {
|
|
494
|
+
delegation?: `0x${string}` | undefined;
|
|
207
495
|
counterfactualInfo?: {
|
|
208
496
|
factoryData: `0x${string}`;
|
|
209
497
|
factoryAddress: `0x${string}`;
|
|
210
498
|
factoryType: "unknown" | "LightAccountV2.0.0" | "LightAccountV1.1.0" | "LightAccountV1.0.2" | "LightAccountV1.0.1" | "MAv1.0.0-MultiOwner" | "LightAccountV2.0.0-MultiOwner" | "MAv1.0.0-MultiSig" | "MAv2.0.0-sma-b" | "MAv2.0.0-ma-ssv" | "MAv2.0.0-ma-webauthn";
|
|
211
499
|
} | undefined;
|
|
212
|
-
delegation?: `0x${string}` | undefined;
|
|
213
500
|
accountAddress: `0x${string}`;
|
|
214
501
|
id: string;
|
|
215
502
|
};
|
|
@@ -235,10 +522,10 @@ export declare const WalletServerRpcSchema: {
|
|
|
235
522
|
} | {
|
|
236
523
|
Request: {
|
|
237
524
|
params: [{
|
|
238
|
-
|
|
525
|
+
expirySec?: number | undefined;
|
|
239
526
|
chainId: `0x${string}`;
|
|
240
527
|
key: {
|
|
241
|
-
type: "secp256k1" | "contract";
|
|
528
|
+
type: "secp256k1" | "ecdsa" | "contract";
|
|
242
529
|
publicKey: `0x${string}`;
|
|
243
530
|
};
|
|
244
531
|
permissions: ({
|
|
@@ -288,13 +575,7 @@ export declare const WalletServerRpcSchema: {
|
|
|
288
575
|
method: "wallet_createSession";
|
|
289
576
|
};
|
|
290
577
|
ReturnType: {
|
|
291
|
-
|
|
292
|
-
signatureRequest: ({
|
|
293
|
-
type: "personal_sign";
|
|
294
|
-
data: string | {
|
|
295
|
-
raw: `0x${string}`;
|
|
296
|
-
};
|
|
297
|
-
} | {
|
|
578
|
+
signatureRequest: {
|
|
298
579
|
type: "eth_signTypedData_v4";
|
|
299
580
|
data: {
|
|
300
581
|
domain?: {
|
|
@@ -315,13 +596,8 @@ export declare const WalletServerRpcSchema: {
|
|
|
315
596
|
[x: string]: unknown;
|
|
316
597
|
};
|
|
317
598
|
};
|
|
318
|
-
}) & {
|
|
319
|
-
authorizationRequest?: {
|
|
320
|
-
nonce: number;
|
|
321
|
-
chainId: number;
|
|
322
|
-
address: `0x${string}`;
|
|
323
|
-
} | undefined;
|
|
324
599
|
};
|
|
600
|
+
sessionId: `0x${string}`;
|
|
325
601
|
};
|
|
326
602
|
} | {
|
|
327
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"}
|