Skip to content

Commit

Permalink
update democracy and setup srtool summary
Browse files Browse the repository at this point in the history
  • Loading branch information
1xstj committed May 13, 2024
1 parent b864b59 commit 1470eaf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/generate-srtool-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

push:
branches: [main]
branches: [main, update-democracy]

jobs:
srtool:
Expand Down Expand Up @@ -39,6 +39,12 @@ jobs:
cat ${{ matrix.chain }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
echo Summary:
echo - version: ${{ steps.srtool_build.outputs.version }}
echo - info: ${{ steps.srtool_build.outputs.info }}
echo - prop: ${{ steps.srtool_build.outputs.proposal_hash }}
echo - json: ${{ steps.srtool_build.outputs.json }}
- name: Archive Runtime
uses: actions/upload-artifact@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish-srtool-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
cat ${{ matrix.chain }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
echo Summary:
echo - version: ${{ steps.srtool_build.outputs.version }}
echo - info: ${{ steps.srtool_build.outputs.info }}
echo - prop: ${{ steps.srtool_build.outputs.proposal_hash }}
echo - json: ${{ steps.srtool_build.outputs.json }}
- name: Upload ${{ matrix.chain }} wasm to release
if: matrix.chain == 'mainnet'
uses: svenstaro/upload-release-action@v2
Expand Down
4 changes: 0 additions & 4 deletions runtime/mainnet/src/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ impl Contains<RuntimeCall> for MainnetCallFilter {
}

match call {
// Filter democracy proposals creation
RuntimeCall::Democracy(_) |
// disallow council
RuntimeCall::Council(_) |
// Block jobs and roles pallet
RuntimeCall::Roles(_) |
RuntimeCall::Jobs(_) => false,
Expand Down

0 comments on commit 1470eaf

Please sign in to comment.