github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/x/staking/spec/06_hooks.md (about)

     1  <!--
     2  order: 6
     3  -->
     4  
     5  # Hooks
     6  
     7  Other modules may register operations to execute when a certain event has
     8  occurred within staking.  These events can be registered to execute either
     9  right `Before` or `After` the staking event (as per the hook name). The
    10  following hooks can registered with staking: 
    11  
    12   - `AfterValidatorCreated(Context, ValAddress)`
    13     - called when a validator is created
    14   - `BeforeValidatorModified(Context, ValAddress)`
    15     - called when a validator's state is changed
    16   - `AfterValidatorRemoved(Context, ConsAddress, ValAddress)`
    17     - called when a validator is deleted
    18   - `AfterValidatorBonded(Context, ConsAddress, ValAddress)`
    19     - called when a validator is bonded
    20   - `AfterValidatorBeginUnbonding(Context, ConsAddress, ValAddress)`
    21     - called when a validator begins unbonding
    22   - `BeforeDelegationCreated(Context, AccAddress, ValAddress)`
    23     - called when a delegation is created
    24   - `BeforeDelegationSharesModified(Context, AccAddress, ValAddress)`
    25     - called when a delegation's shares are modified
    26   - `BeforeDelegationRemoved(Context, AccAddress, ValAddress)`
    27     - called when a delegation is removed