@aztec/cli 0.0.1-commit.03f7ef2 → 0.0.1-commit.1142ef1
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/cmds/infrastructure/sequencers.d.ts +1 -1
- package/dest/cmds/infrastructure/sequencers.d.ts.map +1 -1
- package/dest/cmds/infrastructure/sequencers.js +2 -1
- package/dest/config/chain_l2_config.d.ts +2 -2
- package/dest/config/chain_l2_config.d.ts.map +1 -1
- package/dest/config/chain_l2_config.js +15 -8
- 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/cmds/infrastructure/sequencers.ts +2 -1
- package/src/config/chain_l2_config.ts +22 -9
- 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');
|
|
@@ -9,4 +9,4 @@ export declare function sequencers(opts: {
|
|
|
9
9
|
chainId: number;
|
|
10
10
|
log: LogFn;
|
|
11
11
|
}): Promise<void>;
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VxdWVuY2Vycy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NtZHMvaW5mcmFzdHJ1Y3R1cmUvc2VxdWVuY2Vycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLQSxPQUFPLEtBQUssRUFBRSxLQUFLLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQU1uRCx3QkFBc0IsVUFBVSxDQUFDLElBQUksRUFBRTtJQUNyQyxPQUFPLEVBQUUsTUFBTSxHQUFHLEtBQUssR0FBRyxRQUFRLEdBQUcsVUFBVSxHQUFHLE9BQU8sQ0FBQztJQUMxRCxHQUFHLENBQUMsRUFBRSxNQUFNLENBQUM7SUFDYixRQUFRLENBQUMsRUFBRSxNQUFNLENBQUM7SUFDbEIsY0FBYyxDQUFDLEVBQUUsTUFBTSxDQUFDO0lBQ3hCLE9BQU8sRUFBRSxNQUFNLENBQUM7SUFDaEIsU0FBUyxFQUFFLE1BQU0sRUFBRSxDQUFDO0lBQ3BCLE9BQU8sRUFBRSxNQUFNLENBQUM7SUFDaEIsR0FBRyxFQUFFLEtBQUssQ0FBQztDQUNaLGlCQXFHQSJ9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequencers.d.ts","sourceRoot":"","sources":["../../../src/cmds/infrastructure/sequencers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAMnD,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,KAAK,CAAC;CACZ,
|
|
1
|
+
{"version":3,"file":"sequencers.d.ts","sourceRoot":"","sources":["../../../src/cmds/infrastructure/sequencers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAMnD,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,KAAK,CAAC;CACZ,iBAqGA"}
|
|
@@ -46,8 +46,9 @@ export async function sequencers(opts) {
|
|
|
46
46
|
throw new Error(`Missing sequencer address`);
|
|
47
47
|
}
|
|
48
48
|
log(`Adding ${who} as sequencer`);
|
|
49
|
+
const stakingAssetAddress = await rollup.getStakingAsset();
|
|
49
50
|
const stakingAsset = getContract({
|
|
50
|
-
address:
|
|
51
|
+
address: stakingAssetAddress.toString(),
|
|
51
52
|
abi: TestERC20Abi,
|
|
52
53
|
client: walletClient
|
|
53
54
|
});
|
|
@@ -14,7 +14,7 @@ export type L2ChainConfig = Omit<L1ContractsConfig, keyof L1TxUtilsConfig> & Omi
|
|
|
14
14
|
snapshotsUrls: string[];
|
|
15
15
|
autoUpdate: SharedNodeConfig['autoUpdate'];
|
|
16
16
|
autoUpdateUrl?: string;
|
|
17
|
-
|
|
17
|
+
maxPendingTxCount: number;
|
|
18
18
|
publicMetricsOptOut: boolean;
|
|
19
19
|
publicIncludeMetrics?: string[];
|
|
20
20
|
publicMetricsCollectorUrl?: string;
|
|
@@ -38,4 +38,4 @@ export declare const devnetL2ChainConfig: L2ChainConfig;
|
|
|
38
38
|
export declare function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined;
|
|
39
39
|
export declare function enrichEnvironmentWithChainName(networkName: NetworkNames): void;
|
|
40
40
|
export declare function enrichEnvironmentWithChainConfig(config: L2ChainConfig): void;
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhaW5fbDJfY29uZmlnLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlnL2NoYWluX2wyX2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQTRCLEtBQUssaUJBQWlCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUMxRixPQUFPLEtBQUssRUFBRSxlQUFlLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUMxRSxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUU3RCxPQUFPLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQy9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B,uBAAuB,EAAE,MAAM,CAAC;IAGhC,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AA+CJ,eAAO,MAAM,4BAA4B,EAAE,aAsF1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aA0DxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aA0DlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aA4FlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aA2FlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aA0DjC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,CAgBrF;AAMD,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,YAAY,QAavE;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,aAAa,QAwGrE"}
|
|
@@ -59,7 +59,7 @@ export const stagingIgnitionL2ChainConfig = {
|
|
|
59
59
|
],
|
|
60
60
|
autoUpdate: 'config-and-version',
|
|
61
61
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
|
|
62
|
-
|
|
62
|
+
maxPendingTxCount: 0,
|
|
63
63
|
publicMetricsOptOut: false,
|
|
64
64
|
publicIncludeMetrics,
|
|
65
65
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -74,6 +74,7 @@ export const stagingIgnitionL2ChainConfig = {
|
|
|
74
74
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 24,
|
|
75
75
|
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochsForValidatorSet: 2,
|
|
76
76
|
/** The number of epochs to lag behind the current epoch for randao selection. */ lagInEpochsForRandao: 2,
|
|
77
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */ inboxLag: 1,
|
|
77
78
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
78
79
|
/** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum: 65,
|
|
79
80
|
slashingRoundSizeInEpochs: 4,
|
|
@@ -135,7 +136,7 @@ export const stagingPublicL2ChainConfig = {
|
|
|
135
136
|
publicMetricsCollectFrom: [
|
|
136
137
|
'sequencer'
|
|
137
138
|
],
|
|
138
|
-
|
|
139
|
+
maxPendingTxCount: 1_000,
|
|
139
140
|
txPoolDeleteTxsAfterReorg: true,
|
|
140
141
|
// Deployment stuff
|
|
141
142
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
@@ -144,6 +145,7 @@ export const stagingPublicL2ChainConfig = {
|
|
|
144
145
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 48,
|
|
145
146
|
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochsForValidatorSet: DefaultL1ContractsConfig.lagInEpochsForValidatorSet,
|
|
146
147
|
/** The number of epochs to lag behind the current epoch for randao selection. */ lagInEpochsForRandao: DefaultL1ContractsConfig.lagInEpochsForRandao,
|
|
148
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */ inboxLag: DefaultL1ContractsConfig.inboxLag,
|
|
147
149
|
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
148
150
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
149
151
|
/** The deposit amount for a validator */ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
|
|
@@ -176,7 +178,7 @@ export const nextNetL2ChainConfig = {
|
|
|
176
178
|
publicMetricsCollectFrom: [
|
|
177
179
|
''
|
|
178
180
|
],
|
|
179
|
-
|
|
181
|
+
maxPendingTxCount: 1_000,
|
|
180
182
|
txPoolDeleteTxsAfterReorg: false,
|
|
181
183
|
// Deployment stuff
|
|
182
184
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
@@ -185,6 +187,7 @@ export const nextNetL2ChainConfig = {
|
|
|
185
187
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 48,
|
|
186
188
|
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochsForValidatorSet: DefaultL1ContractsConfig.lagInEpochsForValidatorSet,
|
|
187
189
|
/** The number of epochs to lag behind the current epoch for randao selection. */ lagInEpochsForRandao: DefaultL1ContractsConfig.lagInEpochsForRandao,
|
|
190
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */ inboxLag: DefaultL1ContractsConfig.inboxLag,
|
|
188
191
|
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
189
192
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
190
193
|
/** The deposit amount for a validator */ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
|
|
@@ -202,7 +205,7 @@ export const testnetL2ChainConfig = {
|
|
|
202
205
|
testAccounts: false,
|
|
203
206
|
sponsoredFPC: true,
|
|
204
207
|
p2pEnabled: true,
|
|
205
|
-
disableTransactions:
|
|
208
|
+
disableTransactions: false,
|
|
206
209
|
bootstrapNodes: [],
|
|
207
210
|
minTxsPerBlock: 0,
|
|
208
211
|
maxTxsPerBlock: 20,
|
|
@@ -213,7 +216,7 @@ export const testnetL2ChainConfig = {
|
|
|
213
216
|
],
|
|
214
217
|
autoUpdate: 'config-and-version',
|
|
215
218
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
|
|
216
|
-
|
|
219
|
+
maxPendingTxCount: 5_000,
|
|
217
220
|
publicMetricsOptOut: false,
|
|
218
221
|
publicIncludeMetrics,
|
|
219
222
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -229,6 +232,7 @@ export const testnetL2ChainConfig = {
|
|
|
229
232
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 48,
|
|
230
233
|
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochsForValidatorSet: 2,
|
|
231
234
|
/** The number of epochs to lag behind the current epoch for randao selection. */ lagInEpochsForRandao: 2,
|
|
235
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */ inboxLag: 1,
|
|
232
236
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
233
237
|
// This is a diff from mainnet: we have 1-strike you're out, rather than 3 on mainnet.
|
|
234
238
|
localEjectionThreshold: 199_000n * 10n ** 18n,
|
|
@@ -286,7 +290,7 @@ export const mainnetL2ChainConfig = {
|
|
|
286
290
|
],
|
|
287
291
|
autoUpdate: 'notify',
|
|
288
292
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/mainnet.json',
|
|
289
|
-
|
|
293
|
+
maxPendingTxCount: 0,
|
|
290
294
|
publicMetricsOptOut: true,
|
|
291
295
|
publicIncludeMetrics,
|
|
292
296
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -300,6 +304,7 @@ export const mainnetL2ChainConfig = {
|
|
|
300
304
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 24,
|
|
301
305
|
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochsForValidatorSet: 2,
|
|
302
306
|
/** The number of epochs to lag behind the current epoch for randao selection. */ lagInEpochsForRandao: 2,
|
|
307
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */ inboxLag: 1,
|
|
303
308
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
304
309
|
localEjectionThreshold: 196_000n * 10n ** 18n,
|
|
305
310
|
/** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum: 65,
|
|
@@ -359,7 +364,7 @@ export const devnetL2ChainConfig = {
|
|
|
359
364
|
publicMetricsCollectFrom: [
|
|
360
365
|
''
|
|
361
366
|
],
|
|
362
|
-
|
|
367
|
+
maxPendingTxCount: 1_000,
|
|
363
368
|
txPoolDeleteTxsAfterReorg: true,
|
|
364
369
|
// Deployment stuff
|
|
365
370
|
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
@@ -368,6 +373,7 @@ export const devnetL2ChainConfig = {
|
|
|
368
373
|
/** The target validator committee size. */ aztecTargetCommitteeSize: 1,
|
|
369
374
|
/** The number of epochs to lag behind the current epoch for validator selection. */ lagInEpochsForValidatorSet: 1,
|
|
370
375
|
/** The number of epochs to lag behind the current epoch for randao selection. */ lagInEpochsForRandao: 1,
|
|
376
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */ inboxLag: DefaultL1ContractsConfig.inboxLag,
|
|
371
377
|
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */ localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
372
378
|
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
373
379
|
/** The deposit amount for a validator */ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
|
|
@@ -440,7 +446,7 @@ export function enrichEnvironmentWithChainConfig(config) {
|
|
|
440
446
|
enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
|
|
441
447
|
enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
|
|
442
448
|
enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
|
|
443
|
-
enrichVar('
|
|
449
|
+
enrichVar('P2P_MAX_PENDING_TX_COUNT', config.maxPendingTxCount.toString());
|
|
444
450
|
enrichVar('P2P_TX_POOL_DELETE_TXS_AFTER_REORG', config.txPoolDeleteTxsAfterReorg.toString());
|
|
445
451
|
enrichVar('DATA_STORE_MAP_SIZE_KB', config.dataStoreMapSizeKb.toString());
|
|
446
452
|
enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
|
|
@@ -476,6 +482,7 @@ export function enrichEnvironmentWithChainConfig(config) {
|
|
|
476
482
|
enrichVar('AZTEC_TARGET_COMMITTEE_SIZE', config.aztecTargetCommitteeSize.toString());
|
|
477
483
|
enrichVar('AZTEC_LAG_IN_EPOCHS_FOR_VALIDATOR_SET', config.lagInEpochsForValidatorSet.toString());
|
|
478
484
|
enrichVar('AZTEC_LAG_IN_EPOCHS_FOR_RANDAO', config.lagInEpochsForRandao.toString());
|
|
485
|
+
enrichVar('AZTEC_INBOX_LAG', config.inboxLag.toString());
|
|
479
486
|
enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
|
|
480
487
|
enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
|
|
481
488
|
enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.1142ef1",
|
|
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": "0.0.1-commit.
|
|
78
|
-
"@aztec/archiver": "0.0.1-commit.
|
|
79
|
-
"@aztec/aztec.js": "0.0.1-commit.
|
|
80
|
-
"@aztec/constants": "0.0.1-commit.
|
|
81
|
-
"@aztec/entrypoints": "0.0.1-commit.
|
|
82
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
83
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
84
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
85
|
-
"@aztec/node-keystore": "0.0.1-commit.
|
|
86
|
-
"@aztec/node-lib": "0.0.1-commit.
|
|
87
|
-
"@aztec/p2p": "0.0.1-commit.
|
|
88
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
89
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
90
|
-
"@aztec/test-wallet": "0.0.1-commit.
|
|
91
|
-
"@aztec/world-state": "0.0.1-commit.
|
|
77
|
+
"@aztec/accounts": "0.0.1-commit.1142ef1",
|
|
78
|
+
"@aztec/archiver": "0.0.1-commit.1142ef1",
|
|
79
|
+
"@aztec/aztec.js": "0.0.1-commit.1142ef1",
|
|
80
|
+
"@aztec/constants": "0.0.1-commit.1142ef1",
|
|
81
|
+
"@aztec/entrypoints": "0.0.1-commit.1142ef1",
|
|
82
|
+
"@aztec/ethereum": "0.0.1-commit.1142ef1",
|
|
83
|
+
"@aztec/foundation": "0.0.1-commit.1142ef1",
|
|
84
|
+
"@aztec/l1-artifacts": "0.0.1-commit.1142ef1",
|
|
85
|
+
"@aztec/node-keystore": "0.0.1-commit.1142ef1",
|
|
86
|
+
"@aztec/node-lib": "0.0.1-commit.1142ef1",
|
|
87
|
+
"@aztec/p2p": "0.0.1-commit.1142ef1",
|
|
88
|
+
"@aztec/protocol-contracts": "0.0.1-commit.1142ef1",
|
|
89
|
+
"@aztec/stdlib": "0.0.1-commit.1142ef1",
|
|
90
|
+
"@aztec/test-wallet": "0.0.1-commit.1142ef1",
|
|
91
|
+
"@aztec/world-state": "0.0.1-commit.1142ef1",
|
|
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": "0.0.1-commit.
|
|
106
|
-
"@aztec/kv-store": "0.0.1-commit.
|
|
107
|
-
"@aztec/telemetry-client": "0.0.1-commit.
|
|
105
|
+
"@aztec/aztec-node": "0.0.1-commit.1142ef1",
|
|
106
|
+
"@aztec/kv-store": "0.0.1-commit.1142ef1",
|
|
107
|
+
"@aztec/telemetry-client": "0.0.1-commit.1142ef1",
|
|
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": "0.0.1-commit.
|
|
125
|
-
"@aztec/bb-prover": "0.0.1-commit.
|
|
126
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
127
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
128
|
-
"@aztec/noir-contracts.js": "0.0.1-commit.
|
|
129
|
-
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.
|
|
130
|
-
"@aztec/noir-test-contracts.js": "0.0.1-commit.
|
|
131
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
132
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
124
|
+
"@aztec/accounts": "0.0.1-commit.1142ef1",
|
|
125
|
+
"@aztec/bb-prover": "0.0.1-commit.1142ef1",
|
|
126
|
+
"@aztec/ethereum": "0.0.1-commit.1142ef1",
|
|
127
|
+
"@aztec/l1-artifacts": "0.0.1-commit.1142ef1",
|
|
128
|
+
"@aztec/noir-contracts.js": "0.0.1-commit.1142ef1",
|
|
129
|
+
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.1142ef1",
|
|
130
|
+
"@aztec/noir-test-contracts.js": "0.0.1-commit.1142ef1",
|
|
131
|
+
"@aztec/protocol-contracts": "0.0.1-commit.1142ef1",
|
|
132
|
+
"@aztec/stdlib": "0.0.1-commit.1142ef1"
|
|
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
|
|
@@ -66,8 +66,9 @@ export async function sequencers(opts: {
|
|
|
66
66
|
|
|
67
67
|
log(`Adding ${who} as sequencer`);
|
|
68
68
|
|
|
69
|
+
const stakingAssetAddress = await rollup.getStakingAsset();
|
|
69
70
|
const stakingAsset = getContract({
|
|
70
|
-
address:
|
|
71
|
+
address: stakingAssetAddress.toString(),
|
|
71
72
|
abi: TestERC20Abi,
|
|
72
73
|
client: walletClient,
|
|
73
74
|
});
|
|
@@ -29,7 +29,7 @@ export type L2ChainConfig = Omit<L1ContractsConfig, keyof L1TxUtilsConfig> &
|
|
|
29
29
|
snapshotsUrls: string[];
|
|
30
30
|
autoUpdate: SharedNodeConfig['autoUpdate'];
|
|
31
31
|
autoUpdateUrl?: string;
|
|
32
|
-
|
|
32
|
+
maxPendingTxCount: number;
|
|
33
33
|
publicMetricsOptOut: boolean;
|
|
34
34
|
publicIncludeMetrics?: string[];
|
|
35
35
|
publicMetricsCollectorUrl?: string;
|
|
@@ -109,7 +109,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
109
109
|
snapshotsUrls: [`${SNAPSHOTS_URL}/staging-ignition/`],
|
|
110
110
|
autoUpdate: 'config-and-version',
|
|
111
111
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
|
|
112
|
-
|
|
112
|
+
maxPendingTxCount: 0,
|
|
113
113
|
publicMetricsOptOut: false,
|
|
114
114
|
publicIncludeMetrics,
|
|
115
115
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -129,6 +129,8 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
129
129
|
lagInEpochsForValidatorSet: 2,
|
|
130
130
|
/** The number of epochs to lag behind the current epoch for randao selection. */
|
|
131
131
|
lagInEpochsForRandao: 2,
|
|
132
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */
|
|
133
|
+
inboxLag: 1,
|
|
132
134
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
133
135
|
aztecProofSubmissionEpochs: 1,
|
|
134
136
|
/** How many sequencers must agree with a slash for it to be executed. */
|
|
@@ -199,7 +201,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
|
|
|
199
201
|
publicIncludeMetrics,
|
|
200
202
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
201
203
|
publicMetricsCollectFrom: ['sequencer'],
|
|
202
|
-
|
|
204
|
+
maxPendingTxCount: 1_000, // ~156MB
|
|
203
205
|
txPoolDeleteTxsAfterReorg: true,
|
|
204
206
|
|
|
205
207
|
// Deployment stuff
|
|
@@ -215,6 +217,8 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
|
|
|
215
217
|
lagInEpochsForValidatorSet: DefaultL1ContractsConfig.lagInEpochsForValidatorSet,
|
|
216
218
|
/** The number of epochs to lag behind the current epoch for randao selection. */
|
|
217
219
|
lagInEpochsForRandao: DefaultL1ContractsConfig.lagInEpochsForRandao,
|
|
220
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */
|
|
221
|
+
inboxLag: DefaultL1ContractsConfig.inboxLag,
|
|
218
222
|
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
|
|
219
223
|
localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
220
224
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
@@ -257,7 +261,7 @@ export const nextNetL2ChainConfig: L2ChainConfig = {
|
|
|
257
261
|
publicIncludeMetrics,
|
|
258
262
|
publicMetricsCollectorUrl: '',
|
|
259
263
|
publicMetricsCollectFrom: [''],
|
|
260
|
-
|
|
264
|
+
maxPendingTxCount: 1_000, // ~156MB
|
|
261
265
|
txPoolDeleteTxsAfterReorg: false,
|
|
262
266
|
|
|
263
267
|
// Deployment stuff
|
|
@@ -273,6 +277,8 @@ export const nextNetL2ChainConfig: L2ChainConfig = {
|
|
|
273
277
|
lagInEpochsForValidatorSet: DefaultL1ContractsConfig.lagInEpochsForValidatorSet,
|
|
274
278
|
/** The number of epochs to lag behind the current epoch for randao selection. */
|
|
275
279
|
lagInEpochsForRandao: DefaultL1ContractsConfig.lagInEpochsForRandao,
|
|
280
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */
|
|
281
|
+
inboxLag: DefaultL1ContractsConfig.inboxLag,
|
|
276
282
|
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
|
|
277
283
|
localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
278
284
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
@@ -302,7 +308,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
302
308
|
testAccounts: false,
|
|
303
309
|
sponsoredFPC: true,
|
|
304
310
|
p2pEnabled: true,
|
|
305
|
-
disableTransactions:
|
|
311
|
+
disableTransactions: false,
|
|
306
312
|
bootstrapNodes: [],
|
|
307
313
|
minTxsPerBlock: 0,
|
|
308
314
|
maxTxsPerBlock: 20,
|
|
@@ -311,7 +317,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
311
317
|
snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
|
|
312
318
|
autoUpdate: 'config-and-version',
|
|
313
319
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
|
|
314
|
-
|
|
320
|
+
maxPendingTxCount: 5_000, // ~760MB
|
|
315
321
|
publicMetricsOptOut: false,
|
|
316
322
|
publicIncludeMetrics,
|
|
317
323
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -332,6 +338,8 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
332
338
|
lagInEpochsForValidatorSet: 2,
|
|
333
339
|
/** The number of epochs to lag behind the current epoch for randao selection. */
|
|
334
340
|
lagInEpochsForRandao: 2,
|
|
341
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */
|
|
342
|
+
inboxLag: 1,
|
|
335
343
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
336
344
|
aztecProofSubmissionEpochs: 1,
|
|
337
345
|
|
|
@@ -405,7 +413,7 @@ export const mainnetL2ChainConfig: L2ChainConfig = {
|
|
|
405
413
|
snapshotsUrls: [`${SNAPSHOTS_URL}/mainnet/`],
|
|
406
414
|
autoUpdate: 'notify',
|
|
407
415
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/mainnet.json',
|
|
408
|
-
|
|
416
|
+
maxPendingTxCount: 0,
|
|
409
417
|
publicMetricsOptOut: true,
|
|
410
418
|
publicIncludeMetrics,
|
|
411
419
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -424,6 +432,8 @@ export const mainnetL2ChainConfig: L2ChainConfig = {
|
|
|
424
432
|
lagInEpochsForValidatorSet: 2,
|
|
425
433
|
/** The number of epochs to lag behind the current epoch for randao selection. */
|
|
426
434
|
lagInEpochsForRandao: 2,
|
|
435
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */
|
|
436
|
+
inboxLag: 1,
|
|
427
437
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
428
438
|
aztecProofSubmissionEpochs: 1,
|
|
429
439
|
|
|
@@ -498,7 +508,7 @@ export const devnetL2ChainConfig: L2ChainConfig = {
|
|
|
498
508
|
publicIncludeMetrics,
|
|
499
509
|
publicMetricsCollectorUrl: '',
|
|
500
510
|
publicMetricsCollectFrom: [''],
|
|
501
|
-
|
|
511
|
+
maxPendingTxCount: 1_000, // ~156MB
|
|
502
512
|
txPoolDeleteTxsAfterReorg: true,
|
|
503
513
|
|
|
504
514
|
// Deployment stuff
|
|
@@ -514,6 +524,8 @@ export const devnetL2ChainConfig: L2ChainConfig = {
|
|
|
514
524
|
lagInEpochsForValidatorSet: 1,
|
|
515
525
|
/** The number of epochs to lag behind the current epoch for randao selection. */
|
|
516
526
|
lagInEpochsForRandao: 1,
|
|
527
|
+
/** The number of checkpoints to lag in the inbox (prevents sequencer DOS attacks). */
|
|
528
|
+
inboxLag: DefaultL1ContractsConfig.inboxLag,
|
|
517
529
|
/** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
|
|
518
530
|
localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
|
|
519
531
|
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
@@ -592,7 +604,7 @@ export function enrichEnvironmentWithChainConfig(config: L2ChainConfig) {
|
|
|
592
604
|
enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
|
|
593
605
|
enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
|
|
594
606
|
enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
|
|
595
|
-
enrichVar('
|
|
607
|
+
enrichVar('P2P_MAX_PENDING_TX_COUNT', config.maxPendingTxCount.toString());
|
|
596
608
|
enrichVar('P2P_TX_POOL_DELETE_TXS_AFTER_REORG', config.txPoolDeleteTxsAfterReorg.toString());
|
|
597
609
|
|
|
598
610
|
enrichVar('DATA_STORE_MAP_SIZE_KB', config.dataStoreMapSizeKb.toString());
|
|
@@ -638,6 +650,7 @@ export function enrichEnvironmentWithChainConfig(config: L2ChainConfig) {
|
|
|
638
650
|
enrichVar('AZTEC_TARGET_COMMITTEE_SIZE', config.aztecTargetCommitteeSize.toString());
|
|
639
651
|
enrichVar('AZTEC_LAG_IN_EPOCHS_FOR_VALIDATOR_SET', config.lagInEpochsForValidatorSet.toString());
|
|
640
652
|
enrichVar('AZTEC_LAG_IN_EPOCHS_FOR_RANDAO', config.lagInEpochsForRandao.toString());
|
|
653
|
+
enrichVar('AZTEC_INBOX_LAG', config.inboxLag.toString());
|
|
641
654
|
enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
|
|
642
655
|
enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
|
|
643
656
|
enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
|
|
@@ -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"}
|