Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- Variables
- func ExportStateToJSON(app *MdukeyApp, path string) error
- func GetMaccPerms() map[string][]string
- func MakeCodec() *codec.Codec
- type GenesisState
- type MdukeyApp
- func (app *MdukeyApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *MdukeyApp) Codec() *codec.Codec
- func (app *MdukeyApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *MdukeyApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *MdukeyApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *MdukeyApp) LoadHeight(height int64) error
- func (app *MdukeyApp) ModuleAccountAddrs() map[string]bool
Constants ¶
const ( StakePerAccount = "stake_per_account" InitiallyBondedValidators = "initially_bonded_validators" OpWeightDeductFee = "op_weight_deduct_fee" OpWeightMsgSend = "op_weight_msg_send" OpWeightMsgMultiSend = "op_weight_msg_multisend" OpWeightMsgSetWithdrawAddress = "op_weight_msg_set_withdraw_address" OpWeightMsgWithdrawDelegationReward = "op_weight_msg_withdraw_delegation_reward" OpWeightMsgWithdrawValidatorCommission = "op_weight_msg_withdraw_validator_commission" OpWeightSubmitTextProposal = "op_weight_submit_text_proposal" OpWeightSubmitCommunitySpendProposal = "op_weight_submit_community_spend_proposal" OpWeightSubmitParamChangeProposal = "op_weight_submit_param_change_proposal" OpWeightMsgDeposit = "op_weight_msg_deposit" OpWeightMsgVote = "op_weight_msg_vote" OpWeightMsgCreateValidator = "op_weight_msg_create_validator" OpWeightMsgEditValidator = "op_weight_msg_edit_validator" OpWeightMsgDelegate = "op_weight_msg_delegate" OpWeightMsgUndelegate = "op_weight_msg_undelegate" OpWeightMsgBeginRedelegate = "op_weight_msg_begin_redelegate" OpWeightMsgUnjail = "op_weight_msg_unjail" )
Simulation parameter constants
Variables ¶
var ( // default home directories for mdukeycli DefaultCLIHome = os.ExpandEnv("$HOME/.mdukeycli") // default home directories for mdukeyd DefaultNodeHome = os.ExpandEnv("$HOME/.mdukeyd") // 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{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, evidence.AppModuleBasic{}, ) )
Functions ¶
func ExportStateToJSON ¶
ExportStateToJSON util function to export the app state to JSON
func GetMaccPerms ¶
GetMaccPerms returns a mapping of the application's module account permissions.
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState defines a type alias for the Mdukey genesis application state.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
type MdukeyApp ¶
MdukeyApp extended ABCI application
func NewMdukeyApp ¶
func NewMdukeyApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp), ) *MdukeyApp
NewMdukeyApp returns a reference to an initialized MdukeyApp.
func NewMdukeyAppUNSAFE ¶
func NewMdukeyAppUNSAFE(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, baseAppOptions ...func(*baseapp.BaseApp), ) (gapp *MdukeyApp, keyMain, keyStaking *sdk.KVStoreKey, stakingKeeper staking.Keeper)
NewMdukeyAppUNSAFE is used for debugging purposes only.
NOTE: to not use this function with non-test code
func (*MdukeyApp) BeginBlocker ¶
func (app *MdukeyApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
application updates every begin block
func (*MdukeyApp) EndBlocker ¶
func (app *MdukeyApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
application updates every end block
func (*MdukeyApp) ExportAppStateAndValidators ¶
func (app *MdukeyApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
ExportAppStateAndValidators export the state of mdukey for a genesis file
func (*MdukeyApp) InitChainer ¶
func (app *MdukeyApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
application update at chain initialization
func (*MdukeyApp) LoadHeight ¶
load a particular height
func (*MdukeyApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.