-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move gnosis + eigenlayer into external/integrations (#374)
GitOrigin-RevId: 2f2f29b623be47ef4ada6958426e015bd8dfb6ad
- Loading branch information
Showing
22 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,20 @@ | ||
pragma solidity 0.8.16; | ||
|
||
import {LightClient} from "src/lightclient/LightClient.sol"; | ||
import {Ownable} from "openzeppelin-contracts/access/Ownable.sol"; | ||
|
||
/// @title DrillLightClient | ||
/// @dev This contract is used solely for testing purposes and should not be used by production contracts. | ||
contract DrillLightClient is LightClient, Ownable { | ||
constructor(address emitter) LightClient(0, 0, 0, 0, 0, 0, 0, 0) Ownable() { | ||
transferOwnership(emitter); | ||
} | ||
|
||
function emitFakeHeadUpdateEvent(uint256 _slot, bytes32 _root) external onlyOwner { | ||
emit HeadUpdate(_slot, _root); | ||
} | ||
|
||
function emitFakeSyncCommitteeUpdateEvent(uint256 _period, bytes32 _root) external onlyOwner { | ||
emit SyncCommitteeUpdate(_period, _root); | ||
} | ||
} |
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,33 @@ | ||
pragma solidity 0.8.16; | ||
|
||
import {TargetAMB} from "src/amb/TargetAMB.sol"; | ||
import {TelepathyStorage} from "src/amb/TelepathyStorage.sol"; | ||
import {TelepathyAccess} from "src/amb/TelepathyAccess.sol"; | ||
import {Ownable} from "openzeppelin-contracts/access/Ownable.sol"; | ||
|
||
/// @title DrillTelepathy | ||
/// @dev This contract is used solely for testing purposes and should not be used by production contracts. | ||
contract DrillTelepathyRouter is TelepathyStorage, TargetAMB { | ||
address guardian; | ||
address emitter; | ||
|
||
constructor(address _guardian, address _emitter) { | ||
guardian = _guardian; | ||
emitter = _emitter; | ||
} | ||
|
||
function freezeAll() external view { | ||
require(msg.sender == guardian); | ||
} | ||
|
||
function emitFakeExecutedMessageEvent( | ||
uint16 _chainId, | ||
uint64 _nonce, | ||
bytes32 _msgHash, | ||
bytes memory _message, | ||
bool _status | ||
) external { | ||
require(msg.sender == emitter); | ||
emit ExecutedMessage(_chainId, _nonce, _msgHash, _message, _status); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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