Security module integration with Staking
**For PoC** * [x] Minimum stake: yes * [x] Slashing: * Offline staked relayers: no slashing if no vote cast (for now) * Invalid votes: slash * [x] `NO_DATA_BTC-RELAY` vote: no slashing if vote fails. * [x] Slashing recipient: should be BTC Parachain. Check with @dominik_0 where the address is defined. * [x] Once vote cast: no changes allowed (UPDATE in Spec) * [x] Execute status update when vote successful / failed * [x] Deposit for new proposals: yes * [x] Chilling: yes * [x] Stake / Registration maturity [Optional for PoC - check if implementation / computation complexity explodes] **For full implementation (to be discussed)** * [ ] Dynamic stake (lock and withdraw at any point in time) * Vote weight: amount of DOT stake controlled by relayers that voted on this proposal. * Need to check vote each time someone changes their stake * [ ] SLAs: slash happens right away in PoC * [ ] Round-based: no rounds in PoC, but maybe needed in full implementation) * [ ] Staked Relayer client should have automatic voting (note for full implementation) * [ ] Vote threshold in case of offline staked relates (percentages of entire "active" stake) * Weak-vote: Votes >10 but <50 percent: execute state change BUT only after a delay X (global constant `BlockNumber`). * Strong-vote: > 50% - execute state update right away. * Minimum voted stake = constant (e.g. 10%)
issue