app

package
v2.0.0-...-6aeee29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRandomAccounts

func CreateRandomAccounts(numAccts int) []sdk.AccAddress

CreateRandomAccounts is a function return a list of randomly generated AccAddresses

func SetupGenesisValSet

func SetupGenesisValSet(
	valSet *tmtypes.ValidatorSet,
	genAccs []authtypes.GenesisAccount,
	opts []wasm.Option,
	app *jmes_app.JMESApp,
	encCfg terrraParams.EncodingConfig,
	balances ...banktypes.Balance,
) jmes_app.GenesisState

Types

type AppTestSuite

type AppTestSuite struct {
	suite.Suite

	App         *app.JMESApp
	Ctx         sdk.Context
	QueryHelper *baseapp.QueryServiceTestHelper
	TestAccs    []sdk.AccAddress
}

func (*AppTestSuite) AssertEventEmitted

func (s *AppTestSuite) AssertEventEmitted(ctx sdk.Context, eventTypeExpected string, numEventsExpected int)

func (*AppTestSuite) FundAcc

func (s *AppTestSuite) FundAcc(acc sdk.AccAddress, 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL