@aztec/cli 4.0.0-nightly.20260107 → 4.0.0-nightly.20260108
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/cmds/aztec_node/get_current_min_fee.d.ts +3 -0
- package/dest/cmds/aztec_node/get_current_min_fee.d.ts.map +1 -0
- package/dest/cmds/aztec_node/{get_current_base_fee.js → get_current_min_fee.js} +2 -2
- package/dest/cmds/aztec_node/index.js +3 -3
- package/dest/config/chain_l2_config.js +1 -1
- package/package.json +28 -28
- package/src/cmds/aztec_node/{get_current_base_fee.ts → get_current_min_fee.ts} +2 -2
- package/src/cmds/aztec_node/index.ts +3 -3
- package/src/config/chain_l2_config.ts +1 -1
- package/dest/cmds/aztec_node/get_current_base_fee.d.ts +0 -3
- package/dest/cmds/aztec_node/get_current_base_fee.d.ts.map +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
2
|
+
export declare function getCurrentMinFee(nodeUrl: string, debugLogger: Logger, log: LogFn): Promise<void>;
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0X2N1cnJlbnRfbWluX2ZlZS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NtZHMvYXp0ZWNfbm9kZS9nZXRfY3VycmVudF9taW5fZmVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sS0FBSyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUUzRCx3QkFBc0IsZ0JBQWdCLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLEdBQUcsRUFBRSxLQUFLLGlCQUl0RiJ9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_current_min_fee.d.ts","sourceRoot":"","sources":["../../../src/cmds/aztec_node/get_current_min_fee.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,iBAItF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAztecNodeClient } from '@aztec/aztec.js/node';
|
|
2
2
|
import { jsonStringify } from '@aztec/foundation/json-rpc';
|
|
3
|
-
export async function
|
|
3
|
+
export async function getCurrentMinFee(nodeUrl, debugLogger, log) {
|
|
4
4
|
const node = createAztecNodeClient(nodeUrl);
|
|
5
|
-
const fees = await node.
|
|
5
|
+
const fees = await node.getCurrentMinFees();
|
|
6
6
|
log(`Current fees: ${jsonStringify(fees)}`);
|
|
7
7
|
}
|
|
@@ -4,9 +4,9 @@ export function injectCommands(program, log, debugLogger) {
|
|
|
4
4
|
const { getBlock } = await import('./get_block.js');
|
|
5
5
|
await getBlock(options.nodeUrl, blockNumber, log);
|
|
6
6
|
});
|
|
7
|
-
program.command('get-current-
|
|
8
|
-
const {
|
|
9
|
-
await
|
|
7
|
+
program.command('get-current-min-fee').description('Gets the current base fee.').addOption(nodeOption).action(async (options)=>{
|
|
8
|
+
const { getCurrentMinFee } = await import('./get_current_min_fee.js');
|
|
9
|
+
await getCurrentMinFee(options.rpcUrl, debugLogger, log);
|
|
10
10
|
});
|
|
11
11
|
program.command('get-l1-to-l2-message-witness').description('Gets a L1 to L2 message witness.').requiredOption('-ca, --contract-address <address>', 'Aztec address of the contract.', parseAztecAddress).requiredOption('--message-hash <messageHash>', 'The L1 to L2 message hash.', parseField).requiredOption('--secret <secret>', 'The secret used to claim the L1 to L2 message', parseField).addOption(nodeOption).action(async ({ contractAddress, messageHash, secret, nodeUrl })=>{
|
|
12
12
|
const { getL1ToL2MessageWitness } = await import('./get_l1_to_l2_message_witness.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "4.0.0-nightly.
|
|
3
|
+
"version": "4.0.0-nightly.20260108",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -74,21 +74,21 @@
|
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@aztec/accounts": "4.0.0-nightly.
|
|
78
|
-
"@aztec/archiver": "4.0.0-nightly.
|
|
79
|
-
"@aztec/aztec.js": "4.0.0-nightly.
|
|
80
|
-
"@aztec/constants": "4.0.0-nightly.
|
|
81
|
-
"@aztec/entrypoints": "4.0.0-nightly.
|
|
82
|
-
"@aztec/ethereum": "4.0.0-nightly.
|
|
83
|
-
"@aztec/foundation": "4.0.0-nightly.
|
|
84
|
-
"@aztec/l1-artifacts": "4.0.0-nightly.
|
|
85
|
-
"@aztec/node-keystore": "4.0.0-nightly.
|
|
86
|
-
"@aztec/node-lib": "4.0.0-nightly.
|
|
87
|
-
"@aztec/p2p": "4.0.0-nightly.
|
|
88
|
-
"@aztec/protocol-contracts": "4.0.0-nightly.
|
|
89
|
-
"@aztec/stdlib": "4.0.0-nightly.
|
|
90
|
-
"@aztec/test-wallet": "4.0.0-nightly.
|
|
91
|
-
"@aztec/world-state": "4.0.0-nightly.
|
|
77
|
+
"@aztec/accounts": "4.0.0-nightly.20260108",
|
|
78
|
+
"@aztec/archiver": "4.0.0-nightly.20260108",
|
|
79
|
+
"@aztec/aztec.js": "4.0.0-nightly.20260108",
|
|
80
|
+
"@aztec/constants": "4.0.0-nightly.20260108",
|
|
81
|
+
"@aztec/entrypoints": "4.0.0-nightly.20260108",
|
|
82
|
+
"@aztec/ethereum": "4.0.0-nightly.20260108",
|
|
83
|
+
"@aztec/foundation": "4.0.0-nightly.20260108",
|
|
84
|
+
"@aztec/l1-artifacts": "4.0.0-nightly.20260108",
|
|
85
|
+
"@aztec/node-keystore": "4.0.0-nightly.20260108",
|
|
86
|
+
"@aztec/node-lib": "4.0.0-nightly.20260108",
|
|
87
|
+
"@aztec/p2p": "4.0.0-nightly.20260108",
|
|
88
|
+
"@aztec/protocol-contracts": "4.0.0-nightly.20260108",
|
|
89
|
+
"@aztec/stdlib": "4.0.0-nightly.20260108",
|
|
90
|
+
"@aztec/test-wallet": "4.0.0-nightly.20260108",
|
|
91
|
+
"@aztec/world-state": "4.0.0-nightly.20260108",
|
|
92
92
|
"@ethersproject/wallet": "^5.8.0",
|
|
93
93
|
"@iarna/toml": "^2.2.5",
|
|
94
94
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
"viem": "npm:@aztec/viem@2.38.2"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@aztec/aztec-node": "4.0.0-nightly.
|
|
106
|
-
"@aztec/kv-store": "4.0.0-nightly.
|
|
107
|
-
"@aztec/telemetry-client": "4.0.0-nightly.
|
|
105
|
+
"@aztec/aztec-node": "4.0.0-nightly.20260108",
|
|
106
|
+
"@aztec/kv-store": "4.0.0-nightly.20260108",
|
|
107
|
+
"@aztec/telemetry-client": "4.0.0-nightly.20260108",
|
|
108
108
|
"@jest/globals": "^30.0.0",
|
|
109
109
|
"@types/jest": "^30.0.0",
|
|
110
110
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -121,15 +121,15 @@
|
|
|
121
121
|
"typescript": "^5.3.3"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
|
-
"@aztec/accounts": "4.0.0-nightly.
|
|
125
|
-
"@aztec/bb-prover": "4.0.0-nightly.
|
|
126
|
-
"@aztec/ethereum": "4.0.0-nightly.
|
|
127
|
-
"@aztec/l1-artifacts": "4.0.0-nightly.
|
|
128
|
-
"@aztec/noir-contracts.js": "4.0.0-nightly.
|
|
129
|
-
"@aztec/noir-protocol-circuits-types": "4.0.0-nightly.
|
|
130
|
-
"@aztec/noir-test-contracts.js": "4.0.0-nightly.
|
|
131
|
-
"@aztec/protocol-contracts": "4.0.0-nightly.
|
|
132
|
-
"@aztec/stdlib": "4.0.0-nightly.
|
|
124
|
+
"@aztec/accounts": "4.0.0-nightly.20260108",
|
|
125
|
+
"@aztec/bb-prover": "4.0.0-nightly.20260108",
|
|
126
|
+
"@aztec/ethereum": "4.0.0-nightly.20260108",
|
|
127
|
+
"@aztec/l1-artifacts": "4.0.0-nightly.20260108",
|
|
128
|
+
"@aztec/noir-contracts.js": "4.0.0-nightly.20260108",
|
|
129
|
+
"@aztec/noir-protocol-circuits-types": "4.0.0-nightly.20260108",
|
|
130
|
+
"@aztec/noir-test-contracts.js": "4.0.0-nightly.20260108",
|
|
131
|
+
"@aztec/protocol-contracts": "4.0.0-nightly.20260108",
|
|
132
|
+
"@aztec/stdlib": "4.0.0-nightly.20260108"
|
|
133
133
|
},
|
|
134
134
|
"files": [
|
|
135
135
|
"dest",
|
|
@@ -2,8 +2,8 @@ import { createAztecNodeClient } from '@aztec/aztec.js/node';
|
|
|
2
2
|
import { jsonStringify } from '@aztec/foundation/json-rpc';
|
|
3
3
|
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
4
4
|
|
|
5
|
-
export async function
|
|
5
|
+
export async function getCurrentMinFee(nodeUrl: string, debugLogger: Logger, log: LogFn) {
|
|
6
6
|
const node = createAztecNodeClient(nodeUrl);
|
|
7
|
-
const fees = await node.
|
|
7
|
+
const fees = await node.getCurrentMinFees();
|
|
8
8
|
log(`Current fees: ${jsonStringify(fees)}`);
|
|
9
9
|
}
|
|
@@ -25,12 +25,12 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
|
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
program
|
|
28
|
-
.command('get-current-
|
|
28
|
+
.command('get-current-min-fee')
|
|
29
29
|
.description('Gets the current base fee.')
|
|
30
30
|
.addOption(nodeOption)
|
|
31
31
|
.action(async options => {
|
|
32
|
-
const {
|
|
33
|
-
await
|
|
32
|
+
const { getCurrentMinFee } = await import('./get_current_min_fee.js');
|
|
33
|
+
await getCurrentMinFee(options.rpcUrl, debugLogger, log);
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
program
|
|
@@ -308,7 +308,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
308
308
|
testAccounts: false,
|
|
309
309
|
sponsoredFPC: true,
|
|
310
310
|
p2pEnabled: true,
|
|
311
|
-
disableTransactions:
|
|
311
|
+
disableTransactions: false,
|
|
312
312
|
bootstrapNodes: [],
|
|
313
313
|
minTxsPerBlock: 0,
|
|
314
314
|
maxTxsPerBlock: 20,
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
2
|
-
export declare function getCurrentBaseFee(nodeUrl: string, debugLogger: Logger, log: LogFn): Promise<void>;
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0X2N1cnJlbnRfYmFzZV9mZWUuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jbWRzL2F6dGVjX25vZGUvZ2V0X2N1cnJlbnRfYmFzZV9mZWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxLQUFLLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBRTNELHdCQUFzQixpQkFBaUIsQ0FBQyxPQUFPLEVBQUUsTUFBTSxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFFLEtBQUssaUJBSXZGIn0=
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_current_base_fee.d.ts","sourceRoot":"","sources":["../../../src/cmds/aztec_node/get_current_base_fee.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,iBAIvF"}
|