simulation

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCertifyValidator = "op_weight_msg_certify_validator"
	OpWeightMsgCertifyPlatform  = "op_weight_msg_certify_platform"
	OpWeightMsgCertifyAuditing  = "op_weight_msg_certify_auditing"
	OpWeightMsgCertifyProof     = "op_weight_msg_certify_proof"
)
View Source
const (
	DefaultWeightMsgCertify int = 20
)

Default simulation operation weights for messages.

View Source
const OpWeightSubmitCertifierUpdateProposal = "op_weight_submit_certifier_update_proposal"

OpWeightSubmitCertifierUpdateProposal app params key for certifier update proposal

Variables

This section is empty.

Functions

func DecodeStore

func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string

DecodeStore unmarshals the KVPair's Value to the corresponding type of cert module.

func ProposalContents added in v1.0.0

func ProposalContents(k keeper.Keeper) []simulation.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 added in v1.0.0

func SimulateCertifierUpdateProposalContent(k keeper.Keeper) simulation.ContentSimulatorFn

SimulateCertifierUpdateProposalContent generates random certifier update proposal content nolint: funlen

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 SimulateMsgCertifyIdentity added in v1.1.0

func SimulateMsgCertifyIdentity(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgCertifyIdentity generates a MsgCertifyGeneral object to certify a random account address.

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL