Documentation
¶
Index ¶
- Constants
- Variables
- func BlockedAddresses() map[string]bool
- func GetMaccPerms() map[string][]string
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)
- type EncodingConfig
- type GenesisState
- type HandlerOptions
- type NeutaroApp
- func (app *NeutaroApp) AppCodec() codec.Codec
- func (app *NeutaroApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *NeutaroApp) DefaultGenesis() map[string]json.RawMessage
- func (app *NeutaroApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *NeutaroApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *NeutaroApp) GetMemoryStoreKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *NeutaroApp) GetStoreKey(storeKey string) *storetypes.KVStoreKey
- func (app *NeutaroApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *NeutaroApp) GetTransientStoreKey(storeKey string) *storetypes.TransientStoreKey
- func (app *NeutaroApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *NeutaroApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *NeutaroApp) LegacyAmino() *codec.LegacyAmino
- func (app *NeutaroApp) LoadHeight(height int64) error
- func (app *NeutaroApp) ModuleAccountAddrs() map[string]bool
- func (app *NeutaroApp) Name() string
- func (app *NeutaroApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *NeutaroApp) RegisterNodeService(clientCtx client.Context)
- func (app *NeutaroApp) RegisterTendermintService(clientCtx client.Context)
- func (app *NeutaroApp) RegisterTxService(clientCtx client.Context)
- func (app *NeutaroApp) SimulationManager() *module.SimulationManager
- func (app *NeutaroApp) TxConfig() client.TxConfig
Constants ¶
const (
Name = "Neutaro"
)
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string // 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{}, genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( []govclient.ProposalHandler{ paramsclient.ProposalHandler, upgradeclient.LegacyProposalHandler, upgradeclient.LegacyCancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, }, ), sdkparams.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, vesting.AppModuleBasic{}, authzmodule.AppModuleBasic{}, consensus.AppModuleBasic{}, wasm.AppModuleBasic{}, ibc.AppModuleBasic{}, transfer.AppModuleBasic{}, ibctm.AppModuleBasic{}, ibcfee.AppModuleBasic{}, ) )
Functions ¶
func BlockedAddresses ¶
BlockedAddresses returns all the app's blocked account addresses.
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
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