Skip to content

Commit

Permalink
Tests and code improvement in avs registry writer (#85)
Browse files Browse the repository at this point in the history
- Tests in `avs_registry` `writer`
- Refactor and code improvment in `avs_registry`.

---------

Co-authored-by: ricomateo <[email protected]>
  • Loading branch information
pablodeymo and ricomateo authored Aug 29, 2024
1 parent 76971ad commit 478adb1
Show file tree
Hide file tree
Showing 13 changed files with 545 additions and 458 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions crates/chainio/clients/avsregistry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ alloy-primitives.workspace = true
alloy-provider.workspace = true
alloy-rpc-types.workspace = true
alloy-signer.workspace = true
alloy-signer-local.workspace = true
async-trait.workspace = true
alloy-transport-http.workspace = true
num-bigint = "0.4.4"
Expand All @@ -27,9 +28,13 @@ eigen-utils.workspace = true
eigen-logging.workspace = true
thiserror.workspace = true
tracing.workspace = true
alloy-signer-local.workspace = true

[lints]
workspace = true

[dev-dependencies]
alloy-node-bindings.workspace = true
eigen-testing-utils.workspace = true
hex = "0.4.3"
once_cell.workspace = true
tokio = {version = "1.37.0" , features = ["test-util", "full","sync"] }
tokio = { version = "1.37.0", features = ["test-util", "full", "sync"] }
6 changes: 3 additions & 3 deletions crates/chainio/clients/avsregistry/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# AvsRegistry

Reader , writer and subscribing methods to interact with avs registry contracts
Reader , writer and subscribing methods to interact with avs registry contracts

## Example
## Example

- [get_operator_from_id](https://github.com/Layr-Labs/eigensdk-rs/blob/main/examples/avsregistry-read/examples/get_operator_from_id.rs)
- [get_operator_id](https://github.com/Layr-Labs/eigensdk-rs/blob/main/examples/avsregistry-read/examples/get_operator_id.rs)
- [get_operator_stake_in_quorums_of_operator_at_current_block](https://github.com/Layr-Labs/eigensdk-rs/blob/main/examples/avsregistry-read/examples/get_operator_stake_in_quorums_of_operator_at_current_block.rs)
- [get_operators_stake_in_quorums_at_block](https://github.com/Layr-Labs/eigensdk-rs/blob/main/examples/avsregistry-read/examples/get_operators_stake_in_quorums_at_block.rs)
- [get_quorum_count](https://github.com/Layr-Labs/eigensdk-rs/blob/main/examples/avsregistry-read/examples/get_quorum_count.rs)
- [query_existing_registered_operator_pub_keys](https://github.com/Layr-Labs/eigensdk-rs/blob/main/examples/avsregistry-read/examples/query_existing_registered_operator_pub_keys.rs)
- [query_existing_registered_operator_pub_keys](https://github.com/Layr-Labs/eigensdk-rs/blob/main/examples/avsregistry-read/examples/query_existing_registered_operator_pub_keys.rs)
Loading

0 comments on commit 478adb1

Please sign in to comment.