Documentation ¶
Index ¶
- Constants
- Variables
- func NewAnteHandler(options AnteHandlerOptions) (sdk.AnteHandler, error)
- func NewPostHandler(options PostHandlerOptions) (sdk.PostHandler, error)
- type AnteHandlerOptions
- type EncodingConfig
- type GenesisState
- type PostHandlerOptions
- type SimApp
- func (app *SimApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *SimApp) Codec() codec.Codec
- func (app *SimApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *SimApp) ExportAppStateAndValidators(_ bool, _ []string, _ []string) (servertypes.ExportedApp, error)
- func (app *SimApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *SimApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *SimApp) LegacyAmino() *codec.LegacyAmino
- func (app *SimApp) LoadHeight(height int64) error
- func (app *SimApp) Name() string
- func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *SimApp) RegisterNodeService(clientCtx client.Context)
- func (app *SimApp) RegisterTendermintService(clientCtx client.Context)
- func (app *SimApp) RegisterTxService(clientCtx client.Context)
- func (app *SimApp) SimulationManager() *module.SimulationManager
- func (app *SimApp) TxConfig() client.TxConfig
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 ¶
View Source
var ( DefaultNodeHome string ModuleBasics = module.NewBasicManager( abstractaccount.AppModuleBasic{}, auth.AppModuleBasic{}, bank.AppModuleBasic{}, consensus.AppModuleBasic{}, poa.AppModuleBasic{}, wasm.AppModuleBasic{}, ) )
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) 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 (*SimApp) RegisterAPIRoutes ¶
func (*SimApp) RegisterNodeService ¶
func (*SimApp) RegisterTendermintService ¶
func (*SimApp) RegisterTxService ¶
func (*SimApp) SimulationManager ¶
func (app *SimApp) SimulationManager() *module.SimulationManager
Click to show internal directories.
Click to hide internal directories.