application

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 100 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name             = "PersistenceCore"
	Bech32MainPrefix = "persistence"
	UpgradeName      = "v2"
	CoinType         = 750

	FullFundraiserPath = "44'/750'/0'/0/0"

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

Variables

View Source
var DefaultNodeHome string

Functions

func MakeEncodingConfig

func MakeEncodingConfig() params.EncodingConfiguration

MakeEncodingConfig creates an EncodingConfig for testing

func NewAnteHandler added in v0.2.0

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

func RegisterSwaggerAPI

func RegisterSwaggerAPI(rtr *mux.Router)

Types

type Application added in v0.2.0

type Application struct {
	*baseapp.BaseApp

	AccountKeeper      authKeeper.AccountKeeper
	BankKeeper         sdkBankKeeper.Keeper
	CapabilityKeeper   *sdkCapabilityKeeper.Keeper
	StakingKeeper      sdkStakingKeeper.Keeper
	SlashingKeeper     slashingKeeper.Keeper
	MintKeeper         sdkMintKeeper.Keeper
	DistributionKeeper sdkDistributionKeeper.Keeper
	GovKeeper          sdkGovKeeper.Keeper
	UpgradeKeeper      sdkUpgradeKeeper.Keeper
	CrisisKeeper       sdkCrisisKeeper.Keeper
	ParamsKeeper       sdkParamsKeeper.Keeper
	IBCKeeper          *sdkIBCKeeper.Keeper
	EvidenceKeeper     sdkEvidenceKeeper.Keeper
	TransferKeeper     ibcTransferKeeper.Keeper
	FeegrantKeeper     sdkFeeGrantKeeper.Keeper
	AuthzKeeper        sdkAuthzKeeper.Keeper
	HalvingKeeper      halving.Keeper
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication() *Application

func (Application) ApplicationCodec added in v0.2.0

func (application Application) ApplicationCodec() codec.Codec

func (Application) ApplySnapshotChunk added in v0.2.0

func (Application) BeginBlocker added in v0.2.0

func (Application) EndBlocker added in v0.2.0

func (Application) ExportAppStateAndValidators added in v0.2.0

func (application Application) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (serverTypes.ExportedApp, error)

func (Application) InitChainer added in v0.2.0

func (Application) Initialize added in v0.2.0

func (application Application) Initialize(applicationName string, encodingConfiguration applicationParams.EncodingConfiguration, moduleAccountPermissions map[string][]string, logger tendermintLog.Logger, db tendermintDB.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, skipUpgradeHeights map[int64]bool, home string, applicationOptions serverTypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp)) Application

func (Application) LegacyAmino added in v0.2.0

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

func (Application) ListSnapshots added in v0.2.0

func (application Application) ListSnapshots(snapshots abciTypes.RequestListSnapshots) abciTypes.ResponseListSnapshots

func (Application) LoadHeight added in v0.2.0

func (application Application) LoadHeight(height int64) error

func (Application) LoadSnapshotChunk added in v0.2.0

func (Application) ModuleAccountAddrs added in v0.2.0

func (application Application) ModuleAccountAddrs() map[string]bool

func (Application) Name added in v0.2.0

func (application Application) Name() string

func (Application) OfferSnapshot added in v0.2.0

func (application Application) OfferSnapshot(snapshot abciTypes.RequestOfferSnapshot) abciTypes.ResponseOfferSnapshot

func (Application) RegisterAPIRoutes added in v0.2.0

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

func (Application) RegisterGRPCServer added in v0.2.0

func (application Application) RegisterGRPCServer(server grpc.Server)

func (Application) RegisterTendermintService added in v0.2.0

func (application Application) RegisterTendermintService(clientCtx client.Context)

func (Application) RegisterTxService added in v0.2.0

func (application Application) RegisterTxService(clientContect client.Context)

func (Application) SimulationManager added in v0.2.0

func (application Application) SimulationManager() *sdkTypesModule.SimulationManager

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

NewDefaultGenesisState generates the default state for the Application.

type HandlerOptions added in v0.2.0

type HandlerOptions struct {
	ante.HandlerOptions
	IBCChannelKeeper ibcChannelKeeper.Keeper
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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