types

package
v2.0.0-b1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 79 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AccountAddressPrefix = "akash"
)

Variables

View Source
var ErrEmptyFieldName = errors.New("empty field name")

Functions

func FindStructField

func FindStructField[C any](obj interface{}, fieldName string) (C, error)

FindStructField if an interface is either a struct or a pointer to a struct and has the defined member field, if error is nil, the given fieldName exists and is accessible with reflect.

Types

type App

type App struct {
	Keepers      AppKeepers
	Configurator module.Configurator
	MM           *module.Manager
	Log          log.Logger
	// contains filtered or unexported fields
}

func (*App) GenerateKeys

func (app *App) GenerateKeys()

func (*App) GetKVStoreKey

func (app *App) GetKVStoreKey() map[string]*storetypes.KVStoreKey

GetKVStoreKey gets KV Store keys.

func (*App) GetKey

func (app *App) 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 (*App) GetMemKey

func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey

GetMemKey returns the MemStoreKey for the provided mem key.

NOTE: This is solely used for testing purposes.

func (*App) GetMemoryStoreKey

func (app *App) GetMemoryStoreKey() map[string]*storetypes.MemoryStoreKey

GetMemoryStoreKey get memory Store keys.

func (*App) GetSubspace

func (app *App) GetSubspace(moduleName string) paramstypes.Subspace

GetSubspace gets existing substore from keeper.

func (*App) GetTKey

func (app *App) 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 (*App) GetTransientStoreKey

func (app *App) GetTransientStoreKey() map[string]*storetypes.TransientStoreKey

GetTransientStoreKey gets Transient Store keys.

func (*App) InitNormalKeepers

func (app *App) InitNormalKeepers(
	cdc codec.Codec,
	encodingConfig sdkutil.EncodingConfig,
	bApp *baseapp.BaseApp,
	maccPerms map[string][]string,
	wasmDir string,
	wasmConfig wasmtypes.NodeConfig,
	wasmOpts []wasmkeeper.Option,
	blockedAddresses map[string]bool,
	invCheckPeriod uint,
)

func (*App) InitSpecialKeepers

func (app *App) InitSpecialKeepers(
	cdc codec.Codec,
	legacyAmino *codec.LegacyAmino,
	bApp *baseapp.BaseApp,
	skipUpgradeHeights map[int64]bool,
	homePath string)

InitSpecialKeepers initiates special keepers (crisis appkeeper, upgradekeeper, params keeper)

func (*App) SetupHooks

func (app *App) SetupHooks()

type AppKeepers

type AppKeepers struct {
	Cosmos struct {
		Acct            authkeeper.AccountKeeper
		Authz           authzkeeper.Keeper
		FeeGrant        feegrantkeeper.Keeper
		Bank            bankkeeper.Keeper
		Staking         *stakingkeeper.Keeper
		Slashing        slashingkeeper.Keeper
		Mint            mintkeeper.Keeper
		Distr           distrkeeper.Keeper
		Gov             *govkeeper.Keeper
		Upgrade         *upgradekeeper.Keeper
		Crisis          *crisiskeeper.Keeper //nolint: staticcheck
		Params          paramskeeper.Keeper  //nolint: staticcheck
		ConsensusParams *consensusparamkeeper.Keeper
		IBC             *ibckeeper.Keeper
		Evidence        *evidencekeeper.Keeper
		Transfer        ibctransferkeeper.Keeper
		Wasm            *wasmkeeper.Keeper
	}

	Akash struct {
		Escrow     ekeeper.Keeper
		Deployment dkeeper.IKeeper
		Take       tkeeper.IKeeper
		Market     mkeeper.IKeeper
		Provider   pkeeper.IKeeper
		Audit      akeeper.Keeper
		Cert       ckeeper.Keeper
		Wasm       wkeeper.Keeper
	}

	Modules struct {
		TMLight ibctm.LightClientModule
	}
}

Jump to

Keyboard shortcuts

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