Documentation ¶
Index ¶
- Constants
- func LoadCometFilePV(file string) (crypto.PrivKey, error)
- func NewCmtLogger(ctx context.Context, levelStr string) (cmtlog.Logger, error)
- func Rollback(ctx context.Context, cfg Config, rCfg RollbackConfig) error
- func Run(ctx context.Context, cfg Config) error
- func Start(ctx context.Context, cfg Config) (<-chan error, func(context.Context) error, error)
- type App
- type Config
- type RollbackConfig
Constants ¶
View Source
const Name = "halo"
Variables ¶
This section is empty.
Functions ¶
func LoadCometFilePV ¶
LoadCometFilePV loads a CometBFT privval file and returns the private key.
Types ¶
type App ¶
type App struct { *runtime.App // keepers AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper StakingKeeper *stakingkeeper.Keeper SlashingKeeper slashingkeeper.Keeper DistrKeeper distrkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper EVMEngKeeper *evmengkeeper.Keeper AttestKeeper *attestkeeper.Keeper ValSyncKeeper *valsynckeeper.Keeper RegistryKeeper registrykeeper.Keeper EvidenceKeeper evidencekeeper.Keeper UpgradeKeeper *upgradekeeper.Keeper SlashingEventProc evmslashing.EventProcessor StakingEventProc evmstaking.EventProcessor UpgradeEventProc evmupgrade.EventProcessor // contains filtered or unexported fields }
App 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 (App) ClientContext ¶
ClientContext returns a new client context with the app's codec and tx config.
func (App) ExportAppStateAndValidators ¶
func (App) ExportAppStateAndValidators(_ bool, _, _ []string) (servertypes.ExportedApp, error)
func (App) LegacyAmino ¶
func (App) LegacyAmino() *codec.LegacyAmino
func (App) SetCometAPI ¶
SetCometAPI sets the comet API client. TODO(corver): Figure out how to use depinject to set this.
func (App) SimulationManager ¶
func (App) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface.
type Config ¶
Config wraps the halo (app) and comet (client) configurations.
func (Config) BackendType ¶
func (c Config) BackendType() dbm.BackendType
BackendType returns the halo config backend type or the comet backend type otherwise.
type RollbackConfig ¶
type RollbackConfig struct {
RemoveCometBlock bool
}
func DefaultRollbackConfig ¶
func DefaultRollbackConfig() RollbackConfig
Click to show internal directories.
Click to hide internal directories.