Documentation
¶
Index ¶
- Constants
- Variables
- func GenesisStateWithValSet(app *Haqq, genesisState types.GenesisState, valSet *cmttypes.ValidatorSet, ...) types.GenesisState
- func GetMaccPerms() map[string][]string
- func ObservabilityViews() (views []*view.View)
- func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)
- func SetupTestingApp(chainID string) func() (ibctesting.TestingApp, map[string]json.RawMessage)
- func StoreKeys() (map[string]*storetypes.KVStoreKey, map[string]*storetypes.MemoryStoreKey, ...)
- type Haqq
- func (app *Haqq) AppCodec() codec.Codec
- func (app *Haqq) AutoCliOpts() autocli.AppOptions
- func (app *Haqq) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (app *Haqq) BlockedAddrs() map[string]bool
- func (app *Haqq) Close() error
- func (app *Haqq) DefaultGenesis() haqqtypes.GenesisState
- func (app *Haqq) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- func (app *Haqq) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *Haqq) FinalizeBlock(req *abci.RequestFinalizeBlock) (res *abci.ResponseFinalizeBlock, err error)
- func (app *Haqq) GetBaseApp() *baseapp.BaseApp
- func (app *Haqq) GetIBCKeeper() *ibckeeper.Keeper
- func (app *Haqq) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *Haqq) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *Haqq) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *Haqq) GetStakingKeeper() ibctestingtypes.StakingKeeper
- func (app *Haqq) GetStakingKeeperSDK() stakingkeeper.Keeper
- func (app *Haqq) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *Haqq) GetTKey(storeKey string) *storetypes.TransientStoreKey
- func (app *Haqq) GetTxConfig() client.TxConfig
- func (app *Haqq) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (app *Haqq) InterfaceRegistry() types.InterfaceRegistry
- func (app *Haqq) LegacyAmino() *codec.LegacyAmino
- func (app *Haqq) LoadHeight(height int64) error
- func (app *Haqq) ModuleAccountAddrs() map[string]bool
- func (app *Haqq) Name() string
- func (app *Haqq) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
- func (app *Haqq) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *Haqq) RegisterNodeService(clientCtx client.Context, cfg config.Config)
- func (app *Haqq) RegisterTendermintService(clientCtx client.Context)
- func (app *Haqq) RegisterTxService(clientCtx client.Context)
- func (app *Haqq) SimulationManager() *module.SimulationManager
Constants ¶
const ( // Name defines the application binary name Name = "haqqd" MainnetChainID = "haqq_11235" )
const PremintAmount = 20_000_000_000
Variables ¶
var ( // MinGasPrices defines 20B aISLM as the minimum gas price value on the fee market module. MinGasPrices = math.LegacyNewDec(20_000_000_000) // MinGasMultiplier defines the min gas multiplier value on the fee market module. // 50% of the leftover gas will be refunded MinGasMultiplier = math.LegacyNewDecWithPrec(5, 1) )
var DefaultConsensusParams = &cmtproto.ConsensusParams{ Block: &cmtproto.BlockParams{ MaxBytes: 200000, MaxGas: -1, }, Evidence: &cmtproto.EvidenceParams{ MaxAgeNumBlocks: 302400, MaxAgeDuration: 504 * time.Hour, MaxBytes: 10000, }, Validator: &cmtproto.ValidatorParams{ PubKeyTypes: []string{ cmttypes.ABCIPubKeyTypeEd25519, }, }, }
DefaultConsensusParams defines the default Tendermint consensus params used in Evmos testing.
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string )
var DefaultTestingAppInit func(chainID string) func() (ibctesting.TestingApp, map[string]json.RawMessage) = SetupTestingApp
DefaultTestingAppInit defines the IBC application used for testing
Functions ¶
func GenesisStateWithValSet ¶ added in v1.3.0
func GenesisStateWithValSet(app *Haqq, genesisState types.GenesisState, valSet *cmttypes.ValidatorSet, genAccs []authtypes.GenesisAccount, balances ...banktypes.Balance, ) types.GenesisState
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func ObservabilityViews ¶
func RegisterSwaggerAPI ¶
RegisterSwaggerAPI registers swagger route with API Server
func SetupTestingApp ¶
func SetupTestingApp(chainID string) func() (ibctesting.TestingApp, map[string]json.RawMessage)
SetupTestingApp initializes the IBC-go testing application need to keep this design to comply with the ibctesting SetupTestingApp func and be able to set the chainID for the tests properly
func StoreKeys ¶ added in v1.9.0
func StoreKeys() ( map[string]*storetypes.KVStoreKey, map[string]*storetypes.MemoryStoreKey, map[string]*storetypes.TransientStoreKey, )
StoreKeys returns the application store keys, the EVM transient store keys and the memory store keys
Types ¶
type Haqq ¶
type Haqq struct {
*baseapp.BaseApp
// keepers
AccountKeeper authkeeper.AccountKeeper
BankKeeper bankkeeper.Keeper
CapabilityKeeper *capabilitykeeper.Keeper
StakingKeeper stakingkeeper.Keeper
SlashingKeeper slashingkeeper.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
ICAHostKeeper icahostkeeper.Keeper
PacketForwardKeeper *packetforwardkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
TransferKeeper transferkeeper.Keeper
ConsensusParamsKeeper consensusparamkeeper.Keeper
// make scoped keepers public for test purposes
ScopedIBCKeeper capabilitykeeper.ScopedKeeper
ScopedTransferKeeper capabilitykeeper.ScopedKeeper
// Ethermint keepers
EvmKeeper *evmkeeper.Keeper
FeeMarketKeeper feemarketkeeper.Keeper
// Evmos keepers
Erc20Keeper erc20keeper.Keeper
EpochsKeeper epochskeeper.Keeper
VestingKeeper vestingkeeper.Keeper
LiquidVestingKeeper liquidvestingkeeper.Keeper
// Haqq keepers
CoinomicsKeeper coinomicskeeper.Keeper
DaoKeeper ucdaokeeper.Keeper
BasicModuleManager module.BasicManager
// contains filtered or unexported fields
}
Haqq implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of CometBFT consensus.
func NewHaqq ¶
func NewHaqq( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *Haqq
NewHaqq returns a reference to a new initialized Ethermint application.
func Setup ¶
func Setup( isCheckTx bool, feemarketGenesis *feemarkettypes.GenesisState, chainID string, ) (*Haqq, []byte)
Setup initializes a new Haqq. A Nop logger is set in Haqq.
func (*Haqq) AppCodec ¶
AppCodec returns Haqq'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 (*Haqq) AutoCliOpts ¶ added in v1.9.0
func (app *Haqq) AutoCliOpts() autocli.AppOptions
AutoCliOpts returns the autocli options for the app.
func (*Haqq) BeginBlocker ¶
BeginBlocker runs the CometBFT ABCI BeginBlock logic. It executes state changes at the beginning of the new block for every registered module. If there is a registered fork at the current height, BeginBlocker will schedule the upgrade plan and perform the state migration (if any).
func (*Haqq) BlockedAddrs ¶
BlockedAddrs returns all the addresses that are not allowed to receive external tokens.
These include:
- module accounts
- Ethereum's native precompiles
- the static precompiled contracts available through evmOS
func (*Haqq) DefaultGenesis ¶ added in v1.9.0
func (app *Haqq) DefaultGenesis() haqqtypes.GenesisState
DefaultGenesis returns a default genesis from the registered AppModuleBasic's.
func (*Haqq) EndBlocker ¶
EndBlocker updates every end block
func (*Haqq) ExportAppStateAndValidators ¶
func (app *Haqq) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*Haqq) FinalizeBlock ¶ added in v1.9.0
func (app *Haqq) FinalizeBlock(req *abci.RequestFinalizeBlock) (res *abci.ResponseFinalizeBlock, err error)
The DeliverTx method is intentionally decomposed to calculate the transactions per second.
func (*Haqq) GetBaseApp ¶
GetBaseApp implements the TestingApp interface.
func (*Haqq) GetIBCKeeper ¶
GetIBCKeeper implements the TestingApp interface.
func (*Haqq) GetKey ¶
func (app *Haqq) 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 (*Haqq) GetMemKey ¶
func (app *Haqq) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*Haqq) GetScopedIBCKeeper ¶
func (app *Haqq) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
GetScopedIBCKeeper implements the TestingApp interface.
func (*Haqq) GetStakingKeeper ¶
func (app *Haqq) GetStakingKeeper() ibctestingtypes.StakingKeeper
GetStakingKeeper implements the TestingApp interface.
func (*Haqq) GetStakingKeeperSDK ¶ added in v1.6.0
func (app *Haqq) GetStakingKeeperSDK() stakingkeeper.Keeper
GetStakingKeeperSDK implements the TestingApp interface.
func (*Haqq) GetSubspace ¶
func (app *Haqq) 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 (*Haqq) GetTKey ¶
func (app *Haqq) 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 (*Haqq) GetTxConfig ¶
GetTxConfig implements the TestingApp interface.
func (*Haqq) InitChainer ¶
func (app *Haqq) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
InitChainer updates at chain initialization
func (*Haqq) InterfaceRegistry ¶
func (app *Haqq) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns Evmos's InterfaceRegistry
func (*Haqq) LegacyAmino ¶
func (app *Haqq) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns Haqq'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 (*Haqq) LoadHeight ¶
LoadHeight loads state at a particular height
func (*Haqq) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*Haqq) PreBlocker ¶ added in v1.9.0
func (app *Haqq) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
func (*Haqq) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*Haqq) RegisterNodeService ¶ added in v1.6.0
RegisterNodeService registers the node gRPC service on the provided application gRPC query router.
func (*Haqq) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*Haqq) RegisterTxService ¶
func (*Haqq) SimulationManager ¶
func (app *Haqq) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface