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
Click to show internal directories.
Click to hide internal directories.