Documentation ¶
Index ¶
- Constants
- Variables
- func GetMaccPerms() map[string][]string
- func MakeEncodingConfig() params.EncodingConfig
- func RegisterSwaggerAPI(apiSvr *api.Server) error
- type ArkeoApp
- func (app *ArkeoApp) AppCodec() codec.Codec
- func (app *ArkeoApp) AutoCliOpts() autocli.AppOptions
- func (app *ArkeoApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (app *ArkeoApp) BlockedModuleAccountAddrs() map[string]bool
- func (app *ArkeoApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- func (app *ArkeoApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app ArkeoApp) GetBaseApp() *baseapp.BaseApp
- func (app *ArkeoApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *ArkeoApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *ArkeoApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *ArkeoApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
- func (app *ArkeoApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (app *ArkeoApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *ArkeoApp) LegacyAmino() *codec.LegacyAmino
- func (app *ArkeoApp) LoadHeight(height int64) error
- func (app *ArkeoApp) ModuleAccountAddrs() map[string]bool
- func (app *ArkeoApp) Name() string
- func (app *ArkeoApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
- func (app *ArkeoApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *ArkeoApp) RegisterNodeService(clientCtx client.Context, cfg config.Config)
- func (app *ArkeoApp) RegisterTendermintService(clientCtx client.Context)
- func (app *ArkeoApp) RegisterTxService(clientCtx client.Context)
- func (app *ArkeoApp) RegisterUpgradeHandlers()
- func (app *ArkeoApp) SimulationManager() *module.SimulationManager
- type GenesisState
Constants ¶
const ( NodeDir = ".arkeo" Bech32Prefix = AccountAddressPrefix )
const (
AccountAddressPrefix = "arkeo"
)
const (
AppName = "arkeo"
)
Variables ¶
var ( // Bech32PrefixAccAddr Bech32PrefixAccAddr = Bech32Prefix Bech32PrefixAccPub = Bech32Prefix + sdk.PrefixPublic Bech32PrefixValAddr = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixOperator Bech32PrefixValPub = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic Bech32PrefixConsAddr = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixConsensus Bech32PrefixConsPub = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string )
var ( // ModuleBasics defines the module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, authzmodule.AppModuleBasic{}, genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(getGovProposalHandlers()), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, groupmodule.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, ica.AppModuleBasic{}, vesting.AppModuleBasic{}, arkeomodule.AppModuleBasic{}, claimmodule.AppModuleBasic{}, ) )
var Upgrades = []upgrades.Upgrade{}
Upgrades
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates a new EncodingConfig with all modules registered
func RegisterSwaggerAPI ¶
RegisterSwaggerAPI provides a common function which registers swagger route with API Server
Types ¶
type ArkeoApp ¶
type ArkeoApp struct { *baseapp.BaseApp // keepers Keepers keepers.ArkeoKeepers // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper ScopedICAHostKeeper capabilitykeeper.ScopedKeeper // contains filtered or unexported fields }
App extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.
func NewArkeoApp ¶
func NewArkeoApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig arekoappParams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *ArkeoApp
nolint New returns a reference to an initialized blockchain app
func (*ArkeoApp) AppCodec ¶
AppCodec returns an app codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*ArkeoApp) AutoCliOpts ¶
func (app *ArkeoApp) AutoCliOpts() autocli.AppOptions
func (*ArkeoApp) BeginBlocker ¶
BeginBlocker application updates every begin block
func (*ArkeoApp) BlockedModuleAccountAddrs ¶
BlockedModuleAccountAddrs returns all the app's blocked module account addresses.
func (*ArkeoApp) EndBlocker ¶
EndBlocker application updates every end block
func (*ArkeoApp) ExportAppStateAndValidators ¶
func (app *ArkeoApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
nolint ExportAppStateAndValidators exports the state of the application for a genesis file.
func (ArkeoApp) GetBaseApp ¶
GetBaseApp returns the base app of the application
func (*ArkeoApp) GetKey ¶
func (app *ArkeoApp) 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 (*ArkeoApp) GetMemKey ¶
func (app *ArkeoApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*ArkeoApp) GetSubspace ¶
func (app *ArkeoApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: This is solely to be used for testing purposes.
func (*ArkeoApp) GetTKey ¶
func (app *ArkeoApp) 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 (*ArkeoApp) InitChainer ¶
func (app *ArkeoApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
InitChainer application update at chain initialization
func (*ArkeoApp) InterfaceRegistry ¶
func (app *ArkeoApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns an InterfaceRegistry
func (*ArkeoApp) LegacyAmino ¶
func (app *ArkeoApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns SimApp's amino codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*ArkeoApp) LoadHeight ¶
nolint LoadHeight loads a particular height
func (*ArkeoApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*ArkeoApp) PreBlocker ¶
func (app *ArkeoApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
func (*ArkeoApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*ArkeoApp) RegisterNodeService ¶
nolint
func (*ArkeoApp) RegisterTendermintService ¶
nolint RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*ArkeoApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*ArkeoApp) RegisterUpgradeHandlers ¶
func (app *ArkeoApp) RegisterUpgradeHandlers()
func (*ArkeoApp) SimulationManager ¶
func (app *ArkeoApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
type GenesisState ¶
type GenesisState map[string]json.RawMessage
The genesis state of the blockchain is represented here as a map of raw json messages key'd by a 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 ¶
func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState
NewDefaultGenesisState generates the default state for the application.