From 402164f856326259c7e7ef3f06c4cd520880fd0c Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Wed, 2 Aug 2023 09:56:12 -0600 Subject: [PATCH] Update contracts submodule pin to latest develop --- arbnode/node.go | 41 ++++++++--------------------------------- contracts | 2 +- go-ethereum | 2 +- 3 files changed, 10 insertions(+), 35 deletions(-) diff --git a/arbnode/node.go b/arbnode/node.go index bd5605346b6..1bcd8a3dbf8 100644 --- a/arbnode/node.go +++ b/arbnode/node.go @@ -230,7 +230,7 @@ func GenerateRollupConfig(prod bool, wasmModuleRoot common.Hash, rollupOwner com } } -func DeployOnL1(ctx context.Context, l1client arbutil.L1Interface, deployAuth *bind.TransactOpts, sequencer common.Address, authorizeValidators uint64, readerConfig headerreader.ConfigFetcher, config rollupgen.Config) (*chaininfo.RollupAddresses, error) { +func DeployOnL1(ctx context.Context, l1client arbutil.L1Interface, deployAuth *bind.TransactOpts, batchPoster common.Address, authorizeValidators uint64, readerConfig headerreader.ConfigFetcher, config rollupgen.Config) (*chaininfo.RollupAddresses, error) { l1Reader, err := headerreader.New(ctx, l1client, readerConfig) if err != nil { return nil, err @@ -247,9 +247,16 @@ func DeployOnL1(ctx context.Context, l1client arbutil.L1Interface, deployAuth *b return nil, fmt.Errorf("error deploying rollup creator: %w", err) } + var validatorAddrs []common.Address + for i := uint64(1); i <= authorizeValidators; i++ { + validatorAddrs = append(validatorAddrs, crypto.CreateAddress(validatorWalletCreator, i)) + } + tx, err := rollupCreator.CreateRollup( deployAuth, config, + batchPoster, + validatorAddrs, ) if err != nil { return nil, fmt.Errorf("error submitting create rollup tx: %w", err) @@ -263,38 +270,6 @@ func DeployOnL1(ctx context.Context, l1client arbutil.L1Interface, deployAuth *b return nil, fmt.Errorf("error parsing rollup created log: %w", err) } - sequencerInbox, err := bridgegen.NewSequencerInbox(info.SequencerInbox, l1client) - if err != nil { - return nil, fmt.Errorf("error getting sequencer inbox: %w", err) - } - - // if a zero sequencer address is specified, don't authorize any sequencers - if sequencer != (common.Address{}) { - tx, err = sequencerInbox.SetIsBatchPoster(deployAuth, sequencer, true) - err = andTxSucceeded(ctx, l1Reader, tx, err) - if err != nil { - return nil, fmt.Errorf("error setting is batch poster: %w", err) - } - } - - var allowValidators []bool - var validatorAddrs []common.Address - for i := uint64(1); i <= authorizeValidators; i++ { - validatorAddrs = append(validatorAddrs, crypto.CreateAddress(validatorWalletCreator, i)) - allowValidators = append(allowValidators, true) - } - if len(validatorAddrs) > 0 { - rollup, err := rollupgen.NewRollupAdminLogic(info.RollupAddress, l1client) - if err != nil { - return nil, fmt.Errorf("error getting rollup admin: %w", err) - } - tx, err = rollup.SetValidator(deployAuth, validatorAddrs, allowValidators) - err = andTxSucceeded(ctx, l1Reader, tx, err) - if err != nil { - return nil, fmt.Errorf("error setting validator: %w", err) - } - } - return &chaininfo.RollupAddresses{ Bridge: info.Bridge, Inbox: info.InboxAddress, diff --git a/contracts b/contracts index 1b10711dc5f..252e690df81 160000 --- a/contracts +++ b/contracts @@ -1 +1 @@ -Subproject commit 1b10711dc5f2eeefebc8c9f07d5c5f580534f703 +Subproject commit 252e690df81dc6555e036c9b1f76a374721bcfd6 diff --git a/go-ethereum b/go-ethereum index 3725b60e049..fd56bdbb937 160000 --- a/go-ethereum +++ b/go-ethereum @@ -1 +1 @@ -Subproject commit 3725b60e0494df145672ab67dd3ec18a85a2b5d1 +Subproject commit fd56bdbb9378097257ab3b8fe9dc6f5bbf1f4b3f