From 71dc827c722d3e049a03b135e0c8c51604a81519 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 21 Jul 2022 18:53:25 +0200 Subject: [PATCH] docs: update migrated params module state documentation (#12679) * docs: precise params state storage documentation * updates --- x/bank/spec/01_state.md | 9 +++++++++ x/crisis/spec/01_state.md | 3 ++- x/distribution/spec/02_state.md | 4 ++-- x/mint/spec/02_state.md | 3 ++- x/slashing/spec/02_state.md | 9 +++++++++ x/staking/spec/01_state.md | 4 ++-- 6 files changed, 26 insertions(+), 6 deletions(-) diff --git a/x/bank/spec/01_state.md b/x/bank/spec/01_state.md index 01f9ed06f9..10e9902d8e 100644 --- a/x/bank/spec/01_state.md +++ b/x/bank/spec/01_state.md @@ -18,3 +18,12 @@ aforementioned state: * Denom Metadata Index: `0x1 | byte(denom) -> ProtocolBuffer(Metadata)` * Balances Index: `0x2 | byte(address length) | []byte(address) | []byte(balance.Denom) -> ProtocolBuffer(balance)` * Reverse Denomination to Address Index: `0x03 | byte(denom) | 0x00 | []byte(address) -> 0` + +## Params + +The bank module stores it's params in state with the prefix of `0x05`, +it can be updated with governance or the address with authority. + +* Params: `0x05 | ProtocolBuffer(Params)` + ++++ https://github.com/cosmos/cosmos-sdk/blob/v0.46.0-rc3/proto/cosmos/bank/v1beta1/bank.proto#L11-L16 diff --git a/x/crisis/spec/01_state.md b/x/crisis/spec/01_state.md index 50003e63db..65fb0d6119 100644 --- a/x/crisis/spec/01_state.md +++ b/x/crisis/spec/01_state.md @@ -12,6 +12,7 @@ used instead of the standard gas consumption method. The constant fee is intended to be larger than the anticipated gas cost of running the invariant with the standard gas consumption method. -The ConstantFee param is held in the global params store. +The ConstantFee param is stored in the module params state with the prefix of `0x01`, +it can be updated with governance or the address with authority. * Params: `mint/params -> legacy_amino(sdk.Coin)` diff --git a/x/distribution/spec/02_state.md b/x/distribution/spec/02_state.md index ec79f2aae5..1d7baf3b9b 100644 --- a/x/distribution/spec/02_state.md +++ b/x/distribution/spec/02_state.md @@ -66,8 +66,8 @@ type DelegationDistInfo struct { ## Params -distribution module stores it's params in state with the prefix of `0x09`, -it can only updated with governance. +The distribution module stores it's params in state with the prefix of `0x09`, +it can be updated with governance or the address with authority. * Params: `0x09 | ProtocolBuffer(Params)` diff --git a/x/mint/spec/02_state.md b/x/mint/spec/02_state.md index 2fa04b1ef8..715e4c8169 100644 --- a/x/mint/spec/02_state.md +++ b/x/mint/spec/02_state.md @@ -14,7 +14,8 @@ The minter is a space for holding current inflation information. ## Params -Minting params are held in the global params store. +The mint module stores it's params in state with the prefix of `0x01`, +it can be updated with governance or the address with authority. * Params: `mint/params -> legacy_amino(params)` diff --git a/x/slashing/spec/02_state.md b/x/slashing/spec/02_state.md index 50aa0e1410..8e06681efc 100644 --- a/x/slashing/spec/02_state.md +++ b/x/slashing/spec/02_state.md @@ -49,3 +49,12 @@ bonded validator. The `SignedBlocksWindow` parameter defines the size The information stored for tracking validator liveness is as follows: +++ https://github.com/cosmos/cosmos-sdk/blob/v0.46.0-rc1/proto/cosmos/slashing/v1beta1/slashing.proto#L12-L33 + +## Params + +The slashing module stores it's params in state with the prefix of `0x00`, +it can be updated with governance or the address with authority. + +* Params: `0x00 | ProtocolBuffer(Params)` + ++++ https://github.com/cosmos/cosmos-sdk/blob/v0.46.0-rc3/proto/cosmos/slashing/v1beta1/slashing.proto#L35-L45 diff --git a/x/staking/spec/01_state.md b/x/staking/spec/01_state.md index 3d30ae62e0..0eb3516da1 100644 --- a/x/staking/spec/01_state.md +++ b/x/staking/spec/01_state.md @@ -17,8 +17,8 @@ Store entries prefixed with "Last" must remain unchanged until EndBlock. ## Params -staking module stores it's params in state with the prefix of `0x51`, -it can only be updated with governance. +The staking module stores it's params in state with the prefix of `0x51`, +it can be updated with governance or the address with authority. * Params: `0x51 | ProtocolBuffer(Params)`