Skip to content

Commit

Permalink
feat: consume eth rpc providers
Browse files Browse the repository at this point in the history
Used to validate time event anchor proofs and determine time from block
  • Loading branch information
dav1do committed Sep 17, 2024
1 parent 850561b commit 216c489
Show file tree
Hide file tree
Showing 5 changed files with 426 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions event-svc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ itertools.workspace = true
multihash-codetable.workspace = true
multihash-derive.workspace = true
multihash.workspace = true
once_cell.workspace = true
prometheus-client.workspace = true
recon.workspace = true
serde.workspace = true
Expand All @@ -42,12 +43,11 @@ ceramic-event.workspace = true
criterion2 = { workspace = true, features = ["async", "async_tokio"] }
expect-test.workspace = true
ipld-core.workspace = true
mockall.workspace = true
multibase.workspace = true
paste = "1.0"
prettytable-rs = "^0.10"
rand.workspace = true
serde.workspace = true
serde_ipld_dagcbor.workspace = true
test-log.workspace = true
tmpdir.workspace = true
tokio.workspace = true
Expand Down
1 change: 1 addition & 0 deletions event-svc/src/event/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ mod order_events;
mod ordering_task;
mod service;
mod store;
mod validator;

pub use service::{BlockStore, DeliverableRequirement, EventService};
5 changes: 5 additions & 0 deletions event-svc/src/event/validator/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// this is not used yet
// we should export the following and consume in the event validator
// pub use time::{BlockchainVerifier, EthRpcProvider, EventTimestamper, Timestamp};
#[allow(dead_code)]
mod time;
Loading

0 comments on commit 216c489

Please sign in to comment.