avs

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrForNetwork added in v0.1.2

func AddrForNetwork(network netconf.ID) (common.Address, bool)

func Deploy added in v0.1.2

func Deploy(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (common.Address, *ethtypes.Receipt, error)

Deploy deploys the AVS contract and returns the address and receipt. It only allows deployments to explicitly supported chains.

func DeployIfNeeded added in v0.1.2

func DeployIfNeeded(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (common.Address, *ethtypes.Receipt, error)

DeployIfNeeded deploys a new AVS contract if it is not already deployed.

func IsDeployed added in v0.1.2

func IsDeployed(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (bool, common.Address, error)

IsDeployed checks if the OmniAVS contract is deployed to the provided backend to its expected network address.

func RegisterOperatorWithAVS

func RegisterOperatorWithAVS(ctx context.Context, addr common.Address, backend *ethbackend.Backend, operator common.Address) error

Types

type DeploymentConfig added in v0.1.2

type DeploymentConfig struct {
	Create3Factory   common.Address
	Create3Salt      string
	Eigen            EigenDeployments
	Deployer         common.Address
	Owner            common.Address
	ProxyAdmin       common.Address
	Portal           common.Address
	OmniChainID      uint64
	MetadataURI      string
	StrategyParams   []StrategyParam
	EthStakeInbox    common.Address
	MinOperatorStake *big.Int
	MaxOperatorCount uint32
	AllowlistEnabled bool
	ExpectedAddr     common.Address
}

func (DeploymentConfig) Validate added in v0.1.2

func (cfg DeploymentConfig) Validate() error

type EigenDeployments added in v0.1.2

type EigenDeployments struct {
	AVSDirectory      common.Address `json:"AVSDirectory"`
	DelegationManager common.Address `json:"DelegationManager"`
}

func (EigenDeployments) Validate added in v0.1.2

func (e EigenDeployments) Validate() error

type StrategyParam added in v0.1.2

type StrategyParam struct {
	Strategy   common.Address
	Multiplier *big.Int
}

Jump to

Keyboard shortcuts

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