From ff1dbaf4561138faddfbde7ef13d7d3da053c863 Mon Sep 17 00:00:00 2001 From: paulo Date: Tue, 10 Oct 2023 00:44:55 +0100 Subject: [PATCH] prepare release --- CHANGELOG.md | 5 +++++ README.md | 18 ++++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a68bfb..97fcc96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.0] - 2023-10-10 + +### Added - Add referenda submitted hook + +### Changed - update to subxt v0.31.0 - Update metadata Polkadot runtime/9430 - Update metadata Kusama runtime/9430 diff --git a/README.md b/README.md index efd10fd..da46cba 100644 --- a/README.md +++ b/README.md @@ -26,12 +26,12 @@ To write **your own bash scripts** and hook them up to any on-chain event suppor ## Hooks 🪝 -`scouty v0.3.0` supports 9 native hooks ready to be explored: +`scouty v0.4.0` supports 9 native hooks ready to be explored: - Everytime `scouty` **starts** the following hook is executed -> [`_init.sh`](https://github.com/turboflakes/scouty/tree/main/hooks/_init.sh) (Note: This hook can be used to try out and test new scripts) - At every **New Era** the following hook is executed -> [`_new_era.sh`](https://github.com/turboflakes/scouty/tree/main/hooks/_new_era.sh) - At every **New Session** the following hook is executed -> [`_new_session.sh`](https://github.com/turboflakes/scouty/tree/main/hooks/_new_session.sh) -- Everytime a **Referendum Starts** the following hook is executed -> [`_democracy_started.sh`](https://github.com/turboflakes/scouty/tree/main/hooks/_democracy_started.sh) +- Everytime a **Referendum Submitted** the following hook is executed -> [`_referenda_submitted.sh`](https://github.com/turboflakes/scouty/tree/main/hooks/_referenda_submitted.sh) - At the begining of the last session of an era, if a validator is in the **waiting set** and is **queued** to be **active in the next era**, the following hook is executed -> [`_validator_starts_active_next_era.s`](https://github.com/turboflakes/scouty/tree/main/hooks/_validator_starts_active_next_era.sh) (Note: only executed for the stashes predefined) - At the begining of the last session of an era, if a validator is in the **active set** and is **NOT queued** to be active in the next era, the following hook is executed -> [`_validator_starts_inactive_next_era.sh`](https://github.com/turboflakes/scouty/tree/main/hooks/_validator_starts_inactive_next_era.sh) (Note: only executed for the stashes predefined) - Everytime a validator is **Chilled** the following hook is executed -> [`_validator_chilled.sh`](https://github.com/turboflakes/scouty/tree/main/hooks/_validator_chilled.sh) (Note: only executed for the stashes predefined) @@ -51,7 +51,7 @@ Note: By default every hook is followed by a custom Matrix message. Read [here]( # create `scouty-cli` directory mkdir /opt/scouty-cli # download `scouty` binary latest version -wget -P /scouty-cli https://github.com/turboflakes/scouty/releases/download/v0.3.7/scouty +wget -P /scouty-cli https://github.com/turboflakes/scouty/releases/download/v0.4.0/scouty # make `scouty` binary file executable chmod +x /opt/scouty-cli/scouty ``` @@ -96,7 +96,7 @@ SCOUTY_HOOK_VALIDATOR_STARTS_INACTIVE_NEXT_ERA_PATH=/opt/scouty-cli/hooks/_valid SCOUTY_HOOK_VALIDATOR_SLASHED_PATH=/opt/scouty-cli/hooks/_validator_slashed.sh SCOUTY_HOOK_VALIDATOR_CHILLED_PATH=/opt/scouty-cli/hooks/_validator_chilled.sh SCOUTY_HOOK_VALIDATOR_OFFLINE_PATH=/opt/scouty-cli/hooks/_validator_offline.sh -SCOUTY_HOOK_DEMOCRACY_STARTED_PATH=/opt/scouty-cli/hooks/_democracy_started.sh +SCOUTY_HOOK_REFERENDA_SUBMITTED_PATH=./hooks/_referenda_submitted.sh # # Matrix configuration variables SCOUTY_MATRIX_USER=@your-regular-matrix-account:matrix.org @@ -153,7 +153,7 @@ WARN scouty::hooks] Hook script - Validator starts inactive next era - filename WARN scouty::hooks] Hook script - Validator has been slashed - filename (/opt/scouty-cli/hooks/_validator_slashed.sh) not defined WARN scouty::hooks] Hook script - Validator has been chilled - filename (/opt/scouty-cli/hooks/_validator_chilled.sh) not defined WARN scouty::hooks] Hook script - Validator has been offline - filename (/opt/scouty-cli/hooks/_validator_offline.sh) not defined -WARN scouty::hooks] Hook script - Democracy started - filename (/opt/scouty-cli/hooks/_democracy_started.sh) not defined +WARN scouty::hooks] Hook script - Referenda submitted - filename (/opt/scouty-cli/hooks/_referenda_submitted.sh) not defined ``` These are just warnings to tell you that those `bash script` files are not available and `scouty` will not be able to run them. @@ -180,7 +180,7 @@ chmod +x /opt/scouty-cli/hooks/_validator_starts_active_next_era.sh chmod +x /opt/scouty-cli/hooks/_validator_starts_inactive_next_era.sh chmod +x /opt/scouty-cli/hooks/_validator_slashed.sh chmod +x /opt/scouty-cli/hooks/_validator_chilled.sh -chmod +x /opt/scouty-cli/hooks/_democracy_started.sh +chmod +x /opt/scouty-cli/hooks/_referenda_submitted.sh ``` Finally restart `scouty` *systemd* service @@ -203,12 +203,6 @@ To enable **Scouty Bot** you will need to create a specific account on Element o

-#### _democracy_started - -

- -

- #### _validator_starts_active_next_era