Documentation
¶
Index ¶
- Constants
- Variables
- func FindStructField[C any](obj interface{}, fieldName string) (C, error)
- type App
- func (app *App) GenerateKeys()
- func (app *App) GetCodec() codec.Codec
- func (app *App) GetKVStoreKey() map[string]*storetypes.KVStoreKey
- func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *App) GetMemoryStoreKey() map[string]*storetypes.MemoryStoreKey
- func (app *App) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *App) GetTKey(storeKey string) *storetypes.TransientStoreKey
- func (app *App) GetTransientStoreKey() map[string]*storetypes.TransientStoreKey
- func (app *App) InitNormalKeepers(cdc codec.Codec, encodingConfig sdkutil.EncodingConfig, bApp *baseapp.BaseApp, ...)
- func (app *App) InitSpecialKeepers(cdc codec.Codec, legacyAmino *codec.LegacyAmino, bApp *baseapp.BaseApp, ...)
- func (app *App) SetupHooks()
- type AppKeepers
Constants ¶
const (
AccountAddressPrefix = "akash"
)
Variables ¶
var ErrEmptyFieldName = errors.New("empty field name")
Functions ¶
func FindStructField ¶ added in v1.0.0
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 {
Cdc codec.Codec
Keepers AppKeepers
Configurator module.Configurator
MM *module.Manager
Log log.Logger
// 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) InitSpecialKeepers ¶ added in v1.0.0
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 ¶ 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
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
}
Akash struct {
Escrow ekeeper.Keeper
Deployment dkeeper.IKeeper
Take tkeeper.IKeeper
Market mkeeper.IKeeper
Provider pkeeper.IKeeper
Audit akeeper.Keeper
Cert ckeeper.Keeper
}
Modules struct {
TMLight ibctm.LightClientModule
}
}