app

package
v1.0.1-0...-2b302b7 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 117 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "Neutaro"
)

Variables

Functions

func BlockedAddresses

func BlockedAddresses() map[string]bool

BlockedAddresses returns all the app's blocked account addresses.

func GetMaccPerms

func GetMaccPerms() map[string][]string

GetMaccPerms returns a copy of the module account permissions

func NewAnteHandler

func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)

func RegisterSwaggerAPI

func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)

RegisterSwaggerAPI registers swagger route with API Server.

Types

type EncodingConfig

type EncodingConfig struct {
	InterfaceRegistry types.InterfaceRegistry
	Codec             codec.Codec
	TxConfig          client.TxConfig
	Amino             *codec.LegacyAmino
}

func MakeEncodingConfig

func MakeEncodingConfig() EncodingConfig

type GenesisState

type GenesisState map[string]json.RawMessage

The GenesisState 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.

type HandlerOptions

type HandlerOptions struct {
	ante.HandlerOptions

	IBCKeeper         *ibckeeper.Keeper
	WasmConfig        *wasmTypes.WasmConfig
	TXCounterStoreKey storetypes.StoreKey
}

HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper.

type NeutaroApp

type NeutaroApp struct {
	*baseapp.BaseApp

	// keepers
	AccountKeeper         authkeeper.AccountKeeper
	AuthzKeeper           authzkeeper.Keeper
	BankKeeper            bankkeeper.Keeper
	CapabilityKeeper      *capabilitykeeper.Keeper
	StakingKeeper         *stakingkeeper.Keeper
	SlashingKeeper        slashingkeeper.Keeper
	MintKeeper            mintkeeper.Keeper
	DistrKeeper           distrkeeper.Keeper
	GovKeeper             govkeeper.Keeper
	CrisisKeeper          *crisiskeeper.Keeper
	UpgradeKeeper         *upgradekeeper.Keeper
	ParamsKeeper          paramskeeper.Keeper
	EvidenceKeeper        evidencekeeper.Keeper
	FeeGrantKeeper        feegrantkeeper.Keeper
	ConsensusParamsKeeper consensuskeeper.Keeper

	// CosmWasm: wasmd
	WasmKeeper wasmkeeper.Keeper

	// IBC Keepers
	IBCKeeper      *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
	IBCFeeKeeper   ibcfeekeeper.Keeper
	TransferKeeper ibctransferkeeper.Keeper

	// make scoped keepers public for test purposes
	ScopedWasmKeeper     capabilitykeeper.ScopedKeeper
	ScopedIBCKeeper      capabilitykeeper.ScopedKeeper
	ScopedTransferKeeper capabilitykeeper.ScopedKeeper
	ScopedIBCFeeKeeper   capabilitykeeper.ScopedKeeper

	ModuleManager *module.Manager
	// contains filtered or unexported fields
}

NeutaroApp 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 New

func New(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	appOpts servertypes.AppOptions,
	wasmOpts []wasmkeeper.Option,
	baseAppOptions ...func(*baseapp.BaseApp),
) *NeutaroApp

New returns a reference to an initialized blockchain app

func (*NeutaroApp) AppCodec

func (app *NeutaroApp) 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 (*NeutaroApp) BeginBlocker

func (app *NeutaroApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

BeginBlocker application updates every begin block

func (*NeutaroApp) DefaultGenesis

func (app *NeutaroApp) DefaultGenesis() map[string]json.RawMessage

DefaultGenesis returns a default genesis from the registered AppModuleBasic's.

func (*NeutaroApp) EndBlocker

func (app *NeutaroApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

EndBlocker application updates every end block

func (*NeutaroApp) ExportAppStateAndValidators

func (app *NeutaroApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)

ExportAppStateAndValidators exports the state of the application for a genesis file.

func (*NeutaroApp) GetMemoryStoreKey

func (app *NeutaroApp) GetMemoryStoreKey(storeKey string) *storetypes.MemoryStoreKey

GetMemoryStoreKey returns the MemStoreKey for the provided mem key.

NOTE: This is solely used for testing purposes.

func (*NeutaroApp) GetStoreKey

func (app *NeutaroApp) GetStoreKey(storeKey string) *storetypes.KVStoreKey

GetStoreKey returns the KVStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*NeutaroApp) GetSubspace

func (app *NeutaroApp) 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 (*NeutaroApp) GetTransientStoreKey

func (app *NeutaroApp) GetTransientStoreKey(storeKey string) *storetypes.TransientStoreKey

GetTransientStoreKey returns the TransientStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*NeutaroApp) InitChainer

func (app *NeutaroApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain

InitChainer application update at chain initialization

func (*NeutaroApp) InterfaceRegistry

func (app *NeutaroApp) InterfaceRegistry() types.InterfaceRegistry

InterfaceRegistry returns an InterfaceRegistry

func (*NeutaroApp) LegacyAmino

func (app *NeutaroApp) LegacyAmino() *codec.LegacyAmino

LegacyAmino returns NeutaroApp'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 (*NeutaroApp) LoadHeight

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

LoadHeight loads a particular height

func (*NeutaroApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*NeutaroApp) Name

func (app *NeutaroApp) Name() string

Name returns the name of the NeutaroApp

func (*NeutaroApp) RegisterAPIRoutes

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

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

func (*NeutaroApp) RegisterNodeService

func (app *NeutaroApp) RegisterNodeService(clientCtx client.Context)

func (*NeutaroApp) RegisterTendermintService

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

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*NeutaroApp) RegisterTxService

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

RegisterTxService implements the Application.RegisterTxService method.

func (*NeutaroApp) SimulationManager

func (app *NeutaroApp) SimulationManager() *module.SimulationManager

SimulationManager implements the SimulationApp interface

func (*NeutaroApp) TxConfig

func (app *NeutaroApp) TxConfig() client.TxConfig

TxConfig returns NeutaroApp's TxConfig

Directories

Path Synopsis
upgrades
v2

Jump to

Keyboard shortcuts

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