Documentation ¶
Index ¶
- func DefaultSudoRoot() sdk.AccAddress
- func DefaultSudoers() sudotypes.Sudoers
- func EnsureNibiruPrefix()
- func FirstBlockProposer(chain *app.NibiruApp, ctx sdk.Context) (proposerAddr sdk.ConsAddress)
- func FundAccount(bankKeeper bankkeeper.Keeper, ctx sdk.Context, addr sdk.AccAddress, ...) error
- func FundFeeCollector(bk bankkeeper.Keeper, ctx sdk.Context, amount math.Int) error
- func FundModuleAccount(bankKeeper bankkeeper.Keeper, ctx sdk.Context, recipientMod string, ...) error
- func GenesisStateWithSingleValidator(codec codec.Codec, genesisState nibiruapp.GenesisState) (nibiruapp.GenesisState, error)
- func NewContext(nibiru *app.NibiruApp) sdk.Context
- func NewNibiruTestApp(gen app.GenesisState, baseAppOptions ...func(*baseapp.BaseApp)) *app.NibiruApp
- func NewNibiruTestAppAndContext() (*app.NibiruApp, sdk.Context)
- func NewNibiruTestAppAndContextAtTime(startTime time.Time) (*app.NibiruApp, sdk.Context)
- func SetDefaultSudoGenesis(gen app.GenesisState)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSudoRoot ¶
func DefaultSudoRoot() sdk.AccAddress
func DefaultSudoers ¶
DefaultSudoers: State for the x/sudo module for the default test app.
func EnsureNibiruPrefix ¶
func EnsureNibiruPrefix()
EnsureNibiruPrefix sets the account address prefix to Nibiru's rather than the default from the Cosmos-SDK, guaranteeing that tests will work with nibi addresses rather than cosmos ones (for Gaia).
func FirstBlockProposer ¶
func FundAccount ¶
func FundAccount( bankKeeper bankkeeper.Keeper, ctx sdk.Context, addr sdk.AccAddress, amounts sdk.Coins, ) error
FundAccount is a utility function that funds an account by minting and sending the coins to the address. This should be used for testing purposes only!
func FundFeeCollector ¶
FundFeeCollector funds the module account that collects gas fees with some amount of "unibi", the gas token.
func FundModuleAccount ¶
func FundModuleAccount( bankKeeper bankkeeper.Keeper, ctx sdk.Context, recipientMod string, amounts sdk.Coins, ) error
FundModuleAccount is a utility function that funds a module account by minting and sending the coins to the address. This should be used for testing purposes only!
func GenesisStateWithSingleValidator ¶
func GenesisStateWithSingleValidator(codec codec.Codec, genesisState nibiruapp.GenesisState) (nibiruapp.GenesisState, error)
GenesisStateWithSingleValidator initializes GenesisState with a single validator and genesis accounts that also act as delegators.
func NewContext ¶
NewContext: Returns a fresh sdk.Context corresponding to the given NibiruApp.
func NewNibiruTestApp ¶
func NewNibiruTestApp(gen app.GenesisState, baseAppOptions ...func(*baseapp.BaseApp)) *app.NibiruApp
NewNibiruTestApp initializes a chain with the given genesis state to creates an application instance ('app.NibiruApp'). This app uses an in-memory database ('tmdb.MemDB') and has logging disabled.
func NewNibiruTestAppAndContext ¶
NewNibiruTestAppAndContext creates an 'app.NibiruApp' instance with an in-memory 'tmdb.MemDB' and fresh 'sdk.Context'.
func NewNibiruTestAppAndContextAtTime ¶
NewNibiruTestAppAndZeroTimeCtx: Runs NewNibiruTestAppAndZeroTimeCtx with the block time set to time zero.
func SetDefaultSudoGenesis ¶
func SetDefaultSudoGenesis(gen app.GenesisState)
SetDefaultSudoGenesis: Sets the sudo module genesis state to a valid default. See "DefaultSudoers".
Types ¶
This section is empty.