Skip to content

Commit

Permalink
Master v2 (#200)
Browse files Browse the repository at this point in the history
* feat: add Dockerfile for avs contract deployment and avs, add env sample file

* debug: add temp env

* debug: add temp beancon genesis time and fork url

* fix: update rust lib

* logging improved, read lookahead at before preconf loop

* rust:1.80 docker file

* entrypoint instead of cmd in dockerfile

* Coping only needed sources for docker build

* Dockerfile with cache for faster builds

* Better error handling for the registration

* fixed call view function for registration

* fixed switching epoch at the beginning

* Add CLI command for force pushing lookahead

* gas limit increased to 500_000

* force update lookahead when no txs

* operator using epoch instead of timestamp

* slot clock test

* build fixed

* slot clock genesis log

* better debug logs

* removed eth_call from force lookahead

* removed misleading lookahead kept for next epoch in operator
increased gas limit for the force lookahead

* rpc url for the tx spammer

* remove validator

* Fix force push lookahead

* Block proposed event receiving fixed

* Automatically detect parentMetaHash in the smart contract

* enable preconfirmation env flag

Added a lookahead monitor for this case, not to complicate the node, which is entirely aimed at preconfirmation.

* Remove unused variable

* .env.sample

* branch off e2e-devnet instead, cherry pick changes, merge

* Improve the process of sending new block proposals

* removed private keys and URLs from scripts

* refac: update avs-deploy Dockerfile, eigenlayer mvp and avs scripts for image build

* Improved handling of errors when payload is none (#150)

* dockerfile/script deployment updates (#160)

* dockerfile needs ca-certificates to call beacon chain via HTTPS, scripts need evm-version cancun to be deployed onto helder

* add back in original comments, simulation skipping

* undo deployeigenlayermvp temp logs

* updated serde to 1.0.217 and secp256k1 to 0.30f

* updated PreconfTaskManager.json abi

* fixed get_lookahead_preconfer_buffer result array size

* bum version to 0.2.0

* Improved error logging in the execution_layer.rs

* not needed test

* Cargo lock updated

* mock tests fixed

* Changed alpine image to distroless

This let us compile with standard glibc instead of musl libc

* added sleep to the docker file

---------

Co-authored-by: nmjustinchan <[email protected]>
Co-authored-by: mikhailUshakoff <[email protected]>
Co-authored-by: Jeffery Walsh <[email protected]>
Co-authored-by: Justin Chan <[email protected]>
Co-authored-by: jeff <[email protected]>
  • Loading branch information
6 people authored Jan 22, 2025
1 parent 18c9a0b commit 64ae1d2
Show file tree
Hide file tree
Showing 19 changed files with 493 additions and 225 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM docker.io/library/rust:1.83 AS builder
FROM rust:1.84 AS builder

# Install libclang
# Update CA certificates in builder stage
RUN apt-get update && apt-get install -y \
libclang-dev \
ca-certificates \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*

# Set the working directory inside the container
Expand All @@ -13,8 +15,10 @@ COPY ../p2pNode/p2pNetwork /app/p2pNode/p2pNetwork

RUN cargo build -p taiko_preconf_avs_node --release

FROM alpine:latest
FROM gcr.io/distroless/cc

COPY --from=builder /app/taiko_preconf_avs_node/target/release/taiko_preconf_avs_node /usr/local/bin/taiko_preconf_avs_node
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /bin/sleep /bin/sleep

ENTRYPOINT ["taiko_preconf_avs_node"]
Loading

0 comments on commit 64ae1d2

Please sign in to comment.