Documentation ¶
Index ¶
- Constants
- Variables
- func BlockedAccAddrs() map[string]bool
- func GetWasmEnabledProposals(v string) []wasmtypes.ProposalType
- func ModuleAccPerms() map[string][]string
- func NewModuleManager(deliverTxFunc func(abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx, ...) *module.Manager
- func NewSimulationManager(encCfg EncodingConfig, k Keepers) *module.SimulationManager
- type App
- func (a *App) BeginBlocker(ctx sdk.Context, req abcitypes.RequestBeginBlock) abcitypes.ResponseBeginBlock
- func (a *App) EndBlocker(ctx sdk.Context, req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock
- func (a *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (a *App) InitChainer(ctx sdk.Context, req abcitypes.RequestInitChain) abcitypes.ResponseInitChain
- func (a *App) LegacyAmino() *codec.LegacyAmino
- func (a *App) LoadHeight(height int64) error
- func (a *App) ModuleAccountAddrs() map[string]bool
- func (a *App) RegisterAPIRoutes(server *api.Server, _ serverconfig.APIConfig)
- func (a *App) RegisterSnapshotExtensions()
- func (a *App) RegisterTendermintService(ctx client.Context)
- func (a *App) RegisterTxService(ctx client.Context)
- func (a *App) SetUpgradeHandler(configurator module.Configurator)
- func (a *App) SetUpgradeStoreLoader()
- func (a *App) SetupAnteHandler(wasmConfig wasmtypes.WasmConfig)
- func (a *App) SimulationManager() *module.SimulationManager
- type EncodingConfig
- type Keepers
- type StoreKeys
- func (sk *StoreKeys) KV(v string) *sdk.KVStoreKey
- func (sk *StoreKeys) KVKeys() map[string]*sdk.KVStoreKey
- func (sk *StoreKeys) Memory(v string) *sdk.MemoryStoreKey
- func (sk *StoreKeys) MemoryKeys() map[string]*sdk.MemoryStoreKey
- func (sk *StoreKeys) Transient(v string) *sdk.TransientStoreKey
- func (sk *StoreKeys) TransientKeys() map[string]*sdk.TransientStoreKey
Constants ¶
View Source
const (
DefaultWasmProposals = "*"
)
Variables ¶
View Source
var ( ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, authvesting.AppModuleBasic{}, authzmodule.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, crisis.AppModuleBasic{}, distribution.AppModuleBasic{}, evidence.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, genutil.AppModuleBasic{}, gov.NewAppModuleBasic( append( []govclient.ProposalHandler{ distributionclient.ProposalHandler, paramsclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, }, wasmclient.ProposalHandlers..., )..., ), mint.AppModuleBasic{}, params.AppModuleBasic{}, slashing.AppModuleBasic{}, staking.AppModuleBasic{}, upgrade.AppModuleBasic{}, ibc.AppModuleBasic{}, ibcfee.AppModuleBasic{}, ibcica.AppModuleBasic{}, ibctransfer.AppModuleBasic{}, custommint.AppModuleBasic{}, swap.AppModuleBasic{}, vpn.AppModuleBasic{}, wasm.AppModuleBasic{}, ) )
Functions ¶
func BlockedAccAddrs ¶ added in v0.11.0
func GetWasmEnabledProposals ¶ added in v0.11.0
func GetWasmEnabledProposals(v string) []wasmtypes.ProposalType
func ModuleAccPerms ¶ added in v0.11.0
func NewModuleManager ¶ added in v0.11.0
func NewModuleManager( deliverTxFunc func(abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx, encCfg EncodingConfig, k Keepers, skipGenesisInvariants bool, ) *module.Manager
func NewSimulationManager ¶ added in v0.11.0
func NewSimulationManager(encCfg EncodingConfig, k Keepers) *module.SimulationManager
Types ¶
type App ¶ added in v0.11.0
type App struct { *baseapp.BaseApp EncodingConfig Keepers StoreKeys // contains filtered or unexported fields }
func NewApp ¶ added in v0.11.0
func NewApp( appOpts servertypes.AppOptions, db tmdb.DB, encCfg EncodingConfig, homeDir string, invCheckPeriod uint, loadLatest bool, logger tmlog.Logger, skipGenesisInvariants bool, skipUpgradeHeights map[int64]bool, traceWriter io.Writer, version string, wasmOpts []wasmkeeper.Option, wasmProposalTypes []wasmtypes.ProposalType, baseAppOpts ...func(*baseapp.BaseApp), ) *App
func (*App) BeginBlocker ¶ added in v0.11.0
func (a *App) BeginBlocker(ctx sdk.Context, req abcitypes.RequestBeginBlock) abcitypes.ResponseBeginBlock
func (*App) EndBlocker ¶ added in v0.11.0
func (a *App) EndBlocker(ctx sdk.Context, req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock
func (*App) ExportAppStateAndValidators ¶ added in v0.11.0
func (a *App) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
func (*App) InitChainer ¶ added in v0.11.0
func (a *App) InitChainer(ctx sdk.Context, req abcitypes.RequestInitChain) abcitypes.ResponseInitChain
func (*App) LegacyAmino ¶ added in v0.11.0
func (a *App) LegacyAmino() *codec.LegacyAmino
func (*App) LoadHeight ¶ added in v0.11.0
func (*App) ModuleAccountAddrs ¶ added in v0.11.0
func (*App) RegisterAPIRoutes ¶ added in v0.11.0
func (a *App) RegisterAPIRoutes(server *api.Server, _ serverconfig.APIConfig)
func (*App) RegisterSnapshotExtensions ¶ added in v0.11.0
func (a *App) RegisterSnapshotExtensions()
func (*App) RegisterTendermintService ¶ added in v0.11.0
func (*App) RegisterTxService ¶ added in v0.11.0
func (*App) SetUpgradeHandler ¶ added in v0.11.0
func (a *App) SetUpgradeHandler(configurator module.Configurator)
func (*App) SetUpgradeStoreLoader ¶ added in v0.11.0
func (a *App) SetUpgradeStoreLoader()
func (*App) SetupAnteHandler ¶ added in v0.11.0
func (a *App) SetupAnteHandler(wasmConfig wasmtypes.WasmConfig)
func (*App) SimulationManager ¶ added in v0.11.0
func (a *App) SimulationManager() *module.SimulationManager
type EncodingConfig ¶ added in v0.11.0
type EncodingConfig struct { Amino *codec.LegacyAmino Codec codec.Codec InterfaceRegistry codectypes.InterfaceRegistry TxConfig client.TxConfig }
func DefaultEncodingConfig ¶ added in v0.11.0
func DefaultEncodingConfig() EncodingConfig
func NewEncodingConfig ¶ added in v0.11.0
func NewEncodingConfig() EncodingConfig
type Keepers ¶ added in v0.11.0
type Keepers struct { // Cosmos SDK keepers AccountKeeper authkeeper.AccountKeeper AuthzKeeper authzkeeper.Keeper BankKeeper bankkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper CrisisKeeper crisiskeeper.Keeper DistributionKeeper distributionkeeper.Keeper EvidenceKeeper evidencekeeper.Keeper FeeGrantKeeper feegrantkeeper.Keeper GovKeeper govkeeper.Keeper MintKeeper mintkeeper.Keeper ParamsKeeper paramskeeper.Keeper SlashingKeeper slashingkeeper.Keeper StakingKeeper stakingkeeper.Keeper UpgradeKeeper upgradekeeper.Keeper // Cosmos IBC keepers IBCKeeper *ibckeeper.Keeper IBCFeeKeeper ibcfeekeeper.Keeper IBCICAControllerKeeper ibcicacontrollerkeeper.Keeper IBCICAHostKeeper ibcicahostkeeper.Keeper IBCTransferKeeper ibctransferkeeper.Keeper // Sentinel Hub keepers CustomMintKeeper custommintkeeper.Keeper SwapKeeper swapkeeper.Keeper VPNKeeper vpnkeeper.Keeper // Other keepers WasmKeeper wasmkeeper.Keeper // Cosmos IBC scoped keepers ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedIBCFeeKeeper capabilitykeeper.ScopedKeeper ScopedIBCICAControllerKeeper capabilitykeeper.ScopedKeeper ScopedIBCICAHostKeeper capabilitykeeper.ScopedKeeper ScopedIBCTransferKeeper capabilitykeeper.ScopedKeeper // Other scoped keepers ScopedWasmKeeper capabilitykeeper.ScopedKeeper }
func NewKeepers ¶ added in v0.11.0
func NewKeepers( app *baseapp.BaseApp, blockedAddrs map[string]bool, encCfg EncodingConfig, homeDir string, invCheckPeriod uint, keys StoreKeys, mAccPerms map[string][]string, skipUpgradeHeights map[int64]bool, wasmConfig wasmtypes.WasmConfig, wasmOpts []wasmkeeper.Option, wasmProposalTypes []wasmtypes.ProposalType, ) (k Keepers)
func (*Keepers) SetParamSubspaces ¶ added in v0.11.0
type StoreKeys ¶ added in v0.11.0
type StoreKeys struct {
// contains filtered or unexported fields
}
func NewStoreKeys ¶ added in v0.11.0
func NewStoreKeys() StoreKeys
func (*StoreKeys) KVKeys ¶ added in v0.11.0
func (sk *StoreKeys) KVKeys() map[string]*sdk.KVStoreKey
func (*StoreKeys) Memory ¶ added in v0.11.0
func (sk *StoreKeys) Memory(v string) *sdk.MemoryStoreKey
func (*StoreKeys) MemoryKeys ¶ added in v0.11.0
func (sk *StoreKeys) MemoryKeys() map[string]*sdk.MemoryStoreKey
func (*StoreKeys) Transient ¶ added in v0.11.0
func (sk *StoreKeys) Transient(v string) *sdk.TransientStoreKey
func (*StoreKeys) TransientKeys ¶ added in v0.11.0
func (sk *StoreKeys) TransientKeys() map[string]*sdk.TransientStoreKey
Source Files ¶
Click to show internal directories.
Click to hide internal directories.