@aztec/ethereum 2.0.0-rc.13 → 2.0.0-rc.14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAOlB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,KAAK,eAAe,EAA2B,MAAM,kBAAkB,CAAC;AAEjF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,yFAAyF;IACzF,YAAY,EAAE,OAAO,CAAC;IACtB,yFAAyF;IACzF,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,yCAAyC;IACzC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uFAAuF;IACvF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wCAAwC;IACxC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,wBAAwB,EAAE,MAAM,CAAC;IACjC,+EAA+E;IAC/E,0BAA0B,EAAE,MAAM,CAAC;IACnC,yCAAyC;IACzC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yCAAyC;IACzC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wKAAwK;IACxK,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,yBAAyB,EAAE,MAAM,CAAC;IAClC,gGAAgG;IAChG,wBAAwB,EAAE,MAAM,CAAC;IACjC,yGAAyG;IACzG,8BAA8B,EAAE,MAAM,CAAC;IACvC,yEAAyE;IACzE,cAAc,EAAE,UAAU,CAAC;IAC3B,4IAA4I;IAC5I,sBAAsB,EAAE,MAAM,CAAC;IAC/B,+BAA+B;IAC/B,aAAa,EAAE,QAAQ,GAAG,OA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EAAE,MAAM,CAAC;IAClC,sCAAsC;IACtC,2BAA2B,EAAE,MAAM,CAAC;IACpC,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gDAAgD;IAChD,gBAAgB,EAAE,MAAM,CAAC;CAC1B,GAAG,eAAe,CAAC;AAEpB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;CAqBR,CAAC;AA2D9B,eAAO,MAAM,0BAA0B,GAAI,aAAa,YAAY;;;;;;;;;;;;CAanE,CAAC;AAsBF,eAAO,MAAM,mBAAmB,GAAI,aAAa,YAAY;;;CAa5D,CAAC;AAaF,eAAO,MAAM,eAAe,GAAI,aAAa,YAAY;;;;;CAUxD,CAAC;AAkCF,eAAO,MAAM,oBAAoB,GAAI,aAAa,YAAY;;;;;;CAa7D,CAAC;AAmCF,eAAO,MAAM,mBAAmB,GAAI,aAAa,YAAY;;;;;;CAa5D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,kBAAkB,CAAC,iBAAiB,CAkH3E,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,kBAAkB,CAAC,kBAAkB,CAW7E,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,iBAAiB,CAE/D;AAED,wBAAgB,4BAA4B,IAAI,kBAAkB,CAEjE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,eAAe,CAAC,GAAG,IAAI,CAmH3F"}
package/dest/config.js CHANGED
@@ -36,6 +36,19 @@ const LocalGovernanceConfiguration = {
36
36
  requiredYeaMargin: 4n * 10n ** 16n,
37
37
  minimumVotes: 400n * 10n ** 18n
38
38
  };
39
+ const StagingPublicGovernanceConfiguration = {
40
+ proposeConfig: {
41
+ lockDelay: 60n * 60n * 24n * 30n,
42
+ lockAmount: DefaultL1ContractsConfig.activationThreshold * 100n
43
+ },
44
+ votingDelay: 60n,
45
+ votingDuration: 60n * 60n,
46
+ executionDelay: 60n,
47
+ gracePeriod: 60n * 60n * 24n * 7n,
48
+ quorum: 3n * 10n ** 17n,
49
+ requiredYeaMargin: 4n * 10n ** 16n,
50
+ minimumVotes: DefaultL1ContractsConfig.ejectionThreshold * 200n
51
+ };
39
52
  const TestnetGovernanceConfiguration = {
40
53
  proposeConfig: {
41
54
  lockDelay: 60n * 60n * 24n,
@@ -49,46 +62,67 @@ const TestnetGovernanceConfiguration = {
49
62
  requiredYeaMargin: 4n * 10n ** 16n,
50
63
  minimumVotes: DefaultL1ContractsConfig.ejectionThreshold * 200n
51
64
  };
65
+ const StagingIgnitionGovernanceConfiguration = {
66
+ proposeConfig: {
67
+ lockDelay: 60n * 60n * 24n * 30n,
68
+ lockAmount: DefaultL1ContractsConfig.activationThreshold * 100n
69
+ },
70
+ votingDelay: 60n,
71
+ votingDuration: 60n * 60n,
72
+ executionDelay: 60n,
73
+ gracePeriod: 60n * 60n * 24n * 7n,
74
+ quorum: 3n * 10n ** 17n,
75
+ requiredYeaMargin: 4n * 10n ** 16n,
76
+ minimumVotes: DefaultL1ContractsConfig.ejectionThreshold * 200n
77
+ };
52
78
  export const getGovernanceConfiguration = (networkName)=>{
53
79
  switch(networkName){
54
- case 'alpha-testnet':
55
- case 'testnet':
56
- return TestnetGovernanceConfiguration;
57
80
  case 'local':
58
81
  return LocalGovernanceConfiguration;
82
+ case 'staging-public':
83
+ return StagingPublicGovernanceConfiguration;
84
+ case 'testnet':
85
+ return TestnetGovernanceConfiguration;
86
+ case 'staging-ignition':
87
+ return StagingIgnitionGovernanceConfiguration;
59
88
  default:
60
- throw new Error('Unrecognized network name: ' + networkName);
89
+ throw new Error(`Unrecognized network name: ${networkName}`);
61
90
  }
62
91
  };
63
- const TestnetGSEConfiguration = {
92
+ const LocalGSEConfiguration = {
64
93
  activationThreshold: BigInt(100e18),
65
94
  ejectionThreshold: BigInt(50e18)
66
95
  };
67
- const LocalGSEConfiguration = {
96
+ const StagingPublicGSEConfiguration = {
97
+ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
98
+ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold
99
+ };
100
+ const TestnetGSEConfiguration = {
68
101
  activationThreshold: BigInt(100e18),
69
102
  ejectionThreshold: BigInt(50e18)
70
103
  };
104
+ const StagingIgnitionGSEConfiguration = {
105
+ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
106
+ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold
107
+ };
71
108
  export const getGSEConfiguration = (networkName)=>{
72
109
  switch(networkName){
73
- case 'alpha-testnet':
74
- case 'testnet':
75
- return TestnetGSEConfiguration;
76
110
  case 'local':
77
111
  return LocalGSEConfiguration;
112
+ case 'staging-public':
113
+ return StagingPublicGSEConfiguration;
114
+ case 'testnet':
115
+ return TestnetGSEConfiguration;
116
+ case 'staging-ignition':
117
+ return StagingIgnitionGSEConfiguration;
78
118
  default:
79
- throw new Error('Unrecognized network name: ' + networkName);
119
+ throw new Error(`Unrecognized network name: ${networkName}`);
80
120
  }
81
121
  };
82
122
  // Making a default config here as we are only using it thought the deployment
83
123
  // and do not expect to be using different setups, so having environment variables
84
124
  // for it seems overkill
85
- const LocalRewardConfig = {
86
- sequencerBps: 5000,
87
- rewardDistributor: EthAddress.ZERO.toString(),
88
- booster: EthAddress.ZERO.toString(),
89
- blockReward: BigInt(50e18)
90
- };
91
- const TestnetRewardConfig = {
125
+ const DefaultRewardConfig = {
92
126
  sequencerBps: 5000,
93
127
  rewardDistributor: EthAddress.ZERO.toString(),
94
128
  booster: EthAddress.ZERO.toString(),
@@ -96,13 +130,13 @@ const TestnetRewardConfig = {
96
130
  };
97
131
  export const getRewardConfig = (networkName)=>{
98
132
  switch(networkName){
99
- case 'alpha-testnet':
100
- case 'testnet':
101
- return TestnetRewardConfig;
102
133
  case 'local':
103
- return LocalRewardConfig;
134
+ case 'staging-public':
135
+ case 'testnet':
136
+ case 'staging-ignition':
137
+ return DefaultRewardConfig;
104
138
  default:
105
- throw new Error('Unrecognized network name: ' + networkName);
139
+ throw new Error(`Unrecognized network name: ${networkName}`);
106
140
  }
107
141
  };
108
142
  const LocalRewardBoostConfig = {
@@ -112,6 +146,13 @@ const LocalRewardBoostConfig = {
112
146
  k: 1000000,
113
147
  minimum: 100000
114
148
  };
149
+ const StagingPublicRewardBoostConfig = {
150
+ increment: 200000,
151
+ maxScore: 5000000,
152
+ a: 5000,
153
+ k: 1000000,
154
+ minimum: 100000
155
+ };
115
156
  const TestnetRewardBoostConfig = {
116
157
  increment: 125000,
117
158
  maxScore: 15000000,
@@ -119,15 +160,25 @@ const TestnetRewardBoostConfig = {
119
160
  k: 1000000,
120
161
  minimum: 100000
121
162
  };
163
+ const StagingIgnitionRewardBoostConfig = {
164
+ increment: 200000,
165
+ maxScore: 5000000,
166
+ a: 5000,
167
+ k: 1000000,
168
+ minimum: 100000
169
+ };
122
170
  export const getRewardBoostConfig = (networkName)=>{
123
171
  switch(networkName){
124
- case 'alpha-testnet':
125
- case 'testnet':
126
- return TestnetRewardBoostConfig;
127
172
  case 'local':
128
173
  return LocalRewardBoostConfig;
174
+ case 'staging-public':
175
+ return StagingPublicRewardBoostConfig;
176
+ case 'testnet':
177
+ return TestnetRewardBoostConfig;
178
+ case 'staging-ignition':
179
+ return StagingIgnitionRewardBoostConfig;
129
180
  default:
130
- throw new Error('Unrecognized network name: ' + networkName);
181
+ throw new Error(`Unrecognized network name: ${networkName}`);
131
182
  }
132
183
  };
133
184
  // Similar to the above, no need for environment variables for this.
@@ -136,24 +187,41 @@ const LocalEntryQueueConfig = {
136
187
  bootstrapFlushSize: 0n,
137
188
  normalFlushSizeMin: 48n,
138
189
  normalFlushSizeQuotient: 2n,
139
- maxQueueFlushSize: 48n
190
+ maxQueueFlushSize: 32n
191
+ };
192
+ const StagingPublicEntryQueueConfig = {
193
+ bootstrapValidatorSetSize: 48n,
194
+ bootstrapFlushSize: 48n,
195
+ normalFlushSizeMin: 1n,
196
+ normalFlushSizeQuotient: 2475n,
197
+ maxQueueFlushSize: 32n
140
198
  };
141
199
  const TestnetEntryQueueConfig = {
142
200
  bootstrapValidatorSetSize: 750n,
143
- bootstrapFlushSize: 75n,
201
+ bootstrapFlushSize: 48n,
202
+ normalFlushSizeMin: 1n,
203
+ normalFlushSizeQuotient: 2475n,
204
+ maxQueueFlushSize: 32n
205
+ };
206
+ const StagingIgnitionEntryQueueConfig = {
207
+ bootstrapValidatorSetSize: 750n,
208
+ bootstrapFlushSize: 48n,
144
209
  normalFlushSizeMin: 1n,
145
210
  normalFlushSizeQuotient: 2475n,
146
211
  maxQueueFlushSize: 32n
147
212
  };
148
213
  export const getEntryQueueConfig = (networkName)=>{
149
214
  switch(networkName){
150
- case 'alpha-testnet':
151
- case 'testnet':
152
- return TestnetEntryQueueConfig;
153
215
  case 'local':
154
216
  return LocalEntryQueueConfig;
217
+ case 'staging-public':
218
+ return StagingPublicEntryQueueConfig;
219
+ case 'testnet':
220
+ return TestnetEntryQueueConfig;
221
+ case 'staging-ignition':
222
+ return StagingIgnitionEntryQueueConfig;
155
223
  default:
156
- throw new Error('Unrecognized network name: ' + networkName);
224
+ throw new Error(`Unrecognized network name: ${networkName}`);
157
225
  }
158
226
  };
159
227
  export const l1ContractsConfigMappings = {
@@ -22,7 +22,7 @@ import { ZK_PASSPORT_DOMAIN, ZK_PASSPORT_SCOPE, ZK_PASSPORT_VERIFIER_ADDRESS } f
22
22
  export const DEPLOYER_ADDRESS = '0x4e59b44847b379578588920cA78FbF26c0B4956C';
23
23
  const networkName = getActiveNetworkName();
24
24
  export const deploySharedContracts = async (l1Client, deployer, args, logger)=>{
25
- logger.info(`Deploying shared contracts for network configration: ${networkName}`);
25
+ logger.info(`Deploying shared contracts for network configuration: ${networkName}`);
26
26
  const txHashes = [];
27
27
  const feeAssetAddress = await deployer.deploy(FeeAssetArtifact, [
28
28
  'FeeJuice',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/ethereum",
3
- "version": "2.0.0-rc.13",
3
+ "version": "2.0.0-rc.14",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -31,10 +31,10 @@
31
31
  "../package.common.json"
32
32
  ],
33
33
  "dependencies": {
34
- "@aztec/blob-lib": "2.0.0-rc.13",
35
- "@aztec/constants": "2.0.0-rc.13",
36
- "@aztec/foundation": "2.0.0-rc.13",
37
- "@aztec/l1-artifacts": "2.0.0-rc.13",
34
+ "@aztec/blob-lib": "2.0.0-rc.14",
35
+ "@aztec/constants": "2.0.0-rc.14",
36
+ "@aztec/foundation": "2.0.0-rc.14",
37
+ "@aztec/l1-artifacts": "2.0.0-rc.14",
38
38
  "@viem/anvil": "^0.0.10",
39
39
  "dotenv": "^16.0.3",
40
40
  "lodash.chunk": "^4.2.0",
package/src/config.ts CHANGED
@@ -103,6 +103,20 @@ const LocalGovernanceConfiguration = {
103
103
  minimumVotes: 400n * 10n ** 18n,
104
104
  };
105
105
 
106
+ const StagingPublicGovernanceConfiguration = {
107
+ proposeConfig: {
108
+ lockDelay: 60n * 60n * 24n * 30n,
109
+ lockAmount: DefaultL1ContractsConfig.activationThreshold * 100n,
110
+ },
111
+ votingDelay: 60n,
112
+ votingDuration: 60n * 60n,
113
+ executionDelay: 60n,
114
+ gracePeriod: 60n * 60n * 24n * 7n,
115
+ quorum: 3n * 10n ** 17n, // 30%
116
+ requiredYeaMargin: 4n * 10n ** 16n, // 4%
117
+ minimumVotes: DefaultL1ContractsConfig.ejectionThreshold * 200n, // >= 200 validators must vote
118
+ };
119
+
106
120
  const TestnetGovernanceConfiguration = {
107
121
  proposeConfig: {
108
122
  lockDelay: 60n * 60n * 24n,
@@ -117,51 +131,76 @@ const TestnetGovernanceConfiguration = {
117
131
  minimumVotes: DefaultL1ContractsConfig.ejectionThreshold * 200n,
118
132
  };
119
133
 
134
+ const StagingIgnitionGovernanceConfiguration = {
135
+ proposeConfig: {
136
+ lockDelay: 60n * 60n * 24n * 30n, // 30 days
137
+ lockAmount: DefaultL1ContractsConfig.activationThreshold * 100n,
138
+ },
139
+
140
+ votingDelay: 60n,
141
+ votingDuration: 60n * 60n,
142
+ executionDelay: 60n,
143
+ gracePeriod: 60n * 60n * 24n * 7n,
144
+ quorum: 3n * 10n ** 17n, // 30%
145
+ requiredYeaMargin: 4n * 10n ** 16n, // 4%
146
+ minimumVotes: DefaultL1ContractsConfig.ejectionThreshold * 200n, // >= 200 validators must vote
147
+ };
148
+
120
149
  export const getGovernanceConfiguration = (networkName: NetworkNames) => {
121
150
  switch (networkName) {
122
- case 'alpha-testnet':
123
- case 'testnet':
124
- return TestnetGovernanceConfiguration;
125
151
  case 'local':
126
152
  return LocalGovernanceConfiguration;
153
+ case 'staging-public':
154
+ return StagingPublicGovernanceConfiguration;
155
+ case 'testnet':
156
+ return TestnetGovernanceConfiguration;
157
+ case 'staging-ignition':
158
+ return StagingIgnitionGovernanceConfiguration;
127
159
  default:
128
- throw new Error('Unrecognized network name: ' + networkName);
160
+ throw new Error(`Unrecognized network name: ${networkName}`);
129
161
  }
130
162
  };
131
163
 
132
- const TestnetGSEConfiguration = {
164
+ const LocalGSEConfiguration = {
133
165
  activationThreshold: BigInt(100e18),
134
166
  ejectionThreshold: BigInt(50e18),
135
167
  };
136
168
 
137
- const LocalGSEConfiguration = {
169
+ const StagingPublicGSEConfiguration = {
170
+ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
171
+ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
172
+ };
173
+
174
+ const TestnetGSEConfiguration = {
138
175
  activationThreshold: BigInt(100e18),
139
176
  ejectionThreshold: BigInt(50e18),
140
177
  };
141
178
 
179
+ const StagingIgnitionGSEConfiguration = {
180
+ activationThreshold: DefaultL1ContractsConfig.activationThreshold,
181
+ ejectionThreshold: DefaultL1ContractsConfig.ejectionThreshold,
182
+ };
183
+
142
184
  export const getGSEConfiguration = (networkName: NetworkNames) => {
143
185
  switch (networkName) {
144
- case 'alpha-testnet':
145
- case 'testnet':
146
- return TestnetGSEConfiguration;
147
186
  case 'local':
148
187
  return LocalGSEConfiguration;
188
+ case 'staging-public':
189
+ return StagingPublicGSEConfiguration;
190
+ case 'testnet':
191
+ return TestnetGSEConfiguration;
192
+ case 'staging-ignition':
193
+ return StagingIgnitionGSEConfiguration;
149
194
  default:
150
- throw new Error('Unrecognized network name: ' + networkName);
195
+ throw new Error(`Unrecognized network name: ${networkName}`);
151
196
  }
152
197
  };
153
198
 
154
199
  // Making a default config here as we are only using it thought the deployment
155
200
  // and do not expect to be using different setups, so having environment variables
156
201
  // for it seems overkill
157
- const LocalRewardConfig = {
158
- sequencerBps: 5000,
159
- rewardDistributor: EthAddress.ZERO.toString(),
160
- booster: EthAddress.ZERO.toString(),
161
- blockReward: BigInt(50e18),
162
- };
163
202
 
164
- const TestnetRewardConfig = {
203
+ const DefaultRewardConfig = {
165
204
  sequencerBps: 5000,
166
205
  rewardDistributor: EthAddress.ZERO.toString(),
167
206
  booster: EthAddress.ZERO.toString(),
@@ -170,13 +209,13 @@ const TestnetRewardConfig = {
170
209
 
171
210
  export const getRewardConfig = (networkName: NetworkNames) => {
172
211
  switch (networkName) {
173
- case 'alpha-testnet':
174
- case 'testnet':
175
- return TestnetRewardConfig;
176
212
  case 'local':
177
- return LocalRewardConfig;
213
+ case 'staging-public':
214
+ case 'testnet':
215
+ case 'staging-ignition':
216
+ return DefaultRewardConfig;
178
217
  default:
179
- throw new Error('Unrecognized network name: ' + networkName);
218
+ throw new Error(`Unrecognized network name: ${networkName}`);
180
219
  }
181
220
  };
182
221
 
@@ -188,6 +227,14 @@ const LocalRewardBoostConfig = {
188
227
  minimum: 100000,
189
228
  };
190
229
 
230
+ const StagingPublicRewardBoostConfig = {
231
+ increment: 200000,
232
+ maxScore: 5000000,
233
+ a: 5000,
234
+ k: 1000000,
235
+ minimum: 100000,
236
+ };
237
+
191
238
  const TestnetRewardBoostConfig = {
192
239
  increment: 125000,
193
240
  maxScore: 15000000,
@@ -196,15 +243,26 @@ const TestnetRewardBoostConfig = {
196
243
  minimum: 100000,
197
244
  };
198
245
 
246
+ const StagingIgnitionRewardBoostConfig = {
247
+ increment: 200000,
248
+ maxScore: 5000000,
249
+ a: 5000,
250
+ k: 1000000,
251
+ minimum: 100000,
252
+ };
253
+
199
254
  export const getRewardBoostConfig = (networkName: NetworkNames) => {
200
255
  switch (networkName) {
201
- case 'alpha-testnet':
202
- case 'testnet':
203
- return TestnetRewardBoostConfig;
204
256
  case 'local':
205
257
  return LocalRewardBoostConfig;
258
+ case 'staging-public':
259
+ return StagingPublicRewardBoostConfig;
260
+ case 'testnet':
261
+ return TestnetRewardBoostConfig;
262
+ case 'staging-ignition':
263
+ return StagingIgnitionRewardBoostConfig;
206
264
  default:
207
- throw new Error('Unrecognized network name: ' + networkName);
265
+ throw new Error(`Unrecognized network name: ${networkName}`);
208
266
  }
209
267
  };
210
268
 
@@ -214,12 +272,28 @@ const LocalEntryQueueConfig = {
214
272
  bootstrapFlushSize: 0n,
215
273
  normalFlushSizeMin: 48n, // will effectively be bounded by maxQueueFlushSize
216
274
  normalFlushSizeQuotient: 2n,
217
- maxQueueFlushSize: 48n,
275
+ maxQueueFlushSize: 32n,
276
+ };
277
+
278
+ const StagingPublicEntryQueueConfig = {
279
+ bootstrapValidatorSetSize: 48n,
280
+ bootstrapFlushSize: 48n, // will effectively be bounded by maxQueueFlushSize
281
+ normalFlushSizeMin: 1n,
282
+ normalFlushSizeQuotient: 2475n,
283
+ maxQueueFlushSize: 32n, // Limited to 32 so flush cost are kept below 15M gas.
218
284
  };
219
285
 
220
286
  const TestnetEntryQueueConfig = {
221
287
  bootstrapValidatorSetSize: 750n,
222
- bootstrapFlushSize: 75n, // will effectively be bounded by maxQueueFlushSize
288
+ bootstrapFlushSize: 48n, // will effectively be bounded by maxQueueFlushSize
289
+ normalFlushSizeMin: 1n,
290
+ normalFlushSizeQuotient: 2475n,
291
+ maxQueueFlushSize: 32n, // Limited to 32 so flush cost are kept below 15M gas.
292
+ };
293
+
294
+ const StagingIgnitionEntryQueueConfig = {
295
+ bootstrapValidatorSetSize: 750n,
296
+ bootstrapFlushSize: 48n, // will effectively be bounded by maxQueueFlushSize
223
297
  normalFlushSizeMin: 1n,
224
298
  normalFlushSizeQuotient: 2475n,
225
299
  maxQueueFlushSize: 32n, // Limited to 32 so flush cost are kept below 15M gas.
@@ -227,13 +301,16 @@ const TestnetEntryQueueConfig = {
227
301
 
228
302
  export const getEntryQueueConfig = (networkName: NetworkNames) => {
229
303
  switch (networkName) {
230
- case 'alpha-testnet':
231
- case 'testnet':
232
- return TestnetEntryQueueConfig;
233
304
  case 'local':
234
305
  return LocalEntryQueueConfig;
306
+ case 'staging-public':
307
+ return StagingPublicEntryQueueConfig;
308
+ case 'testnet':
309
+ return TestnetEntryQueueConfig;
310
+ case 'staging-ignition':
311
+ return StagingIgnitionEntryQueueConfig;
235
312
  default:
236
- throw new Error('Unrecognized network name: ' + networkName);
313
+ throw new Error(`Unrecognized network name: ${networkName}`);
237
314
  }
238
315
  };
239
316
 
@@ -183,7 +183,7 @@ export const deploySharedContracts = async (
183
183
  args: DeployL1ContractsArgs,
184
184
  logger: Logger,
185
185
  ) => {
186
- logger.info(`Deploying shared contracts for network configration: ${networkName}`);
186
+ logger.info(`Deploying shared contracts for network configuration: ${networkName}`);
187
187
 
188
188
  const txHashes: Hex[] = [];
189
189