Expand description
Utilities for building elcontracts and avs registries
Constants§
- OPERATOR_
ADDRESS - address for operator used in tests (anvil second address)
- OPERATOR_
PRIVATE_ KEY - private key for operator used in tests (anvil second private key)
Functions§
- build_
avs_ registry_ chain_ reader - Creates an avs registry chain reader from a given http endpoint
- build_
avs_ registry_ chain_ writer - Creates an avs registry chain writer from a given http endpoint and a private key
- build_
el_ chain_ reader - Creates an eigen layer chain reader from a given http endpoint
- can_
set_ appointee - Checks if setAppointee can be called for the particular parameters
- create_
operator_ set - Creates an operator set from an http_endpoint and an avs address
- create_
quorum - Creates m2 quorum using a private key and an http endpoint
- create_
total_ delegated_ stake_ operator_ set - Creates a total delegated stake operator set
- ensure_
can_ set_ avs_ registrar - Checks if set AvS Registrar can be called
- new_
claim - Creates a new claim of amount <cumulative_earnings> in the anvil on the address defined in http_endpoint.
The claim can be submitted from
FIRST_PRIVATE_KEY
. - new_
test_ claim - Using test data taken from https://github.com/Layr-Labs/eigenlayer-contracts/blob/a888a1cd1479438dda4b138245a69177b125a973/src/test/test-data/rewardsCoordinator/processClaimProofs_MaxEarnerAndLeafIndices.json
- new_
test_ writer - Creates an eigen layer chain writer from a given http endpoint
- new_
test_ writer_ preslashing - Creates an eigen layer chain writer for M2 quorums (pre-slashing) from a given http endpoint
- test_
register_ operator - Registers an operator to the received quorum numbers, with a private key to an anvil on the http_url using the avs_writer