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