Documentation ¶
Overview ¶
DONTCOVER
Index ¶
- Constants
- Variables
- func GenAndDeliverTx(txCtx simulation.OperationInput, fees sdk.Coins) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func GenAndDeliverTxWithRandFees(txCtx simulation.OperationInput) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCancel(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, ...) simtypes.Operation
- func SimulateMsgCreateBatch(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, ...) simtypes.Operation
- func SimulateMsgCreateClass(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, ...) simtypes.Operation
- func SimulateMsgRetire(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, ...) simtypes.Operation
- func SimulateMsgSend(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, ...) simtypes.Operation
- func SimulateMsgUpdateClassAdmin(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, ...) simtypes.Operation
- func SimulateMsgUpdateClassIssuers(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, ...) simtypes.Operation
- func SimulateMsgUpdateClassMetadata(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak ecocredit.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
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" )
Simulation operation weights constants
const ( WeightCreateClass = 10 WeightCreateBatch = 50 WeightSend = 100 WeightRetire = 80 WeightCancel = 30 WeightUpdateClass = 30 )
ecocredit operations weights
Variables ¶
var ( TypeMsgCreateClass = sdk.MsgTypeURL(&ecocredit.MsgCreateClass{}) TypeMsgCreateBatch = sdk.MsgTypeURL(&ecocredit.MsgCreateBatch{}) TypeMsgSend = sdk.MsgTypeURL(&ecocredit.MsgSend{}) TypeMsgRetire = sdk.MsgTypeURL(&ecocredit.MsgRetire{}) TypeMsgCancel = sdk.MsgTypeURL(&ecocredit.MsgCancel{}) TypeMsgUpdateClassAdmin = sdk.MsgTypeURL(&ecocredit.MsgUpdateClassAdmin{}) TypeMsgUpdateClassIssuers = sdk.MsgTypeURL(&ecocredit.MsgUpdateClassIssuers{}) TypeMsgUpdateClassMetadata = sdk.MsgTypeURL(&ecocredit.MsgUpdateClassMetadata{}) )
ecocredit message types
Functions ¶
func GenAndDeliverTx ¶
func GenAndDeliverTx(txCtx simulation.OperationInput, fees sdk.Coins) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
GenAndDeliverTx generates a transactions and delivers it.
func GenAndDeliverTxWithRandFees ¶
func GenAndDeliverTxWithRandFees(txCtx simulation.OperationInput) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
GenAndDeliverTxWithRandFees generates a transaction with a random fee and delivers it.
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []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 SimulateMsgCancel ¶
func SimulateMsgCancel(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simtypes.Operation
SimulateMsgCancel generates a MsgCancel with random values.
func SimulateMsgCreateBatch ¶
func SimulateMsgCreateBatch(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simtypes.Operation
SimulateMsgCreateBatch generates a MsgCreateBatch with random values.
func SimulateMsgCreateClass ¶
func SimulateMsgCreateClass(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simtypes.Operation
SimulateMsgCreateClass generates a MsgCreateClass with random values.
func SimulateMsgRetire ¶
func SimulateMsgRetire(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simtypes.Operation
SimulateMsgRetire generates a MsgRetire with random values.
func SimulateMsgSend ¶
func SimulateMsgSend(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simtypes.Operation
SimulateMsgSend generates a MsgSend with random values.
func SimulateMsgUpdateClassAdmin ¶
func SimulateMsgUpdateClassAdmin(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simtypes.Operation
SimulateMsgUpdateClassAdmin generates a MsgUpdateClassAdmin with random values
func SimulateMsgUpdateClassIssuers ¶
func SimulateMsgUpdateClassIssuers(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simtypes.Operation
SimulateMsgUpdateClassIssuers generates a MsgUpdateClassMetaData with random values
func SimulateMsgUpdateClassMetadata ¶
func SimulateMsgUpdateClassMetadata(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simtypes.Operation
SimulateMsgUpdateClassMetadata generates a MsgUpdateClassMetadata with random metadata
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryClient ecocredit.QueryClient) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.