Skip to content

Instantly share code, notes, and snippets.

@coffeexcoin
Created August 4, 2023 16:46
Show Gist options
  • Save coffeexcoin/7f12d8a8c66092a6db5be86f14ae57bb to your computer and use it in GitHub Desktop.
Save coffeexcoin/7f12d8a8c66092a6db5be86f14ae57bb to your computer and use it in GitHub Desktop.
create2crunch dockerfile
FROM nvidia/opencl
SHELL ["/bin/bash", "-c"]
RUN apt update
RUN apt install -y build-essential ocl-icd-opencl-dev git curl
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
RUN git clone --depth 1 https://github.com/0age/create2crunch
WORKDIR /create2crunch
RUN source $HOME/.cargo/env && cargo build --release
#Keyless Create2
ENV FACTORY="0x0000000000FFe8B47B3e2130213B802212439497"
# Default to null address, pass caller to prevent MEV front run
ENV CALLER="0x0000000000000000000000000000000000000000"
ENV CODEHASH=""
ENV LEADING=5
ENV TOTAL=6
CMD target/release/create2crunch $FACTORY $CALLER $CODEHASH 0 $LEADING $TOTAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment