-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: create forrestrie-examples crate to fix circular dependency
- Loading branch information
1 parent
d7b2eb1
commit b4d0c75
Showing
20 changed files
with
132 additions
and
65 deletions.
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
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 |
---|---|---|
@@ -1,51 +1,13 @@ | ||
# Veemon | ||
|
||
## Overview | ||
|
||
Verifying Ethereum data. | ||
Semiotic Labs monorepo for Verifiable Extraction of blockchain data. | ||
|
||
## Crates | ||
|
||
### Forrestrie | ||
|
||
Library of types and methods for verifying post-merge Ethereum data. | ||
|
||
### Firehose Client | ||
|
||
Support for interfacing programmatically with Firehose gRPC endpoints. | ||
|
||
For more information see the | ||
[`firehose-client/README`](./crates/firehose-client/README.md). | ||
|
||
## Documentation | ||
|
||
- Notion doc on | ||
[Post-merge Header Record Data Structure](https://www.notion.so/semiotic/Post-merge-header_record-data-structure-7290d03d356946188bdb9ac29366f510?pvs=4). | ||
- [Beacon Chain `BeaconState` spec](https://github.com/ethereum/consensus-specs/blob/dev/specs/capella/beacon-chain.md#beaconstate) | ||
- [Beacon Chain `BeaconBlockBody` spec](https://github.com/ethereum/consensus-specs/blob/dev/specs/deneb/beacon-chain.md#beaconblockbody) | ||
- The [fork of `sigp/lighthouse`](https://github.com/semiotic-ai/lighthouse) we've been spiking. | ||
- [Google Drive shared resources](https://drive.google.com/drive/folders/19QBMHZFAV7uo_Cu4RwLPTwGpBcQMd-hy), | ||
including `head-state.json` used in `beacon_state.rs` tests. | ||
|
||
## Examples | ||
|
||
Here's an example of how to run one of the examples in the `forrestrie` crate: | ||
|
||
```terminal | ||
cd crates/forrestrie && cargo run -- --examples historical_state_roots_proof | ||
``` | ||
|
||
Use environment variables to provide Firehose Ethereum and Firehose Beacon providers of | ||
your choice. | ||
|
||
To do so, place a `.env` file in the root of the crate you want to run examples for. | ||
Your `.env` file should look like something this, depending on your requirements: | ||
|
||
```shell | ||
FIREHOSE_ETHEREUM_URL=<YOUR-FIREHOSE-ETHEREUM-URL> | ||
FIREHOSE_ETHEREUM_PORT=<YOUR-FIREHOSE-ETHEREUM-PORT> | ||
FIREHOSE_BEACON_URL=<YOUR-FIREHOSE-BEACON-URL> | ||
FIREHOSE_BEACON_PORT=<YOUR-FIREHOSE-BEACON-PORT> | ||
BEACON_API_KEY=<YOUR-API-KEY> | ||
ETHEREUM_API_KEY=<YOUR-API-KEY> | ||
``` | ||
- [firehose-client](./crates/firehose-client/README.md) | ||
- [firehose-protos](./crates/firehose-protos/README.md) | ||
- [flat-files-decoder](./crates/flat-files-decoder/README.md) | ||
- [flat-head](./crates/flat-head/README.md) | ||
- [forrestrie](./crates/forrestrie/README.md) | ||
- [forrestrie-examples](./crates/forrestrie-examples/README.md) | ||
- [header-accumulator](./crates/header-accumulator/README.md) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[package] | ||
name = "forrestrie-examples" | ||
version = "0.1.1" | ||
edition = "2021" | ||
|
||
[dev-dependencies] | ||
bls.workspace = true | ||
ethportal-api.workspace = true | ||
firehose-client = { path = "../firehose-client" } | ||
firehose-protos = { path = "../firehose-protos" } | ||
forrestrie = { path = "../forrestrie" } | ||
futures.workspace = true | ||
insta.workspace = true | ||
merkle_proof.workspace = true | ||
primitive-types.workspace = true | ||
prost.workspace = true | ||
prost-wkt.workspace = true | ||
prost-wkt-types.workspace = true | ||
reqwest = { workspace = true, features = ["json"] } | ||
serde = { workspace = true, features = ["derive"] } | ||
serde_json.workspace = true | ||
ssz_types.workspace = true | ||
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } | ||
tonic.workspace = true | ||
tracing.workspace = true | ||
tracing-subscriber = "0.3" | ||
tree_hash = "0.6.0" | ||
types.workspace = true |
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,27 @@ | ||
# Forrestrie Examples | ||
|
||
Here's an example of how to run one of the examples in the `forrestrie-examples` crate: | ||
|
||
```terminal | ||
cd crates/forrestrie-examples && cargo run -- --examples historical_state_roots_proof | ||
``` | ||
|
||
Use environment variables to provide Firehose Ethereum and Firehose | ||
Beacon providers of your choice. | ||
|
||
To do this, place a `.env` file in the root of `veemon`. | ||
|
||
Your `.env` file should look like something this, depending on your | ||
requirements: | ||
|
||
```shell | ||
FIREHOSE_ETHEREUM_URL=<YOUR-FIREHOSE-ETHEREUM-URL> | ||
FIREHOSE_ETHEREUM_PORT=<YOUR-FIREHOSE-ETHEREUM-PORT> | ||
FIREHOSE_BEACON_URL=<YOUR-FIREHOSE-BEACON-URL> | ||
FIREHOSE_BEACON_PORT=<YOUR-FIREHOSE-BEACON-PORT> | ||
BEACON_API_KEY=<YOUR-API-KEY> | ||
ETHEREUM_API_KEY=<YOUR-API-KEY> | ||
``` | ||
|
||
Pinax is a great provider for blockchain data, so if you need an API key, | ||
you might want to check them out. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Forrestrie | ||
|
||
Library of types and methods for verifying post-merge Ethereum data. | ||
|
||
## Documentation | ||
|
||
- Notion doc on | ||
[Post-merge Header Record Data Structure](https://www.notion.so/semiotic/Post-merge-header_record-data-structure-7290d03d356946188bdb9ac29366f510?pvs=4). | ||
- [Beacon Chain `BeaconState` spec](https://github.com/ethereum/consensus-specs/blob/dev/specs/capella/beacon-chain.md#beaconstate) | ||
- [Beacon Chain `BeaconBlockBody` spec](https://github.com/ethereum/consensus-specs/blob/dev/specs/deneb/beacon-chain.md#beaconblockbody) | ||
- The [fork of `sigp/lighthouse`](https://github.com/semiotic-ai/lighthouse) we've been spiking. | ||
- [Google Drive shared resources](https://drive.google.com/drive/folders/19QBMHZFAV7uo_Cu4RwLPTwGpBcQMd-hy), | ||
including `head-state.json` used in `beacon_state.rs` tests. | ||
|
||
## Examples | ||
|
||
See [forrestrie-examples](./../forrestrie-examples/README.md)! |
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