From 1b5f29a071ea03c38260b99cc5ebd252e60d6ba1 Mon Sep 17 00:00:00 2001 From: Madhur Shrimal Date: Tue, 18 Jun 2024 10:23:07 -0500 Subject: [PATCH] mocks and format --- chainio/clients/avsregistry/reader.go | 4 ++-- chainio/mocks/elContractsWriter.go | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/chainio/clients/avsregistry/reader.go b/chainio/clients/avsregistry/reader.go index 762b5438..a7976ff0 100644 --- a/chainio/clients/avsregistry/reader.go +++ b/chainio/clients/avsregistry/reader.go @@ -21,8 +21,8 @@ import ( stakeregistry "github.com/Layr-Labs/eigensdk-go/contracts/bindings/StakeRegistry" ) -// different node providers have different eth_getLogs range limits. 10k is an arbitrary choice that should work for -// most +// DefaultQueryBlockRange different node providers have different eth_getLogs range limits. +// 10k is an arbitrary choice that should work for most var DefaultQueryBlockRange = big.NewInt(10_000) type AvsRegistryReader interface { diff --git a/chainio/mocks/elContractsWriter.go b/chainio/mocks/elContractsWriter.go index cd773d00..5b5af23d 100644 --- a/chainio/mocks/elContractsWriter.go +++ b/chainio/mocks/elContractsWriter.go @@ -73,6 +73,21 @@ func (mr *MockELWriterMockRecorder) RegisterAsOperator(arg0, arg1 any) *gomock.C return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterAsOperator", reflect.TypeOf((*MockELWriter)(nil).RegisterAsOperator), arg0, arg1) } +// UpdateMetadataURI mocks base method. +func (m *MockELWriter) UpdateMetadataURI(arg0 context.Context, arg1 string) (*types0.Receipt, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMetadataURI", arg0, arg1) + ret0, _ := ret[0].(*types0.Receipt) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMetadataURI indicates an expected call of UpdateMetadataURI. +func (mr *MockELWriterMockRecorder) UpdateMetadataURI(arg0, arg1 any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMetadataURI", reflect.TypeOf((*MockELWriter)(nil).UpdateMetadataURI), arg0, arg1) +} + // UpdateOperatorDetails mocks base method. func (m *MockELWriter) UpdateOperatorDetails(arg0 context.Context, arg1 types.Operator) (*types0.Receipt, error) { m.ctrl.T.Helper()