types

package
v1.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 74 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 added in v1.0.0

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 added in v1.0.0

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

func (*App) GenerateKeys added in v1.0.0

func (app *App) GenerateKeys()

func (*App) GetKVStoreKey added in v1.0.0

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

GetKVStoreKey gets KV Store keys.

func (*App) GetKey added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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

GetMemoryStoreKey get memory Store keys.

func (*App) GetSubspace added in v1.0.0

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

GetSubspace gets existing substore from keeper.

func (*App) GetTKey added in v1.0.0

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 added in v1.0.0

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

GetTransientStoreKey gets Transient Store keys.

func (*App) InitNormalKeepers added in v1.0.0

func (app *App) InitNormalKeepers(
	cdc codec.Codec,
	encodingConfig appparams.EncodingConfig,
	bApp *baseapp.BaseApp,
	maccPerms map[string][]string,
	blockedAddresses map[string]bool)

func (*App) InitSpecialKeepers added in v1.0.0

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

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

func (*App) SetupHooks added in v1.0.0

func (app *App) SetupHooks()

type AppKeepers added in v1.0.0

type AppKeepers struct {
	Cosmos struct {
		Acct                 authkeeper.AccountKeeper
		Authz                authzkeeper.Keeper
		FeeGrant             feegrantkeeper.Keeper
		Bank                 bankkeeper.Keeper
		Cap                  *capabilitykeeper.Keeper
		Staking              *stakingkeeper.Keeper
		Slashing             slashingkeeper.Keeper
		Mint                 mintkeeper.Keeper
		Distr                distrkeeper.Keeper
		Gov                  *govkeeper.Keeper
		Crisis               *crisiskeeper.Keeper
		Upgrade              *upgradekeeper.Keeper
		Params               paramskeeper.Keeper
		ConsensusParams      *consensusparamkeeper.Keeper
		IBC                  *ibckeeper.Keeper
		Evidence             *evidencekeeper.Keeper
		Transfer             ibctransferkeeper.Keeper
		ScopedIBCKeeper      capabilitykeeper.ScopedKeeper
		ScopedTransferKeeper capabilitykeeper.ScopedKeeper
	}

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

	External struct {
		Auction *auctionkeeper.Keeper
	}
}

Jump to

Keyboard shortcuts

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