github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/distribution/keeper/keeper.md (about)

     1  ## StoreKey
     2  
     3  **声明**:
     4  * sdk = cosmos/cosmos-sdk/types
     5  * types = x/distribution/types
     6  * 暂时保留:cosmos原有存在的,以后迭代开发会复用,暂时保留以供后面版本使用。
     7  
     8  ### 1. storeKey (distr)
     9  |key|value|number(key)|value details|value size|clean up|备注|
    10  |---|---|-------------|--------------|---------|--------|---|
    11  |  FeePoolKey  | types.FeePool   | 1 |有数组,随币种种类增长| <1k | 不清理 | 基金池,暂时保留 |
    12  |  ProposerKey | sdk.ConsAddress | 1 | 无数组           | <1k | 不清理 | 保存出块者地址   |
    13  |  ValidatorOutstandingRewardsPrefix:${valAddr} | types.ValidatorOutstandingRewards | 验证者个数,默认21|有数组,随币种种类增长| 币种太多会超1k | 分红到账后清空 | 本周期超级节点所有奖励(包含委托者奖励) |     ||   
    14  |  DelegatorWithdrawAddrPrefix:${delAddr} | sdk.AccAddress |     委托量    |无数组 |<1k| 只更新 | 用户取款地址 |    
    15  |  DelegatorStartingInfoPrefix:${valAddr}:${delAddr} | types.DelegatorStartingInfo |     委托量     |有数组,随币种种类增长|币种太多会超1k| 分红到账后清空 |  委托开始时间,暂时保留      ||   
    16  |  ValidatorHistoricalRewardsPrefix:${valAddr} | []byte sdk.ConsAddress |     验证者个数     | 有数组,随币种种类增长|币种太多会超1k| 分红到账后清空 | 出块者历史奖励,暂时保留    | | 
    17  |  ValidatorCurrentRewardsPrefix:${valAddr} | types.ValidatorCurrentRewards |     验证者个数, 默认21     | 有数组,随币种种类增长|币种太多会超1k | 分红到账后清空|  委托者奖励池     |  | 
    18  |  ValidatorAccumulatedCommissionPrefix:${valAddr} | types.ValidatorAccumulatedCommission |     验证者个数21     | 有数组,随币种种类增长 |币种太多会超1k | 分红到账后清空 | 委托费池    |  | 
    19  |  ValidatorSlashEventPrefix:${valAddr} | types.ValidatorSlashEvent |     惩罚事件个数     |  无数组 |<1k | 执行后清理 | 暂时保留   | 
    20  |  ParamStoreKeyCommunityTax | sdk.Dec |     1     | 无数组 | <1k | 不清理 |  基金池奖励比例, 暂时保留   | 
    21  |  ParamStoreKeyBaseProposerReward | sdk.Dec |     1     | 无数组|<1k | 不清理|  出块者基本奖励,暂时保留    | 
    22  |  ParamStoreKeyBonusProposerReward | sdk.Dec |     1     | 无数组|<1k |不清理|  出块者额外奖励,暂时保留   |
    23  |  ParamStoreKeyWithdrawAddrEnabled | sdk.Dec |     1     | 无数组| <1k |不清理| 分红地址是否可修改配置项   |
    24  
    25  
    26  
    27  ## 备注
    28  ```sh
    29  FeePoolKey                        = []byte{0x00} // key for global distribution state
    30  ProposerKey                       = []byte{0x01} // key for the proposer operator address
    31  ValidatorOutstandingRewardsPrefix = []byte{0x02} // key for outstanding rewards
    32  
    33  DelegatorWithdrawAddrPrefix          = []byte{0x03} // key for delegator withdraw address
    34  DelegatorStartingInfoPrefix          = []byte{0x04} // key for delegator starting info
    35  ValidatorHistoricalRewardsPrefix     = []byte{0x05} // key for historical validators rewards / stake
    36  ValidatorCurrentRewardsPrefix        = []byte{0x06} // key for current validator rewards
    37  ValidatorAccumulatedCommissionPrefix = []byte{0x07} // key for accumulated validator commission
    38  ValidatorSlashEventPrefix            = []byte{0x08} // key for validator slash fraction
    39  
    40  ValidatorSnapshootPrefix  = []byte{0x80} // okdex, key for epoch validator snapshoot
    41  DelegationSnapshootPrefix = []byte{0x81} //key for epoch delegation snapshoot
    42  
    43  ParamStoreKeyCommunityTax        = []byte("communitytax")
    44  ParamStoreKeyBaseProposerReward  = []byte("baseproposerreward")
    45  ParamStoreKeyBonusProposerReward = []byte("bonusproposerreward")
    46  ParamStoreKeyWithdrawAddrEnabled = []byte("withdrawaddrenabled")
    47  ```
    48