Documentation ¶
Index ¶
- Constants
- Variables
- func GetMaccPerms() map[string][]string
- type GenesisState
- type ThreeChainzApp
- func (app *ThreeChainzApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *ThreeChainzApp) BlacklistedAccAddrs() map[string]bool
- func (app *ThreeChainzApp) Codec() *codec.Codec
- func (app *ThreeChainzApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *ThreeChainzApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, ...)
- func (app *ThreeChainzApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *ThreeChainzApp) LoadHeight(height int64) error
- func (app *ThreeChainzApp) ModuleAccountAddrs() map[string]bool
- func (app *ThreeChainzApp) Name() string
- func (app *ThreeChainzApp) SimulationManager() *module.SimulationManager
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 ( // DefaultCLIHome default home directories for 3zcli DefaultCLIHome = os.ExpandEnv("$HOME/.3zcli") // DefaultNodeHome default home directories for 3zd DefaultNodeHome = os.ExpandEnv("$HOME/.3zd") // ModuleBasics defines the module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distr.ProposalHandler, upgradeclient.ProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, ) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState defines a type alias for the 3chainz genesis application state.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
type ThreeChainzApp ¶
ThreeChainzApp extended ABCI application
func NewThreeChainzApp ¶
func NewThreeChainzApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, skipUpgradeHeights map[int64]bool, home string, baseAppOptions ...func(*baseapp.BaseApp), ) *ThreeChainzApp
NewThreeChainzApp returns a reference to an initialized ThreeChainzApp.
func (*ThreeChainzApp) BeginBlocker ¶
func (app *ThreeChainzApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*ThreeChainzApp) BlacklistedAccAddrs ¶
func (app *ThreeChainzApp) BlacklistedAccAddrs() map[string]bool
BlacklistedAccAddrs returns all the app's module account addresses black listed for receiving tokens.
func (*ThreeChainzApp) Codec ¶
func (app *ThreeChainzApp) Codec() *codec.Codec
Codec returns ThreeChainzApp's codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*ThreeChainzApp) EndBlocker ¶
func (app *ThreeChainzApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*ThreeChainzApp) ExportAppStateAndValidators ¶
func (app *ThreeChainzApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, cp *abci.ConsensusParams, err error)
ExportAppStateAndValidators export the state of 3chainz for a genesis file
func (*ThreeChainzApp) InitChainer ¶
func (app *ThreeChainzApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*ThreeChainzApp) LoadHeight ¶
func (app *ThreeChainzApp) LoadHeight(height int64) error
LoadHeight loads a particular height
func (*ThreeChainzApp) ModuleAccountAddrs ¶
func (app *ThreeChainzApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*ThreeChainzApp) Name ¶
func (app *ThreeChainzApp) Name() string
Name returns the name of the App
func (*ThreeChainzApp) SimulationManager ¶
func (app *ThreeChainzApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface