Documentation ¶
Index ¶
- func FindLargestMaxBid(tierList []types.Tier) (types.Tier, bool)
- func RandomAccWithAuctionUsedAllocationsNotWithdrawn(ctx sdk.Context, r *rand.Rand, k keeper.Keeper, accs []simtypes.Account, ...) (simtypes.Account, bool)
- func RandomAccWithAvailableAllocations(ctx sdk.Context, r *rand.Rand, k keeper.Keeper, accs []simtypes.Account, ...) (simtypes.Account, sdkmath.Int, bool)
- func RandomAccWithBalance(ctx sdk.Context, r *rand.Rand, bk bankkeeper.Keeper, accs []simtypes.Account, ...) (simtypes.Account, sdk.Coins, bool)
- func RandomAuctionParticipationEnabled(ctx sdk.Context, r *rand.Rand, fk fundraisingkeeper.Keeper, k keeper.Keeper) (auction fundraisingtypes.AuctionI, found bool)
- func RandomAuctionStandby(ctx sdk.Context, r *rand.Rand, fk fundraisingkeeper.Keeper) (auction fundraisingtypes.AuctionI, found bool)
- func RandomAuctionWithdrawEnabled(ctx sdk.Context, r *rand.Rand, fk fundraisingkeeper.Keeper, k keeper.Keeper) (auction fundraisingtypes.AuctionI, found bool)
- func RandomTierFromList(r *rand.Rand, tierList []types.Tier) (types.Tier, bool)
- func SimulateMsgCancelAuction(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk fundraisingkeeper.Keeper) simtypes.Operation
- func SimulateMsgParticipate(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk fundraisingkeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgWithdrawAllocations(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk fundraisingkeeper.Keeper, ...) simtypes.Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomAccWithAuctionUsedAllocationsNotWithdrawn ¶
func RandomAccWithAuctionUsedAllocationsNotWithdrawn( ctx sdk.Context, r *rand.Rand, k keeper.Keeper, accs []simtypes.Account, auctionID uint64, ) (simtypes.Account, bool)
RandomAccWithAuctionUsedAllocationsNotWithdrawn returns random account that has used allocations for the given auction that have not yet been withdrawn
func RandomAccWithAvailableAllocations ¶
func RandomAccWithAvailableAllocations(ctx sdk.Context, r *rand.Rand, k keeper.Keeper, accs []simtypes.Account, desired sdkmath.Int, auctionID uint64, ) (simtypes.Account, sdkmath.Int, bool)
RandomAccWithAvailableAllocations returns random account that has at least the desired amount of available allocations and can still participate in the specified auction
func RandomAccWithBalance ¶
func RandomAccWithBalance(ctx sdk.Context, r *rand.Rand, bk bankkeeper.Keeper, accs []simtypes.Account, desired sdk.Coins, ) (simtypes.Account, sdk.Coins, bool)
RandomAccWithBalance returns random account with the desired available balance
func RandomAuctionParticipationEnabled ¶ added in v0.3.0
func RandomAuctionParticipationEnabled( ctx sdk.Context, r *rand.Rand, fk fundraisingkeeper.Keeper, k keeper.Keeper, ) (auction fundraisingtypes.AuctionI, found bool)
RandomAuctionParticipationEnabled returns random auction where participation is enabled
func RandomAuctionStandby ¶ added in v0.3.0
func RandomAuctionStandby(ctx sdk.Context, r *rand.Rand, fk fundraisingkeeper.Keeper) (auction fundraisingtypes.AuctionI, found bool)
RandomAuctionStandby returns random auction that is in standby
func RandomAuctionWithdrawEnabled ¶
func RandomAuctionWithdrawEnabled( ctx sdk.Context, r *rand.Rand, fk fundraisingkeeper.Keeper, k keeper.Keeper, ) (auction fundraisingtypes.AuctionI, found bool)
RandomAuctionWithdrawEnabled returns random auction where used allocations can be withdrawn at blockTime
func RandomTierFromList ¶
func SimulateMsgCancelAuction ¶
func SimulateMsgCancelAuction( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk fundraisingkeeper.Keeper, ) simtypes.Operation
func SimulateMsgParticipate ¶
func SimulateMsgParticipate( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk fundraisingkeeper.Keeper, k keeper.Keeper, ) simtypes.Operation
func SimulateMsgWithdrawAllocations ¶
func SimulateMsgWithdrawAllocations( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk fundraisingkeeper.Keeper, k keeper.Keeper, ) simtypes.Operation
Types ¶
This section is empty.