app

package
v2.0.1-0...-c6a7496 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 113 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultNodeHome default home directories for the application daemon
	DefaultNodeHome = os.ExpandEnv("$HOME/.ixod")

	// scheduled upgrades and forks
	Upgrades = []upgrades.Upgrade{v2.Upgrade}
	Forks    = []upgrades.Fork{}

	// If EnableSpecificWasmProposals is "", and this is "true", then enable all x/wasm proposals.
	// If EnableSpecificWasmProposals is "", and this is not "true", then disable all x/wasm proposals.
	WasmProposalsEnabled = "true"
	// EnableSpecificWasmProposals, if set to non-empty string it must be comma-separated list of values that are all a subset
	// of "EnableAllProposals" (takes precedence over WasmProposalsEnabled)
	// https://github.com/CosmWasm/wasmd/blob/02a54d33ff2c064f3539ae12d75d027d9c665f05/x/wasm/internal/types/proposal.go#L28-L34
	EnableSpecificWasmProposals = ""
)

ModuleBasics defines the module BasicManager is in charge of setting up basic, non-dependant module elements, such as codec registration and genesis verification.

Functions

func GetEncodingConfig

func GetEncodingConfig() params.EncodingConfig

func GetMaccPerms

func GetMaccPerms() map[string][]string

GetMaccPerms returns a copy of the module account permissions

func GetWasmEnabledProposals

func GetWasmEnabledProposals() []wasm.ProposalType

GetWasmEnabledProposals parses the WasmProposalsEnabled and EnableSpecificWasmProposals values to produce a list of enabled proposals to pass into the application.

func IxoAnteHandler

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

IxoAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.

func MakeEncodingConfig

func MakeEncodingConfig() params.EncodingConfig

MakeEncodingConfig creates an EncodingConfig

func NewIxoAnteHandler

func NewIxoAnteHandler(options HandlerOptions) sdk.AnteHandler

NewIxoAnteHandler returns a new sdk.AnteHandler or panics if fail to create.

func RegisterSwaggerAPI

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

RegisterSwaggerAPI registers swagger route with API Server

Types

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.

type HandlerOptions

type HandlerOptions struct {
	authante.HandlerOptions

	IidKeeper         iidkeeper.Keeper
	EntityKeeper      entitykeeper.Keeper
	WasmConfig        wasmtypes.WasmConfig
	IBCKeeper         *ibckeeper.Keeper
	TxCounterStoreKey sdk.StoreKey
}

HandlerOptions are the options required for constructing a default SDK AnteHandler.

type IxoApp

type IxoApp struct {
	*baseapp.BaseApp
	keepers.AppKeepers
	// contains filtered or unexported fields
}

Extended ABCI application

func NewIxoApp

func NewIxoApp(
	logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool,
	homePath string, invCheckPeriod uint, appOpts servertypes.AppOptions, wasmOpts []wasm.Option,
	baseAppOptions ...func(*baseapp.BaseApp),
) *IxoApp

NewIxoApp returns a reference to an initialized IxoApp.

func (*IxoApp) AppCodec

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

AppCodec returns IxoApp's 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 (*IxoApp) BeginBlocker

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

BeginBlocker application updates every begin block

func (*IxoApp) BlockedAddresses

func (app *IxoApp) BlockedAddresses() map[string]bool

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

func (*IxoApp) EndBlocker

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

EndBlocker application updates every end block

func (*IxoApp) ExportAppStateAndValidators

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

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

func (*IxoApp) ExportState

func (app *IxoApp) ExportState(ctx sdk.Context) map[string]json.RawMessage

func (*IxoApp) GetBaseApp

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

GetBaseApp returns the base app of the application

func (*IxoApp) InitChainer

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

InitChainer application update at chain initialization

func (*IxoApp) InterfaceRegistry

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

InterfaceRegistry returns IxoApp's InterfaceRegistry

func (*IxoApp) LegacyAmino

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

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

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

LoadHeight loads a particular height

func (*IxoApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*IxoApp) Name

func (app *IxoApp) Name() string

Name returns the name of the App

func (*IxoApp) RegisterAPIRoutes

func (app *IxoApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig srvconfig.APIConfig)

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

func (*IxoApp) RegisterTendermintService

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

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*IxoApp) RegisterTxService

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

RegisterTxService implements the Application.RegisterTxService method.

func (*IxoApp) SimulationManager

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

SimulationManager implements the SimulationApp interface

Directories

Path Synopsis
v2

Jump to

Keyboard shortcuts

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