keepers

package
v2.9.5-rc0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 82 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModuleAccountAddrs

func ModuleAccountAddrs() map[string]bool

GetMaccPerms returns a copy of the module account permissions

Types

type TerraAppKeepers

type TerraAppKeepers struct {

	// keepers
	AccountKeeper         authkeeper.AccountKeeper
	BankKeeper            custombankkeeper.Keeper
	CapabilityKeeper      *capabilitykeeper.Keeper
	StakingKeeper         *stakingkeeper.Keeper
	SlashingKeeper        slashingkeeper.Keeper
	MintKeeper            mintkeeper.Keeper
	DistrKeeper           distrkeeper.Keeper
	GovKeeper             govkeeper.Keeper
	CrisisKeeper          crisiskeeper.Keeper
	UpgradeKeeper         *upgradekeeper.Keeper
	ParamsKeeper          paramskeeper.Keeper
	ConsensusParamsKeeper consensusparamkeeper.Keeper
	IBCKeeper             *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
	EvidenceKeeper        evidencekeeper.Keeper
	TransferKeeper        ibctransferkeeper.Keeper
	AuthzKeeper           authzkeeper.Keeper
	FeeGrantKeeper        feegrantkeeper.Keeper
	ICAControllerKeeper   icacontrollerkeeper.Keeper
	ICAHostKeeper         icahostkeeper.Keeper
	IBCFeeKeeper          ibcfeekeeper.Keeper
	RouterKeeper          routerkeeper.Keeper
	TokenFactoryKeeper    tokenfactorykeeper.Keeper
	AllianceKeeper        alliancekeeper.Keeper
	FeeShareKeeper        feesharekeeper.Keeper
	ICQKeeper             icqkeeper.Keeper

	// IBC hooks
	IBCHooksKeeper   *ibchookskeeper.Keeper
	TransferStack    porttypes.Middleware
	Ics20WasmHooks   *ibchooks.WasmHooks
	HooksICS4Wrapper ibchooks.ICS4Middleware

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

	WasmKeeper customwasmkeeper.Keeper
	// contains filtered or unexported fields
}

func NewTerraAppKeepers

func NewTerraAppKeepers(
	appCodec codec.Codec,
	baseApp *baseapp.BaseApp,
	cdc *codec.LegacyAmino,
	appOpts servertypes.AppOptions,
	wasmOpts []wasmkeeper.Option,
	homePath string,
) (keepers TerraAppKeepers)

func (*TerraAppKeepers) GenerateKeys

func (keepers *TerraAppKeepers) GenerateKeys()

func (*TerraAppKeepers) GetKVStoreKey

func (keepers *TerraAppKeepers) GetKVStoreKey() map[string]*storetypes.KVStoreKey

func (*TerraAppKeepers) GetKey

func (keepers *TerraAppKeepers) 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 (*TerraAppKeepers) GetMemKey

func (keepers *TerraAppKeepers) GetMemKey(storeKey string) *storetypes.MemoryStoreKey

GetMemKey returns the MemStoreKey for the provided mem key.

NOTE: This is solely used for testing purposes.

func (*TerraAppKeepers) GetMemoryStoreKey

func (keepers *TerraAppKeepers) GetMemoryStoreKey() map[string]*storetypes.MemoryStoreKey

func (*TerraAppKeepers) GetSubspace

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

GetSubspace returns a param subspace for a given module name.

func (*TerraAppKeepers) GetTKey

func (keepers *TerraAppKeepers) 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 (*TerraAppKeepers) GetTransientStoreKey

func (keepers *TerraAppKeepers) GetTransientStoreKey() map[string]*storetypes.TransientStoreKey

func (*TerraAppKeepers) ModuleAccountAddrs

func (app *TerraAppKeepers) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

Jump to

Keyboard shortcuts

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