Documentation ¶
Index ¶
- func SetupGenesisValSet(valSet *tmtypes.ValidatorSet, genAccs []authtypes.GenesisAccount, ...) terra_app.GenesisState
- type AppTestSuite
- func (s *AppTestSuite) AssertEventEmitted(ctx sdk.Context, eventTypeExpected string, numEventsExpected int)
- func (s *AppTestSuite) CreateRandomAccounts(numAccts int) []sdk.AccAddress
- func (s *AppTestSuite) FundAcc(acc sdk.AccAddress, amounts sdk.Coins) (err error)
- func (s *AppTestSuite) FundModule(moduleAccount string, amounts sdk.Coins) (err error)
- func (s *AppTestSuite) Setup()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupGenesisValSet ¶
func SetupGenesisValSet( valSet *tmtypes.ValidatorSet, genAccs []authtypes.GenesisAccount, opts []wasm.Option, app *terra_app.TerraApp, encCfg appparams.EncodingConfig, balances ...banktypes.Balance, ) terra_app.GenesisState
Types ¶
type AppTestSuite ¶
type AppTestSuite struct { suite.Suite App *terra_app.TerraApp Ctx sdk.Context QueryHelper *baseapp.QueryServiceTestHelper TestAccs []sdk.AccAddress EncodingConfig appparams.EncodingConfig }
func (*AppTestSuite) AssertEventEmitted ¶
func (s *AppTestSuite) AssertEventEmitted(ctx sdk.Context, eventTypeExpected string, numEventsExpected int)
func (*AppTestSuite) CreateRandomAccounts ¶ added in v2.6.0
func (s *AppTestSuite) CreateRandomAccounts(numAccts int) []sdk.AccAddress
CreateRandomAccounts is a function return a list of randomly generated AccAddresses
func (*AppTestSuite) FundAcc ¶
func (s *AppTestSuite) FundAcc(acc sdk.AccAddress, amounts sdk.Coins) (err error)
FundAcc funds target address with specified amount.
func (*AppTestSuite) FundModule ¶ added in v2.7.0
func (s *AppTestSuite) FundModule(moduleAccount string, amounts sdk.Coins) (err error)
FundAcc funds target address with specified amount.
func (*AppTestSuite) Setup ¶
func (s *AppTestSuite) Setup()
Setup sets up basic environment for suite (App, Ctx, and test accounts)
Click to show internal directories.
Click to hide internal directories.