-
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.
- Loading branch information
Showing
7 changed files
with
414 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "preimage-oracle" | ||
description = "Bindings for interacting as a client or server over the Pre-image Oracle ABI" | ||
edition = "2021" | ||
|
||
version.workspace = true | ||
authors.workspace = true | ||
|
||
[dependencies] | ||
alloy-primitives = "0.3.3" | ||
once_cell = "1.18.0" | ||
serde = { version = "1.0.188", features = ["derive"] } | ||
serde_json = "1.0.106" | ||
tokio = { version = "1.32.0", features = ["full"] } | ||
|
||
# misc | ||
anyhow = "1.0.75" | ||
tracing = "0.1.37" | ||
|
||
[features] | ||
tracing = [] |
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,11 @@ | ||
# `preimage-oracle` | ||
|
||
The `preimage-oracle` crate offers bindings to interact as client or sever over the Pre-image Oracle ABI. | ||
|
||
Read more about the Preimage Oracle in the OP Stack [specs][specs]. | ||
|
||
See the OP Stack's [op-program][op-program] and [Cannon client examples](../../example) for client-side usage. | ||
See [`mipsevm`](../mipsevm) for server-side usage. | ||
|
||
[specs]: https://github.com/ethereum-optimism/optimism/blob/6c7f366a55febbb119aa0b02d73f008c1c909900/specs/fault-proof.md | ||
[op-program]: https://github.com/ethereum-optimism/optimism/tree/develop/op-program |
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,13 @@ | ||
#![doc = include_str!("../README.md")] | ||
#![allow(dead_code, unused_variables)] | ||
|
||
mod oracle; | ||
// pub use oracle::{OracleClient, OracleServer}; | ||
|
||
mod traits; | ||
pub use traits::{Hint, Hinter, Key, Oracle}; | ||
|
||
mod types; | ||
pub use types::{ | ||
HinterFn, Keccak256Key, KeyType, LocalIndexKey, OracleFn, PreimageGetter, ReadWriterPair, | ||
}; |
Oops, something went wrong.