-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cross-origin-check
- Loading branch information
Showing
5 changed files
with
263 additions
and
40 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,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import "../interfaces/ITimestampAsserter.sol"; | ||
|
||
library TimestampAsserterLocator { | ||
function locate() internal view returns (ITimestampAsserter) { | ||
if (block.chainid == 260) { | ||
return ITimestampAsserter(address(0x00000000000000000000000000000000808012)); | ||
} | ||
if (block.chainid == 300) { | ||
revert("Timestamp asserter is not deployed on ZKsync Sepolia testnet yet"); | ||
} | ||
if (block.chainid == 324) { | ||
revert("Timestamp asserter is not deployed on ZKsync mainnet yet"); | ||
} | ||
revert("Timestamp asserter is not deployed on this network"); | ||
} | ||
} |
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,6 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
interface ITimestampAsserter { | ||
function assertTimestampInRange(uint256 start, uint256 end) external view; | ||
} |
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.