@account-kit/wallet-client 0.1.0-alpha.2 → 0.1.0-alpha.3
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/index.d.ts +5 -2
- package/dist/esm/capabilities/index.js +1 -1
- 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 +10 -3
- package/dist/esm/capabilities/permissions/index.js +11 -2
- package/dist/esm/capabilities/permissions/index.js.map +1 -1
- package/dist/esm/capabilities/permissions/mav2.d.ts +2 -2
- package/dist/esm/capabilities/permissions/mav2.js +9 -1
- package/dist/esm/capabilities/permissions/mav2.js.map +1 -1
- package/dist/esm/client/actions/grantPermissions.d.ts +57 -3
- package/dist/esm/client/actions/grantPermissions.js +1 -0
- package/dist/esm/client/actions/grantPermissions.js.map +1 -1
- package/dist/esm/client/actions/requestAccount.js +2 -2
- package/dist/esm/client/actions/requestAccount.js.map +1 -1
- package/dist/esm/client/actions/signSignatureRequest.d.ts +4 -1
- package/dist/esm/client/actions/signSignatureRequest.js +22 -1
- package/dist/esm/client/actions/signSignatureRequest.js.map +1 -1
- package/dist/esm/client/client.e2e-test.js +13 -19
- package/dist/esm/client/client.e2e-test.js.map +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/isomorphic/actions/createSession.js +25 -7
- package/dist/esm/isomorphic/actions/createSession.js.map +1 -1
- package/dist/esm/isomorphic/actions/prepareCalls.js +35 -12
- package/dist/esm/isomorphic/actions/prepareCalls.js.map +1 -1
- package/dist/esm/isomorphic/actions/sendPreparedCalls.js +26 -6
- package/dist/esm/isomorphic/actions/sendPreparedCalls.js.map +1 -1
- package/dist/esm/isomorphic/client.d.ts +11 -5
- package/dist/esm/isomorphic/utils/7702.d.ts +11 -0
- package/dist/esm/isomorphic/utils/7702.js +26 -0
- package/dist/esm/isomorphic/utils/7702.js.map +1 -0
- package/dist/esm/isomorphic/utils/createAccount.d.ts +2 -1
- package/dist/esm/isomorphic/utils/createAccount.js +30 -5
- package/dist/esm/isomorphic/utils/createAccount.js.map +1 -1
- package/dist/esm/isomorphic/utils/createDummySigner.js +3 -3
- package/dist/esm/isomorphic/utils/createDummySigner.js.map +1 -1
- package/dist/esm/isomorphic/utils/parsePermissionsContext.d.ts +2 -1
- package/dist/esm/isomorphic/utils/parsePermissionsContext.js +17 -5
- package/dist/esm/isomorphic/utils/parsePermissionsContext.js.map +1 -1
- package/dist/esm/local/client.js +2 -1
- package/dist/esm/local/client.js.map +1 -1
- package/dist/esm/remote/client.js +6 -2
- package/dist/esm/remote/client.js.map +1 -1
- package/dist/esm/rpc/examples.d.ts +230 -0
- package/dist/esm/rpc/examples.js +314 -0
- package/dist/esm/rpc/examples.js.map +1 -0
- package/dist/esm/rpc/request.d.ts +48 -17
- package/dist/esm/rpc/request.js +53 -14
- package/dist/esm/rpc/request.js.map +1 -1
- package/dist/esm/rpc/schema.d.ts +42 -11
- package/dist/esm/schemas.d.ts +29 -7
- package/dist/esm/schemas.js +120 -38
- package/dist/esm/schemas.js.map +1 -1
- package/dist/types/capabilities/index.d.ts +5 -2
- package/dist/types/capabilities/index.d.ts.map +1 -1
- package/dist/types/capabilities/overrides.d.ts.map +1 -1
- package/dist/types/capabilities/permissions/index.d.ts +10 -3
- package/dist/types/capabilities/permissions/index.d.ts.map +1 -1
- package/dist/types/capabilities/permissions/mav2.d.ts +2 -2
- package/dist/types/capabilities/permissions/mav2.d.ts.map +1 -1
- package/dist/types/client/actions/grantPermissions.d.ts +57 -3
- 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/signSignatureRequest.d.ts +4 -1
- package/dist/types/client/actions/signSignatureRequest.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.map +1 -1
- package/dist/types/isomorphic/client.d.ts +11 -5
- package/dist/types/isomorphic/client.d.ts.map +1 -1
- package/dist/types/isomorphic/utils/7702.d.ts +12 -0
- package/dist/types/isomorphic/utils/7702.d.ts.map +1 -0
- package/dist/types/isomorphic/utils/createAccount.d.ts +2 -1
- package/dist/types/isomorphic/utils/createAccount.d.ts.map +1 -1
- package/dist/types/isomorphic/utils/createDummySigner.d.ts.map +1 -1
- package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts +2 -1
- package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts.map +1 -1
- package/dist/types/remote/client.d.ts.map +1 -1
- package/dist/types/rpc/examples.d.ts +231 -0
- package/dist/types/rpc/examples.d.ts.map +1 -0
- package/dist/types/rpc/request.d.ts +48 -17
- package/dist/types/rpc/request.d.ts.map +1 -1
- package/dist/types/rpc/schema.d.ts +42 -11
- package/dist/types/rpc/schema.d.ts.map +1 -1
- package/dist/types/schemas.d.ts +29 -7
- package/dist/types/schemas.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/capabilities/index.ts +5 -8
- package/src/capabilities/overrides.ts +23 -8
- package/src/capabilities/permissions/index.ts +21 -5
- package/src/capabilities/permissions/mav2.ts +12 -2
- package/src/client/actions/grantPermissions.ts +57 -3
- package/src/client/actions/requestAccount.ts +2 -3
- package/src/client/actions/signSignatureRequest.ts +31 -3
- package/src/client/client.e2e-test.ts +14 -21
- package/src/client/index.ts +1 -1
- package/src/isomorphic/actions/createSession.ts +28 -7
- package/src/isomorphic/actions/prepareCalls.ts +38 -11
- package/src/isomorphic/actions/sendPreparedCalls.ts +47 -20
- package/src/isomorphic/utils/7702.ts +58 -0
- package/src/isomorphic/utils/createAccount.ts +38 -6
- package/src/isomorphic/utils/createDummySigner.ts +3 -2
- package/src/isomorphic/utils/parsePermissionsContext.ts +23 -7
- package/src/local/client.ts +2 -3
- package/src/remote/client.ts +12 -2
- package/src/rpc/examples.ts +343 -0
- package/src/rpc/request.ts +75 -26
- package/src/schemas.ts +218 -87
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
const PrepareCalls = [
|
|
2
|
+
{
|
|
3
|
+
name: "wallet_prepareCalls example",
|
|
4
|
+
params: [
|
|
5
|
+
{
|
|
6
|
+
name: "Request",
|
|
7
|
+
value: [
|
|
8
|
+
{
|
|
9
|
+
calls: [
|
|
10
|
+
{
|
|
11
|
+
to: "0x1234567890123456789012345678901234567890",
|
|
12
|
+
data: "0x",
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
from: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A",
|
|
16
|
+
chainId: "0x01",
|
|
17
|
+
capabilities: {
|
|
18
|
+
paymasterService: {
|
|
19
|
+
policyId: "11111111-2222-3333-4444-555555555555",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
result: {
|
|
27
|
+
name: "Response",
|
|
28
|
+
value: {
|
|
29
|
+
type: "user-operation-v070",
|
|
30
|
+
data: {
|
|
31
|
+
sender: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A",
|
|
32
|
+
nonce: "0x10000000000000000",
|
|
33
|
+
callData: "0x34fcd5be0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
|
|
34
|
+
paymaster: "0x3f222Df6aB18C1E10d0Ec136503c3B0dfd929048",
|
|
35
|
+
paymasterData: "0x0000000000000000682d7e7c9fa6f71c28c31141a11ac9eb2bdbe898ddbd42a4f7085f8bb3380ba75dd9231a386e24fe5a84777217c907391e983b5b0f78a4a9d0fd1c8631dd22c10e106b461c",
|
|
36
|
+
paymasterPostOpGasLimit: "0x0",
|
|
37
|
+
paymasterVerificationGasLimit: "0x74d3",
|
|
38
|
+
maxPriorityFeePerGas: "0x60e4b0",
|
|
39
|
+
maxFeePerGas: "0x1bf52290",
|
|
40
|
+
callGasLimit: "0x2bb8",
|
|
41
|
+
verificationGasLimit: "0xc845",
|
|
42
|
+
preVerificationGas: "0x14b74",
|
|
43
|
+
},
|
|
44
|
+
chainId: "0x66eee",
|
|
45
|
+
signatureRequest: {
|
|
46
|
+
type: "personal_sign",
|
|
47
|
+
data: {
|
|
48
|
+
raw: "0xc69e468aa6fafb5c7298c02841e76f976b433018266af39a5807bc29ea9ad392",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
const SendPreparedCalls = [
|
|
56
|
+
{
|
|
57
|
+
name: "wallet_sendPreparedCalls example",
|
|
58
|
+
params: [
|
|
59
|
+
{
|
|
60
|
+
name: "Request",
|
|
61
|
+
value: [
|
|
62
|
+
{
|
|
63
|
+
type: "user-operation-v070",
|
|
64
|
+
data: {
|
|
65
|
+
sender: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A",
|
|
66
|
+
nonce: "0x10000000000000000",
|
|
67
|
+
callData: "0x34fcd5be0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
|
|
68
|
+
paymaster: "0x3f222Df6aB18C1E10d0Ec136503c3B0dfd929048",
|
|
69
|
+
paymasterData: "0x0000000000000000682d7e7c9fa6f71c28c31141a11ac9eb2bdbe898ddbd42a4f7085f8bb3380ba75dd9231a386e24fe5a84777217c907391e983b5b0f78a4a9d0fd1c8631dd22c10e106b461c",
|
|
70
|
+
paymasterPostOpGasLimit: "0x0",
|
|
71
|
+
paymasterVerificationGasLimit: "0x74d3",
|
|
72
|
+
maxPriorityFeePerGas: "0x60e4b0",
|
|
73
|
+
maxFeePerGas: "0x1bf52290",
|
|
74
|
+
callGasLimit: "0x2bb8",
|
|
75
|
+
verificationGasLimit: "0xc845",
|
|
76
|
+
preVerificationGas: "0x14b74",
|
|
77
|
+
},
|
|
78
|
+
chainId: "0x66eee",
|
|
79
|
+
signature: {
|
|
80
|
+
type: "ecdsa",
|
|
81
|
+
signature: "0xb1a055089b1ba8387ed435f2bd0afe7ff69f22b928cdfdea1b5323c64d6af387164de3fa6febf031b544de46a84d6fb7f084b9798ddfaba820950c257139a7321b",
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
result: {
|
|
88
|
+
name: "Response",
|
|
89
|
+
value: {
|
|
90
|
+
preparedCallIds: [
|
|
91
|
+
"0x0000000000000000000000000000000000000000000000000000000000066eeec69e468aa6fafb5c7298c02841e76f976b433018266af39a5807bc29ea9ad392",
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
const RequestAccount = [
|
|
98
|
+
{
|
|
99
|
+
name: "wallet_requestAccount example",
|
|
100
|
+
params: [
|
|
101
|
+
{
|
|
102
|
+
name: "Request",
|
|
103
|
+
value: [
|
|
104
|
+
{
|
|
105
|
+
signerAddress: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
result: {
|
|
111
|
+
name: "Response",
|
|
112
|
+
value: {
|
|
113
|
+
accountAddress: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A",
|
|
114
|
+
id: "3061cc5f-1f96-48a9-ab45-41faad2dd23b",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
];
|
|
119
|
+
const CreateAccount = [
|
|
120
|
+
{
|
|
121
|
+
name: "wallet_createAccount example",
|
|
122
|
+
params: [
|
|
123
|
+
{
|
|
124
|
+
name: "Request",
|
|
125
|
+
value: [
|
|
126
|
+
{
|
|
127
|
+
signerAddress: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A",
|
|
128
|
+
creationOption: {
|
|
129
|
+
salt: "0x10",
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
result: {
|
|
136
|
+
name: "Response",
|
|
137
|
+
value: {
|
|
138
|
+
accountAddress: "0xa363219d7C0b8673df17529D469Db9eFF0f35D2A",
|
|
139
|
+
id: "3061cc5f-1f96-48a9-ab45-41faad2dd23b",
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
];
|
|
144
|
+
const ListAccounts = [
|
|
145
|
+
{
|
|
146
|
+
name: "wallet_listAccounts example",
|
|
147
|
+
params: [
|
|
148
|
+
{
|
|
149
|
+
name: "Request",
|
|
150
|
+
value: [
|
|
151
|
+
{
|
|
152
|
+
signerAddress: "0x6275B53E98D07c729108A177207634eA22F5A748",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
result: {
|
|
158
|
+
name: "Response",
|
|
159
|
+
value: {
|
|
160
|
+
accounts: [
|
|
161
|
+
{
|
|
162
|
+
accountAddress: "0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2",
|
|
163
|
+
id: "3d8b3315-4aa1-4c67-8c82-20221e8dbf16",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
meta: {
|
|
167
|
+
totalCount: 1,
|
|
168
|
+
after: null,
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
];
|
|
174
|
+
const CreateSession = [
|
|
175
|
+
{
|
|
176
|
+
name: "wallet_createSession example",
|
|
177
|
+
params: [
|
|
178
|
+
{
|
|
179
|
+
name: "Request",
|
|
180
|
+
value: [
|
|
181
|
+
{
|
|
182
|
+
account: "0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2",
|
|
183
|
+
chainId: "0x01",
|
|
184
|
+
key: {
|
|
185
|
+
publicKey: "0x647bbf38CD0E116d1672405aE17a775572a84e03",
|
|
186
|
+
type: "secp256k1",
|
|
187
|
+
},
|
|
188
|
+
permissions: [
|
|
189
|
+
{
|
|
190
|
+
type: "root",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
expiry: 1747969653,
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
result: {
|
|
199
|
+
name: "Response",
|
|
200
|
+
value: {
|
|
201
|
+
sessionId: "0xcd8b2d07a6fa76f1e8a5eaa8f3a7883c",
|
|
202
|
+
signatureRequest: {
|
|
203
|
+
type: "eth_signTypedData_v4",
|
|
204
|
+
data: {
|
|
205
|
+
domain: {
|
|
206
|
+
chainId: 1,
|
|
207
|
+
verifyingContract: "0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2",
|
|
208
|
+
},
|
|
209
|
+
types: {
|
|
210
|
+
DeferredAction: [
|
|
211
|
+
{
|
|
212
|
+
name: "nonce",
|
|
213
|
+
type: "uint256",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "deadline",
|
|
217
|
+
type: "uint48",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: "call",
|
|
221
|
+
type: "bytes",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
primaryType: "DeferredAction",
|
|
226
|
+
message: {
|
|
227
|
+
nonce: "0x1030000000000000000",
|
|
228
|
+
deadline: 1747969653,
|
|
229
|
+
call: "0x1bbf564c00000000000099DE0BF6fA90dEB851E2A2df7d83000000010500000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000647bbf38cd0e116d1672405ae17a775572a84e0300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000007900000000000082B8e2012be914dFA4f62A0573eA0000000101000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000682fe675000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
];
|
|
237
|
+
const GetCallsStatus = [
|
|
238
|
+
{
|
|
239
|
+
name: "wallet_getCallsStatus example",
|
|
240
|
+
params: [
|
|
241
|
+
{
|
|
242
|
+
name: "Request",
|
|
243
|
+
value: [
|
|
244
|
+
"0x0000000000000000000000000000000000000000000000000000000000066eee1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477",
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
result: {
|
|
249
|
+
name: "Response",
|
|
250
|
+
value: {
|
|
251
|
+
id: "0x0000000000000000000000000000000000000000000000000000000000066eee1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477",
|
|
252
|
+
chainId: "0x66eee",
|
|
253
|
+
atomic: true,
|
|
254
|
+
status: 200,
|
|
255
|
+
receipts: [
|
|
256
|
+
{
|
|
257
|
+
status: "0x1",
|
|
258
|
+
blockHash: "0x7c6f2f548c0ad4434dfb64f49a810bc795dadcd4cbec948bf8d4ae81a10fed5e",
|
|
259
|
+
blockNumber: "0x8ba5f79",
|
|
260
|
+
gasUsed: "0x33c65",
|
|
261
|
+
transactionHash: "0x8ec28074a461102e4dbe43cb4aa9fed3e8c1274f1f1b0d5f6a0919ce7e20f517",
|
|
262
|
+
logs: [
|
|
263
|
+
{
|
|
264
|
+
address: "0x00000000000017c61b5bee81050ec8efc9c6fecd",
|
|
265
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
266
|
+
topics: [
|
|
267
|
+
"0xd32049610f0cd3babd266cf338d726cc8c34c8ff97356c0f33c13fa59962ac92",
|
|
268
|
+
"0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d",
|
|
269
|
+
"0x0000000000000000000000003f3503e682bf27330f9e5065043d47207e609e7d",
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
address: "0x0000000071727de22e5e9d8baf0edac6f37da032",
|
|
274
|
+
data: "0x00000000000000000000000000000000000017c61b5bee81050ec8efc9c6fecd0000000000000000000000002cc0c7981d846b9f2a16276556f6e8cb52bfb633",
|
|
275
|
+
topics: [
|
|
276
|
+
"0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d",
|
|
277
|
+
"0x1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477",
|
|
278
|
+
"0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d",
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
address: "0x0000000071727de22e5e9d8baf0edac6f37da032",
|
|
283
|
+
data: "0x",
|
|
284
|
+
topics: [
|
|
285
|
+
"0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972",
|
|
286
|
+
],
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
address: "0x0000000071727de22e5e9d8baf0edac6f37da032",
|
|
290
|
+
data: "0x00000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000014ba6c2cd4f0000000000000000000000000000000000000000000000000000000000003451d",
|
|
291
|
+
topics: [
|
|
292
|
+
"0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
|
|
293
|
+
"0x1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477",
|
|
294
|
+
"0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d",
|
|
295
|
+
"0x0000000000000000000000002cc0c7981d846b9f2a16276556f6e8cb52bfb633",
|
|
296
|
+
],
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
];
|
|
305
|
+
export const Examples = {
|
|
306
|
+
PrepareCalls,
|
|
307
|
+
SendPreparedCalls,
|
|
308
|
+
RequestAccount,
|
|
309
|
+
CreateAccount,
|
|
310
|
+
ListAccounts,
|
|
311
|
+
CreateSession,
|
|
312
|
+
GetCallsStatus,
|
|
313
|
+
};
|
|
314
|
+
//# sourceMappingURL=examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"examples.js","sourceRoot":"","sources":["../../../src/rpc/examples.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG;IACnB;QACE,IAAI,EAAE,6BAA6B;QACnC,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE;oBACL;wBACE,KAAK,EAAE;4BACL;gCACE,EAAE,EAAE,4CAA4C;gCAChD,IAAI,EAAE,IAAI;6BACX;yBACF;wBACD,IAAI,EAAE,4CAA4C;wBAClD,OAAO,EAAE,MAAM;wBACf,YAAY,EAAE;4BACZ,gBAAgB,EAAE;gCAChB,QAAQ,EAAE,sCAAsC;6BACjD;yBACF;qBACF;iBACF;aACF;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE;gBACL,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE;oBACJ,MAAM,EAAE,4CAA4C;oBACpD,KAAK,EAAE,qBAAqB;oBAC5B,QAAQ,EACN,4cAA4c;oBAC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AE,WAAW;wBACxB,OAAO,EAAE,SAAS;wBAClB,eAAe,EACb,oEAAoE;wBACtE,IAAI,EAAE;4BACJ;gCACE,OAAO,EAAE,4CAA4C;gCACrD,IAAI,EAAE,oEAAoE;gCAC1E,MAAM,EAAE;oCACN,oEAAoE;oCACpE,oEAAoE;oCACpE,oEAAoE;iCACrE;6BACF;4BACD;gCACE,OAAO,EAAE,4CAA4C;gCACrD,IAAI,EAAE,oIAAoI;gCAC1I,MAAM,EAAE;oCACN,oEAAoE;oCACpE,oEAAoE;oCACpE,oEAAoE;iCACrE;6BACF;4BACD;gCACE,OAAO,EAAE,4CAA4C;gCACrD,IAAI,EAAE,IAAI;gCACV,MAAM,EAAE;oCACN,oEAAoE;iCACrE;6BACF;4BACD;gCACE,OAAO,EAAE,4CAA4C;gCACrD,IAAI,EAAE,oQAAoQ;gCAC1Q,MAAM,EAAE;oCACN,oEAAoE;oCACpE,oEAAoE;oCACpE,oEAAoE;oCACpE,oEAAoE;iCACrE;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACO,CAAC;AAkBX,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,YAAY;IACZ,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,YAAY;IACZ,aAAa;IACb,cAAc;CACmB,CAAC","sourcesContent":["const PrepareCalls = [\n {\n name: \"wallet_prepareCalls example\",\n params: [\n {\n name: \"Request\",\n value: [\n {\n calls: [\n {\n to: \"0x1234567890123456789012345678901234567890\",\n data: \"0x\",\n },\n ],\n from: \"0xa363219d7C0b8673df17529D469Db9eFF0f35D2A\",\n chainId: \"0x01\",\n capabilities: {\n paymasterService: {\n policyId: \"11111111-2222-3333-4444-555555555555\",\n },\n },\n },\n ],\n },\n ],\n result: {\n name: \"Response\",\n value: {\n type: \"user-operation-v070\",\n data: {\n sender: \"0xa363219d7C0b8673df17529D469Db9eFF0f35D2A\",\n nonce: \"0x10000000000000000\",\n callData:\n \"0x34fcd5be0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000\",\n paymaster: \"0x3f222Df6aB18C1E10d0Ec136503c3B0dfd929048\",\n paymasterData:\n \"0x0000000000000000682d7e7c9fa6f71c28c31141a11ac9eb2bdbe898ddbd42a4f7085f8bb3380ba75dd9231a386e24fe5a84777217c907391e983b5b0f78a4a9d0fd1c8631dd22c10e106b461c\",\n paymasterPostOpGasLimit: \"0x0\",\n paymasterVerificationGasLimit: \"0x74d3\",\n maxPriorityFeePerGas: \"0x60e4b0\",\n maxFeePerGas: \"0x1bf52290\",\n callGasLimit: \"0x2bb8\",\n verificationGasLimit: \"0xc845\",\n preVerificationGas: \"0x14b74\",\n },\n chainId: \"0x66eee\",\n signatureRequest: {\n type: \"personal_sign\",\n data: {\n raw: \"0xc69e468aa6fafb5c7298c02841e76f976b433018266af39a5807bc29ea9ad392\",\n },\n },\n },\n },\n },\n] as const;\n\nconst SendPreparedCalls = [\n {\n name: \"wallet_sendPreparedCalls example\",\n params: [\n {\n name: \"Request\",\n value: [\n {\n type: \"user-operation-v070\",\n data: {\n sender: \"0xa363219d7C0b8673df17529D469Db9eFF0f35D2A\",\n nonce: \"0x10000000000000000\",\n callData:\n \"0x34fcd5be0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000\",\n paymaster: \"0x3f222Df6aB18C1E10d0Ec136503c3B0dfd929048\",\n paymasterData:\n \"0x0000000000000000682d7e7c9fa6f71c28c31141a11ac9eb2bdbe898ddbd42a4f7085f8bb3380ba75dd9231a386e24fe5a84777217c907391e983b5b0f78a4a9d0fd1c8631dd22c10e106b461c\",\n paymasterPostOpGasLimit: \"0x0\",\n paymasterVerificationGasLimit: \"0x74d3\",\n maxPriorityFeePerGas: \"0x60e4b0\",\n maxFeePerGas: \"0x1bf52290\",\n callGasLimit: \"0x2bb8\",\n verificationGasLimit: \"0xc845\",\n preVerificationGas: \"0x14b74\",\n },\n chainId: \"0x66eee\",\n signature: {\n type: \"ecdsa\",\n signature:\n \"0xb1a055089b1ba8387ed435f2bd0afe7ff69f22b928cdfdea1b5323c64d6af387164de3fa6febf031b544de46a84d6fb7f084b9798ddfaba820950c257139a7321b\",\n },\n },\n ],\n },\n ],\n result: {\n name: \"Response\",\n value: {\n preparedCallIds: [\n \"0x0000000000000000000000000000000000000000000000000000000000066eeec69e468aa6fafb5c7298c02841e76f976b433018266af39a5807bc29ea9ad392\",\n ],\n },\n },\n },\n] as const;\n\nconst RequestAccount = [\n {\n name: \"wallet_requestAccount example\",\n params: [\n {\n name: \"Request\",\n value: [\n {\n signerAddress: \"0xa363219d7C0b8673df17529D469Db9eFF0f35D2A\",\n },\n ],\n },\n ],\n result: {\n name: \"Response\",\n value: {\n accountAddress: \"0xa363219d7C0b8673df17529D469Db9eFF0f35D2A\",\n id: \"3061cc5f-1f96-48a9-ab45-41faad2dd23b\",\n },\n },\n },\n] as const;\n\nconst CreateAccount = [\n {\n name: \"wallet_createAccount example\",\n params: [\n {\n name: \"Request\",\n value: [\n {\n signerAddress: \"0xa363219d7C0b8673df17529D469Db9eFF0f35D2A\",\n creationOption: {\n salt: \"0x10\",\n },\n },\n ],\n },\n ],\n result: {\n name: \"Response\",\n value: {\n accountAddress: \"0xa363219d7C0b8673df17529D469Db9eFF0f35D2A\",\n id: \"3061cc5f-1f96-48a9-ab45-41faad2dd23b\",\n },\n },\n },\n] as const;\n\nconst ListAccounts = [\n {\n name: \"wallet_listAccounts example\",\n params: [\n {\n name: \"Request\",\n value: [\n {\n signerAddress: \"0x6275B53E98D07c729108A177207634eA22F5A748\",\n },\n ],\n },\n ],\n result: {\n name: \"Response\",\n value: {\n accounts: [\n {\n accountAddress: \"0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2\",\n id: \"3d8b3315-4aa1-4c67-8c82-20221e8dbf16\",\n },\n ],\n meta: {\n totalCount: 1,\n after: null,\n },\n },\n },\n },\n] as const;\n\nconst CreateSession = [\n {\n name: \"wallet_createSession example\",\n params: [\n {\n name: \"Request\",\n value: [\n {\n account: \"0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2\",\n chainId: \"0x01\",\n key: {\n publicKey: \"0x647bbf38CD0E116d1672405aE17a775572a84e03\",\n type: \"secp256k1\",\n },\n permissions: [\n {\n type: \"root\",\n },\n ],\n expiry: 1747969653,\n },\n ],\n },\n ],\n result: {\n name: \"Response\",\n value: {\n sessionId: \"0xcd8b2d07a6fa76f1e8a5eaa8f3a7883c\",\n signatureRequest: {\n type: \"eth_signTypedData_v4\",\n data: {\n domain: {\n chainId: 1,\n verifyingContract: \"0xafdABa1E09e82F780721963eba39bA9e6d9FE4d2\",\n },\n types: {\n DeferredAction: [\n {\n name: \"nonce\",\n type: \"uint256\",\n },\n {\n name: \"deadline\",\n type: \"uint48\",\n },\n {\n name: \"call\",\n type: \"bytes\",\n },\n ],\n },\n primaryType: \"DeferredAction\",\n message: {\n nonce: \"0x1030000000000000000\",\n deadline: 1747969653,\n call: \"0x1bbf564c00000000000099DE0BF6fA90dEB851E2A2df7d83000000010500000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000647bbf38cd0e116d1672405ae17a775572a84e0300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000007900000000000082B8e2012be914dFA4f62A0573eA0000000101000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000682fe675000000000000000000000000000000000000000000000000000000000000000000000000000000\",\n },\n },\n },\n },\n },\n },\n] as const;\n\nconst GetCallsStatus = [\n {\n name: \"wallet_getCallsStatus example\",\n params: [\n {\n name: \"Request\",\n value: [\n \"0x0000000000000000000000000000000000000000000000000000000000066eee1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477\",\n ],\n },\n ],\n result: {\n name: \"Response\",\n value: {\n id: \"0x0000000000000000000000000000000000000000000000000000000000066eee1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477\",\n chainId: \"0x66eee\",\n atomic: true,\n status: 200,\n receipts: [\n {\n status: \"0x1\",\n blockHash:\n \"0x7c6f2f548c0ad4434dfb64f49a810bc795dadcd4cbec948bf8d4ae81a10fed5e\",\n blockNumber: \"0x8ba5f79\",\n gasUsed: \"0x33c65\",\n transactionHash:\n \"0x8ec28074a461102e4dbe43cb4aa9fed3e8c1274f1f1b0d5f6a0919ce7e20f517\",\n logs: [\n {\n address: \"0x00000000000017c61b5bee81050ec8efc9c6fecd\",\n data: \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n topics: [\n \"0xd32049610f0cd3babd266cf338d726cc8c34c8ff97356c0f33c13fa59962ac92\",\n \"0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d\",\n \"0x0000000000000000000000003f3503e682bf27330f9e5065043d47207e609e7d\",\n ],\n },\n {\n address: \"0x0000000071727de22e5e9d8baf0edac6f37da032\",\n data: \"0x00000000000000000000000000000000000017c61b5bee81050ec8efc9c6fecd0000000000000000000000002cc0c7981d846b9f2a16276556f6e8cb52bfb633\",\n topics: [\n \"0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d\",\n \"0x1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477\",\n \"0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d\",\n ],\n },\n {\n address: \"0x0000000071727de22e5e9d8baf0edac6f37da032\",\n data: \"0x\",\n topics: [\n \"0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972\",\n ],\n },\n {\n address: \"0x0000000071727de22e5e9d8baf0edac6f37da032\",\n data: \"0x00000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000014ba6c2cd4f0000000000000000000000000000000000000000000000000000000000003451d\",\n topics: [\n \"0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f\",\n \"0x1057eff9529142aa3b74adcaacfce5b99a09d80c9f2e38e35ea1f27535e61477\",\n \"0x000000000000000000000000f13223cca0ae9786dd91dffe1f4e834c71ccdc2d\",\n \"0x0000000000000000000000002cc0c7981d846b9f2a16276556f6e8cb52bfb633\",\n ],\n },\n ],\n },\n ],\n },\n },\n },\n] as const;\n\ntype Example = readonly [\n {\n name: string;\n params: readonly [\n {\n name: \"Request\";\n value: readonly [unknown];\n },\n ];\n result: {\n name: \"Response\";\n value: unknown;\n };\n },\n];\n\nexport const Examples = {\n PrepareCalls,\n SendPreparedCalls,\n RequestAccount,\n CreateAccount,\n ListAccounts,\n CreateSession,\n GetCallsStatus,\n} satisfies Record<string, Example>;\n"]}
|
|
@@ -32,13 +32,24 @@ export declare const wallet_sendPreparedCalls: import("@sinclair/typebox").TObje
|
|
|
32
32
|
}>]>;
|
|
33
33
|
chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
34
34
|
signature: import("@sinclair/typebox").TObject<{
|
|
35
|
-
type: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").
|
|
35
|
+
type: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TLiteral<"ecdsa">, "ecdsa">;
|
|
36
36
|
signature: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
37
37
|
}>;
|
|
38
|
+
signedAuthorization: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
39
|
+
chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
40
|
+
nonce: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
41
|
+
address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
42
|
+
r: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
43
|
+
s: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
44
|
+
yParity: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
45
|
+
}>>;
|
|
38
46
|
capabilities: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
39
|
-
permissions: import("@sinclair/typebox").TObject<{
|
|
47
|
+
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
40
48
|
context: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
41
|
-
}
|
|
49
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
50
|
+
sessionId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
51
|
+
signature: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
52
|
+
}>]>>;
|
|
42
53
|
}>>;
|
|
43
54
|
}>]>;
|
|
44
55
|
}>;
|
|
@@ -58,9 +69,12 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
|
|
|
58
69
|
from: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
59
70
|
chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
60
71
|
capabilities: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
61
|
-
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
72
|
+
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
62
73
|
context: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
63
|
-
}
|
|
74
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
75
|
+
sessionId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
76
|
+
signature: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
77
|
+
}>]>>;
|
|
64
78
|
paymasterService: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
65
79
|
policyId: import("@sinclair/typebox").TString;
|
|
66
80
|
}>>;
|
|
@@ -120,7 +134,7 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
|
|
|
120
134
|
paymasterPostOpGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
121
135
|
}>]>;
|
|
122
136
|
chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
123
|
-
signatureRequest: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
137
|
+
signatureRequest: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
124
138
|
type: import("@sinclair/typebox").TLiteral<"personal_sign">;
|
|
125
139
|
data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
126
140
|
raw: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
@@ -129,7 +143,7 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
|
|
|
129
143
|
type: import("@sinclair/typebox").TLiteral<"eth_signTypedData_v4">;
|
|
130
144
|
data: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TObject<{
|
|
131
145
|
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
132
|
-
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
146
|
+
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
133
147
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
134
148
|
salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
135
149
|
verifyingContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
@@ -143,8 +157,8 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
|
|
|
143
157
|
message: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
144
158
|
}>, {
|
|
145
159
|
domain?: {
|
|
146
|
-
salt?: `0x${string}` | undefined;
|
|
147
160
|
chainId?: number | undefined;
|
|
161
|
+
salt?: `0x${string}` | undefined;
|
|
148
162
|
name?: string | undefined;
|
|
149
163
|
verifyingContract?: `0x${string}` | undefined;
|
|
150
164
|
version?: string | undefined;
|
|
@@ -160,6 +174,12 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
|
|
|
160
174
|
[x: string]: unknown;
|
|
161
175
|
};
|
|
162
176
|
}>;
|
|
177
|
+
}>]>, import("@sinclair/typebox").TObject<{
|
|
178
|
+
authorizationRequest: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
179
|
+
chainId: import("@sinclair/typebox").TInteger;
|
|
180
|
+
address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
181
|
+
nonce: import("@sinclair/typebox").TInteger;
|
|
182
|
+
}>>;
|
|
163
183
|
}>]>;
|
|
164
184
|
}>;
|
|
165
185
|
}>;
|
|
@@ -169,10 +189,12 @@ export declare const wallet_requestAccount: import("@sinclair/typebox").TObject<
|
|
|
169
189
|
params: import("@sinclair/typebox").TTuple<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
170
190
|
signerAddress: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
171
191
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
172
|
-
creationHint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
192
|
+
creationHint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
173
193
|
accountType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"sma-b">>;
|
|
174
194
|
salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
175
|
-
}
|
|
195
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
196
|
+
accountType: import("@sinclair/typebox").TLiteral<"7702">;
|
|
197
|
+
}>]>>;
|
|
176
198
|
includeCounterfactualInfo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
177
199
|
}>, import("@sinclair/typebox").TObject<{
|
|
178
200
|
accountAddress: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
@@ -187,6 +209,7 @@ export declare const wallet_requestAccount: import("@sinclair/typebox").TObject<
|
|
|
187
209
|
factoryAddress: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
188
210
|
factoryData: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
189
211
|
}>>;
|
|
212
|
+
delegation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
190
213
|
}>;
|
|
191
214
|
}>;
|
|
192
215
|
export declare const wallet_createAccount: import("@sinclair/typebox").TObject<{
|
|
@@ -195,10 +218,12 @@ export declare const wallet_createAccount: import("@sinclair/typebox").TObject<{
|
|
|
195
218
|
params: import("@sinclair/typebox").TTuple<[import("@sinclair/typebox").TObject<{
|
|
196
219
|
signerAddress: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
197
220
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
198
|
-
creationOptions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
221
|
+
creationOptions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
199
222
|
accountType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"sma-b">>;
|
|
200
223
|
salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
201
|
-
}
|
|
224
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
225
|
+
accountType: import("@sinclair/typebox").TLiteral<"7702">;
|
|
226
|
+
}>]>>;
|
|
202
227
|
}>]>;
|
|
203
228
|
}>;
|
|
204
229
|
ReturnType: import("@sinclair/typebox").TObject<{
|
|
@@ -221,7 +246,7 @@ export declare const wallet_listAccounts: import("@sinclair/typebox").TObject<{
|
|
|
221
246
|
id: import("@sinclair/typebox").TString;
|
|
222
247
|
}>>;
|
|
223
248
|
meta: import("@sinclair/typebox").TObject<{
|
|
224
|
-
totalCount: import("@sinclair/typebox").
|
|
249
|
+
totalCount: import("@sinclair/typebox").TInteger;
|
|
225
250
|
after: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
226
251
|
}>;
|
|
227
252
|
}>;
|
|
@@ -231,7 +256,7 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
|
|
|
231
256
|
method: import("@sinclair/typebox").TLiteral<"wallet_createSession">;
|
|
232
257
|
params: import("@sinclair/typebox").TTuple<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
233
258
|
chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
234
|
-
expiry: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
259
|
+
expiry: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
235
260
|
key: import("@sinclair/typebox").TObject<{
|
|
236
261
|
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"secp256k1">, import("@sinclair/typebox").TLiteral<"contract">]>;
|
|
237
262
|
publicKey: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
@@ -283,7 +308,7 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
|
|
|
283
308
|
}>;
|
|
284
309
|
ReturnType: import("@sinclair/typebox").TObject<{
|
|
285
310
|
sessionId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
286
|
-
signatureRequest: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
311
|
+
signatureRequest: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
287
312
|
type: import("@sinclair/typebox").TLiteral<"personal_sign">;
|
|
288
313
|
data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
289
314
|
raw: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
@@ -292,7 +317,7 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
|
|
|
292
317
|
type: import("@sinclair/typebox").TLiteral<"eth_signTypedData_v4">;
|
|
293
318
|
data: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TObject<{
|
|
294
319
|
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
295
|
-
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
320
|
+
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
296
321
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
297
322
|
salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
298
323
|
verifyingContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
@@ -306,8 +331,8 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
|
|
|
306
331
|
message: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
307
332
|
}>, {
|
|
308
333
|
domain?: {
|
|
309
|
-
salt?: `0x${string}` | undefined;
|
|
310
334
|
chainId?: number | undefined;
|
|
335
|
+
salt?: `0x${string}` | undefined;
|
|
311
336
|
name?: string | undefined;
|
|
312
337
|
verifyingContract?: `0x${string}` | undefined;
|
|
313
338
|
version?: string | undefined;
|
|
@@ -323,6 +348,12 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
|
|
|
323
348
|
[x: string]: unknown;
|
|
324
349
|
};
|
|
325
350
|
}>;
|
|
351
|
+
}>]>, import("@sinclair/typebox").TObject<{
|
|
352
|
+
authorizationRequest: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
353
|
+
chainId: import("@sinclair/typebox").TInteger;
|
|
354
|
+
address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
355
|
+
nonce: import("@sinclair/typebox").TInteger;
|
|
356
|
+
}>>;
|
|
326
357
|
}>]>;
|
|
327
358
|
}>;
|
|
328
359
|
}>;
|