Subscribe to staking module hooks from CosmWasm smart contracts
sudo
calls, allowing them to maintain historical records.
ManageHookSubscription
message. This restriction ensures that only thoroughly vetted contracts can receive these notifications, preventing potential spam or security issues.
AfterValidatorCreated
, BeforeValidatorModified
, AfterValidatorRemoved
, AfterValidatorBonded
, AfterValidatorBeginUnbonding
BeforeDelegationCreated
, BeforeDelegationSharesModified
, BeforeDelegationRemoved
, AfterDelegationModified
BeforeValidatorSlashed
(implemented as BeforeValidatorSlashedWithTokensToBurn
)AfterUnbondingInitiated
sudo
call on each subscribed contract. These calls are performed in the same context as the original operation (no cached context), meaning: