app

package
v1.0.3-prerelease Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 123 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeDir      = ".arkeo"
	Bech32Prefix = AccountAddressPrefix
)
View Source
const (
	AccountAddressPrefix = "arkeo"
)
View Source
const (
	AppName = "arkeo"
)

Variables

View Source
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
)
View Source
var (

	// DefaultNodeHome default home directories for the application daemon
	DefaultNodeHome string
)
View Source
var Upgrades = []upgrades.Upgrade{}

Upgrades

Functions

func GetMaccPerms

func GetMaccPerms() map[string][]string

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

func RegisterSwaggerAPI(apiSvr *api.Server) error

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

func (app *ArkeoApp) AppCodec() codec.Codec

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

func (app *ArkeoApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)

BeginBlocker application updates every begin block

func (*ArkeoApp) BlockedModuleAccountAddrs

func (app *ArkeoApp) BlockedModuleAccountAddrs() map[string]bool

BlockedModuleAccountAddrs returns all the app's blocked module account addresses.

func (*ArkeoApp) EndBlocker

func (app *ArkeoApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)

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

func (app ArkeoApp) GetBaseApp() *baseapp.BaseApp

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

func (app *ArkeoApp) LoadHeight(height int64) error

nolint LoadHeight loads a particular height

func (*ArkeoApp) ModuleAccountAddrs

func (app *ArkeoApp) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

func (*ArkeoApp) Name

func (app *ArkeoApp) Name() string

Name returns the name of the App

func (*ArkeoApp) PreBlocker

func (app *ArkeoApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)

func (*ArkeoApp) RegisterAPIRoutes

func (app *ArkeoApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)

RegisterAPIRoutes registers all application module routes with the provided API server.

func (*ArkeoApp) RegisterNodeService

func (app *ArkeoApp) RegisterNodeService(clientCtx client.Context, cfg config.Config)

nolint

func (*ArkeoApp) RegisterTendermintService

func (app *ArkeoApp) RegisterTendermintService(clientCtx client.Context)

nolint RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*ArkeoApp) RegisterTxService

func (app *ArkeoApp) RegisterTxService(clientCtx client.Context)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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