app

package
v1.5.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 90 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCLIHome = filepath.Join(homeDir, ".secretd")

	// DefaultNodeHome sets the folder where the applcation data and configuration will be stored
	DefaultNodeHome = filepath.Join(homeDir, ".secretd")

	Upgrades = []upgrades.Upgrade{v1_3.Upgrade, v1_4.Upgrade, v1_5.Upgrade}
)

Functions

func ModuleBasics

func ModuleBasics() module.BasicManager

ModuleBasics returns all app modules basics

func NewAnteHandler

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

func RegisterSwaggerAPI

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

RegisterSwaggerAPI registers swagger route with API Server

Types

type EncodingConfig

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

EncodingConfig specifies the concrete encoding types to use for a given app. This is provided for compatibility between protobuf and amino implementations.

func MakeEncodingConfig

func MakeEncodingConfig() EncodingConfig

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState 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() GenesisState

NewDefaultGenesisState generates the default state for the application.

type HandlerOptions

type HandlerOptions struct {
	ante.HandlerOptions

	IBCKeeper         *keeper.Keeper
	WasmConfig        *compute.WasmConfig
	TXCounterStoreKey sdk.StoreKey
}

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

type SecretNetworkApp

type SecretNetworkApp struct {
	*baseapp.BaseApp

	// keepers
	AppKeepers keepers.SecretAppKeepers
	// contains filtered or unexported fields
}

SecretNetworkApp extended ABCI application

func NewSecretNetworkApp

func NewSecretNetworkApp(
	logger tmlog.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	skipUpgradeHeights map[int64]bool,
	homePath string,
	invCheckPeriod uint,
	bootstrap bool,
	appOpts servertypes.AppOptions,
	computeConfig *compute.WasmConfig,
	baseAppOptions ...func(*baseapp.BaseApp),
) *SecretNetworkApp

NewSecretNetworkApp is a constructor function for enigmaChainApp

func (*SecretNetworkApp) AppCodec

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

func (*SecretNetworkApp) BeginBlocker

BeginBlocker application updates every begin block

func (*SecretNetworkApp) BlockedAddrs

func (app *SecretNetworkApp) BlockedAddrs() map[string]bool

BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.

func (*SecretNetworkApp) EndBlocker

EndBlocker application updates every end block

func (*SecretNetworkApp) ExportAppStateAndValidators

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

func (*SecretNetworkApp) GetBaseApp

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

func (*SecretNetworkApp) GetIBCKeeper

func (app *SecretNetworkApp) GetIBCKeeper() *ibckeeper.Keeper

func (*SecretNetworkApp) GetScopedIBCKeeper

func (app *SecretNetworkApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper

func (*SecretNetworkApp) GetStakingKeeper

func (app *SecretNetworkApp) GetStakingKeeper() stakingkeeper.Keeper

func (*SecretNetworkApp) GetTxConfig

func (app *SecretNetworkApp) GetTxConfig() client.TxConfig

func (*SecretNetworkApp) InitChainer

InitChainer application update at chain initialization

func (*SecretNetworkApp) LegacyAmino

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

LegacyAmino returns the application's sealed codec.

func (*SecretNetworkApp) LoadHeight

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

LoadHeight loads a particular height

func (*SecretNetworkApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*SecretNetworkApp) Name

func (app *SecretNetworkApp) Name() string

Name returns the name of the App

func (*SecretNetworkApp) RegisterAPIRoutes

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

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

func (*SecretNetworkApp) RegisterTendermintService

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

func (*SecretNetworkApp) RegisterTxService

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

func (*SecretNetworkApp) SimulationManager

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

SimulationManager implements the SimulationApp interface

type WasmWrapper

type WasmWrapper struct {
	Wasm compute.WasmConfig `mapstructure:"wasm"`
}

WasmWrapper allows us to use namespacing in the config file This is only used for parsing in the app, x/compute expects WasmConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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