config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "blockAggregator"

Variables

View Source
var (
	GenesisTimeFlag = &cli.IntFlag{
		Name:     ModuleName + "." + "genesis-time",
		Usage:    "Set the genesis time (in seconds)",
		Category: utils.BlockAggregatorCategory,
		Value:    int(BlockAggregatorConfigDefaults.GenesisTime),
	}

	AuctionDurationFlag = &cli.IntFlag{
		Name:     ModuleName + "." + "auction-duration",
		Usage:    "Set the auction duration (in seconds)",
		Category: utils.BlockAggregatorCategory,
		Value:    int(BlockAggregatorConfigDefaults.AuctionDuration),
	}

	SlotDurationFlag = &cli.IntFlag{
		Name:     ModuleName + "." + "slot-duration",
		Usage:    "Set the slot duration (in seconds)",
		Category: utils.BlockAggregatorCategory,
		Value:    int(BlockAggregatorConfigDefaults.SlotDuration),
	}
)
View Source
var BlockAggregatorConfigDefaults = BlockAggregatorConfig{
	GenesisTime:     0,
	AuctionDuration: 0,
	SlotDuration:    12,
}

Functions

func NewCommand

func NewCommand() *cli.Command

Types

type BlockAggregatorConfig

type BlockAggregatorConfig struct {
	GenesisTime     uint64
	AuctionDuration uint64 // in seconds
	SlotDuration    uint64 // in seconds
}

Jump to

Keyboard shortcuts

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