app

package
v6.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name             = "PersistenceCore"
	Bech32MainPrefix = "persistence"
	UpgradeName      = "v6"
	CoinType         = 118
	Purpose          = 44

	Bech32PrefixAccAddr  = Bech32MainPrefix
	Bech32PrefixAccPub   = Bech32MainPrefix + sdk.PrefixPublic
	Bech32PrefixValAddr  = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator
	Bech32PrefixValPub   = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic
	Bech32PrefixConsAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus
	Bech32PrefixConsPub  = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic
)

Variables

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

Functions

func GetEnabledProposals

func GetEnabledProposals() []wasm.ProposalType

GetEnabledProposals parses the ProposalsEnabled / EnableSpecificProposals values to produce a list of enabled proposals to pass into wasmd app.

func MakeEncodingConfig

func MakeEncodingConfig() params.EncodingConfig

MakeEncodingConfig creates an EncodingConfig for testing

func NewAnteHandler

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

func RegisterSwaggerAPI

func RegisterSwaggerAPI(rtr *mux.Router)

Types

type Application

type Application struct {
	*baseapp.BaseApp

	AccountKeeper         *authkeeper.AccountKeeper
	BankKeeper            *bankkeeper.BaseKeeper
	CapabilityKeeper      *capabilitykeeper.Keeper
	StakingKeeper         *stakingkeeper.Keeper
	SlashingKeeper        *slashingkeeper.Keeper
	MintKeeper            *mintkeeper.Keeper
	DistributionKeeper    *distributionkeeper.Keeper
	GovKeeper             *govkeeper.Keeper
	UpgradeKeeper         *upgradekeeper.Keeper
	CrisisKeeper          *crisiskeeper.Keeper
	ParamsKeeper          *paramskeeper.Keeper
	IBCKeeper             *ibckeeper.Keeper
	ICAHostKeeper         *icahostkeeper.Keeper
	EvidenceKeeper        *evidencekeeper.Keeper
	TransferKeeper        *ibctransferkeeper.Keeper
	FeegrantKeeper        *feegrantkeeper.Keeper
	AuthzKeeper           *authzkeeper.Keeper
	HalvingKeeper         *halving.Keeper
	WasmKeeper            *wasm.Keeper
	EpochsKeeper          *epochskeeper.Keeper
	ICAControllerKeeper   *icacontrollerkeeper.Keeper
	LSCosmosKeeper        *lscosmoskeeper.Keeper
	InterchainQueryKeeper *interchainquerykeeper.Keeper
	TransferHooksKeeper   *ibchookerkeeper.Keeper

	// make scoped keepers public for test purposes
	ScopedIBCKeeper           capabilitykeeper.ScopedKeeper
	ScopedTransferKeeper      capabilitykeeper.ScopedKeeper
	ScopedICAHostKeeper       capabilitykeeper.ScopedKeeper
	ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
	ScopedLSCosmosKeeper      capabilitykeeper.ScopedKeeper
	ScopedWasmKeeper          capabilitykeeper.ScopedKeeper
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication(
	applicationName string,
	encodingConfiguration appparams.EncodingConfig,
	moduleAccountPermissions map[string][]string,
	logger tendermintlog.Logger,
	db tendermintdb.DB,
	traceStore io.Writer,
	loadLatest bool,
	invCheckPeriod uint,
	skipUpgradeHeights map[int64]bool,
	home string,
	enabledProposals []wasm.ProposalType,
	applicationOptions servertypes.AppOptions,
	wasmOpts []wasm.Option,
	baseAppOptions ...func(*baseapp.BaseApp),
) *Application

func (*Application) ApplicationCodec

func (app *Application) ApplicationCodec() codec.Codec

func (*Application) BeginBlocker

func (*Application) CreateUpgradeHandler

func (app *Application) CreateUpgradeHandler(mm *module.Manager, configurator module.Configurator) upgradetypes.UpgradeHandler

func (*Application) EndBlocker

func (*Application) ExportAppStateAndValidators

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

func (*Application) GetSubspace

func (app *Application) GetSubspace(moduleName string) paramstypes.Subspace

func (*Application) InitChainer

func (*Application) LegacyAmino

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

func (*Application) ListSnapshots

func (*Application) LoadHeight

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

func (*Application) LoadSnapshotChunk

func (*Application) ModuleAccountAddrs

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

func (*Application) Name

func (app *Application) Name() string

func (*Application) OfferSnapshot

func (*Application) RegisterAPIRoutes

func (app *Application) RegisterAPIRoutes(apiServer *api.Server, apiConfig config.APIConfig)

func (*Application) RegisterGRPCServer

func (app *Application) RegisterGRPCServer(server grpc.Server)

func (*Application) RegisterNodeService

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

func (*Application) RegisterTendermintService

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

func (*Application) RegisterTxService

func (app *Application) RegisterTxService(clientContect client.Context)

func (*Application) SimulationManager

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

type GenesisState

type GenesisState map[string]json.RawMessage

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

NewDefaultGenesisState generates the default state for the Application.

type HandlerOptions

type HandlerOptions struct {
	ante.HandlerOptions
	IBCKeeper         *ibckeeper.Keeper
	WasmConfig        *wasmtypes.WasmConfig
	TXCounterStoreKey sdk.StoreKey
}

Directories

Path Synopsis
upgrades
v6

Jump to

Keyboard shortcuts

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