Documentation
¶
Index ¶
- Variables
- func GetAccountWithShares(r *rand.Rand, ctx sdk.Context, k keeper.Keeper, accs []simtypes.Account, ...) (uint64, simtypes.Account, types.Shares, bool)
- func GetAccountWithVouchers(ctx sdk.Context, bk types.BankKeeper, k keeper.Keeper, accs []simtypes.Account, ...) (campID uint64, account simtypes.Account, coins sdk.Coins, found bool)
- func GetCoordSimAccount(r *rand.Rand, ctx sdk.Context, pk types.ProfileKeeper, accs []simtypes.Account) (simtypes.Account, uint64, bool)
- func GetCoordSimAccountWithCampaignID(r *rand.Rand, ctx sdk.Context, pk types.ProfileKeeper, k keeper.Keeper, ...) (simtypes.Account, uint64, bool)
- func GetSharesFromCampaign(r *rand.Rand, ctx sdk.Context, k keeper.Keeper, campID uint64) (types.Shares, bool)
- func SimulateMsgAddShares(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) simtypes.Operation
- func SimulateMsgAddVestingOptions(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) simtypes.Operation
- func SimulateMsgBurnVouchers(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreateCampaign(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgInitializeMainnet(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) simtypes.Operation
- func SimulateMsgMintVouchers(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) simtypes.Operation
- func SimulateMsgRedeemVouchers(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgSendVouchers(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUnredeemVouchers(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUpdateTotalSupply(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) simtypes.Operation
- type TypedMsg
Constants ¶
This section is empty.
Variables ¶
var ( ShareDenoms = []string{"s/foo", "s/bar", "s/toto"} )
Functions ¶
func GetAccountWithShares ¶
func GetAccountWithShares( r *rand.Rand, ctx sdk.Context, k keeper.Keeper, accs []simtypes.Account, requireNoMainnetLaunchTriggered bool, ) (uint64, simtypes.Account, types.Shares, bool)
GetAccountWithShares returns an account that contains allocated shares with its associated campaign
func GetAccountWithVouchers ¶
func GetAccountWithVouchers( ctx sdk.Context, bk types.BankKeeper, k keeper.Keeper, accs []simtypes.Account, requireNoMainnetLaunchTriggered bool, ) (campID uint64, account simtypes.Account, coins sdk.Coins, found bool)
GetAccountWithVouchers returns an account that has vouchers for a campaign
func GetCoordSimAccount ¶
func GetCoordSimAccount( r *rand.Rand, ctx sdk.Context, pk types.ProfileKeeper, accs []simtypes.Account, ) (simtypes.Account, uint64, bool)
GetCoordSimAccount finds an account associated with a coordinator profile from simulation accounts
func GetCoordSimAccountWithCampaignID ¶
func GetCoordSimAccountWithCampaignID( r *rand.Rand, ctx sdk.Context, pk types.ProfileKeeper, k keeper.Keeper, accs []simtypes.Account, requireNoMainnetInitialized bool, requireNoMainnetLaunchTriggered bool, ) (simtypes.Account, uint64, bool)
GetCoordSimAccountWithCampaignID finds an account associated with a coordinator profile from simulation accounts and a campaign created by this coordinator. The boolean flag `requireNoMainnetLaunchTriggered` is ignored if the flag `requireNoMainnetInitialized` is set to `true`
func GetSharesFromCampaign ¶
func GetSharesFromCampaign(r *rand.Rand, ctx sdk.Context, k keeper.Keeper, campID uint64) (types.Shares, bool)
GetSharesFromCampaign returns a small portion of shares that can be minted as vouchers or added to an account
func SimulateMsgAddShares ¶
func SimulateMsgAddShares( ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgAddShares simulates a MsgAddShares message
func SimulateMsgAddVestingOptions ¶
func SimulateMsgAddVestingOptions( ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgAddVestingOptions simulates a MsgAddVestingOptions message
func SimulateMsgBurnVouchers ¶
func SimulateMsgBurnVouchers( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgBurnVouchers simulates a MsgBurnVouchers message
func SimulateMsgCreateCampaign ¶
func SimulateMsgCreateCampaign( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ) simtypes.Operation
SimulateMsgCreateCampaign simulates a MsgCreateCampaign message
func SimulateMsgInitializeMainnet ¶
func SimulateMsgInitializeMainnet( ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgInitializeMainnet simulates a MsgInitializeMainnet message
func SimulateMsgMintVouchers ¶
func SimulateMsgMintVouchers(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgMintVouchers simulates a MsgMintVouchers message
func SimulateMsgRedeemVouchers ¶
func SimulateMsgRedeemVouchers( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgRedeemVouchers simulates a MsgRedeemVouchers message
func SimulateMsgSendVouchers ¶
func SimulateMsgSendVouchers( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgSendVouchers simulates a Msg message from the bank module with vouchers TODO: This message constantly fails in simulation log, investigate why
func SimulateMsgUnredeemVouchers ¶
func SimulateMsgUnredeemVouchers( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgUnredeemVouchers simulates a MsgUnredeemVouchers message
func SimulateMsgUpdateTotalSupply ¶
func SimulateMsgUpdateTotalSupply( ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgUpdateTotalSupply simulates a MsgUpdateTotalSupply message