Module chain_clients

Module chain_clients 

Source
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