Skip to content

Commit

Permalink
feat: index operator socket registry with filter logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Jan 2, 2025
1 parent 59b7ff7 commit 1af099c
Show file tree
Hide file tree
Showing 6 changed files with 1,522 additions and 31 deletions.
2 changes: 1 addition & 1 deletion api/clients/retrieval_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func setup(t *testing.T) {
},
Data: codec.ConvertByPaddingEmptyByte(gettysburgAddressBytes),
}
operatorState, err = indexedChainState.GetOperatorState(context.Background(), (0), []core.QuorumID{quorumID})
operatorState, err := chainState.GetOperatorState(context.Background(), (0), []core.QuorumID{quorumID})
if err != nil {
t.Fatalf("failed to get operator state: %s", err)
}
Expand Down
7 changes: 7 additions & 0 deletions common/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ import (
//go:embed abis/EigenDAServiceManager.json
var ServiceManagerAbi []byte

//go:embed abis/RegistryCoordinator.json
var RegistryCoordinatorAbi []byte

var BatchConfirmedEventSigHash = crypto.Keccak256Hash([]byte("BatchConfirmed(bytes32,uint32)"))
var OperatorSocketUpdateEventSigHash = crypto.Keccak256Hash([]byte("OperatorSocketUpdate(bytes32,string)"))

// TODO: consider adding deregistration for limiting size of socket map
// var OperatorDeregisteredEventSigHash = crypto.Keccak256Hash([]byte("OperatorDeregistered(address,bytes32)"))
Loading

0 comments on commit 1af099c

Please sign in to comment.