* Move distr params to simulation param generator * Cleanup sim params output * Print params when possible instead of entire genesis struct * Update module param simulator keys * Rename module params simulator keys * Add/fix missing module params and implement SimParams * UPdate sim test to accept params file * Allow weights to be provided from file * Create doc.go * Remove TODO * Implement MustMarshalJSONIndent * Use mustMarshalJSONIndent for non-codec * Remove TODO * Fix doc.go * Update points * Update simapp/doc.go Co-Authored-By: Alessio Treglia <quadrispro@ubuntu.com> * Update simapp/doc.go Co-Authored-By: Alessio Treglia <quadrispro@ubuntu.com> * Cleanup appStateFn * Use constants for simulation parameter keys * Update msgs.go * minor formatting
24 lines
1.6 KiB
Go
24 lines
1.6 KiB
Go
package simapp
|
|
|
|
// Simulation parameter constants
|
|
const (
|
|
StakePerAccount = "stake_per_account"
|
|
InitiallyBondedValidators = "initially_bonded_validators"
|
|
OpWeightDeductFee = "op_weight_deduct_fee"
|
|
OpWeightMsgSend = "op_weight_msg_send"
|
|
OpWeightSingleInputMsgMultiSend = "op_weight_single_input_msg_multisend"
|
|
OpWeightMsgSetWithdrawAddress = "op_weight_msg_set_withdraw_address"
|
|
OpWeightMsgWithdrawDelegationReward = "op_weight_msg_withdraw_delegation_reward"
|
|
OpWeightMsgWithdrawValidatorCommission = "op_weight_msg_withdraw_validator_commission"
|
|
OpWeightSubmitVotingSlashingTextProposal = "op_weight_submit_voting_slashing_text_proposal"
|
|
OpWeightSubmitVotingSlashingCommunitySpendProposal = "op_weight_submit_voting_slashing_community_spend_proposal"
|
|
OpWeightSubmitVotingSlashingParamChangeProposal = "op_weight_submit_voting_slashing_param_change_proposal"
|
|
OpWeightMsgDeposit = "op_weight_msg_deposit"
|
|
OpWeightMsgCreateValidator = "op_weight_msg_create_validator"
|
|
OpWeightMsgEditValidator = "op_weight_msg_edit_validator"
|
|
OpWeightMsgDelegate = "op_weight_msg_delegate"
|
|
OpWeightMsgUndelegate = "op_weight_msg_undelegate"
|
|
OpWeightMsgBeginRedelegate = "op_weight_msg_begin_redelegate"
|
|
OpWeightMsgUnjail = "op_weight_msg_unjail"
|
|
)
|