beacon

package
v0.1.1-experimental.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
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

func NewAppModule(
	keeper *keeper.Keeper,
) AppModule

NewAppModule creates a new AppModule object.

func (AppModule) ConsensusVersion

func (AppModule) ConsensusVersion() uint64

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

func (am AppModule) ExportGenesis(
	ctx context.Context,
) (json.RawMessage, error)

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) Name

func (am AppModule) Name() string

Name is the name of this module.

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

type DepInjectOutput struct {
	depinject.Out

	Keeper *keeper.Keeper
	Module appmodule.AppModule
}

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.

Jump to

Keyboard shortcuts

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