api

package
v0.2403.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package api defines the roothash application API for other applications.

Index

Constants

This section is empty.

Variables

View Source
var (
	// RuntimeMessageNoop is the message kind used when dispatching Noop runtime messages.
	RuntimeMessageNoop = messageKind(0)

	// RuntimeMessageStaking is the message kind used when dispatching Staking runtime messages.
	RuntimeMessageStaking = messageKind(1)

	// RuntimeMessageRegistry is the message kind used when dispatching Registry runtime messages.
	RuntimeMessageRegistry = messageKind(2)

	// RuntimeMessageGovernance is the message kind used when dispatching Governance runtime messages.
	RuntimeMessageGovernance = messageKind(3)
)

Functions

func RegisterRuntimeForFinalization

func RegisterRuntimeForFinalization(ctx *abciAPI.Context, runtimeID common.Namespace)

RegisterRuntimeForFinalization appends the given runtime to the list of runtimes considered for finalization during the end block.

func RuntimesToFinalize

func RuntimesToFinalize(ctx *abciAPI.Context) []common.Namespace

RuntimesToFinalize returns an ordered list of runtimes to be considered for finalization during the end block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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