Documentation ¶
Index ¶
- Constants
- Variables
- func GetMaccPerms() map[string][]string
- func MakeCodec() *codec.Codec
- func NewAnteHandler(ak auth.AccountKeeper, sk supply.Keeper) sdk.AnteHandler
- func NewDecentrApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, ...) *decentrApp
- func NewStakingAppModuleDecorator(keeper staking.Keeper, accountKeeper auth.AccountKeeper, ...) *stakingAppModuleDecorator
- type GasExcludingSetUpContextDecorator
- type GenesisState
Constants ¶
View Source
const ( // DefaultBondDenom is the default bond denomination DefaultBondDenom = "udec" // PrefixAccount is the prefix for account keys PrefixAccount = "acc" // PrefixValidator is the prefix for validator keys PrefixValidator = "val" // PrefixConsensus is the prefix for consensus keys PrefixConsensus = "cons" // PrefixPublic is the prefix for public keys PrefixPublic = "pub" // PrefixOperator is the prefix for operator keys PrefixOperator = "oper" // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32MainPrefix = "decentr" // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = Bech32MainPrefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = Bech32MainPrefix + PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = Bech32MainPrefix + PrefixValidator + PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = Bech32MainPrefix + PrefixValidator + PrefixOperator + PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = Bech32MainPrefix + PrefixValidator + PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic )
Variables ¶
View Source
var ( // DefaultCLIHome default home directories for the application CLI DefaultCLIHome = os.ExpandEnv("$HOME/.decentrcli") // DefaultNodeHome sets the folder where the applcation data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.decentrd") // ModuleBasics The module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( genutil.AppModuleBasic{}, auth.AppModuleBasic{}, bank.AppModuleBasic{}, stakingAppModuleDecorator{}, distr.AppModuleBasic{}, params.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, pdv.AppModule{}, profile.AppModule{}, token.AppModule{}, ) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a mapping of the application's module account permissions.
func MakeCodec ¶
MakeCodec creates the application codec. The codec is sealed before it is returned.
func NewAnteHandler ¶
func NewAnteHandler(ak auth.AccountKeeper, sk supply.Keeper) sdk.AnteHandler
func NewDecentrApp ¶
Types ¶
type GasExcludingSetUpContextDecorator ¶
func NewGasExcludingSetUpContextDecorator ¶
func NewGasExcludingSetUpContextDecorator(exclude ...interface{}) GasExcludingSetUpContextDecorator
func (GasExcludingSetUpContextDecorator) AnteHandle ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState represents chain state at the start of the chain. Any initial state (account balances) are stored here.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
Click to show internal directories.
Click to hide internal directories.