-
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(taiko-client): changes based on the protocol forced inclusion fe…
…ature (#18909) Co-authored-by: Daniel Wang <[email protected]> Co-authored-by: Daniel Wang <[email protected]> Co-authored-by: dantaik <[email protected]> Co-authored-by: xiaodino <[email protected]> Co-authored-by: xiaodino <[email protected]> Co-authored-by: davidtaikocha <[email protected]> Co-authored-by: Anshu Jalan <[email protected]> Co-authored-by: AnshuJalan <[email protected]> Co-authored-by: smtmfft <[email protected]> Co-authored-by: smtmfft <[email protected]> Co-authored-by: maskpp <[email protected]> Co-authored-by: jeff <[email protected]> Co-authored-by: Gavin Yu <[email protected]> Co-authored-by: YoGhurt111 <[email protected]> Co-authored-by: Jeffery Walsh <[email protected]> Co-authored-by: Daniel Wang <[email protected]>
- Loading branch information
1 parent
a9d9e43
commit d351788
Showing
46 changed files
with
5,497 additions
and
407 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
45 changes: 45 additions & 0 deletions
45
packages/protocol/contracts/layer1/preconf/PreconfInbox.sol
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,45 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import "../based/TaikoInbox.sol"; | ||
|
||
/// @title PreconfInbox | ||
/// @dev Labeled in address resolver as "taiko" | ||
/// @custom:security-contact [email protected] | ||
contract PreconfInbox is TaikoInbox { | ||
constructor( | ||
address _wrapper, | ||
address _verifier, | ||
address _bondToken, | ||
address _signalService | ||
) | ||
TaikoInbox(_wrapper, _verifier, _bondToken, _signalService) | ||
{ } | ||
|
||
/// @inheritdoc ITaikoInbox | ||
function pacayaConfig() public pure override returns (ITaikoInbox.Config memory) { | ||
return ITaikoInbox.Config({ | ||
chainId: 167_010, | ||
maxUnverifiedBatches: 324_000, | ||
batchRingBufferSize: 360_000, | ||
maxBatchesToVerify: 16, | ||
blockMaxGasLimit: 240_000_000, | ||
livenessBondBase: 125e18, // 125 Taiko token per batch | ||
livenessBondPerBlock: 5e18, // 5 Taiko token per block | ||
stateRootSyncInternal: 16, | ||
maxAnchorHeightOffset: 64, | ||
baseFeeConfig: LibSharedData.BaseFeeConfig({ | ||
adjustmentQuotient: 8, | ||
sharingPctg: 75, | ||
gasIssuancePerSecond: 5_000_000, | ||
minGasExcess: 1_340_000_000, | ||
maxGasIssuancePerBlock: 600_000_000 | ||
}), | ||
provingWindow: 2 hours, | ||
cooldownWindow: 0 hours, | ||
maxSignalsToReceive: 16, | ||
maxBlocksPerBatch: 768, | ||
forkHeights: ITaikoInbox.ForkHeights({ ontake: 0, pacaya: 0, shasta: 0, unzen: 0 }) | ||
}); | ||
} | ||
} |
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.