Documentation ¶
Index ¶
- Variables
- func GetMaccPerms() map[string][]string
- func NewDefaultGenesisState() simapp.GenesisState
- func NewTestGenesisState(codec codec.Codec) simapp.GenesisState
- func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)
- type XteApp
- func (app *XteApp) AppCodec() codec.Codec
- func (app *XteApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *XteApp) BlockedAddrs() map[string]bool
- func (app *XteApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *XteApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *XteApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *XteApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *XteApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *XteApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
- func (app *XteApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *XteApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *XteApp) LegacyAmino() *codec.LegacyAmino
- func (app *XteApp) LoadHeight(height int64) error
- func (app *XteApp) ModuleAccountAddrs() map[string]bool
- func (app *XteApp) Name() string
- func (app *XteApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *XteApp) RegisterNodeService(clientCtx client.Context)
- func (app *XteApp) RegisterTendermintService(clientCtx client.Context)
- func (app *XteApp) RegisterTxService(clientCtx client.Context)
- func (app *XteApp) RegisterUpgradeHandlers()
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string // 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([]govclient.ProposalHandler{ paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.LegacyProposalHandler, upgradeclient.LegacyCancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, }), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, authzmodule.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, evm.AppModuleBasic{}, feemarket.AppModuleBasic{}, ) )
var DefaultConsensusParams = &abci.ConsensusParams{ Block: &abci.BlockParams{ MaxBytes: 200000, MaxGas: -1, }, Evidence: &tmproto.EvidenceParams{ MaxAgeNumBlocks: 302400, MaxAgeDuration: 504 * time.Hour, MaxBytes: 10000, }, Validator: &tmproto.ValidatorParams{ PubKeyTypes: []string{ tmtypes.ABCIPubKeyTypeEd25519, }, }, }
DefaultConsensusParams defines the default Tendermint consensus params used in XteApp testing.
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() simapp.GenesisState
NewDefaultGenesisState generates the default state for the application.
func NewTestGenesisState ¶
func NewTestGenesisState(codec codec.Codec) simapp.GenesisState
NewTestGenesisState generate genesis state with single validator
Types ¶
type XteApp ¶
type XteApp struct { *baseapp.BaseApp // keepers 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 FeeGrantKeeper feegrantkeeper.Keeper AuthzKeeper authzkeeper.Keeper IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly EvidenceKeeper evidencekeeper.Keeper TransferKeeper ibctransferkeeper.Keeper // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper // Xte keepers EvmKeeper *evmkeeper.Keeper FeeMarketKeeper feemarketkeeper.Keeper // contains filtered or unexported fields }
XteApp implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.
func NewXteApp ¶
func NewXteApp( 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), ) *XteApp
NewXteApp returns a reference to a new initialized Xte application.
func Setup ¶
func Setup(isCheckTx bool, patchGenesis func(*XteApp, simapp.GenesisState) simapp.GenesisState) *XteApp
Setup initializes a new XteApp. A Nop logger is set in XteApp.
func SetupWithDB ¶
func SetupWithDB(isCheckTx bool, patchGenesis func(*XteApp, simapp.GenesisState) simapp.GenesisState, db dbm.DB) *XteApp
SetupWithDB initializes a new XteApp. A Nop logger is set in XteApp.
func (*XteApp) AppCodec ¶
AppCodec returns XteApp'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 (*XteApp) BeginBlocker ¶
func (app *XteApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker updates every begin block
func (*XteApp) BlockedAddrs ¶
BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
func (*XteApp) EndBlocker ¶
func (app *XteApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker updates every end block
func (*XteApp) ExportAppStateAndValidators ¶
func (app *XteApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*XteApp) GetKey ¶
func (app *XteApp) 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 (*XteApp) GetMemKey ¶
func (app *XteApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*XteApp) GetSubspace ¶
func (app *XteApp) 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 (*XteApp) GetTKey ¶
func (app *XteApp) 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 (*XteApp) InitChainer ¶
func (app *XteApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer updates at chain initialization
func (*XteApp) InterfaceRegistry ¶
func (app *XteApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns XteApp's InterfaceRegistry
func (*XteApp) LegacyAmino ¶
func (app *XteApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns XteApp'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 (*XteApp) LoadHeight ¶
LoadHeight loads state at a particular height
func (*XteApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*XteApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*XteApp) RegisterNodeService ¶
RegisterNodeService registers the node gRPC service on the provided application gRPC query router.
func (*XteApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*XteApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*XteApp) RegisterUpgradeHandlers ¶
func (app *XteApp) RegisterUpgradeHandlers()