@aztec/cli-wallet 3.0.0-nightly.20251126 → 3.0.0-nightly.20251127
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/dest/utils/wallet.d.ts +2 -2
- package/dest/utils/wallet.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/cmds/check_tx.ts +2 -2
- package/src/utils/wallet.ts +2 -2
package/dest/utils/wallet.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type Account } from '@aztec/aztec.js/account';
|
|
2
2
|
import { type InteractionFeeOptions } from '@aztec/aztec.js/contracts';
|
|
3
3
|
import type { AztecNode } from '@aztec/aztec.js/node';
|
|
4
|
-
import { UniqueNote } from '@aztec/aztec.js/note';
|
|
5
4
|
import { AccountManager, type Aliased, type SimulateOptions } from '@aztec/aztec.js/wallet';
|
|
6
5
|
import { Fr } from '@aztec/foundation/fields';
|
|
7
6
|
import type { LogFn } from '@aztec/foundation/log';
|
|
8
7
|
import type { PXEConfig } from '@aztec/pxe/config';
|
|
9
8
|
import type { PXE } from '@aztec/pxe/server';
|
|
10
9
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
10
|
+
import { NoteDao } from '@aztec/stdlib/note';
|
|
11
11
|
import type { NotesFilter } from '@aztec/stdlib/note';
|
|
12
12
|
import type { TxProvingResult, TxSimulationResult } from '@aztec/stdlib/tx';
|
|
13
13
|
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
@@ -31,6 +31,6 @@ export declare class CLIWallet extends BaseWallet {
|
|
|
31
31
|
private getFakeAccountDataFor;
|
|
32
32
|
simulateTx(executionPayload: ExecutionPayload, opts: SimulateOptions): Promise<TxSimulationResult>;
|
|
33
33
|
getContracts(): Promise<AztecAddress[]>;
|
|
34
|
-
getNotes(filter: NotesFilter): Promise<
|
|
34
|
+
getNotes(filter: NotesFilter): Promise<NoteDao[]>;
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=wallet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/utils/wallet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAA2C,MAAM,yBAAyB,CAAC;AAChG,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/utils/wallet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAA2C,MAAM,yBAAyB,CAAC;AAChG,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAA0B,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,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,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAGlD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli-wallet",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251127",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/cmds/index.js",
|
|
@@ -67,19 +67,19 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
71
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
72
|
-
"@aztec/bb.js": "3.0.0-nightly.
|
|
73
|
-
"@aztec/cli": "3.0.0-nightly.
|
|
74
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
75
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
76
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
77
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
78
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
79
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
80
|
-
"@aztec/pxe": "3.0.0-nightly.
|
|
81
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
82
|
-
"@aztec/wallet-sdk": "3.0.0-nightly.
|
|
70
|
+
"@aztec/accounts": "3.0.0-nightly.20251127",
|
|
71
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251127",
|
|
72
|
+
"@aztec/bb.js": "3.0.0-nightly.20251127",
|
|
73
|
+
"@aztec/cli": "3.0.0-nightly.20251127",
|
|
74
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251127",
|
|
75
|
+
"@aztec/ethereum": "3.0.0-nightly.20251127",
|
|
76
|
+
"@aztec/foundation": "3.0.0-nightly.20251127",
|
|
77
|
+
"@aztec/kv-store": "3.0.0-nightly.20251127",
|
|
78
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251127",
|
|
79
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251127",
|
|
80
|
+
"@aztec/pxe": "3.0.0-nightly.20251127",
|
|
81
|
+
"@aztec/stdlib": "3.0.0-nightly.20251127",
|
|
82
|
+
"@aztec/wallet-sdk": "3.0.0-nightly.20251127",
|
|
83
83
|
"commander": "^12.1.0",
|
|
84
84
|
"inquirer": "^10.1.8",
|
|
85
85
|
"source-map-support": "^0.5.21",
|
package/src/cmds/check_tx.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ProtocolContractAddress } from '@aztec/aztec.js/protocol';
|
|
|
6
6
|
import type { TxHash } from '@aztec/aztec.js/tx';
|
|
7
7
|
import type { LogFn } from '@aztec/foundation/log';
|
|
8
8
|
import { siloNullifier } from '@aztec/stdlib/hash';
|
|
9
|
-
import {
|
|
9
|
+
import { NoteDao } from '@aztec/stdlib/note';
|
|
10
10
|
|
|
11
11
|
import type { CLIWallet } from '../utils/wallet.js';
|
|
12
12
|
|
|
@@ -121,7 +121,7 @@ async function inspectTx(wallet: CLIWallet, aztecNode: AztecNode, txHash: TxHash
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
function inspectNote(note:
|
|
124
|
+
function inspectNote(note: NoteDao, artifactMap: ArtifactMap, log: LogFn, text = 'Note') {
|
|
125
125
|
const artifact = artifactMap[note.contractAddress.toString()];
|
|
126
126
|
const contract = artifact?.name ?? note.contractAddress.toString();
|
|
127
127
|
log(` ${text} at ${contract}`);
|
package/src/utils/wallet.ts
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
getGasLimits,
|
|
10
10
|
} from '@aztec/aztec.js/contracts';
|
|
11
11
|
import type { AztecNode } from '@aztec/aztec.js/node';
|
|
12
|
-
import { UniqueNote } from '@aztec/aztec.js/note';
|
|
13
12
|
import { AccountManager, type Aliased, type SimulateOptions } from '@aztec/aztec.js/wallet';
|
|
14
13
|
import type { DefaultAccountEntrypointOptions } from '@aztec/entrypoints/account';
|
|
15
14
|
import { Fr } from '@aztec/foundation/fields';
|
|
@@ -19,6 +18,7 @@ import type { PXE } from '@aztec/pxe/server';
|
|
|
19
18
|
import { createPXE, getPXEConfig } from '@aztec/pxe/server';
|
|
20
19
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
21
20
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
21
|
+
import { NoteDao } from '@aztec/stdlib/note';
|
|
22
22
|
import type { NotesFilter } from '@aztec/stdlib/note';
|
|
23
23
|
import type { TxProvingResult, TxSimulationResult } from '@aztec/stdlib/tx';
|
|
24
24
|
import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/stdlib/tx';
|
|
@@ -260,7 +260,7 @@ export class CLIWallet extends BaseWallet {
|
|
|
260
260
|
|
|
261
261
|
// Exposed because of the `aztec-wallet get-tx` command. It has been decided that it's fine to keep around because
|
|
262
262
|
// this is just a CLI wallet.
|
|
263
|
-
getNotes(filter: NotesFilter): Promise<
|
|
263
|
+
getNotes(filter: NotesFilter): Promise<NoteDao[]> {
|
|
264
264
|
return this.pxe.getNotes(filter);
|
|
265
265
|
}
|
|
266
266
|
}
|