docs: update migrated params module state documentation (#12679)

* docs: precise params state storage documentation

* updates
This commit is contained in:
Julien Robert
2022-07-21 18:53:25 +02:00
committed by GitHub
parent d46de4fdc6
commit 71dc827c72
6 changed files with 26 additions and 6 deletions
+9
View File
@@ -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
+2 -1
View File
@@ -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)`
+2 -2
View File
@@ -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)`
+2 -1
View File
@@ -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)`
+9
View File
@@ -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
+2 -2
View File
@@ -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)`