l2contractdeployer

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config holds the properties that configure the package

func NewContractDeployerConfig

func NewContractDeployerConfig(opts ...Option) *Config

type ContractDeployer

type ContractDeployer struct {
	// contains filtered or unexported fields
}

func NewDockerContractDeployer

func NewDockerContractDeployer(cfg *Config) (*ContractDeployer, error)

func (*ContractDeployer) GetID added in v0.12.0

func (n *ContractDeployer) GetID() string

func (*ContractDeployer) PrintLogs added in v0.12.0

func (n *ContractDeployer) PrintLogs(cli *client.Client)

func (*ContractDeployer) Start

func (n *ContractDeployer) Start() error

func (*ContractDeployer) WaitForFinish added in v0.11.0

func (n *ContractDeployer) WaitForFinish() error

type Option

type Option = func(c *Config)

Option is a function that applies configs to a Config Object

func WithDockerImage

func WithDockerImage(s string) Option

func WithHocPKString

func WithHocPKString(s string) Option

func WithL1Host

func WithL1Host(s string) Option

func WithL1Port

func WithL1Port(i int) Option

func WithL1PrivateKey

func WithL1PrivateKey(s string) Option

func WithL2Host

func WithL2Host(s string) Option

func WithL2PrivateKey

func WithL2PrivateKey(s string) Option

func WithL2WSPort

func WithL2WSPort(i int) Option

func WithMessageBusContractAddress

func WithMessageBusContractAddress(s string) Option

func WithPocPKString

func WithPocPKString(s string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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