Documentation
¶
Index ¶
- Variables
- func MakeEncodingConfig() params.EncodingConfig
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func NewTestNetworkFixture() network.TestFixture
- func SendCoinBlockedAddrs() map[string]bool
- type Application
- func (app *Application) AppCodec() codec.Codec
- func (app *Application) AutoCliOpts() autocli.AppOptions
- func (app *Application) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (app *Application) ChainID() string
- func (app *Application) DefaultGenesis() map[string]json.RawMessage
- func (app *Application) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- func (app *Application) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *Application) GetChainBondDenom() string
- func (app *Application) GetFeeDenomsWhitelist() []string
- func (app *Application) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *Application) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (app *Application) InterfaceRegistry() types.InterfaceRegistry
- func (app *Application) LegacyAmino() *codec.LegacyAmino
- func (app *Application) LoadHeight(height int64) error
- func (app *Application) ModuleAccountAddrs() map[string]bool
- func (app *Application) ModuleManager() *module.Manager
- func (app *Application) Name() string
- func (app *Application) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
- func (app *Application) RegisterAPIRoutes(apiServer *api.Server, apiConfig config.APIConfig)
- func (app *Application) RegisterNodeService(clientCtx client.Context, cfg config.Config)
- func (app *Application) RegisterTendermintService(clientCtx client.Context)
- func (app *Application) RegisterTxService(clientContect client.Context)
- func (app *Application) SimulationManager() *module.SimulationManager
- func (app *Application) TxConfig() client.TxConfig
- type FeeDenomWhitelistDecorator
- type GenesisState
- type HandlerOptions
Constants ¶
This section is empty.
Variables ¶
var ( DefaultNodeHome string Upgrades = []upgrades.Upgrade{v1500.Upgrade} ModuleBasics = module.NewBasicManager(keepers.AppModuleBasics...) )
var ModuleAccountPermissions = map[string][]string{ authtypes.FeeCollectorName: nil, distributiontypes.ModuleName: nil, icatypes.ModuleName: nil, minttypes.ModuleName: {authtypes.Minter}, stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking}, stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking}, govtypes.ModuleName: {authtypes.Burner}, ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, wasm.ModuleName: {authtypes.Burner}, liquidstaketypes.ModuleName: {authtypes.Minter, authtypes.Burner}, }
Functions ¶
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
func NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
func NewTestNetworkFixture ¶
func NewTestNetworkFixture() network.TestFixture
NewTestNetworkFixture returns a new persistenceCore AppConstructor for network simulation tests.
func SendCoinBlockedAddrs ¶
Types ¶
type Application ¶
type Application struct {
*baseapp.BaseApp
*keepers.AppKeepers
ModuleBasicManager module.BasicManager
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, applicationOptions servertypes.AppOptions, wasmOpts []wasm.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *Application
func (*Application) AppCodec ¶
func (app *Application) AppCodec() codec.Codec
func (*Application) AutoCliOpts ¶
func (app *Application) AutoCliOpts() autocli.AppOptions
AutoCliOpts returns the autocli options for the app.
func (*Application) BeginBlocker ¶
func (app *Application) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
func (*Application) ChainID ¶
func (app *Application) ChainID() string
ChainID gets chainID from private fields of BaseApp Should be removed once SDK 0.50.x will be adopted
func (*Application) DefaultGenesis ¶
func (app *Application) DefaultGenesis() map[string]json.RawMessage
DefaultGenesis returns a default genesis from the registered AppModuleBasic's.
func (*Application) EndBlocker ¶
func (*Application) ExportAppStateAndValidators ¶
func (app *Application) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, modulesToExport []string) (servertypes.ExportedApp, error)
func (*Application) GetChainBondDenom ¶
func (app *Application) GetChainBondDenom() string
GetChainBondDenom returns expected chain bond denom.
func (*Application) GetFeeDenomsWhitelist ¶
func (app *Application) GetFeeDenomsWhitelist() []string
func (*Application) GetSubspace ¶
func (app *Application) GetSubspace(moduleName string) paramstypes.Subspace
func (*Application) InitChainer ¶
func (app *Application) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
func (*Application) InterfaceRegistry ¶
func (app *Application) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns Application's InterfaceRegistry
func (*Application) LegacyAmino ¶
func (app *Application) LegacyAmino() *codec.LegacyAmino
func (*Application) LoadHeight ¶
func (app *Application) LoadHeight(height int64) error
func (*Application) ModuleAccountAddrs ¶
func (app *Application) ModuleAccountAddrs() map[string]bool
func (*Application) ModuleManager ¶
func (app *Application) ModuleManager() *module.Manager
func (*Application) Name ¶
func (app *Application) Name() string
func (*Application) PreBlocker ¶
func (app *Application) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
func (*Application) RegisterAPIRoutes ¶
func (app *Application) RegisterAPIRoutes(apiServer *api.Server, apiConfig config.APIConfig)
func (*Application) RegisterNodeService ¶
func (app *Application) RegisterNodeService(clientCtx client.Context, cfg config.Config)
func (*Application) RegisterTendermintService ¶
func (app *Application) RegisterTendermintService(clientCtx client.Context)
func (*Application) RegisterTxService ¶
func (app *Application) RegisterTxService(clientContect client.Context)
func (*Application) SimulationManager ¶
func (app *Application) SimulationManager() *module.SimulationManager
func (*Application) TxConfig ¶
func (app *Application) TxConfig() client.TxConfig
TxConfig returns Application's TxConfig
type FeeDenomWhitelistDecorator ¶
type FeeDenomWhitelistDecorator struct {
// contains filtered or unexported fields
}
func NewFeeDenomWhitelistDecorator ¶
func NewFeeDenomWhitelistDecorator(denomsWhitelist []string) *FeeDenomWhitelistDecorator
func (*FeeDenomWhitelistDecorator) AnteHandle ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState of the blockchain is represented here as a map of raw json messages key'd by a identifier string. The identifier is used to determine which module genesis information belongs to so it may be appropriately routed during init chain. Within this Application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the Application.
type HandlerOptions ¶
type HandlerOptions struct {
ante.HandlerOptions
IBCKeeper *ibckeeper.Keeper
NodeConfig *wasmtypes.NodeConfig
TXCounterStoreService corestoretypes.KVStoreService
TxDecoder sdk.TxDecoder
TxEncoder sdk.TxEncoder
FeeDenomsWhitelist []string
}