templates

package
v1.99.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	GethGenesisConsensus_Ethash = "ethash"
	GethGenesisConsensus_Clique = "clique"
)

Variables

View Source
var BesuGenesisJson = `` /* 1000-byte string literal not displayed */
View Source
var (
	ErrParsingTemplate = errors.New("failed to parse Go text template")
)
View Source
var GenesisJson = `` /* 939-byte string literal not displayed */
View Source
var InitGethScript = `` /* 219-byte string literal not displayed */

Functions

func BuildBesuGenesisJsonForNonDevChain

func BuildBesuGenesisJsonForNonDevChain(chainId string, accountAddr []string, extraData string) (string, error)

func MarshalTemplate

func MarshalTemplate(jobSpec interface{}, name, templateString string) (string, error)

MarshalTemplate Helper to marshal templates

Types

type GenesisConsensus

type GenesisConsensus = string

type GenesisJsonTemplate

type GenesisJsonTemplate struct {
	AccountAddr []string
	ChainId     string
	Consensus   GenesisConsensus
	ExtraData   string
}

func (GenesisJsonTemplate) String

func (c GenesisJsonTemplate) String() (string, error)

String representation of the job

type NethermindPoAGenesisJsonTemplate

type NethermindPoAGenesisJsonTemplate struct {
	AccountAddr []string
	ChainId     string
	ExtraData   string
}

func (NethermindPoAGenesisJsonTemplate) String

Jump to

Keyboard shortcuts

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