app

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 123 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultWeightMsgSend                        int = 100
	DefaultWeightMsgMultiSend                   int = 10
	DefaultWeightMsgSetWithdrawAddress          int = 50
	DefaultWeightMsgWithdrawDelegationReward    int = 50
	DefaultWeightMsgWithdrawValidatorCommission int = 50
	DefaultWeightMsgFundCommunityPool           int = 50
	DefaultWeightMsgDeposit                     int = 100
	DefaultWeightMsgVote                        int = 67
	DefaultWeightMsgUnjail                      int = 100
	DefaultWeightMsgCreateValidator             int = 100
	DefaultWeightMsgEditValidator               int = 5
	DefaultWeightMsgDelegate                    int = 100
	DefaultWeightMsgUndelegate                  int = 100
	DefaultWeightMsgBeginRedelegate             int = 100

	DefaultWeightCommunitySpendProposal int = 5
	DefaultWeightTextProposal           int = 5
	DefaultWeightParamChangeProposal    int = 5
)

Default simulation operation weights for messages and gov proposals

Variables

Functions

func NewDefaultGenesisState

func NewDefaultGenesisState() types.GenesisState

NewDefaultGenesisState generates the default state for the application.

func NoOpMempoolOption

func NoOpMempoolOption() func(*baseapp.BaseApp)

NoOpMempoolOption returns a function that sets up a no-op mempool for the given BaseApp.

The function takes a pointer to a BaseApp as a parameter and returns nothing.

func RegisterEncodingConfig

func RegisterEncodingConfig() params.EncodingConfig

RegisterEncodingConfig registers concrete types on codec

Types

type IrisApp

type IrisApp struct {
	*baseapp.BaseApp

	keepers.AppKeepers
	// contains filtered or unexported fields
}

IrisApp 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 NewIrisApp

func NewIrisApp(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	encodingConfig params.EncodingConfig,
	appOpts servertypes.AppOptions,
	baseAppOptions ...func(*baseapp.BaseApp),
) *IrisApp

NewIrisApp returns a reference to an initialized IrisApp.

func (*IrisApp) AppCodec

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

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

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

BeginBlocker application updates every begin block

func (*IrisApp) BlockedModuleAccountAddrs

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

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

func (*IrisApp) DefaultGenesis

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

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

func (*IrisApp) EndBlocker

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

EndBlocker application updates every end block

func (*IrisApp) ExportAppStateAndValidators

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

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

func (*IrisApp) ExportGenesis

func (app *IrisApp) ExportGenesis(ctx sdk.Context) map[string]json.RawMessage

ExportGenesis returns the KVStoreKey for the provided store key.

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

func (*IrisApp) Init

func (app *IrisApp) Init()

Init initializes the IrisApp.

func (*IrisApp) InitChainer

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

InitChainer application update at chain initialization

func (*IrisApp) InterfaceRegistry

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

InterfaceRegistry returns IrisApp's InterfaceRegistry

func (*IrisApp) LegacyAmino

func (app *IrisApp) 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 (*IrisApp) LoadHeight

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

LoadHeight loads a particular height

func (*IrisApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*IrisApp) Name

func (app *IrisApp) Name() string

Name returns the name of the App

func (*IrisApp) RegisterAPIRoutes

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

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

func (*IrisApp) RegisterNodeService

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

RegisterNodeService registers the node service.

It takes a client context as a parameter and does not return anything.

func (*IrisApp) RegisterServices

func (app *IrisApp) RegisterServices()

RegisterServices implements the Application.RegisterTxService method.

func (*IrisApp) RegisterTendermintService

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

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*IrisApp) RegisterTxService

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

RegisterTxService implements the Application.RegisterTxService method.

func (*IrisApp) RegisterUpgradePlans

func (app *IrisApp) RegisterUpgradePlans()

RegisterUpgradePlans register a handler of upgrade plan

func (*IrisApp) SimulationManager

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

SimulationManager implements the SimulationApp interface

Directories

Path Synopsis
Package params defines the simulation parameters in the gaia.
Package params defines the simulation parameters in the gaia.

Jump to

Keyboard shortcuts

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