forked from OffchainLabs/nitro-contracts
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '51cd559' into stylus-master-152b9ff
- Loading branch information
Showing
33 changed files
with
396 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"contributors": "https://api.github.com/repos/OffchainLabs/clabot-config/contents/nitro-contributors.json", | ||
"message": "We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please sign the linked documents below to get yourself added. https://na3.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=b15c81cc-b5ea-42a6-9107-3992526f2898&env=na3&acct=6e152afc-6284-44af-a4c1-d8ef291db402&v=2", | ||
"label": "s" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2021-2022, Offchain Labs, Inc. | ||
// For license information, see https://github.com/nitro/blob/master/LICENSE | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import "../precompiles/ArbSys.sol"; | ||
|
||
library ArbitrumChecker { | ||
function runningOnArbitrum() internal view returns (bool) { | ||
(bool ok, bytes memory data) = address(100).staticcall( | ||
abi.encodeWithSelector(ArbSys.arbOSVersion.selector) | ||
); | ||
return ok && data.length == 32; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2021-2022, Offchain Labs, Inc. | ||
// For license information, see https://github.com/nitro/blob/master/LICENSE | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import "../state/GlobalState.sol"; | ||
import "../state/Machine.sol"; | ||
import "../bridge/ISequencerInbox.sol"; | ||
import "../bridge/IBridge.sol"; | ||
import "../bridge/IOutbox.sol"; | ||
import "../bridge/IInbox.sol"; | ||
import "./IRollupEventInbox.sol"; | ||
import "./IRollupLogic.sol"; | ||
import "../challenge/IChallengeManager.sol"; | ||
|
||
struct Config { | ||
uint64 confirmPeriodBlocks; | ||
uint64 extraChallengeTimeBlocks; | ||
address stakeToken; | ||
uint256 baseStake; | ||
bytes32 wasmModuleRoot; | ||
address owner; | ||
address loserStakeEscrow; | ||
uint256 chainId; | ||
string chainConfig; | ||
uint64 genesisBlockNum; | ||
ISequencerInbox.MaxTimeVariation sequencerInboxMaxTimeVariation; | ||
} | ||
|
||
struct ContractDependencies { | ||
IBridge bridge; | ||
ISequencerInbox sequencerInbox; | ||
IInbox inbox; | ||
IOutbox outbox; | ||
IRollupEventInbox rollupEventInbox; | ||
IChallengeManager challengeManager; | ||
address rollupAdminLogic; | ||
IRollupUser rollupUserLogic; | ||
// misc contracts that are useful when interacting with the rollup | ||
address validatorUtils; | ||
address validatorWalletCreator; | ||
} |
Oops, something went wrong.