Documentation
¶
Index ¶
- Constants
- Variables
- func MacAddrs() map[string]bool
- func MacPerms() map[string][]string
- func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
- func MakeEncodingConfig() simparams.EncodingConfig
- func ModuleBasics() module.BasicManager
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func OptsWithGenesisTime(seed int64) servertypes.AppOptions
- func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)
- func TrimQuotes(data string) string
- type AkashApp
- func (app *AkashApp) AppCodec() codec.Codec
- func (app *AkashApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *AkashApp) BlockedAddrs() map[string]bool
- func (app *AkashApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *AkashApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *AkashApp) GetKey(module string) *sdk.KVStoreKey
- func (app *AkashApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *AkashApp) GetTKey(module string) *sdk.TransientStoreKey
- func (app *AkashApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *AkashApp) InterfaceRegistry() codectypes.InterfaceRegistry
- func (app *AkashApp) LegacyAmino() *codec.LegacyAmino
- func (app *AkashApp) LoadHeight(height int64) error
- func (app *AkashApp) ModuleAccountAddrs() map[string]bool
- func (app *AkashApp) Name() string
- func (app *AkashApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *AkashApp) RegisterTendermintService(clientCtx client.Context)
- func (app *AkashApp) RegisterTxService(clientCtx client.Context)
- func (app *AkashApp) SimulationManager() *module.SimulationManager
- type GenesisState
- type HandlerOptions
- type ModulesMemoryKeys
- type ModulesStoreKeys
- type ModulesTransientKeys
- type TestnetConfig
- type TestnetGovConfig
- type TestnetUpgrade
- type TestnetValidator
- type TestnetVotingPeriod
Constants ¶
const (
AppName = "akash"
)
Variables ¶
var (
DefaultHome = os.ExpandEnv("$HOME/.akash")
)
Functions ¶
func MakeCodecs ¶ added in v0.22.0
func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
MakeCodecs constructs the *std.Codec and *codec.LegacyAmino instances used by simapp. It is useful for tests and clients who do not want to construct the full simapp
func MakeEncodingConfig ¶ added in v0.22.0
func MakeEncodingConfig() simparams.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
func ModuleBasics ¶ added in v0.22.0
func ModuleBasics() module.BasicManager
ModuleBasics returns all app modules basics
func NewAnteHandler ¶ added in v0.24.0
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
func OptsWithGenesisTime ¶ added in v0.22.0
func OptsWithGenesisTime(seed int64) servertypes.AppOptions
func RegisterSwaggerAPI ¶ added in v0.22.0
RegisterSwaggerAPI registers swagger route with API Server
func TrimQuotes ¶ added in v0.38.5
Types ¶
type AkashApp ¶ added in v0.22.0
AkashApp extends ABCI application
func InitAkashAppForTestnet ¶ added in v0.38.5
func InitAkashAppForTestnet( app *AkashApp, tcfg *TestnetConfig, ) *AkashApp
InitAkashAppForTestnet is broken down into two sections: Required Changes: Changes that, if not made, will cause the testnet to halt or panic Optional Changes: Changes to customize the testnet to one's liking (lower vote times, fund accounts, etc)
func NewApp ¶ added in v0.22.0
func NewApp( logger log.Logger, db dbm.DB, tio io.Writer, loadLatest bool, invCheckPeriod uint, skipUpgradeHeights map[int64]bool, homePath string, appOpts servertypes.AppOptions, options ...func(*bam.BaseApp), ) *AkashApp
NewApp creates and returns a new Akash App.
func (*AkashApp) BeginBlocker ¶ added in v0.22.0
func (app *AkashApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker is a function in which application updates every begin block
func (*AkashApp) BlockedAddrs ¶ added in v0.22.0
BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
func (*AkashApp) EndBlocker ¶ added in v0.22.0
func (app *AkashApp) EndBlocker( ctx sdk.Context, req abci.RequestEndBlock, ) abci.ResponseEndBlock
EndBlocker is a function in which application updates every end block
func (*AkashApp) ExportAppStateAndValidators ¶ added in v0.22.0
func (app *AkashApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*AkashApp) GetKey ¶ added in v0.22.0
func (app *AkashApp) GetKey(module string) *sdk.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
func (*AkashApp) GetSubspace ¶ added in v0.22.0
func (app *AkashApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
func (*AkashApp) GetTKey ¶ added in v0.22.0
func (app *AkashApp) GetTKey(module string) *sdk.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
func (*AkashApp) InitChainer ¶ added in v0.22.0
func (app *AkashApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*AkashApp) InterfaceRegistry ¶ added in v0.22.0
func (app *AkashApp) InterfaceRegistry() codectypes.InterfaceRegistry
InterfaceRegistry returns AkashApp's InterfaceRegistry
func (*AkashApp) LegacyAmino ¶ added in v0.22.0
func (app *AkashApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns AkashApp's amino codec.
func (*AkashApp) LoadHeight ¶ added in v0.22.0
LoadHeight method of AkashApp loads baseapp application version with given height
func (*AkashApp) ModuleAccountAddrs ¶ added in v0.22.0
ModuleAccountAddrs returns all the app's module account addresses.
func (*AkashApp) RegisterAPIRoutes ¶ added in v0.22.0
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*AkashApp) RegisterTendermintService ¶ added in v0.22.0
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*AkashApp) RegisterTxService ¶ added in v0.22.0
RegisterTxService implements the Application.RegisterTxService method.
func (*AkashApp) SimulationManager ¶ added in v0.22.0
func (app *AkashApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
type GenesisState ¶ added in v0.22.0
type GenesisState map[string]json.RawMessage
GenesisState of the blockchain is represented here as a map of raw json messages key's by an identifier string. The identifier is used to determine which module genesis information belongs to, so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.
func NewDefaultGenesisState ¶ added in v0.22.0
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
type HandlerOptions ¶ added in v0.24.0
type HandlerOptions struct {
ante.HandlerOptions
CDC codec.BinaryCodec
AStakingKeeper astakingkeeper.IKeeper
GovKeeper *govkeeper.Keeper
AGovKeeper agovkeeper.IKeeper
}
HandlerOptions extends the SDK's AnteHandler options
type ModulesMemoryKeys ¶ added in v0.38.0
type ModulesMemoryKeys map[string]*sdk.MemoryStoreKey
type ModulesStoreKeys ¶ added in v0.38.0
type ModulesStoreKeys map[string]*sdk.KVStoreKey
func (ModulesStoreKeys) Keys ¶ added in v0.38.0
func (m ModulesStoreKeys) Keys() map[string]*sdk.KVStoreKey
type ModulesTransientKeys ¶ added in v0.38.0
type ModulesTransientKeys map[string]*sdk.TransientStoreKey
type TestnetConfig ¶ added in v0.38.5
type TestnetConfig struct {
Accounts []sdk.AccAddress
Validators []TestnetValidator
Gov TestnetGovConfig
Upgrade TestnetUpgrade
}
type TestnetGovConfig ¶ added in v0.38.5
type TestnetGovConfig struct {
VotingParams *struct {
VotingPeriod TestnetVotingPeriod `json:"voting_period,omitempty"`
} `json:"voting_params,omitempty"`
}
type TestnetUpgrade ¶ added in v0.38.5
type TestnetUpgrade struct {
Name string
}
type TestnetValidator ¶ added in v0.38.5
type TestnetValidator struct {
OperatorAddress sdk.ValAddress
ConsensusAddress sdk.ConsAddress
ConsensusPubKey *types.Any
Moniker string
Commission stakingtypes.Commission
MinSelfDelegation sdk.Int
}
type TestnetVotingPeriod ¶ added in v0.38.5
func (*TestnetVotingPeriod) UnmarshalJSON ¶ added in v0.38.5
func (t *TestnetVotingPeriod) UnmarshalJSON(data []byte) error