@aztec/cli 0.0.1-commit.fce3e4f → 0.0.1-commit.fffb133c

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.
Files changed (126) hide show
  1. package/dest/cmds/aztec_node/get_block.d.ts +1 -1
  2. package/dest/cmds/aztec_node/get_block.d.ts.map +1 -1
  3. package/dest/cmds/aztec_node/get_block.js +2 -1
  4. package/dest/cmds/aztec_node/get_current_min_fee.d.ts +3 -0
  5. package/dest/cmds/aztec_node/get_current_min_fee.d.ts.map +1 -0
  6. package/dest/cmds/aztec_node/{get_current_base_fee.js → get_current_min_fee.js} +2 -2
  7. package/dest/cmds/aztec_node/get_logs.d.ts +3 -2
  8. package/dest/cmds/aztec_node/get_logs.d.ts.map +1 -1
  9. package/dest/cmds/aztec_node/index.js +3 -3
  10. package/dest/cmds/contracts/inspect_contract.js +1 -1
  11. package/dest/cmds/infrastructure/index.d.ts +1 -1
  12. package/dest/cmds/infrastructure/index.d.ts.map +1 -1
  13. package/dest/cmds/infrastructure/index.js +0 -1
  14. package/dest/cmds/infrastructure/sequencers.d.ts +1 -2
  15. package/dest/cmds/infrastructure/sequencers.d.ts.map +1 -1
  16. package/dest/cmds/infrastructure/sequencers.js +11 -4
  17. package/dest/cmds/infrastructure/setup_l2_contract.js +1 -1
  18. package/dest/cmds/l1/assume_proven_through.d.ts +3 -2
  19. package/dest/cmds/l1/assume_proven_through.d.ts.map +1 -1
  20. package/dest/cmds/l1/assume_proven_through.js +3 -4
  21. package/dest/cmds/l1/bridge_erc20.d.ts +1 -1
  22. package/dest/cmds/l1/bridge_erc20.d.ts.map +1 -1
  23. package/dest/cmds/l1/bridge_erc20.js +2 -1
  24. package/dest/cmds/l1/deploy_l1_contracts_cmd.d.ts +4 -0
  25. package/dest/cmds/l1/deploy_l1_contracts_cmd.d.ts.map +1 -0
  26. package/dest/cmds/l1/{deploy_l1_contracts.js → deploy_l1_contracts_cmd.js} +39 -4
  27. package/dest/cmds/l1/deploy_new_rollup.d.ts +4 -4
  28. package/dest/cmds/l1/deploy_new_rollup.d.ts.map +1 -1
  29. package/dest/cmds/l1/deploy_new_rollup.js +3 -3
  30. package/dest/cmds/l1/get_l1_addresses.d.ts +1 -1
  31. package/dest/cmds/l1/get_l1_addresses.d.ts.map +1 -1
  32. package/dest/cmds/l1/get_l1_addresses.js +5 -2
  33. package/dest/cmds/l1/get_l1_balance.js +4 -2
  34. package/dest/cmds/l1/governance_utils.d.ts +1 -1
  35. package/dest/cmds/l1/governance_utils.d.ts.map +1 -1
  36. package/dest/cmds/l1/governance_utils.js +3 -1
  37. package/dest/cmds/l1/index.d.ts +1 -2
  38. package/dest/cmds/l1/index.d.ts.map +1 -1
  39. package/dest/cmds/l1/index.js +13 -10
  40. package/dest/cmds/l1/prover_stats.d.ts +1 -1
  41. package/dest/cmds/l1/prover_stats.d.ts.map +1 -1
  42. package/dest/cmds/l1/prover_stats.js +4 -2
  43. package/dest/cmds/l1/trigger_seed_snapshot.d.ts +1 -1
  44. package/dest/cmds/l1/trigger_seed_snapshot.d.ts.map +1 -1
  45. package/dest/cmds/l1/trigger_seed_snapshot.js +2 -1
  46. package/dest/cmds/l1/update_l1_validators.d.ts +3 -3
  47. package/dest/cmds/l1/update_l1_validators.d.ts.map +1 -1
  48. package/dest/cmds/l1/update_l1_validators.js +52 -13
  49. package/dest/cmds/misc/generate_secret_and_hash.js +1 -1
  50. package/dest/cmds/misc/index.d.ts +1 -1
  51. package/dest/cmds/misc/index.d.ts.map +1 -1
  52. package/dest/cmds/misc/index.js +1 -1
  53. package/dest/cmds/validator_keys/generate_bls_keypair.js +1 -1
  54. package/dest/cmds/validator_keys/new.d.ts +1 -1
  55. package/dest/cmds/validator_keys/new.d.ts.map +1 -1
  56. package/dest/cmds/validator_keys/new.js +5 -2
  57. package/dest/cmds/validator_keys/shared.d.ts +1 -1
  58. package/dest/cmds/validator_keys/shared.d.ts.map +1 -1
  59. package/dest/cmds/validator_keys/shared.js +2 -1
  60. package/dest/cmds/validator_keys/staker.d.ts +2 -2
  61. package/dest/cmds/validator_keys/staker.d.ts.map +1 -1
  62. package/dest/cmds/validator_keys/staker.js +7 -4
  63. package/dest/cmds/validator_keys/utils.d.ts +1 -1
  64. package/dest/cmds/validator_keys/utils.d.ts.map +1 -1
  65. package/dest/cmds/validator_keys/utils.js +1 -1
  66. package/dest/config/chain_l2_config.d.ts +12 -38
  67. package/dest/config/chain_l2_config.d.ts.map +1 -1
  68. package/dest/config/chain_l2_config.js +33 -493
  69. package/dest/config/generated/networks.d.ts +205 -0
  70. package/dest/config/generated/networks.d.ts.map +1 -0
  71. package/dest/config/generated/networks.js +206 -0
  72. package/dest/config/get_l1_config.d.ts +3 -2
  73. package/dest/config/get_l1_config.d.ts.map +1 -1
  74. package/dest/config/get_l1_config.js +3 -1
  75. package/dest/config/network_config.d.ts +6 -3
  76. package/dest/config/network_config.d.ts.map +1 -1
  77. package/dest/config/network_config.js +50 -28
  78. package/dest/utils/aztec.d.ts +7 -13
  79. package/dest/utils/aztec.d.ts.map +1 -1
  80. package/dest/utils/aztec.js +19 -40
  81. package/dest/utils/commands.d.ts +7 -6
  82. package/dest/utils/commands.d.ts.map +1 -1
  83. package/dest/utils/commands.js +6 -5
  84. package/dest/utils/encoding.js +1 -1
  85. package/dest/utils/inspect.d.ts +3 -2
  86. package/dest/utils/inspect.d.ts.map +1 -1
  87. package/dest/utils/inspect.js +4 -1
  88. package/package.json +41 -33
  89. package/src/cmds/aztec_node/get_block.ts +2 -1
  90. package/src/cmds/aztec_node/{get_current_base_fee.ts → get_current_min_fee.ts} +2 -2
  91. package/src/cmds/aztec_node/get_logs.ts +3 -2
  92. package/src/cmds/aztec_node/index.ts +3 -3
  93. package/src/cmds/contracts/inspect_contract.ts +1 -1
  94. package/src/cmds/infrastructure/index.ts +0 -1
  95. package/src/cmds/infrastructure/sequencers.ts +7 -5
  96. package/src/cmds/infrastructure/setup_l2_contract.ts +1 -1
  97. package/src/cmds/l1/assume_proven_through.ts +4 -4
  98. package/src/cmds/l1/bridge_erc20.ts +2 -1
  99. package/src/cmds/l1/{deploy_l1_contracts.ts → deploy_l1_contracts_cmd.ts} +39 -22
  100. package/src/cmds/l1/deploy_new_rollup.ts +4 -9
  101. package/src/cmds/l1/get_l1_addresses.ts +4 -2
  102. package/src/cmds/l1/get_l1_balance.ts +2 -2
  103. package/src/cmds/l1/governance_utils.ts +3 -8
  104. package/src/cmds/l1/index.ts +12 -21
  105. package/src/cmds/l1/prover_stats.ts +6 -2
  106. package/src/cmds/l1/trigger_seed_snapshot.ts +2 -1
  107. package/src/cmds/l1/update_l1_validators.ts +46 -25
  108. package/src/cmds/misc/generate_secret_and_hash.ts +1 -1
  109. package/src/cmds/misc/index.ts +1 -1
  110. package/src/cmds/validator_keys/generate_bls_keypair.ts +1 -1
  111. package/src/cmds/validator_keys/new.ts +3 -2
  112. package/src/cmds/validator_keys/shared.ts +2 -1
  113. package/src/cmds/validator_keys/staker.ts +5 -4
  114. package/src/cmds/validator_keys/utils.ts +2 -1
  115. package/src/config/chain_l2_config.ts +33 -644
  116. package/src/config/generated/networks.ts +210 -0
  117. package/src/config/get_l1_config.ts +4 -1
  118. package/src/config/network_config.ts +53 -29
  119. package/src/utils/aztec.ts +24 -83
  120. package/src/utils/commands.ts +6 -5
  121. package/src/utils/encoding.ts +1 -1
  122. package/src/utils/inspect.ts +6 -2
  123. package/dest/cmds/aztec_node/get_current_base_fee.d.ts +0 -3
  124. package/dest/cmds/aztec_node/get_current_base_fee.d.ts.map +0 -1
  125. package/dest/cmds/l1/deploy_l1_contracts.d.ts +0 -4
  126. package/dest/cmds/l1/deploy_l1_contracts.d.ts.map +0 -1
@@ -1,668 +1,57 @@
1
- import { DefaultL1ContractsConfig, type L1ContractsConfig, type L1TxUtilsConfig } from '@aztec/ethereum';
2
1
  import type { NetworkNames } from '@aztec/foundation/config';
3
- import { EthAddress } from '@aztec/foundation/eth-address';
4
- import type { SharedNodeConfig } from '@aztec/node-lib/config';
5
- import type { P2PConfig } from '@aztec/p2p';
6
- import type { SequencerConfig, SlasherConfig } from '@aztec/stdlib/interfaces/server';
7
2
 
8
3
  import path from 'path';
9
4
 
10
- import publicIncludeMetrics from '../../public_include_metric_prefixes.json' with { type: 'json' };
11
- import { enrichEthAddressVar, enrichVar } from './enrich_env.js';
5
+ import { devnetConfig, mainnetConfig, testnetConfig } from './generated/networks.js';
12
6
 
13
- const SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
7
+ type NetworkConfigEnv = Record<string, string | number | boolean>;
14
8
 
15
- const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
16
- const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
17
-
18
- export type L2ChainConfig = Omit<L1ContractsConfig, keyof L1TxUtilsConfig> &
19
- Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways' | 'slashOverridePayload' | 'slashSelfAllowed'> &
20
- Pick<P2PConfig, 'bootstrapNodes' | 'p2pEnabled' | 'txPoolDeleteTxsAfterReorg'> &
21
- Pick<SequencerConfig, 'minTxsPerBlock' | 'maxTxsPerBlock'> & {
22
- l1ChainId: number;
23
- testAccounts: boolean;
24
- sponsoredFPC: boolean;
25
- minTxsPerBlock: number;
26
- maxTxsPerBlock: number;
27
- realProofs: boolean;
28
- snapshotsUrls: string[];
29
- autoUpdate: SharedNodeConfig['autoUpdate'];
30
- autoUpdateUrl?: string;
31
- maxTxPoolSize: number;
32
- publicMetricsOptOut: boolean;
33
- publicIncludeMetrics?: string[];
34
- publicMetricsCollectorUrl?: string;
35
- publicMetricsCollectFrom?: string[];
36
- skipArchiverInitialSync?: boolean;
37
- blobAllowEmptySources?: boolean;
38
-
39
- // Setting the dataStoreMapSize provides the default for every DB in the node.
40
- // Then we explicitly override the sizes for the archiver and the larger trees.
41
- dataStoreMapSizeKb: number;
42
- archiverStoreMapSizeKb: number;
43
- noteHashTreeMapSizeKb: number;
44
- nullifierTreeMapSizeKb: number;
45
- publicDataTreeMapSizeKb: number;
46
-
47
- // Control whether sentinel is enabled or not. Needed for slashing
48
- sentinelEnabled: boolean;
49
- disableTransactions: boolean;
50
- };
51
-
52
- const DefaultSlashConfig = {
53
- /** Tally-style slashing */
54
- slasherFlavor: 'tally',
55
- /** Allow one round for vetoing */
56
- slashingExecutionDelayInRounds: 1,
57
- /** How long for a slash payload to be executed */
58
- slashingLifetimeInRounds: 5,
59
- /** Allow 2 rounds to discover faults */
60
- slashingOffsetInRounds: 2,
61
- /** No slash vetoer */
62
- slashingVetoer: EthAddress.ZERO,
63
- /** Use default disable duration */
64
- slashingDisableDuration: DefaultL1ContractsConfig.slashingDisableDuration,
65
- /** Use default slash amounts */
66
- slashAmountSmall: DefaultL1ContractsConfig.slashAmountSmall,
67
- slashAmountMedium: DefaultL1ContractsConfig.slashAmountMedium,
68
- slashAmountLarge: DefaultL1ContractsConfig.slashAmountLarge,
69
-
70
- // Slashing stuff
71
- slashMinPenaltyPercentage: 0.5,
72
- slashMaxPenaltyPercentage: 2.0,
73
- slashInactivityTargetPercentage: 0.7,
74
- slashInactivityConsecutiveEpochThreshold: 1,
75
- slashInactivityPenalty: DefaultL1ContractsConfig.slashAmountSmall,
76
- slashPrunePenalty: DefaultL1ContractsConfig.slashAmountSmall,
77
- slashDataWithholdingPenalty: DefaultL1ContractsConfig.slashAmountSmall,
78
- slashProposeInvalidAttestationsPenalty: DefaultL1ContractsConfig.slashAmountLarge,
79
- slashAttestDescendantOfInvalidPenalty: DefaultL1ContractsConfig.slashAmountLarge,
80
- slashUnknownPenalty: DefaultL1ContractsConfig.slashAmountSmall,
81
- slashBroadcastedInvalidBlockPenalty: 0n, // DefaultL1ContractsConfig.slashAmountSmall // Disabled until further testing
82
- slashMaxPayloadSize: 50,
83
- slashGracePeriodL2Slots: 32 * 2, // Two epochs from genesis
84
- slashOffenseExpirationRounds: 8,
85
- sentinelEnabled: true,
86
- slashExecuteRoundsLookBack: 4,
87
- } satisfies Partial<L2ChainConfig>;
88
-
89
- const DefaultNetworkDBMapSizeConfig = {
90
- dataStoreMapSizeKb: defaultDBMapSizeKb,
91
- archiverStoreMapSizeKb: tbMapSizeKb,
92
- noteHashTreeMapSizeKb: tbMapSizeKb,
93
- nullifierTreeMapSizeKb: tbMapSizeKb,
94
- publicDataTreeMapSizeKb: tbMapSizeKb,
95
- } satisfies Partial<L2ChainConfig>;
96
-
97
- export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
98
- l1ChainId: 11155111,
99
- testAccounts: false,
100
- sponsoredFPC: false,
101
- disableTransactions: true,
102
- p2pEnabled: true,
103
- bootstrapNodes: [],
104
- minTxsPerBlock: 0,
105
- maxTxsPerBlock: 0,
106
- realProofs: true,
107
- snapshotsUrls: [`${SNAPSHOTS_URL}/staging-ignition/`],
108
- autoUpdate: 'config-and-version',
109
- autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
110
- maxTxPoolSize: 0,
111
- publicMetricsOptOut: false,
112
- publicIncludeMetrics,
113
- publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
114
- publicMetricsCollectFrom: ['sequencer'],
115
- txPoolDeleteTxsAfterReorg: false,
116
- blobAllowEmptySources: true,
117
-
118
- /** How many seconds an L1 slot lasts. */
119
- ethereumSlotDuration: 12,
120
- /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
121
- aztecSlotDuration: 72,
122
- /** How many L2 slots an epoch lasts. */
123
- aztecEpochDuration: 32,
124
- /** The target validator committee size. */
125
- aztecTargetCommitteeSize: 24,
126
- /** The number of epochs to lag behind the current epoch for validator selection. */
127
- lagInEpochsForValidatorSet: 2,
128
- /** The number of epochs to lag behind the current epoch for randao selection. */
129
- lagInEpochsForRandao: 2,
130
- /** The number of epochs after an epoch ends that proofs are still accepted. */
131
- aztecProofSubmissionEpochs: 1,
132
- /** How many sequencers must agree with a slash for it to be executed. */
133
- slashingQuorum: 65,
134
-
135
- slashingRoundSizeInEpochs: 4,
136
- slashingLifetimeInRounds: 40,
137
- slashingExecutionDelayInRounds: 28,
138
- slashAmountSmall: 2_000n * 10n ** 18n,
139
- slashAmountMedium: 10_000n * 10n ** 18n,
140
- slashAmountLarge: 50_000n * 10n ** 18n,
141
- slashingOffsetInRounds: 2,
142
- slasherFlavor: 'tally',
143
- slashingVetoer: EthAddress.ZERO,
144
-
145
- /** The mana target for the rollup */
146
- manaTarget: 0n,
147
-
148
- exitDelaySeconds: 5 * 24 * 60 * 60,
149
-
150
- /** The proving cost per mana */
151
- provingCostPerMana: 0n,
152
- localEjectionThreshold: 196_000n * 10n ** 18n,
153
-
154
- ejectionThreshold: 100_000n * 10n ** 18n,
155
- activationThreshold: 200_000n * 10n ** 18n,
156
-
157
- governanceProposerRoundSize: 300,
158
- governanceProposerQuorum: 151,
159
-
160
- // Node slashing config
161
- slashMinPenaltyPercentage: 0.5,
162
- slashMaxPenaltyPercentage: 2.0,
163
- slashInactivityTargetPercentage: 0.7,
164
- slashInactivityConsecutiveEpochThreshold: 2,
165
- slashInactivityPenalty: 2_000n * 10n ** 18n,
166
- slashPrunePenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for prune offenses right now
167
- slashDataWithholdingPenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for data withholding offenses right now
168
- slashProposeInvalidAttestationsPenalty: 50_000n * 10n ** 18n,
169
- slashAttestDescendantOfInvalidPenalty: 50_000n * 10n ** 18n,
170
- slashUnknownPenalty: 2_000n * 10n ** 18n,
171
- slashBroadcastedInvalidBlockPenalty: 0n, // 10_000n * 10n ** 18n, Disabled for now until further testing
172
- slashMaxPayloadSize: 50,
173
- slashGracePeriodL2Slots: 32 * 4, // One round from genesis
174
- slashOffenseExpirationRounds: 8,
175
- sentinelEnabled: true,
176
- slashingDisableDuration: 5 * 24 * 60 * 60,
177
- slashExecuteRoundsLookBack: 4,
178
-
179
- ...DefaultNetworkDBMapSizeConfig,
180
- };
181
-
182
- export const stagingPublicL2ChainConfig: L2ChainConfig = {
183
- l1ChainId: 11155111,
184
- testAccounts: false,
185
- sponsoredFPC: true,
186
- disableTransactions: false,
187
- p2pEnabled: true,
188
- bootstrapNodes: [],
189
- minTxsPerBlock: 0,
190
- maxTxsPerBlock: 20,
191
- realProofs: true,
192
- snapshotsUrls: [`${SNAPSHOTS_URL}/staging-public/`],
193
- autoUpdate: 'config-and-version',
194
- autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-public.json',
195
- publicMetricsOptOut: false,
196
- publicIncludeMetrics,
197
- publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
198
- publicMetricsCollectFrom: ['sequencer'],
199
- maxTxPoolSize: 100_000_000, // 100MB
200
- txPoolDeleteTxsAfterReorg: true,
201
-
202
- // Deployment stuff
203
- /** How many seconds an L1 slot lasts. */
204
- ethereumSlotDuration: 12,
205
- /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
206
- aztecSlotDuration: 36,
207
- /** How many L2 slots an epoch lasts. */
208
- aztecEpochDuration: 32,
209
- /** The target validator committee size. */
210
- aztecTargetCommitteeSize: 48,
211
- /** The number of epochs to lag behind the current epoch for validator selection. */
212
- lagInEpochsForValidatorSet: DefaultL1ContractsConfig.lagInEpochsForValidatorSet,
213
- /** The number of epochs to lag behind the current epoch for randao selection. */
214
- lagInEpochsForRandao: DefaultL1ContractsConfig.lagInEpochsForRandao,
215
- /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
216
- localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
217
- /** The number of epochs after an epoch ends that proofs are still accepted. */
218
- aztecProofSubmissionEpochs: 1,
219
- /** The deposit amount for a validator */
220
- activationThreshold: DefaultL1ContractsConfig.activationThreshold,
221
- /** The minimum stake for a validator. */
222
- ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
223
- /** The slashing round size */
224
- slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
225
- /** Governance proposing round size */
226
- governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
227
- /** The mana target for the rollup */
228
- manaTarget: DefaultL1ContractsConfig.manaTarget,
229
- /** The proving cost per mana */
230
- provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
231
- /** Exit delay for stakers */
232
- exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
233
-
234
- ...DefaultSlashConfig,
235
-
236
- ...DefaultNetworkDBMapSizeConfig,
9
+ const NetworkConfigs: Partial<Record<NetworkNames, NetworkConfigEnv>> = {
10
+ devnet: devnetConfig,
11
+ testnet: testnetConfig,
12
+ mainnet: mainnetConfig,
237
13
  };
238
14
 
239
- export const nextNetL2ChainConfig: L2ChainConfig = {
240
- l1ChainId: 11155111,
241
- testAccounts: true,
242
- sponsoredFPC: true,
243
- p2pEnabled: true,
244
- disableTransactions: false,
245
- bootstrapNodes: [],
246
- minTxsPerBlock: 0,
247
- maxTxsPerBlock: 8,
248
- realProofs: true,
249
- snapshotsUrls: [],
250
- autoUpdate: 'config-and-version',
251
- autoUpdateUrl: '',
252
- publicMetricsOptOut: true,
253
- publicIncludeMetrics,
254
- publicMetricsCollectorUrl: '',
255
- publicMetricsCollectFrom: [''],
256
- maxTxPoolSize: 100_000_000, // 100MB
257
- txPoolDeleteTxsAfterReorg: false,
258
-
259
- // Deployment stuff
260
- /** How many seconds an L1 slot lasts. */
261
- ethereumSlotDuration: 12,
262
- /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
263
- aztecSlotDuration: 36,
264
- /** How many L2 slots an epoch lasts. */
265
- aztecEpochDuration: 32,
266
- /** The target validator committee size. */
267
- aztecTargetCommitteeSize: 48,
268
- /** The number of epochs to lag behind the current epoch for validator selection. */
269
- lagInEpochsForValidatorSet: DefaultL1ContractsConfig.lagInEpochsForValidatorSet,
270
- /** The number of epochs to lag behind the current epoch for randao selection. */
271
- lagInEpochsForRandao: DefaultL1ContractsConfig.lagInEpochsForRandao,
272
- /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
273
- localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
274
- /** The number of epochs after an epoch ends that proofs are still accepted. */
275
- aztecProofSubmissionEpochs: 1,
276
- /** The deposit amount for a validator */
277
- activationThreshold: DefaultL1ContractsConfig.activationThreshold,
278
- /** The minimum stake for a validator. */
279
- ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
280
- /** The slashing round size */
281
- slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
282
- /** Governance proposing round size */
283
- governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
284
- /** The mana target for the rollup */
285
- manaTarget: DefaultL1ContractsConfig.manaTarget,
286
- /** The proving cost per mana */
287
- provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
288
- /** Exit delay for stakers */
289
- exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
290
-
291
- ...DefaultSlashConfig,
292
-
293
- ...DefaultNetworkDBMapSizeConfig,
294
- };
295
-
296
- export const testnetL2ChainConfig: L2ChainConfig = {
297
- l1ChainId: 11155111,
298
- testAccounts: false,
299
- sponsoredFPC: true,
300
- p2pEnabled: true,
301
- disableTransactions: true,
302
- bootstrapNodes: [],
303
- minTxsPerBlock: 0,
304
- maxTxsPerBlock: 0,
305
- realProofs: true,
306
- snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
307
- autoUpdate: 'config-and-version',
308
- autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
309
- maxTxPoolSize: 100_000_000, // 100MB
310
- publicMetricsOptOut: false,
311
- publicIncludeMetrics,
312
- publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
313
- publicMetricsCollectFrom: ['sequencer'],
314
- txPoolDeleteTxsAfterReorg: true,
315
- skipArchiverInitialSync: true,
316
- blobAllowEmptySources: true,
317
-
318
- /** How many seconds an L1 slot lasts. */
319
- ethereumSlotDuration: 12,
320
- /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
321
- aztecSlotDuration: 72,
322
- /** How many L2 slots an epoch lasts. */
323
- aztecEpochDuration: 32,
324
- /** The target validator committee size. */
325
- aztecTargetCommitteeSize: 24,
326
- /** The number of epochs to lag behind the current epoch for validator selection. */
327
- lagInEpochsForValidatorSet: 2,
328
- /** The number of epochs to lag behind the current epoch for randao selection. */
329
- lagInEpochsForRandao: 2,
330
- /** The number of epochs after an epoch ends that proofs are still accepted. */
331
- aztecProofSubmissionEpochs: 1,
332
-
333
- // This is a diff from mainnet: we have 2-strikes you're out, rather than 3 on mainnet.
334
- localEjectionThreshold: 198_000n * 10n ** 18n,
335
- /** How many sequencers must agree with a slash for it to be executed. */
336
- slashingQuorum: 65,
337
- slashingRoundSizeInEpochs: 4,
338
- slashingExecutionDelayInRounds: 28,
339
- slashingLifetimeInRounds: 34,
340
- slashingVetoer: EthAddress.fromString('0xBbB4aF368d02827945748b28CD4b2D42e4A37480'),
341
- slashingOffsetInRounds: 2,
342
-
343
- slashingDisableDuration: 259_200, // 3 days
344
- slasherFlavor: 'tally',
345
-
346
- slashAmountSmall: 2_000n * 10n ** 18n,
347
- slashAmountMedium: 2_000n * 10n ** 18n,
348
- slashAmountLarge: 2_000n * 10n ** 18n,
349
-
350
- /** The mana target for the rollup */
351
- manaTarget: 0n,
352
-
353
- /** The proving cost per mana */
354
- provingCostPerMana: 0n,
355
-
356
- exitDelaySeconds: 4 * 24 * 60 * 60, // 4 days
357
-
358
- activationThreshold: 200_000n * 10n ** 18n,
359
- ejectionThreshold: 100_000n * 10n ** 18n,
360
-
361
- governanceProposerRoundSize: 300,
362
- governanceProposerQuorum: 151,
363
-
364
- // Node slashing config
365
- slashInactivityTargetPercentage: 0.8,
366
- slashInactivityConsecutiveEpochThreshold: 2,
367
- slashInactivityPenalty: 2_000n * 10n ** 18n,
368
- slashPrunePenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for prune offenses right now
369
- slashDataWithholdingPenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for data withholding offenses right now
370
- slashProposeInvalidAttestationsPenalty: 2_000n * 10n ** 18n,
371
- slashAttestDescendantOfInvalidPenalty: 2_000n * 10n ** 18n,
372
- slashUnknownPenalty: 2_000n * 10n ** 18n,
373
- slashBroadcastedInvalidBlockPenalty: 2_000n * 10n ** 18n, // 10_000n * 10n ** 18n, Disabled for now until further testing
374
- slashGracePeriodL2Slots: 1_200, // One day from deployment
375
- slashOffenseExpirationRounds: 8,
376
-
377
- slashMinPenaltyPercentage: 0.5,
378
- slashMaxPenaltyPercentage: 2.0,
379
- slashMaxPayloadSize: 50,
380
- slashExecuteRoundsLookBack: 4,
381
-
382
- sentinelEnabled: true,
383
-
384
- ...DefaultNetworkDBMapSizeConfig,
385
- };
386
-
387
- export const mainnetL2ChainConfig: L2ChainConfig = {
388
- txPoolDeleteTxsAfterReorg: true,
389
- disableTransactions: true,
390
-
391
- l1ChainId: 1,
392
- testAccounts: false,
393
- sponsoredFPC: false,
394
- p2pEnabled: true,
395
- bootstrapNodes: [],
396
- minTxsPerBlock: 0,
397
- maxTxsPerBlock: 0,
398
- realProofs: true,
399
- snapshotsUrls: [`${SNAPSHOTS_URL}/mainnet/`],
400
- autoUpdate: 'notify',
401
- autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/mainnet.json',
402
- maxTxPoolSize: 0,
403
- publicMetricsOptOut: true,
404
- publicIncludeMetrics,
405
- publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
406
- publicMetricsCollectFrom: ['sequencer'],
407
- blobAllowEmptySources: true,
408
-
409
- /** How many seconds an L1 slot lasts. */
410
- ethereumSlotDuration: 12,
411
- /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
412
- aztecSlotDuration: 72,
413
- /** How many L2 slots an epoch lasts. */
414
- aztecEpochDuration: 32,
415
- /** The target validator committee size. */
416
- aztecTargetCommitteeSize: 24,
417
- /** The number of epochs to lag behind the current epoch for validator selection. */
418
- lagInEpochsForValidatorSet: 2,
419
- /** The number of epochs to lag behind the current epoch for randao selection. */
420
- lagInEpochsForRandao: 2,
421
- /** The number of epochs after an epoch ends that proofs are still accepted. */
422
- aztecProofSubmissionEpochs: 1,
423
-
424
- localEjectionThreshold: 196_000n * 10n ** 18n,
425
- /** How many sequencers must agree with a slash for it to be executed. */
426
- slashingQuorum: 65,
427
- slashingRoundSizeInEpochs: 4,
428
- slashingExecutionDelayInRounds: 28,
429
- slashingLifetimeInRounds: 34,
430
- slashingVetoer: EthAddress.fromString('0xBbB4aF368d02827945748b28CD4b2D42e4A37480'),
431
- slashingOffsetInRounds: 2,
432
-
433
- slashingDisableDuration: 259_200, // 3 days
434
- slasherFlavor: 'tally',
435
-
436
- slashAmountSmall: 2_000n * 10n ** 18n,
437
- slashAmountMedium: 2_000n * 10n ** 18n,
438
- slashAmountLarge: 2_000n * 10n ** 18n,
439
-
440
- /** The mana target for the rollup */
441
- manaTarget: 0n,
442
-
443
- /** The proving cost per mana */
444
- provingCostPerMana: 0n,
445
-
446
- exitDelaySeconds: 4 * 24 * 60 * 60, // 4 days
447
-
448
- activationThreshold: 200_000n * 10n ** 18n,
449
- ejectionThreshold: 100_000n * 10n ** 18n,
450
-
451
- governanceProposerRoundSize: 1000,
452
- governanceProposerQuorum: 600,
453
-
454
- // Node slashing config
455
- slashInactivityTargetPercentage: 0.8,
456
- slashInactivityConsecutiveEpochThreshold: 2,
457
- slashInactivityPenalty: 2_000n * 10n ** 18n,
458
- slashPrunePenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for prune offenses right now
459
- slashDataWithholdingPenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for data withholding offenses right now
460
- slashProposeInvalidAttestationsPenalty: 2_000n * 10n ** 18n,
461
- slashAttestDescendantOfInvalidPenalty: 2_000n * 10n ** 18n,
462
- slashUnknownPenalty: 2_000n * 10n ** 18n,
463
- slashBroadcastedInvalidBlockPenalty: 2_000n * 10n ** 18n, // 10_000n * 10n ** 18n, Disabled for now until further testing
464
- slashGracePeriodL2Slots: 1_200, // One day from deployment
465
- slashOffenseExpirationRounds: 8,
466
-
467
- slashMinPenaltyPercentage: 0.5,
468
- slashMaxPenaltyPercentage: 2.0,
469
- slashMaxPayloadSize: 50,
470
- slashExecuteRoundsLookBack: 4,
471
-
472
- sentinelEnabled: true,
473
-
474
- ...DefaultNetworkDBMapSizeConfig,
475
- };
476
-
477
- export const devnetL2ChainConfig: L2ChainConfig = {
478
- l1ChainId: 11155111,
479
- testAccounts: true,
480
- sponsoredFPC: true,
481
- p2pEnabled: true,
482
- disableTransactions: false,
483
- bootstrapNodes: [],
484
- minTxsPerBlock: 0,
485
- maxTxsPerBlock: 8,
486
- realProofs: false,
487
- snapshotsUrls: [],
488
- autoUpdate: 'config-and-version',
489
- autoUpdateUrl: '',
490
- publicMetricsOptOut: true,
491
- publicIncludeMetrics,
492
- publicMetricsCollectorUrl: '',
493
- publicMetricsCollectFrom: [''],
494
- maxTxPoolSize: 100_000_000, // 100MB
495
- txPoolDeleteTxsAfterReorg: true,
496
-
497
- // Deployment stuff
498
- /** How many seconds an L1 slot lasts. */
499
- ethereumSlotDuration: 12,
500
- /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
501
- aztecSlotDuration: 36,
502
- /** How many L2 slots an epoch lasts. */
503
- aztecEpochDuration: 8,
504
- /** The target validator committee size. */
505
- aztecTargetCommitteeSize: 1,
506
- /** The number of epochs to lag behind the current epoch for validator selection. */
507
- lagInEpochsForValidatorSet: 1,
508
- /** The number of epochs to lag behind the current epoch for randao selection. */
509
- lagInEpochsForRandao: 1,
510
- /** The local ejection threshold for a validator. Stricter than ejectionThreshold but local to a specific rollup */
511
- localEjectionThreshold: DefaultL1ContractsConfig.localEjectionThreshold,
512
- /** The number of epochs after an epoch ends that proofs are still accepted. */
513
- aztecProofSubmissionEpochs: 1,
514
- /** The deposit amount for a validator */
515
- activationThreshold: DefaultL1ContractsConfig.activationThreshold,
516
- /** The minimum stake for a validator. */
517
- ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
518
- /** The slashing round size */
519
- slashingRoundSizeInEpochs: DefaultL1ContractsConfig.slashingRoundSizeInEpochs,
520
- /** Governance proposing round size */
521
- governanceProposerRoundSize: DefaultL1ContractsConfig.governanceProposerRoundSize,
522
- /** The mana target for the rollup */
523
- manaTarget: DefaultL1ContractsConfig.manaTarget,
524
- /** The proving cost per mana */
525
- provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
526
- /** Exit delay for stakers */
527
- exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
528
-
529
- ...DefaultSlashConfig,
530
-
531
- ...DefaultNetworkDBMapSizeConfig,
532
- };
533
-
534
- export function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined {
535
- let config: L2ChainConfig | undefined;
536
- if (networkName === 'staging-public') {
537
- config = { ...stagingPublicL2ChainConfig };
538
- } else if (networkName === 'testnet') {
539
- config = { ...testnetL2ChainConfig };
540
- } else if (networkName === 'staging-ignition') {
541
- config = { ...stagingIgnitionL2ChainConfig };
542
- } else if (networkName === 'mainnet') {
543
- config = { ...mainnetL2ChainConfig };
544
- } else if (networkName === 'next-net') {
545
- config = { ...nextNetL2ChainConfig };
546
- } else if (networkName === 'devnet') {
547
- config = { ...devnetL2ChainConfig };
15
+ function enrichEnvironmentWithNetworkConfig(config: NetworkConfigEnv): void {
16
+ for (const [key, value] of Object.entries(config)) {
17
+ if (process.env[key] === undefined && value !== undefined) {
18
+ process.env[key] = String(value);
19
+ }
548
20
  }
549
- return config;
550
21
  }
551
22
 
552
23
  function getDefaultDataDir(networkName: NetworkNames): string {
553
24
  return path.join(process.env.HOME || '~', '.aztec', networkName, 'data');
554
25
  }
555
26
 
27
+ /**
28
+ * Sets up environment for the given network.
29
+ *
30
+ * For 'local' network: returns early, using hardcoded defaults from DefaultL1ContractsConfig
31
+ * and DefaultSlasherConfig (which match the 'defaults' section of defaults.yml).
32
+ *
33
+ * For deployed networks: applies network configuration from generated defaults.yml,
34
+ * merging base defaults with network-specific overrides.
35
+ *
36
+ * @param networkName - The network name
37
+ */
556
38
  export function enrichEnvironmentWithChainName(networkName: NetworkNames) {
39
+ // For 'local', we don't inject any env vars - use hardcoded TypeScript/Solidity defaults
40
+ // These defaults are defined in defaults.yml 'defaults' section and match:
41
+ // - DefaultL1ContractsConfig (yarn-project/ethereum/src/config.ts)
42
+ // - Solidity vm.envOr defaults (l1-contracts/script/deploy/RollupConfiguration.sol)
557
43
  if (networkName === 'local') {
558
44
  return;
559
45
  }
560
46
 
561
- enrichVar('DATA_DIRECTORY', getDefaultDataDir(networkName));
562
- const config = getL2ChainConfig(networkName);
563
-
564
- if (!config) {
565
- throw new Error(`Unknown network name: ${networkName}`);
47
+ // Apply generated network config from defaults.yml
48
+ const generatedConfig = NetworkConfigs[networkName];
49
+ if (generatedConfig) {
50
+ enrichEnvironmentWithNetworkConfig(generatedConfig);
566
51
  }
567
52
 
568
- enrichEnvironmentWithChainConfig(config);
569
- }
570
-
571
- export function enrichEnvironmentWithChainConfig(config: L2ChainConfig) {
572
- enrichVar('BOOTSTRAP_NODES', config.bootstrapNodes.join(','));
573
- enrichVar('TEST_ACCOUNTS', config.testAccounts.toString());
574
- enrichVar('SPONSORED_FPC', config.sponsoredFPC.toString());
575
- enrichVar('P2P_ENABLED', config.p2pEnabled.toString());
576
- enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
577
- enrichVar('SEQ_MIN_TX_PER_BLOCK', config.minTxsPerBlock.toString());
578
- enrichVar('SEQ_MAX_TX_PER_BLOCK', config.maxTxsPerBlock.toString());
579
- enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
580
- enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
581
- enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
582
- enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
583
- enrichVar('P2P_TX_POOL_DELETE_TXS_AFTER_REORG', config.txPoolDeleteTxsAfterReorg.toString());
584
-
585
- enrichVar('DATA_STORE_MAP_SIZE_KB', config.dataStoreMapSizeKb.toString());
586
- enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
587
- enrichVar('NOTE_HASH_TREE_MAP_SIZE_KB', config.noteHashTreeMapSizeKb.toString());
588
- enrichVar('NULLIFIER_TREE_MAP_SIZE_KB', config.nullifierTreeMapSizeKb.toString());
589
- enrichVar('PUBLIC_DATA_TREE_MAP_SIZE_KB', config.publicDataTreeMapSizeKb.toString());
590
-
591
- if (config.skipArchiverInitialSync !== undefined) {
592
- enrichVar('SKIP_ARCHIVER_INITIAL_SYNC', config.skipArchiverInitialSync.toString());
593
- }
594
-
595
- if (config.blobAllowEmptySources !== undefined) {
596
- enrichVar('BLOB_ALLOW_EMPTY_SOURCES', config.blobAllowEmptySources.toString());
597
- }
598
-
599
- if (config.autoUpdate) {
600
- enrichVar('AUTO_UPDATE', config.autoUpdate?.toString());
601
- }
602
-
603
- if (config.autoUpdateUrl) {
604
- enrichVar('AUTO_UPDATE_URL', config.autoUpdateUrl);
53
+ // Set DATA_DIRECTORY if not already set
54
+ if (process.env['DATA_DIRECTORY'] === undefined) {
55
+ process.env['DATA_DIRECTORY'] = getDefaultDataDir(networkName);
605
56
  }
606
-
607
- if (config.publicIncludeMetrics) {
608
- enrichVar('PUBLIC_OTEL_INCLUDE_METRICS', config.publicIncludeMetrics.join(','));
609
- }
610
-
611
- if (config.publicMetricsCollectorUrl) {
612
- enrichVar('PUBLIC_OTEL_EXPORTER_OTLP_METRICS_ENDPOINT', config.publicMetricsCollectorUrl);
613
- }
614
-
615
- if (config.publicMetricsCollectFrom) {
616
- enrichVar('PUBLIC_OTEL_COLLECT_FROM', config.publicMetricsCollectFrom.join(','));
617
- }
618
-
619
- enrichVar('PUBLIC_OTEL_OPT_OUT', config.publicMetricsOptOut.toString());
620
-
621
- // Deployment stuff
622
- enrichVar('ETHEREUM_SLOT_DURATION', config.ethereumSlotDuration.toString());
623
- enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
624
- enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
625
- enrichVar('AZTEC_TARGET_COMMITTEE_SIZE', config.aztecTargetCommitteeSize.toString());
626
- enrichVar('AZTEC_LAG_IN_EPOCHS_FOR_VALIDATOR_SET', config.lagInEpochsForValidatorSet.toString());
627
- enrichVar('AZTEC_LAG_IN_EPOCHS_FOR_RANDAO', config.lagInEpochsForRandao.toString());
628
- enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
629
- enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
630
- enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
631
- enrichVar('AZTEC_LOCAL_EJECTION_THRESHOLD', config.localEjectionThreshold.toString());
632
- enrichVar('AZTEC_SLASHING_QUORUM', config.slashingQuorum?.toString());
633
- enrichVar('AZTEC_SLASHING_ROUND_SIZE_IN_EPOCHS', config.slashingRoundSizeInEpochs.toString());
634
- enrichVar('AZTEC_GOVERNANCE_PROPOSER_QUORUM', config.governanceProposerQuorum?.toString());
635
- enrichVar('AZTEC_GOVERNANCE_PROPOSER_ROUND_SIZE', config.governanceProposerRoundSize.toString());
636
- enrichVar('AZTEC_MANA_TARGET', config.manaTarget.toString());
637
- enrichVar('AZTEC_PROVING_COST_PER_MANA', config.provingCostPerMana.toString());
638
- enrichVar('AZTEC_SLASH_AMOUNT_SMALL', config.slashAmountSmall.toString());
639
- enrichVar('AZTEC_SLASH_AMOUNT_MEDIUM', config.slashAmountMedium.toString());
640
- enrichVar('AZTEC_SLASH_AMOUNT_LARGE', config.slashAmountLarge.toString());
641
- enrichVar('AZTEC_SLASHING_LIFETIME_IN_ROUNDS', config.slashingLifetimeInRounds.toString());
642
- enrichVar('AZTEC_SLASHING_EXECUTION_DELAY_IN_ROUNDS', config.slashingExecutionDelayInRounds.toString());
643
- enrichVar('AZTEC_SLASHING_OFFSET_IN_ROUNDS', config.slashingOffsetInRounds.toString());
644
- enrichVar('AZTEC_SLASHER_FLAVOR', config.slasherFlavor);
645
- enrichVar('AZTEC_SLASHING_DISABLE_DURATION', config.slashingDisableDuration.toString());
646
- enrichVar('AZTEC_EXIT_DELAY_SECONDS', config.exitDelaySeconds.toString());
647
- enrichEthAddressVar('AZTEC_SLASHING_VETOER', config.slashingVetoer.toString());
648
-
649
- // Slashing
650
- enrichVar('SLASH_MIN_PENALTY_PERCENTAGE', config.slashMinPenaltyPercentage.toString());
651
- enrichVar('SLASH_MAX_PENALTY_PERCENTAGE', config.slashMaxPenaltyPercentage.toString());
652
- enrichVar('SLASH_PRUNE_PENALTY', config.slashPrunePenalty.toString());
653
- enrichVar('SLASH_DATA_WITHHOLDING_PENALTY', config.slashDataWithholdingPenalty.toString());
654
- enrichVar('SLASH_INACTIVITY_TARGET_PERCENTAGE', config.slashInactivityTargetPercentage.toString());
655
- enrichVar('SLASH_INACTIVITY_CONSECUTIVE_EPOCH_THRESHOLD', config.slashInactivityConsecutiveEpochThreshold.toString());
656
- enrichVar('SLASH_INACTIVITY_PENALTY', config.slashInactivityPenalty.toString());
657
- enrichVar('SLASH_PROPOSE_INVALID_ATTESTATIONS_PENALTY', config.slashProposeInvalidAttestationsPenalty.toString());
658
- enrichVar('SLASH_ATTEST_DESCENDANT_OF_INVALID_PENALTY', config.slashAttestDescendantOfInvalidPenalty.toString());
659
- enrichVar('SLASH_UNKNOWN_PENALTY', config.slashUnknownPenalty.toString());
660
- enrichVar('SLASH_INVALID_BLOCK_PENALTY', config.slashBroadcastedInvalidBlockPenalty.toString());
661
- enrichVar('SLASH_OFFENSE_EXPIRATION_ROUNDS', config.slashOffenseExpirationRounds.toString());
662
- enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
663
- enrichVar('SLASH_GRACE_PERIOD_L2_SLOTS', config.slashGracePeriodL2Slots.toString());
664
- enrichVar('SLASH_EXECUTE_ROUNDS_LOOK_BACK', config.slashExecuteRoundsLookBack.toString());
665
-
666
- enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
667
- enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
668
57
  }