Skip to content

Commit 2219a1a

Browse files
authored
chore: bump eigensdk-go version (#650)
1 parent 09def0a commit 2219a1a

7 files changed

Lines changed: 98 additions & 39 deletions

File tree

aggregator/internal/pkg/aggregator.go

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package pkg
33
import (
44
"context"
55
"encoding/hex"
6+
"fmt"
67
"sync"
78
"time"
89

@@ -16,7 +17,7 @@ import (
1617
"github.com/Layr-Labs/eigensdk-go/logging"
1718
"github.com/Layr-Labs/eigensdk-go/services/avsregistry"
1819
blsagg "github.com/Layr-Labs/eigensdk-go/services/bls_aggregation"
19-
oppubkeysserv "github.com/Layr-Labs/eigensdk-go/services/operatorpubkeys"
20+
oppubkeysserv "github.com/Layr-Labs/eigensdk-go/services/operatorsinfo"
2021
eigentypes "github.com/Layr-Labs/eigensdk-go/types"
2122
"github.com/ethereum/go-ethereum/event"
2223
servicemanager "github.com/yetanotherco/aligned_layer/contracts/bindings/AlignedLayerServiceManager"
@@ -120,9 +121,24 @@ func NewAggregator(aggregatorConfig config.AggregatorConfig) (*Aggregator, error
120121
return nil, err
121122
}
122123

123-
operatorPubkeysService := oppubkeysserv.NewOperatorPubkeysServiceInMemory(context.Background(), clients.AvsRegistryChainSubscriber, clients.AvsRegistryChainReader, logger)
124-
avsRegistryService := avsregistry.NewAvsRegistryServiceChainCaller(avsReader.AvsRegistryReader, operatorPubkeysService, logger)
125-
blsAggregationService := blsagg.NewBlsAggregatorService(avsRegistryService, logger)
124+
// This is a dummy "hash function" made to fulfill the BLS aggregator service API requirements.
125+
// When operators respond to a task, a call to `ProcessNewSignature` is made. In `v0.1.6` of the eigensdk,
126+
// this function required an argument `TaskResponseDigest`, which has changed to just `TaskResponse` in v0.1.9.
127+
// The digest we used in v0.1.6 was just the batch merkle root. To continue with the same idea, the hashing
128+
// function is set as the following one, which does nothing more than output the input it receives, which in
129+
// our case will be the batch merkle root. If wanted, we could define a real hash function here but there should
130+
// not be any need to re-hash the batch merkle root.
131+
hashFunction := func(taskResponse eigentypes.TaskResponse) (eigentypes.TaskResponseDigest, error) {
132+
taskResponseDigest, ok := taskResponse.([32]byte)
133+
if !ok {
134+
return eigentypes.TaskResponseDigest{}, fmt.Errorf("TaskResponse is not a 32-byte value")
135+
}
136+
return taskResponseDigest, nil
137+
}
138+
139+
operatorPubkeysService := oppubkeysserv.NewOperatorsInfoServiceInMemory(context.Background(), clients.AvsRegistryChainSubscriber, clients.AvsRegistryChainReader, nil, logger)
140+
avsRegistryService := avsregistry.NewAvsRegistryServiceChainCaller(avsReader.ChainReader, operatorPubkeysService, logger)
141+
blsAggregationService := blsagg.NewBlsAggregatorService(avsRegistryService, hashFunction, logger)
126142

127143
// Metrics
128144
reg := prometheus.NewRegistry()

core/chainio/avs_reader.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
type AvsReader struct {
15-
sdkavsregistry.AvsRegistryReader
15+
*sdkavsregistry.ChainReader
1616
AvsContractBindings *AvsServiceBindings
1717
logger logging.Logger
1818
}
@@ -33,15 +33,15 @@ func NewAvsReaderFromConfig(baseConfig *config.BaseConfig, ecdsaConfig *config.E
3333
return nil, err
3434
}
3535

36-
avsRegistryReader := clients.AvsRegistryChainReader
36+
chainReader := clients.AvsRegistryChainReader
3737

3838
avsServiceBindings, err := NewAvsServiceBindings(baseConfig.AlignedLayerDeploymentConfig.AlignedLayerServiceManagerAddr, baseConfig.AlignedLayerDeploymentConfig.AlignedLayerOperatorStateRetrieverAddr, baseConfig.EthRpcClient, baseConfig.Logger)
3939
if err != nil {
4040
return nil, err
4141
}
4242

4343
return &AvsReader{
44-
AvsRegistryReader: avsRegistryReader,
44+
ChainReader: chainReader,
4545
AvsContractBindings: avsServiceBindings,
4646
logger: baseConfig.Logger,
4747
}, nil
@@ -57,5 +57,5 @@ func (r *AvsReader) GetErc20Mock(tokenAddr gethcommon.Address) (*contractERC20Mo
5757
}
5858

5959
func (r *AvsReader) IsOperatorRegistered(address gethcommon.Address) (bool, error) {
60-
return r.AvsRegistryReader.IsOperatorRegistered(&bind.CallOpts{}, address)
60+
return r.ChainReader.IsOperatorRegistered(&bind.CallOpts{}, address)
6161
}

core/chainio/avs_writer.go

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package chainio
22

33
import (
44
"context"
5+
56
"github.com/Layr-Labs/eigensdk-go/chainio/clients"
67
"github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry"
78
"github.com/Layr-Labs/eigensdk-go/chainio/clients/eth"
@@ -14,7 +15,7 @@ import (
1415
)
1516

1617
type AvsWriter struct {
17-
avsregistry.AvsRegistryWriter
18+
*avsregistry.ChainWriter
1819
AvsContractBindings *AvsServiceBindings
1920
logger logging.Logger
2021
Signer signer.Signer
@@ -52,10 +53,10 @@ func NewAvsWriterFromConfig(baseConfig *config.BaseConfig, ecdsaConfig *config.E
5253
return nil, err
5354
}
5455

55-
avsRegistryWriter := clients.AvsRegistryChainWriter
56+
chainWriter := clients.AvsRegistryChainWriter
5657

5758
return &AvsWriter{
58-
AvsRegistryWriter: avsRegistryWriter,
59+
ChainWriter: chainWriter,
5960
AvsContractBindings: avsServiceBindings,
6061
logger: baseConfig.Logger,
6162
Signer: privateKeySigner,
@@ -105,20 +106,3 @@ func (w *AvsWriter) SendAggregatedResponse(batchMerkleRoot [32]byte, nonSignerSt
105106

106107
return &txHash, nil
107108
}
108-
109-
// func (w *AvsWriter) RaiseChallenge(
110-
// ctx context.Context,
111-
// task cstaskmanager.IAlignedLayerTaskManagerTask,
112-
// taskResponse cstaskmanager.IAlignedLayerTaskManagerTaskResponse,
113-
// taskResponseMetadata cstaskmanager.IAlignedLayerTaskManagerTaskResponseMetadata,
114-
// pubkeysOfNonSigningOperators []cstaskmanager.BN254G1Point,
115-
// ) (*types.Receipt, error) {
116-
// txOpts := w.Signer.GetTxOpts()
117-
// tx, err := w.AvsContractBindings.TaskManager.RaiseAndResolveChallenge(txOpts, task, taskResponse, taskResponseMetadata, pubkeysOfNonSigningOperators)
118-
// if err != nil {
119-
// w.logger.Errorf("Error assembling RaiseChallenge tx")
120-
// return nil, err
121-
// }
122-
// receipt := w.client.WaitForTransactionReceipt(ctx, tx.Hash())
123-
// return receipt, nil
124-
// }

go.mod

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/yetanotherco/aligned_layer
33
go 1.22.2
44

55
require (
6-
github.com/Layr-Labs/eigensdk-go v0.1.6
7-
github.com/ethereum/go-ethereum v1.13.15
6+
github.com/Layr-Labs/eigensdk-go v0.1.9
7+
github.com/ethereum/go-ethereum v1.14.0
88
github.com/prometheus/client_golang v1.19.1
99
github.com/urfave/cli/v2 v2.27.1
1010
golang.org/x/crypto v0.22.0 // indirect
@@ -21,21 +21,35 @@ require (
2121
github.com/DataDog/zstd v1.5.2 // indirect
2222
github.com/Microsoft/go-winio v0.6.1 // indirect
2323
github.com/StackExchange/wmi v1.2.1 // indirect
24+
github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect
25+
github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect
26+
github.com/aws/aws-sdk-go-v2/credentials v1.17.11 // indirect
27+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect
28+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect
29+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 // indirect
30+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
31+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
32+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 // indirect
33+
github.com/aws/aws-sdk-go-v2/service/kms v1.31.0 // indirect
34+
github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 // indirect
35+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 // indirect
36+
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 // indirect
37+
github.com/aws/smithy-go v1.20.2 // indirect
2438
github.com/beorn7/perks v1.0.1 // indirect
2539
github.com/bits-and-blooms/bitset v1.10.0 // indirect
2640
github.com/blang/semver/v4 v4.0.0 // indirect
2741
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
2842
github.com/cespare/xxhash/v2 v2.3.0 // indirect
29-
github.com/cockroachdb/errors v1.9.1 // indirect
43+
github.com/cockroachdb/errors v1.11.1 // indirect
3044
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
31-
github.com/cockroachdb/redact v1.1.3 // indirect
45+
github.com/cockroachdb/redact v1.1.5 // indirect
3246
github.com/consensys/bavard v0.1.13 // indirect
3347
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
34-
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
48+
github.com/crate-crypto/go-kzg-4844 v1.0.0 // indirect
3549
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3650
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
3751
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
38-
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
52+
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
3953
github.com/fsnotify/fsnotify v1.7.0 // indirect
4054
github.com/fxamacker/cbor/v2 v2.5.0 // indirect
4155
github.com/getsentry/sentry-go v0.18.0 // indirect
@@ -49,6 +63,7 @@ require (
4963
github.com/ingonyama-zk/iciclegnark v0.1.0 // indirect
5064
github.com/jmespath/go-jmespath v0.4.0 // indirect
5165
github.com/klauspost/compress v1.17.7 // indirect
66+
github.com/lmittmann/tint v1.0.4 // indirect
5267
github.com/mattn/go-colorable v0.1.13 // indirect
5368
github.com/mattn/go-isatty v0.0.20 // indirect
5469
github.com/mitchellh/mapstructure v1.5.0 // indirect
@@ -62,6 +77,7 @@ require (
6277
github.com/rs/zerolog v1.32.0 // indirect
6378
github.com/russross/blackfriday/v2 v2.1.0 // indirect
6479
github.com/shirou/gopsutil v3.21.6+incompatible // indirect
80+
github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 // indirect
6581
github.com/stretchr/testify v1.9.0 // indirect
6682
github.com/supranational/blst v0.3.11 // indirect
6783
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect

go.sum

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ github.com/DataDog/zstd v1.5.2/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwS
88
github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY=
99
github.com/Layr-Labs/eigensdk-go v0.1.6 h1:LEJ8QZFAjuXH3H7BkwixFAxm1GVbCiTmsj1Q21xxsEA=
1010
github.com/Layr-Labs/eigensdk-go v0.1.6/go.mod h1:HOSNuZcwaKbP4cnNk9c1hK2B2RitcMQ36Xj2msBBBpE=
11+
github.com/Layr-Labs/eigensdk-go v0.1.9 h1:vI7PEhVtjET59IPfpzJZ7rJtndb6+CHQ1/aau/YMCpE=
12+
github.com/Layr-Labs/eigensdk-go v0.1.9/go.mod h1:XcLVDtlB1vOPj63D236b451+SC75B8gwgkpNhYHSxNs=
1113
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
1214
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
1315
github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0=
@@ -19,6 +21,34 @@ github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY
1921
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
2022
github.com/aws/aws-sdk-go v1.53.7 h1:ZSsRYHLRxsbO2rJR2oPMz0SUkJLnBkN+1meT95B6Ixs=
2123
github.com/aws/aws-sdk-go v1.53.7/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
24+
github.com/aws/aws-sdk-go-v2 v1.26.1 h1:5554eUqIYVWpU0YmeeYZ0wU64H2VLBs8TlhRB2L+EkA=
25+
github.com/aws/aws-sdk-go-v2 v1.26.1/go.mod h1:ffIFB97e2yNsv4aTSGkqtHnppsIJzw7G7BReUZ3jCXM=
26+
github.com/aws/aws-sdk-go-v2/config v1.27.11 h1:f47rANd2LQEYHda2ddSCKYId18/8BhSRM4BULGmfgNA=
27+
github.com/aws/aws-sdk-go-v2/config v1.27.11/go.mod h1:SMsV78RIOYdve1vf36z8LmnszlRWkwMQtomCAI0/mIE=
28+
github.com/aws/aws-sdk-go-v2/credentials v1.17.11 h1:YuIB1dJNf1Re822rriUOTxopaHHvIq0l/pX3fwO+Tzs=
29+
github.com/aws/aws-sdk-go-v2/credentials v1.17.11/go.mod h1:AQtFPsDH9bI2O+71anW6EKL+NcD7LG3dpKGMV4SShgo=
30+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 h1:FVJ0r5XTHSmIHJV6KuDmdYhEpvlHpiSd38RQWhut5J4=
31+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1/go.mod h1:zusuAeqezXzAB24LGuzuekqMAEgWkVYukBec3kr3jUg=
32+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 h1:aw39xVGeRWlWx9EzGVnhOR4yOjQDHPQ6o6NmBlscyQg=
33+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5/go.mod h1:FSaRudD0dXiMPK2UjknVwwTYyZMRsHv3TtkabsZih5I=
34+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 h1:PG1F3OD1szkuQPzDw3CIQsRIrtTlUC3lP84taWzHlq0=
35+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5/go.mod h1:jU1li6RFryMz+so64PpKtudI+QzbKoIEivqdf6LNpOc=
36+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU=
37+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY=
38+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 h1:Ji0DY1xUsUr3I8cHps0G+XM3WWU16lP6yG8qu1GAZAs=
39+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2/go.mod h1:5CsjAbs3NlGQyZNFACh+zztPDI7fU6eW9QsxjfnuBKg=
40+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 h1:ogRAwT1/gxJBcSWDMZlgyFUM962F51A5CRhDLbxLdmo=
41+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7/go.mod h1:YCsIZhXfRPLFFCl5xxY+1T9RKzOKjCut+28JSX2DnAk=
42+
github.com/aws/aws-sdk-go-v2/service/kms v1.31.0 h1:yl7wcqbisxPzknJVfWTLnK83McUvXba+pz2+tPbIUmQ=
43+
github.com/aws/aws-sdk-go-v2/service/kms v1.31.0/go.mod h1:2snWQJQUKsbN66vAawJuOGX7dr37pfOq9hb0tZDGIqQ=
44+
github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 h1:vN8hEbpRnL7+Hopy9dzmRle1xmDc7o8tmY0klsr175w=
45+
github.com/aws/aws-sdk-go-v2/service/sso v1.20.5/go.mod h1:qGzynb/msuZIE8I75DVRCUXw3o3ZyBmUvMwQ2t/BrGM=
46+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 h1:Jux+gDDyi1Lruk+KHF91tK2KCuY61kzoCpvtvJJBtOE=
47+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4/go.mod h1:mUYPBhaF2lGiukDEjJX2BLRRKTmoUSitGDUgM4tRxak=
48+
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 h1:cwIxeBttqPN3qkaAjcEcsh8NYr8n2HZPkcKgPAi1phU=
49+
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6/go.mod h1:FZf1/nKNEkHdGGJP/cI2MoIMquumuRK6ol3QQJNDxmw=
50+
github.com/aws/smithy-go v1.20.2 h1:tbp628ireGtzcHDDmLT/6ADHidqnwgF57XOXZe6tp4Q=
51+
github.com/aws/smithy-go v1.20.2/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E=
2252
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
2353
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
2454
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
@@ -43,13 +73,15 @@ github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnht
4373
github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU=
4474
github.com/cockroachdb/errors v1.9.1 h1:yFVvsI0VxmRShfawbt/laCIDy/mtTqqnvoNgiy5bEV8=
4575
github.com/cockroachdb/errors v1.9.1/go.mod h1:2sxOtL2WIc096WSZqZ5h8fa17rdDq9HZOZLBCor4mBk=
76+
github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw=
4677
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
4778
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE=
4879
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
4980
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593 h1:aPEJyR4rPBvDmeyi+l/FS/VtA00IWvjeFvjen1m1l1A=
5081
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593/go.mod h1:6hk1eMY/u5t+Cf18q5lFMUA1Rc+Sm5I6Ra1QuPyxXCo=
5182
github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ=
5283
github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
84+
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
5385
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo=
5486
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ=
5587
github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM=
@@ -70,6 +102,8 @@ github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233 h1:d28BXYi+wUp
70102
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233/go.mod h1:geZJZH3SzKCqnz5VT0q/DyIG/tvu/dZk+VIfXicupJs=
71103
github.com/crate-crypto/go-kzg-4844 v0.7.0 h1:C0vgZRk4q4EZ/JgPfzuSoxdCq3C3mOZMBShovmncxvA=
72104
github.com/crate-crypto/go-kzg-4844 v0.7.0/go.mod h1:1kMhvPgI0Ky3yIa+9lFySEBUBXkYxeOi8ZF1sYioxhc=
105+
github.com/crate-crypto/go-kzg-4844 v1.0.0 h1:TsSgHwrkTKecKJ4kadtHi4b3xHW5dCFUDFnUp1TsawI=
106+
github.com/crate-crypto/go-kzg-4844 v1.0.0/go.mod h1:1kMhvPgI0Ky3yIa+9lFySEBUBXkYxeOi8ZF1sYioxhc=
73107
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
74108
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
75109
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -92,8 +126,12 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7
92126
github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw=
93127
github.com/ethereum/c-kzg-4844 v0.4.0 h1:3MS1s4JtA868KpJxroZoepdV0ZKBp3u/O5HcZ7R3nlY=
94128
github.com/ethereum/c-kzg-4844 v0.4.0/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
129+
github.com/ethereum/c-kzg-4844 v1.0.0 h1:0X1LBXxaEtYD9xsyj9B9ctQEZIpnvVDeoBx8aHEwTNA=
130+
github.com/ethereum/c-kzg-4844 v1.0.0/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
95131
github.com/ethereum/go-ethereum v1.13.15 h1:U7sSGYGo4SPjP6iNIifNoyIAiNjrmQkz6EwQG+/EZWo=
96132
github.com/ethereum/go-ethereum v1.13.15/go.mod h1:TN8ZiHrdJwSe8Cb6x+p0hs5CxhJZPbqB7hHkaUXcmIU=
133+
github.com/ethereum/go-ethereum v1.14.0 h1:xRWC5NlB6g1x7vNy4HDBLuqVNbtLrc7v8S6+Uxim1LU=
134+
github.com/ethereum/go-ethereum v1.14.0/go.mod h1:1STrq471D0BQbCX9He0hUj4bHxX2k6mt5nOQJhDNOJ8=
97135
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8=
98136
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
99137
github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA=
@@ -243,6 +281,8 @@ github.com/labstack/echo/v4 v4.5.0/go.mod h1:czIriw4a0C1dFun+ObrXp7ok03xON0N1awS
243281
github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k=
244282
github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c=
245283
github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8=
284+
github.com/lmittmann/tint v1.0.4 h1:LeYihpJ9hyGvE0w+K2okPTGUdVLfng1+nDNVR4vWISc=
285+
github.com/lmittmann/tint v1.0.4/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
246286
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
247287
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
248288
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
@@ -332,6 +372,8 @@ github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtm
332372
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
333373
github.com/shirou/gopsutil v3.21.6+incompatible h1:mmZtAlWSd8U2HeRTjswbnDLPxqsEoK01NK+GZ1P+nEM=
334374
github.com/shirou/gopsutil v3.21.6+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
375+
github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 h1:17JxqqJY66GmZVHkmAsGEkcIu0oCe3AM420QDgGwZx0=
376+
github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466/go.mod h1:9dIRpgIY7hVhoqfe0/FcYp0bpInZaT7dc3BYOprrIUE=
335377
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
336378
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
337379
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=

metrics/metrics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package metrics
33
import (
44
"context"
55
"errors"
6+
"net/http"
7+
68
"github.com/Layr-Labs/eigensdk-go/logging"
7-
"github.com/Layr-Labs/eigensdk-go/types"
89
"github.com/prometheus/client_golang/prometheus"
910
"github.com/prometheus/client_golang/prometheus/promauto"
1011
"github.com/prometheus/client_golang/prometheus/promhttp"
11-
"net/http"
1212
)
1313

1414
type Metrics struct {
@@ -49,7 +49,7 @@ func (m *Metrics) Start(ctx context.Context, reg prometheus.Gatherer) <-chan err
4949
))
5050
err := http.ListenAndServe(m.ipPortAddress, nil)
5151
if err != nil {
52-
errC <- types.WrapError(errors.New("prometheus server failed"), err)
52+
errC <- errors.New("prometheus server failed")
5353
} else {
5454
errC <- nil
5555
}

operator/pkg/register.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package operator
22

33
import (
44
"context"
5+
"math/big"
6+
"time"
7+
58
"github.com/Layr-Labs/eigensdk-go/types"
69
"github.com/yetanotherco/aligned_layer/core/chainio"
710
"github.com/yetanotherco/aligned_layer/core/config"
8-
"math/big"
9-
"time"
1011
)
1112

1213
// RegisterOperator operator registers the operator with the given public key for the given quorum IDs.

0 commit comments

Comments
 (0)