Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Constraints API v0 #49

Merged
merged 34 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
22a13a8
feat: constraints-api-v0
thedevbirb Nov 6, 2024
f2f2fcf
docs(constraints-api): fix broken links
thedevbirb Nov 7, 2024
dc2919d
fix(constraints-api-v0): drop validator_delegations migration, curren…
thedevbirb Nov 8, 2024
40cda8e
feat(constraints-api): add startup configuration
thedevbirb Nov 8, 2024
38c8e8f
Merge pull request #22 from chainbound/lore/feat/constraints-api-config
merklefruit Nov 8, 2024
ffc5e5e
introduce max_block_value_to_verify in constraints config
gd-0 Nov 11, 2024
61d611f
address PR comments + other fixes
gd-0 Nov 11, 2024
b531d46
feat: import website from aestus upstream, solve conflicts
merklefruit Nov 11, 2024
b66e136
chore: re-added cargo.lock
merklefruit Nov 11, 2024
9d7e97f
chore: run fmt clippy checks
merklefruit Nov 11, 2024
f995522
chore: default run on unspecified ip
merklefruit Nov 11, 2024
30c5cb5
chore: rm aestus naming and links from web page
merklefruit Nov 11, 2024
8ba703c
chore: gattaca logo
merklefruit Nov 11, 2024
25d777e
chore: reverted changes to dockerfile + tls dependencies
merklefruit Nov 11, 2024
c864a9e
chore: addressed review
merklefruit Nov 11, 2024
9ee178a
chore: logo size
merklefruit Nov 11, 2024
ea15474
fix(tests): make them compile
thedevbirb Nov 12, 2024
ae59749
chore(api): should verify proofs logic
thedevbirb Nov 12, 2024
00b5bcb
Merge pull request #23 from gd-0/dont-enforce-constraints-if-block-va…
thedevbirb Nov 12, 2024
9003727
chore(website): fmt
thedevbirb Nov 12, 2024
0aee3e8
Merge pull request #25 from chainbound/feat/import-website
thedevbirb Nov 12, 2024
30c66ac
fix(db): retry creating pool handle
merklefruit Nov 12, 2024
7a0342f
fix(db): don't panic upon failing migrations once
merklefruit Nov 12, 2024
44b1823
fix(website): rm blob related fields from table
merklefruit Nov 12, 2024
f778527
Merge pull request #26 from chainbound/fix/retry-db-pool
thedevbirb Nov 12, 2024
b78427d
fix(ssz): restore SSZ backwards compatibility on SignedBuilderSubmiss…
thedevbirb Nov 15, 2024
cdb2795
Merge pull request #27 from chainbound/lore/fix/ssz
merklefruit Nov 18, 2024
ca4d329
fix(ssz): order of enum variants is important
thedevbirb Nov 26, 2024
dd97cb2
refactor(api/builder): submit_block(_with_proofs) now have the same impl
thedevbirb Nov 15, 2024
bd2b542
Merge pull request #28 from chainbound/lore/refactor/constraints-api
thedevbirb Nov 27, 2024
f81a92e
fix(constraints-api): don't read from db for checking proposer duties…
thedevbirb Nov 27, 2024
242607c
Merge pull request #30 from chainbound/lore/fix/db-read-constraints-api
thedevbirb Nov 28, 2024
5848eec
fix(constraints-api): review constraints saving logic
thedevbirb Nov 27, 2024
abf32f5
Merge pull request #29 from chainbound/lore/fix/submit-constraints-logic
thedevbirb Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
408 changes: 332 additions & 76 deletions Cargo.lock

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ members = [
"crates/datastore",
"crates/cmd",
"crates/housekeeper",
"crates/website",
]
resolver = "2"

Expand All @@ -26,18 +27,24 @@ helix-database = { path = "./crates/database" }
helix-datastore = { path = "./crates/datastore" }
helix-housekeeper = { path = "./crates/housekeeper" }
helix-utils = { path = "./crates/utils" }
helix-website = { path = "./crates/website" }

# Async and Networking
async-trait = "0.1"
axum = {version = "0.7.4", features = ["ws"]}
axum = { version = "0.7.4", features = ["ws"] }
dashmap = { version = "5.5.3", features = [] }
futures = "0.3"
hyper = "1.1.0"
http = "1.0.0"
tower = { version = "0.4.13", features = ["full"] }
reqwest = { version = "0.11.23", features = ["json", "native-tls-vendored", "stream", "blocking"] }
reqwest = { version = "0.11.23", features = [
"json",
"native-tls-vendored",
"stream",
"blocking",
] }
tokio = { version = "1.33.0", features = ["full"] }
tokio-stream = {version = "0.1.15", features = ["sync"]}
tokio-stream = { version = "0.1.15", features = ["sync"] }
tower-http = { version = "0.5.1", features = ["limit"] }
url = "2.4"

Expand All @@ -51,7 +58,7 @@ deadpool-redis = { version = "0.12.0", features = ["rt_tokio_1"] }
redis = { version = "0.23.2", features = ["aio", "tokio-comp"] }
tokio-postgres = "0.7.10"
deadpool-postgres = "0.11.0"
refinery = { version = "0.8", features = ["tokio-postgres"]}
refinery = { version = "0.8", features = ["tokio-postgres"] }
bytes = "1.5.0"
chrono = "0.4.19"

Expand Down
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ RUN apt install -y clang
RUN apt install -y protobuf-compiler

RUN wget https://github.com/mozilla/sccache/releases/download/v0.3.1/sccache-v0.3.1-x86_64-unknown-linux-musl.tar.gz \
&& tar xzf sccache-v0.3.1-x86_64-unknown-linux-musl.tar.gz \
&& mv sccache-v0.3.1-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache \
&& chmod +x /usr/local/bin/sccache
&& tar xzf sccache-v0.3.1-x86_64-unknown-linux-musl.tar.gz \
&& mv sccache-v0.3.1-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache \
&& chmod +x /usr/local/bin/sccache

ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
Expand All @@ -33,13 +33,13 @@ RUN ls -lah /app/${REPO_NAME}
WORKDIR /app/${REPO_NAME}

RUN --mount=type=cache,target=/root/.cargo \
--mount=type=cache,target=/usr/local/cargo/registry \
cargo fetch
--mount=type=cache,target=/usr/local/cargo/registry \
cargo fetch

# Run build
RUN --mount=type=cache,target=/root/.cargo \
--mount=type=cache,target=/usr/local/cargo/registry \
RUSTC_WRAPPER=/usr/local/bin/sccache cargo build -p helix-cmd --release
--mount=type=cache,target=/usr/local/cargo/registry \
RUSTC_WRAPPER=/usr/local/bin/sccache cargo build -p helix-cmd --release

# Copy binary into the workdir
RUN mv /app/$REPO_NAME/target/release/helix-cmd /app/helix-cmd
Expand All @@ -57,5 +57,4 @@ WORKDIR /app
COPY --from=helix /app/helix-cmd* ./

# set the startup command to run your binary
ENTRYPOINT ["/app/helix-cmd"]

ENTRYPOINT ["/app/helix-cmd"]
3 changes: 3 additions & 0 deletions crates/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ tower = { workspace = true }
futures = { workspace = true }
hyper = { workspace = true }
reqwest = { workspace = true }
reqwest-eventsource = "0.5"
tokio = { workspace = true }
tokio-tungstenite = "0.16"
tokio-stream = { workspace = true }
tower-http = { workspace = true }
url = { workspace = true }
tonic = "0.10"
Expand All @@ -50,6 +52,7 @@ auto_impl.workspace = true
rand = "0.8"
thiserror = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
uuid = { workspace = true }
bytes = "1.5"
moka = "0.9"
Expand Down
Loading
Loading