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(r *rand.Rand, ctx sdk.Context, bk types.BankKeeper, k keeper.Keeper, ...) (prjtID 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 GetCoordSimAccountWithProjectID(r *rand.Rand, ctx sdk.Context, pk types.ProfileKeeper, k keeper.Keeper, ...) (simtypes.Account, uint64, bool)
- func GetSharesFromProject(r *rand.Rand, ctx sdk.Context, k keeper.Keeper, prjtID uint64) (types.Shares, bool)
- func SimulateMsgBurnVouchers(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreateProject(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) simtypes.Operation
- func SimulateMsgEditProject(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) 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 SimulateMsgUnredeemVouchers(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUpdateSpecialAllocations(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) simtypes.Operation
- func SimulateMsgUpdateTotalSupply(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, ...) simtypes.Operation
- type TypedMsg
Constants ¶
This section is empty.
Variables ¶
ShareDenoms are the denom used for the shares in the simulation
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 project
func GetAccountWithVouchers ¶
func GetAccountWithVouchers( r *rand.Rand, ctx sdk.Context, bk types.BankKeeper, k keeper.Keeper, accs []simtypes.Account, requireNoMainnetLaunchTriggered bool, ) (prjtID uint64, account simtypes.Account, coins sdk.Coins, found bool)
GetAccountWithVouchers returns an account that has vouchers for a project
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 GetCoordSimAccountWithProjectID ¶
func GetCoordSimAccountWithProjectID( r *rand.Rand, ctx sdk.Context, pk types.ProfileKeeper, k keeper.Keeper, accs []simtypes.Account, requireNoMainnetInitialized bool, requireNoMainnetLaunchTriggered bool, ) (simtypes.Account, uint64, bool)
GetCoordSimAccountWithProjectID finds an account associated with a coordinator profile from simulation accounts and a project created by this coordinator. The boolean flag `requireNoMainnetLaunchTriggered` is ignored if the flag `requireNoMainnetInitialized` is set to `true`
func GetSharesFromProject ¶
func GetSharesFromProject(r *rand.Rand, ctx sdk.Context, k keeper.Keeper, prjtID uint64) (types.Shares, bool)
GetSharesFromProject returns a small portion of shares that can be minted as vouchers or added to an account
func SimulateMsgBurnVouchers ¶
func SimulateMsgBurnVouchers( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgBurnVouchers simulates a MsgBurnVouchers message
func SimulateMsgCreateProject ¶
func SimulateMsgCreateProject( ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgCreateProject simulates a MsgCreateProject message
func SimulateMsgEditProject ¶
func SimulateMsgEditProject(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgEditProject simulates a MsgEditProject 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 SimulateMsgUnredeemVouchers ¶
func SimulateMsgUnredeemVouchers( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgUnredeemVouchers simulates a MsgUnredeemVouchers message
func SimulateMsgUpdateSpecialAllocations ¶
func SimulateMsgUpdateSpecialAllocations(ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgUpdateSpecialAllocations simulates a MsgUpdateSpecialAllocations message
func SimulateMsgUpdateTotalSupply ¶
func SimulateMsgUpdateTotalSupply( ak types.AccountKeeper, bk types.BankKeeper, pk types.ProfileKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgUpdateTotalSupply simulates a MsgUpdateTotalSupply message