operatorTableCalculator

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package operatorTableCalculator provides stake table root calculation functionality for EigenLayer multichain operations. This package handles the calculation of Merkle tree roots from operator set data across multiple chains, integrating with EigenLayer's CrossChainRegistry to fetch active operator reservations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CrossChainRegistryAddress common.Address
}

Config holds the configuration for the StakeTableCalculator.

type StakeTableCalculator

type StakeTableCalculator struct {
	// contains filtered or unexported fields
}

StakeTableCalculator is responsible for calculating the cloud operator table root.

func NewStakeTableRootCalculator

func NewStakeTableRootCalculator(cfg *Config, ec chainManager.EthClientInterface, l *zap.Logger) (*StakeTableCalculator, error)

NewStakeTableRootCalculator creates a new instance of StakeTableCalculator.

func (*StakeTableCalculator) CalculateStakeTableRoot

func (c *StakeTableCalculator) CalculateStakeTableRoot(
	ctx context.Context,
	referenceBlockNumber uint64,
) (
	[32]byte,
	*merkletree.MerkleTree,
	*distribution.Distribution,
	error,
)

CalculateStakeTableRoot performs the complete calculation for a given reference block.

Jump to

Keyboard shortcuts

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