simulation

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const OpWeightMsgCreate = "op_weight_msg_create_basket" //nolint:gosec
View Source
const OpWeightMsgPut = "op_weight_msg_put_into_basket" //nolint:gosec
View Source
const OpWeightMsgTake = "op_weight_take_from_basket" //nolint:gosec
View Source
const OpWeightMsgUpdateBasketFee = "op_weight_msg_update_basket_fee" //nolint:gosec
View Source
const WeightCreate = 100
View Source
const WeightPut = 100
View Source
const WeightTake = 100
View Source
const WeightUpdateBasketFees = 100

Variables

View Source
var TypeMsgCreate = types.MsgCreate{}.Route()
View Source
var TypeMsgPut = types.MsgPut{}.Route()
View Source
var TypeMsgTake = types.MsgTake{}.Route()
View Source
var TypeMsgUpdateBasketFee = types.MsgUpdateBasketFee{}.Route()

Functions

func SimulateMsgCreate

func SimulateMsgCreate(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	baseClient basetypes.QueryServer, client types.QueryServer) simtypes.Operation

SimulateMsgCreate generates a Basket/MsgCreate with random values.

func SimulateMsgPut

func SimulateMsgPut(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient basetypes.QueryServer, bsktQryClient types.QueryServer) simtypes.Operation

SimulateMsgPut generates a Basket/MsgPut with random values.

func SimulateMsgTake

func SimulateMsgTake(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	_ basetypes.QueryServer, bsktQryClient types.QueryServer) simtypes.Operation

SimulateMsgTake generates a Basket/MsgTake with random values.

func SimulateMsgUpdateBasketFee

func SimulateMsgUpdateBasketFee(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, _ basetypes.QueryServer,
	_ types.QueryServer, govk ecocredit.GovKeeper, authority sdk.AccAddress) simtypes.Operation

SimulateMsgUpdateBasketFee generates a Basket/MsgUpdateBasketFee with random values.

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams, cdc codec.JSONCodec,
	ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	govk ecocredit.GovKeeper,
	qryClient basetypes.QueryServer, basketQryClient types.QueryServer,
	authority sdk.AccAddress) simulation.WeightedOperations

Types

This section is empty.

Jump to

Keyboard shortcuts

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