-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into substrate-integration
- Loading branch information
Showing
14 changed files
with
1,484 additions
and
1,249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/universal:2", | ||
"features": { | ||
"ghcr.io/devcontainers/features/rust:1": {}, | ||
"devwasm.azurecr.io/dev-wasm/dev-wasm-feature/rust-wasi:0": {} | ||
}, | ||
"updateContentCommand": "./.devcontainer/updateContentCommand.sh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
echo "Installing protoc..." | ||
sudo apt update | ||
sudo apt install -y unzip | ||
PROTOC_VERSION=$(curl -s "https://api.github.com/repos/protocolbuffers/protobuf/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') | ||
curl -Lo protoc.zip "https://github.com/protocolbuffers/protobuf/releases/latest/download/protoc-${PROTOC_VERSION}-linux-x86_64.zip" | ||
sudo unzip -q protoc.zip bin/protoc -d /usr/local | ||
sudo chmod a+x /usr/local/bin/protoc | ||
rm -rf protoc.zip | ||
|
||
echo "Installing Substrate Contracts Node..." | ||
SUBSTRATE_VERSION=$(curl -s "https://api.github.com/repos/paritytech/substrate-contracts-node/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') | ||
curl -Lo substrate.tar.gz "https://github.com/paritytech/substrate-contracts-node/releases/download/v${SUBSTRATE_VERSION}/substrate-contracts-node-linux.tar.gz" | ||
mkdir substrate-temp | ||
tar -xzf substrate.tar.gz -C substrate-temp | ||
sudo mv substrate-temp/artifacts/substrate-contracts-node-linux/substrate-contracts-node /usr/local/bin/ | ||
sudo chmod a+x /usr/local/bin/substrate-contracts-node | ||
rm -rf substrate.tar.gz substrate-temp | ||
|
||
echo "Installing cargo-contract CLI tool..." | ||
cargo install --force --locked cargo-contract --version 2.0.0-rc | ||
|
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.