simapp

package module
v0.0.0-...-e3796e8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 66 Imported by: 0

README

FiatTokenFactory SimApp

This Simulation App is for testing purposes only, and strongly based on the IBC-Go v4 SimApp.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfigYAML []byte
View Source
var DefaultNodeHome string
View Source
var ErrLogic = errors.Register("simapp", 1, "internal logic error")

Functions

func AppConfig

func AppConfig() depinject.Config

AppConfig returns the default app config.

func NewAnteHandler

func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)

NewAnteHandler creates a new ante handler

Types

type HandlerOptions

type HandlerOptions struct {
	ante.HandlerOptions

	IBCKeeper *ibckeeper.Keeper

	FiatTokenFactoryKeeper *fiattokenfactorykeeper.Keeper
	// contains filtered or unexported fields
}

HandlerOptions extend the SDK's AnteHandler options by requiring the IBC keeper.

type SimApp

type SimApp struct {
	*runtime.App

	// Cosmos SDK Modules
	AccountKeeper         authkeeper.AccountKeeper
	AuthzKeeper           authzkeeper.Keeper
	BankKeeper            bankkeeper.Keeper
	ConsensusParamsKeeper consensuskeeper.Keeper
	DistributionKeeper    distributionkeeper.Keeper
	ParamsKeeper          paramskeeper.Keeper
	StakingKeeper         *stakingkeeper.Keeper
	UpgradeKeeper         *upgradekeeper.Keeper
	// IBC Modules
	CapabilityKeeper     *capabilitykeeper.Keeper
	IBCKeeper            *ibckeeper.Keeper
	ScopedIBCKeeper      capabilitykeeper.ScopedKeeper
	TransferKeeper       transferkeeper.Keeper
	ScopedTransferKeeper capabilitykeeper.ScopedKeeper
	// Custom Modules
	FiatTokenFactoryKeeper *fiattokenfactorykeeper.Keeper
	// contains filtered or unexported fields
}

SimApp extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.

func NewSimApp

func NewSimApp(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	appOpts servertypes.AppOptions,
	baseAppOptions ...func(*baseapp.BaseApp),
) (*SimApp, error)

NewSimApp returns a reference to an initialized SimApp.

func (*SimApp) ExportAppStateAndValidators

func (app *SimApp) ExportAppStateAndValidators(
	forZeroHeight bool,
	jailAllowedAddrs []string,
	modulesToExport []string,
) (servertypes.ExportedApp, error)

ExportAppStateAndValidators exports the state of the application for a genesis file.

func (*SimApp) GetKey

func (app *SimApp) GetKey(storeKey string) *storetypes.KVStoreKey

GetKey returns the KVStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*SimApp) GetMemKey

func (app *SimApp) GetMemKey(memKey string) *storetypes.MemoryStoreKey

GetMemKey returns the MemStoreKey for the provided mem key.

NOTE: This is solely used for testing purposes.

func (*SimApp) GetSubspace

func (app *SimApp) GetSubspace(moduleName string) paramstypes.Subspace

GetSubspace returns a param subspace for a given module name.

NOTE: This is solely to be used for testing purposes.

func (*SimApp) LegacyAmino

func (app *SimApp) LegacyAmino() *codec.LegacyAmino

LegacyAmino returns SimApp's amino codec.

NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.

func (*SimApp) RegisterIBCModules

func (app *SimApp) RegisterIBCModules() error

func (*SimApp) SimulationManager

func (app *SimApp) SimulationManager() *module.SimulationManager

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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