generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from metacraft-labs/dendreth_update
Dendreth adapter to update the oracle in the same transaction
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
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
16 changes: 16 additions & 0 deletions
16
packages/evm/contracts/adapters/DendrETH/interfaces/IDendrETH.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 |
---|---|---|
@@ -1,10 +1,26 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
pragma solidity 0.8.17; | ||
|
||
struct LightClientUpdate { | ||
bytes32 attestedHeaderRoot; | ||
uint256 attestedHeaderSlot; | ||
bytes32 finalizedHeaderRoot; | ||
bytes32 finalizedExecutionStateRoot; | ||
uint256[2] a; | ||
uint256[2][2] b; | ||
uint256[2] c; | ||
} | ||
|
||
interface ILightClient { | ||
function currentIndex() external view returns (uint256); | ||
|
||
function optimisticHeaders(uint256 index) external view returns (bytes32); | ||
|
||
function optimisticHeaderRoot() external view returns (bytes32); | ||
|
||
function optimisticSlots(uint256 index) external view returns (uint256); | ||
|
||
function optimisticHeaderSlot() external view returns (uint256); | ||
|
||
function light_client_update(LightClientUpdate calldata update) external; | ||
} |