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

Install wasmd and download contracts #8

Merged
merged 6 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
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
16 changes: 15 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
VERSION 0.8

wasmd:
FROM cosmwasm/wasmd:v0.52.0
SAVE ARTIFACT /usr/bin/wasmd AS LOCAL wasmd

namada:
FROM rust:1.81.0-bookworm

Expand All @@ -9,6 +13,8 @@ namada:
ARG nightly_toolchain=nightly-2024-09-08
ARG rocksdb_version=8.10.0
ARG gaia_version=19.1.0
ARG cw721_version=0.18.0
ARG ics721_version=0.1.13
ARG cometbft_version=0.37.11
ARG wasm_opt_version=119

Expand Down Expand Up @@ -80,6 +86,14 @@ namada:
RUN mv gaiad /usr/local/bin
RUN chmod +x /usr/local/bin/gaiad

# install wasmd
COPY +wasmd/wasmd /usr/local/bin/wasmd
RUN chmod +x /usr/local/bin/wasmd

# download cosmwasm contracts
RUN curl -LO https://github.com/public-awesome/cw-nfts/releases/download/v${cw721_version}/cw721_base.wasm
RUN curl -LO https://github.com/public-awesome/cw-ics721/releases/download/v${ics721_version}/ics721_base.wasm

# download cometbft
RUN curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v${cometbft_version}/cometbft_${cometbft_version}_linux_amd64.tar.gz
RUN tar -xvzf cometbft.tar.gz
Expand Down Expand Up @@ -125,4 +139,4 @@ wasm:
RUN mv wasm-opt /usr/local/bin
RUN chmod +x /usr/local/bin/wasm-opt

SAVE IMAGE --push ghcr.io/heliaxdev/namada-ci:wasm-latest ghcr.io/heliaxdev/namada-ci:wasm-main
SAVE IMAGE --push ghcr.io/heliaxdev/namada-ci:wasm-latest ghcr.io/heliaxdev/namada-ci:wasm-main