bindgen

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindGenGeneratorBase

type BindGenGeneratorBase struct {
	MetadataOut         string
	BindingsPackageName string
	MonorepoBasePath    string
	ContractsListPath   string
	Logger              log.Logger
}

type BindGenGeneratorLocal

type BindGenGeneratorLocal struct {
	BindGenGeneratorBase
	SourceMapsList     string
	ForgeArtifactsPath string
}

func (*BindGenGeneratorLocal) GenerateBindings

func (generator *BindGenGeneratorLocal) GenerateBindings() error

type BindGenGeneratorRemote

type BindGenGeneratorRemote struct {
	BindGenGeneratorBase
	ContractDataClients struct {
		Eth contractDataClient
		Op  contractDataClient
	}
	RpcClients struct {
		Eth *ethclient.Client
		Op  *ethclient.Client
	}
	// contains filtered or unexported fields
}

func (*BindGenGeneratorRemote) CompareDeployedBytecodeWithOp

func (generator *BindGenGeneratorRemote) CompareDeployedBytecodeWithOp(contractMetadataEth *RemoteContractMetadata, deployedCodeShouldMatch bool) error

func (*BindGenGeneratorRemote) CompareDeployedBytecodeWithRpc

func (generator *BindGenGeneratorRemote) CompareDeployedBytecodeWithRpc(contractMetadata *RemoteContractMetadata, chain string) error

func (*BindGenGeneratorRemote) CompareInitBytecodeWithOp

func (generator *BindGenGeneratorRemote) CompareInitBytecodeWithOp(contractMetadataEth *RemoteContractMetadata, initCodeShouldMatch bool) error

func (*BindGenGeneratorRemote) FetchContractData

func (generator *BindGenGeneratorRemote) FetchContractData(contractVerified bool, chain, deploymentAddress string) (ContractData, error)

func (*BindGenGeneratorRemote) GenerateBindings

func (generator *BindGenGeneratorRemote) GenerateBindings() error

type ContractData

type ContractData struct {
	Abi          string
	DeployedBin  string
	DeploymentTx etherscan.Transaction
}

type Deployments

type Deployments struct {
	Eth common.Address `json:"eth"`
	Op  common.Address `json:"op"`
}

type RemoteContract

type RemoteContract struct {
	Name           string         `json:"name"`
	Verified       bool           `json:"verified"`
	Deployments    Deployments    `json:"deployments"`
	DeploymentSalt string         `json:"deploymentSalt"`
	Deployer       common.Address `json:"deployer"`
	ABI            string         `json:"abi"`
	InitBytecode   string         `json:"initBytecode"`
}

type RemoteContractMetadata

type RemoteContractMetadata struct {
	RemoteContract
	Package     string
	InitBin     string
	DeployedBin string
}

Jump to

Keyboard shortcuts

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