Documentation ¶
Index ¶
- func Contains(s []string, e string) bool
- func GenAndDeliverTx(r *rand.Rand, txCtx simulation.OperationInput, fees sdk.Coins) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func GenAndDeliverTxWithRandFees(r *rand.Rand, txCtx simulation.OperationInput) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func GetAccountAndSpendableCoins(ctx sdk.Context, bk ecocredit.BankKeeper, accs []simtypes.Account, ...) (sdk.Coins, *simtypes.Account, simtypes.OperationMsg, error)
- func GetClasses(sdkCtx sdk.Context, _ *rand.Rand, qryClient basetypes.QueryServer, ...) ([]*basetypes.ClassInfo, simtypes.OperationMsg, error)
- func GetRandomClass(sdkCtx sdk.Context, r *rand.Rand, qryClient basetypes.QueryServer, ...) (*basetypes.ClassInfo, simtypes.OperationMsg, error)
- func RandomDeposit(r *rand.Rand, ctx sdk.Context, ak ecocredit.AccountKeeper, ...) (deposit sdk.Coins, skip bool, err error)
- func RandomExponent(r *rand.Rand, precision uint32) uint32
- func RandomFee(r *rand.Rand) sdk.Coin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenAndDeliverTx ¶
func GenAndDeliverTx(r *rand.Rand, txCtx simulation.OperationInput, fees sdk.Coins) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
GenAndDeliverTx generates a transactions and delivers it.
func GenAndDeliverTxWithRandFees ¶
func GenAndDeliverTxWithRandFees(r *rand.Rand, txCtx simulation.OperationInput) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
GenAndDeliverTxWithRandFees generates a transaction with a random fee and delivers it.
func GetClasses ¶
func GetRandomClass ¶
func RandomDeposit ¶
func RandomDeposit(r *rand.Rand, ctx sdk.Context, ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, depositParams govtypes.DepositParams, addr sdk.AccAddress, ) (deposit sdk.Coins, skip bool, err error)
RandomDeposit returns minimum deposit if account have enough balance else returns deposit amount between (1, balance)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.