|
| 1 | +// Copyright 2021-2022, Offchain Labs, Inc. |
| 2 | +// For license information, see https://github.com/nitro/blob/master/LICENSE |
| 3 | +// SPDX-License-Identifier: BUSL-1.1 |
| 4 | + |
| 5 | +pragma solidity ^0.8.0; |
| 6 | + |
| 7 | +import "../state/GlobalState.sol"; |
| 8 | +import "../state/Machine.sol"; |
| 9 | +import "../bridge/ISequencerInbox.sol"; |
| 10 | +import "../bridge/IBridge.sol"; |
| 11 | +import "../bridge/IOutbox.sol"; |
| 12 | +import "../bridge/IInbox.sol"; |
| 13 | +import "./IRollupEventInbox.sol"; |
| 14 | +import "./IRollupLogic.sol"; |
| 15 | +import "../challenge/IChallengeManager.sol"; |
| 16 | + |
| 17 | +struct Config { |
| 18 | + uint64 confirmPeriodBlocks; |
| 19 | + uint64 extraChallengeTimeBlocks; |
| 20 | + address stakeToken; |
| 21 | + uint256 baseStake; |
| 22 | + bytes32 wasmModuleRoot; |
| 23 | + address owner; |
| 24 | + address loserStakeEscrow; |
| 25 | + uint256 chainId; |
| 26 | + string chainConfig; |
| 27 | + uint64 genesisBlockNum; |
| 28 | + ISequencerInbox.MaxTimeVariation sequencerInboxMaxTimeVariation; |
| 29 | +} |
| 30 | + |
| 31 | +struct ContractDependencies { |
| 32 | + IBridge bridge; |
| 33 | + ISequencerInbox sequencerInbox; |
| 34 | + IInbox inbox; |
| 35 | + IOutbox outbox; |
| 36 | + IRollupEventInbox rollupEventInbox; |
| 37 | + IChallengeManager challengeManager; |
| 38 | + address rollupAdminLogic; |
| 39 | + IRollupUser rollupUserLogic; |
| 40 | + // misc contracts that are useful when interacting with the rollup |
| 41 | + address validatorUtils; |
| 42 | + address validatorWalletCreator; |
| 43 | +} |
0 commit comments