keepers

package
v4.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 119 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

AppModuleBasics returns ModuleBasics for the module BasicManager.

Functions

func KVStoreKeys

func KVStoreKeys() []string

Types

type AppKeepers

type AppKeepers struct {

	// keepers
	ParamsKeeper          paramskeeper.Keeper
	CapabilityKeeper      *capabilitykeeper.Keeper
	CrisisKeeper          *crisiskeeper.Keeper
	UpgradeKeeper         *upgradekeeper.Keeper
	ConsensusParamsKeeper consensusparamkeeper.Keeper
	AccountKeeper         authkeeper.AccountKeeper
	BankKeeper            bankkeeper.BaseKeeper
	AuthzKeeper           authzkeeper.Keeper
	StakingKeeper         *stakingkeeper.Keeper
	DistrKeeper           distrkeeper.Keeper
	SlashingKeeper        slashingkeeper.Keeper
	// IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
	IBCKeeper           *ibckeeper.Keeper
	IBCHooksKeeper      *ibchookskeeper.Keeper
	ICAHostKeeper       icahostkeeper.Keeper
	ICAControllerKeeper icacontrollerkeeper.Keeper
	ICQKeeper           icqkeeper.Keeper
	TransferKeeper      ibctransferkeeper.Keeper
	EvidenceKeeper      evidencekeeper.Keeper
	GovKeeper           *govkeeper.Keeper
	WasmKeeper          wasmkeeper.Keeper
	ContractKeeper      wasmtypes.ContractOpsKeeper
	FeeGrantKeeper      feegrantkeeper.Keeper
	IBCFeeKeeper        ibcfeekeeper.Keeper
	PacketForwardKeeper *packetforwardkeeper.Keeper

	// Custom ixo keepers
	IidKeeper            iidmodulekeeper.Keeper
	EntityKeeper         entitykeeper.Keeper
	TokenKeeper          tokenkeeper.Keeper
	BondsKeeper          bondskeeper.Keeper
	ClaimsKeeper         claimsmodulekeeper.Keeper
	SmartAccountKeeper   *smartaccountkeeper.Keeper
	AuthenticatorManager *authenticator.AuthenticatorManager
	EpochsKeeper         *epochskeeper.Keeper
	MintKeeper           *mintkeeper.Keeper

	// make scoped keepers public for test purposes
	ScopedIBCKeeper           capabilitykeeper.ScopedKeeper
	ScopedICAHostKeeper       capabilitykeeper.ScopedKeeper
	ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
	ScopedTransferKeeper      capabilitykeeper.ScopedKeeper
	ScopedWasmKeeper          capabilitykeeper.ScopedKeeper
	ScopedICQKeeper           capabilitykeeper.ScopedKeeper
	ScopedIBCFeeKeeper        capabilitykeeper.ScopedKeeper

	// Middleware wrapper
	Ics20WasmHooks   *ibchooks.WasmHooks
	HooksICS4Wrapper ibchooks.ICS4Middleware
	// contains filtered or unexported fields
}

func NewAppKeepers

func NewAppKeepers(
	appCodec codec.Codec,
	interfaceRegistry types.InterfaceRegistry,
	legacyAmino *codec.LegacyAmino,
	bApp *baseapp.BaseApp,
	maccPerms map[string][]string,
	invCheckPeriod uint,
	skipUpgradeHeights map[int64]bool,
	homePath string,
	wasmDir string,
	wasmConfig wasmtypes.WasmConfig,
	wasmOpts []wasmkeeper.Option,
	blockedAddress map[string]bool,
	logger log.Logger,
	appOpts servertypes.AppOptions,
) AppKeepers

func (*AppKeepers) GenerateKeys

func (appKeepers *AppKeepers) GenerateKeys()

GenerateKeys generates new keys (KV Store, Transient store, and memory store).

func (*AppKeepers) GetKVStoreKey

func (appKeepers *AppKeepers) GetKVStoreKey() map[string]*storetypes.KVStoreKey

GetKVStoreKey gets KV Store keys.

func (*AppKeepers) GetKey

func (appKeepers *AppKeepers) GetKey(storeKey string) *storetypes.KVStoreKey

GetKey returns the KVStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*AppKeepers) GetMemKey

func (appKeepers *AppKeepers) GetMemKey(storeKey string) *storetypes.MemoryStoreKey

GetMemKey returns the MemStoreKey for the provided mem key.

NOTE: This is solely used for testing purposes.

func (*AppKeepers) GetMemoryStoreKey

func (appKeepers *AppKeepers) GetMemoryStoreKey() map[string]*storetypes.MemoryStoreKey

GetMemoryStoreKey get memory Store keys.

func (*AppKeepers) GetSubspace

func (appKeepers *AppKeepers) GetSubspace(moduleName string) paramstypes.Subspace

GetSubspace gets existing substore from keeper.

func (*AppKeepers) GetTKey

func (appKeepers *AppKeepers) GetTKey(storeKey string) *storetypes.TransientStoreKey

GetTKey returns the TransientStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*AppKeepers) GetTransientStoreKey

func (appKeepers *AppKeepers) GetTransientStoreKey() map[string]*storetypes.TransientStoreKey

GetTransientStoreKey gets Transient Store keys.

func (*AppKeepers) SetupHooks

func (appKeepers *AppKeepers) SetupHooks()

SetupHooks sets up hooks for modules.

type QuerierWrapper

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

QuerierWrapper is a local wrapper around BaseApp that exports only the Queryable interface. This is used to pass the baseApp to Async ICQ without exposing all methods

func NewQuerierWrapper

func NewQuerierWrapper(querier storetypes.Queryable) QuerierWrapper

func (QuerierWrapper) Query

Jump to

Keyboard shortcuts

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