Skip to content

Commit

Permalink
Add contract deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
starsquidnodes committed Mar 6, 2024
1 parent b1c280a commit 7664e4a
Show file tree
Hide file tree
Showing 14 changed files with 762 additions and 333 deletions.
16 changes: 0 additions & 16 deletions contracts/Dockerfile

This file was deleted.

266 changes: 0 additions & 266 deletions contracts/contracts.py

This file was deleted.

12 changes: 0 additions & 12 deletions contracts/params/add_orca_queue.json

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/params/add_usk_collateral.json

This file was deleted.

27 changes: 19 additions & 8 deletions prepare/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,36 @@ ARG kujira_version
ARG arch
FROM ${namespace}/kujira:${kujira_version}-${arch}

ARG kujira_version
ARG feeder_version
ARG relayer_version
ENV KUJIRA_VERSION=${kujira_version}
ENV FEEDER_VERSION=${feeder_version}
ENV RELAYER_VERSION=${relayer_version}

WORKDIR /tmp
RUN apt-get update && \
apt-get install -y --no-install-recommends python3 python3-jinja2 && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
python3 \
python3-jinja2 \
python3-mako \
python3-requests \
python3-yaml \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

COPY prepare.py entrypoint.sh /usr/local/bin/
COPY templates /tmp/templates
COPY keys /tmp/keys
COPY mnemonics.json /tmp/mnemonics.json
COPY contracts /tmp/contracts

RUN chmod +x /usr/local/bin/*

ARG kujira_version
ARG feeder_version
ARG relayer_version
ARG prepare_version
ENV KUJIRA_VERSION=${kujira_version}
ENV FEEDER_VERSION=${feeder_version}
ENV RELAYER_VERSION=${relayer_version}
ENV PREPARE_VERSION=${prepare_version}

WORKDIR /tmp

ENTRYPOINT ["entrypoint.sh"]
Expand Down
Loading

0 comments on commit 7664e4a

Please sign in to comment.