aura

package
v0.0.2-rc-2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiModuleName = "AuraApi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module implements the AuraApi Runtime API definition.

For more information about API definition, see: https://github.com/paritytech/polkadot-sdk/blob/master/substrate/primitives/consensus/aura/src/lib.rs#L86

func New

func New(aura aura.AuraModule, logger log.Logger) Module

func (Module) Authorities

func (m Module) Authorities() int64

Authorities returns current set of AuRa (Authority Round) authorities. Returns a pointer-size of the SCALE-encoded set of authorities.

func (Module) Item

func (m Module) Item() primitives.ApiItem

Item returns the first 8 bytes of the Blake2b hash of the name and version of the api module.

func (Module) Metadata

func (m Module) Metadata() primitives.RuntimeApiMetadata

Metadata returns the runtime api metadata of the module.

func (Module) Name

func (m Module) Name() string

Name returns the name of the api module.

func (Module) SlotDuration

func (m Module) SlotDuration() int64

SlotDuration returns the slot duration for AuRa. Returns a pointer-size of the SCALE-encoded slot duration

Jump to

Keyboard shortcuts

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