Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "PersistenceCore" Bech32MainPrefix = "persistence" 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 = os.ExpandEnv("$HOME/.persistenceCore")
)
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, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.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 NewApplication ¶
func NewApplication() *application
func RegisterSwaggerAPI ¶
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() GenesisState
NewDefaultGenesisState generates the default state for the application.
Click to show internal directories.
Click to hide internal directories.