Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateCertifierUpdateProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateMsgCertifyPlatform(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgIssueCertificates(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( OpWeightMsgCertifyValidator = "op_weight_msg_certify_validator" OpWeightMsgCertifyPlatform = "op_weight_msg_certify_platform" OpWeightMsgIssueCertificate = "op_weight_msg_issue_certificate" )
const (
DefaultWeightMsgCertify int = 20
)
Default simulation operation weights for messages.
const OpWeightSubmitCertifierUpdateProposal = "op_weight_submit_certifier_update_proposal"
OpWeightSubmitCertifierUpdateProposal app params key for certifier update proposal
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
NewDecodeStore unmarshals the KVPair's Value to the corresponding type of cert module.
func ProposalContents ¶
func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState creates a random genesis state for module simulation.
func SimulateCertifierUpdateProposalContent ¶
func SimulateCertifierUpdateProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCertifierUpdateProposalContent generates random certifier update proposal content nolint: funlen
func SimulateMsgCertifyPlatform ¶
func SimulateMsgCertifyPlatform(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgCertifyPlatform generates a MsgCertifyPlatform object which fields contain a randomly chosen existing certifier, a randomized validator's PubKey and a random string description.
func SimulateMsgIssueCertificates ¶
func SimulateMsgIssueCertificates(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgIssueCertificates generates a MsgCertifyGeneral object which field values.
func WeightedOperations ¶
func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simulation.WeightedOperations
WeightedOperations creates an operation (with weight) for each type of message generators.
Types ¶
This section is empty.