Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Integrate rand-extension into ink-waterfall
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed May 17, 2021
1 parent 9a44d4e commit 72339de
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dockerfiles/ink-waterfall-ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ RUN set -eux; \
# `--locked` ensures the project's `Cargo.lock` is used.
cargo install --git https://github.com/paritytech/canvas-node.git \
--locked --branch master && \
# we additionally install the `canvas-node` as `canvas-rand-extension`.
# this installation though is a modified `canvas-node`, so that ink!'s
# `rand-extension` chain extension example is included in the runtime.
# this enables us to test in the waterfall that the `rand-extension`
# integration with Substrate still works.
git clone --depth 1 https://github.com/paritytech/canvas-node.git && \
curl -s https://raw.githubusercontent.com/paritytech/ink/master/examples/rand-extension/runtime/chain-extension-example.rs \
>> canvas-node/runtime/src/lib.rs && \
sed -i 's/type ChainExtension = ();/type ChainExtension = FetchRandomExtension;/g' canvas-node/runtime/src/lib.rs && \
sed -i 's/name = "canvas"/name = "canvas-rand-extension"/g' canvas-node/node/Cargo.toml && \
cargo install --locked --path canvas-node/node/ && \
# versions
rustup show && \
cargo --version && \
Expand Down

0 comments on commit 72339de

Please sign in to comment.