@aztec/aztec 1.0.0-nightly.20250708 → 1.0.0-staging.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/dest/bin/index.js +4 -2
- package/dest/cli/chain_l2_config.d.ts +6 -42
- package/dest/cli/chain_l2_config.d.ts.map +1 -1
- package/dest/cli/chain_l2_config.js +25 -102
- package/dest/sandbox/sandbox.d.ts.map +1 -1
- package/dest/sandbox/sandbox.js +1 -2
- package/package.json +31 -33
- package/src/bin/index.ts +6 -3
- package/src/cli/chain_l2_config.ts +26 -170
- package/src/cli/cmds/start_prover_node.ts +1 -1
- package/src/sandbox/sandbox.ts +1 -2
- package/dest/testing/anvil_test_watcher.d.ts +0 -34
- package/dest/testing/anvil_test_watcher.d.ts.map +0 -1
- package/dest/testing/anvil_test_watcher.js +0 -143
- package/dest/testing/aztec_cheat_codes.d.ts +0 -59
- package/dest/testing/aztec_cheat_codes.d.ts.map +0 -1
- package/dest/testing/aztec_cheat_codes.js +0 -62
- package/dest/testing/cheat_codes.d.ts +0 -23
- package/dest/testing/cheat_codes.d.ts.map +0 -1
- package/dest/testing/cheat_codes.js +0 -20
- package/dest/testing/index.d.ts +0 -5
- package/dest/testing/index.d.ts.map +0 -1
- package/dest/testing/index.js +0 -4
- package/src/testing/anvil_test_watcher.ts +0 -167
- package/src/testing/aztec_cheat_codes.ts +0 -77
- package/src/testing/cheat_codes.ts +0 -28
- package/src/testing/index.ts +0 -4
package/dest/bin/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import { injectCommands as injectInfrastructureCommands } from '@aztec/cli/infra
|
|
|
8
8
|
import { injectCommands as injectL1Commands } from '@aztec/cli/l1';
|
|
9
9
|
import { injectCommands as injectMiscCommands } from '@aztec/cli/misc';
|
|
10
10
|
import { injectCommands as injectPXECommands } from '@aztec/cli/pxe';
|
|
11
|
-
import { getActiveNetworkName } from '@aztec/foundation/config';
|
|
12
11
|
import { createConsoleLogger, createLogger } from '@aztec/foundation/log';
|
|
13
12
|
import { Command } from 'commander';
|
|
14
13
|
import { NETWORK_FLAG } from '../cli/aztec_start_options.js';
|
|
@@ -30,7 +29,10 @@ const debugLogger = createLogger('cli');
|
|
|
30
29
|
if (networkIndex !== -1) {
|
|
31
30
|
networkValue = args[networkIndex].split('=')[1] || args[networkIndex + 1];
|
|
32
31
|
}
|
|
33
|
-
|
|
32
|
+
networkValue = networkValue || process.env.NETWORK;
|
|
33
|
+
if (networkValue !== undefined) {
|
|
34
|
+
await enrichEnvironmentWithChainConfig(networkValue);
|
|
35
|
+
}
|
|
34
36
|
const cliVersion = getCliVersion();
|
|
35
37
|
let program = new Command('aztec');
|
|
36
38
|
program.description('Aztec command line interface').version(cliVersion);
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type { NetworkNames } from '@aztec/foundation/config';
|
|
2
1
|
import type { SharedNodeConfig } from '@aztec/node-lib/config';
|
|
2
|
+
export type NetworkNames = 'testnet-ignition' | 'alpha-testnet';
|
|
3
3
|
export type L2ChainConfig = {
|
|
4
4
|
l1ChainId: number;
|
|
5
|
+
ethereumSlotDuration: number;
|
|
6
|
+
aztecSlotDuration: number;
|
|
7
|
+
aztecEpochDuration: number;
|
|
8
|
+
aztecProofSubmissionEpochs: number;
|
|
5
9
|
testAccounts: boolean;
|
|
6
10
|
sponsoredFPC: boolean;
|
|
7
11
|
p2pEnabled: boolean;
|
|
@@ -19,50 +23,10 @@ export type L2ChainConfig = {
|
|
|
19
23
|
publicIncludeMetrics?: string[];
|
|
20
24
|
publicMetricsCollectorUrl?: string;
|
|
21
25
|
publicMetricsCollectFrom?: string[];
|
|
22
|
-
/** How many seconds an L1 slot lasts. */
|
|
23
|
-
ethereumSlotDuration: number;
|
|
24
|
-
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
|
|
25
|
-
aztecSlotDuration: number;
|
|
26
|
-
/** How many L2 slots an epoch lasts. */
|
|
27
|
-
aztecEpochDuration: number;
|
|
28
|
-
/** The target validator committee size. */
|
|
29
|
-
aztecTargetCommitteeSize: number;
|
|
30
|
-
/** The number of epochs after an epoch ends that proofs are still accepted. */
|
|
31
|
-
aztecProofSubmissionEpochs: number;
|
|
32
|
-
/** The deposit amount for a validator */
|
|
33
|
-
depositAmount: bigint;
|
|
34
|
-
/** The minimum stake for a validator. */
|
|
35
|
-
minimumStake: bigint;
|
|
36
|
-
/** The slashing quorum */
|
|
37
|
-
slashingQuorum: number;
|
|
38
|
-
/** The slashing round size */
|
|
39
|
-
slashingRoundSize: number;
|
|
40
|
-
/** Governance proposing quorum */
|
|
41
|
-
governanceProposerQuorum: number;
|
|
42
|
-
/** Governance proposing round size */
|
|
43
|
-
governanceProposerRoundSize: number;
|
|
44
|
-
/** The mana target for the rollup */
|
|
45
|
-
manaTarget: bigint;
|
|
46
|
-
/** The proving cost per mana */
|
|
47
|
-
provingCostPerMana: bigint;
|
|
48
|
-
slashPayloadTtlSeconds: number;
|
|
49
|
-
slashPruneEnabled: boolean;
|
|
50
|
-
slashPrunePenalty: bigint;
|
|
51
|
-
slashPruneMaxPenalty: bigint;
|
|
52
|
-
slashInactivityEnabled: boolean;
|
|
53
|
-
slashInactivityCreateTargetPercentage: number;
|
|
54
|
-
slashInactivitySignalTargetPercentage: number;
|
|
55
|
-
slashInactivityCreatePenalty: bigint;
|
|
56
|
-
slashInvalidBlockEnabled: boolean;
|
|
57
|
-
slashInvalidBlockPenalty: bigint;
|
|
58
|
-
slashInvalidBlockMaxPenalty: bigint;
|
|
59
26
|
};
|
|
60
27
|
export declare const testnetIgnitionL2ChainConfig: L2ChainConfig;
|
|
61
28
|
export declare const alphaTestnetL2ChainConfig: L2ChainConfig;
|
|
62
29
|
export declare function getBootnodes(networkName: NetworkNames): Promise<any>;
|
|
63
|
-
export declare function getL2ChainConfig(networkName: NetworkNames): Promise<
|
|
64
|
-
config: L2ChainConfig;
|
|
65
|
-
networkName: string;
|
|
66
|
-
} | undefined>;
|
|
30
|
+
export declare function getL2ChainConfig(networkName: NetworkNames): Promise<L2ChainConfig | undefined>;
|
|
67
31
|
export declare function enrichEnvironmentWithChainConfig(networkName: NetworkNames): Promise<void>;
|
|
68
32
|
//# sourceMappingURL=chain_l2_config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/cli/chain_l2_config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/cli/chain_l2_config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,eAAe,CAAC;AAEhE,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B,EAAE,MAAM,CAAC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,aAoB1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,aAuBvC,CAAC;AAEF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,gBAW3D;AAED,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAWpG;AAmBD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBA6C/E"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EthAddress } from '@aztec/aztec.js';
|
|
2
|
-
import { DefaultL1ContractsConfig } from '@aztec/ethereum';
|
|
3
2
|
import path from 'path';
|
|
4
|
-
import publicIncludeMetrics from '../../public_include_metric_prefixes.json' with {
|
|
5
|
-
type: 'json'
|
|
6
|
-
};
|
|
7
3
|
export const testnetIgnitionL2ChainConfig = {
|
|
8
4
|
l1ChainId: 11155111,
|
|
5
|
+
ethereumSlotDuration: 12,
|
|
6
|
+
aztecSlotDuration: 36,
|
|
7
|
+
aztecEpochDuration: 32,
|
|
8
|
+
aztecProofSubmissionEpochs: 1,
|
|
9
9
|
testAccounts: true,
|
|
10
10
|
sponsoredFPC: false,
|
|
11
11
|
p2pEnabled: true,
|
|
@@ -19,36 +19,14 @@ export const testnetIgnitionL2ChainConfig = {
|
|
|
19
19
|
snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/',
|
|
20
20
|
autoUpdate: 'disabled',
|
|
21
21
|
autoUpdateUrl: undefined,
|
|
22
|
-
maxTxPoolSize: 100_000_000
|
|
23
|
-
// Deployment stuff
|
|
24
|
-
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
25
|
-
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
|
|
26
|
-
/** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
|
|
27
|
-
/** The target validator committee size. */ aztecTargetCommitteeSize: 48,
|
|
28
|
-
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
29
|
-
/** The deposit amount for a validator */ depositAmount: DefaultL1ContractsConfig.depositAmount,
|
|
30
|
-
/** The minimum stake for a validator. */ minimumStake: DefaultL1ContractsConfig.minimumStake,
|
|
31
|
-
/** The slashing quorum */ slashingQuorum: DefaultL1ContractsConfig.slashingQuorum,
|
|
32
|
-
/** The slashing round size */ slashingRoundSize: DefaultL1ContractsConfig.slashingRoundSize,
|
|
33
|
-
/** Governance proposing quorum */ governanceProposerQuorum: DefaultL1ContractsConfig.governanceProposerQuorum,
|
|
34
|
-
/** Governance proposing round size */ governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
|
|
35
|
-
/** The mana target for the rollup */ manaTarget: 0n,
|
|
36
|
-
/** The proving cost per mana */ provingCostPerMana: 0n,
|
|
37
|
-
// slashing stuff
|
|
38
|
-
slashInactivityEnabled: false,
|
|
39
|
-
slashInactivityCreateTargetPercentage: 0,
|
|
40
|
-
slashInactivitySignalTargetPercentage: 0,
|
|
41
|
-
slashInactivityCreatePenalty: 0n,
|
|
42
|
-
slashInvalidBlockEnabled: false,
|
|
43
|
-
slashPayloadTtlSeconds: 0,
|
|
44
|
-
slashPruneEnabled: false,
|
|
45
|
-
slashPrunePenalty: 0n,
|
|
46
|
-
slashPruneMaxPenalty: 0n,
|
|
47
|
-
slashInvalidBlockPenalty: 0n,
|
|
48
|
-
slashInvalidBlockMaxPenalty: 0n
|
|
22
|
+
maxTxPoolSize: 100_000_000
|
|
49
23
|
};
|
|
50
24
|
export const alphaTestnetL2ChainConfig = {
|
|
51
25
|
l1ChainId: 11155111,
|
|
26
|
+
ethereumSlotDuration: 12,
|
|
27
|
+
aztecSlotDuration: 36,
|
|
28
|
+
aztecEpochDuration: 32,
|
|
29
|
+
aztecProofSubmissionEpochs: 1,
|
|
52
30
|
testAccounts: false,
|
|
53
31
|
sponsoredFPC: true,
|
|
54
32
|
p2pEnabled: true,
|
|
@@ -63,37 +41,14 @@ export const alphaTestnetL2ChainConfig = {
|
|
|
63
41
|
autoUpdate: 'config-and-version',
|
|
64
42
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/alpha-testnet.json',
|
|
65
43
|
maxTxPoolSize: 100_000_000,
|
|
66
|
-
publicIncludeMetrics
|
|
44
|
+
publicIncludeMetrics: [
|
|
45
|
+
'aztec.validator',
|
|
46
|
+
'aztec.tx_collector'
|
|
47
|
+
],
|
|
67
48
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec.network',
|
|
68
49
|
publicMetricsCollectFrom: [
|
|
69
50
|
'sequencer'
|
|
70
|
-
]
|
|
71
|
-
// Deployment stuff
|
|
72
|
-
/** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
|
|
73
|
-
/** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
|
|
74
|
-
/** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
|
|
75
|
-
/** The target validator committee size. */ aztecTargetCommitteeSize: 48,
|
|
76
|
-
/** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
|
|
77
|
-
/** The deposit amount for a validator */ depositAmount: DefaultL1ContractsConfig.depositAmount,
|
|
78
|
-
/** The minimum stake for a validator. */ minimumStake: DefaultL1ContractsConfig.minimumStake,
|
|
79
|
-
/** The slashing quorum */ slashingQuorum: 101,
|
|
80
|
-
/** The slashing round size */ slashingRoundSize: 200,
|
|
81
|
-
/** Governance proposing quorum */ governanceProposerQuorum: 151,
|
|
82
|
-
/** Governance proposing round size */ governanceProposerRoundSize: 300,
|
|
83
|
-
/** The mana target for the rollup */ manaTarget: DefaultL1ContractsConfig.manaTarget,
|
|
84
|
-
/** The proving cost per mana */ provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
|
|
85
|
-
// slashing stuff
|
|
86
|
-
slashPayloadTtlSeconds: 36 * 32 * 24,
|
|
87
|
-
slashPruneEnabled: true,
|
|
88
|
-
slashPrunePenalty: 17n * (DefaultL1ContractsConfig.depositAmount / 100n),
|
|
89
|
-
slashPruneMaxPenalty: 17n * (DefaultL1ContractsConfig.depositAmount / 100n),
|
|
90
|
-
slashInactivityEnabled: true,
|
|
91
|
-
slashInactivityCreateTargetPercentage: 1,
|
|
92
|
-
slashInactivitySignalTargetPercentage: 1,
|
|
93
|
-
slashInactivityCreatePenalty: 17n * (DefaultL1ContractsConfig.depositAmount / 100n),
|
|
94
|
-
slashInvalidBlockEnabled: true,
|
|
95
|
-
slashInvalidBlockPenalty: DefaultL1ContractsConfig.depositAmount,
|
|
96
|
-
slashInvalidBlockMaxPenalty: DefaultL1ContractsConfig.depositAmount
|
|
51
|
+
]
|
|
97
52
|
};
|
|
98
53
|
export async function getBootnodes(networkName) {
|
|
99
54
|
const url = `http://static.aztec.network/${networkName}/bootnodes.json`;
|
|
@@ -110,19 +65,13 @@ export async function getL2ChainConfig(networkName) {
|
|
|
110
65
|
...testnetIgnitionL2ChainConfig
|
|
111
66
|
};
|
|
112
67
|
config.p2pBootstrapNodes = await getBootnodes(networkName);
|
|
113
|
-
return
|
|
114
|
-
|
|
115
|
-
networkName
|
|
116
|
-
};
|
|
117
|
-
} else if (networkName === 'alpha-testnet' || networkName === 'testnet') {
|
|
68
|
+
return config;
|
|
69
|
+
} else if (networkName === 'alpha-testnet') {
|
|
118
70
|
const config = {
|
|
119
71
|
...alphaTestnetL2ChainConfig
|
|
120
72
|
};
|
|
121
|
-
config.p2pBootstrapNodes = await getBootnodes(
|
|
122
|
-
return
|
|
123
|
-
config,
|
|
124
|
-
networkName: 'alpha-testnet'
|
|
125
|
-
};
|
|
73
|
+
config.p2pBootstrapNodes = await getBootnodes(networkName);
|
|
74
|
+
return config;
|
|
126
75
|
}
|
|
127
76
|
return undefined;
|
|
128
77
|
}
|
|
@@ -142,14 +91,14 @@ function enrichEthAddressVar(envVar, value) {
|
|
|
142
91
|
enrichVar(envVar, value);
|
|
143
92
|
}
|
|
144
93
|
export async function enrichEnvironmentWithChainConfig(networkName) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
const result = await getL2ChainConfig(networkName);
|
|
149
|
-
if (!result) {
|
|
94
|
+
const config = await getL2ChainConfig(networkName);
|
|
95
|
+
if (!config) {
|
|
150
96
|
throw new Error(`Unknown network name: ${networkName}`);
|
|
151
97
|
}
|
|
152
|
-
|
|
98
|
+
enrichVar('ETHEREUM_SLOT_DURATION', config.ethereumSlotDuration.toString());
|
|
99
|
+
enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
|
|
100
|
+
enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
|
|
101
|
+
enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
|
|
153
102
|
enrichVar('BOOTSTRAP_NODES', config.p2pBootstrapNodes.join(','));
|
|
154
103
|
enrichVar('TEST_ACCOUNTS', config.testAccounts.toString());
|
|
155
104
|
enrichVar('SPONSORED_FPC', config.sponsoredFPC.toString());
|
|
@@ -157,7 +106,7 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
157
106
|
enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
|
|
158
107
|
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.seqMinTxsPerBlock.toString());
|
|
159
108
|
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
|
|
160
|
-
enrichVar('DATA_DIRECTORY', path.join(process.env.HOME || '~', '.aztec',
|
|
109
|
+
enrichVar('DATA_DIRECTORY', path.join(process.env.HOME || '~', '.aztec', networkName, 'data'));
|
|
161
110
|
enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
|
|
162
111
|
enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
|
|
163
112
|
enrichVar('SYNC_SNAPSHOTS_URL', config.snapshotsUrl);
|
|
@@ -180,30 +129,4 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
180
129
|
enrichEthAddressVar('REGISTRY_CONTRACT_ADDRESS', config.registryAddress);
|
|
181
130
|
enrichEthAddressVar('SLASH_FACTORY_CONTRACT_ADDRESS', config.slashFactoryAddress);
|
|
182
131
|
enrichEthAddressVar('FEE_ASSET_HANDLER_CONTRACT_ADDRESS', config.feeAssetHandlerAddress);
|
|
183
|
-
// Deployment stuff
|
|
184
|
-
enrichVar('ETHEREUM_SLOT_DURATION', config.ethereumSlotDuration.toString());
|
|
185
|
-
enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
|
|
186
|
-
enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
|
|
187
|
-
enrichVar('AZTEC_TARGET_COMMITTEE_SIZE', config.aztecTargetCommitteeSize.toString());
|
|
188
|
-
enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
|
|
189
|
-
enrichVar('AZTEC_DEPOSIT_AMOUNT', config.depositAmount.toString());
|
|
190
|
-
enrichVar('AZTEC_MINIMUM_STAKE', config.minimumStake.toString());
|
|
191
|
-
enrichVar('AZTEC_SLASHING_QUORUM', config.slashingQuorum.toString());
|
|
192
|
-
enrichVar('AZTEC_SLASHING_ROUND_SIZE', config.slashingRoundSize.toString());
|
|
193
|
-
enrichVar('AZTEC_GOVERNANCE_PROPOSER_QUORUM', config.governanceProposerQuorum.toString());
|
|
194
|
-
enrichVar('AZTEC_GOVERNANCE_PROPOSER_ROUND_SIZE', config.governanceProposerRoundSize.toString());
|
|
195
|
-
enrichVar('AZTEC_MANA_TARGET', config.manaTarget.toString());
|
|
196
|
-
enrichVar('AZTEC_PROVING_COST_PER_MANA', config.provingCostPerMana.toString());
|
|
197
|
-
// Slashing
|
|
198
|
-
enrichVar('SLASH_PAYLOAD_TTL_SECONDS', config.slashPayloadTtlSeconds.toString());
|
|
199
|
-
enrichVar('SLASH_PRUNE_ENABLED', config.slashPruneEnabled.toString());
|
|
200
|
-
enrichVar('SLASH_PRUNE_PENALTY', config.slashPrunePenalty.toString());
|
|
201
|
-
enrichVar('SLASH_PRUNE_MAX_PENALTY', config.slashPruneMaxPenalty.toString());
|
|
202
|
-
enrichVar('SLASH_INACTIVITY_ENABLED', config.slashInactivityEnabled.toString());
|
|
203
|
-
enrichVar('SLASH_INACTIVITY_CREATE_TARGET_PERCENTAGE', config.slashInactivityCreateTargetPercentage.toString());
|
|
204
|
-
enrichVar('SLASH_INACTIVITY_SIGNAL_TARGET_PERCENTAGE', config.slashInactivitySignalTargetPercentage.toString());
|
|
205
|
-
enrichVar('SLASH_INACTIVITY_CREATE_PENALTY', config.slashInactivityCreatePenalty.toString());
|
|
206
|
-
enrichVar('SLASH_INVALID_BLOCK_ENABLED', config.slashInvalidBlockEnabled.toString());
|
|
207
|
-
enrichVar('SLASH_INVALID_BLOCK_PENALTY', config.slashInvalidBlockPenalty.toString());
|
|
208
|
-
enrichVar('SLASH_INVALID_BLOCK_MAX_PENALTY', config.slashInvalidBlockMaxPenalty.toString());
|
|
209
132
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox/sandbox.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox/sandbox.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;AAE7F,OAAO,EAAE,KAAK,uBAAuB,EAAwB,MAAM,yBAAyB,CAAC;AAY7F,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,KAAK,KAAK,EAAgB,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAoB,MAAM,yBAAyB,CAAC;AAGzE,OAAO,EAAE,KAAK,gBAAgB,EAAyC,MAAM,mBAAmB,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAA2D,MAAM,MAAM,CAAC;AAavH;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,SAAS,GAAG,iBAAiB,EACxC,oBAAoB,yCAAS,EAC7B,IAAI,GAAE;IACJ,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,EAAE,CAAC;IACxB,4BAA4B,CAAC,EAAE,MAAM,CAAC;CAClC;;;;;;;;;;;;;;;;;;;;;;GAiCP;AAED,wBAAwB;AACxB,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG;IAC5C,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,KAAK,EAAE,OAAO,CAAC;IACf,uDAAuD;IACvD,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,YAAK,EAAE,OAAO,EAAE,KAAK;;;;GAqGtF;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,MAAM,GAAE,OAAO,CAAC,eAAe,CAAM,EACrC,IAAI,GAAE;IAAE,SAAS,CAAC,EAAE,eAAe,CAAC;IAAC,cAAc,CAAC,EAAE,uBAAuB,CAAC;IAAC,YAAY,CAAC,EAAE,YAAY,CAAA;CAAO,EACjH,OAAO,GAAE;IAAE,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAAO,6BAW7D;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,GAAE,OAAO,CAAC,gBAAgB,CAAM,mDAI3F"}
|
package/dest/sandbox/sandbox.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { getSchnorrWallet } from '@aztec/accounts/schnorr';
|
|
3
3
|
import { deployFundedSchnorrAccounts, getInitialTestAccounts } from '@aztec/accounts/testing';
|
|
4
4
|
import { AztecNodeService, getConfigEnvVars } from '@aztec/aztec-node';
|
|
5
|
+
import { AnvilTestWatcher, EthCheatCodes } from '@aztec/aztec.js/testing';
|
|
5
6
|
import { createBlobSinkClient } from '@aztec/blob-sink/client';
|
|
6
7
|
import { setupSponsoredFPC } from '@aztec/cli/cli-utils';
|
|
7
8
|
import { GENESIS_ARCHIVE_ROOT } from '@aztec/constants';
|
|
8
9
|
import { NULL_KEY, createEthereumChain, deployL1Contracts, deployMulticall3, getL1ContractsConfigEnvVars, waitForPublicClient } from '@aztec/ethereum';
|
|
9
|
-
import { EthCheatCodes } from '@aztec/ethereum/test';
|
|
10
10
|
import { SecretValue } from '@aztec/foundation/config';
|
|
11
11
|
import { Fr } from '@aztec/foundation/fields';
|
|
12
12
|
import { createLogger } from '@aztec/foundation/log';
|
|
@@ -21,7 +21,6 @@ import { mnemonicToAccount } from 'viem/accounts';
|
|
|
21
21
|
import { foundry } from 'viem/chains';
|
|
22
22
|
import { createAccountLogs } from '../cli/util.js';
|
|
23
23
|
import { DefaultMnemonic } from '../mnemonic.js';
|
|
24
|
-
import { AnvilTestWatcher } from '../testing/anvil_test_watcher.js';
|
|
25
24
|
import { getBananaFPCAddress, setupBananaFPC } from './banana_fpc.js';
|
|
26
25
|
import { getSponsoredFPCAddress } from './sponsored_fpc.js';
|
|
27
26
|
const logger = createLogger('sandbox');
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-staging.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
|
-
".": "./dest/index.js"
|
|
7
|
-
"./testing": "./dest/testing/index.js"
|
|
6
|
+
".": "./dest/index.js"
|
|
8
7
|
},
|
|
9
8
|
"bin": "./dest/bin/index.js",
|
|
10
9
|
"typedocOptions": {
|
|
@@ -28,36 +27,35 @@
|
|
|
28
27
|
"../package.common.json"
|
|
29
28
|
],
|
|
30
29
|
"dependencies": {
|
|
31
|
-
"@aztec/accounts": "1.0.0-
|
|
32
|
-
"@aztec/archiver": "1.0.0-
|
|
33
|
-
"@aztec/aztec-faucet": "1.0.0-
|
|
34
|
-
"@aztec/aztec-node": "1.0.0-
|
|
35
|
-
"@aztec/aztec.js": "1.0.0-
|
|
36
|
-
"@aztec/bb-prover": "1.0.0-
|
|
37
|
-
"@aztec/bb.js": "1.0.0-
|
|
38
|
-
"@aztec/blob-sink": "1.0.0-
|
|
39
|
-
"@aztec/bot": "1.0.0-
|
|
40
|
-
"@aztec/builder": "1.0.0-
|
|
41
|
-
"@aztec/cli": "1.0.0-
|
|
42
|
-
"@aztec/cli-wallet": "1.0.0-
|
|
43
|
-
"@aztec/constants": "1.0.0-
|
|
44
|
-
"@aztec/entrypoints": "1.0.0-
|
|
45
|
-
"@aztec/ethereum": "1.0.0-
|
|
46
|
-
"@aztec/foundation": "1.0.0-
|
|
47
|
-
"@aztec/kv-store": "1.0.0-
|
|
48
|
-
"@aztec/
|
|
49
|
-
"@aztec/noir-
|
|
50
|
-
"@aztec/
|
|
51
|
-
"@aztec/p2p": "1.0.0-
|
|
52
|
-
"@aztec/
|
|
53
|
-
"@aztec/
|
|
54
|
-
"@aztec/prover-
|
|
55
|
-
"@aztec/
|
|
56
|
-
"@aztec/
|
|
57
|
-
"@aztec/
|
|
58
|
-
"@aztec/
|
|
59
|
-
"@aztec/
|
|
60
|
-
"@aztec/world-state": "1.0.0-nightly.20250708",
|
|
30
|
+
"@aztec/accounts": "1.0.0-staging.1",
|
|
31
|
+
"@aztec/archiver": "1.0.0-staging.1",
|
|
32
|
+
"@aztec/aztec-faucet": "1.0.0-staging.1",
|
|
33
|
+
"@aztec/aztec-node": "1.0.0-staging.1",
|
|
34
|
+
"@aztec/aztec.js": "1.0.0-staging.1",
|
|
35
|
+
"@aztec/bb-prover": "1.0.0-staging.1",
|
|
36
|
+
"@aztec/bb.js": "1.0.0-staging.1",
|
|
37
|
+
"@aztec/blob-sink": "1.0.0-staging.1",
|
|
38
|
+
"@aztec/bot": "1.0.0-staging.1",
|
|
39
|
+
"@aztec/builder": "1.0.0-staging.1",
|
|
40
|
+
"@aztec/cli": "1.0.0-staging.1",
|
|
41
|
+
"@aztec/cli-wallet": "1.0.0-staging.1",
|
|
42
|
+
"@aztec/constants": "1.0.0-staging.1",
|
|
43
|
+
"@aztec/entrypoints": "1.0.0-staging.1",
|
|
44
|
+
"@aztec/ethereum": "1.0.0-staging.1",
|
|
45
|
+
"@aztec/foundation": "1.0.0-staging.1",
|
|
46
|
+
"@aztec/kv-store": "1.0.0-staging.1",
|
|
47
|
+
"@aztec/noir-contracts.js": "1.0.0-staging.1",
|
|
48
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-staging.1",
|
|
49
|
+
"@aztec/p2p": "1.0.0-staging.1",
|
|
50
|
+
"@aztec/p2p-bootstrap": "1.0.0-staging.1",
|
|
51
|
+
"@aztec/protocol-contracts": "1.0.0-staging.1",
|
|
52
|
+
"@aztec/prover-client": "1.0.0-staging.1",
|
|
53
|
+
"@aztec/prover-node": "1.0.0-staging.1",
|
|
54
|
+
"@aztec/pxe": "1.0.0-staging.1",
|
|
55
|
+
"@aztec/stdlib": "1.0.0-staging.1",
|
|
56
|
+
"@aztec/telemetry-client": "1.0.0-staging.1",
|
|
57
|
+
"@aztec/txe": "1.0.0-staging.1",
|
|
58
|
+
"@aztec/world-state": "1.0.0-staging.1",
|
|
61
59
|
"@types/chalk": "^2.2.0",
|
|
62
60
|
"abitype": "^0.8.11",
|
|
63
61
|
"chalk": "^5.3.0",
|
package/src/bin/index.ts
CHANGED
|
@@ -8,13 +8,12 @@ import { injectCommands as injectInfrastructureCommands } from '@aztec/cli/infra
|
|
|
8
8
|
import { injectCommands as injectL1Commands } from '@aztec/cli/l1';
|
|
9
9
|
import { injectCommands as injectMiscCommands } from '@aztec/cli/misc';
|
|
10
10
|
import { injectCommands as injectPXECommands } from '@aztec/cli/pxe';
|
|
11
|
-
import { getActiveNetworkName } from '@aztec/foundation/config';
|
|
12
11
|
import { createConsoleLogger, createLogger } from '@aztec/foundation/log';
|
|
13
12
|
|
|
14
13
|
import { Command } from 'commander';
|
|
15
14
|
|
|
16
15
|
import { NETWORK_FLAG } from '../cli/aztec_start_options.js';
|
|
17
|
-
import { enrichEnvironmentWithChainConfig } from '../cli/chain_l2_config.js';
|
|
16
|
+
import { type NetworkNames, enrichEnvironmentWithChainConfig } from '../cli/chain_l2_config.js';
|
|
18
17
|
import { injectAztecCommands } from '../cli/index.js';
|
|
19
18
|
import { getCliVersion } from '../cli/release_version.js';
|
|
20
19
|
|
|
@@ -39,7 +38,11 @@ async function main() {
|
|
|
39
38
|
networkValue = args[networkIndex].split('=')[1] || args[networkIndex + 1];
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
networkValue = networkValue || process.env.NETWORK;
|
|
42
|
+
|
|
43
|
+
if (networkValue !== undefined) {
|
|
44
|
+
await enrichEnvironmentWithChainConfig(networkValue as NetworkNames);
|
|
45
|
+
}
|
|
43
46
|
|
|
44
47
|
const cliVersion = getCliVersion();
|
|
45
48
|
let program = new Command('aztec');
|