Skip to content

Commit

Permalink
Merge pull request #87 from NethermindEth/anshu/fixate-taiko-version
Browse files Browse the repository at this point in the history
Fixate Taiko version
  • Loading branch information
AnshuJalan authored Aug 25, 2024
2 parents f1b3872 + 9611824 commit 928886f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SmartContracts/src/avs/PreconfTaskManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ contract PreconfTaskManager is IPreconfTaskManager, Initializable {
address proposer = blockIdToProposer[blockId];

// Pull the formalised block from Taiko
ITaikoL1.BlockV2 memory taikoBlock = taikoL1.getBlockV2(uint64(blockId));
ITaikoL1.Block memory taikoBlock = taikoL1.getBlock(uint64(blockId));

if (block.timestamp - taikoBlock.proposedAt >= PreconfConstants.DISPUTE_PERIOD) {
// Revert if the dispute window has been missed
Expand Down
13 changes: 8 additions & 5 deletions SmartContracts/src/interfaces/taiko/ITaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ interface ITaikoL1 {
bool blobUsed;
bytes32 parentMetaHash;
address sender;
uint32 blobTxListOffset;
uint32 blobTxListLength;
}

struct EthDeposit {
Expand All @@ -42,16 +44,17 @@ interface ITaikoL1 {
uint64 lastUnpausedAt;
}

struct BlockV2 {
struct Block {
bytes32 metaHash;
address assignedProver;
uint96 livenessBond;
uint64 blockId;
uint64 proposedAt;
uint64 proposedIn;
uint24 nextTransitionId;
bool livenessBondReturned;
uint24 verifiedTransitionId;
uint32 nextTransitionId;
uint32 verifiedTransitionId;
uint64 timestamp;
uint32 l1StateBlockNumber;
}

function proposeBlock(bytes calldata _params, bytes calldata _txList)
Expand All @@ -61,5 +64,5 @@ interface ITaikoL1 {

function getStateVariables() external view returns (SlotA memory, SlotB memory);

function getBlockV2(uint64 _blockId) external view returns (BlockV2 memory blk_);
function getBlock(uint64 _blockId) external view returns (Block memory blk_);
}

0 comments on commit 928886f

Please sign in to comment.