deployer

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

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

func NewDeployer

func NewDeployer(enclave string, opts ...DeployerOption) *Deployer

func (*Deployer) ExtractData

func (d *Deployer) ExtractData(ctx context.Context) (*DeployerData, error)

ExtractData downloads and parses the op-deployer state

type DeployerData

type DeployerData struct {
	Wallets WalletList     `json:"wallets"`
	State   *DeployerState `json:"state"`
}

type DeployerOption

type DeployerOption func(*Deployer)

func WithArtifactName

func WithArtifactName(name string) DeployerOption

func WithGenesisArtifactName

func WithGenesisArtifactName(name string) DeployerOption

func WithMnemonicsName

func WithMnemonicsName(name string) DeployerOption

func WithStateName

func WithStateName(name string) DeployerOption

func WithWalletsName

func WithWalletsName(name string) DeployerOption

type DeployerState

type DeployerState struct {
	Deployments map[string]DeploymentState `json:"l2s"`
	Addresses   DeploymentAddresses        `json:"superchain"`
}

type DeploymentAddresses

type DeploymentAddresses map[string]types.Address

DeploymentAddresses maps contract names to their addresses

type DeploymentState

type DeploymentState struct {
	Addresses DeploymentAddresses `json:"addresses"`
	Wallets   WalletList          `json:"wallets"`
}

type DeploymentStateAddresses

type DeploymentStateAddresses map[string]DeploymentAddresses

DeploymentStateAddresses maps chain IDs to their contract addresses

type StateFile

type StateFile struct {
	OpChainDeployments        []map[string]interface{} `json:"opChainDeployments"`
	SuperChainDeployment      map[string]interface{}   `json:"superchainDeployment"`
	ImplementationsDeployment map[string]interface{}   `json:"implementationsDeployment"`
}

StateFile represents the structure of the state.json file

type Wallet

type Wallet struct {
	Address    types.Address `json:"address"`
	PrivateKey string        `json:"private_key"`
	Name       string        `json:"name"`
}

Wallet represents a wallet with optional private key and name

type WalletList

type WalletList []*Wallet

WalletList holds a list of wallets

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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