Documentation
¶
Index ¶
- Constants
- Variables
- func AppConfig() depinject.Config
- func SetBech32Prefixes(config *sdk.Config)
- func SetBip44CoinType(config *sdk.Config)
- func SetupConfig()
- type ABCIWrappedApplication
- func (a ABCIWrappedApplication) ApplySnapshotChunk(chunk *abci.RequestApplySnapshotChunk) (*abci.ResponseApplySnapshotChunk, error)
- func (a ABCIWrappedApplication) CheckTx(tx *abci.RequestCheckTx) (*abci.ResponseCheckTx, error)
- func (a ABCIWrappedApplication) Commit() (*abci.ResponseCommit, error)
- func (a ABCIWrappedApplication) ExtendVote(ctx context.Context, vote *abci.RequestExtendVote) (*abci.ResponseExtendVote, error)
- func (a ABCIWrappedApplication) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error)
- func (a ABCIWrappedApplication) Info(info *abci.RequestInfo) (*abci.ResponseInfo, error)
- func (a ABCIWrappedApplication) InitChain(chain *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (a ABCIWrappedApplication) ListSnapshots(listSnapshots *abci.RequestListSnapshots) (*abci.ResponseListSnapshots, error)
- func (a ABCIWrappedApplication) LoadSnapshotChunk(chunk *abci.RequestLoadSnapshotChunk) (*abci.ResponseLoadSnapshotChunk, error)
- func (a ABCIWrappedApplication) OfferSnapshot(snapshot *abci.RequestOfferSnapshot) (*abci.ResponseOfferSnapshot, error)
- func (a ABCIWrappedApplication) PrepareProposal(proposal *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error)
- func (a ABCIWrappedApplication) ProcessProposal(proposal *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error)
- func (a ABCIWrappedApplication) Query(ctx context.Context, query *abci.RequestQuery) (*abci.ResponseQuery, error)
- func (a ABCIWrappedApplication) VerifyVoteExtension(extension *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error)
- type CometAPI
- type EmptyAppOptions
- type MitosisApp
- func (app *MitosisApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *MitosisApp) LegacyAmino() *codec.LegacyAmino
- func (app *MitosisApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
- func (app *MitosisApp) RegisterTendermintService(clientCtx client.Context)
- func (app *MitosisApp) SimulationManager() *module.SimulationManager
- type NoVoteExtensionProvider
- type ValidatorAddressProvider
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 SetBech32Prefixes ¶
SetBech32Prefixes sets the global prefixes to be used when serializing addresses and public keys to Bech32 strings.
func SetBip44CoinType ¶
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 (a ABCIWrappedApplication) ApplySnapshotChunk(chunk *abci.RequestApplySnapshotChunk) (*abci.ResponseApplySnapshotChunk, error)
func (ABCIWrappedApplication) CheckTx ¶
func (a ABCIWrappedApplication) CheckTx(tx *abci.RequestCheckTx) (*abci.ResponseCheckTx, error)
func (ABCIWrappedApplication) Commit ¶
func (a ABCIWrappedApplication) Commit() (*abci.ResponseCommit, error)
func (ABCIWrappedApplication) ExtendVote ¶
func (a ABCIWrappedApplication) ExtendVote(ctx context.Context, vote *abci.RequestExtendVote) (*abci.ResponseExtendVote, error)
func (ABCIWrappedApplication) FinalizeBlock ¶
func (a ABCIWrappedApplication) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error)
func (ABCIWrappedApplication) Info ¶
func (a ABCIWrappedApplication) Info(info *abci.RequestInfo) (*abci.ResponseInfo, error)
func (ABCIWrappedApplication) InitChain ¶
func (a ABCIWrappedApplication) InitChain(chain *abci.RequestInitChain) (*abci.ResponseInitChain, error)
func (ABCIWrappedApplication) ListSnapshots ¶
func (a ABCIWrappedApplication) ListSnapshots(listSnapshots *abci.RequestListSnapshots) (*abci.ResponseListSnapshots, error)
func (ABCIWrappedApplication) LoadSnapshotChunk ¶
func (a ABCIWrappedApplication) LoadSnapshotChunk(chunk *abci.RequestLoadSnapshotChunk) (*abci.ResponseLoadSnapshotChunk, error)
func (ABCIWrappedApplication) OfferSnapshot ¶
func (a ABCIWrappedApplication) OfferSnapshot(snapshot *abci.RequestOfferSnapshot) (*abci.ResponseOfferSnapshot, error)
func (ABCIWrappedApplication) PrepareProposal ¶
func (a ABCIWrappedApplication) PrepareProposal(proposal *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error)
func (ABCIWrappedApplication) ProcessProposal ¶
func (a ABCIWrappedApplication) ProcessProposal(proposal *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error)
func (ABCIWrappedApplication) Query ¶
func (a ABCIWrappedApplication) Query(ctx context.Context, query *abci.RequestQuery) (*abci.ResponseQuery, error)
func (ABCIWrappedApplication) VerifyVoteExtension ¶
func (a ABCIWrappedApplication) VerifyVoteExtension(extension *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error)
type 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 ¶
func (app *MitosisApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
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 ¶
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.