Documentation ¶
Index ¶
- Constants
- Variables
- func MakeConfig(mb module.BasicManager) params.EncodingConfig
- func MakeEncodingConfig() params.EncodingConfig
- func NewDefaultGenesisState() types.GenesisState
- func NoOpMempoolOption() func(*baseapp.BaseApp)
- type IrisApp
- func (app *IrisApp) AppCodec() codec.Codec
- func (app *IrisApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *IrisApp) BlockedModuleAccountAddrs() map[string]bool
- func (app *IrisApp) DefaultGenesis() map[string]json.RawMessage
- func (app *IrisApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *IrisApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *IrisApp) ExportGenesis(ctx sdk.Context) map[string]json.RawMessage
- func (app *IrisApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *IrisApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *IrisApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *IrisApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
- func (app *IrisApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *IrisApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *IrisApp) LegacyAmino() *codec.LegacyAmino
- func (app *IrisApp) LoadHeight(height int64) error
- func (app *IrisApp) ModuleAccountAddrs() map[string]bool
- func (app *IrisApp) Name() string
- func (app *IrisApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *IrisApp) RegisterNodeService(clientCtx client.Context)
- func (app *IrisApp) RegisterServices()
- func (app *IrisApp) RegisterTendermintService(clientCtx client.Context)
- func (app *IrisApp) RegisterTxService(clientCtx client.Context)
- func (app *IrisApp) RegisterUpgradePlans()
- func (app *IrisApp) SimulationManager() *module.SimulationManager
Constants ¶
const ( DefaultWeightMsgSend int = 100 DefaultWeightMsgMultiSend int = 10 DefaultWeightMsgSetWithdrawAddress int = 50 DefaultWeightMsgWithdrawDelegationReward int = 50 DefaultWeightMsgWithdrawValidatorCommission int = 50 DefaultWeightMsgFundCommunityPool int = 50 DefaultWeightMsgDeposit int = 100 DefaultWeightMsgVote int = 67 DefaultWeightMsgUnjail int = 100 DefaultWeightMsgCreateValidator int = 100 DefaultWeightMsgEditValidator int = 5 DefaultWeightMsgDelegate int = 100 DefaultWeightMsgUndelegate int = 100 DefaultWeightMsgBeginRedelegate int = 100 DefaultWeightCommunitySpendProposal int = 5 DefaultWeightTextProposal int = 5 DefaultWeightParamChangeProposal int = 5 )
Default simulation operation weights for messages and gov proposals
Variables ¶
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{}, authzmodule.AppModuleBasic{}, genutil.AppModuleBasic{ GenTxValidator: genutiltypes.DefaultMessageValidator, }, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( append(legacyProposalHandlers, tibccli.GovHandlers...), ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, ibctm.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, authzmodule.AppModuleBasic{}, consensus.AppModuleBasic{}, guardian.AppModuleBasic{}, token.AppModuleBasic{}, record.AppModuleBasic{}, nftmodule.AppModuleBasic{}, htlc.AppModuleBasic{}, coinswap.AppModuleBasic{}, service.AppModuleBasic{}, oracle.AppModuleBasic{}, random.AppModuleBasic{}, farm.AppModuleBasic{}, tibc.AppModuleBasic{}, tibcnfttransfer.AppModuleBasic{}, tibcmttransfer.AppModuleBasic{}, mt.AppModuleBasic{}, nfttransfer.AppModuleBasic{}, evm.AppModuleBasic{}, feemarket.AppModuleBasic{}, ) )
Functions ¶
func MakeConfig ¶
func MakeConfig(mb module.BasicManager) params.EncodingConfig
MakeConfig creates an EncodingConfig for testing
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() types.GenesisState
NewDefaultGenesisState generates the default state for the application.
func NoOpMempoolOption ¶
Types ¶
type IrisApp ¶
type IrisApp struct { *baseapp.BaseApp // cosmos FeeGrantKeeper feegrantkeeper.Keeper AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper StakingKeeper *stakingkeeper.Keeper SlashingKeeper slashingkeeper.Keeper MintKeeper mintkeeper.Keeper DistrKeeper distrkeeper.Keeper GovKeeper *govkeeper.Keeper CrisisKeeper *crisiskeeper.Keeper UpgradeKeeper *upgradekeeper.Keeper ParamsKeeper paramskeeper.Keeper EvidenceKeeper *evidencekeeper.Keeper AuthzKeeper authzkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper //ibc IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly IBCTransferKeeper ibctransferkeeper.Keeper IBCNFTTransferKeeper ibcnfttransferkeeper.Keeper GuardianKeeper guardiankeeper.Keeper TokenKeeper tokenkeeper.Keeper RecordKeeper recordkeeper.Keeper NFTKeeper nftkeeper.Keeper MTKeeper mtkeeper.Keeper HTLCKeeper htlckeeper.Keeper CoinswapKeeper coinswapkeeper.Keeper ServiceKeeper servicekeeper.Keeper OracleKeeper oraclekeeper.Keeper RandomKeeper randomkeeper.Keeper FarmKeeper farmkeeper.Keeper TIBCKeeper *tibckeeper.Keeper TIBCNFTTransferKeeper tibcnfttransferkeeper.Keeper TIBCMTTransferKeeper tibcmttransferkeeper.Keeper // Ethermint keepers EvmKeeper *evmkeeper.Keeper FeeMarketKeeper feemarketkeeper.Keeper // contains filtered or unexported fields }
IrisApp 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 NewIrisApp ¶
func NewIrisApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *IrisApp
NewIrisApp returns a reference to an initialized IrisApp.
func (*IrisApp) AppCodec ¶
AppCodec returns IrisApp'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 (*IrisApp) BeginBlocker ¶
func (app *IrisApp) BeginBlocker( ctx sdk.Context, req abci.RequestBeginBlock, ) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*IrisApp) BlockedModuleAccountAddrs ¶
BlockedModuleAccountAddrs returns all the app's blocked module account addresses.
func (*IrisApp) DefaultGenesis ¶
func (app *IrisApp) DefaultGenesis() map[string]json.RawMessage
DefaultGenesis returns a default genesis from the registered AppModuleBasic's.
func (*IrisApp) EndBlocker ¶
func (app *IrisApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*IrisApp) ExportAppStateAndValidators ¶
func (app *IrisApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*IrisApp) ExportGenesis ¶
ExportGenesis returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*IrisApp) GetKey ¶
func (app *IrisApp) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*IrisApp) GetMemKey ¶
func (app *IrisApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*IrisApp) GetSubspace ¶
func (app *IrisApp) 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 (*IrisApp) GetTKey ¶
func (app *IrisApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*IrisApp) InitChainer ¶
func (app *IrisApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*IrisApp) InterfaceRegistry ¶
func (app *IrisApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns IrisApp's InterfaceRegistry
func (*IrisApp) LegacyAmino ¶
func (app *IrisApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns SimApp'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 (*IrisApp) LoadHeight ¶
LoadHeight loads a particular height
func (*IrisApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*IrisApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*IrisApp) RegisterNodeService ¶
func (*IrisApp) RegisterServices ¶
func (app *IrisApp) RegisterServices()
RegisterServices implements the Application.RegisterTxService method.
func (*IrisApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*IrisApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*IrisApp) RegisterUpgradePlans ¶
func (app *IrisApp) RegisterUpgradePlans()
RegisterUpgradePlans register a handler of upgrade plan
func (*IrisApp) SimulationManager ¶
func (app *IrisApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface