simapp

package
v0.0.0-...-5442afc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "SimApp"

	// A random account I created to serve as the authority for modules, since
	// this simapp doesn't have a gov module.
	//
	// The seed phrase is:
	//
	// crumble soon   hockey  pigeon  border   health
	// human   cotton romance fork    mountain rapid
	// scan    swarm  basic   subject tornado  genius
	// parade  stone  coyote  pluck   journey  fatal
	Authority = "cosmos1tqr9a9m9nk0c22uq2c2slundmqhtnrnhwks7x0"
)

Variables

Functions

func NewAnteHandler

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

func NewPostHandler

func NewPostHandler(options PostHandlerOptions) (sdk.PostHandler, error)

Types

type AnteHandlerOptions

type AnteHandlerOptions struct {
	ante.HandlerOptions

	WasmCfg               *wasmtypes.WasmConfig
	TXCounterStoreKey     storetypes.StoreKey
	AbstractAccountKeeper abstractaccountkeeper.Keeper
}

type EncodingConfig

type EncodingConfig struct {
	InterfaceRegistry types.InterfaceRegistry
	Codec             codec.Codec
	TxConfig          client.TxConfig
	Amino             *codec.LegacyAmino
}

func MakeEncodingConfig

func MakeEncodingConfig() EncodingConfig

func MakeTestEncodingConfig

func MakeTestEncodingConfig() EncodingConfig

type GenesisState

type GenesisState map[string]json.RawMessage

func DefaultGenesisState

func DefaultGenesisState(cdc codec.JSONCodec) GenesisState

type PostHandlerOptions

type PostHandlerOptions struct {
	posthandler.HandlerOptions

	AccountKeeper         ante.AccountKeeper
	AbstractAccountKeeper abstractaccountkeeper.Keeper
}

type SimApp

type SimApp struct {
	*baseapp.BaseApp

	AbstractAccountKeeper abstractaccountkeeper.Keeper
	AccountKeeper         authkeeper.AccountKeeper
	BankKeeper            bankkeeper.Keeper
	ConsensusParamsKeeper consensusparamkeeper.Keeper
	WasmKeeper            wasmkeeper.Keeper

	ModuleManager *module.Manager
	// contains filtered or unexported fields
}

func NewSimApp

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

func (*SimApp) BeginBlocker

func (app *SimApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

func (*SimApp) Codec

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

func (*SimApp) EndBlocker

func (app *SimApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

func (*SimApp) ExportAppStateAndValidators

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

func (*SimApp) InitChainer

func (app *SimApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain

func (*SimApp) InterfaceRegistry

func (app *SimApp) InterfaceRegistry() types.InterfaceRegistry

func (*SimApp) LegacyAmino

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

func (*SimApp) LoadHeight

func (app *SimApp) LoadHeight(height int64) error

func (*SimApp) Name

func (app *SimApp) Name() string

func (*SimApp) RegisterAPIRoutes

func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)

func (*SimApp) RegisterNodeService

func (app *SimApp) RegisterNodeService(clientCtx client.Context)

func (*SimApp) RegisterTendermintService

func (app *SimApp) RegisterTendermintService(clientCtx client.Context)

func (*SimApp) RegisterTxService

func (app *SimApp) RegisterTxService(clientCtx client.Context)

func (*SimApp) SimulationManager

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

func (*SimApp) TxConfig

func (app *SimApp) TxConfig() client.TxConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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