Documentation ¶
Index ¶
- func AddrForNetwork(network netconf.ID) (common.Address, bool)
- func Deploy(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (common.Address, *ethtypes.Receipt, error)
- func DeployIfNeeded(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (common.Address, *ethtypes.Receipt, error)
- func IsDeployed(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (bool, common.Address, error)
- func RegisterOperatorWithAVS(ctx context.Context, addr common.Address, backend *ethbackend.Backend, ...) error
- type DeploymentConfig
- type EigenDeployments
- type StrategyParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrForNetwork ¶ added in v0.1.2
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.
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
Click to show internal directories.
Click to hide internal directories.