simulation

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateClass           = "op_weight_msg_create_class"
	OpWeightMsgCreateBatch           = "op_weight_msg_create_batch"
	OpWeightMsgSend                  = "op_weight_msg_send"
	OpWeightMsgRetire                = "op_weight_msg_retire"
	OpWeightMsgCancel                = "op_weight_msg_cancel"
	OpWeightMsgUpdateClassAdmin      = "op_weight_msg_update_class_admin"
	OpWeightMsgUpdateClassMetadata   = "op_weight_msg_update_class_metadata"
	OpWeightMsgUpdateClassIssuers    = "op_weight_msg_update_class_issuers"
	OpWeightMsgCreateProject         = "op_weight_msg_create_project"
	OpWeightMsgUpdateProjectAdmin    = "op_weight_msg_update_project_admin"
	OpWeightMsgUpdateProjectMetadata = "op_weight_msg_update_project_metadata"
	OpWeightMsgMintBatchCredits      = "op_weight_msg_mint_batch_credits"
	OpWeightMsgSealBatch             = "op_weight_msg_seal_batch"
	OpWeightMsgBridge                = "op_weight_msg_bridge"
)

Simulation operation weights constants

View Source
const (
	WeightCreateClass           = 10
	WeightCreateProject         = 20
	WeightCreateBatch           = 50
	WeightSend                  = 100
	WeightRetire                = 80
	WeightCancel                = 30
	WeightUpdateClass           = 30
	WeightUpdateProjectAdmin    = 30
	WeightUpdateProjectMetadata = 30
	WeightMintBatchCredits      = 33
	WeightSealBatch             = 33
	WeightBridge                = 33
)

ecocredit operations weights

Variables

View Source
var (
	TypeMsgCreateClass           = sdk.MsgTypeURL(&core.MsgCreateClass{})
	TypeMsgCreateProject         = sdk.MsgTypeURL(&core.MsgCreateProject{})
	TypeMsgCreateBatch           = sdk.MsgTypeURL(&core.MsgCreateBatch{})
	TypeMsgSend                  = sdk.MsgTypeURL(&core.MsgSend{})
	TypeMsgRetire                = sdk.MsgTypeURL(&core.MsgRetire{})
	TypeMsgCancel                = sdk.MsgTypeURL(&core.MsgCancel{})
	TypeMsgUpdateClassAdmin      = sdk.MsgTypeURL(&core.MsgUpdateClassAdmin{})
	TypeMsgUpdateClassIssuers    = sdk.MsgTypeURL(&core.MsgUpdateClassIssuers{})
	TypeMsgUpdateClassMetadata   = sdk.MsgTypeURL(&core.MsgUpdateClassMetadata{})
	TypeMsgUpdateProjectMetadata = sdk.MsgTypeURL(&core.MsgUpdateProjectMetadata{})
	TypeMsgUpdateProjectAdmin    = sdk.MsgTypeURL(&core.MsgUpdateProjectAdmin{})
	TypeMsgBridge                = sdk.MsgTypeURL(&core.MsgBridge{})
	TypeMsgMintBatchCredits      = sdk.MsgTypeURL(&core.MsgMintBatchCredits{})
	TypeMsgSealBatch             = sdk.MsgTypeURL(&core.MsgSealBatch{})
)

ecocredit message types

Functions

func ParamChanges

func ParamChanges() []simtypes.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals on the simulation

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for the ecocredit module.

func SimulateMsgBridge

func SimulateMsgBridge(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient core.QueryClient) simtypes.Operation

SimulateMsgBridge generates a MsgBridge with random values.

func SimulateMsgCancel

func SimulateMsgCancel(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgCancel generates a MsgCancel with random values.

func SimulateMsgCreateBatch

func SimulateMsgCreateBatch(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgCreateBatch generates a MsgCreateBatch with random values.

func SimulateMsgCreateClass

func SimulateMsgCreateClass(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgCreateClass generates a MsgCreateClass with random values.

func SimulateMsgCreateProject

func SimulateMsgCreateProject(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgCreateProject generates a MsgCreateProject with random values.

func SimulateMsgMintBatchCredits

func SimulateMsgMintBatchCredits(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient core.QueryClient) simtypes.Operation

SimulateMsgMintBatchCredits generates a MsgMintBatchCredits with random values.

func SimulateMsgRetire

func SimulateMsgRetire(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgRetire generates a MsgRetire with random values.

func SimulateMsgSealBatch

func SimulateMsgSealBatch(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient core.QueryClient) simtypes.Operation

SimulateMsgSealBatch generates a MsgSealBatch with random values.

func SimulateMsgSend

func SimulateMsgSend(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgSend generates a MsgSend with random values.

func SimulateMsgUpdateClassAdmin

func SimulateMsgUpdateClassAdmin(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgUpdateClassAdmin generates a MsgUpdateClassAdmin with random values

func SimulateMsgUpdateClassIssuers

func SimulateMsgUpdateClassIssuers(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgUpdateClassIssuers generates a MsgUpdateClassMetaData with random values

func SimulateMsgUpdateClassMetadata

func SimulateMsgUpdateClassMetadata(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgUpdateClassMetadata generates a MsgUpdateClassMetadata with random metadata

func SimulateMsgUpdateProjectAdmin

func SimulateMsgUpdateProjectAdmin(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient core.QueryClient) simtypes.Operation

SimulateMsgUpdateProjectAdmin generates a MsgUpdateProjectAdmin with random values.

func SimulateMsgUpdateProjectMetadata

func SimulateMsgUpdateProjectMetadata(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient core.QueryClient) simtypes.Operation

SimulateMsgUpdateProjectMetadata generates a MsgUpdateProjectMetadata with random values.

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams, cdc codec.JSONCodec,
	ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient, basketQryClient basket.QueryClient,
	mktQryClient marketplace.QueryClient) simulation.WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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