Documentation ¶
Index ¶
- Constants
- func NewNibiruApp(shouldUseDefaultGenesis bool) *app.NibiruApp
- func NewNibiruAppAndContext(shouldUseDefaultGenesis bool) (*app.NibiruApp, sdk.Context)
- func NewNibiruAppWithGenesis(gen app.GenesisState) *app.NibiruApp
- func NewTestGenesisState(codec codec.Codec, inGenState app.GenesisState) (testGenState app.GenesisState)
- func NewTestGenesisStateFromDefault() app.GenesisState
- func PricefeedGenesis() pricefeedtypes.GenesisState
Constants ¶
const ( GenOracleAddress = "nibi1zuxt7fvuxgj69mjxu3auca96zemqef5u2yemly" GenOracleMnemonic = "" /* 157-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func NewNibiruApp ¶
NewTestApp creates an application instance ('app.NibiruApp') with an in-memory database ('tmdb.MemDB') and disabled logging. It either uses the application's default genesis state or a blank one.
func NewNibiruAppAndContext ¶
NewNibiruApp creates an 'app.NibiruApp' instance with an in-memory 'tmdb.MemDB' and fresh 'sdk.Context'.
func NewNibiruAppWithGenesis ¶
func NewNibiruAppWithGenesis(gen app.GenesisState) *app.NibiruApp
NewTestAppWithGenesis 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 NewTestGenesisState ¶
func NewTestGenesisState(codec codec.Codec, inGenState app.GenesisState, ) (testGenState app.GenesisState)
NewTestGenesisState transforms 'inGenState' to add genesis parameter changes that are well suited to integration testing, then returns the transformed genesis. The blockchain genesis state is represented as a map from module identifier strings to raw json messages.
Args: - codec: Serializer for the module genesis state proto.Messages - inGenState: Input genesis state before the custom test setup is applied
func NewTestGenesisStateFromDefault ¶
func NewTestGenesisStateFromDefault() app.GenesisState
NewTestGenesisStateFromDefault returns 'NewGenesisState' using the default
genesis as input. The blockchain genesis state is represented as a map from module identifier strings to raw json messages.
func PricefeedGenesis ¶
func PricefeedGenesis() pricefeedtypes.GenesisState
PricefeedGenesis returns an x/pricefeed GenesisState with additional
configuration for convenience during integration tests.
Types ¶
This section is empty.