Skip to content

Commit

Permalink
feat: Checkpoints relayer (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
gshep authored Aug 6, 2024
1 parent 8307b07 commit fd79113
Show file tree
Hide file tree
Showing 17 changed files with 1,498 additions and 646 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ bridging_payment = { path = "gear-programs/bridging-payment" }
gear_proof_storage = { path = "gear-programs/proof-storage" }
checkpoint_light_client-io = { path = "gear-programs/checkpoint-light-client/io", default-features = false }
utils-prometheus = { path = "utils-prometheus" }
checkpoint_light_client = { path = "gear-programs/checkpoint-light-client", default-features = false }

plonky2 = { git = "https://github.com/gear-tech/plonky2.git", rev = "4a620f4d79efe9233d0e7682df5a2fc625b5420e" }
plonky2_field = { git = "https://github.com/gear-tech/plonky2.git", rev = "4a620f4d79efe9233d0e7682df5a2fc625b5420e" }
Expand Down
4 changes: 4 additions & 0 deletions ethereum-common/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ pub fn calculate_period(slot: u64) -> u64 {
calculate_epoch(slot) / EPOCHS_PER_SYNC_COMMITTEE
}

pub fn calculate_slot(period: u64) -> u64 {
period * SLOTS_PER_EPOCH * EPOCHS_PER_SYNC_COMMITTEE
}

pub fn decode_hex_bytes<'de, D>(deserializer: D) -> Result<Vec<u8>, D::Error>
where
D: serde::Deserializer<'de>,
Expand Down
3 changes: 0 additions & 3 deletions gear-programs/checkpoint-light-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ use gstd::{Box, Vec};

#[cfg(not(feature = "std"))]
mod wasm;

#[cfg(test)]
mod tests;
Loading

0 comments on commit fd79113

Please sign in to comment.