-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexis Asseman <alexis@semiotic.ai>
- Loading branch information
Showing
20 changed files
with
2,066 additions
and
18 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.sqlx/query-3b2d3a3d4290034df659a36d02bcdb377777d10f001bd22f037edea42416574f.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
.sqlx/query-61f6287e64013007ee9806e7deb1db4b71a9db2096f6b2c9716c9116280b6352.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
.sqlx/query-eb01ccbdf3095a66341d72dd22d5557de5c78cc99d160ac17cc3eb965623638b.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
members = [ | ||
"common", | ||
"service", | ||
"tap_agent", | ||
] | ||
resolver = "2" | ||
|
||
|
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 @@ | ||
DROP TABLE IF EXISTS scalar_tap_ravs CASCADE; |
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,5 @@ | ||
CREATE TABLE IF NOT EXISTS scalar_tap_ravs ( | ||
allocation_id CHAR(40) PRIMARY KEY, | ||
timestamp_ns NUMERIC(20) NOT NULL, | ||
rav JSON NOT NULL | ||
); |
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,42 @@ | ||
[package] | ||
name = "indexer_tap_agent" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[[bin]] | ||
name = "indexer_tap_agent" | ||
path = "src/main.rs" | ||
|
||
[dependencies] | ||
alloy-primitives = "0.3.3" | ||
alloy-sol-types = "0.3.2" | ||
anyhow = "1.0.72" | ||
async-trait = "0.1.72" | ||
clap = { version = "4.4.3", features = ["derive", "env"] } | ||
confy = "0.5.1" | ||
dotenvy = "0.15.7" | ||
ethereum-types = "0.14.1" | ||
indexer-common = { version = "0.1.0", path = "../common" } | ||
log = "0.4.19" | ||
reqwest = "0.11.20" | ||
serde = "1.0.188" | ||
serde_json = "1.0.104" | ||
sqlx = { version = "0.7.1", features = ["postgres", "runtime-tokio", "bigdecimal", "rust_decimal"] } | ||
tap_core = "0.5.1" | ||
thiserror = "1.0.44" | ||
tokio = { version = "1.29.1", features = ["rt"] } | ||
tracing = "0.1.37" | ||
tracing-subscriber = { version = "0.3", features = [ | ||
"env-filter", | ||
"ansi", | ||
"fmt", | ||
"std", | ||
"json", | ||
] } | ||
|
||
[dev-dependencies] | ||
ethers-signers = "2.0.8" | ||
faux = "0.1.10" | ||
indexer-common = { path = "../common", features = ["mock"] } | ||
rstest = "0.18.1" |
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,14 @@ | ||
use indexer_common::prelude::{GraphNodeInstance, EscrowMonitor}; | ||
|
||
use crate::config; | ||
|
||
pub async fn start_agent(config: config::Cli) { | ||
let graph_node = GraphNodeInstance::new(&config.indexer_infrastructure.graph_node_query_endpoint); | ||
|
||
let escrow_monitor = EscrowMonitor::new( | ||
graph_node.clone(), | ||
config.escrow_subgraph.escrow_subgraph_deployment, | ||
config.ethereum.indexer_address, | ||
config.escrow_subgraph.escrow_syncing_interval | ||
); | ||
} |
Oops, something went wrong.