Skip to content

Commit

Permalink
upgrade polkadot sdk (#208)
Browse files Browse the repository at this point in the history
* Upgrade referenced substrate deps

* Upgrade pallet-symmetric-key including tests

* Upgrade pallet-transaction-payment-free including tests

* Upgrade pallet-doas including tests

* Update runtime and node

* Add pallet versions to all pallets with storage. Attempt to set schedule id correctly for ipfsKey

* Add migration for symmetric key schedule id

* Add cargo update to workflows

* Bump version

* Document upgrading polkadot-sdk

* Update weights and instructions for updating them in future

* Fix test weights in utxo nft pallet

* Fix caergo fmt on weights and remove comment
  • Loading branch information
mattdean-digicatapult authored Nov 27, 2024
1 parent c33be1f commit a5649f1
Show file tree
Hide file tree
Showing 53 changed files with 6,665 additions and 1,802 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
if: steps.check.outputs.pallets != ''
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
comment-author: "github-actions[bot]"
body-includes: This PR updates the following pallets
- name: Create comment
uses: peter-evans/create-or-update-comment@v4
Expand Down Expand Up @@ -92,6 +92,7 @@ jobs:
rustup toolchain install ${{ needs.get-version.outputs.toolchain }}
rustup target add wasm32-unknown-unknown --toolchain ${{ needs.get-version.outputs.toolchain }}
rustup component add rust-src
cargo update
- name: install protobuf compiler
run: sudo apt-get install protobuf-compiler
- name: Install sccache
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
rustup target add ${{ matrix.architectures.target-tupl }} --toolchain ${{ needs.get-version.outputs.toolchain }}
rustup target add wasm32-unknown-unknown --toolchain ${{ needs.get-version.outputs.toolchain }}
rustup component add rust-src
cargo update
- name: install deps
run: sudo apt-get update && sudo apt-get install ${{ matrix.architectures.dependencies }}
- name: Install sccache
Expand Down Expand Up @@ -124,7 +125,7 @@ jobs:
name: sqnc-node-${{ matrix.architectures.arch }}
path: |
./target/${{ matrix.architectures.target-tupl }}/production/sqnc-node
./target/${{ matrix.architectures.target-tupl }}/production/wbuild/sqnc-node-runtime/sqnc_node_runtime.compact.wasm
./target/${{ matrix.architectures.target-tupl }}/production/wbuild/sqnc-runtime/sqnc_runtime.compact.wasm
build-release:
name: Build release
Expand All @@ -150,16 +151,16 @@ jobs:
ls -R .
pushd ./x86_64
echo $BUILD_VERSION | tee ./VERSION.txt
mv ./wbuild/sqnc-node-runtime/sqnc_node_runtime.compact.wasm ./sqnc_node_runtime.compact.wasm
mv ./wbuild/sqnc-runtime/sqnc_runtime.compact.wasm ./sqnc_runtime.compact.wasm
chmod +x ./sqnc-node
shasum -a 256 ./sqnc-node | cut -d ' ' -f 1 | tee ./sqnc-node.sha256
shasum -a 256 ./sqnc_node_runtime.compact.wasm | cut -d ' ' -f 1 | tee ./sqnc_node_runtime.compact.wasm.sha256
shasum -a 256 ./sqnc_runtime.compact.wasm | cut -d ' ' -f 1 | tee ./sqnc_runtime.compact.wasm.sha256
tar -czvf ../sqnc-node-${BUILD_VERSION}-x86_64-unknown-linux-gnu.tar.gz ./VERSION.txt ./sqnc-node ./sqnc-node.sha256
tar -czvf ../sqnc-node-${BUILD_VERSION}-runtime-wasm.tar.gz ./VERSION.txt ./sqnc_node_runtime.compact.wasm ./sqnc_node_runtime.compact.wasm.sha256
tar -czvf ../sqnc-node-${BUILD_VERSION}-runtime-wasm.tar.gz ./VERSION.txt ./sqnc_runtime.compact.wasm ./sqnc_runtime.compact.wasm.sha256
popd;
pushd ./aarch64
echo $BUILD_VERSION | tee ./VERSION.txt
mv ./wbuild/sqnc-node-runtime/sqnc_node_runtime.compact.wasm ./sqnc_node_runtime.compact.wasm
mv ./wbuild/sqnc-runtime/sqnc_runtime.compact.wasm ./sqnc_runtime.compact.wasm
chmod +x ./sqnc-node
shasum -a 256 ./sqnc-node | cut -d ' ' -f 1 | tee ./sqnc-node.sha256
tar -czvf ../sqnc-node-${BUILD_VERSION}-aarch64-unknown-linux-gnu.tar.gz ./VERSION.txt ./sqnc-node ./sqnc-node.sha256
Expand Down
Loading

0 comments on commit a5649f1

Please sign in to comment.