Documentation
¶
Index ¶
- Constants
- Variables
- func MakeEncodingConfig() params.EncodingConfiguration
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func RegisterSwaggerAPI(rtr *mux.Router)
- type Application
- func (application Application) ApplicationCodec() codec.Codec
- func (application Application) ApplySnapshotChunk(chunk abciTypes.RequestApplySnapshotChunk) abciTypes.ResponseApplySnapshotChunk
- func (application Application) BeginBlocker(ctx sdkTypes.Context, req abciTypes.RequestBeginBlock) abciTypes.ResponseBeginBlock
- func (application Application) EndBlocker(ctx sdkTypes.Context, req abciTypes.RequestEndBlock) abciTypes.ResponseEndBlock
- func (application Application) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (serverTypes.ExportedApp, error)
- func (application Application) InitChainer(ctx sdkTypes.Context, req abciTypes.RequestInitChain) abciTypes.ResponseInitChain
- func (application Application) Initialize(applicationName string, ...) Application
- func (application Application) LegacyAmino() *codec.LegacyAmino
- func (application Application) ListSnapshots(snapshots abciTypes.RequestListSnapshots) abciTypes.ResponseListSnapshots
- func (application Application) LoadHeight(height int64) error
- func (application Application) LoadSnapshotChunk(chunk abciTypes.RequestLoadSnapshotChunk) abciTypes.ResponseLoadSnapshotChunk
- func (application Application) ModuleAccountAddrs() map[string]bool
- func (application Application) Name() string
- func (application Application) OfferSnapshot(snapshot abciTypes.RequestOfferSnapshot) abciTypes.ResponseOfferSnapshot
- func (application Application) RegisterAPIRoutes(apiServer *api.Server, apiConfig config.APIConfig)
- func (application Application) RegisterGRPCServer(server grpc.Server)
- func (application Application) RegisterTendermintService(clientCtx client.Context)
- func (application Application) RegisterTxService(clientContect client.Context)
- func (application Application) SimulationManager() *sdkTypesModule.SimulationManager
- type GenesisState
- type HandlerOptions
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
View Source
var ModuleAccountPermissions = map[string][]string{ authTypes.FeeCollectorName: nil, distributionTypes.ModuleName: nil, mintTypes.ModuleName: {authTypes.Minter}, stakingTypes.BondedPoolName: {authTypes.Burner, authTypes.Staking}, stakingTypes.NotBondedPoolName: {authTypes.Burner, authTypes.Staking}, govTypes.ModuleName: {authTypes.Burner}, ibcTransferTypes.ModuleName: {authTypes.Minter, authTypes.Burner}, }
View Source
var ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distribution.AppModuleBasic{}, gov.NewAppModuleBasic( paramsClient.ProposalHandler, distributionClient.ProposalHandler, upgradeClient.ProposalHandler, upgradeClient.CancelProposalHandler, ibcClient.UpdateClientProposalHandler, ibcClient.UpgradeProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, sdkFeegrantModule.AppModuleBasic{}, sdkAuthzModule.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, halving.AppModuleBasic{}, )
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 ¶
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 Application) ApplySnapshotChunk(chunk abciTypes.RequestApplySnapshotChunk) abciTypes.ResponseApplySnapshotChunk
func (Application) BeginBlocker ¶ added in v0.2.0
func (application Application) BeginBlocker(ctx sdkTypes.Context, req abciTypes.RequestBeginBlock) abciTypes.ResponseBeginBlock
func (Application) EndBlocker ¶ added in v0.2.0
func (application Application) EndBlocker(ctx sdkTypes.Context, req abciTypes.RequestEndBlock) abciTypes.ResponseEndBlock
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 Application) InitChainer(ctx sdkTypes.Context, req abciTypes.RequestInitChain) abciTypes.ResponseInitChain
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 Application) LoadSnapshotChunk(chunk abciTypes.RequestLoadSnapshotChunk) abciTypes.ResponseLoadSnapshotChunk
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 }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.