Skip to content

Commit

Permalink
Merge branch 'main' into substrate-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
xermicus committed Jul 26, 2023
2 parents e41a9c0 + e5748cf commit 9548623
Show file tree
Hide file tree
Showing 14 changed files with 1,484 additions and 1,249 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
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"
}
23 changes: 23 additions & 0 deletions .devcontainer/updateContentCommand.sh
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

8 changes: 4 additions & 4 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# - The latest matching rule, if multiple, takes precedence.

# Global code owners
* @cmichi @HCastano @athei @ascjones @agryaznov
* @cmichi @athei @ascjones @agryaznov @SkymanOne

# CI
/.github/ @paritytech/ci @cmichi @ascjones @HCastano @athei @agryaznov
/scripts/ci/ @paritytech/ci @cmichi @ascjones @HCastano @athei @agryaznov
/.gitlab-ci.yml @paritytech/ci @cmichi @ascjones @HCastano @athei @agryaznov
/.github/ @paritytech/ci @cmichi @ascjones @athei @agryaznov @SkymanOne
/scripts/ci/ @paritytech/ci @cmichi @ascjones @athei @agryaznov @SkymanOne
/.gitlab-ci.yml @paritytech/ci @cmichi @ascjones @athei @agryaznov @SkymanOne
Loading

0 comments on commit 9548623

Please sign in to comment.