diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml new file mode 100644 index 00000000000..d2e749f02f1 --- /dev/null +++ b/.github/workflows/build-artifacts.yml @@ -0,0 +1,100 @@ +name: "Build Artifacts" + +on: + workflow_dispatch: + push: + tags: + - '*' + +env: + DOCKER_USER_OPTION: '$UID:$GID' + SCCACHE_GCS_BUCKET: 'composable-build-artefacts' + RUSTC_WRAPPER: "/home/runner/.cargo/bin/sccache" + SCCACHE_GCS_RW_MODE: "READ_WRITE" + +jobs: + build-and-publish: + runs-on: + - self-hosted + - linux + - x64 + - sre + strategy: + fail-fast: true + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set env + run: | + echo "RELEASE_VERSION=$(git tag --sort=committerdate | grep -E '^v[0-9]' | tail -1 )" >> $GITHUB_ENV + make version + + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: 🔨 Build and Upload Composable Binary + working-directory: "./.maintain/" + id: runtime_release + run: | + ./client_release.sh + + - name: Build wasm with srtool + working-directory: "./.maintain/" + id: runtime_release + run: | + ./runtime_release.sh + + - name: Upload Compressed wasm # TODO only upload wasm that has changed + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.COMPOSABLE_GITHUB_TOKEN }} + file: ./runtime/picasso/target/srtool/release/wbuild/picasso-runtime/picasso_runtime.compact.compressed.wasm + asset_name: picasso_runtime.compact.compressed.wasm + tag: ${{ github.ref }} + overwrite: true + + - name: Upload Binary on Release # TODO Only upload binary if client files have changed + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.COMPOSABLE_GITHUB_TOKEN }} + file: target/release/composable + asset_name: composable + tag: ${{ github.ref }} + overwrite: true + + - name: Update Release Note + run: | + sed -i '1i # Code ' release.md + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + body_path: release.md + token: ${{ secrets.COMPOSABLE_GITHUB_TOKEN }} + + + dali-chacha-client-release: + needs: [build-and-publish] + runs-on: + - self-hosted + - linux + - X64 + - ansible-runner + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set env + run: | + echo "RELEASE_VERSION=$(git tag --sort=committerdate | grep -E '^v[0-9]' | tail -1 )" >> $GITHUB_ENV + + - name: Run ansible playbook + working-directory: "./.maintain/playbooks" + run: | + ansible-playbook -l _environment_testnet client-upgrade.yml -i gcp.yaml --user runner -e 'ansible_python_interpreter=/usr/bin/python3' diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 30b3421baf7..bd123479fe7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -7,7 +7,7 @@ on: branches: - main - develop - - release/* + - releases push: branches: - main diff --git a/.github/workflows/client-release.yml b/.github/workflows/client-release.yml deleted file mode 100644 index 94787c6d180..00000000000 --- a/.github/workflows/client-release.yml +++ /dev/null @@ -1,86 +0,0 @@ -name: "Community Release (Dali Chacha)" - -on: - push: - tags: - - '*' - branches: - - feature/add-cache-build - -env: - DOCKER_USER_OPTION: '$UID:$GID' - SCCACHE_GCS_BUCKET: 'composable-build-artefacts' - RUSTC_WRAPPER: "/home/runner/.cargo/bin/sccache" - SCCACHE_GCS_RW_MODE: "READ_WRITE" - -jobs: - build-and-publish: - runs-on: - - self-hosted - - linux - - x64 - - sre - strategy: - fail-fast: true - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set env - run: | - echo "RELEASE_VERSION=$(git tag --sort=committerdate | grep -E '^v[0-9]' | tail -1 )" >> $GITHUB_ENV - make version - - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - - name: 🔨 Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --release --bins - - - name: Archive build targets - run: | - tar -czvf composable-${{ env.RELEASE_VERSION }}.tar.gz target/release/ - tar -czvf composable-${{ env.RELEASE_VERSION }}.tar.gz target/release/composable - tar -czvf picasso_runtime.compact.wasm-${RELEASE_VERSION}.tar.gz target/release/wbuild/picasso-runtime/picasso_runtime.compact.wasm - tar -czvf parachain-utils-${RELEASE_VERSION}.tar.gz target/release/parachain-utils - gsutil cp *.tar.gz gs://composable-binaries/community-releases/${{ env.RELEASE_VERSION }}/ - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - - - name: Build Docker image - run: make containerize-release - - - name: Docker push - run: make push-release - - dali-chacha-client-release: - needs: [build-and-publish] - runs-on: - - self-hosted - - linux - - X64 - - ansible-runner - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set env - run: | - echo "RELEASE_VERSION=$(git tag --sort=committerdate | grep -E '^v[0-9]' | tail -1 )" >> $GITHUB_ENV - - - name: Run ansible playbook - working-directory: "./.maintain/playbooks" - run: | - ansible-playbook -l _environment_testnet client-upgrade.yml -i gcp.yaml --user runner -e 'ansible_python_interpreter=/usr/bin/python3' - diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml new file mode 100644 index 00000000000..da0b1de8498 --- /dev/null +++ b/.github/workflows/docker-release.yml @@ -0,0 +1,45 @@ +name: "Docker Release" + +on: + workflow_dispatch: + push: + tags: + - '*' + +env: + DOCKER_USER_OPTION: '$UID:$GID' + SCCACHE_GCS_BUCKET: 'composable-build-artefacts' + RUSTC_WRAPPER: "/home/runner/.cargo/bin/sccache" + SCCACHE_GCS_RW_MODE: "READ_WRITE" + +jobs: + build-and-publish: + runs-on: + - self-hosted + - linux + - x64 + - sre + strategy: + fail-fast: true + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set env + run: | + echo "RELEASE_VERSION=$(git tag --sort=committerdate | grep -E '^v[0-9]' | tail -1 )" >> $GITHUB_ENV + make version + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + - name: Build Docker image + run: make containerize-release + + - name: Docker push + run: make push-release + diff --git a/.github/workflows/picashot.yml b/.github/workflows/picashot.yml index bc6e60fccb1..d74c44b39ba 100644 --- a/.github/workflows/picashot.yml +++ b/.github/workflows/picashot.yml @@ -1,5 +1,6 @@ name: Check Runtime on: + workflow_dispatch: schedule: - cron: '0 0 * * *' jobs: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e2477eae05d..978ab894f75 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -3,7 +3,7 @@ on: push: branches: - main - - release/* + - releases jobs: update_release_draft: runs-on: ubuntu-latest diff --git a/.github/workflows/runtime-check.yml b/.github/workflows/runtime-check.yml index 6e4d03a6d8d..4c220127341 100644 --- a/.github/workflows/runtime-check.yml +++ b/.github/workflows/runtime-check.yml @@ -2,15 +2,19 @@ name: Check Runtime on: push: branches: - - release-* + - releases - main pull_request: branches: - - release-* + - releases - main jobs: check-runtime: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - linux + - x64 + - sre steps: - uses: actions/checkout@v2 with: @@ -18,5 +22,35 @@ jobs: - name: Check for runtime changes working-directory: "./.maintain/" + id: check_runtime run: | - sh check_runtime.sh + ./check_runtime.sh + + - name: Echo output + run: echo ${{ env.RUNTIME_CHECK }} + + - name: Run Simnode + if: "$${{ env.RUNTIME_CHECK }} == 1" + working-directory: "./.maintain/" + id: run_simnode + run: | + ./run_simnode.sh + + benchmark: + name: Benchmark + runs-on: + - self-hosted + - linux + - x64 + - bmark + steps: + - uses: actions/checkout@v2 + - name: Benchmark Test + if: "$${{ env.RUNTIME_CHECK }} == 1" + working-directory: "./.maintain/" + id: run_benchmarks + run: | + ./run_benchmarks.sh + + + diff --git a/.maintain/check_runtime.sh b/.maintain/check_runtime.sh old mode 100644 new mode 100755 index 99825fd73ad..a399e9b9811 --- a/.maintain/check_runtime.sh +++ b/.maintain/check_runtime.sh @@ -1,103 +1,51 @@ -#!/bin/sh +#!/bin/bash # -# -# check for any changes in the node/src/runtime, frame/* and primitives/sr_* trees. if +# check for any changes in the runtime/ and frame/*. if # there are any changes found, it should mark the PR breaksconsensus and # "auto-fail" the PR if there isn't a change in the runtime/src/lib.rs file # that alters the version. -set -e # fail on any error +#set -e # fail on any error #shellcheck source=../common/lib.sh . "$(dirname "${0}")/./common/lib.sh" -VERSIONS_FILE="runtime/picasso/src/lib.rs" - -boldprint () { printf "|\n| \033[1m%s\033[0m\n|\n" "${@}"; } -boldcat () { printf "|\n"; while read -r l; do printf "| \033[1m%s\033[0m\n" "${l}"; done; printf "|\n" ; } - - -boldprint "latest 10 commits of ${GITHUB_REF_NAME}" -git log --graph --oneline --decorate=short -n 10 - - -boldprint "check if the wasm sources changed" -if ! has_runtime_changes origin/main "${GITHUB_REF_NAME}" -then - boldcat <<-EOT - - no changes to the runtime source code detected - - EOT - - exit 0 -fi - - - -# check for spec_version updates: if the spec versions changed, then there is -# consensus-critical logic that has changed. the runtime wasm blobs must be -# rebuilt. - -add_spec_version="$(git diff tags/release ${GITHUB_SHA} -- "${VERSIONS_FILE}" \ - | sed -n -r "s/^\+[[:space:]]+spec_version: +([0-9]+),$/\1/p")" -sub_spec_version="$(git diff tags/release ${GITHUB_SHA} -- "${VERSIONS_FILE}" \ - | sed -n -r "s/^\-[[:space:]]+spec_version: +([0-9]+),$/\1/p")" - - - -if [ "${add_spec_version}" != "${sub_spec_version}" ] -then - - boldcat <<-EOT - - changes to the runtime sources and changes in the spec version. - - spec_version: ${sub_spec_version} -> ${add_spec_version} - - EOT - exit 0 - -else - # check for impl_version updates: if only the impl versions changed, we assume - # there is no consensus-critical logic that has changed. - - add_impl_version="$(git diff tags/release ${GITHUB_SHA} -- "${VERSIONS_FILE}" \ - | sed -n -r 's/^\+[[:space:]]+impl_version: +([0-9]+),$/\1/p')" - sub_impl_version="$(git diff tags/release ${GITHUB_SHA} -- "${VERSIONS_FILE}" \ - | sed -n -r 's/^\-[[:space:]]+impl_version: +([0-9]+),$/\1/p')" - - - # see if the impl version changed - if [ "${add_impl_version}" != "${sub_impl_version}" ] - then - boldcat <<-EOT - - changes to the runtime sources and changes in the impl version. - - impl_version: ${sub_impl_version} -> ${add_impl_version} - - EOT - exit 0 - fi - - - boldcat <<-EOT - - wasm source files changed but not the spec/impl version. If changes made do not alter logic, - just bump 'impl_version'. If they do change logic, bump 'spec_version'. - - source file directories: - - frame/* - - runtime/* - - versions file: ${VERSIONS_FILE} - - EOT -fi +LATEST_TAG_NAME=$(get_latest_release ComposableFi/composable) +GITHUB_REF_NAME=$(git rev-parse --abbrev-ref HEAD) + +# shellcheck disable=SC2039 +VERSIONS_FILES=( + "runtime/picasso/src/lib.rs,picasso,picasso" + "runtime/dali/src/lib.rs,dali-chachacha,dali" + # "runtime/composable/src/lib.rs,composable,composable" +) + + boldprint "latest 10 commits of ${GITHUB_REF_NAME}" + git log --graph --oneline --decorate=short -n 10 + + boldprint "make sure the main branch and release tag are available in shallow clones" + git fetch --depth="${GIT_DEPTH:-100}" origin main + git fetch --depth="${GIT_DEPTH:-100}" origin "${LATEST_TAG_NAME}" + git tag -f "${LATEST_TAG_NAME}" FETCH_HEAD + git log -n1 "${LATEST_TAG_NAME}" + +simnode_check() { + VERSIONS_FILE="$1" + if has_runtime_changes "${LATEST_TAG_NAME}" "${GITHUB_REF_NAME}" "$3" && check_runtime "$VERSIONS_FILE" "$2" + then + boldprint "Wasm sources have changed" + echo "RUNTIME_CHECK=1" >> "$GITHUB_ENV" + fi +} + +for i in "${VERSIONS_FILES[@]}"; do + while IFS=',' read -r output chain folder; do + boldprint "check if the wasm sources changed for $chain" + simnode_check $output $folder + done <<<"$i" +done # dropped through. there's something wrong; exit 1. - -exit 1 +exit 0 # vim: noexpandtab diff --git a/.maintain/client_release.sh b/.maintain/client_release.sh new file mode 100755 index 00000000000..b51daf43528 --- /dev/null +++ b/.maintain/client_release.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# check for any changes in the runtime/ and frame/*. if +# there are any changes found, it should mark the PR breaksconsensus and +# "auto-fail" the PR if there isn't a change in the runtime/src/lib.rs file +# that alters the version. + +#set -e # fail on any error + +#shellcheck source=../common/lib.sh +. "$(dirname "${0}")/./common/lib.sh" + +if has_client_changes "${LATEST_TAG_NAME}" "${GITHUB_REF_NAME}" +then + boldprint "Building new client binaries" + cargo build --release -p composable + tar -czvf composable-${{ RELEASE_VERSION }}.tar.gz target/release/composable + tar -czvf picasso_runtime.compact.wasm-${RELEASE_VERSION}.tar.gz runtime/picasso/target/srtool/release/wbuild/picasso-runtime/picasso_runtime.compact.wasm + gsutil cp *.tar.gz gs://composable-binaries/community-releases/${{ RELEASE_VERSION }}/ +fi \ No newline at end of file diff --git a/.maintain/common/lib.sh b/.maintain/common/lib.sh index 9721ba3ec7a..42313e74a76 100644 --- a/.maintain/common/lib.sh +++ b/.maintain/common/lib.sh @@ -1,24 +1,32 @@ -#!/bin/sh +#!/bin/bash api_base="https://api.github.com/repos" +LATEST_TAG_NAME=$(get_latest_release ComposableFi/composable) +GITHUB_REF_NAME=$(git rev-parse --abbrev-ref HEAD) # Function to take 2 git tags/commits and get any lines from commit messages # that contain something that looks like a PR reference: e.g., (#1234) -sanitised_git_logs(){ +sanitised_git_logs() { git --no-pager log --pretty=format:"%s" "$1...$2" | - # Only find messages referencing a PR - grep -E '\(#[0-9]+\)' | - # Strip any asterisks - sed 's/^* //g' | - # And add them all back - sed 's/^/* /g' + # Only find messages referencing a PR + grep -E '\(#[0-9]+\)' | + # Strip any asterisks + sed 's/^* //g' | + # And add them all back + sed 's/^/* /g' +} + +get_latest_release() { + curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api + grep '"tag_name":' | # Get tag line + sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value } # Returns the last published release on github # Note: we can't just use /latest because that ignores prereleases # repo: 'organization/repo' # Usage: last_github_release "$repo" -last_github_release(){ +last_github_release() { i=0 # Iterate over releases until we find the last release that's not just a draft while [ $i -lt 29 ]; do @@ -34,11 +42,12 @@ last_github_release(){ done } + # Checks whether a tag on github has been verified # repo: 'organization/repo' # tagver: 'v1.2.3' # Usage: check_tag $repo $tagver -check_tag () { +check_tag() { repo=$1 tagver=$2 tag_out=$(curl -H "Authorization: token $GITHUB_RELEASE_TOKEN" -s "$api_base/$repo/git/refs/tags/$tagver") @@ -57,12 +66,13 @@ check_tag () { fi } + # Checks whether a given PR has a given label. # repo: 'organization/repo' # pr_id: 12345 # label: B1-silent # Usage: has_label $repo $pr_id $label -has_label(){ +has_label() { repo="$1" pr_id="$2" label="$3" @@ -86,9 +96,9 @@ has_label(){ # Usage: structure_message $content $formatted_content (optional) structure_message() { if [ -z "$2" ]; then - body=$(jq -Rs --arg body "$1" '{"msgtype": "m.text", $body}' < /dev/null) + body=$(jq -Rs --arg body "$1" '{"msgtype": "m.text", $body}' ${add_spec_version} + + EOT + return 0 + + else + # check for impl_version updates: if only the impl versions changed, we assume + # there is no consensus-critical logic that has changed. + + add_impl_version="$(git diff "${LATEST_TAG_NAME}" "${GITHUB_REF_NAME}" -- "${VERSIONS_FILE}" | + sed -n -r 's/^\+[[:space:]]+impl_version: +([0-9]+),$/\1/p')" + sub_impl_version="$(git diff "${LATEST_TAG_NAME}" "${GITHUB_REF_NAME}" -- "${VERSIONS_FILE}" | + sed -n -r 's/^\-[[:space:]]+impl_version: +([0-9]+),$/\1/p')" + + # see if the impl version changed + if [ "${add_impl_version}" != "${sub_impl_version}" ]; then + boldcat <<-EOT + + changes to the runtime sources and changes in the impl version. + + impl_version: ${sub_impl_version} -> ${add_impl_version} + + EOT + return 0 + fi + + boldcat <<-EOT + + wasm source files changed but not the spec/impl version. If changes made do not alter logic, + just bump 'impl_version'. If they do change logic, bump 'spec_version'. + + source file directories: + - frame/* + - runtime/$2/* + + versions file: ${VERSIONS_FILE} + + EOT + return 1 + fi +} diff --git a/.maintain/playbooks/picashot.yml b/.maintain/playbooks/picashot.yml index 7b48b91752c..39c22bb04e4 100644 --- a/.maintain/playbooks/picashot.yml +++ b/.maintain/playbooks/picashot.yml @@ -11,7 +11,7 @@ HOST=$(echo $HOSTNAME) FILENAME=$HOST-$DATE.zip BACKUP_DIR="/var/lib/composable-data/chains" - GS_BUCKET="composable-picasso-data-sync" + GS_BUCKET="picasso-data-store" zip -r $FILENAME $BACKUP_DIR gsutil mv $FILENAME gs://$GS_BUCKET/ args: diff --git a/.maintain/run_benchmarks.sh b/.maintain/run_benchmarks.sh new file mode 100755 index 00000000000..630c6d23183 --- /dev/null +++ b/.maintain/run_benchmarks.sh @@ -0,0 +1,83 @@ +#!/bin/bash +# +# Runs benchmarks for runtimes whose files have changed. + +#set -e # fail on any error + +#shellcheck source=../common/lib.sh +. "$(dirname "${0}")/./common/lib.sh" + +LATEST_TAG_NAME=$(get_latest_release ComposableFi/composable) +GITHUB_REF_NAME=$(git rev-parse --abbrev-ref HEAD) + +VERSIONS_FILES=( + "runtime/picasso/src/weights,picasso,picasso" + "runtime/dali/src/weights,dali-chachacha,dali" + "runtime/composable/src/weights,composable,composable" +) + +steps=50 +repeat=20 + +pallets=( + oracle + frame_system + timestamp + session + balances + indices + membership + treasury + scheduler + collective + democracy + collator_selection + utility + lending + dutch_auction +) + + boldprint "make sure the main branch and release tag are available in shallow clones" + git fetch --depth="${GIT_DEPTH:-100}" origin main + git fetch --depth="${GIT_DEPTH:-100}" origin "${LATEST_TAG_NAME}" + git tag -f "${LATEST_TAG_NAME}" FETCH_HEAD + git log -n1 "${LATEST_TAG_NAME}" + + +/home/runner/.cargo/bin/rustup install nightly +/home/runner/.cargo/bin/rustup target add wasm32-unknown-unknown --toolchain nightly +/home/runner/.cargo/bin/cargo build --release -p composable --features=runtime-benchmarks + +run_benchmarks() { + OUTPUT=$1 + CHAIN=$2 + # shellcheck disable=SC2068 + boldprint "Running benchmarks for $CHAIN" + # shellcheck disable=SC2068 + for p in ${pallets[@]}; do + ./target/release/composable benchmark \ + --chain="$CHAIN" \ + --execution=wasm \ + --wasm-execution=compiled \ + --pallet="$p" \ + --extrinsic='*' \ + --steps=$steps \ + --repeat=$repeat \ + --raw \ + --output="$OUTPUT" + done + USERNAME=$(gcloud secrets versions access latest --secret=github-api-username) + PASSWORD=$(gcloud secrets versions access latest --secret=github-api-token) + git remote set-url origin https://$USERNAME:$PASSWORD@github.com/ComposableFi/composable.git + git add . + git commit -m "Updates weights for $CHAIN" + git push origin $GITHUB_REF_NAME +} + +for i in "${VERSIONS_FILES[@]}"; do + while IFS=',' read -r output chain folder; do + if has_runtime_changes "${LATEST_TAG_NAME}" "${GITHUB_REF_NAME}" "$folder"; then + run_benchmarks $output $chain + fi + done <<<"$i" +done diff --git a/.maintain/run_simnode.sh b/.maintain/run_simnode.sh new file mode 100755 index 00000000000..49a35e97870 --- /dev/null +++ b/.maintain/run_simnode.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# +# Runs simnode for runtimes whose files have changed. + +#set -e # fail on any error + +#shellcheck source=../common/lib.sh +. "$(dirname "${0}")/./common/lib.sh" + +# shellcheck disable=SC2039 +VERSIONS_FILES=( + "picasso,picasso" + "dali-chachacha,dali" + # "composable,composable" # TODO: add simnode suppport for composable +) + +LATEST_TAG_NAME=$(get_latest_release ComposableFi/composable) +GITHUB_REF_NAME=$(git rev-parse --abbrev-ref HEAD) + +/home/runner/.cargo/bin/rustup update nightly +/home/runner/.cargo/bin/rustup target add wasm32-unknown-unknown --toolchain nightly +/home/runner/.cargo/bin/cargo build --release -p simnode +YDATE=$(date -d yesterday +'%m-%d-%Y') + +run_simnode() { + CHAIN="$1" + boldprint "Running simnode for $CHAIN" + FILENAME=cl-1-$YDATE.zip + GS_BUCKET="$CHAIN-data-store" + sudo gsutil cp gs://$GS_BUCKET/"$FILENAME" . + sudo unzip -o "$FILENAME" -d /tmp/db + ./target/release/simnode --chain="$CHAIN" --base-path=/tmp/db/ --pruning=archive --execution=wasm +} + +# shellcheck disable=SC2039 +for i in "${VERSIONS_FILES[@]}"; do + while IFS=',' read -r chain folder; do + boldprint "check if the wasm sources changed for $chain" + if has_runtime_changes "${LATEST_TAG_NAME}" "${GITHUB_REF_NAME}" "$folder"; then + # shellcheck disable=SC2086 + run_simnode $chain + fi + done <<<"$i" +done diff --git a/.maintain/runtime_release.sh b/.maintain/runtime_release.sh new file mode 100755 index 00000000000..7db3831f3d2 --- /dev/null +++ b/.maintain/runtime_release.sh @@ -0,0 +1,43 @@ +#!/bin/bash +# +# check for any changes in the runtime/ and frame/*. if +# there are any changes found, it should mark the PR breaksconsensus and +# "auto-fail" the PR if there isn't a change in the runtime/src/lib.rs file +# that alters the version. + +#set -e # fail on any error + +#shellcheck source=../common/lib.sh +. "$(dirname "${0}")/./common/lib.sh" + +# shellcheck disable=SC2039 +VERSIONS_FILES=( + "runtime/picasso/src/lib.rs,picasso,picasso" + "runtime/dali/src/lib.rs,dali-chachacha,dali" + "runtime/composable/src/lib.rs,composable,composable" +) + +# Install the neccessary tools needed for building +cargo install --git https://github.com/chevdor/srtool-cli +cargo install --locked --git https://github.com/chevdor/subwasm --tag v0.16.1 + + +build_runtime () { + chain=$3 + # srtool for reproducible builds + srtool build --package "$chain"-runtime --profile release --runtime-dir ./runtime/"$chain" + # subwasm for runtime metadata + subwasm info ./runtime/"$chain"/target/srtool/release/wbuild/"$chain"-runtime/"$chain"_runtime.compact.wasm >> "$chain"-release.md +} + +# Check which runtimes have changed and build them +for i in "${VERSIONS_FILES[@]}"; do + while IFS=',' read -r output chain folder; do + boldprint "check if the wasm sources changed for $chain" + if has_runtime_changes "${LATEST_TAG_NAME}" "${GITHUB_REF_NAME}" "$folder" + then + build_runtime $output $chain $folder + fi + done <<< "$i" +done + diff --git a/Cargo.lock b/Cargo.lock index aeebd7302f3..005277e1aa9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -48,7 +48,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fc95d1bdb8e6666b2b217308eeeb09f2d6728d104be3e31916cc74d15420331" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", ] [[package]] @@ -57,7 +57,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", ] [[package]] @@ -227,7 +227,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3203e79f4dd9bdda415ed03cf14dae5a2bf775c683a00f94e9cd1faf0f596e5" dependencies = [ "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -370,7 +370,7 @@ dependencies = [ "rand 0.7.3", "serde", "serde_json", - "sha2 0.9.8", + "sha2 0.9.9", ] [[package]] @@ -399,7 +399,7 @@ dependencies = [ "async-io", "async-lock", "async-process", - "crossbeam-utils 0.8.5", + "crossbeam-utils 0.8.6", "futures-channel", "futures-core", "futures-io", @@ -444,7 +444,7 @@ checksum = "061a7acccaa286c011ddc30970520b98fa40e00c9d644633fb26b5fc63a265e3" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -663,7 +663,7 @@ dependencies = [ "reqwest", "serde", "serde_json", - "sha2 0.9.8", + "sha2 0.9.9", "tungstenite 0.15.0", "url 2.2.2", ] @@ -806,7 +806,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ "block-padding 0.2.1", - "generic-array 0.14.4", + "generic-array 0.14.5", ] [[package]] @@ -1048,9 +1048,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.8.0" +version = "3.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f1e260c3a9040a7c19a12468758f4c16f31a81a1fe087482be9570ec864bb6c" +checksum = "a4a45a46ab1f2412e53d3a0ade76ffad2025804294569aae387231a0cd6e0899" [[package]] name = "byte-slice-cast" @@ -1227,7 +1227,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "12f8e7987cbd042a63249497f41aed09f8e65add917ea6566effbc56578d6801" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", ] [[package]] @@ -1236,7 +1236,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", ] [[package]] @@ -1276,9 +1276,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.0.1" +version = "3.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1121e32687f7f90b905d4775273305baa4f32cd418923e9b0fa726533221857" +checksum = "12e8611f9ae4e068fa3e56931fded356ff745e70987ff76924a6e0ab1c8ef2e3" dependencies = [ "atty", "bitflags", @@ -1293,15 +1293,15 @@ dependencies = [ [[package]] name = "clap_derive" -version = "3.0.0" +version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1b9752c030a14235a0bd5ef3ad60a1dcac8468c30921327fc8af36b20c790b9" +checksum = "517358c28fcef6607bf6f76108e02afad7e82297d132a6b846dcc1fc3efcd153" dependencies = [ - "heck", + "heck 0.4.0", "proc-macro-error", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -1315,9 +1315,9 @@ dependencies = [ [[package]] name = "cmake" -version = "0.1.46" +version = "0.1.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7b858541263efe664aead4a5209a4ae5c5d2811167d4ed4ee0944503f8d2089" +checksum = "e8ad8cef104ac57b68b89df3208164d228503abbdce70f6880ffa3d970e7443a" dependencies = [ "cc", ] @@ -1606,7 +1606,7 @@ dependencies = [ "hmac 0.10.1", "percent-encoding 2.1.0", "rand 0.8.4", - "sha2 0.9.8", + "sha2 0.9.9", "time 0.2.27", "version_check 0.9.4", ] @@ -1798,12 +1798,12 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4" +checksum = "e54ea8bc3fb1ee042f5aace6e3c6e025d3874866da222930f70ce62aceba0bfa" dependencies = [ "cfg-if 1.0.0", - "crossbeam-utils 0.8.5", + "crossbeam-utils 0.8.6", ] [[package]] @@ -1814,17 +1814,17 @@ checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" dependencies = [ "cfg-if 1.0.0", "crossbeam-epoch", - "crossbeam-utils 0.8.5", + "crossbeam-utils 0.8.6", ] [[package]] name = "crossbeam-epoch" -version = "0.9.5" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec02e091aa634e2c3ada4a392989e7c3116673ef0ac5b72232439094d73b7fd" +checksum = "97242a70df9b89a65d0b6df3c4bf5b9ce03c5b7309019777fbde37e7537f8762" dependencies = [ "cfg-if 1.0.0", - "crossbeam-utils 0.8.5", + "crossbeam-utils 0.8.6", "lazy_static", "memoffset", "scopeguard", @@ -1843,9 +1843,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db" +checksum = "cfcae03edb34f947e64acdb1c33ec169824e20657e9ecb61cef6c8c74dcb8120" dependencies = [ "cfg-if 1.0.0", "lazy_static", @@ -1863,7 +1863,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", "subtle", ] @@ -1873,7 +1873,7 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bff07008ec701e8028e2ceb8f83f0e4274ee62bd2dbdc4fefff2e9a91824081a" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", "subtle", ] @@ -1883,7 +1883,7 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", "subtle", ] @@ -1903,7 +1903,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccc0a48a9b826acdf4028595adc9db92caea352f7af011a3034acd172a52a0aa" dependencies = [ "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2166,7 +2166,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2431,7 +2431,7 @@ dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", "strsim 0.10.0", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2442,7 +2442,7 @@ checksum = "72c41b3b7352feb3211a0d743dc5700a4e3b60f51bd2b368892d1e0f9a95f44b" dependencies = [ "darling_core", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2478,7 +2478,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a5bbed42daaa95e780b60a50546aa345b8413a1e46f9a40a12907d3598f038db" dependencies = [ "data-encoding", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2499,7 +2499,7 @@ checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2512,7 +2512,7 @@ dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", "rustc_version 0.4.0", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2530,7 +2530,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", ] [[package]] @@ -2648,7 +2648,7 @@ checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2676,7 +2676,7 @@ dependencies = [ "ed25519", "rand 0.7.3", "serde", - "sha2 0.9.8", + "sha2 0.9.9", "zeroize", ] @@ -2701,10 +2701,10 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c5f0096a91d210159eceb2ff5e1c4da18388a170e1e3ce948aac9c8fdbbf595" dependencies = [ - "heck", + "heck 0.3.3", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2730,7 +2730,7 @@ checksum = "946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46cce" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2741,7 +2741,7 @@ checksum = "4e58b112d5099aa0857c5d05f0eacab86406dd8c0f85fe5d320a13256d29ecf4" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -2925,7 +2925,7 @@ dependencies = [ "log 0.4.14", "serde", "serde_urlencoded", - "sha2 0.9.8", + "sha2 0.9.9", "sp-core", "structopt", "subxt", @@ -3212,7 +3212,7 @@ dependencies = [ "frame-support-procedural-tools", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -3224,7 +3224,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -3234,7 +3234,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.13# dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -3444,7 +3444,7 @@ checksum = "6dbd947adfffb0efc70599b3ddcf7b5597bb5fa9e245eb99f62b3a5f7bb8bd3c" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -3512,9 +3512,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.4" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" +checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803" dependencies = [ "typenum", "version_check 0.9.4", @@ -3625,9 +3625,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f072413d126e57991455e0a922b31e4c8ba7c2ffbebf6b78b4f8521397d65cd" +checksum = "0c9de88456263e249e241fcd211d3954e2c9b0ef7ccfc235a444eb367cae3689" dependencies = [ "bytes 1.1.0", "fnv", @@ -3644,9 +3644,9 @@ dependencies = [ [[package]] name = "handlebars" -version = "4.1.6" +version = "4.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167fa173496c9eadd8749cca6f8339ac88e248f3ad2442791d0b743318a94fc0" +checksum = "2483bce82dd3ed52509d0117e4a30a488bd608be250ed7a0185301314239ed31" dependencies = [ "log 0.4.14", "pest", @@ -3714,6 +3714,12 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "heck" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" + [[package]] name = "hermit-abi" version = "0.1.19" @@ -3788,7 +3794,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ "digest 0.9.0", - "generic-array 0.14.4", + "generic-array 0.14.5", "hmac 0.8.1", ] @@ -4092,7 +4098,7 @@ checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -4103,9 +4109,9 @@ checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" [[package]] name = "indexmap" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" +checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223" dependencies = [ "autocfg 1.0.1", "hashbrown", @@ -4374,7 +4380,7 @@ dependencies = [ "proc-macro-crate 0.1.5", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -4511,7 +4517,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -4523,7 +4529,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -4903,7 +4909,7 @@ dependencies = [ "rand 0.8.4", "ring", "rw-stream-sink", - "sha2 0.9.8", + "sha2 0.9.9", "smallvec 1.7.0", "thiserror", "unsigned-varint 0.7.1", @@ -4974,7 +4980,7 @@ dependencies = [ "prost-build", "rand 0.7.3", "regex", - "sha2 0.9.8", + "sha2 0.9.9", "smallvec 1.7.0", "unsigned-varint 0.7.1", "wasm-timer", @@ -5015,7 +5021,7 @@ dependencies = [ "prost", "prost-build", "rand 0.7.3", - "sha2 0.9.8", + "sha2 0.9.9", "smallvec 1.7.0", "uint", "unsigned-varint 0.7.1", @@ -5091,7 +5097,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.4", - "sha2 0.9.8", + "sha2 0.9.9", "snow", "static_assertions", "x25519-dalek", @@ -5182,7 +5188,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.4", - "sha2 0.9.8", + "sha2 0.9.9", "thiserror", "unsigned-varint 0.7.1", "void", @@ -5231,7 +5237,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "072c290f727d39bdc4e9d6d1c847978693d25a673bd757813681e33e5f6c00c2" dependencies = [ "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -5335,7 +5341,7 @@ dependencies = [ "libsecp256k1-gen-genmult", "rand 0.8.4", "serde", - "sha2 0.9.8", + "sha2 0.9.9", "typenum", ] @@ -5580,9 +5586,9 @@ dependencies = [ [[package]] name = "memmap2" -version = "0.5.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4647a11b578fead29cdbb34d4adef8dd3dc35b876c9c6d5240d83f205abfe96e" +checksum = "fe3179b85e1fd8b14447cbebadb75e45a1002f541b925f0bfec366d56a81c56d" dependencies = [ "libc", ] @@ -5817,9 +5823,9 @@ dependencies = [ "blake2s_simd", "blake3", "digest 0.9.0", - "generic-array 0.14.4", + "generic-array 0.14.5", "multihash-derive", - "sha2 0.9.8", + "sha2 0.9.9", "sha3", "unsigned-varint 0.5.1", ] @@ -5831,9 +5837,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "752a61cd890ff691b4411423d23816d5866dd5621e4d1c5687a53b94b5a979d8" dependencies = [ "digest 0.9.0", - "generic-array 0.14.4", + "generic-array 0.14.5", "multihash-derive", - "sha2 0.9.8", + "sha2 0.9.9", "unsigned-varint 0.7.1", ] @@ -5847,7 +5853,7 @@ dependencies = [ "proc-macro-error", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", "synstructure", ] @@ -5915,7 +5921,7 @@ checksum = "01fcc0b8149b4632adc89ac3b7b31a12fb6099a0317a4eb2ebff574ef7de7218" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -6132,7 +6138,7 @@ checksum = "a15c83b586f00268c619c1cb3340ec1a6f59dd9ba1d9833a273a68e6d5cd8ffc" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -6151,9 +6157,9 @@ dependencies = [ [[package]] name = "openssl-probe" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" @@ -7315,7 +7321,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -7660,7 +7666,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -7708,7 +7714,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ "proc-macro2 1.0.36", - "syn 1.0.84", + "syn 1.0.85", "synstructure", ] @@ -7935,7 +7941,7 @@ dependencies = [ "pest_meta", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -8062,7 +8068,7 @@ checksum = "044964427019eed9d49d9d5bbce6047ef18f37100ea400912a9fa4a3523ab12a" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -8073,7 +8079,7 @@ checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -8826,7 +8832,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -9258,7 +9264,7 @@ version = "0.1.0" dependencies = [ "binance", "chrono", - "clap 3.0.1", + "clap 3.0.7", "custom_derive", "enum_derive", "env_logger 0.9.0", @@ -9331,7 +9337,7 @@ dependencies = [ "proc-macro-error-attr", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", "version_check 0.9.4", ] @@ -9452,7 +9458,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5" dependencies = [ "bytes 1.1.0", - "heck", + "heck 0.3.3", "itertools", "lazy_static", "log 0.4.14", @@ -9475,7 +9481,7 @@ dependencies = [ "itertools", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -9797,7 +9803,7 @@ checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e" dependencies = [ "crossbeam-channel", "crossbeam-deque", - "crossbeam-utils 0.8.5", + "crossbeam-utils 0.8.6", "lazy_static", "num_cpus", ] @@ -9866,7 +9872,7 @@ checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -9946,15 +9952,16 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c4e0a76dc12a116108933f6301b95e83634e0c47b0afbed6abbaa0601e99258" +checksum = "87f242f1488a539a79bac6dbe7c8609ae43b7914b7736210f239a37cccb32525" dependencies = [ "base64 0.13.0", "bytes 1.1.0", "encoding_rs", "futures-core", "futures-util", + "h2", "http", "http-body", "hyper 0.14.16", @@ -10395,7 +10402,7 @@ version = "4.0.0-dev" source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.13#1681b1e8a82d7189b1fe32fe054a421a0cb96c0c" dependencies = [ "impl-trait-for-tuples", - "memmap2 0.5.0", + "memmap2 0.5.2", "parity-scale-codec", "sc-chain-spec-derive", "sc-network", @@ -10414,7 +10421,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -11233,7 +11240,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -11311,7 +11318,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -11474,7 +11481,7 @@ checksum = "ed201699328568d8d08208fdd080e3ff594e6c422e438b6705905da01005d537" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -11577,9 +11584,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.9.8" +version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" dependencies = [ "block-buffer 0.9.0", "cfg-if 1.0.0", @@ -11636,9 +11643,9 @@ dependencies = [ [[package]] name = "signal-hook-tokio" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6c5d32165ff8b94e68e7b3bdecb1b082e958c22434b363482cfb89dcd6f3ff8" +checksum = "213241f76fb1e37e27de3b6aa1b068a2c333233b59cca6634f634b80a27ecf1e" dependencies = [ "futures-core", "libc", @@ -11648,9 +11655,9 @@ dependencies = [ [[package]] name = "signature" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02658e48d89f2bec991f9a78e69cfa4c316f8d6a6c4ec12fae1aeb263d486788" +checksum = "f054c6c1a6e95179d6f23ed974060dcefb2d9388bb7256900badad682c499de4" [[package]] name = "simba" @@ -11774,7 +11781,7 @@ dependencies = [ "rand_core 0.6.3", "ring", "rustc_version 0.3.3", - "sha2 0.9.8", + "sha2 0.9.9", "subtle", "x25519-dalek", ] @@ -11842,7 +11849,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12043,7 +12050,7 @@ dependencies = [ "schnorrkel", "secrecy", "serde", - "sha2 0.9.8", + "sha2 0.9.9", "sp-core-hashing", "sp-debug-derive", "sp-externalities", @@ -12067,7 +12074,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.13# dependencies = [ "blake2-rfc", "byteorder", - "sha2 0.9.8", + "sha2 0.9.9", "sp-std", "tiny-keccak", "twox-hash", @@ -12081,7 +12088,7 @@ dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", "sp-core-hashing", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12100,7 +12107,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.13# dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12229,7 +12236,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12310,7 +12317,7 @@ dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12493,7 +12500,7 @@ dependencies = [ "parity-scale-codec", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12515,9 +12522,9 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "ss58-registry" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c83f0afe7e571565ef9aae7b0e4fb30fcaec4ebb9aea2f00489b772782aa03a4" +checksum = "1230685dc82f8699110640244d361a7099c602f08bddc5c90765a5153b4881dc" dependencies = [ "Inflector", "proc-macro2 1.0.36", @@ -12570,7 +12577,7 @@ dependencies = [ "memchr", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12610,7 +12617,7 @@ dependencies = [ "quote 1.0.14", "serde", "serde_derive", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12626,7 +12633,7 @@ dependencies = [ "serde_derive", "serde_json", "sha1", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12664,11 +12671,11 @@ version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" dependencies = [ - "heck", + "heck 0.3.3", "proc-macro-error", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12686,10 +12693,10 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" dependencies = [ - "heck", + "heck 0.3.3", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12701,7 +12708,7 @@ dependencies = [ "hmac 0.11.0", "pbkdf2 0.8.0", "schnorrkel", - "sha2 0.9.8", + "sha2 0.9.9", "zeroize", ] @@ -12865,14 +12872,14 @@ dependencies = [ "async-trait", "darling", "frame-metadata", - "heck", + "heck 0.3.3", "parity-scale-codec", "proc-macro-crate 0.1.5", "proc-macro-error", "proc-macro2 1.0.36", "quote 1.0.14", "scale-info", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12883,7 +12890,7 @@ dependencies = [ "async-trait", "darling", "frame-metadata", - "heck", + "heck 0.3.3", "parity-scale-codec", "proc-macro-crate 0.1.5", "proc-macro-error", @@ -12891,7 +12898,7 @@ dependencies = [ "quote 1.0.14", "scale-info", "subxt-codegen", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -12913,9 +12920,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.84" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecb2e6da8ee5eb9a61068762a32fa9619cc591ceb055b3687f4cd4051ec2e06b" +checksum = "a684ac3dcd8913827e18cd09a68384ee66c1de24157e3c556c9ab16d85695fb7" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", @@ -12930,7 +12937,7 @@ checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", "unicode-xid 0.2.2", ] @@ -12948,13 +12955,13 @@ checksum = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff" [[package]] name = "tempfile" -version = "3.2.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" +checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" dependencies = [ "cfg-if 1.0.0", + "fastrand", "libc", - "rand 0.8.4", "redox_syscall 0.2.10", "remove_dir_all", "winapi 0.3.9", @@ -13001,7 +13008,7 @@ checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -13104,7 +13111,7 @@ dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", "standback", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -13119,7 +13126,7 @@ dependencies = [ "pbkdf2 0.4.0", "rand 0.7.3", "rustc-hash", - "sha2 0.9.8", + "sha2 0.9.9", "thiserror", "unicode-normalization", "wasm-bindgen", @@ -13209,7 +13216,7 @@ checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -13373,7 +13380,7 @@ checksum = "f4f480b8f81512e825f337ad51e94c1eb5d3bbdf2b363dcd01e2b19a9ffe3f8e" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -13704,7 +13711,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" dependencies = [ - "generic-array 0.14.4", + "generic-array 0.14.5", "subtle", ] @@ -13916,7 +13923,7 @@ dependencies = [ "log 0.4.14", "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", "wasm-bindgen-shared", ] @@ -13950,7 +13957,7 @@ checksum = "7803e0eea25835f8abdc585cd3021b3deb11543c6fe226dcd30b228857c5c5ab" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -14063,7 +14070,7 @@ dependencies = [ "log 0.4.14", "rsix", "serde", - "sha2 0.9.8", + "sha2 0.9.9", "toml", "winapi 0.3.9", "zstd", @@ -14473,7 +14480,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.13#7d8f dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", ] [[package]] @@ -14507,24 +14514,24 @@ checksum = "65f1a51723ec88c66d5d1fe80c841f17f63587d6691901d66be9bec6c3b51f73" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.14", - "syn 1.0.84", + "syn 1.0.85", "synstructure", ] [[package]] name = "zstd" -version = "0.9.1+zstd.1.5.1" +version = "0.9.2+zstd.1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "538b8347df9257b7fbce37677ef7535c00a3c7bf1f81023cc328ed7fe4b41de8" +checksum = "2390ea1bf6c038c39674f22d95f0564725fc06034a47129179810b2fc58caa54" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "4.1.2+zstd.1.5.1" +version = "4.1.3+zstd.1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb4cfe2f6e6d35c5d27ecd9d256c4b6f7933c4895654917460ec56c29336cc1" +checksum = "e99d81b99fb3c2c2c794e3fe56c305c63d5173a16a46b5850b07c935ffc7db79" dependencies = [ "libc", "zstd-sys", diff --git a/docker/Dockerfile b/docker/Dockerfile index fb443c9fe85..4a0fcee9977 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,16 +20,15 @@ LABEL description="Precompiled Docker image for Composable" \ image.documentation="https://github.com/ComposableFi/composable#readme" SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN curl "https://storage.googleapis.com/composable-binaries/community-releases/${VERSION}/composable-${VERSION}.tar.gz" | tar -xz - -RUN chmod +x target/release/composable && mv target/release/composable /usr/local/bin - -RUN useradd -m -u 1001 -U -s /bin/sh -d /composable composable && \ +RUN curl "https://storage.googleapis.com/composable-binaries/community-releases/${VERSION}/composable-${VERSION}.tar.gz" | tar -xz \ + chmod +x target/release/composable && mv target/release/composable /usr/local/bin \ + useradd -m -u 1001 -U -s /bin/sh -d /composable composable && \ mkdir -p /composable/.local/share/local_testnet && \ mkdir /data && \ chown -R composable:composable /data && \ chown -R composable:composable /composable/.local/share/local_testnet && \ ln -s /data /composable/.local/share/local_testnet + USER composable EXPOSE 30333 9933 9944 9615 diff --git a/frame/assets-registry/Cargo.toml b/frame/assets-registry/Cargo.toml index 12fb5feb14b..a4f1d109066 100644 --- a/frame/assets-registry/Cargo.toml +++ b/frame/assets-registry/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/assets/Cargo.toml b/frame/assets/Cargo.toml index a81b1c8ce36..5a933d365da 100644 --- a/frame/assets/Cargo.toml +++ b/frame/assets/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/bonded-finance/Cargo.toml b/frame/bonded-finance/Cargo.toml index 5b38f6e4bc7..a103c6ab1d1 100644 --- a/frame/bonded-finance/Cargo.toml +++ b/frame/bonded-finance/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/call-filter/Cargo.toml b/frame/call-filter/Cargo.toml index 4ad49e6cb19..eb73435e785 100644 --- a/frame/call-filter/Cargo.toml +++ b/frame/call-filter/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [dependencies] serde = { version = "1.0.124", optional = true } diff --git a/frame/composable-traits/Cargo.toml b/frame/composable-traits/Cargo.toml index 50c7936ee1c..96f552d286d 100644 --- a/frame/composable-traits/Cargo.toml +++ b/frame/composable-traits/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/crowdloan-rewards/Cargo.toml b/frame/crowdloan-rewards/Cargo.toml index 89a7984825c..c9ac573167e 100644 --- a/frame/crowdloan-rewards/Cargo.toml +++ b/frame/crowdloan-rewards/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/currency-factory/Cargo.toml b/frame/currency-factory/Cargo.toml index 44542404a77..e0bea308917 100644 --- a/frame/currency-factory/Cargo.toml +++ b/frame/currency-factory/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/curve-amm/Cargo.toml b/frame/curve-amm/Cargo.toml index 09f9d4c18d6..971c34d3671 100644 --- a/frame/curve-amm/Cargo.toml +++ b/frame/curve-amm/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/dutch-auction/Cargo.toml b/frame/dutch-auction/Cargo.toml index f98a549fb44..5d8e4871299 100644 --- a/frame/dutch-auction/Cargo.toml +++ b/frame/dutch-auction/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] @@ -65,5 +65,4 @@ runtime-benchmarks = [ "frame-benchmarking", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "pallet-assets/runtime-benchmarks", ] diff --git a/frame/governance-registry/Cargo.toml b/frame/governance-registry/Cargo.toml index d9da42e056b..b871df12b97 100644 --- a/frame/governance-registry/Cargo.toml +++ b/frame/governance-registry/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/lending/Cargo.toml b/frame/lending/Cargo.toml index 56d6c75a725..b73946ec3ad 100644 --- a/frame/lending/Cargo.toml +++ b/frame/lending/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/liquidations/Cargo.toml b/frame/liquidations/Cargo.toml index 89a12c7efe5..24f422a5ba4 100644 --- a/frame/liquidations/Cargo.toml +++ b/frame/liquidations/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/oracle/Cargo.toml b/frame/oracle/Cargo.toml index 953dd708cdb..778724b1c96 100644 --- a/frame/oracle/Cargo.toml +++ b/frame/oracle/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/ping/Cargo.toml b/frame/ping/Cargo.toml index 170bb9c6813..94028b7baf2 100644 --- a/frame/ping/Cargo.toml +++ b/frame/ping/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + name = "pallet-ping" version = "0.1.0" diff --git a/frame/transaction-fee/Cargo.toml b/frame/transaction-fee/Cargo.toml index 4333f7a02a0..776276fc037 100644 --- a/frame/transaction-fee/Cargo.toml +++ b/frame/transaction-fee/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/uniswap-v2/Cargo.toml b/frame/uniswap-v2/Cargo.toml index 93aed2fc847..15926b1d827 100644 --- a/frame/uniswap-v2/Cargo.toml +++ b/frame/uniswap-v2/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/vault/Cargo.toml b/frame/vault/Cargo.toml index fb7d849ff3d..69889b22649 100644 --- a/frame/vault/Cargo.toml +++ b/frame/vault/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/frame/vesting/Cargo.toml b/frame/vesting/Cargo.toml index 2807f9d0205..19487c20e18 100644 --- a/frame/vesting/Cargo.toml +++ b/frame/vesting/Cargo.toml @@ -5,7 +5,7 @@ version = "0.0.1" authors = ["Composable Developers"] homepage = "https://composable.finance" edition = "2021" -rust-version = "1.56" + [dependencies] scale-info = { version = "1.0", default-features = false, features = ["derive"] } diff --git a/integration-tests/Cargo.toml b/integration-tests/Cargo.toml index 58cd6a274a9..1ce356507ab 100644 --- a/integration-tests/Cargo.toml +++ b/integration-tests/Cargo.toml @@ -2,7 +2,7 @@ name = "integration-tests" version = "0.1.0" edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/node/src/res/picasso.json b/node/src/res/picasso.json index c7c90e07b75..57fd6b210f8 100644 --- a/node/src/res/picasso.json +++ b/node/src/res/picasso.json @@ -3,9 +3,9 @@ "id": "picasso", "chainType": "Live", "bootNodes": [ - "/dns/picasso-bn1.composable.finance/tcp/30334/p2p/12D3KooWJUwiZN4ePCwgbEM7AxJ4U2SaTrrgzkppFQxDmDhXXX2x", - "/dns/picasso-bn2.composable.finance/tcp/30334/p2p/12D3KooWD4M96HiuBUvhZZ8jmSzic4V6cWWvxFGPa7XAZnubmLtX", - "/dns/picasso-bn3.composable.finance/tcp/30334/p2p/12D3KooWASeF5JW1HGvpH46r9UzTBh77TfP4z8VPQ1RuyiKf34JN" + "/dns/picasso-bn1.composable.finance/tcp/30334/p2p/12D3KooWNh6vJ8ZypaXGJDQmxrDs8TC1HTNyPDSF9dfe1waFLaHD", + "/dns/picasso-bn2.composable.finance/tcp/30334/p2p/12D3KooWAKCft1b38awDNhCzV82Rb8qfRVyJv7E1pCEE95aoBzfs", + "/dns/picasso-bn3.composable.finance/tcp/30334/p2p/12D3KooWKTTnduPVwdmZS29AZaSSSTP6TXBv3FQ6r775bqC8o6gJ" ], "telemetryEndpoints": [ [ diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index eadb1ff28cd..54db6067563 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -3,7 +3,7 @@ name = "common" version = "0.8.30" authors = ["Composable Developers "] edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/runtime/composable/Cargo.toml b/runtime/composable/Cargo.toml index 669c0afd8c4..398f4f31e7a 100644 --- a/runtime/composable/Cargo.toml +++ b/runtime/composable/Cargo.toml @@ -2,7 +2,7 @@ name = "composable-runtime" version = "0.1.0" edition = "2021" -rust-version = "1.56" + description = "Composable, Polkadot Parachain Runtime Implementation" authors = ["Seun Lanlege "] diff --git a/runtime/dali/Cargo.toml b/runtime/dali/Cargo.toml index 9ec36dbff00..506953c14e8 100644 --- a/runtime/dali/Cargo.toml +++ b/runtime/dali/Cargo.toml @@ -2,7 +2,7 @@ name = "dali-runtime" version = "0.1.0" edition = "2021" -rust-version = "1.56" + description = "Dali, Testnet Parachain Runtime Implementation" authors = ["Seun Lanlege "] @@ -58,7 +58,7 @@ assets = { package = "pallet-assets", path = '../../frame/assets', default-featu crowdloan-rewards = { package = "pallet-crowdloan-rewards", path = '../../frame/crowdloan-rewards', default-features = false } bonded-finance = { package = "pallet-bonded-finance", path = "../../frame/bonded-finance", default-features = false } vesting = { package = "pallet-vesting", path = "../../frame/vesting", default-features = false } -dutch-auction = { package = "pallet-dutch-auction", path = "../../frame/dutch-auction", default-features = false } + dutch-auction = { package = "pallet-dutch-auction", path = "../../frame/dutch-auction", default-features = false } common = { path = "../common", default-features = false } primitives = { path = "../primitives", default-features = false } oracle = { package = "pallet-oracle", path = "../../frame/oracle", default-features = false } @@ -171,7 +171,8 @@ std = [ "composable-traits/std", "crowdloan-rewards/std", "bonded-finance/std", - "vesting/std" + "dutch-auction/std", + "vesting/std" ] runtime-benchmarks = [ "assets/runtime-benchmarks", @@ -193,7 +194,6 @@ runtime-benchmarks = [ "xcm-builder/runtime-benchmarks", "indices/runtime-benchmarks", "crowdloan-rewards/runtime-benchmarks", - "dutch-auction/runtime-benchmarks", "identity/runtime-benchmarks", "multisig/runtime-benchmarks", "membership/runtime-benchmarks", @@ -206,4 +206,5 @@ runtime-benchmarks = [ "vesting/runtime-benchmarks", "assets/runtime-benchmarks", "bonded-finance/runtime-benchmarks", + "dutch-auction/runtime-benchmarks", ] diff --git a/runtime/picasso/Cargo.toml b/runtime/picasso/Cargo.toml index 00968ab44d1..ba0ba0b09ff 100644 --- a/runtime/picasso/Cargo.toml +++ b/runtime/picasso/Cargo.toml @@ -2,7 +2,7 @@ name = "picasso-runtime" version = "0.1.0" edition = "2021" -rust-version = "1.56" + description = "Picasso, Kusama Parachain Runtime Implementation" authors = ["Seun Lanlege "] @@ -23,7 +23,6 @@ normal = [ "pallet-vault", "session-benchmarking", "vault", - "pallet-dutch-auction", ] [dependencies] @@ -172,12 +171,12 @@ std = [ "orml-xcm-support/std", "orml-unknown-tokens/std", "composable-traits/std", - "governance-registry/std", - "currency-factory/std", - "assets/std", - "vesting/std", - "bonded-finance/std", - "crowdloan-rewards/std", + "governance-registry/std", + "currency-factory/std", + "assets/std", + "vesting/std", + "bonded-finance/std", + "crowdloan-rewards/std", ] runtime-benchmarks = [ @@ -204,10 +203,10 @@ runtime-benchmarks = [ "collective/runtime-benchmarks", "democracy/runtime-benchmarks", "utility/runtime-benchmarks", - "crowdloan-rewards/runtime-benchmarks", - "currency-factory/runtime-benchmarks", - "assets/runtime-benchmarks", - "vesting/runtime-benchmarks", - "bonded-finance/runtime-benchmarks", + "crowdloan-rewards/runtime-benchmarks", + "currency-factory/runtime-benchmarks", + "assets/runtime-benchmarks", + "vesting/runtime-benchmarks", + "bonded-finance/runtime-benchmarks", ] diff --git a/runtime/primitives/Cargo.toml b/runtime/primitives/Cargo.toml index 1bdd57f05a3..ebf9ed231c2 100644 --- a/runtime/primitives/Cargo.toml +++ b/runtime/primitives/Cargo.toml @@ -3,7 +3,7 @@ name = "primitives" version = "0.1.0" authors = ["Composable Developers "] edition = "2021" -rust-version = "1.56" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index e07af34e7d3..00000000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,5 +0,0 @@ -[toolchain] -channel = "nightly-2021-11-29" -components = [ "rustfmt", "rustc", "rust-std", "cargo", "clippy", "llvm-tools-preview"] -targets = [ "wasm32-unknown-unknown" ] -profile = "minimal" \ No newline at end of file diff --git a/utils/price-feed/Cargo.toml b/utils/price-feed/Cargo.toml index 4d1c922cbac..427f972fc35 100644 --- a/utils/price-feed/Cargo.toml +++ b/utils/price-feed/Cargo.toml @@ -2,7 +2,7 @@ name = "price-feed" version = "0.1.0" edition = "2021" -rust-version = "1.56" + [dependencies] enum_derive = "0.1.7"