Skip to content

Commit 332b00c

Browse files
authored
Clickhouse backup on utils (#780)
## πŸ“ Summary Brought clickhouse robust saving (with local copy) from orderflow proxy repo (flashbots/buildernet-orderflow-proxy-v2.git) ## πŸ’‘ Motivation and Context Code reuse --- ## βœ… I have completed the following steps: * [X] Run `make lint` * [X] Run `make test` * [X] Added tests (if applicable)
1 parent d8d17c9 commit 332b00c

File tree

13 files changed

+1771
-3
lines changed

13 files changed

+1771
-3
lines changed

β€ŽCargo.lockβ€Ž

Lines changed: 110 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽCargo.tomlβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ exclude = [".github/"]
1010
[workspace]
1111
members = [
1212
"crates/rbuilder-primitives",
13+
"crates/rbuilder-utils",
1314
"crates/rbuilder-config",
1415
"crates/rbuilder",
1516
"crates/rbuilder-operator",
@@ -28,6 +29,7 @@ default-members = [
2829
"crates/reth-rbuilder",
2930
"crates/rbuilder-rebalancer",
3031
"crates/rbuilder-primitives",
32+
"crates/rbuilder-utils",
3133
"crates/test-relay",
3234
"crates/bid-scraper",
3335
]
@@ -197,6 +199,7 @@ eth-sparse-mpt = { path = "crates/eth-sparse-mpt" }
197199
bid-scraper = { path = "crates/bid-scraper" }
198200
rbuilder = { path = "crates/rbuilder" }
199201
rbuilder-primitives = { path = "crates/rbuilder-primitives" }
202+
rbuilder-utils = { path = "crates/rbuilder-utils" }
200203
rbuilder-config = { path = "crates/rbuilder-config" }
201204
sysperf = { path = "crates/sysperf" }
202205
metrics_macros = { path = "crates/rbuilder/src/telemetry/metrics_macros" }
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[package]
2+
name = "rbuilder-utils"
3+
version.workspace = true
4+
edition.workspace = true
5+
rust-version.workspace = true
6+
license.workspace = true
7+
homepage.workspace = true
8+
repository.workspace = true
9+
exclude.workspace = true
10+
11+
[dependencies]
12+
reth-tasks = { git = "https://github.com/paradigmxyz/reth", rev = "9c30bf7af5e0d45deaf5917375c9922c16654b28" }
13+
14+
# misc
15+
derivative.workspace = true
16+
integer-encoding = "4.0.0"
17+
sha2 = { workspace = true, features = ["asm"] }
18+
uuid = { version = "1.6.1", features = ["serde", "v5", "v4"] }
19+
governor = "0.6.3"
20+
ahash.workspace = true
21+
reqwest = { workspace = true, features = ["blocking"] }
22+
serde_with = { workspace = true, features = ["time_0_3"] }
23+
toml.workspace = true
24+
tracing.workspace = true
25+
time.workspace = true
26+
thiserror.workspace = true
27+
eyre.workspace = true
28+
serde.workspace = true
29+
derive_more.workspace = true
30+
serde_json.workspace = true
31+
32+
33+
# alloy
34+
alloy-primitives.workspace = true
35+
36+
strum = "0.27"
37+
strum_macros = "0.27"
38+
tokio = { version = "1.40.0", default-features = false, features = [
39+
"sync",
40+
"time",
41+
"rt-multi-thread",
42+
"macros",
43+
"test-util"
44+
] }
45+
46+
clickhouse = { git = "https://github.com/ClickHouse/clickhouse-rs", rev = "8cf3d2e138dd121367fa10e875d3f91374b075b2", features = [
47+
"inserter",
48+
"time",
49+
"uuid",
50+
"native-tls"
51+
] }
52+
clickhouse-derive = { version = "0.2.0" }
53+
redb = { version = "3.1.0" }
54+
tempfile = { version = "3.23.0" }
55+
rand = "0.9.2"
56+
futures = { version = "0.3" }
57+
futures-util = { version = "0.3.31" }
58+
59+
# tracing
60+
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
61+
tracing-futures = "0.2.5"
62+
63+
# misc
64+
auto_impl = "1.3.0"
65+
dyn-clone = "1.0.20"
66+
67+
[features]
68+
default = []
69+
test-utils = []

0 commit comments

Comments
Β (0)