@@ -198,6 +198,11 @@ function writeConfigs(argv: any) {
198198 "info-files" : [ chainInfoFile ] ,
199199 } ,
200200 "node" : {
201+ "bold" : {
202+ "rpc-block-number" : "latest" ,
203+ "strategy" : "makeNodes" ,
204+ "assertion-posting-interval" : "10s"
205+ } ,
201206 "staker" : {
202207 "dangerous" : {
203208 "without-block-validator" : false
@@ -292,7 +297,7 @@ function writeConfigs(argv: any) {
292297 if ( argv . simple ) {
293298 let simpleConfig = JSON . parse ( baseConfJSON )
294299 simpleConfig . node . staker . enable = true
295- simpleConfig . node . staker [ "use-smart-contract-wallet" ] = true
300+ simpleConfig . node . staker [ "use-smart-contract-wallet" ] = false // TODO: set to true when fixed
296301 simpleConfig . node . staker . dangerous [ "without-block-validator" ] = true
297302 simpleConfig . node . sequencer = true
298303 simpleConfig . node . dangerous [ "no-sequencer-coordinator" ] = true
@@ -307,7 +312,7 @@ function writeConfigs(argv: any) {
307312 } else {
308313 let validatorConfig = JSON . parse ( baseConfJSON )
309314 validatorConfig . node . staker . enable = true
310- validatorConfig . node . staker [ "use-smart-contract-wallet" ] = true
315+ validatorConfig . node . staker [ "use-smart-contract-wallet" ] = false // TODO: set to true when fixed
311316 let validconfJSON = JSON . stringify ( validatorConfig )
312317 fs . writeFileSync ( path . join ( consts . configpath , "validator_config.json" ) , validconfJSON )
313318
@@ -321,11 +326,11 @@ function writeConfigs(argv: any) {
321326 sequencerConfig . execution [ "sequencer" ] . enable = true
322327 sequencerConfig . node [ "delayed-sequencer" ] . enable = true
323328 if ( argv . timeboost ) {
324- sequencerConfig . execution . sequencer . dangerous = { } ;
325- sequencerConfig . execution . sequencer . dangerous . timeboost = {
326- "enable" : false , // Create it false initially, turn it on with sed in test-node.bash after contract setup.
327- "redis-url" : argv . redisUrl
328- } ;
329+ sequencerConfig . execution . sequencer . dangerous = { } ;
330+ sequencerConfig . execution . sequencer . dangerous . timeboost = {
331+ "enable" : false , // Create it false initially, turn it on with sed in test-node.bash after contract setup.
332+ "redis-url" : argv . redisUrl
333+ } ;
329334 }
330335 fs . writeFileSync ( path . join ( consts . configpath , "sequencer_config.json" ) , JSON . stringify ( sequencerConfig ) )
331336
@@ -340,13 +345,14 @@ function writeConfigs(argv: any) {
340345
341346 let l3Config = JSON . parse ( baseConfJSON )
342347 l3Config [ "parent-chain" ] . connection . url = argv . l2url
343- l3Config . node . staker [ "parent-chain-wallet" ] . account = namedAddress ( "l3owner" )
348+ // use the same account for l2 and l3 staker
349+ // l3Config.node.staker["parent-chain-wallet"].account = namedAddress("l3owner")
344350 l3Config . node [ "batch-poster" ] [ "parent-chain-wallet" ] . account = namedAddress ( "l3sequencer" )
345351 l3Config . chain . id = 333333
346352 const l3ChainInfoFile = path . join ( consts . configpath , "l3_chain_info.json" )
347353 l3Config . chain [ "info-files" ] = [ l3ChainInfoFile ]
348354 l3Config . node . staker . enable = true
349- l3Config . node . staker [ "use-smart-contract-wallet" ] = true
355+ l3Config . node . staker [ "use-smart-contract-wallet" ] = false // TODO: set to true when fixed
350356 l3Config . node . sequencer = true
351357 l3Config . execution [ "sequencer" ] . enable = true
352358 l3Config . node [ "dangerous" ] [ "no-sequencer-coordinator" ] = true
@@ -403,7 +409,7 @@ function writeL2ChainConfig(argv: any) {
403409 "EnableArbOS" : true ,
404410 "AllowDebugPrecompiles" : true ,
405411 "DataAvailabilityCommittee" : argv . anytrust ,
406- "InitialArbOSVersion" : 32 , // TODO For Timeboost, this still needs to be set to 31
412+ "InitialArbOSVersion" : 40 ,
407413 "InitialChainOwner" : argv . l2owner ,
408414 "GenesisBlockNum" : 0
409415 }
@@ -436,7 +442,7 @@ function writeL3ChainConfig(argv: any) {
436442 "EnableArbOS" : true ,
437443 "AllowDebugPrecompiles" : true ,
438444 "DataAvailabilityCommittee" : false ,
439- "InitialArbOSVersion" : 31 ,
445+ "InitialArbOSVersion" : 40 ,
440446 "InitialChainOwner" : argv . l2owner ,
441447 "GenesisBlockNum" : 0
442448 }
@@ -533,56 +539,56 @@ function dasBackendsJsonConfig(argv: any) {
533539}
534540
535541export const writeTimeboostConfigsCommand = {
536- command : "write-timeboost-configs" ,
537- describe : "writes configs for the timeboost autonomous auctioneer and bid validator" ,
538- builder : {
539- "auction-contract" : {
540- string : true ,
541- describe : "auction contract address" ,
542- demandOption : true
542+ command : "write-timeboost-configs" ,
543+ describe : "writes configs for the timeboost autonomous auctioneer and bid validator" ,
544+ builder : {
545+ "auction-contract" : {
546+ string : true ,
547+ describe : "auction contract address" ,
548+ demandOption : true
549+ } ,
543550 } ,
544- } ,
545- handler : ( argv : any ) => {
546- writeAutonomousAuctioneerConfig ( argv )
547- writeBidValidatorConfig ( argv )
548- }
551+ handler : ( argv : any ) => {
552+ writeAutonomousAuctioneerConfig ( argv )
553+ writeBidValidatorConfig ( argv )
554+ }
549555}
550556
551557function writeAutonomousAuctioneerConfig ( argv : any ) {
552- const autonomousAuctioneerConfig = {
553- "auctioneer-server" : {
554- "auction-contract-address" : argv . auctionContract ,
555- "db-directory" : "/data" ,
556- "redis-url" : "redis://redis:6379" ,
557- "use-redis-coordinator" : true ,
558- "redis-coordinator-url" : "redis://redis:6379" ,
559- "wallet" : {
560- "account" : namedAddress ( "auctioneer" ) ,
561- "password" : consts . l1passphrase ,
562- "pathname" : consts . l1keystore
563- } ,
564- } ,
565- "bid-validator" : {
566- "enable" : false
558+ const autonomousAuctioneerConfig = {
559+ "auctioneer-server" : {
560+ "auction-contract-address" : argv . auctionContract ,
561+ "db-directory" : "/data" ,
562+ "redis-url" : "redis://redis:6379" ,
563+ "use-redis-coordinator" : true ,
564+ "redis-coordinator-url" : "redis://redis:6379" ,
565+ "wallet" : {
566+ "account" : namedAddress ( "auctioneer" ) ,
567+ "password" : consts . l1passphrase ,
568+ "pathname" : consts . l1keystore
569+ } ,
570+ } ,
571+ "bid-validator" : {
572+ "enable" : false
573+ }
567574 }
568- }
569- const autonomousAuctioneerConfigJSON = JSON . stringify ( autonomousAuctioneerConfig )
570- fs . writeFileSync ( path . join ( consts . configpath , "autonomous_auctioneer_config.json" ) , autonomousAuctioneerConfigJSON )
575+ const autonomousAuctioneerConfigJSON = JSON . stringify ( autonomousAuctioneerConfig )
576+ fs . writeFileSync ( path . join ( consts . configpath , "autonomous_auctioneer_config.json" ) , autonomousAuctioneerConfigJSON )
571577}
572578
573579function writeBidValidatorConfig ( argv : any ) {
574- const bidValidatorConfig = {
575- "auctioneer-server" : {
576- "enable" : false
577- } ,
578- "bid-validator" : {
579- "auction-contract-address" : argv . auctionContract ,
580- "redis-url" : "redis://redis:6379" ,
581- "sequencer-endpoint" : "http://sequencer:8547"
580+ const bidValidatorConfig = {
581+ "auctioneer-server" : {
582+ "enable" : false
583+ } ,
584+ "bid-validator" : {
585+ "auction-contract-address" : argv . auctionContract ,
586+ "redis-url" : "redis://redis:6379" ,
587+ "sequencer-endpoint" : "http://sequencer:8547"
588+ }
582589 }
583- }
584- const bidValidatorConfigJSON = JSON . stringify ( bidValidatorConfig )
585- fs . writeFileSync ( path . join ( consts . configpath , "bid_validator_config.json" ) , bidValidatorConfigJSON )
590+ const bidValidatorConfigJSON = JSON . stringify ( bidValidatorConfig )
591+ fs . writeFileSync ( path . join ( consts . configpath , "bid_validator_config.json" ) , bidValidatorConfigJSON )
586592}
587593
588594export const writeConfigCommand = {
0 commit comments