Documentation ¶
Index ¶
- func FundAccount(app *SimApp, ctx sdk.Context, addr sdk.AccAddress, amounts sdk.Coins) error
- func SignAndDeliver(t *testing.T, txCfg client.TxConfig, app *bam.BaseApp, header tmproto.Header, ...) (sdk.GasInfo, *sdk.Result, error)
- type SimApp
- func (app *SimApp) GetAccountKeeper() authkeeper.AccountKeeper
- func (app *SimApp) GetBaseApp() *baseapp.BaseApp
- func (app *SimApp) GetIBCKeeper() *ibckeeper.Keeper
- func (app *SimApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *SimApp) GetStakingKeeper() stakingkeeper.Keeper
- func (app *SimApp) GetTxConfig() client.TxConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FundAccount ¶
FundAccount is a utility function that funds an account by minting and sending the coins to the address TODO(fdymylja): instead of using the mint module account, which has the permission of minting, create a "faucet" account
func SignAndDeliver ¶
func SignAndDeliver( t *testing.T, txCfg client.TxConfig, app *bam.BaseApp, header tmproto.Header, msgs []sdk.Msg, chainID string, accNums, accSeqs []uint64, expSimPass, expPass bool, priv ...cryptotypes.PrivKey, ) (sdk.GasInfo, *sdk.Result, error)
SignAndDeliver signs and delivers a transaction. No simulation occurs as the ibc testing package causes checkState and deliverState to diverge in block time.
Types ¶
type SimApp ¶
func (*SimApp) GetAccountKeeper ¶
func (app *SimApp) GetAccountKeeper() authkeeper.AccountKeeper
func (*SimApp) GetBaseApp ¶
GetBaseApp implements the TestingApp interface.
func (*SimApp) GetIBCKeeper ¶
GetIBCKeeper implements the TestingApp interface.
func (*SimApp) GetScopedIBCKeeper ¶
func (app *SimApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
GetScopedIBCKeeper implements the TestingApp interface.
func (*SimApp) GetStakingKeeper ¶
func (app *SimApp) GetStakingKeeper() stakingkeeper.Keeper
GetStakingKeeper implements the TestingApp interface.
func (*SimApp) GetTxConfig ¶
GetTxConfig implements the TestingApp interface.
Click to show internal directories.
Click to hide internal directories.