Documentation ¶
Index ¶
- func WriteNetworkConfigToDisk(cfg *Config) error
- type Config
- type DockerNode
- type NetworkConfig
- type Node
- type Option
- func WithBatchInterval(d string) Option
- func WithCoinbase(s string) Option
- func WithDebugNamespaceEnabled(b bool) Option
- func WithEdgelessDBImage(s string) Option
- func WithEnclaveDebug(b bool) Option
- func WithEnclaveImage(s string) Option
- func WithEnclaveWSPort(i int) Option
- func WithGenesis(b bool) Option
- func WithHostHTTPPort(i int) Option
- func WithHostID(s string) Option
- func WithHostImage(s string) Option
- func WithHostP2PHost(s string) Option
- func WithHostP2PPort(i int) Option
- func WithHostPublicP2PAddr(s string) Option
- func WithHostWSPort(i int) Option
- func WithInMemoryHostDB(b bool) Option
- func WithInboundP2PDisabled(b bool) Option
- func WithL1BlockTime(d time.Duration) Option
- func WithL1ChainID(i int) Option
- func WithL1Start(blockHash string) Option
- func WithL1WebsocketURL(addr string) Option
- func WithLogLevel(i int) Option
- func WithManagementContractAddress(s string) Option
- func WithMaxBatchInterval(d string) Option
- func WithMessageBusContractAddress(s string) Option
- func WithNodeName(s string) Option
- func WithNodeType(nodeType string) Option
- func WithObscuroGenesis(g string) Option
- func WithPCCSAddr(s string) Option
- func WithPrivateKey(s string) Option
- func WithProfiler(b bool) Option
- func WithRollupInterval(d string) Option
- func WithSGXEnabled(b bool) Option
- func WithSequencerID(s string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteNetworkConfigToDisk ¶ added in v0.11.0
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds the properties that configure the package
func NewNodeConfig ¶
func (*Config) ToEnclaveConfig ¶ added in v0.14.0
func (c *Config) ToEnclaveConfig() *config.EnclaveConfig
func (*Config) ToHostConfig ¶ added in v0.14.0
func (c *Config) ToHostConfig() *config.HostInputConfig
func (*Config) UpdateNodeConfig ¶ added in v0.14.0
type DockerNode ¶
type DockerNode struct {
// contains filtered or unexported fields
}
func NewDockerNode ¶
func NewDockerNode(cfg *Config) *DockerNode
func (*DockerNode) Start ¶
func (d *DockerNode) Start() error
func (*DockerNode) Stop ¶ added in v0.14.0
func (d *DockerNode) Stop() error
func (*DockerNode) Upgrade ¶ added in v0.11.0
func (d *DockerNode) Upgrade(networkCfg *NetworkConfig) error
type NetworkConfig ¶ added in v0.11.0
type NetworkConfig struct { ManagementContractAddress string MessageBusAddress string L1StartHash string // L1 block hash from which to process for L2 data (mgmt contract deploy block) }
NetworkConfig is key network information required to start a node connecting to that network. We persist it as a json file on our testnet hosts so that they can read it off when restart/upgrading
func ReadNetworkConfigFromDisk ¶ added in v0.11.0
func ReadNetworkConfigFromDisk() (*NetworkConfig, error)
type Node ¶
type Node interface { Start() error Stop() error Upgrade(networkCfg *NetworkConfig) error }
type Option ¶
type Option = func(c *Config)
Option is a function that applies configs to a Config Object
func WithBatchInterval ¶ added in v0.18.0
func WithCoinbase ¶ added in v0.18.0
func WithDebugNamespaceEnabled ¶ added in v0.12.0
func WithEdgelessDBImage ¶
func WithEnclaveDebug ¶
func WithEnclaveImage ¶
func WithEnclaveWSPort ¶
func WithGenesis ¶
func WithHostHTTPPort ¶
func WithHostID ¶
func WithHostImage ¶
func WithHostP2PHost ¶
func WithHostP2PPort ¶
func WithHostPublicP2PAddr ¶
func WithHostWSPort ¶
func WithInMemoryHostDB ¶ added in v0.15.0
func WithInboundP2PDisabled ¶ added in v0.17.0
func WithL1BlockTime ¶ added in v0.18.0
func WithL1ChainID ¶ added in v0.18.0
func WithL1Start ¶ added in v0.12.0
func WithL1WebsocketURL ¶ added in v0.17.0
func WithLogLevel ¶ added in v0.17.0
func WithMaxBatchInterval ¶ added in v0.18.0
func WithNodeName ¶
func WithNodeType ¶
func WithObscuroGenesis ¶ added in v0.18.0
func WithPCCSAddr ¶
func WithPrivateKey ¶
func WithProfiler ¶ added in v0.14.0
func WithRollupInterval ¶ added in v0.18.0
func WithSGXEnabled ¶
func WithSequencerID ¶
Click to show internal directories.
Click to hide internal directories.