Documentation ¶
Index ¶
- Constants
- type AppModule
- func (AppModule) ConsensusVersion() uint64
- func (AppModule) DefaultGenesis() json.RawMessage
- func (am AppModule) EndBlock(ctx context.Context) ([]appmodulev2.ValidatorUpdate, error)
- func (am AppModule) ExportGenesis(ctx context.Context) (json.RawMessage, error)
- func (am AppModule) InitGenesis(ctx context.Context, bz json.RawMessage) ([]appmodulev2.ValidatorUpdate, error)
- func (am AppModule) IsAppModule()
- func (am AppModule) IsOnePerModuleType()
- func (am AppModule) Name() string
- func (am AppModule) RegisterInterfaces(registry.InterfaceRegistrar)
- func (AppModule) ValidateGenesis(_ json.RawMessage) error
- type DepInjectInput
- type DepInjectOutput
Constants ¶
const ( // ConsensusVersion defines the current x/beacon module consensus version. ConsensusVersion = 1 // ModuleName is the module name constant used in many places. ModuleName = "beacon" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppModule ¶
type AppModule struct {
// contains filtered or unexported fields
}
AppModule implements an application module for the evm module.
func NewAppModule ¶
NewAppModule creates a new AppModule object.
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) DefaultGenesis ¶
func (AppModule) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the beacon module.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock( ctx context.Context, ) ([]appmodulev2.ValidatorUpdate, error)
EndBlock returns the validator set updates from the beacon state.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the evm module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis( ctx context.Context, bz json.RawMessage, ) ([]appmodulev2.ValidatorUpdate, error)
InitGenesis performs genesis initialization for the beacon module.
func (AppModule) IsAppModule ¶
func (am AppModule) IsAppModule()
IsAppModule implements the appmodule.AppModule interface.
func (AppModule) IsOnePerModuleType ¶
func (am AppModule) IsOnePerModuleType()
IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (AppModule) RegisterInterfaces ¶
func (am AppModule) RegisterInterfaces(registry.InterfaceRegistrar)
RegisterInterfaces registers the module's interface types.
func (AppModule) ValidateGenesis ¶
func (AppModule) ValidateGenesis( _ json.RawMessage, ) error
ValidateGenesis performs genesis state validation for the evm module.
type DepInjectInput ¶
type DepInjectInput struct { depinject.In AppOpts servertypes.AppOptions Environment appmodule.Environment BeaconChainConfig *params.BeaconChainConfig }
DepInjectInput is the input for the dep inject framework.
type DepInjectOutput ¶
DepInjectOutput is the output for the dep inject framework.
func ProvideModule ¶
func ProvideModule(in DepInjectInput) DepInjectOutput
ProvideModule is a function that provides the module to the application.
Directories ¶
Path | Synopsis |
---|---|
api
|
|
module/v1alpha1
Code generated by protoc-gen-go-pulsar.
|
Code generated by protoc-gen-go-pulsar. |