Documentation ¶
Index ¶
- func CheckBalance(t *testing.T, app *App, addr sdk.Address, exp sdk.Coins)
- func GenTx(msg sdk.Msg, accnums []int64, seq []int64, priv ...crypto.PrivKeyEd25519) auth.StdTx
- func SetGenesis(app *App, accs []auth.Account)
- func SignCheck(t *testing.T, app *baseapp.BaseApp, msg sdk.Msg, accnums []int64, seq []int64, ...) sdk.Result
- func SignCheckDeliver(t *testing.T, app *baseapp.BaseApp, msg sdk.Msg, accnums []int64, seq []int64, ...)
- type App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBalance ¶
check an account balance
Types ¶
type App ¶
type App struct { *bam.BaseApp Cdc *wire.Codec // public since the codec is passed into the module anyways. KeyMain *sdk.KVStoreKey KeyAccount *sdk.KVStoreKey // TODO: Abstract this out from not needing to be auth specifically AccountMapper auth.AccountMapper FeeCollectionKeeper auth.FeeCollectionKeeper GenesisAccounts []auth.Account }
Extended ABCI application
func NewApp ¶
func NewApp() *App
partially construct a new app on the memstore for module and genesis testing
func (*App) CompleteSetup ¶
func (app *App) CompleteSetup(t *testing.T, newKeys []*sdk.KVStoreKey)
complete the application setup after the routes have been registered
func (*App) InitChainer ¶
func (app *App) InitChainer(ctx sdk.Context, _ abci.RequestInitChain) abci.ResponseInitChain
custom logic for initialization
Click to show internal directories.
Click to hide internal directories.