app

package
v12.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 135 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpgradeName = "v12_0_0"
)

Variables

Functions

func BlockedAccAddrs

func BlockedAccAddrs() map[string]bool

func ModuleAccPerms

func ModuleAccPerms() map[string][]string

func NewModuleManager

func NewModuleManager(
	deliverTxFunc func(abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx, encCfg EncodingConfig, k Keepers,
	msgRouter *baseapp.MsgServiceRouter, skipGenesisInvariants bool,
) *sdkmodule.Manager

func NewSimulationManager

func NewSimulationManager(
	encCfg EncodingConfig, k Keepers, msgRouter *baseapp.MsgServiceRouter,
) *sdkmodule.SimulationManager

func UpgradeHandler

func UpgradeHandler(
	cdc codec.Codec, mm *sdkmodule.Manager, configurator sdkmodule.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 (*App) EndBlocker

func (*App) ExportAppStateAndValidators

func (a *App) ExportAppStateAndValidators(
	forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string,
) (servertypes.ExportedApp, error)

func (*App) InitChainer

func (*App) LegacyAmino

func (a *App) LegacyAmino() *codec.LegacyAmino

func (*App) LoadHeight

func (a *App) LoadHeight(height int64) error

func (*App) ModuleAccountAddrs

func (a *App) ModuleAccountAddrs() map[string]bool

func (*App) RegisterAPIRoutes

func (a *App) RegisterAPIRoutes(server *api.Server, _ serverconfig.APIConfig)

func (*App) RegisterNodeService

func (a *App) RegisterNodeService(ctx client.Context)

func (*App) RegisterSnapshotExtensions

func (a *App) RegisterSnapshotExtensions()

func (*App) RegisterTendermintService

func (a *App) RegisterTendermintService(ctx client.Context)

func (*App) RegisterTxService

func (a *App) RegisterTxService(ctx client.Context)

func (*App) SetUpgradeHandler

func (a *App) SetUpgradeHandler(configurator sdkmodule.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() *sdkmodule.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
	OracleKeeper     oraclekeeper.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

	// Sentinel scoped keepers
	ScopedOracleKeeper 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

func (k *Keepers) SetParamSubspaces(app *baseapp.BaseApp)

func (*Keepers) Subspace

func (k *Keepers) Subspace(v string) paramstypes.Subspace

type StoreKeys

type StoreKeys struct {
	// contains filtered or unexported fields
}

func NewStoreKeys

func NewStoreKeys() StoreKeys

func (*StoreKeys) KV

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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