Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenerateACertifier(r *rand.Rand) types.Certifier
- func GenerateALibrary(r *rand.Rand) types.Library
- func GenerateAPlatform(r *rand.Rand) types.Platform
- func GenerateAValidator(r *rand.Rand) types.Validator
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCertifyAuditing(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgCertifyPlatform(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgCertifyProof(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgCertifyValidator(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgProposeCertifier(k keeper.Keeper, ak types.AccountKeeper) simulation.Operation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( OpWeightMsgProposeCertifier = "op_weight_msg_propose_certifier" OpWeightMsgCertifyValidator = "op_weight_msg_certify_validator" OpWeightMsgCertifyPlatform = "op_weight_msg_certify_platform" OpWeightMsgCertifyAuditing = "op_weight_msg_certify_auditing" OpWeightMsgCertifyProof = "op_weight_msg_certify_proof" )
Variables ¶
This section is empty.
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding type of cert module.
func GenerateACertifier ¶
GenerateACertifier returns an object of Certifier with random field values.
func GenerateALibrary ¶
GenerateALibrary returns an object of Library with random field values.
func GenerateAPlatform ¶
GenerateAPlatform returns an object of Platform with random field values.
func GenerateAValidator ¶
GenerateAValidator returns an object of Validator with random field values.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState creates a random genesis state for module simulation.
func SimulateMsgCertifyAuditing ¶
func SimulateMsgCertifyAuditing(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgCertifyAuditing generates a MsgCertifyAuditing object which fields contain a randomly chosen existing certifer, a random contract and a random string description.
func SimulateMsgCertifyPlatform ¶
func SimulateMsgCertifyPlatform(ak types.AccountKeeper, k keeper.Keeper) simulation.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 SimulateMsgCertifyProof ¶
func SimulateMsgCertifyProof(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgCertifyProof generates a MsgCertifyProof object which fields contain a randomly chosen existing certifer, a random contract and a random string description.
func SimulateMsgCertifyValidator ¶
func SimulateMsgCertifyValidator(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgCertifyValidator generates a MsgCertifyValidator object which fields contain a randomly chosen existing certifier and randomized validator's PubKey.
func SimulateMsgProposeCertifier ¶
func SimulateMsgProposeCertifier(k keeper.Keeper, ak types.AccountKeeper) simulation.Operation
SimulateMsgProposeCertifier generates a MsgProposeCertifier object with all of its fields randomized.
func WeightedOperations ¶
func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, k keeper.Keeper) simulation.WeightedOperations
WeightedOperations creates an operation (with weight) for each type of message generators.
Types ¶
This section is empty.