-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(protocol): add
DevnetTaikoL1
(#17900)
Co-authored-by: davidtaikocha <davidtaikocha@users.noreply.github.com> Co-authored-by: Daniel Wang <dan@taiko.xyz> Co-authored-by: dantaik <dantaik@users.noreply.github.com>
- Loading branch information
1 parent
579a8f3
commit d864cea
Showing
26 changed files
with
198 additions
and
51 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
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
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,27 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.24; | ||
|
||
import "../L1/TaikoL1.sol"; | ||
|
||
/// @title DevnetTaikoL1 | ||
/// @dev Labeled in AddressResolver as "taiko" | ||
/// @custom:security-contact security@taiko.xyz | ||
contract DevnetTaikoL1 is TaikoL1 { | ||
/// @inheritdoc ITaikoL1 | ||
function getConfig() public pure override returns (TaikoData.Config memory) { | ||
return TaikoData.Config({ | ||
chainId: 167_001, | ||
blockMaxProposals: 324_000, | ||
blockRingBufferSize: 360_000, | ||
maxBlocksToVerify: 16, | ||
blockMaxGasLimit: 240_000_000, | ||
livenessBond: 125e18, // 125 Taiko token | ||
stateRootSyncInternal: 16, | ||
maxAnchorHeightOffset: 64, | ||
basefeeAdjustmentQuotient: 8, | ||
basefeeSharingPctg: 75, | ||
gasIssuancePerSecond: 5_000_000, | ||
ontakeForkHeight: 2 | ||
}); | ||
} | ||
} |
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,12 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.24; | ||
|
||
import "../L2/TaikoL2.sol"; | ||
|
||
/// @title DevnetTaikoL2 | ||
/// @custom:security-contact security@taiko.xyz | ||
contract DevnetTaikoL2 is TaikoL2 { | ||
function ontakeForkHeight() public pure override returns (uint64) { | ||
return 2; | ||
} | ||
} |
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
Oops, something went wrong.