core

package
v0.8.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package core holds core protocol types and constants

Index

Constants

View Source
const SnapshotMajorFormat = "snapshot-major-block-%09d.bpt"
View Source
const SnapshotVersion1 = 1

Variables

View Source
var SnapshotMajorRegexp = regexp.MustCompile(`snapshot-major-block-\d+.bpt`)

Functions

This section is empty.

Types

type GlobalValues

type GlobalValues struct {
	Oracle  *protocol.AcmeOracle        `json:"oracle,omitempty" form:"oracle" query:"oracle" validate:"required"`
	Globals *protocol.NetworkGlobals    `json:"globals,omitempty" form:"globals" query:"globals" validate:"required"`
	Network *protocol.NetworkDefinition `json:"network,omitempty" form:"network" query:"network" validate:"required"`
	// contains filtered or unexported fields
}

func (*GlobalValues) Copy

func (v *GlobalValues) Copy() *GlobalValues

func (*GlobalValues) CopyAsInterface

func (v *GlobalValues) CopyAsInterface() interface{}

func (*GlobalValues) Equal

func (v *GlobalValues) Equal(u *GlobalValues) bool

func (*GlobalValues) FormatGlobals

func (g *GlobalValues) FormatGlobals() protocol.DataEntry

func (*GlobalValues) FormatNetwork

func (g *GlobalValues) FormatNetwork() protocol.DataEntry

func (*GlobalValues) FormatOracle

func (g *GlobalValues) FormatOracle() protocol.DataEntry

func (*GlobalValues) Load

func (g *GlobalValues) Load(net *config.Network, getState getStateFunc) error

func (*GlobalValues) ParseGlobals

func (g *GlobalValues) ParseGlobals(entry protocol.DataEntry) error

func (*GlobalValues) ParseNetwork

func (g *GlobalValues) ParseNetwork(entry protocol.DataEntry) error

func (*GlobalValues) ParseOracle

func (g *GlobalValues) ParseOracle(entry protocol.DataEntry) error

func (*GlobalValues) Store

func (g *GlobalValues) Store(net *config.Network, getState getStateFunc, putState putStateFunc) error

Jump to

Keyboard shortcuts

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