Skip to content

Commit

Permalink
Update foundation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ulbqb committed Mar 7, 2024
1 parent 718ecf3 commit 716266c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion x/foundation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ back these foundation-specific functionalities.
* [Client](#client)
* [CLI](#cli)
* [gRPC](#grpc)
* [Hooks](#hooks)
* [Staking Hooks](#staking-hooks)


# Concepts

Expand Down Expand Up @@ -248,7 +251,7 @@ the [Msg/WithdrawFromTreasury](#msgwithdrawfromtreasury).
### CreateValidatorAuthorization

`CreateValidatorAuthorization` implements the `Authorization` interface for the
[Msg/CreateValidator](../stakingplus/spec/03_messages.md#msgcreatevalidator).
[AfterValidatorCreated](#aftervalidatorcreated).
An account must have this authorization prior to sending the message.

**Note:** You MUST provide the `CreateValidatorAuthorization`s into the genesis
Expand Down Expand Up @@ -1614,3 +1617,11 @@ Example Output:
]
}
```

# Hooks

## Staking Hooks

### AfterValidatorCreated

This module adds a validation as a hook to `Msg/CreateValidator` service. This validation is expected to fail if the operator address is not registered on x/foundation through [MsgGrant](#msggrant) with `CreateValidatorAuthorization`.

0 comments on commit 716266c

Please sign in to comment.