@walletmesh/aztec-rpc-wallet 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/aztecRemoteWallet.d.ts +1 -1
- package/dist/aztecRemoteWallet.d.ts.map +1 -1
- package/dist/aztecRemoteWallet.js +3 -3
- package/dist/handlers/aztecAccountWallet.d.ts.map +1 -1
- package/dist/handlers/aztecAccountWallet.js +2 -3
- package/dist/types.d.ts +3 -1
- package/dist/types.d.ts.map +1 -1
- package/docs/README.md +1 -1
- package/docs/classes/AztecChainProvider.md +10 -10
- package/docs/classes/AztecChainWallet.md +4 -4
- package/docs/classes/AztecProvider.md +10 -10
- package/docs/classes/AztecWalletError.md +3 -3
- package/docs/classes/ContractArtifactCache.md +4 -4
- package/docs/globals.md +2 -2
- package/docs/interfaces/AztecWalletBaseMethodMap.md +7 -7
- package/docs/interfaces/AztecWalletEventMap.md +2 -2
- package/docs/interfaces/AztecWalletMethodMap.md +59 -51
- package/docs/type-aliases/AztecChainId.md +2 -2
- package/docs/type-aliases/AztecChainWalletMiddleware.md +2 -2
- package/docs/type-aliases/AztecWalletContext.md +2 -2
- package/docs/type-aliases/AztecWalletMethodHandler.md +2 -2
- package/docs/type-aliases/AztecWalletMiddleware.md +2 -2
- package/docs/type-aliases/AztecWalletRouterClient.md +2 -2
- package/docs/type-aliases/TransactionFunctionCall.md +2 -2
- package/docs/type-aliases/TransactionParams.md +2 -2
- package/docs/variables/AztecWalletErrorMap.md +2 -2
- package/package.json +5 -5
- package/src/aztecRemoteWallet.test.ts +6 -5
- package/src/aztecRemoteWallet.ts +2 -2
- package/src/handlers/aztecAccountWallet.test.ts +4 -3
- package/src/handlers/aztecAccountWallet.ts +1 -2
- package/src/provider.test.ts +3 -0
- package/src/types.ts +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
# Interface: AztecWalletMethodMap
|
8
8
|
|
9
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:161](https://github.com/WalletMesh/walletmesh-packages/blob/
|
9
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:161](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L161)
|
10
10
|
|
11
11
|
Type for Aztec wallet RPC method map.
|
12
12
|
This extends the AztecWalletBaseMethodMap with the methods used in by Aztec's `AccountWallet`
|
@@ -25,7 +25,7 @@ This extends the AztecWalletBaseMethodMap with the methods used in by Aztec's `A
|
|
25
25
|
|
26
26
|
> **aztec\_addAuthWitness**: `object`
|
27
27
|
|
28
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:196](https://github.com/WalletMesh/walletmesh-packages/blob/
|
28
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:196](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L196)
|
29
29
|
|
30
30
|
#### params
|
31
31
|
|
@@ -45,7 +45,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:196](https://github.com/WalletMesh/wa
|
|
45
45
|
|
46
46
|
> **aztec\_addCapsule**: `object`
|
47
47
|
|
48
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:184](https://github.com/WalletMesh/walletmesh-packages/blob/
|
48
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:184](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L184)
|
49
49
|
|
50
50
|
#### params
|
51
51
|
|
@@ -55,9 +55,17 @@ Defined in: [aztec/rpc-wallet/src/types.ts:184](https://github.com/WalletMesh/wa
|
|
55
55
|
|
56
56
|
> **capsule**: `Fr`[]
|
57
57
|
|
58
|
+
##### params.contract
|
59
|
+
|
60
|
+
> **contract**: `AztecAddress`
|
61
|
+
|
62
|
+
##### params.storageSlot
|
63
|
+
|
64
|
+
> **storageSlot**: `Fr`
|
65
|
+
|
58
66
|
#### result
|
59
67
|
|
60
|
-
> **result**: `
|
68
|
+
> **result**: `undefined`
|
61
69
|
|
62
70
|
***
|
63
71
|
|
@@ -65,7 +73,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:184](https://github.com/WalletMesh/wa
|
|
65
73
|
|
66
74
|
> **aztec\_addNote**: `object`
|
67
75
|
|
68
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:270](https://github.com/WalletMesh/walletmesh-packages/blob/
|
76
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:270](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L270)
|
69
77
|
|
70
78
|
#### params
|
71
79
|
|
@@ -85,7 +93,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:270](https://github.com/WalletMesh/wa
|
|
85
93
|
|
86
94
|
> **aztec\_addNullifiedNote**: `object`
|
87
95
|
|
88
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:271](https://github.com/WalletMesh/walletmesh-packages/blob/
|
96
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:271](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L271)
|
89
97
|
|
90
98
|
#### params
|
91
99
|
|
@@ -105,7 +113,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:271](https://github.com/WalletMesh/wa
|
|
105
113
|
|
106
114
|
> **aztec\_connect**: `object`
|
107
115
|
|
108
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:88](https://github.com/WalletMesh/walletmesh-packages/blob/
|
116
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:88](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L88)
|
109
117
|
|
110
118
|
Connects to the Aztec network.
|
111
119
|
|
@@ -127,7 +135,7 @@ A boolean indicating if the connection was successful
|
|
127
135
|
|
128
136
|
> **aztec\_createAuthWit**: `object`
|
129
137
|
|
130
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:198](https://github.com/WalletMesh/walletmesh-packages/blob/
|
138
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:198](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L198)
|
131
139
|
|
132
140
|
#### params
|
133
141
|
|
@@ -147,7 +155,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:198](https://github.com/WalletMesh/wa
|
|
147
155
|
|
148
156
|
> **aztec\_createTxExecutionRequest**: `object`
|
149
157
|
|
150
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:244](https://github.com/WalletMesh/walletmesh-packages/blob/
|
158
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:244](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L244)
|
151
159
|
|
152
160
|
#### params
|
153
161
|
|
@@ -167,7 +175,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:244](https://github.com/WalletMesh/wa
|
|
167
175
|
|
168
176
|
> **aztec\_getAccount**: `object`
|
169
177
|
|
170
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:94](https://github.com/WalletMesh/walletmesh-packages/blob/
|
178
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:94](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L94)
|
171
179
|
|
172
180
|
Gets the account address from the wallet.
|
173
181
|
|
@@ -189,7 +197,7 @@ The account address as a string
|
|
189
197
|
|
190
198
|
> **aztec\_getAddress**: `object`
|
191
199
|
|
192
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:187](https://github.com/WalletMesh/walletmesh-packages/blob/
|
200
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:187](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L187)
|
193
201
|
|
194
202
|
#### result
|
195
203
|
|
@@ -201,7 +209,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:187](https://github.com/WalletMesh/wa
|
|
201
209
|
|
202
210
|
> **aztec\_getAuthWitness**: `object`
|
203
211
|
|
204
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:197](https://github.com/WalletMesh/walletmesh-packages/blob/
|
212
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:197](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L197)
|
205
213
|
|
206
214
|
#### params
|
207
215
|
|
@@ -221,7 +229,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:197](https://github.com/WalletMesh/wa
|
|
221
229
|
|
222
230
|
> **aztec\_getBlock**: `object`
|
223
231
|
|
224
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:163](https://github.com/WalletMesh/walletmesh-packages/blob/
|
232
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:163](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L163)
|
225
233
|
|
226
234
|
#### params
|
227
235
|
|
@@ -241,7 +249,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:163](https://github.com/WalletMesh/wa
|
|
241
249
|
|
242
250
|
> **aztec\_getBlockNumber**: `object`
|
243
251
|
|
244
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:164](https://github.com/WalletMesh/walletmesh-packages/blob/
|
252
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:164](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L164)
|
245
253
|
|
246
254
|
#### result
|
247
255
|
|
@@ -253,7 +261,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:164](https://github.com/WalletMesh/wa
|
|
253
261
|
|
254
262
|
> **aztec\_getChainId**: `object`
|
255
263
|
|
256
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:165](https://github.com/WalletMesh/walletmesh-packages/blob/
|
264
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:165](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L165)
|
257
265
|
|
258
266
|
#### result
|
259
267
|
|
@@ -265,7 +273,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:165](https://github.com/WalletMesh/wa
|
|
265
273
|
|
266
274
|
> **aztec\_getCompleteAddress**: `object`
|
267
275
|
|
268
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:188](https://github.com/WalletMesh/walletmesh-packages/blob/
|
276
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:188](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L188)
|
269
277
|
|
270
278
|
#### result
|
271
279
|
|
@@ -277,7 +285,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:188](https://github.com/WalletMesh/wa
|
|
277
285
|
|
278
286
|
> **aztec\_getContractClassLogs**: `object`
|
279
287
|
|
280
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:275](https://github.com/WalletMesh/walletmesh-packages/blob/
|
288
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:275](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L275)
|
281
289
|
|
282
290
|
#### params
|
283
291
|
|
@@ -297,7 +305,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:275](https://github.com/WalletMesh/wa
|
|
297
305
|
|
298
306
|
> **aztec\_getContractClassMetadata**: `object`
|
299
307
|
|
300
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:218](https://github.com/WalletMesh/walletmesh-packages/blob/
|
308
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:218](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L218)
|
301
309
|
|
302
310
|
#### params
|
303
311
|
|
@@ -321,7 +329,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:218](https://github.com/WalletMesh/wa
|
|
321
329
|
|
322
330
|
> **aztec\_getContractMetadata**: `object`
|
323
331
|
|
324
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:217](https://github.com/WalletMesh/walletmesh-packages/blob/
|
332
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:217](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L217)
|
325
333
|
|
326
334
|
#### params
|
327
335
|
|
@@ -341,7 +349,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:217](https://github.com/WalletMesh/wa
|
|
341
349
|
|
342
350
|
> **aztec\_getContracts**: `object`
|
343
351
|
|
344
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:216](https://github.com/WalletMesh/walletmesh-packages/blob/
|
352
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:216](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L216)
|
345
353
|
|
346
354
|
#### result
|
347
355
|
|
@@ -353,7 +361,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:216](https://github.com/WalletMesh/wa
|
|
353
361
|
|
354
362
|
> **aztec\_getCurrentBaseFees**: `object`
|
355
363
|
|
356
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:170](https://github.com/WalletMesh/walletmesh-packages/blob/
|
364
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:170](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L170)
|
357
365
|
|
358
366
|
#### result
|
359
367
|
|
@@ -365,7 +373,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:170](https://github.com/WalletMesh/wa
|
|
365
373
|
|
366
374
|
> **aztec\_getL1ToL2MembershipWitness**: `object`
|
367
375
|
|
368
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:178](https://github.com/WalletMesh/walletmesh-packages/blob/
|
376
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:178](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L178)
|
369
377
|
|
370
378
|
#### params
|
371
379
|
|
@@ -393,7 +401,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:178](https://github.com/WalletMesh/wa
|
|
393
401
|
|
394
402
|
> **aztec\_getNodeInfo**: `object`
|
395
403
|
|
396
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:167](https://github.com/WalletMesh/walletmesh-packages/blob/
|
404
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:167](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L167)
|
397
405
|
|
398
406
|
#### result
|
399
407
|
|
@@ -405,7 +413,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:167](https://github.com/WalletMesh/wa
|
|
405
413
|
|
406
414
|
> **aztec\_getNotes**: `object`
|
407
415
|
|
408
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:269](https://github.com/WalletMesh/walletmesh-packages/blob/
|
416
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:269](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L269)
|
409
417
|
|
410
418
|
#### params
|
411
419
|
|
@@ -425,7 +433,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:269](https://github.com/WalletMesh/wa
|
|
425
433
|
|
426
434
|
> **aztec\_getPrivateEvents**: `object`
|
427
435
|
|
428
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:276](https://github.com/WalletMesh/walletmesh-packages/blob/
|
436
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:276](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L276)
|
429
437
|
|
430
438
|
#### params
|
431
439
|
|
@@ -457,7 +465,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:276](https://github.com/WalletMesh/wa
|
|
457
465
|
|
458
466
|
> **aztec\_getProvenBlockNumber**: `object`
|
459
467
|
|
460
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:168](https://github.com/WalletMesh/walletmesh-packages/blob/
|
468
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:168](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L168)
|
461
469
|
|
462
470
|
#### result
|
463
471
|
|
@@ -469,7 +477,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:168](https://github.com/WalletMesh/wa
|
|
469
477
|
|
470
478
|
> **aztec\_getPublicEvents**: `object`
|
471
479
|
|
472
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:280](https://github.com/WalletMesh/walletmesh-packages/blob/
|
480
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:280](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L280)
|
473
481
|
|
474
482
|
#### params
|
475
483
|
|
@@ -497,7 +505,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:280](https://github.com/WalletMesh/wa
|
|
497
505
|
|
498
506
|
> **aztec\_getPublicLogs**: `object`
|
499
507
|
|
500
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:274](https://github.com/WalletMesh/walletmesh-packages/blob/
|
508
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:274](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L274)
|
501
509
|
|
502
510
|
#### params
|
503
511
|
|
@@ -517,7 +525,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:274](https://github.com/WalletMesh/wa
|
|
517
525
|
|
518
526
|
> **aztec\_getPublicStorageAt**: `object`
|
519
527
|
|
520
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:240](https://github.com/WalletMesh/walletmesh-packages/blob/
|
528
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:240](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L240)
|
521
529
|
|
522
530
|
#### params
|
523
531
|
|
@@ -541,7 +549,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:240](https://github.com/WalletMesh/wa
|
|
541
549
|
|
542
550
|
> **aztec\_getPXEInfo**: `object`
|
543
551
|
|
544
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:169](https://github.com/WalletMesh/walletmesh-packages/blob/
|
552
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:169](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L169)
|
545
553
|
|
546
554
|
#### result
|
547
555
|
|
@@ -553,7 +561,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:169](https://github.com/WalletMesh/wa
|
|
553
561
|
|
554
562
|
> **aztec\_getRegisteredAccounts**: `object`
|
555
563
|
|
556
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:193](https://github.com/WalletMesh/walletmesh-packages/blob/
|
564
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:193](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L193)
|
557
565
|
|
558
566
|
#### result
|
559
567
|
|
@@ -565,7 +573,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:193](https://github.com/WalletMesh/wa
|
|
565
573
|
|
566
574
|
> **aztec\_getScopes**: `object`
|
567
575
|
|
568
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:174](https://github.com/WalletMesh/walletmesh-packages/blob/
|
576
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:174](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L174)
|
569
577
|
|
570
578
|
#### result
|
571
579
|
|
@@ -577,7 +585,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:174](https://github.com/WalletMesh/wa
|
|
577
585
|
|
578
586
|
> **aztec\_getSenders**: `object`
|
579
587
|
|
580
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:211](https://github.com/WalletMesh/walletmesh-packages/blob/
|
588
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:211](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L211)
|
581
589
|
|
582
590
|
#### result
|
583
591
|
|
@@ -589,7 +597,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:211](https://github.com/WalletMesh/wa
|
|
589
597
|
|
590
598
|
> **aztec\_getTxEffect**: `object`
|
591
599
|
|
592
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:249](https://github.com/WalletMesh/walletmesh-packages/blob/
|
600
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:249](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L249)
|
593
601
|
|
594
602
|
#### params
|
595
603
|
|
@@ -609,7 +617,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:249](https://github.com/WalletMesh/wa
|
|
609
617
|
|
610
618
|
> **aztec\_getTxReceipt**: `object`
|
611
619
|
|
612
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:250](https://github.com/WalletMesh/walletmesh-packages/blob/
|
620
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:250](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L250)
|
613
621
|
|
614
622
|
#### params
|
615
623
|
|
@@ -629,7 +637,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:250](https://github.com/WalletMesh/wa
|
|
629
637
|
|
630
638
|
> **aztec\_getVersion**: `object`
|
631
639
|
|
632
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:166](https://github.com/WalletMesh/walletmesh-packages/blob/
|
640
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:166](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L166)
|
633
641
|
|
634
642
|
#### result
|
635
643
|
|
@@ -641,7 +649,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:166](https://github.com/WalletMesh/wa
|
|
641
649
|
|
642
650
|
> **aztec\_isL1ToL2MessageSynced**: `object`
|
643
651
|
|
644
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:177](https://github.com/WalletMesh/walletmesh-packages/blob/
|
652
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:177](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L177)
|
645
653
|
|
646
654
|
#### params
|
647
655
|
|
@@ -661,7 +669,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:177](https://github.com/WalletMesh/wa
|
|
661
669
|
|
662
670
|
> **aztec\_proveTx**: `object`
|
663
671
|
|
664
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:245](https://github.com/WalletMesh/walletmesh-packages/blob/
|
672
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:245](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L245)
|
665
673
|
|
666
674
|
#### params
|
667
675
|
|
@@ -685,7 +693,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:245](https://github.com/WalletMesh/wa
|
|
685
693
|
|
686
694
|
> **aztec\_registerAccount**: `object`
|
687
695
|
|
688
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:189](https://github.com/WalletMesh/walletmesh-packages/blob/
|
696
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:189](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L189)
|
689
697
|
|
690
698
|
#### params
|
691
699
|
|
@@ -709,7 +717,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:189](https://github.com/WalletMesh/wa
|
|
709
717
|
|
710
718
|
> **aztec\_registerContract**: `object`
|
711
719
|
|
712
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:228](https://github.com/WalletMesh/walletmesh-packages/blob/
|
720
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:228](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L228)
|
713
721
|
|
714
722
|
Registers a contract instance in the user's PXE.
|
715
723
|
|
@@ -743,7 +751,7 @@ True if registration was successful
|
|
743
751
|
|
744
752
|
> **aztec\_registerContractClass**: `object`
|
745
753
|
|
746
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:238](https://github.com/WalletMesh/walletmesh-packages/blob/
|
754
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:238](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L238)
|
747
755
|
|
748
756
|
Registers a contract class in the user's PXE.
|
749
757
|
|
@@ -773,7 +781,7 @@ True if registration was successful
|
|
773
781
|
|
774
782
|
> **aztec\_registerSender**: `object`
|
775
783
|
|
776
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:210](https://github.com/WalletMesh/walletmesh-packages/blob/
|
784
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:210](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L210)
|
777
785
|
|
778
786
|
Registers a contact in the user's PXE
|
779
787
|
|
@@ -803,7 +811,7 @@ True if registration was successful
|
|
803
811
|
|
804
812
|
> **aztec\_removeSender**: `object`
|
805
813
|
|
806
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:212](https://github.com/WalletMesh/walletmesh-packages/blob/
|
814
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:212](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L212)
|
807
815
|
|
808
816
|
#### params
|
809
817
|
|
@@ -823,7 +831,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:212](https://github.com/WalletMesh/wa
|
|
823
831
|
|
824
832
|
> **aztec\_sendTransaction**: `object`
|
825
833
|
|
826
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:101](https://github.com/WalletMesh/walletmesh-packages/blob/
|
834
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:101](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L101)
|
827
835
|
|
828
836
|
Sends transactions to the Aztec network.
|
829
837
|
|
@@ -853,7 +861,7 @@ The transaction hash as a string
|
|
853
861
|
|
854
862
|
> **aztec\_sendTx**: `object`
|
855
863
|
|
856
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:243](https://github.com/WalletMesh/walletmesh-packages/blob/
|
864
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:243](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L243)
|
857
865
|
|
858
866
|
#### params
|
859
867
|
|
@@ -873,7 +881,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:243](https://github.com/WalletMesh/wa
|
|
873
881
|
|
874
882
|
> **aztec\_setScopes**: `object`
|
875
883
|
|
876
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:173](https://github.com/WalletMesh/walletmesh-packages/blob/
|
884
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:173](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L173)
|
877
885
|
|
878
886
|
#### params
|
879
887
|
|
@@ -893,7 +901,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:173](https://github.com/WalletMesh/wa
|
|
893
901
|
|
894
902
|
> **aztec\_simulateTransaction**: `object`
|
895
903
|
|
896
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:111](https://github.com/WalletMesh/walletmesh-packages/blob/
|
904
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:111](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L111)
|
897
905
|
|
898
906
|
Simulates a transaction without executing it.
|
899
907
|
|
@@ -923,7 +931,7 @@ The simulation result
|
|
923
931
|
|
924
932
|
> **aztec\_simulateTx**: `object`
|
925
933
|
|
926
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:252](https://github.com/WalletMesh/walletmesh-packages/blob/
|
934
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:252](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L252)
|
927
935
|
|
928
936
|
#### params
|
929
937
|
|
@@ -963,7 +971,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:252](https://github.com/WalletMesh/wa
|
|
963
971
|
|
964
972
|
> **aztec\_simulateUnconstrained**: `object`
|
965
973
|
|
966
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:263](https://github.com/WalletMesh/walletmesh-packages/blob/
|
974
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:263](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L263)
|
967
975
|
|
968
976
|
#### params
|
969
977
|
|
@@ -995,7 +1003,7 @@ Defined in: [aztec/rpc-wallet/src/types.ts:263](https://github.com/WalletMesh/wa
|
|
995
1003
|
|
996
1004
|
> **wm\_getSupportedMethods**: `object`
|
997
1005
|
|
998
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:120](https://github.com/WalletMesh/walletmesh-packages/blob/
|
1006
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:120](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L120)
|
999
1007
|
|
1000
1008
|
Returns the list of supported methods for the wallet.
|
1001
1009
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,4 +8,4 @@
|
|
8
8
|
|
9
9
|
> **AztecChainId**: `` `aztec:${string}` ``
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:296](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:296](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L296)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,6 +8,6 @@
|
|
8
8
|
|
9
9
|
> **AztecChainWalletMiddleware**: `JSONRPCMiddleware`\<[`AztecWalletMethodMap`](../interfaces/AztecWalletMethodMap.md), [`AztecWalletContext`](AztecWalletContext.md)\>
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:149](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:149](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L149)
|
12
12
|
|
13
13
|
Type for Aztec Chain Wallet middleware.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> **AztecWalletContext**: `Record`\<`string`, `unknown`\> & `object`
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:133](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:133](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L133)
|
12
12
|
|
13
13
|
Holds the context passed through RPC middleware.
|
14
14
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> **AztecWalletMethodHandler**\<`T`, `M`, `C`\>: (`context`, `params`, `accountWallet`) => `Promise`\<`T`\[`M`\]\[`"result"`\]\> \| `T`\[`M`\]\[`"result"`\]
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:286](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:286](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L286)
|
12
12
|
|
13
13
|
## Type Parameters
|
14
14
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,6 +8,6 @@
|
|
8
8
|
|
9
9
|
> **AztecWalletMiddleware**: `JSONRPCMiddleware`\<[`AztecWalletBaseMethodMap`](../interfaces/AztecWalletBaseMethodMap.md), [`AztecWalletContext`](AztecWalletContext.md)\>
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:144](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:144](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L144)
|
12
12
|
|
13
13
|
Type for Aztec Router Wallet middleware.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,6 +8,6 @@
|
|
8
8
|
|
9
9
|
> **AztecWalletRouterClient**: `JSONRPCWalletClient`\<[`AztecWalletMethodMap`](../interfaces/AztecWalletMethodMap.md)\>
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:155](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:155](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L155)
|
12
12
|
|
13
13
|
Type for Aztec wallet router client.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> **TransactionFunctionCall**: `object`
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:49](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:49](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L49)
|
12
12
|
|
13
13
|
Represents a single function call to a contract.
|
14
14
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> **TransactionParams**: `object`
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:62](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:62](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/types.ts#L62)
|
12
12
|
|
13
13
|
Parameters for sending transactions.
|
14
14
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.3.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.3.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,6 +8,6 @@
|
|
8
8
|
|
9
9
|
> `const` **AztecWalletErrorMap**: `Record`\<`AztecWalletErrorType`, \{ `code`: `number`; `message`: `string`; \}\>
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/errors.ts:37](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/errors.ts:37](https://github.com/WalletMesh/walletmesh-packages/blob/65bc501d5bed45d0e6d444f53e29595da551d59e/aztec/rpc-wallet/src/errors.ts#L37)
|
12
12
|
|
13
13
|
Map of error codes and messages for Aztec Wallet RPC errors.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@walletmesh/aztec-rpc-wallet",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.1",
|
4
4
|
"description": "",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.js",
|
@@ -21,10 +21,10 @@
|
|
21
21
|
"typedoc-plugin-markdown": "^4.3.1"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@aztec/aztec.js": "0.
|
25
|
-
"@aztec/circuit-types": "0.
|
26
|
-
"@aztec/circuits.js": "0.
|
27
|
-
"@aztec/foundation": "0.
|
24
|
+
"@aztec/aztec.js": "0.76.2",
|
25
|
+
"@aztec/circuit-types": "0.76.2",
|
26
|
+
"@aztec/circuits.js": "0.76.2",
|
27
|
+
"@aztec/foundation": "0.76.2",
|
28
28
|
"@walletmesh/jsonrpc": "0.4.0",
|
29
29
|
"@walletmesh/router": "0.4.0"
|
30
30
|
},
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { describe, expect, it, vi, beforeEach } from 'vitest';
|
2
|
-
import { Fr, getContractClassFromArtifact } from '@aztec/aztec.js';
|
2
|
+
import { AztecAddress, Fr, getContractClassFromArtifact } from '@aztec/aztec.js';
|
3
3
|
import type {
|
4
|
-
AztecAddress,
|
5
4
|
TxExecutionRequest,
|
6
5
|
ContractInstanceWithAddress,
|
7
6
|
ContractClassWithId,
|
@@ -163,10 +162,12 @@ describe('AztecRemoteWallet', () => {
|
|
163
162
|
});
|
164
163
|
|
165
164
|
it('adds capsule', async () => {
|
166
|
-
const mockCapsule = [Fr.
|
165
|
+
const mockCapsule = [await Fr.random()]
|
166
|
+
const contract = await AztecAddress.random();
|
167
|
+
const storageSlot = await Fr.random();
|
167
168
|
mockChainBuilder.execute.mockResolvedValueOnce(true);
|
168
|
-
await wallet.addCapsule(mockCapsule);
|
169
|
-
expect(mockChainBuilder.call).toHaveBeenCalledWith('aztec_addCapsule', { capsule: mockCapsule });
|
169
|
+
await wallet.addCapsule(contract, storageSlot, mockCapsule);
|
170
|
+
expect(mockChainBuilder.call).toHaveBeenCalledWith('aztec_addCapsule', { contract, storageSlot, capsule: mockCapsule });
|
170
171
|
});
|
171
172
|
|
172
173
|
it('registers account', async () => {
|