@walletmesh/aztec-rpc-wallet 0.4.0 → 0.4.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/wallet/serializers.d.ts.map +1 -1
- package/dist/wallet/serializers.js +1 -4
- package/docs/README.md +1 -1
- package/docs/classes/AztecDappWallet.md +40 -40
- package/docs/classes/AztecRouterProvider.md +3 -3
- package/docs/classes/AztecWalletError.md +4 -4
- package/docs/classes/ContractArtifactCache.md +4 -4
- package/docs/functions/connectAztec.md +2 -2
- package/docs/functions/createAztecWallet.md +2 -2
- package/docs/functions/createAztecWalletNode.md +2 -2
- package/docs/functions/registerAztecSerializers.md +2 -2
- package/docs/functions/registerWalletAztecSerializers.md +2 -2
- package/docs/globals.md +2 -2
- package/docs/interfaces/AztecHandlerContext.md +5 -5
- package/docs/interfaces/AztecWalletContext.md +5 -5
- package/docs/interfaces/AztecWalletMethodMap.md +33 -33
- package/docs/type-aliases/AztecChainId.md +2 -2
- package/docs/variables/ALL_AZTEC_METHODS.md +2 -2
- package/docs/variables/AztecWalletErrorMap.md +2 -2
- package/docs/variables/AztecWalletSerializer.md +2 -2
- package/package.json +3 -1
- package/src/wallet/serializers.ts +1 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> **createAztecWalletNode**(`wallet`, `pxe`, `transport`): `JSONRPCNode`\<[`AztecWalletMethodMap`](../interfaces/AztecWalletMethodMap.md), [`JSONRPCEventMap`](https://github.com/WalletMesh/walletmesh-packages/tree/main/core/jsonrpc/docs/interfaces/JSONRPCEventMap.md), [`AztecHandlerContext`](../interfaces/AztecHandlerContext.md)\>
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/wallet/create-node.ts:77](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/wallet/create-node.ts:77](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/wallet/create-node.ts#L77)
|
12
12
|
|
13
13
|
Creates and configures a JSONRPCNode to serve as an Aztec wallet endpoint.
|
14
14
|
This node is intended to be used on the wallet-side (e.g., in a browser extension
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> **registerAztecSerializers**(`provider`): `void`
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/client/register-serializers.ts:43](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/client/register-serializers.ts:43](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/client/register-serializers.ts#L43)
|
12
12
|
|
13
13
|
Registers the [AztecWalletSerializer](../variables/AztecWalletSerializer.md) for all relevant Aztec JSON-RPC methods
|
14
14
|
on a given [WalletRouterProvider](https://github.com/WalletMesh/walletmesh-packages/tree/main/core/router/docs/index/classes/WalletRouterProvider.md) instance.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> **registerWalletAztecSerializers**(`node`): `void`
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/wallet/serializers.ts:
|
11
|
+
Defined in: [aztec/rpc-wallet/src/wallet/serializers.ts:546](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/wallet/serializers.ts#L546)
|
12
12
|
|
13
13
|
Registers the [AztecWalletSerializer](../variables/AztecWalletSerializer.md) for all relevant Aztec JSON-RPC methods
|
14
14
|
on a given JSONRPCNode instance.
|
package/docs/globals.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
# Interface: AztecHandlerContext
|
8
8
|
|
9
|
-
Defined in: [aztec/rpc-wallet/src/wallet/handlers/index.ts:26](https://github.com/WalletMesh/walletmesh-packages/blob/
|
9
|
+
Defined in: [aztec/rpc-wallet/src/wallet/handlers/index.ts:26](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/wallet/handlers/index.ts#L26)
|
10
10
|
|
11
11
|
Defines the context object that is passed to all Aztec wallet JSON-RPC method handlers.
|
12
12
|
This context provides handlers with the necessary dependencies to perform their operations.
|
@@ -26,7 +26,7 @@ It extends the base JSONRPCContext with Aztec-specific instances.
|
|
26
26
|
|
27
27
|
> **cache**: [`ContractArtifactCache`](../classes/ContractArtifactCache.md)
|
28
28
|
|
29
|
-
Defined in: [aztec/rpc-wallet/src/wallet/handlers/index.ts:29](https://github.com/WalletMesh/walletmesh-packages/blob/
|
29
|
+
Defined in: [aztec/rpc-wallet/src/wallet/handlers/index.ts:29](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/wallet/handlers/index.ts#L29)
|
30
30
|
|
31
31
|
An instance of [ContractArtifactCache](../classes/ContractArtifactCache.md) used for caching
|
32
32
|
contract artifacts to optimize performance.
|
@@ -37,7 +37,7 @@ An instance of [ContractArtifactCache](../classes/ContractArtifactCache.md) used
|
|
37
37
|
|
38
38
|
> **pxe**: `PXE`
|
39
39
|
|
40
|
-
Defined in: [aztec/rpc-wallet/src/wallet/handlers/index.ts:28](https://github.com/WalletMesh/walletmesh-packages/blob/
|
40
|
+
Defined in: [aztec/rpc-wallet/src/wallet/handlers/index.ts:28](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/wallet/handlers/index.ts#L28)
|
41
41
|
|
42
42
|
An instance of PXE (Private Execution Environment) client
|
43
43
|
from `aztec.js`, used for interacting with the Aztec network.
|
@@ -48,7 +48,7 @@ An instance of PXE (Private Execution Environment) client
|
|
48
48
|
|
49
49
|
> **wallet**: `AccountWallet`
|
50
50
|
|
51
|
-
Defined in: [aztec/rpc-wallet/src/wallet/handlers/index.ts:27](https://github.com/WalletMesh/walletmesh-packages/blob/
|
51
|
+
Defined in: [aztec/rpc-wallet/src/wallet/handlers/index.ts:27](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/wallet/handlers/index.ts#L27)
|
52
52
|
|
53
53
|
An instance of AccountWallet from `aztec.js`,
|
54
54
|
representing the user's account and signing capabilities.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
# Interface: AztecWalletContext
|
8
8
|
|
9
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:72](https://github.com/WalletMesh/walletmesh-packages/blob/
|
9
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:72](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L72)
|
10
10
|
|
11
11
|
Defines the context object provided to all Aztec wallet-side JSON-RPC method handlers.
|
12
12
|
This context aggregates essential dependencies required by handlers to perform their operations.
|
@@ -21,7 +21,7 @@ This context aggregates essential dependencies required by handlers to perform t
|
|
21
21
|
|
22
22
|
> **cache**: [`ContractArtifactCache`](../classes/ContractArtifactCache.md)
|
23
23
|
|
24
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:88](https://github.com/WalletMesh/walletmesh-packages/blob/
|
24
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:88](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L88)
|
25
25
|
|
26
26
|
An instance of [ContractArtifactCache](../classes/ContractArtifactCache.md) used for caching contract artifacts.
|
27
27
|
This helps optimize performance by avoiding redundant fetches of artifact data.
|
@@ -32,7 +32,7 @@ This helps optimize performance by avoiding redundant fetches of artifact data.
|
|
32
32
|
|
33
33
|
> **pxe**: `PXE`
|
34
34
|
|
35
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:83](https://github.com/WalletMesh/walletmesh-packages/blob/
|
35
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:83](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L83)
|
36
36
|
|
37
37
|
The `aztec.js` PXE (Private Execution Environment) client instance.
|
38
38
|
This is used for interacting with the Aztec network, such as simulating transactions,
|
@@ -44,7 +44,7 @@ getting node information, fetching blocks, and managing private state.
|
|
44
44
|
|
45
45
|
> **wallet**: `AccountWallet`
|
46
46
|
|
47
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:77](https://github.com/WalletMesh/walletmesh-packages/blob/
|
47
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:77](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L77)
|
48
48
|
|
49
49
|
The `aztec.js` AccountWallet instance. This wallet holds the user's account keys
|
50
50
|
and provides methods for signing, creating transactions, and interacting with the PXE.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.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:117](https://github.com/WalletMesh/walletmesh-packages/blob/
|
9
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:117](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L117)
|
10
10
|
|
11
11
|
Defines the complete map of all JSON-RPC methods supported by the Aztec RPC Wallet.
|
12
12
|
This interface extends the base WalletMethodMap from `@walletmesh/router`
|
@@ -39,7 +39,7 @@ Methods are loosely grouped by functionality (Chain/Node, Account, Sender, etc.)
|
|
39
39
|
|
40
40
|
> **aztec\_createAuthWit**: `object`
|
41
41
|
|
42
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:201](https://github.com/WalletMesh/walletmesh-packages/blob/
|
42
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:201](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L201)
|
43
43
|
|
44
44
|
Creates an AuthWitness (authorization witness) for a given message hash or intent.
|
45
45
|
Used for delegating actions.
|
@@ -70,7 +70,7 @@ result - The created AuthWitness.
|
|
70
70
|
|
71
71
|
> **aztec\_getAddress**: `object`
|
72
72
|
|
73
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:185](https://github.com/WalletMesh/walletmesh-packages/blob/
|
73
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:185](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L185)
|
74
74
|
|
75
75
|
Retrieves the primary AztecAddress of the wallet's account.
|
76
76
|
|
@@ -96,7 +96,7 @@ result - The wallet's AztecAddress.
|
|
96
96
|
|
97
97
|
> **aztec\_getBlock**: `object`
|
98
98
|
|
99
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:135](https://github.com/WalletMesh/walletmesh-packages/blob/
|
99
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:135](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L135)
|
100
100
|
|
101
101
|
Retrieves a specific L2 block by its number.
|
102
102
|
|
@@ -126,7 +126,7 @@ result - The L2Block data, or null/undefined if not found (behavior depends on P
|
|
126
126
|
|
127
127
|
> **aztec\_getBlockNumber**: `object`
|
128
128
|
|
129
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:141](https://github.com/WalletMesh/walletmesh-packages/blob/
|
129
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:141](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L141)
|
130
130
|
|
131
131
|
Retrieves the current (latest) L2 block number.
|
132
132
|
|
@@ -152,7 +152,7 @@ result - The current block number.
|
|
152
152
|
|
153
153
|
> **aztec\_getChainId**: `object`
|
154
154
|
|
155
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:147](https://github.com/WalletMesh/walletmesh-packages/blob/
|
155
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:147](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L147)
|
156
156
|
|
157
157
|
Retrieves the chain ID of the connected Aztec network.
|
158
158
|
|
@@ -178,7 +178,7 @@ result - The chain ID as an Fr.
|
|
178
178
|
|
179
179
|
> **aztec\_getCompleteAddress**: `object`
|
180
180
|
|
181
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:191](https://github.com/WalletMesh/walletmesh-packages/blob/
|
181
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:191](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L191)
|
182
182
|
|
183
183
|
Retrieves the CompleteAddress of the wallet's account, including public keys.
|
184
184
|
|
@@ -204,7 +204,7 @@ result - The wallet's CompleteAddress.
|
|
204
204
|
|
205
205
|
> **aztec\_getContractClassMetadata**: `object`
|
206
206
|
|
207
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:258](https://github.com/WalletMesh/walletmesh-packages/blob/
|
207
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:258](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L258)
|
208
208
|
|
209
209
|
Retrieves ContractClassMetadata for a specific contract class.
|
210
210
|
|
@@ -238,7 +238,7 @@ result - The ContractClassMetadata.
|
|
238
238
|
|
239
239
|
> **aztec\_getContractMetadata**: `object`
|
240
240
|
|
241
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:247](https://github.com/WalletMesh/walletmesh-packages/blob/
|
241
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:247](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L247)
|
242
242
|
|
243
243
|
Retrieves ContractMetadata for a specific deployed contract.
|
244
244
|
|
@@ -268,7 +268,7 @@ result - The ContractMetadata for the specified contract.
|
|
268
268
|
|
269
269
|
> **aztec\_getContracts**: `object`
|
270
270
|
|
271
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:240](https://github.com/WalletMesh/walletmesh-packages/blob/
|
271
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:240](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L240)
|
272
272
|
|
273
273
|
Retrieves a list of all AztecAddresses of contracts known to the PXE/wallet.
|
274
274
|
|
@@ -294,7 +294,7 @@ result - An array of contract AztecAddresses.
|
|
294
294
|
|
295
295
|
> **aztec\_getCurrentBaseFees**: `object`
|
296
296
|
|
297
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:177](https://github.com/WalletMesh/walletmesh-packages/blob/
|
297
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:177](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L177)
|
298
298
|
|
299
299
|
Retrieves the current base gas fees on the network.
|
300
300
|
|
@@ -320,7 +320,7 @@ result - A GasFees object.
|
|
320
320
|
|
321
321
|
> **aztec\_getNodeInfo**: `object`
|
322
322
|
|
323
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:159](https://github.com/WalletMesh/walletmesh-packages/blob/
|
323
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:159](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L159)
|
324
324
|
|
325
325
|
Retrieves comprehensive information about the connected Aztec node.
|
326
326
|
|
@@ -346,7 +346,7 @@ result - A NodeInfo object.
|
|
346
346
|
|
347
347
|
> **aztec\_getPrivateEvents**: `object`
|
348
348
|
|
349
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:386](https://github.com/WalletMesh/walletmesh-packages/blob/
|
349
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:386](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L386)
|
350
350
|
|
351
351
|
Retrieves private (encrypted) events from the blockchain.
|
352
352
|
|
@@ -392,7 +392,7 @@ result - An array of decoded private event data (type `unknown[]`, actual type d
|
|
392
392
|
|
393
393
|
> **aztec\_getProvenBlockNumber**: `object`
|
394
394
|
|
395
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:165](https://github.com/WalletMesh/walletmesh-packages/blob/
|
395
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:165](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L165)
|
396
396
|
|
397
397
|
Retrieves the latest L2 block number that has been proven.
|
398
398
|
|
@@ -418,7 +418,7 @@ result - The latest proven block number.
|
|
418
418
|
|
419
419
|
> **aztec\_getPublicEvents**: `object`
|
420
420
|
|
421
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:404](https://github.com/WalletMesh/walletmesh-packages/blob/
|
421
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:404](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L404)
|
422
422
|
|
423
423
|
Retrieves public (unencrypted) events from the blockchain.
|
424
424
|
|
@@ -456,7 +456,7 @@ result - An array of decoded public event data (type `unknown[]`, actual type de
|
|
456
456
|
|
457
457
|
> **aztec\_getPXEInfo**: `object`
|
458
458
|
|
459
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:171](https://github.com/WalletMesh/walletmesh-packages/blob/
|
459
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:171](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L171)
|
460
460
|
|
461
461
|
Retrieves information about the PXE service, including capabilities and version.
|
462
462
|
|
@@ -482,7 +482,7 @@ result - A PXEInfo object.
|
|
482
482
|
|
483
483
|
> **aztec\_getSenders**: `object`
|
484
484
|
|
485
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:222](https://github.com/WalletMesh/walletmesh-packages/blob/
|
485
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:222](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L222)
|
486
486
|
|
487
487
|
Retrieves a list of all currently authorized sender AztecAddresses.
|
488
488
|
|
@@ -508,7 +508,7 @@ result - An array of authorized AztecAddresses.
|
|
508
508
|
|
509
509
|
> **aztec\_getTxReceipt**: `object`
|
510
510
|
|
511
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:312](https://github.com/WalletMesh/walletmesh-packages/blob/
|
511
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:312](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L312)
|
512
512
|
|
513
513
|
Retrieves the TxReceipt for a transaction.
|
514
514
|
|
@@ -538,7 +538,7 @@ result - The TxReceipt.
|
|
538
538
|
|
539
539
|
> **aztec\_getVersion**: `object`
|
540
540
|
|
541
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:153](https://github.com/WalletMesh/walletmesh-packages/blob/
|
541
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:153](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L153)
|
542
542
|
|
543
543
|
Retrieves the version of the connected PXE (Private Execution Environment) or node.
|
544
544
|
|
@@ -564,7 +564,7 @@ result - The version as an Fr.
|
|
564
564
|
|
565
565
|
> **aztec\_profileTx**: `object`
|
566
566
|
|
567
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:345](https://github.com/WalletMesh/walletmesh-packages/blob/
|
567
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:345](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L345)
|
568
568
|
|
569
569
|
Profiles a TxExecutionRequest for performance analysis.
|
570
570
|
|
@@ -606,7 +606,7 @@ result - The TxProfileResult.
|
|
606
606
|
|
607
607
|
> **aztec\_proveTx**: `object`
|
608
608
|
|
609
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:292](https://github.com/WalletMesh/walletmesh-packages/blob/
|
609
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:292](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L292)
|
610
610
|
|
611
611
|
Generates proofs for a transaction execution request.
|
612
612
|
|
@@ -640,7 +640,7 @@ result - The TxProvingResult, including the proven transaction.
|
|
640
640
|
|
641
641
|
> **aztec\_registerContract**: `object`
|
642
642
|
|
643
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:269](https://github.com/WalletMesh/walletmesh-packages/blob/
|
643
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:269](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L269)
|
644
644
|
|
645
645
|
Registers a deployed contract instance with the wallet.
|
646
646
|
|
@@ -674,7 +674,7 @@ result - `true` if registration was successful.
|
|
674
674
|
|
675
675
|
> **aztec\_registerContractClass**: `object`
|
676
676
|
|
677
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:279](https://github.com/WalletMesh/walletmesh-packages/blob/
|
677
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:279](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L279)
|
678
678
|
|
679
679
|
Registers a contract class (bytecode and ABI) with the wallet.
|
680
680
|
|
@@ -704,7 +704,7 @@ result - `true` if registration was successful.
|
|
704
704
|
|
705
705
|
> **aztec\_registerSender**: `object`
|
706
706
|
|
707
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:213](https://github.com/WalletMesh/walletmesh-packages/blob/
|
707
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:213](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L213)
|
708
708
|
|
709
709
|
Registers a new authorized sender AztecAddress.
|
710
710
|
|
@@ -734,7 +734,7 @@ result - The registered AztecAddress.
|
|
734
734
|
|
735
735
|
> **aztec\_removeSender**: `object`
|
736
736
|
|
737
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:229](https://github.com/WalletMesh/walletmesh-packages/blob/
|
737
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:229](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L229)
|
738
738
|
|
739
739
|
Removes an AztecAddress from the list of authorized senders.
|
740
740
|
|
@@ -764,7 +764,7 @@ result - `true` if removal was successful.
|
|
764
764
|
|
765
765
|
> **aztec\_sendTx**: `object`
|
766
766
|
|
767
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:302](https://github.com/WalletMesh/walletmesh-packages/blob/
|
767
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:302](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L302)
|
768
768
|
|
769
769
|
Sends a proven Tx (transaction) to the network.
|
770
770
|
|
@@ -794,7 +794,7 @@ result - The TxHash of the sent transaction.
|
|
794
794
|
|
795
795
|
> **aztec\_simulateTx**: `object`
|
796
796
|
|
797
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:326](https://github.com/WalletMesh/walletmesh-packages/blob/
|
797
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:326](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L326)
|
798
798
|
|
799
799
|
Simulates a TxExecutionRequest without sending it to the network.
|
800
800
|
|
@@ -840,7 +840,7 @@ result - The TxSimulationResult.
|
|
840
840
|
|
841
841
|
> **aztec\_simulateUtility**: `object`
|
842
842
|
|
843
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:364](https://github.com/WalletMesh/walletmesh-packages/blob/
|
843
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:364](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L364)
|
844
844
|
|
845
845
|
Simulates a utility (view) function call.
|
846
846
|
|
@@ -886,7 +886,7 @@ result - The UtilitySimulationResult.
|
|
886
886
|
|
887
887
|
> **aztec\_wmDeployContract**: `object`
|
888
888
|
|
889
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:434](https://github.com/WalletMesh/walletmesh-packages/blob/
|
889
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:434](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L434)
|
890
890
|
|
891
891
|
WalletMesh specific: Deploys a new contract using its artifact and constructor arguments.
|
892
892
|
The wallet handles address computation, proving, and sending the deployment transaction.
|
@@ -926,7 +926,7 @@ result - An object with `txHash` (TxHash) and `contractAddress` (AztecAddress).
|
|
926
926
|
|
927
927
|
> **aztec\_wmExecuteTx**: `object`
|
928
928
|
|
929
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:421](https://github.com/WalletMesh/walletmesh-packages/blob/
|
929
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:421](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L421)
|
930
930
|
|
931
931
|
WalletMesh specific: Executes a contract function interaction using a pre-constructed ExecutionPayload.
|
932
932
|
The wallet handles simulation, proving, and sending.
|
@@ -957,7 +957,7 @@ result - The TxHash of the sent transaction.
|
|
957
957
|
|
958
958
|
> **aztec\_wmSimulateTx**: `object`
|
959
959
|
|
960
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:454](https://github.com/WalletMesh/walletmesh-packages/blob/
|
960
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:454](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L454)
|
961
961
|
|
962
962
|
WalletMesh specific: Simulates a contract function interaction using a pre-constructed ExecutionPayload.
|
963
963
|
|
@@ -987,7 +987,7 @@ result - The TxSimulationResult.
|
|
987
987
|
|
988
988
|
> **wm\_getSupportedMethods**: `object`
|
989
989
|
|
990
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:126](https://github.com/WalletMesh/walletmesh-packages/blob/
|
990
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:126](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L126)
|
991
991
|
|
992
992
|
Retrieves a list of all JSON-RPC methods supported by this wallet implementation.
|
993
993
|
Allows clients to discover the capabilities of the wallet.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> **AztecChainId** = `` `aztec:${string}` ``
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/types.ts:64](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/types.ts:64](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/types.ts#L64)
|
12
12
|
|
13
13
|
Type-safe Aztec chain ID format following the CAIP-2 standard.
|
14
14
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> `const` **ALL\_AZTEC\_METHODS**: readonly \[`"aztec_getAddress"`, `"aztec_getCompleteAddress"`, `"aztec_getChainId"`, `"aztec_getVersion"`, `"aztec_sendTx"`, `"aztec_getTxReceipt"`, `"aztec_simulateTx"`, `"aztec_getNodeInfo"`, `"aztec_getBlockNumber"`, `"aztec_getCurrentBaseFees"`, `"aztec_registerSender"`, `"aztec_getSenders"`, `"aztec_removeSender"`, `"aztec_registerContract"`, `"aztec_registerContractClass"`, `"aztec_getContractMetadata"`, `"aztec_getContractClassMetadata"`, `"aztec_proveTx"`, `"aztec_profileTx"`, `"aztec_simulateUtility"`, `"aztec_getPrivateEvents"`, `"aztec_getPublicEvents"`, `"aztec_getPXEInfo"`, `"aztec_getBlock"`, `"aztec_createAuthWit"`, `"aztec_wmDeployContract"`, `"aztec_wmExecuteTx"`, `"aztec_wmSimulateTx"`\]
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/client/helpers.ts:17](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/client/helpers.ts:17](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/client/helpers.ts#L17)
|
12
12
|
|
13
13
|
A comprehensive list of all JSON-RPC methods supported by the Aztec RPC wallet.
|
14
14
|
This array includes standard Aztec wallet methods as well as WalletMesh-specific extensions (prefixed with `wm_`).
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> `const` `readonly` **AztecWalletErrorMap**: `Record`\<`AztecWalletErrorType`, \{ `code`: `number`; `message`: `string`; \}\>
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/errors.ts:59](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/errors.ts:59](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/errors.ts#L59)
|
12
12
|
|
13
13
|
A map associating each AztecWalletErrorType with a specific JSON-RPC error code
|
14
14
|
and a human-readable message. This map is used by the [AztecWalletError](../classes/AztecWalletError.md) class
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[**@walletmesh/aztec-rpc-wallet v0.4.
|
1
|
+
[**@walletmesh/aztec-rpc-wallet v0.4.1**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
> `const` **AztecWalletSerializer**: [`JSONRPCSerializer`](https://github.com/WalletMesh/walletmesh-packages/tree/main/core/jsonrpc/docs/interfaces/JSONRPCSerializer.md)\<`JSONRPCParams`, `unknown`\>
|
10
10
|
|
11
|
-
Defined in: [aztec/rpc-wallet/src/wallet/serializers.ts:265](https://github.com/WalletMesh/walletmesh-packages/blob/
|
11
|
+
Defined in: [aztec/rpc-wallet/src/wallet/serializers.ts:265](https://github.com/WalletMesh/walletmesh-packages/blob/c22c9775e630bf48780e547c01c8f5442dc5b36c/aztec/rpc-wallet/src/wallet/serializers.ts#L265)
|
12
12
|
|
13
13
|
A comprehensive [JSONRPCSerializer](https://github.com/WalletMesh/walletmesh-packages/tree/main/core/jsonrpc/docs/interfaces/JSONRPCSerializer.md) for all Aztec wallet methods.
|
14
14
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@walletmesh/aztec-rpc-wallet",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.1",
|
4
4
|
"description": "",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.js",
|
@@ -24,7 +24,9 @@
|
|
24
24
|
"@aztec/aztec.js": "0.87.8",
|
25
25
|
"@aztec/blob-lib": "0.87.8",
|
26
26
|
"@aztec/entrypoints": "0.87.8",
|
27
|
+
"@aztec/foundation": "0.87.8",
|
27
28
|
"@aztec/stdlib": "0.87.8",
|
29
|
+
"zod": "^3.25.67",
|
28
30
|
"@walletmesh/router": "^0.5.0",
|
29
31
|
"@walletmesh/jsonrpc": "^0.5.0"
|
30
32
|
},
|
@@ -348,14 +348,12 @@ export const AztecWalletSerializer: JSONRPCSerializer<JSONRPCParams, unknown> =
|
|
348
348
|
return [];
|
349
349
|
case 'aztec_createAuthWit': {
|
350
350
|
const intentRaw = ensureParam<unknown>(dAppParams, 'intent');
|
351
|
-
let intentInput: Fr |
|
351
|
+
let intentInput: Fr | IntentAction | IntentInnerHash;
|
352
352
|
if (
|
353
353
|
typeof intentRaw === 'string' &&
|
354
354
|
(intentRaw.startsWith('0x') || !Number.isNaN(Number(intentRaw)))
|
355
355
|
) {
|
356
356
|
intentInput = Fr.fromString(intentRaw);
|
357
|
-
} else if (intentRaw instanceof Buffer) {
|
358
|
-
intentInput = intentRaw;
|
359
357
|
} else if (typeof intentRaw === 'object' && intentRaw !== null) {
|
360
358
|
intentInput = intentRaw as
|
361
359
|
| import('@aztec/aztec.js/utils').IntentAction
|