MCPcopy Create free account
hub / github.com/Sifchain/sifnode / CreateTestApp

Function CreateTestApp

x/clp/test/test_common.go:33–40  ·  view source on GitHub ↗

CreateTestApp returns context and app with params set on account keeper

(isCheckTx bool)

Source from the content-addressed store, hash-verified

31
32// CreateTestApp returns context and app with params set on account keeper
33func CreateTestApp(isCheckTx bool) (*sifapp.SifchainApp, sdk.Context) {
34 app := sifapp.Setup(isCheckTx)
35 ctx := app.BaseApp.NewContext(isCheckTx, tmproto.Header{})
36 app.AccountKeeper.SetParams(ctx, authtypes.DefaultParams())
37 initTokens := sdk.TokensFromConsensusPower(1000, sdk.DefaultPowerReduction)
38 _ = sifapp.AddTestAddrs(app, ctx, 6, initTokens)
39 return app, ctx
40}
41func CreateTestAppClp(isCheckTx bool) (sdk.Context, *sifapp.SifchainApp) {
42 return CreateTestAppClpWithBlacklist(isCheckTx, []sdk.AccAddress{})
43}

Calls 1

SetParamsMethod · 0.65