app

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 78 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bech32Prefix = "mito"

	Bech32PrefixAccAddr  = Bech32Prefix
	Bech32PrefixAccPub   = Bech32Prefix + "pub"
	Bech32PrefixValAddr  = Bech32Prefix + "valoper"
	Bech32PrefixValPub   = Bech32Prefix + "valoperpub"
	Bech32PrefixConsAddr = Bech32Prefix + "valcons"
	Bech32PrefixConsPub  = Bech32Prefix + "valconspub"

	Bip44CoinType uint32 = 60 // NOTE: to generate a private key same as Ethereum
	Bip44Purpose  uint32 = 44
)

Variables

View Source
var (
	// Upgrades defines the upgrade handlers and store loaders for the application.
	// New upgrades should be added to this slice after they are implemented.
	Upgrades = []upgrades.Upgrade{}

	// Forks are for hard forks that breaks backward compatibility.
	Forks = []upgrades.Fork{}
)
View Source
var DefaultNodeHome string

Functions

func AppConfig

func AppConfig() depinject.Config

AppConfig returns the default app depinject config.

func SetBech32Prefixes

func SetBech32Prefixes(config *sdk.Config)

SetBech32Prefixes sets the global prefixes to be used when serializing addresses and public keys to Bech32 strings.

func SetBip44CoinType

func SetBip44CoinType(config *sdk.Config)

SetBip44CoinType sets the global coin type to be used in hierarchical deterministic wallets.

func SetupConfig

func SetupConfig()

SetupConfig sets up the Cosmos SDK configuration to be compatible with the semantics of ethereum.

Types

type ABCIWrappedApplication

type ABCIWrappedApplication struct {
	servertypes.Application
	// contains filtered or unexported fields
}

func NewABCIWrappedApplication

func NewABCIWrappedApplication(app *MitosisApp) *ABCIWrappedApplication

func (ABCIWrappedApplication) ApplySnapshotChunk

func (ABCIWrappedApplication) CheckTx

func (ABCIWrappedApplication) Commit

func (ABCIWrappedApplication) ExtendVote

func (ABCIWrappedApplication) FinalizeBlock

func (ABCIWrappedApplication) Info

func (ABCIWrappedApplication) InitChain

func (ABCIWrappedApplication) ListSnapshots

func (ABCIWrappedApplication) LoadSnapshotChunk

func (ABCIWrappedApplication) OfferSnapshot

func (ABCIWrappedApplication) PrepareProposal

func (ABCIWrappedApplication) ProcessProposal

func (ABCIWrappedApplication) Query

func (ABCIWrappedApplication) VerifyVoteExtension

type CometAPI

type CometAPI interface {
	// Validators returns the cometBFT validators at the given height.
	Validators(ctx context.Context, height int64) (*cmttypes.ValidatorSet, error)
}

func NewCometAPI

func NewCometAPI(cl rpcclient.Client, chainID string) CometAPI

type EmptyAppOptions

type EmptyAppOptions struct{}

func (EmptyAppOptions) Get

func (ao EmptyAppOptions) Get(_ string) interface{}

type MitosisApp

type MitosisApp struct {
	*runtime.App

	// Cosmos SDK keepers
	AccountKeeper         authkeeper.AccountKeeper
	BankKeeper            bankkeeper.Keeper
	SlashingKeeper        slashingkeeper.Keeper
	UpgradeKeeper         *upgradekeeper.Keeper
	ConsensusParamsKeeper consensusparamskeeper.Keeper
	EvidenceKeeper        evidencekeeper.Keeper

	// Octane keepers
	EVMEngKeeper *evmengkeeper.Keeper

	// Mitosis keepers
	EVMValKeeper *evmvalkeeper.Keeper
	EVMGovKeeper *evmgovkeeper.Keeper
	// contains filtered or unexported fields
}

func NewMitosisApp

func NewMitosisApp(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	engineCl ethclient.EngineClient,
	addrProvider ValidatorAddressProvider,
	engineBuildDelay time.Duration,
	engineBuildOptimistic bool,
	govEntrypointContractAddr mitotypes.EthAddress,
	loadLatest bool,
	appOpts servertypes.AppOptions,
	baseAppOpts ...func(*baseapp.BaseApp),
) (*MitosisApp, error)

func (*MitosisApp) ExportAppStateAndValidators

func (app *MitosisApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)

ExportAppStateAndValidators exports the state of the application for a genesis file.

func (*MitosisApp) LegacyAmino

func (app *MitosisApp) LegacyAmino() *codec.LegacyAmino

func (*MitosisApp) PreBlocker

PreBlocker application updates every pre block.

func (*MitosisApp) RegisterTendermintService

func (app *MitosisApp) RegisterTendermintService(clientCtx client.Context)

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*MitosisApp) SimulationManager

func (app *MitosisApp) SimulationManager() *module.SimulationManager

type NoVoteExtensionProvider

type NoVoteExtensionProvider struct{}

func (NoVoteExtensionProvider) PrepareVotes

func (n NoVoteExtensionProvider) PrepareVotes(ctx context.Context, commit abci.ExtendedCommitInfo, commitHeight uint64) ([]sdk.Msg, error)

type ValidatorAddressProvider

type ValidatorAddressProvider struct {
	Addr common.Address
}

func (ValidatorAddressProvider) LocalAddress

func (s ValidatorAddressProvider) LocalAddress() common.Address

func (ValidatorAddressProvider) LocalFeeRecipient

func (s ValidatorAddressProvider) LocalFeeRecipient() common.Address

func (ValidatorAddressProvider) VerifyFeeRecipient

func (s ValidatorAddressProvider) VerifyFeeRecipient(_ common.Address) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL