diff --git a/chainio/gen.go b/chainio/gen.go index 9cb144dc..c789795c 100644 --- a/chainio/gen.go +++ b/chainio/gen.go @@ -1,8 +1,8 @@ package chainio -//go:generate mockgen -destination=./mocks/avsRegistryContractsReader.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry AvsRegistryReader -//go:generate mockgen -destination=./mocks/avsRegistryContractsSubscriber.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry AvsRegistrySubscriber -//go:generate mockgen -destination=./mocks/avsRegistryContractsWriter.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry AvsRegistryWriter +//go:generate mockgen -destination=./mocks/avsRegistryContractsReader.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry Reader +//go:generate mockgen -destination=./mocks/avsRegistryContractsSubscriber.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry Subscriber +//go:generate mockgen -destination=./mocks/avsRegistryContractsWriter.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry Writer //go:generate mockgen -destination=./mocks/elContractsReader.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/elcontracts ELReader //go:generate mockgen -destination=./mocks/elContractsWriter.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/elcontracts ELWriter //go:generate mockgen -destination=./mocks/ethclient.go -package=mocks -mock_names=Client=MockEthClient github.com/Layr-Labs/eigensdk-go/chainio/clients/eth Client diff --git a/chainio/mocks/avsRegistryContractsReader.go b/chainio/mocks/avsRegistryContractsReader.go index e33b45d0..14857bc0 100644 --- a/chainio/mocks/avsRegistryContractsReader.go +++ b/chainio/mocks/avsRegistryContractsReader.go @@ -21,31 +21,31 @@ import ( gomock "go.uber.org/mock/gomock" ) -// MockAvsRegistryReader is a mock of Reader interface. -type MockAvsRegistryReader struct { +// MockReader is a mock of Reader interface. +type MockReader struct { ctrl *gomock.Controller - recorder *MockAvsRegistryReaderMockRecorder + recorder *MockReaderMockRecorder } -// MockAvsRegistryReaderMockRecorder is the mock recorder for MockAvsRegistryReader. -type MockAvsRegistryReaderMockRecorder struct { - mock *MockAvsRegistryReader +// MockReaderMockRecorder is the mock recorder for MockReader. +type MockReaderMockRecorder struct { + mock *MockReader } -// NewMockAvsRegistryReader creates a new mock instance. -func NewMockAvsRegistryReader(ctrl *gomock.Controller) *MockAvsRegistryReader { - mock := &MockAvsRegistryReader{ctrl: ctrl} - mock.recorder = &MockAvsRegistryReaderMockRecorder{mock} +// NewMockReader creates a new mock instance. +func NewMockReader(ctrl *gomock.Controller) *MockReader { + mock := &MockReader{ctrl: ctrl} + mock.recorder = &MockReaderMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAvsRegistryReader) EXPECT() *MockAvsRegistryReaderMockRecorder { +func (m *MockReader) EXPECT() *MockReaderMockRecorder { return m.recorder } // GetCheckSignaturesIndices mocks base method. -func (m *MockAvsRegistryReader) GetCheckSignaturesIndices(arg0 *bind.CallOpts, arg1 uint32, arg2 types.QuorumNums, arg3 []types.Bytes32) (contractOperatorStateRetriever.OperatorStateRetrieverCheckSignaturesIndices, error) { +func (m *MockReader) GetCheckSignaturesIndices(arg0 *bind.CallOpts, arg1 uint32, arg2 types.QuorumNums, arg3 []types.Bytes32) (contractOperatorStateRetriever.OperatorStateRetrieverCheckSignaturesIndices, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCheckSignaturesIndices", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(contractOperatorStateRetriever.OperatorStateRetrieverCheckSignaturesIndices) @@ -54,13 +54,13 @@ func (m *MockAvsRegistryReader) GetCheckSignaturesIndices(arg0 *bind.CallOpts, a } // GetCheckSignaturesIndices indicates an expected call of GetCheckSignaturesIndices. -func (mr *MockAvsRegistryReaderMockRecorder) GetCheckSignaturesIndices(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetCheckSignaturesIndices(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCheckSignaturesIndices", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetCheckSignaturesIndices), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCheckSignaturesIndices", reflect.TypeOf((*MockReader)(nil).GetCheckSignaturesIndices), arg0, arg1, arg2, arg3) } // GetOperatorAddrsInQuorumsAtCurrentBlock mocks base method. -func (m *MockAvsRegistryReader) GetOperatorAddrsInQuorumsAtCurrentBlock(arg0 *bind.CallOpts, arg1 types.QuorumNums) ([][]common.Address, error) { +func (m *MockReader) GetOperatorAddrsInQuorumsAtCurrentBlock(arg0 *bind.CallOpts, arg1 types.QuorumNums) ([][]common.Address, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOperatorAddrsInQuorumsAtCurrentBlock", arg0, arg1) ret0, _ := ret[0].([][]common.Address) @@ -69,13 +69,13 @@ func (m *MockAvsRegistryReader) GetOperatorAddrsInQuorumsAtCurrentBlock(arg0 *bi } // GetOperatorAddrsInQuorumsAtCurrentBlock indicates an expected call of GetOperatorAddrsInQuorumsAtCurrentBlock. -func (mr *MockAvsRegistryReaderMockRecorder) GetOperatorAddrsInQuorumsAtCurrentBlock(arg0, arg1 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetOperatorAddrsInQuorumsAtCurrentBlock(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorAddrsInQuorumsAtCurrentBlock", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetOperatorAddrsInQuorumsAtCurrentBlock), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorAddrsInQuorumsAtCurrentBlock", reflect.TypeOf((*MockReader)(nil).GetOperatorAddrsInQuorumsAtCurrentBlock), arg0, arg1) } // GetOperatorFromId mocks base method. -func (m *MockAvsRegistryReader) GetOperatorFromId(arg0 *bind.CallOpts, arg1 types.Bytes32) (common.Address, error) { +func (m *MockReader) GetOperatorFromId(arg0 *bind.CallOpts, arg1 types.Bytes32) (common.Address, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOperatorFromId", arg0, arg1) ret0, _ := ret[0].(common.Address) @@ -84,13 +84,13 @@ func (m *MockAvsRegistryReader) GetOperatorFromId(arg0 *bind.CallOpts, arg1 type } // GetOperatorFromId indicates an expected call of GetOperatorFromId. -func (mr *MockAvsRegistryReaderMockRecorder) GetOperatorFromId(arg0, arg1 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetOperatorFromId(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorFromId", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetOperatorFromId), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorFromId", reflect.TypeOf((*MockReader)(nil).GetOperatorFromId), arg0, arg1) } // GetOperatorId mocks base method. -func (m *MockAvsRegistryReader) GetOperatorId(arg0 *bind.CallOpts, arg1 common.Address) ([32]byte, error) { +func (m *MockReader) GetOperatorId(arg0 *bind.CallOpts, arg1 common.Address) ([32]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOperatorId", arg0, arg1) ret0, _ := ret[0].([32]byte) @@ -99,13 +99,13 @@ func (m *MockAvsRegistryReader) GetOperatorId(arg0 *bind.CallOpts, arg1 common.A } // GetOperatorId indicates an expected call of GetOperatorId. -func (mr *MockAvsRegistryReaderMockRecorder) GetOperatorId(arg0, arg1 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetOperatorId(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorId", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetOperatorId), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorId", reflect.TypeOf((*MockReader)(nil).GetOperatorId), arg0, arg1) } // GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock mocks base method. -func (m *MockAvsRegistryReader) GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock(arg0 *bind.CallOpts, arg1 types.Bytes32) (map[types.QuorumNum]*big.Int, error) { +func (m *MockReader) GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock(arg0 *bind.CallOpts, arg1 types.Bytes32) (map[types.QuorumNum]*big.Int, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock", arg0, arg1) ret0, _ := ret[0].(map[types.QuorumNum]*big.Int) @@ -114,13 +114,13 @@ func (m *MockAvsRegistryReader) GetOperatorStakeInQuorumsOfOperatorAtCurrentBloc } // GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock indicates an expected call of GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock. -func (mr *MockAvsRegistryReaderMockRecorder) GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock(arg0, arg1 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock", reflect.TypeOf((*MockReader)(nil).GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock), arg0, arg1) } // GetOperatorsStakeInQuorumsAtBlock mocks base method. -func (m *MockAvsRegistryReader) GetOperatorsStakeInQuorumsAtBlock(arg0 *bind.CallOpts, arg1 types.QuorumNums, arg2 uint32) ([][]contractOperatorStateRetriever.OperatorStateRetrieverOperator, error) { +func (m *MockReader) GetOperatorsStakeInQuorumsAtBlock(arg0 *bind.CallOpts, arg1 types.QuorumNums, arg2 uint32) ([][]contractOperatorStateRetriever.OperatorStateRetrieverOperator, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOperatorsStakeInQuorumsAtBlock", arg0, arg1, arg2) ret0, _ := ret[0].([][]contractOperatorStateRetriever.OperatorStateRetrieverOperator) @@ -129,13 +129,13 @@ func (m *MockAvsRegistryReader) GetOperatorsStakeInQuorumsAtBlock(arg0 *bind.Cal } // GetOperatorsStakeInQuorumsAtBlock indicates an expected call of GetOperatorsStakeInQuorumsAtBlock. -func (mr *MockAvsRegistryReaderMockRecorder) GetOperatorsStakeInQuorumsAtBlock(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetOperatorsStakeInQuorumsAtBlock(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorsStakeInQuorumsAtBlock", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetOperatorsStakeInQuorumsAtBlock), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorsStakeInQuorumsAtBlock", reflect.TypeOf((*MockReader)(nil).GetOperatorsStakeInQuorumsAtBlock), arg0, arg1, arg2) } // GetOperatorsStakeInQuorumsAtCurrentBlock mocks base method. -func (m *MockAvsRegistryReader) GetOperatorsStakeInQuorumsAtCurrentBlock(arg0 *bind.CallOpts, arg1 types.QuorumNums) ([][]contractOperatorStateRetriever.OperatorStateRetrieverOperator, error) { +func (m *MockReader) GetOperatorsStakeInQuorumsAtCurrentBlock(arg0 *bind.CallOpts, arg1 types.QuorumNums) ([][]contractOperatorStateRetriever.OperatorStateRetrieverOperator, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOperatorsStakeInQuorumsAtCurrentBlock", arg0, arg1) ret0, _ := ret[0].([][]contractOperatorStateRetriever.OperatorStateRetrieverOperator) @@ -144,13 +144,13 @@ func (m *MockAvsRegistryReader) GetOperatorsStakeInQuorumsAtCurrentBlock(arg0 *b } // GetOperatorsStakeInQuorumsAtCurrentBlock indicates an expected call of GetOperatorsStakeInQuorumsAtCurrentBlock. -func (mr *MockAvsRegistryReaderMockRecorder) GetOperatorsStakeInQuorumsAtCurrentBlock(arg0, arg1 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetOperatorsStakeInQuorumsAtCurrentBlock(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorsStakeInQuorumsAtCurrentBlock", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetOperatorsStakeInQuorumsAtCurrentBlock), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorsStakeInQuorumsAtCurrentBlock", reflect.TypeOf((*MockReader)(nil).GetOperatorsStakeInQuorumsAtCurrentBlock), arg0, arg1) } // GetOperatorsStakeInQuorumsOfOperatorAtBlock mocks base method. -func (m *MockAvsRegistryReader) GetOperatorsStakeInQuorumsOfOperatorAtBlock(arg0 *bind.CallOpts, arg1 types.Bytes32, arg2 uint32) (types.QuorumNums, [][]contractOperatorStateRetriever.OperatorStateRetrieverOperator, error) { +func (m *MockReader) GetOperatorsStakeInQuorumsOfOperatorAtBlock(arg0 *bind.CallOpts, arg1 types.Bytes32, arg2 uint32) (types.QuorumNums, [][]contractOperatorStateRetriever.OperatorStateRetrieverOperator, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOperatorsStakeInQuorumsOfOperatorAtBlock", arg0, arg1, arg2) ret0, _ := ret[0].(types.QuorumNums) @@ -160,13 +160,13 @@ func (m *MockAvsRegistryReader) GetOperatorsStakeInQuorumsOfOperatorAtBlock(arg0 } // GetOperatorsStakeInQuorumsOfOperatorAtBlock indicates an expected call of GetOperatorsStakeInQuorumsOfOperatorAtBlock. -func (mr *MockAvsRegistryReaderMockRecorder) GetOperatorsStakeInQuorumsOfOperatorAtBlock(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetOperatorsStakeInQuorumsOfOperatorAtBlock(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorsStakeInQuorumsOfOperatorAtBlock", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetOperatorsStakeInQuorumsOfOperatorAtBlock), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorsStakeInQuorumsOfOperatorAtBlock", reflect.TypeOf((*MockReader)(nil).GetOperatorsStakeInQuorumsOfOperatorAtBlock), arg0, arg1, arg2) } // GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock mocks base method. -func (m *MockAvsRegistryReader) GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock(arg0 *bind.CallOpts, arg1 types.Bytes32) (types.QuorumNums, [][]contractOperatorStateRetriever.OperatorStateRetrieverOperator, error) { +func (m *MockReader) GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock(arg0 *bind.CallOpts, arg1 types.Bytes32) (types.QuorumNums, [][]contractOperatorStateRetriever.OperatorStateRetrieverOperator, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock", arg0, arg1) ret0, _ := ret[0].(types.QuorumNums) @@ -176,13 +176,13 @@ func (m *MockAvsRegistryReader) GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlo } // GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock indicates an expected call of GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock. -func (mr *MockAvsRegistryReaderMockRecorder) GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock(arg0, arg1 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock", reflect.TypeOf((*MockReader)(nil).GetOperatorsStakeInQuorumsOfOperatorAtCurrentBlock), arg0, arg1) } // GetQuorumCount mocks base method. -func (m *MockAvsRegistryReader) GetQuorumCount(arg0 *bind.CallOpts) (byte, error) { +func (m *MockReader) GetQuorumCount(arg0 *bind.CallOpts) (byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetQuorumCount", arg0) ret0, _ := ret[0].(byte) @@ -191,13 +191,13 @@ func (m *MockAvsRegistryReader) GetQuorumCount(arg0 *bind.CallOpts) (byte, error } // GetQuorumCount indicates an expected call of GetQuorumCount. -func (mr *MockAvsRegistryReaderMockRecorder) GetQuorumCount(arg0 any) *gomock.Call { +func (mr *MockReaderMockRecorder) GetQuorumCount(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuorumCount", reflect.TypeOf((*MockAvsRegistryReader)(nil).GetQuorumCount), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuorumCount", reflect.TypeOf((*MockReader)(nil).GetQuorumCount), arg0) } // IsOperatorRegistered mocks base method. -func (m *MockAvsRegistryReader) IsOperatorRegistered(arg0 *bind.CallOpts, arg1 common.Address) (bool, error) { +func (m *MockReader) IsOperatorRegistered(arg0 *bind.CallOpts, arg1 common.Address) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IsOperatorRegistered", arg0, arg1) ret0, _ := ret[0].(bool) @@ -206,13 +206,13 @@ func (m *MockAvsRegistryReader) IsOperatorRegistered(arg0 *bind.CallOpts, arg1 c } // IsOperatorRegistered indicates an expected call of IsOperatorRegistered. -func (mr *MockAvsRegistryReaderMockRecorder) IsOperatorRegistered(arg0, arg1 any) *gomock.Call { +func (mr *MockReaderMockRecorder) IsOperatorRegistered(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOperatorRegistered", reflect.TypeOf((*MockAvsRegistryReader)(nil).IsOperatorRegistered), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOperatorRegistered", reflect.TypeOf((*MockReader)(nil).IsOperatorRegistered), arg0, arg1) } // QueryExistingRegisteredOperatorPubKeys mocks base method. -func (m *MockAvsRegistryReader) QueryExistingRegisteredOperatorPubKeys(arg0 context.Context, arg1, arg2, arg3 *big.Int) ([]common.Address, []types.OperatorPubkeys, error) { +func (m *MockReader) QueryExistingRegisteredOperatorPubKeys(arg0 context.Context, arg1, arg2, arg3 *big.Int) ([]common.Address, []types.OperatorPubkeys, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryExistingRegisteredOperatorPubKeys", arg0, arg1, arg2, arg3) ret0, _ := ret[0].([]common.Address) @@ -222,13 +222,13 @@ func (m *MockAvsRegistryReader) QueryExistingRegisteredOperatorPubKeys(arg0 cont } // QueryExistingRegisteredOperatorPubKeys indicates an expected call of QueryExistingRegisteredOperatorPubKeys. -func (mr *MockAvsRegistryReaderMockRecorder) QueryExistingRegisteredOperatorPubKeys(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockReaderMockRecorder) QueryExistingRegisteredOperatorPubKeys(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryExistingRegisteredOperatorPubKeys", reflect.TypeOf((*MockAvsRegistryReader)(nil).QueryExistingRegisteredOperatorPubKeys), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryExistingRegisteredOperatorPubKeys", reflect.TypeOf((*MockReader)(nil).QueryExistingRegisteredOperatorPubKeys), arg0, arg1, arg2, arg3) } // QueryExistingRegisteredOperatorSockets mocks base method. -func (m *MockAvsRegistryReader) QueryExistingRegisteredOperatorSockets(arg0 context.Context, arg1, arg2, arg3 *big.Int) (map[types.Bytes32]types.Socket, error) { +func (m *MockReader) QueryExistingRegisteredOperatorSockets(arg0 context.Context, arg1, arg2, arg3 *big.Int) (map[types.Bytes32]types.Socket, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryExistingRegisteredOperatorSockets", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(map[types.Bytes32]types.Socket) @@ -237,7 +237,7 @@ func (m *MockAvsRegistryReader) QueryExistingRegisteredOperatorSockets(arg0 cont } // QueryExistingRegisteredOperatorSockets indicates an expected call of QueryExistingRegisteredOperatorSockets. -func (mr *MockAvsRegistryReaderMockRecorder) QueryExistingRegisteredOperatorSockets(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockReaderMockRecorder) QueryExistingRegisteredOperatorSockets(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryExistingRegisteredOperatorSockets", reflect.TypeOf((*MockAvsRegistryReader)(nil).QueryExistingRegisteredOperatorSockets), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryExistingRegisteredOperatorSockets", reflect.TypeOf((*MockReader)(nil).QueryExistingRegisteredOperatorSockets), arg0, arg1, arg2, arg3) } diff --git a/chainio/mocks/avsRegistryContractsSubscriber.go b/chainio/mocks/avsRegistryContractsSubscriber.go index 9ee2377c..c6249822 100644 --- a/chainio/mocks/avsRegistryContractsSubscriber.go +++ b/chainio/mocks/avsRegistryContractsSubscriber.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry (interfaces: AvsRegistrySubscriber) +// Source: github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry (interfaces: Subscriber) // // Generated by this command: // -// mockgen -destination=./mocks/avsRegistryContractsSubscriber.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry AvsRegistrySubscriber +// mockgen -destination=./mocks/avsRegistryContractsSubscriber.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry Subscriber // // Package mocks is a generated GoMock package. @@ -18,31 +18,31 @@ import ( gomock "go.uber.org/mock/gomock" ) -// MockAvsRegistrySubscriber is a mock of AvsRegistrySubscriber interface. -type MockAvsRegistrySubscriber struct { +// MockSubscriber is a mock of Subscriber interface. +type MockSubscriber struct { ctrl *gomock.Controller - recorder *MockAvsRegistrySubscriberMockRecorder + recorder *MockSubscriberMockRecorder } -// MockAvsRegistrySubscriberMockRecorder is the mock recorder for MockAvsRegistrySubscriber. -type MockAvsRegistrySubscriberMockRecorder struct { - mock *MockAvsRegistrySubscriber +// MockSubscriberMockRecorder is the mock recorder for MockSubscriber. +type MockSubscriberMockRecorder struct { + mock *MockSubscriber } -// NewMockAvsRegistrySubscriber creates a new mock instance. -func NewMockAvsRegistrySubscriber(ctrl *gomock.Controller) *MockAvsRegistrySubscriber { - mock := &MockAvsRegistrySubscriber{ctrl: ctrl} - mock.recorder = &MockAvsRegistrySubscriberMockRecorder{mock} +// NewMockSubscriber creates a new mock instance. +func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber { + mock := &MockSubscriber{ctrl: ctrl} + mock.recorder = &MockSubscriberMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAvsRegistrySubscriber) EXPECT() *MockAvsRegistrySubscriberMockRecorder { +func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder { return m.recorder } // SubscribeToNewPubkeyRegistrations mocks base method. -func (m *MockAvsRegistrySubscriber) SubscribeToNewPubkeyRegistrations() (chan *contractBLSApkRegistry.ContractBLSApkRegistryNewPubkeyRegistration, event.Subscription, error) { +func (m *MockSubscriber) SubscribeToNewPubkeyRegistrations() (chan *contractBLSApkRegistry.ContractBLSApkRegistryNewPubkeyRegistration, event.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SubscribeToNewPubkeyRegistrations") ret0, _ := ret[0].(chan *contractBLSApkRegistry.ContractBLSApkRegistryNewPubkeyRegistration) @@ -52,13 +52,13 @@ func (m *MockAvsRegistrySubscriber) SubscribeToNewPubkeyRegistrations() (chan *c } // SubscribeToNewPubkeyRegistrations indicates an expected call of SubscribeToNewPubkeyRegistrations. -func (mr *MockAvsRegistrySubscriberMockRecorder) SubscribeToNewPubkeyRegistrations() *gomock.Call { +func (mr *MockSubscriberMockRecorder) SubscribeToNewPubkeyRegistrations() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeToNewPubkeyRegistrations", reflect.TypeOf((*MockAvsRegistrySubscriber)(nil).SubscribeToNewPubkeyRegistrations)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeToNewPubkeyRegistrations", reflect.TypeOf((*MockSubscriber)(nil).SubscribeToNewPubkeyRegistrations)) } // SubscribeToOperatorSocketUpdates mocks base method. -func (m *MockAvsRegistrySubscriber) SubscribeToOperatorSocketUpdates() (chan *contractRegistryCoordinator.ContractRegistryCoordinatorOperatorSocketUpdate, event.Subscription, error) { +func (m *MockSubscriber) SubscribeToOperatorSocketUpdates() (chan *contractRegistryCoordinator.ContractRegistryCoordinatorOperatorSocketUpdate, event.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SubscribeToOperatorSocketUpdates") ret0, _ := ret[0].(chan *contractRegistryCoordinator.ContractRegistryCoordinatorOperatorSocketUpdate) @@ -68,7 +68,7 @@ func (m *MockAvsRegistrySubscriber) SubscribeToOperatorSocketUpdates() (chan *co } // SubscribeToOperatorSocketUpdates indicates an expected call of SubscribeToOperatorSocketUpdates. -func (mr *MockAvsRegistrySubscriberMockRecorder) SubscribeToOperatorSocketUpdates() *gomock.Call { +func (mr *MockSubscriberMockRecorder) SubscribeToOperatorSocketUpdates() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeToOperatorSocketUpdates", reflect.TypeOf((*MockAvsRegistrySubscriber)(nil).SubscribeToOperatorSocketUpdates)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeToOperatorSocketUpdates", reflect.TypeOf((*MockSubscriber)(nil).SubscribeToOperatorSocketUpdates)) } diff --git a/chainio/mocks/avsRegistryContractsWriter.go b/chainio/mocks/avsRegistryContractsWriter.go index b34d8aac..59d0cb7f 100644 --- a/chainio/mocks/avsRegistryContractsWriter.go +++ b/chainio/mocks/avsRegistryContractsWriter.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry (interfaces: AvsRegistryWriter) +// Source: github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry (interfaces: Writer) // // Generated by this command: // -// mockgen -destination=./mocks/avsRegistryContractsWriter.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry AvsRegistryWriter +// mockgen -destination=./mocks/avsRegistryContractsWriter.go -package=mocks github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregistry Writer // // Package mocks is a generated GoMock package. @@ -23,31 +23,31 @@ import ( gomock "go.uber.org/mock/gomock" ) -// MockAvsRegistryWriter is a mock of AvsRegistryWriter interface. -type MockAvsRegistryWriter struct { +// MockWriter is a mock of Writer interface. +type MockWriter struct { ctrl *gomock.Controller - recorder *MockAvsRegistryWriterMockRecorder + recorder *MockWriterMockRecorder } -// MockAvsRegistryWriterMockRecorder is the mock recorder for MockAvsRegistryWriter. -type MockAvsRegistryWriterMockRecorder struct { - mock *MockAvsRegistryWriter +// MockWriterMockRecorder is the mock recorder for MockWriter. +type MockWriterMockRecorder struct { + mock *MockWriter } -// NewMockAvsRegistryWriter creates a new mock instance. -func NewMockAvsRegistryWriter(ctrl *gomock.Controller) *MockAvsRegistryWriter { - mock := &MockAvsRegistryWriter{ctrl: ctrl} - mock.recorder = &MockAvsRegistryWriterMockRecorder{mock} +// NewMockWriter creates a new mock instance. +func NewMockWriter(ctrl *gomock.Controller) *MockWriter { + mock := &MockWriter{ctrl: ctrl} + mock.recorder = &MockWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAvsRegistryWriter) EXPECT() *MockAvsRegistryWriterMockRecorder { +func (m *MockWriter) EXPECT() *MockWriterMockRecorder { return m.recorder } // DeregisterOperator mocks base method. -func (m *MockAvsRegistryWriter) DeregisterOperator(arg0 context.Context, arg1 types.QuorumNums, arg2 contractRegistryCoordinator.BN254G1Point) (*types0.Receipt, error) { +func (m *MockWriter) DeregisterOperator(arg0 context.Context, arg1 types.QuorumNums, arg2 contractRegistryCoordinator.BN254G1Point) (*types0.Receipt, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeregisterOperator", arg0, arg1, arg2) ret0, _ := ret[0].(*types0.Receipt) @@ -56,13 +56,13 @@ func (m *MockAvsRegistryWriter) DeregisterOperator(arg0 context.Context, arg1 ty } // DeregisterOperator indicates an expected call of DeregisterOperator. -func (mr *MockAvsRegistryWriterMockRecorder) DeregisterOperator(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockWriterMockRecorder) DeregisterOperator(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterOperator", reflect.TypeOf((*MockAvsRegistryWriter)(nil).DeregisterOperator), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterOperator", reflect.TypeOf((*MockWriter)(nil).DeregisterOperator), arg0, arg1, arg2) } // RegisterOperator mocks base method. -func (m *MockAvsRegistryWriter) RegisterOperator(arg0 context.Context, arg1 *ecdsa.PrivateKey, arg2 *bls.KeyPair, arg3 types.QuorumNums, arg4 string) (*types0.Receipt, error) { +func (m *MockWriter) RegisterOperator(arg0 context.Context, arg1 *ecdsa.PrivateKey, arg2 *bls.KeyPair, arg3 types.QuorumNums, arg4 string) (*types0.Receipt, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RegisterOperator", arg0, arg1, arg2, arg3, arg4) ret0, _ := ret[0].(*types0.Receipt) @@ -71,13 +71,13 @@ func (m *MockAvsRegistryWriter) RegisterOperator(arg0 context.Context, arg1 *ecd } // RegisterOperator indicates an expected call of RegisterOperator. -func (mr *MockAvsRegistryWriterMockRecorder) RegisterOperator(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call { +func (mr *MockWriterMockRecorder) RegisterOperator(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterOperator", reflect.TypeOf((*MockAvsRegistryWriter)(nil).RegisterOperator), arg0, arg1, arg2, arg3, arg4) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterOperator", reflect.TypeOf((*MockWriter)(nil).RegisterOperator), arg0, arg1, arg2, arg3, arg4) } // RegisterOperatorInQuorumWithAVSRegistryCoordinator mocks base method. -func (m *MockAvsRegistryWriter) RegisterOperatorInQuorumWithAVSRegistryCoordinator(arg0 context.Context, arg1 *ecdsa.PrivateKey, arg2 [32]byte, arg3 *big.Int, arg4 *bls.KeyPair, arg5 types.QuorumNums, arg6 string) (*types0.Receipt, error) { +func (m *MockWriter) RegisterOperatorInQuorumWithAVSRegistryCoordinator(arg0 context.Context, arg1 *ecdsa.PrivateKey, arg2 [32]byte, arg3 *big.Int, arg4 *bls.KeyPair, arg5 types.QuorumNums, arg6 string) (*types0.Receipt, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RegisterOperatorInQuorumWithAVSRegistryCoordinator", arg0, arg1, arg2, arg3, arg4, arg5, arg6) ret0, _ := ret[0].(*types0.Receipt) @@ -86,13 +86,13 @@ func (m *MockAvsRegistryWriter) RegisterOperatorInQuorumWithAVSRegistryCoordinat } // RegisterOperatorInQuorumWithAVSRegistryCoordinator indicates an expected call of RegisterOperatorInQuorumWithAVSRegistryCoordinator. -func (mr *MockAvsRegistryWriterMockRecorder) RegisterOperatorInQuorumWithAVSRegistryCoordinator(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *gomock.Call { +func (mr *MockWriterMockRecorder) RegisterOperatorInQuorumWithAVSRegistryCoordinator(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterOperatorInQuorumWithAVSRegistryCoordinator", reflect.TypeOf((*MockAvsRegistryWriter)(nil).RegisterOperatorInQuorumWithAVSRegistryCoordinator), arg0, arg1, arg2, arg3, arg4, arg5, arg6) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterOperatorInQuorumWithAVSRegistryCoordinator", reflect.TypeOf((*MockWriter)(nil).RegisterOperatorInQuorumWithAVSRegistryCoordinator), arg0, arg1, arg2, arg3, arg4, arg5, arg6) } // UpdateStakesOfEntireOperatorSetForQuorums mocks base method. -func (m *MockAvsRegistryWriter) UpdateStakesOfEntireOperatorSetForQuorums(arg0 context.Context, arg1 [][]common.Address, arg2 types.QuorumNums) (*types0.Receipt, error) { +func (m *MockWriter) UpdateStakesOfEntireOperatorSetForQuorums(arg0 context.Context, arg1 [][]common.Address, arg2 types.QuorumNums) (*types0.Receipt, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateStakesOfEntireOperatorSetForQuorums", arg0, arg1, arg2) ret0, _ := ret[0].(*types0.Receipt) @@ -101,13 +101,13 @@ func (m *MockAvsRegistryWriter) UpdateStakesOfEntireOperatorSetForQuorums(arg0 c } // UpdateStakesOfEntireOperatorSetForQuorums indicates an expected call of UpdateStakesOfEntireOperatorSetForQuorums. -func (mr *MockAvsRegistryWriterMockRecorder) UpdateStakesOfEntireOperatorSetForQuorums(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockWriterMockRecorder) UpdateStakesOfEntireOperatorSetForQuorums(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStakesOfEntireOperatorSetForQuorums", reflect.TypeOf((*MockAvsRegistryWriter)(nil).UpdateStakesOfEntireOperatorSetForQuorums), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStakesOfEntireOperatorSetForQuorums", reflect.TypeOf((*MockWriter)(nil).UpdateStakesOfEntireOperatorSetForQuorums), arg0, arg1, arg2) } // UpdateStakesOfOperatorSubsetForAllQuorums mocks base method. -func (m *MockAvsRegistryWriter) UpdateStakesOfOperatorSubsetForAllQuorums(arg0 context.Context, arg1 []common.Address) (*types0.Receipt, error) { +func (m *MockWriter) UpdateStakesOfOperatorSubsetForAllQuorums(arg0 context.Context, arg1 []common.Address) (*types0.Receipt, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateStakesOfOperatorSubsetForAllQuorums", arg0, arg1) ret0, _ := ret[0].(*types0.Receipt) @@ -116,7 +116,7 @@ func (m *MockAvsRegistryWriter) UpdateStakesOfOperatorSubsetForAllQuorums(arg0 c } // UpdateStakesOfOperatorSubsetForAllQuorums indicates an expected call of UpdateStakesOfOperatorSubsetForAllQuorums. -func (mr *MockAvsRegistryWriterMockRecorder) UpdateStakesOfOperatorSubsetForAllQuorums(arg0, arg1 any) *gomock.Call { +func (mr *MockWriterMockRecorder) UpdateStakesOfOperatorSubsetForAllQuorums(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStakesOfOperatorSubsetForAllQuorums", reflect.TypeOf((*MockAvsRegistryWriter)(nil).UpdateStakesOfOperatorSubsetForAllQuorums), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStakesOfOperatorSubsetForAllQuorums", reflect.TypeOf((*MockWriter)(nil).UpdateStakesOfOperatorSubsetForAllQuorums), arg0, arg1) }