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 WithPCCSAddr(s string) Option
- func WithPostgresDBHost(g string) Option
- func WithPrivateKey(s string) Option
- func WithProfiler(b bool) Option
- func WithRollupInterval(d string) Option
- func WithSGXEnabled(b bool) Option
- func WithSequencerP2PAddr(s string) Option
- func WithTenGenesis(g string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds the properties that configure the package
func NewNodeConfig ¶
func (*Config) ToEnclaveConfig ¶
func (c *Config) ToEnclaveConfig() *config.EnclaveConfig
func (*Config) ToHostConfig ¶
func (c *Config) ToHostConfig() *config.HostInputConfig
func (*Config) UpdateNodeConfig ¶
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 ¶
func (d *DockerNode) Stop() error
func (*DockerNode) Upgrade ¶
func (d *DockerNode) Upgrade(networkCfg *NetworkConfig) error
type NetworkConfig ¶
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 ¶
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 ¶
func WithCoinbase ¶
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 ¶
func WithInboundP2PDisabled ¶
func WithL1BlockTime ¶
func WithL1ChainID ¶
func WithL1Start ¶
func WithL1WebsocketURL ¶
func WithLogLevel ¶
func WithMaxBatchInterval ¶
func WithNodeName ¶
func WithNodeType ¶
func WithPCCSAddr ¶
func WithPostgresDBHost ¶ added in v0.24.0
func WithPrivateKey ¶
func WithProfiler ¶
func WithRollupInterval ¶
func WithSGXEnabled ¶
func WithSequencerP2PAddr ¶ added in v0.24.1
func WithTenGenesis ¶ added in v0.26.1
Click to show internal directories.
Click to hide internal directories.