Documentation ¶
Index ¶
- Constants
- Variables
- func BlockedAccAddrs() map[string]bool
- func ModuleAccPerms() map[string][]string
- func NewModuleManager(deliverTxFunc func(abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx, ...) *module.Manager
- func NewSimulationManager(encCfg EncodingConfig, k Keepers, msgRouter *baseapp.MsgServiceRouter) *module.SimulationManager
- func UpgradeHandler(cdc codec.Codec, mm *module.Manager, configurator module.Configurator, ...) upgradetypes.UpgradeHandler
- 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, modulesToExport []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) RegisterNodeService(ctx client.Context)
- 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) *storetypes.KVStoreKey
- func (sk *StoreKeys) KVKeys() map[string]*storetypes.KVStoreKey
- func (sk *StoreKeys) Memory(v string) *storetypes.MemoryStoreKey
- func (sk *StoreKeys) MemoryKeys() map[string]*storetypes.MemoryStoreKey
- func (sk *StoreKeys) Transient(v string) *storetypes.TransientStoreKey
- func (sk *StoreKeys) TransientKeys() map[string]*storetypes.TransientStoreKey
Constants ¶
View Source
const (
UpgradeName = "v12_0_0"
)
Variables ¶
View Source
var ( ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, authvesting.AppModuleBasic{}, authzmodule.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, consensus.AppModuleBasic{}, crisis.AppModuleBasic{}, distribution.AppModuleBasic{}, evidence.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), gov.NewAppModuleBasic( []govclient.ProposalHandler{ paramsclient.ProposalHandler, upgradeclient.LegacyProposalHandler, upgradeclient.LegacyCancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, }, ), groupmodule.AppModuleBasic{}, mint.AppModuleBasic{}, nftmodule.AppModuleBasic{}, params.AppModuleBasic{}, slashing.AppModuleBasic{}, staking.AppModuleBasic{}, upgrade.AppModuleBasic{}, ibc.AppModuleBasic{}, ibcsolomachine.AppModuleBasic{}, ibcfee.AppModuleBasic{}, ibcica.AppModuleBasic{}, ibctm.AppModuleBasic{}, ibctransfer.AppModuleBasic{}, custommint.AppModuleBasic{}, swap.AppModuleBasic{}, vpn.AppModuleBasic{}, wasm.AppModuleBasic{}, ) )
View Source
var ( StoreUpgrades = &storetypes.StoreUpgrades{ Added: []string{ consensustypes.ModuleName, crisistypes.ModuleName, group.ModuleName, nft.ModuleName, }, } )
Functions ¶
func BlockedAccAddrs ¶
func ModuleAccPerms ¶
func NewModuleManager ¶
func NewModuleManager( deliverTxFunc func(abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx, encCfg EncodingConfig, k Keepers, msgRouter *baseapp.MsgServiceRouter, skipGenesisInvariants bool, ) *module.Manager
func NewSimulationManager ¶
func NewSimulationManager(encCfg EncodingConfig, k Keepers, msgRouter *baseapp.MsgServiceRouter) *module.SimulationManager
func UpgradeHandler ¶
func UpgradeHandler( cdc codec.Codec, mm *module.Manager, configurator module.Configurator, keepers Keepers, ) upgradetypes.UpgradeHandler
Types ¶
type App ¶
type App struct { *baseapp.BaseApp EncodingConfig Keepers StoreKeys // contains filtered or unexported fields }
func NewApp ¶
func NewApp( appOpts servertypes.AppOptions, bech32Prefix string, 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, baseAppOpts ...func(*baseapp.BaseApp), ) *App
func (*App) BeginBlocker ¶
func (a *App) BeginBlocker(ctx sdk.Context, req abcitypes.RequestBeginBlock) abcitypes.ResponseBeginBlock
func (*App) EndBlocker ¶
func (a *App) EndBlocker(ctx sdk.Context, req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock
func (*App) ExportAppStateAndValidators ¶
func (a *App) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
func (*App) InitChainer ¶
func (a *App) InitChainer(ctx sdk.Context, req abcitypes.RequestInitChain) abcitypes.ResponseInitChain
func (*App) LegacyAmino ¶
func (a *App) LegacyAmino() *codec.LegacyAmino
func (*App) LoadHeight ¶
func (*App) ModuleAccountAddrs ¶
func (*App) RegisterAPIRoutes ¶
func (a *App) RegisterAPIRoutes(server *api.Server, _ serverconfig.APIConfig)
func (*App) RegisterNodeService ¶
func (*App) RegisterSnapshotExtensions ¶
func (a *App) RegisterSnapshotExtensions()
func (*App) RegisterTendermintService ¶
func (*App) RegisterTxService ¶
func (*App) SetUpgradeHandler ¶
func (a *App) SetUpgradeHandler(configurator module.Configurator)
func (*App) SetUpgradeStoreLoader ¶
func (a *App) SetUpgradeStoreLoader()
func (*App) SetupAnteHandler ¶
func (a *App) SetupAnteHandler(wasmConfig wasmtypes.WasmConfig)
func (*App) SimulationManager ¶
func (a *App) SimulationManager() *module.SimulationManager
type EncodingConfig ¶
type EncodingConfig struct { Amino *codec.LegacyAmino Codec codec.Codec InterfaceRegistry codectypes.InterfaceRegistry TxConfig client.TxConfig }
func DefaultEncodingConfig ¶
func DefaultEncodingConfig() EncodingConfig
func NewEncodingConfig ¶
func NewEncodingConfig() EncodingConfig
type Keepers ¶
type Keepers struct { // Cosmos SDK keepers AccountKeeper authkeeper.AccountKeeper AuthzKeeper authzkeeper.Keeper BankKeeper bankkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper ConsensusKeeper consensuskeeper.Keeper CrisisKeeper *crisiskeeper.Keeper DistributionKeeper distributionkeeper.Keeper EvidenceKeeper evidencekeeper.Keeper FeeGrantKeeper feegrantkeeper.Keeper GovKeeper *govkeeper.Keeper GroupKeeper groupkeeper.Keeper MintKeeper mintkeeper.Keeper NFTKeeper nftkeeper.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 ContractKeeper *wasmkeeper.PermissionedKeeper 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 ¶
func NewKeepers( app *baseapp.BaseApp, bech32Prefix string, 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, ) (k Keepers)
func (*Keepers) SetParamSubspaces ¶
type StoreKeys ¶
type StoreKeys struct {
// contains filtered or unexported fields
}
func NewStoreKeys ¶
func NewStoreKeys() StoreKeys
func (*StoreKeys) KV ¶
func (sk *StoreKeys) KV(v string) *storetypes.KVStoreKey
func (*StoreKeys) KVKeys ¶
func (sk *StoreKeys) KVKeys() map[string]*storetypes.KVStoreKey
func (*StoreKeys) Memory ¶
func (sk *StoreKeys) Memory(v string) *storetypes.MemoryStoreKey
func (*StoreKeys) MemoryKeys ¶
func (sk *StoreKeys) MemoryKeys() map[string]*storetypes.MemoryStoreKey
func (*StoreKeys) Transient ¶
func (sk *StoreKeys) Transient(v string) *storetypes.TransientStoreKey
func (*StoreKeys) TransientKeys ¶
func (sk *StoreKeys) TransientKeys() map[string]*storetypes.TransientStoreKey
Source Files ¶
Click to show internal directories.
Click to hide internal directories.