-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eth2-to-Near-relay: improve init of Eth2 client contract (#817)
* Improve init eth2 client contract * separate LightClientSnapshotWithProof * get init block root if not provided * fix code to get the checkpoint Co-authored-by: Olga Kunyavskaya <[email protected]> Co-authored-by: Kirill <[email protected]>
- Loading branch information
1 parent
c55f79a
commit 5a5cd65
Showing
8 changed files
with
127 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
10 changes: 10 additions & 0 deletions
10
eth2near/eth2near-block-relay-rs/src/light_client_snapshot_with_proof.rs
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,10 @@ | ||
use eth_types::eth2::{BeaconBlockHeader, SyncCommittee}; | ||
use eth_types::H256; | ||
use serde::Serialize; | ||
|
||
#[derive(Serialize)] | ||
pub struct LightClientSnapshotWithProof { | ||
pub beacon_header: BeaconBlockHeader, | ||
pub current_sync_committee: SyncCommittee, | ||
pub current_sync_committee_branch: Vec<H256>, | ||
} |
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