@aztec/cli-wallet 1.0.0 → 1.1.2
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/bin/index.js +3 -3
- package/package.json +12 -12
- package/src/bin/index.ts +3 -3
package/dest/bin/index.js
CHANGED
|
@@ -2,8 +2,9 @@ import { Fr, ProtocolContractAddress, computeSecretHash, fileURLToPath } from '@
|
|
|
2
2
|
import { LOCALHOST } from '@aztec/cli/cli-utils';
|
|
3
3
|
import { createConsoleLogger, createLogger } from '@aztec/foundation/log';
|
|
4
4
|
import { openStoreAt } from '@aztec/kv-store/lmdb-v2';
|
|
5
|
+
import { getPackageVersion } from '@aztec/stdlib/update-checker';
|
|
5
6
|
import { Argument, Command, Option } from 'commander';
|
|
6
|
-
import { mkdirSync
|
|
7
|
+
import { mkdirSync } from 'fs';
|
|
7
8
|
import { homedir } from 'os';
|
|
8
9
|
import { dirname, join, resolve } from 'path';
|
|
9
10
|
import { injectCommands } from '../cmds/index.js';
|
|
@@ -40,8 +41,7 @@ function injectInternalCommands(program, log, db) {
|
|
|
40
41
|
return program;
|
|
41
42
|
}
|
|
42
43
|
/** CLI wallet main entrypoint */ async function main() {
|
|
43
|
-
const
|
|
44
|
-
const walletVersion = JSON.parse(readFileSync(packageJsonPath).toString()).version;
|
|
44
|
+
const walletVersion = getPackageVersion() ?? '0.0.0';
|
|
45
45
|
const db = WalletDB.getInstance();
|
|
46
46
|
const pxeWrapper = new PXEWrapper();
|
|
47
47
|
const program = new Command('wallet');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli-wallet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/cmds/index.js",
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@aztec/accounts": "1.
|
|
71
|
-
"@aztec/aztec.js": "1.
|
|
72
|
-
"@aztec/cli": "1.
|
|
73
|
-
"@aztec/entrypoints": "1.
|
|
74
|
-
"@aztec/ethereum": "1.
|
|
75
|
-
"@aztec/foundation": "1.
|
|
76
|
-
"@aztec/kv-store": "1.
|
|
77
|
-
"@aztec/noir-contracts.js": "1.
|
|
78
|
-
"@aztec/noir-noirc_abi": "1.
|
|
79
|
-
"@aztec/pxe": "1.
|
|
80
|
-
"@aztec/stdlib": "1.
|
|
70
|
+
"@aztec/accounts": "1.1.2",
|
|
71
|
+
"@aztec/aztec.js": "1.1.2",
|
|
72
|
+
"@aztec/cli": "1.1.2",
|
|
73
|
+
"@aztec/entrypoints": "1.1.2",
|
|
74
|
+
"@aztec/ethereum": "1.1.2",
|
|
75
|
+
"@aztec/foundation": "1.1.2",
|
|
76
|
+
"@aztec/kv-store": "1.1.2",
|
|
77
|
+
"@aztec/noir-contracts.js": "1.1.2",
|
|
78
|
+
"@aztec/noir-noirc_abi": "1.1.2",
|
|
79
|
+
"@aztec/pxe": "1.1.2",
|
|
80
|
+
"@aztec/stdlib": "1.1.2",
|
|
81
81
|
"commander": "^12.1.0",
|
|
82
82
|
"inquirer": "^10.1.8",
|
|
83
83
|
"source-map-support": "^0.5.21",
|
package/src/bin/index.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { LOCALHOST } from '@aztec/cli/cli-utils';
|
|
|
3
3
|
import { type LogFn, createConsoleLogger, createLogger } from '@aztec/foundation/log';
|
|
4
4
|
import { openStoreAt } from '@aztec/kv-store/lmdb-v2';
|
|
5
5
|
import type { PXEServiceConfig } from '@aztec/pxe/config';
|
|
6
|
+
import { getPackageVersion } from '@aztec/stdlib/update-checker';
|
|
6
7
|
|
|
7
8
|
import { Argument, Command, Option } from 'commander';
|
|
8
|
-
import { mkdirSync
|
|
9
|
+
import { mkdirSync } from 'fs';
|
|
9
10
|
import { homedir } from 'os';
|
|
10
11
|
import { dirname, join, resolve } from 'path';
|
|
11
12
|
|
|
@@ -66,8 +67,7 @@ function injectInternalCommands(program: Command, log: LogFn, db: WalletDB) {
|
|
|
66
67
|
|
|
67
68
|
/** CLI wallet main entrypoint */
|
|
68
69
|
async function main() {
|
|
69
|
-
const
|
|
70
|
-
const walletVersion: string = JSON.parse(readFileSync(packageJsonPath).toString()).version;
|
|
70
|
+
const walletVersion = getPackageVersion() ?? '0.0.0';
|
|
71
71
|
|
|
72
72
|
const db = WalletDB.getInstance();
|
|
73
73
|
const pxeWrapper = new PXEWrapper();
|