chainio

package
v0.0.0-...-d1bef67 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package chainio contains the logic to interact with the AVS contracts onchain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvsManagersBindings

type AvsManagersBindings struct {
	ChallengeManager *preconfchallengemanager.ContractPreconfChallengeManager
	ServiceManager   *preconfservicemanager.ContractPreconfServiceManager
	// contains filtered or unexported fields
}

func NewAvsManagersBindings

func NewAvsManagersBindings(registryCoordinatorAddr, operatorStateRetrieverAddr common.Address, ethclient eth.EthClient, logger logging.Logger) (*AvsManagersBindings, error)

func (*AvsManagersBindings) GetErc20Mock

func (b *AvsManagersBindings) GetErc20Mock(tokenAddr common.Address) (*erc20mock.ContractERC20Mock, error)

type AvsReader

type AvsReader struct {
	sdkavsregistry.AvsRegistryReader
	AvsServiceBindings *AvsManagersBindings
	// contains filtered or unexported fields
}

func BuildAvsReader

func BuildAvsReader(registryCoordinatorAddr, operatorStateRetrieverAddr gethcommon.Address, ethHTTPClient eth.EthClient, logger logging.Logger) (*AvsReader, error)

func BuildAvsReaderFromConfig

func BuildAvsReaderFromConfig(c *config.Config) (*AvsReader, error)

func NewAvsReader

func NewAvsReader(avsRegistryReader sdkavsregistry.AvsRegistryReader, avsServiceBindings *AvsManagersBindings, logger logging.Logger) (*AvsReader, error)

func (*AvsReader) GetErc20Mock

func (r *AvsReader) GetErc20Mock(ctx context.Context, tokenAddr gethcommon.Address) (*erc20mock.ContractERC20Mock, error)

type AvsReaderer

type AvsReaderer interface {
	sdkavsregistry.AvsRegistryReader

	GetErc20Mock(ctx context.Context, tokenAddr gethcommon.Address) (*erc20mock.ContractERC20Mock, error)
}

type AvsWriter

type AvsWriter struct {
	avsregistry.AvsRegistryWriter
	AvsContractBindings *AvsManagersBindings

	TxMgr txmgr.TxManager
	// contains filtered or unexported fields
}

func BuildAvsWriter

func BuildAvsWriter(txMgr txmgr.TxManager, registryCoordinatorAddr, operatorStateRetrieverAddr gethcommon.Address, ethHTTPClient eth.EthClient, logger logging.Logger) (*AvsWriter, error)

func BuildAvsWriterFromConfig

func BuildAvsWriterFromConfig(c *config.Config) (*AvsWriter, error)

func NewAvsWriter

func NewAvsWriter(avsRegistryWriter avsregistry.AvsRegistryWriter, avsServiceBindings *AvsManagersBindings, logger logging.Logger, txMgr txmgr.TxManager) *AvsWriter

type AvsWriterer

type AvsWriterer interface {
	avsregistry.AvsRegistryWriter
}

Jump to

Keyboard shortcuts

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