container

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagementContractAddressName = "managementContractAddress"
)

Flag names.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig() (*config.EnclaveConfig, error)

ParseConfig returns a config.EnclaveConfig based on either the file identified by the `config` flag, or the flags with specific defaults (if the `config` flag isn't specified).

Types

type EnclaveConfigToml

type EnclaveConfigToml struct {
	HostID                    string
	HostAddress               string
	Address                   string
	NodeType                  string
	L1ChainID                 int64
	ObscuroChainID            int64
	WillAttest                bool
	ValidateL1Blocks          bool
	ManagementContractAddress string
	LogLevel                  int
	LogPath                   string
	UseInMemoryDB             bool
	GenesisJSON               string
	EdgelessDBHost            string
	SqliteDBPath              string
	ProfilerEnabled           bool
	MinGasPrice               int64
	MessageBusAddress         string
	SequencerID               string
	ObscuroGenesis            string
	DebugNamespaceEnabled     bool
	MaxBatchSize              uint64
	MaxRollupSize             uint64
	GasPaymentAddress         string
	BaseFee                   uint64
	GasLimit                  uint64
}

EnclaveConfigToml is the structure that an enclave's .toml config is parsed into.

type EnclaveContainer

type EnclaveContainer struct {
	Enclave   common.Enclave
	RPCServer *enclave.RPCServer
	Logger    gethlog.Logger
}

func NewEnclaveContainerFromConfig

func NewEnclaveContainerFromConfig(config *config.EnclaveConfig) *EnclaveContainer

NewEnclaveContainerFromConfig wires up the components of the Enclave and its RPC server. Manages their lifecycle/monitors their status

func NewEnclaveContainerWithLogger

func NewEnclaveContainerWithLogger(config *config.EnclaveConfig, logger gethlog.Logger) *EnclaveContainer

NewEnclaveContainerWithLogger is useful for testing etc.

func (*EnclaveContainer) Start

func (e *EnclaveContainer) Start() error

func (*EnclaveContainer) Stop

func (e *EnclaveContainer) Stop() error

Jump to

Keyboard shortcuts

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