Documentation ¶
Index ¶
- Constants
- Variables
- func GetMaccPerms() map[string][]string
- func MakeEncodingConfig() params.EncodingConfig
- type GenesisState
- type MetaosApp
- func (app *MetaosApp) AppCodec() codec.Codec
- func (app *MetaosApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *MetaosApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *MetaosApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *MetaosApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *MetaosApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
- func (app *MetaosApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *MetaosApp) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *MetaosApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *MetaosApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *MetaosApp) LegacyAmino() *codec.LegacyAmino
- func (app *MetaosApp) LoadHeight(height int64) error
- func (app *MetaosApp) ModuleAccountAddrs() map[string]bool
- func (app *MetaosApp) Name() string
- func (app *MetaosApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *MetaosApp) RegisterTendermintService(clientCtx client.Context)
- func (app *MetaosApp) RegisterTxService(clientCtx client.Context)
- func (app *MetaosApp) RegisterUpgradePlan(planName string, upgrades store.StoreUpgrades, ...)
- func (app *MetaosApp) 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 DefaultNodeHome string
DefaultNodeHome default home directories for the application daemon
var ( // 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{}, params.AppModuleBasic{}, cparams.AppModuleBasic{}, crisis.AppModuleBasic{}, cslashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, record.AppModuleBasic{}, token.AppModuleBasic{}, nft.AppModuleBasic{}, mt.AppModuleBasic{}, service.AppModuleBasic{}, oracle.AppModuleBasic{}, random.AppModuleBasic{}, perm.AppModuleBasic{}, identity.AppModuleBasic{}, node.AppModuleBasic{}, opb.AppModuleBasic{}, tibc.AppModule{}, tibcnfttransfer.AppModuleBasic{}, tibcmttransfer.AppModuleBasic{}, wasm.AppModuleBasic{}, evm.AppModuleBasic{}, feemarket.AppModuleBasic{}, ) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState defines a type alias for the Iris genesis application state.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
type MetaosApp ¶
type MetaosApp struct { *baseapp.BaseApp // Ethermint keepers EvmKeeper *evmkeeper.Keeper FeeMarketKeeper feemarketkeeper.Keeper // contains filtered or unexported fields }
MetaosApp extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.
func NewMetaosApp ¶
func NewMetaosApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig simappparams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *MetaosApp
NewMetaosApp returns a reference to an initialized MetaosApp.
func (*MetaosApp) AppCodec ¶
AppCodec returns MetaosApp's app 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 (*MetaosApp) BeginBlocker ¶
func (app *MetaosApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*MetaosApp) EndBlocker ¶
func (app *MetaosApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*MetaosApp) ExportAppStateAndValidators ¶
func (app *MetaosApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
ExportAppStateAndValidators export the state of metaosd for a genesis file
func (*MetaosApp) GetKey ¶
func (app *MetaosApp) GetKey(storeKey string) *sdk.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*MetaosApp) GetMemKey ¶
func (app *MetaosApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*MetaosApp) GetSubspace ¶
func (app *MetaosApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: This is solely to be used for testing purposes.
func (*MetaosApp) GetTKey ¶
func (app *MetaosApp) GetTKey(storeKey string) *sdk.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*MetaosApp) InitChainer ¶
func (app *MetaosApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*MetaosApp) InterfaceRegistry ¶
func (app *MetaosApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns MetaosApp's InterfaceRegistry
func (*MetaosApp) LegacyAmino ¶
func (app *MetaosApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns MetaosApp's amino 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 (*MetaosApp) LoadHeight ¶
LoadHeight loads a particular height
func (*MetaosApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*MetaosApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*MetaosApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*MetaosApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*MetaosApp) RegisterUpgradePlan ¶
func (app *MetaosApp) RegisterUpgradePlan(planName string, upgrades store.StoreUpgrades, upgradeHandler sdkupgrade.UpgradeHandler)
RegisterUpgradePlan implements the upgrade execution logic of the upgrade module
func (*MetaosApp) SimulationManager ¶
func (app *MetaosApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface