Skip to content

Commit

Permalink
[backport/v0.41.x] x/crisis - general audit and cleanup (#8269) (#8303)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleem1314 authored Feb 17, 2021
1 parent d685701 commit 3e6b7e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion x/crisis/spec/01_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ with the standard gas consumption method.

The ConstantFee param is held in the global params store.

- Params: `mint/params -> amino(sdk.Coin)`
- Params: `mint/params -> legacy_amino(sdk.Coin)`

7 changes: 1 addition & 6 deletions x/crisis/spec/02_messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ corresponding updates to the state.

Blockchain invariants can be checked using the `MsgVerifyInvariant` message.

```go
type MsgVerifyInvariant struct {
Sender sdk.AccAddress
InvariantRoute string
}
```
+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/crisis/v1beta1/tx.proto#L14-L22

This message is expected to fail if:
- the sender does not have enough coins for the constant fee
Expand Down
4 changes: 2 additions & 2 deletions x/crisis/spec/03_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ order: 3

The crisis module emits the following events:

## Handlers
## MsgServer

### MsgVerifyInvariance
### MsgVerifyInvariant

| Type | Attribute Key | Attribute Value |
|-----------|---------------|------------------|
Expand Down

0 comments on commit 3e6b7e8

Please sign in to comment.