diff --git a/Makefile b/Makefile index 65f5e6fe627..ef03d0a757f 100644 --- a/Makefile +++ b/Makefile @@ -211,21 +211,17 @@ clean: devtools: # Notice! If you adding new binary - add it also to tools.go file $(GOBUILD) -o $(GOBIN)/gencodec github.com/fjl/gencodec - $(GOBUILD) -o $(GOBIN)/mockgen go.uber.org/mock/mockgen $(GOBUILD) -o $(GOBIN)/abigen ./cmd/abigen @type "npm" 2> /dev/null || echo 'Please install node.js and npm' @type "solc" 2> /dev/null || echo 'Please install solc' @type "protoc" 2> /dev/null || echo 'Please install protoc' ## mocks: generate test mocks -mocks: mocks-clean - @cd erigon-lib && $(MAKE) mocks - $(GOBUILD) -o $(GOBIN)/mockgen go.uber.org/mock/mockgen - PATH="$(GOBIN):$(PATH)" go generate -run "mockgen" ./... - -## mocks-clean: cleans all generated test mocks -mocks-clean: +mocks: + rm -f $(GOBIN)/mockgen + $(GOBUILD) -o "$(GOBIN)/mockgen" go.uber.org/mock/mockgen grep -r -l --exclude-dir="erigon-lib" --exclude-dir="tests" --exclude-dir="*$(GOBINREL)*" "^// Code generated by MockGen. DO NOT EDIT.$$" . | xargs rm -r + PATH="$(GOBIN):$(PATH)" go generate -run "mockgen" ./... ## solc: generate all solidity contracts solc: diff --git a/cl/abstract/mock_services/beacon_state_mutator_mock.go b/cl/abstract/mock_services/beacon_state_mutator_mock.go index 2a60b96d92e..55813af63fd 100644 --- a/cl/abstract/mock_services/beacon_state_mutator_mock.go +++ b/cl/abstract/mock_services/beacon_state_mutator_mock.go @@ -10,18 +10,20 @@ package mock_services import ( + reflect "reflect" + common "github.com/erigontech/erigon-lib/common" clparams "github.com/erigontech/erigon/cl/clparams" cltypes "github.com/erigontech/erigon/cl/cltypes" solid "github.com/erigontech/erigon/cl/cltypes/solid" gomock "go.uber.org/mock/gomock" - reflect "reflect" ) // MockBeaconStateMutator is a mock of BeaconStateMutator interface. type MockBeaconStateMutator struct { ctrl *gomock.Controller recorder *MockBeaconStateMutatorMockRecorder + isgomock struct{} } // MockBeaconStateMutatorMockRecorder is the mock recorder for MockBeaconStateMutator. @@ -42,32 +44,35 @@ func (m *MockBeaconStateMutator) EXPECT() *MockBeaconStateMutatorMockRecorder { } // AddCurrentEpochAtteastation mocks base method. -func (m *MockBeaconStateMutator) AddCurrentEpochAtteastation(arg0 *solid.PendingAttestation) { +func (m *MockBeaconStateMutator) AddCurrentEpochAtteastation(attestation *solid.PendingAttestation) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddCurrentEpochAtteastation", arg0) + m.ctrl.Call(m, "AddCurrentEpochAtteastation", attestation) } // AddCurrentEpochAtteastation indicates an expected call of AddCurrentEpochAtteastation. -func (mr *MockBeaconStateMutatorMockRecorder) AddCurrentEpochAtteastation(arg0 any) *MockBeaconStateMutatorAddCurrentEpochAtteastationCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddCurrentEpochAtteastation(attestation any) *MockBeaconStateMutatorAddCurrentEpochAtteastationCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCurrentEpochAtteastation", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddCurrentEpochAtteastation), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCurrentEpochAtteastation", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddCurrentEpochAtteastation), attestation) return &MockBeaconStateMutatorAddCurrentEpochAtteastationCall{Call: call} } // MockBeaconStateMutatorAddCurrentEpochAtteastationCall wrap *gomock.Call -type MockBeaconStateMutatorAddCurrentEpochAtteastationCall struct{ +type MockBeaconStateMutatorAddCurrentEpochAtteastationCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddCurrentEpochAtteastationCall) Return() *MockBeaconStateMutatorAddCurrentEpochAtteastationCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddCurrentEpochAtteastationCall) Do(f func(*solid.PendingAttestation)) *MockBeaconStateMutatorAddCurrentEpochAtteastationCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddCurrentEpochAtteastationCall) DoAndReturn(f func(*solid.PendingAttestation)) *MockBeaconStateMutatorAddCurrentEpochAtteastationCall { c.Call = c.Call.DoAndReturn(f) @@ -75,32 +80,35 @@ func (c *MockBeaconStateMutatorAddCurrentEpochAtteastationCall) DoAndReturn(f fu } // AddCurrentEpochParticipationFlags mocks base method. -func (m *MockBeaconStateMutator) AddCurrentEpochParticipationFlags(arg0 cltypes.ParticipationFlags) { +func (m *MockBeaconStateMutator) AddCurrentEpochParticipationFlags(flags cltypes.ParticipationFlags) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddCurrentEpochParticipationFlags", arg0) + m.ctrl.Call(m, "AddCurrentEpochParticipationFlags", flags) } // AddCurrentEpochParticipationFlags indicates an expected call of AddCurrentEpochParticipationFlags. -func (mr *MockBeaconStateMutatorMockRecorder) AddCurrentEpochParticipationFlags(arg0 any) *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddCurrentEpochParticipationFlags(flags any) *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCurrentEpochParticipationFlags", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddCurrentEpochParticipationFlags), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCurrentEpochParticipationFlags", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddCurrentEpochParticipationFlags), flags) return &MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall{Call: call} } // MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall wrap *gomock.Call -type MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall struct{ +type MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall) Return() *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall) Do(f func(cltypes.ParticipationFlags)) *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall) DoAndReturn(f func(cltypes.ParticipationFlags)) *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall { c.Call = c.Call.DoAndReturn(f) @@ -108,32 +116,35 @@ func (c *MockBeaconStateMutatorAddCurrentEpochParticipationFlagsCall) DoAndRetur } // AddEth1DataVote mocks base method. -func (m *MockBeaconStateMutator) AddEth1DataVote(arg0 *cltypes.Eth1Data) { +func (m *MockBeaconStateMutator) AddEth1DataVote(vote *cltypes.Eth1Data) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddEth1DataVote", arg0) + m.ctrl.Call(m, "AddEth1DataVote", vote) } // AddEth1DataVote indicates an expected call of AddEth1DataVote. -func (mr *MockBeaconStateMutatorMockRecorder) AddEth1DataVote(arg0 any) *MockBeaconStateMutatorAddEth1DataVoteCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddEth1DataVote(vote any) *MockBeaconStateMutatorAddEth1DataVoteCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEth1DataVote", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddEth1DataVote), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEth1DataVote", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddEth1DataVote), vote) return &MockBeaconStateMutatorAddEth1DataVoteCall{Call: call} } // MockBeaconStateMutatorAddEth1DataVoteCall wrap *gomock.Call -type MockBeaconStateMutatorAddEth1DataVoteCall struct{ +type MockBeaconStateMutatorAddEth1DataVoteCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddEth1DataVoteCall) Return() *MockBeaconStateMutatorAddEth1DataVoteCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddEth1DataVoteCall) Do(f func(*cltypes.Eth1Data)) *MockBeaconStateMutatorAddEth1DataVoteCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddEth1DataVoteCall) DoAndReturn(f func(*cltypes.Eth1Data)) *MockBeaconStateMutatorAddEth1DataVoteCall { c.Call = c.Call.DoAndReturn(f) @@ -141,32 +152,35 @@ func (c *MockBeaconStateMutatorAddEth1DataVoteCall) DoAndReturn(f func(*cltypes. } // AddHistoricalRoot mocks base method. -func (m *MockBeaconStateMutator) AddHistoricalRoot(arg0 common.Hash) { +func (m *MockBeaconStateMutator) AddHistoricalRoot(root common.Hash) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddHistoricalRoot", arg0) + m.ctrl.Call(m, "AddHistoricalRoot", root) } // AddHistoricalRoot indicates an expected call of AddHistoricalRoot. -func (mr *MockBeaconStateMutatorMockRecorder) AddHistoricalRoot(arg0 any) *MockBeaconStateMutatorAddHistoricalRootCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddHistoricalRoot(root any) *MockBeaconStateMutatorAddHistoricalRootCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHistoricalRoot", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddHistoricalRoot), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHistoricalRoot", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddHistoricalRoot), root) return &MockBeaconStateMutatorAddHistoricalRootCall{Call: call} } // MockBeaconStateMutatorAddHistoricalRootCall wrap *gomock.Call -type MockBeaconStateMutatorAddHistoricalRootCall struct{ +type MockBeaconStateMutatorAddHistoricalRootCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddHistoricalRootCall) Return() *MockBeaconStateMutatorAddHistoricalRootCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddHistoricalRootCall) Do(f func(common.Hash)) *MockBeaconStateMutatorAddHistoricalRootCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddHistoricalRootCall) DoAndReturn(f func(common.Hash)) *MockBeaconStateMutatorAddHistoricalRootCall { c.Call = c.Call.DoAndReturn(f) @@ -174,32 +188,35 @@ func (c *MockBeaconStateMutatorAddHistoricalRootCall) DoAndReturn(f func(common. } // AddHistoricalSummary mocks base method. -func (m *MockBeaconStateMutator) AddHistoricalSummary(arg0 *cltypes.HistoricalSummary) { +func (m *MockBeaconStateMutator) AddHistoricalSummary(summary *cltypes.HistoricalSummary) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddHistoricalSummary", arg0) + m.ctrl.Call(m, "AddHistoricalSummary", summary) } // AddHistoricalSummary indicates an expected call of AddHistoricalSummary. -func (mr *MockBeaconStateMutatorMockRecorder) AddHistoricalSummary(arg0 any) *MockBeaconStateMutatorAddHistoricalSummaryCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddHistoricalSummary(summary any) *MockBeaconStateMutatorAddHistoricalSummaryCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHistoricalSummary", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddHistoricalSummary), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHistoricalSummary", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddHistoricalSummary), summary) return &MockBeaconStateMutatorAddHistoricalSummaryCall{Call: call} } // MockBeaconStateMutatorAddHistoricalSummaryCall wrap *gomock.Call -type MockBeaconStateMutatorAddHistoricalSummaryCall struct{ +type MockBeaconStateMutatorAddHistoricalSummaryCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddHistoricalSummaryCall) Return() *MockBeaconStateMutatorAddHistoricalSummaryCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddHistoricalSummaryCall) Do(f func(*cltypes.HistoricalSummary)) *MockBeaconStateMutatorAddHistoricalSummaryCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddHistoricalSummaryCall) DoAndReturn(f func(*cltypes.HistoricalSummary)) *MockBeaconStateMutatorAddHistoricalSummaryCall { c.Call = c.Call.DoAndReturn(f) @@ -207,32 +224,35 @@ func (c *MockBeaconStateMutatorAddHistoricalSummaryCall) DoAndReturn(f func(*clt } // AddInactivityScore mocks base method. -func (m *MockBeaconStateMutator) AddInactivityScore(arg0 uint64) { +func (m *MockBeaconStateMutator) AddInactivityScore(score uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddInactivityScore", arg0) + m.ctrl.Call(m, "AddInactivityScore", score) } // AddInactivityScore indicates an expected call of AddInactivityScore. -func (mr *MockBeaconStateMutatorMockRecorder) AddInactivityScore(arg0 any) *MockBeaconStateMutatorAddInactivityScoreCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddInactivityScore(score any) *MockBeaconStateMutatorAddInactivityScoreCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddInactivityScore", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddInactivityScore), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddInactivityScore", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddInactivityScore), score) return &MockBeaconStateMutatorAddInactivityScoreCall{Call: call} } // MockBeaconStateMutatorAddInactivityScoreCall wrap *gomock.Call -type MockBeaconStateMutatorAddInactivityScoreCall struct{ +type MockBeaconStateMutatorAddInactivityScoreCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddInactivityScoreCall) Return() *MockBeaconStateMutatorAddInactivityScoreCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddInactivityScoreCall) Do(f func(uint64)) *MockBeaconStateMutatorAddInactivityScoreCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddInactivityScoreCall) DoAndReturn(f func(uint64)) *MockBeaconStateMutatorAddInactivityScoreCall { c.Call = c.Call.DoAndReturn(f) @@ -240,32 +260,35 @@ func (c *MockBeaconStateMutatorAddInactivityScoreCall) DoAndReturn(f func(uint64 } // AddPreviousEpochAttestation mocks base method. -func (m *MockBeaconStateMutator) AddPreviousEpochAttestation(arg0 *solid.PendingAttestation) { +func (m *MockBeaconStateMutator) AddPreviousEpochAttestation(attestation *solid.PendingAttestation) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddPreviousEpochAttestation", arg0) + m.ctrl.Call(m, "AddPreviousEpochAttestation", attestation) } // AddPreviousEpochAttestation indicates an expected call of AddPreviousEpochAttestation. -func (mr *MockBeaconStateMutatorMockRecorder) AddPreviousEpochAttestation(arg0 any) *MockBeaconStateMutatorAddPreviousEpochAttestationCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddPreviousEpochAttestation(attestation any) *MockBeaconStateMutatorAddPreviousEpochAttestationCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPreviousEpochAttestation", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddPreviousEpochAttestation), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPreviousEpochAttestation", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddPreviousEpochAttestation), attestation) return &MockBeaconStateMutatorAddPreviousEpochAttestationCall{Call: call} } // MockBeaconStateMutatorAddPreviousEpochAttestationCall wrap *gomock.Call -type MockBeaconStateMutatorAddPreviousEpochAttestationCall struct{ +type MockBeaconStateMutatorAddPreviousEpochAttestationCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddPreviousEpochAttestationCall) Return() *MockBeaconStateMutatorAddPreviousEpochAttestationCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddPreviousEpochAttestationCall) Do(f func(*solid.PendingAttestation)) *MockBeaconStateMutatorAddPreviousEpochAttestationCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddPreviousEpochAttestationCall) DoAndReturn(f func(*solid.PendingAttestation)) *MockBeaconStateMutatorAddPreviousEpochAttestationCall { c.Call = c.Call.DoAndReturn(f) @@ -273,32 +296,35 @@ func (c *MockBeaconStateMutatorAddPreviousEpochAttestationCall) DoAndReturn(f fu } // AddPreviousEpochParticipationAt mocks base method. -func (m *MockBeaconStateMutator) AddPreviousEpochParticipationAt(arg0 int, arg1 byte) { +func (m *MockBeaconStateMutator) AddPreviousEpochParticipationAt(index int, delta byte) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddPreviousEpochParticipationAt", arg0, arg1) + m.ctrl.Call(m, "AddPreviousEpochParticipationAt", index, delta) } // AddPreviousEpochParticipationAt indicates an expected call of AddPreviousEpochParticipationAt. -func (mr *MockBeaconStateMutatorMockRecorder) AddPreviousEpochParticipationAt(arg0, arg1 any) *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddPreviousEpochParticipationAt(index, delta any) *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPreviousEpochParticipationAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddPreviousEpochParticipationAt), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPreviousEpochParticipationAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddPreviousEpochParticipationAt), index, delta) return &MockBeaconStateMutatorAddPreviousEpochParticipationAtCall{Call: call} } // MockBeaconStateMutatorAddPreviousEpochParticipationAtCall wrap *gomock.Call -type MockBeaconStateMutatorAddPreviousEpochParticipationAtCall struct{ +type MockBeaconStateMutatorAddPreviousEpochParticipationAtCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall) Return() *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall) Do(f func(int, byte)) *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall) DoAndReturn(f func(int, byte)) *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall { c.Call = c.Call.DoAndReturn(f) @@ -306,32 +332,35 @@ func (c *MockBeaconStateMutatorAddPreviousEpochParticipationAtCall) DoAndReturn( } // AddPreviousEpochParticipationFlags mocks base method. -func (m *MockBeaconStateMutator) AddPreviousEpochParticipationFlags(arg0 cltypes.ParticipationFlags) { +func (m *MockBeaconStateMutator) AddPreviousEpochParticipationFlags(flags cltypes.ParticipationFlags) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddPreviousEpochParticipationFlags", arg0) + m.ctrl.Call(m, "AddPreviousEpochParticipationFlags", flags) } // AddPreviousEpochParticipationFlags indicates an expected call of AddPreviousEpochParticipationFlags. -func (mr *MockBeaconStateMutatorMockRecorder) AddPreviousEpochParticipationFlags(arg0 any) *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddPreviousEpochParticipationFlags(flags any) *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPreviousEpochParticipationFlags", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddPreviousEpochParticipationFlags), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPreviousEpochParticipationFlags", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddPreviousEpochParticipationFlags), flags) return &MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall{Call: call} } // MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall wrap *gomock.Call -type MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall struct{ +type MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall) Return() *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall) Do(f func(cltypes.ParticipationFlags)) *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall) DoAndReturn(f func(cltypes.ParticipationFlags)) *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall { c.Call = c.Call.DoAndReturn(f) @@ -339,32 +368,35 @@ func (c *MockBeaconStateMutatorAddPreviousEpochParticipationFlagsCall) DoAndRetu } // AddValidator mocks base method. -func (m *MockBeaconStateMutator) AddValidator(arg0 solid.Validator, arg1 uint64) { +func (m *MockBeaconStateMutator) AddValidator(validator solid.Validator, balance uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddValidator", arg0, arg1) + m.ctrl.Call(m, "AddValidator", validator, balance) } // AddValidator indicates an expected call of AddValidator. -func (mr *MockBeaconStateMutatorMockRecorder) AddValidator(arg0, arg1 any) *MockBeaconStateMutatorAddValidatorCall { +func (mr *MockBeaconStateMutatorMockRecorder) AddValidator(validator, balance any) *MockBeaconStateMutatorAddValidatorCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddValidator", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddValidator), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddValidator", reflect.TypeOf((*MockBeaconStateMutator)(nil).AddValidator), validator, balance) return &MockBeaconStateMutatorAddValidatorCall{Call: call} } // MockBeaconStateMutatorAddValidatorCall wrap *gomock.Call -type MockBeaconStateMutatorAddValidatorCall struct{ +type MockBeaconStateMutatorAddValidatorCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAddValidatorCall) Return() *MockBeaconStateMutatorAddValidatorCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAddValidatorCall) Do(f func(solid.Validator, uint64)) *MockBeaconStateMutatorAddValidatorCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAddValidatorCall) DoAndReturn(f func(solid.Validator, uint64)) *MockBeaconStateMutatorAddValidatorCall { c.Call = c.Call.DoAndReturn(f) @@ -372,32 +404,35 @@ func (c *MockBeaconStateMutatorAddValidatorCall) DoAndReturn(f func(solid.Valida } // AppendValidator mocks base method. -func (m *MockBeaconStateMutator) AppendValidator(arg0 solid.Validator) { +func (m *MockBeaconStateMutator) AppendValidator(in solid.Validator) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AppendValidator", arg0) + m.ctrl.Call(m, "AppendValidator", in) } // AppendValidator indicates an expected call of AppendValidator. -func (mr *MockBeaconStateMutatorMockRecorder) AppendValidator(arg0 any) *MockBeaconStateMutatorAppendValidatorCall { +func (mr *MockBeaconStateMutatorMockRecorder) AppendValidator(in any) *MockBeaconStateMutatorAppendValidatorCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendValidator", reflect.TypeOf((*MockBeaconStateMutator)(nil).AppendValidator), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendValidator", reflect.TypeOf((*MockBeaconStateMutator)(nil).AppendValidator), in) return &MockBeaconStateMutatorAppendValidatorCall{Call: call} } // MockBeaconStateMutatorAppendValidatorCall wrap *gomock.Call -type MockBeaconStateMutatorAppendValidatorCall struct{ +type MockBeaconStateMutatorAppendValidatorCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorAppendValidatorCall) Return() *MockBeaconStateMutatorAppendValidatorCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorAppendValidatorCall) Do(f func(solid.Validator)) *MockBeaconStateMutatorAppendValidatorCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorAppendValidatorCall) DoAndReturn(f func(solid.Validator)) *MockBeaconStateMutatorAppendValidatorCall { c.Call = c.Call.DoAndReturn(f) @@ -418,19 +453,22 @@ func (mr *MockBeaconStateMutatorMockRecorder) ResetCurrentEpochAttestations() *M } // MockBeaconStateMutatorResetCurrentEpochAttestationsCall wrap *gomock.Call -type MockBeaconStateMutatorResetCurrentEpochAttestationsCall struct{ +type MockBeaconStateMutatorResetCurrentEpochAttestationsCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorResetCurrentEpochAttestationsCall) Return() *MockBeaconStateMutatorResetCurrentEpochAttestationsCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorResetCurrentEpochAttestationsCall) Do(f func()) *MockBeaconStateMutatorResetCurrentEpochAttestationsCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorResetCurrentEpochAttestationsCall) DoAndReturn(f func()) *MockBeaconStateMutatorResetCurrentEpochAttestationsCall { c.Call = c.Call.DoAndReturn(f) @@ -451,19 +489,22 @@ func (mr *MockBeaconStateMutatorMockRecorder) ResetEpochParticipation() *MockBea } // MockBeaconStateMutatorResetEpochParticipationCall wrap *gomock.Call -type MockBeaconStateMutatorResetEpochParticipationCall struct{ +type MockBeaconStateMutatorResetEpochParticipationCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorResetEpochParticipationCall) Return() *MockBeaconStateMutatorResetEpochParticipationCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorResetEpochParticipationCall) Do(f func()) *MockBeaconStateMutatorResetEpochParticipationCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorResetEpochParticipationCall) DoAndReturn(f func()) *MockBeaconStateMutatorResetEpochParticipationCall { c.Call = c.Call.DoAndReturn(f) @@ -484,19 +525,22 @@ func (mr *MockBeaconStateMutatorMockRecorder) ResetEth1DataVotes() *MockBeaconSt } // MockBeaconStateMutatorResetEth1DataVotesCall wrap *gomock.Call -type MockBeaconStateMutatorResetEth1DataVotesCall struct{ +type MockBeaconStateMutatorResetEth1DataVotesCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorResetEth1DataVotesCall) Return() *MockBeaconStateMutatorResetEth1DataVotesCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorResetEth1DataVotesCall) Do(f func()) *MockBeaconStateMutatorResetEth1DataVotesCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorResetEth1DataVotesCall) DoAndReturn(f func()) *MockBeaconStateMutatorResetEth1DataVotesCall { c.Call = c.Call.DoAndReturn(f) @@ -517,19 +561,22 @@ func (mr *MockBeaconStateMutatorMockRecorder) ResetHistoricalSummaries() *MockBe } // MockBeaconStateMutatorResetHistoricalSummariesCall wrap *gomock.Call -type MockBeaconStateMutatorResetHistoricalSummariesCall struct{ +type MockBeaconStateMutatorResetHistoricalSummariesCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorResetHistoricalSummariesCall) Return() *MockBeaconStateMutatorResetHistoricalSummariesCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorResetHistoricalSummariesCall) Do(f func()) *MockBeaconStateMutatorResetHistoricalSummariesCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorResetHistoricalSummariesCall) DoAndReturn(f func()) *MockBeaconStateMutatorResetHistoricalSummariesCall { c.Call = c.Call.DoAndReturn(f) @@ -550,19 +597,22 @@ func (mr *MockBeaconStateMutatorMockRecorder) ResetPreviousEpochAttestations() * } // MockBeaconStateMutatorResetPreviousEpochAttestationsCall wrap *gomock.Call -type MockBeaconStateMutatorResetPreviousEpochAttestationsCall struct{ +type MockBeaconStateMutatorResetPreviousEpochAttestationsCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorResetPreviousEpochAttestationsCall) Return() *MockBeaconStateMutatorResetPreviousEpochAttestationsCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorResetPreviousEpochAttestationsCall) Do(f func()) *MockBeaconStateMutatorResetPreviousEpochAttestationsCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorResetPreviousEpochAttestationsCall) DoAndReturn(f func()) *MockBeaconStateMutatorResetPreviousEpochAttestationsCall { c.Call = c.Call.DoAndReturn(f) @@ -570,32 +620,35 @@ func (c *MockBeaconStateMutatorResetPreviousEpochAttestationsCall) DoAndReturn(f } // SetActivationEligibilityEpochForValidatorAtIndex mocks base method. -func (m *MockBeaconStateMutator) SetActivationEligibilityEpochForValidatorAtIndex(arg0 int, arg1 uint64) { +func (m *MockBeaconStateMutator) SetActivationEligibilityEpochForValidatorAtIndex(index int, epoch uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetActivationEligibilityEpochForValidatorAtIndex", arg0, arg1) + m.ctrl.Call(m, "SetActivationEligibilityEpochForValidatorAtIndex", index, epoch) } // SetActivationEligibilityEpochForValidatorAtIndex indicates an expected call of SetActivationEligibilityEpochForValidatorAtIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetActivationEligibilityEpochForValidatorAtIndex(arg0, arg1 any) *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetActivationEligibilityEpochForValidatorAtIndex(index, epoch any) *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetActivationEligibilityEpochForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetActivationEligibilityEpochForValidatorAtIndex), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetActivationEligibilityEpochForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetActivationEligibilityEpochForValidatorAtIndex), index, epoch) return &MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall{Call: call} } // MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall struct{ +type MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall) Return() *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall) Do(f func(int, uint64)) *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall) DoAndReturn(f func(int, uint64)) *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -603,32 +656,35 @@ func (c *MockBeaconStateMutatorSetActivationEligibilityEpochForValidatorAtIndexC } // SetActivationEpochForValidatorAtIndex mocks base method. -func (m *MockBeaconStateMutator) SetActivationEpochForValidatorAtIndex(arg0 int, arg1 uint64) { +func (m *MockBeaconStateMutator) SetActivationEpochForValidatorAtIndex(index int, epoch uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetActivationEpochForValidatorAtIndex", arg0, arg1) + m.ctrl.Call(m, "SetActivationEpochForValidatorAtIndex", index, epoch) } // SetActivationEpochForValidatorAtIndex indicates an expected call of SetActivationEpochForValidatorAtIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetActivationEpochForValidatorAtIndex(arg0, arg1 any) *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetActivationEpochForValidatorAtIndex(index, epoch any) *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetActivationEpochForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetActivationEpochForValidatorAtIndex), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetActivationEpochForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetActivationEpochForValidatorAtIndex), index, epoch) return &MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall{Call: call} } // MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall struct{ +type MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall) Return() *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall) Do(f func(int, uint64)) *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall) DoAndReturn(f func(int, uint64)) *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -636,32 +692,35 @@ func (c *MockBeaconStateMutatorSetActivationEpochForValidatorAtIndexCall) DoAndR } // SetBlockRootAt mocks base method. -func (m *MockBeaconStateMutator) SetBlockRootAt(arg0 int, arg1 common.Hash) { +func (m *MockBeaconStateMutator) SetBlockRootAt(index int, root common.Hash) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetBlockRootAt", arg0, arg1) + m.ctrl.Call(m, "SetBlockRootAt", index, root) } // SetBlockRootAt indicates an expected call of SetBlockRootAt. -func (mr *MockBeaconStateMutatorMockRecorder) SetBlockRootAt(arg0, arg1 any) *MockBeaconStateMutatorSetBlockRootAtCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetBlockRootAt(index, root any) *MockBeaconStateMutatorSetBlockRootAtCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockRootAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetBlockRootAt), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockRootAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetBlockRootAt), index, root) return &MockBeaconStateMutatorSetBlockRootAtCall{Call: call} } // MockBeaconStateMutatorSetBlockRootAtCall wrap *gomock.Call -type MockBeaconStateMutatorSetBlockRootAtCall struct{ +type MockBeaconStateMutatorSetBlockRootAtCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetBlockRootAtCall) Return() *MockBeaconStateMutatorSetBlockRootAtCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetBlockRootAtCall) Do(f func(int, common.Hash)) *MockBeaconStateMutatorSetBlockRootAtCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetBlockRootAtCall) DoAndReturn(f func(int, common.Hash)) *MockBeaconStateMutatorSetBlockRootAtCall { c.Call = c.Call.DoAndReturn(f) @@ -669,32 +728,35 @@ func (c *MockBeaconStateMutatorSetBlockRootAtCall) DoAndReturn(f func(int, commo } // SetCurrentEpochParticipationFlags mocks base method. -func (m *MockBeaconStateMutator) SetCurrentEpochParticipationFlags(arg0 []cltypes.ParticipationFlags) { +func (m *MockBeaconStateMutator) SetCurrentEpochParticipationFlags(flags []cltypes.ParticipationFlags) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetCurrentEpochParticipationFlags", arg0) + m.ctrl.Call(m, "SetCurrentEpochParticipationFlags", flags) } // SetCurrentEpochParticipationFlags indicates an expected call of SetCurrentEpochParticipationFlags. -func (mr *MockBeaconStateMutatorMockRecorder) SetCurrentEpochParticipationFlags(arg0 any) *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetCurrentEpochParticipationFlags(flags any) *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentEpochParticipationFlags", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetCurrentEpochParticipationFlags), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentEpochParticipationFlags", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetCurrentEpochParticipationFlags), flags) return &MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall{Call: call} } // MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall wrap *gomock.Call -type MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall struct{ +type MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall) Return() *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall) Do(f func([]cltypes.ParticipationFlags)) *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall) DoAndReturn(f func([]cltypes.ParticipationFlags)) *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall { c.Call = c.Call.DoAndReturn(f) @@ -702,32 +764,35 @@ func (c *MockBeaconStateMutatorSetCurrentEpochParticipationFlagsCall) DoAndRetur } // SetCurrentJustifiedCheckpoint mocks base method. -func (m *MockBeaconStateMutator) SetCurrentJustifiedCheckpoint(arg0 solid.Checkpoint) { +func (m *MockBeaconStateMutator) SetCurrentJustifiedCheckpoint(currentJustifiedCheckpoint solid.Checkpoint) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetCurrentJustifiedCheckpoint", arg0) + m.ctrl.Call(m, "SetCurrentJustifiedCheckpoint", currentJustifiedCheckpoint) } // SetCurrentJustifiedCheckpoint indicates an expected call of SetCurrentJustifiedCheckpoint. -func (mr *MockBeaconStateMutatorMockRecorder) SetCurrentJustifiedCheckpoint(arg0 any) *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetCurrentJustifiedCheckpoint(currentJustifiedCheckpoint any) *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentJustifiedCheckpoint", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetCurrentJustifiedCheckpoint), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentJustifiedCheckpoint", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetCurrentJustifiedCheckpoint), currentJustifiedCheckpoint) return &MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall{Call: call} } // MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall wrap *gomock.Call -type MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall struct{ +type MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall) Return() *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall) Do(f func(solid.Checkpoint)) *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall) DoAndReturn(f func(solid.Checkpoint)) *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall { c.Call = c.Call.DoAndReturn(f) @@ -735,32 +800,35 @@ func (c *MockBeaconStateMutatorSetCurrentJustifiedCheckpointCall) DoAndReturn(f } // SetCurrentSyncCommittee mocks base method. -func (m *MockBeaconStateMutator) SetCurrentSyncCommittee(arg0 *solid.SyncCommittee) { +func (m *MockBeaconStateMutator) SetCurrentSyncCommittee(currentSyncCommittee *solid.SyncCommittee) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetCurrentSyncCommittee", arg0) + m.ctrl.Call(m, "SetCurrentSyncCommittee", currentSyncCommittee) } // SetCurrentSyncCommittee indicates an expected call of SetCurrentSyncCommittee. -func (mr *MockBeaconStateMutatorMockRecorder) SetCurrentSyncCommittee(arg0 any) *MockBeaconStateMutatorSetCurrentSyncCommitteeCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetCurrentSyncCommittee(currentSyncCommittee any) *MockBeaconStateMutatorSetCurrentSyncCommitteeCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentSyncCommittee", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetCurrentSyncCommittee), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentSyncCommittee", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetCurrentSyncCommittee), currentSyncCommittee) return &MockBeaconStateMutatorSetCurrentSyncCommitteeCall{Call: call} } // MockBeaconStateMutatorSetCurrentSyncCommitteeCall wrap *gomock.Call -type MockBeaconStateMutatorSetCurrentSyncCommitteeCall struct{ +type MockBeaconStateMutatorSetCurrentSyncCommitteeCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetCurrentSyncCommitteeCall) Return() *MockBeaconStateMutatorSetCurrentSyncCommitteeCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetCurrentSyncCommitteeCall) Do(f func(*solid.SyncCommittee)) *MockBeaconStateMutatorSetCurrentSyncCommitteeCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetCurrentSyncCommitteeCall) DoAndReturn(f func(*solid.SyncCommittee)) *MockBeaconStateMutatorSetCurrentSyncCommitteeCall { c.Call = c.Call.DoAndReturn(f) @@ -768,32 +836,35 @@ func (c *MockBeaconStateMutatorSetCurrentSyncCommitteeCall) DoAndReturn(f func(* } // SetEffectiveBalanceForValidatorAtIndex mocks base method. -func (m *MockBeaconStateMutator) SetEffectiveBalanceForValidatorAtIndex(arg0 int, arg1 uint64) { +func (m *MockBeaconStateMutator) SetEffectiveBalanceForValidatorAtIndex(index int, balance uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetEffectiveBalanceForValidatorAtIndex", arg0, arg1) + m.ctrl.Call(m, "SetEffectiveBalanceForValidatorAtIndex", index, balance) } // SetEffectiveBalanceForValidatorAtIndex indicates an expected call of SetEffectiveBalanceForValidatorAtIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetEffectiveBalanceForValidatorAtIndex(arg0, arg1 any) *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetEffectiveBalanceForValidatorAtIndex(index, balance any) *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEffectiveBalanceForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetEffectiveBalanceForValidatorAtIndex), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEffectiveBalanceForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetEffectiveBalanceForValidatorAtIndex), index, balance) return &MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall{Call: call} } // MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall struct{ +type MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall) Return() *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall) Do(f func(int, uint64)) *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall) DoAndReturn(f func(int, uint64)) *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -801,32 +872,35 @@ func (c *MockBeaconStateMutatorSetEffectiveBalanceForValidatorAtIndexCall) DoAnd } // SetEpochParticipationForValidatorIndex mocks base method. -func (m *MockBeaconStateMutator) SetEpochParticipationForValidatorIndex(arg0 bool, arg1 int, arg2 cltypes.ParticipationFlags) { +func (m *MockBeaconStateMutator) SetEpochParticipationForValidatorIndex(isCurrentEpoch bool, index int, flags cltypes.ParticipationFlags) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetEpochParticipationForValidatorIndex", arg0, arg1, arg2) + m.ctrl.Call(m, "SetEpochParticipationForValidatorIndex", isCurrentEpoch, index, flags) } // SetEpochParticipationForValidatorIndex indicates an expected call of SetEpochParticipationForValidatorIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetEpochParticipationForValidatorIndex(arg0, arg1, arg2 any) *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetEpochParticipationForValidatorIndex(isCurrentEpoch, index, flags any) *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEpochParticipationForValidatorIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetEpochParticipationForValidatorIndex), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEpochParticipationForValidatorIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetEpochParticipationForValidatorIndex), isCurrentEpoch, index, flags) return &MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall{Call: call} } // MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall struct{ +type MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall) Return() *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall) Do(f func(bool, int, cltypes.ParticipationFlags)) *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall) DoAndReturn(f func(bool, int, cltypes.ParticipationFlags)) *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -834,32 +908,35 @@ func (c *MockBeaconStateMutatorSetEpochParticipationForValidatorIndexCall) DoAnd } // SetEth1Data mocks base method. -func (m *MockBeaconStateMutator) SetEth1Data(arg0 *cltypes.Eth1Data) { +func (m *MockBeaconStateMutator) SetEth1Data(eth1Data *cltypes.Eth1Data) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetEth1Data", arg0) + m.ctrl.Call(m, "SetEth1Data", eth1Data) } // SetEth1Data indicates an expected call of SetEth1Data. -func (mr *MockBeaconStateMutatorMockRecorder) SetEth1Data(arg0 any) *MockBeaconStateMutatorSetEth1DataCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetEth1Data(eth1Data any) *MockBeaconStateMutatorSetEth1DataCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEth1Data", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetEth1Data), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEth1Data", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetEth1Data), eth1Data) return &MockBeaconStateMutatorSetEth1DataCall{Call: call} } // MockBeaconStateMutatorSetEth1DataCall wrap *gomock.Call -type MockBeaconStateMutatorSetEth1DataCall struct{ +type MockBeaconStateMutatorSetEth1DataCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetEth1DataCall) Return() *MockBeaconStateMutatorSetEth1DataCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetEth1DataCall) Do(f func(*cltypes.Eth1Data)) *MockBeaconStateMutatorSetEth1DataCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetEth1DataCall) DoAndReturn(f func(*cltypes.Eth1Data)) *MockBeaconStateMutatorSetEth1DataCall { c.Call = c.Call.DoAndReturn(f) @@ -867,32 +944,35 @@ func (c *MockBeaconStateMutatorSetEth1DataCall) DoAndReturn(f func(*cltypes.Eth1 } // SetEth1DepositIndex mocks base method. -func (m *MockBeaconStateMutator) SetEth1DepositIndex(arg0 uint64) { +func (m *MockBeaconStateMutator) SetEth1DepositIndex(eth1DepositIndex uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetEth1DepositIndex", arg0) + m.ctrl.Call(m, "SetEth1DepositIndex", eth1DepositIndex) } // SetEth1DepositIndex indicates an expected call of SetEth1DepositIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetEth1DepositIndex(arg0 any) *MockBeaconStateMutatorSetEth1DepositIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetEth1DepositIndex(eth1DepositIndex any) *MockBeaconStateMutatorSetEth1DepositIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEth1DepositIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetEth1DepositIndex), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEth1DepositIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetEth1DepositIndex), eth1DepositIndex) return &MockBeaconStateMutatorSetEth1DepositIndexCall{Call: call} } // MockBeaconStateMutatorSetEth1DepositIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetEth1DepositIndexCall struct{ +type MockBeaconStateMutatorSetEth1DepositIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetEth1DepositIndexCall) Return() *MockBeaconStateMutatorSetEth1DepositIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetEth1DepositIndexCall) Do(f func(uint64)) *MockBeaconStateMutatorSetEth1DepositIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetEth1DepositIndexCall) DoAndReturn(f func(uint64)) *MockBeaconStateMutatorSetEth1DepositIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -900,32 +980,35 @@ func (c *MockBeaconStateMutatorSetEth1DepositIndexCall) DoAndReturn(f func(uint6 } // SetExitEpochForValidatorAtIndex mocks base method. -func (m *MockBeaconStateMutator) SetExitEpochForValidatorAtIndex(arg0 int, arg1 uint64) { +func (m *MockBeaconStateMutator) SetExitEpochForValidatorAtIndex(index int, epoch uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetExitEpochForValidatorAtIndex", arg0, arg1) + m.ctrl.Call(m, "SetExitEpochForValidatorAtIndex", index, epoch) } // SetExitEpochForValidatorAtIndex indicates an expected call of SetExitEpochForValidatorAtIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetExitEpochForValidatorAtIndex(arg0, arg1 any) *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetExitEpochForValidatorAtIndex(index, epoch any) *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExitEpochForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetExitEpochForValidatorAtIndex), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExitEpochForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetExitEpochForValidatorAtIndex), index, epoch) return &MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall{Call: call} } // MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall struct{ +type MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall) Return() *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall) Do(f func(int, uint64)) *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall) DoAndReturn(f func(int, uint64)) *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -933,32 +1016,35 @@ func (c *MockBeaconStateMutatorSetExitEpochForValidatorAtIndexCall) DoAndReturn( } // SetFinalizedCheckpoint mocks base method. -func (m *MockBeaconStateMutator) SetFinalizedCheckpoint(arg0 solid.Checkpoint) { +func (m *MockBeaconStateMutator) SetFinalizedCheckpoint(finalizedCheckpoint solid.Checkpoint) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetFinalizedCheckpoint", arg0) + m.ctrl.Call(m, "SetFinalizedCheckpoint", finalizedCheckpoint) } // SetFinalizedCheckpoint indicates an expected call of SetFinalizedCheckpoint. -func (mr *MockBeaconStateMutatorMockRecorder) SetFinalizedCheckpoint(arg0 any) *MockBeaconStateMutatorSetFinalizedCheckpointCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetFinalizedCheckpoint(finalizedCheckpoint any) *MockBeaconStateMutatorSetFinalizedCheckpointCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFinalizedCheckpoint", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetFinalizedCheckpoint), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFinalizedCheckpoint", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetFinalizedCheckpoint), finalizedCheckpoint) return &MockBeaconStateMutatorSetFinalizedCheckpointCall{Call: call} } // MockBeaconStateMutatorSetFinalizedCheckpointCall wrap *gomock.Call -type MockBeaconStateMutatorSetFinalizedCheckpointCall struct{ +type MockBeaconStateMutatorSetFinalizedCheckpointCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetFinalizedCheckpointCall) Return() *MockBeaconStateMutatorSetFinalizedCheckpointCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetFinalizedCheckpointCall) Do(f func(solid.Checkpoint)) *MockBeaconStateMutatorSetFinalizedCheckpointCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetFinalizedCheckpointCall) DoAndReturn(f func(solid.Checkpoint)) *MockBeaconStateMutatorSetFinalizedCheckpointCall { c.Call = c.Call.DoAndReturn(f) @@ -966,32 +1052,35 @@ func (c *MockBeaconStateMutatorSetFinalizedCheckpointCall) DoAndReturn(f func(so } // SetFork mocks base method. -func (m *MockBeaconStateMutator) SetFork(arg0 *cltypes.Fork) { +func (m *MockBeaconStateMutator) SetFork(fork *cltypes.Fork) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetFork", arg0) + m.ctrl.Call(m, "SetFork", fork) } // SetFork indicates an expected call of SetFork. -func (mr *MockBeaconStateMutatorMockRecorder) SetFork(arg0 any) *MockBeaconStateMutatorSetForkCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetFork(fork any) *MockBeaconStateMutatorSetForkCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFork", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetFork), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFork", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetFork), fork) return &MockBeaconStateMutatorSetForkCall{Call: call} } // MockBeaconStateMutatorSetForkCall wrap *gomock.Call -type MockBeaconStateMutatorSetForkCall struct{ +type MockBeaconStateMutatorSetForkCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetForkCall) Return() *MockBeaconStateMutatorSetForkCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetForkCall) Do(f func(*cltypes.Fork)) *MockBeaconStateMutatorSetForkCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetForkCall) DoAndReturn(f func(*cltypes.Fork)) *MockBeaconStateMutatorSetForkCall { c.Call = c.Call.DoAndReturn(f) @@ -999,32 +1088,35 @@ func (c *MockBeaconStateMutatorSetForkCall) DoAndReturn(f func(*cltypes.Fork)) * } // SetInactivityScores mocks base method. -func (m *MockBeaconStateMutator) SetInactivityScores(arg0 []uint64) { +func (m *MockBeaconStateMutator) SetInactivityScores(scores []uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetInactivityScores", arg0) + m.ctrl.Call(m, "SetInactivityScores", scores) } // SetInactivityScores indicates an expected call of SetInactivityScores. -func (mr *MockBeaconStateMutatorMockRecorder) SetInactivityScores(arg0 any) *MockBeaconStateMutatorSetInactivityScoresCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetInactivityScores(scores any) *MockBeaconStateMutatorSetInactivityScoresCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInactivityScores", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetInactivityScores), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInactivityScores", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetInactivityScores), scores) return &MockBeaconStateMutatorSetInactivityScoresCall{Call: call} } // MockBeaconStateMutatorSetInactivityScoresCall wrap *gomock.Call -type MockBeaconStateMutatorSetInactivityScoresCall struct{ +type MockBeaconStateMutatorSetInactivityScoresCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetInactivityScoresCall) Return() *MockBeaconStateMutatorSetInactivityScoresCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetInactivityScoresCall) Do(f func([]uint64)) *MockBeaconStateMutatorSetInactivityScoresCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetInactivityScoresCall) DoAndReturn(f func([]uint64)) *MockBeaconStateMutatorSetInactivityScoresCall { c.Call = c.Call.DoAndReturn(f) @@ -1032,32 +1124,35 @@ func (c *MockBeaconStateMutatorSetInactivityScoresCall) DoAndReturn(f func([]uin } // SetJustificationBits mocks base method. -func (m *MockBeaconStateMutator) SetJustificationBits(arg0 cltypes.JustificationBits) { +func (m *MockBeaconStateMutator) SetJustificationBits(justificationBits cltypes.JustificationBits) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetJustificationBits", arg0) + m.ctrl.Call(m, "SetJustificationBits", justificationBits) } // SetJustificationBits indicates an expected call of SetJustificationBits. -func (mr *MockBeaconStateMutatorMockRecorder) SetJustificationBits(arg0 any) *MockBeaconStateMutatorSetJustificationBitsCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetJustificationBits(justificationBits any) *MockBeaconStateMutatorSetJustificationBitsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetJustificationBits", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetJustificationBits), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetJustificationBits", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetJustificationBits), justificationBits) return &MockBeaconStateMutatorSetJustificationBitsCall{Call: call} } // MockBeaconStateMutatorSetJustificationBitsCall wrap *gomock.Call -type MockBeaconStateMutatorSetJustificationBitsCall struct{ +type MockBeaconStateMutatorSetJustificationBitsCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetJustificationBitsCall) Return() *MockBeaconStateMutatorSetJustificationBitsCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetJustificationBitsCall) Do(f func(cltypes.JustificationBits)) *MockBeaconStateMutatorSetJustificationBitsCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetJustificationBitsCall) DoAndReturn(f func(cltypes.JustificationBits)) *MockBeaconStateMutatorSetJustificationBitsCall { c.Call = c.Call.DoAndReturn(f) @@ -1065,32 +1160,35 @@ func (c *MockBeaconStateMutatorSetJustificationBitsCall) DoAndReturn(f func(clty } // SetLatestBlockHeader mocks base method. -func (m *MockBeaconStateMutator) SetLatestBlockHeader(arg0 *cltypes.BeaconBlockHeader) { +func (m *MockBeaconStateMutator) SetLatestBlockHeader(header *cltypes.BeaconBlockHeader) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetLatestBlockHeader", arg0) + m.ctrl.Call(m, "SetLatestBlockHeader", header) } // SetLatestBlockHeader indicates an expected call of SetLatestBlockHeader. -func (mr *MockBeaconStateMutatorMockRecorder) SetLatestBlockHeader(arg0 any) *MockBeaconStateMutatorSetLatestBlockHeaderCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetLatestBlockHeader(header any) *MockBeaconStateMutatorSetLatestBlockHeaderCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLatestBlockHeader", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetLatestBlockHeader), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLatestBlockHeader", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetLatestBlockHeader), header) return &MockBeaconStateMutatorSetLatestBlockHeaderCall{Call: call} } // MockBeaconStateMutatorSetLatestBlockHeaderCall wrap *gomock.Call -type MockBeaconStateMutatorSetLatestBlockHeaderCall struct{ +type MockBeaconStateMutatorSetLatestBlockHeaderCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetLatestBlockHeaderCall) Return() *MockBeaconStateMutatorSetLatestBlockHeaderCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetLatestBlockHeaderCall) Do(f func(*cltypes.BeaconBlockHeader)) *MockBeaconStateMutatorSetLatestBlockHeaderCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetLatestBlockHeaderCall) DoAndReturn(f func(*cltypes.BeaconBlockHeader)) *MockBeaconStateMutatorSetLatestBlockHeaderCall { c.Call = c.Call.DoAndReturn(f) @@ -1098,32 +1196,35 @@ func (c *MockBeaconStateMutatorSetLatestBlockHeaderCall) DoAndReturn(f func(*clt } // SetLatestExecutionPayloadHeader mocks base method. -func (m *MockBeaconStateMutator) SetLatestExecutionPayloadHeader(arg0 *cltypes.Eth1Header) { +func (m *MockBeaconStateMutator) SetLatestExecutionPayloadHeader(header *cltypes.Eth1Header) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetLatestExecutionPayloadHeader", arg0) + m.ctrl.Call(m, "SetLatestExecutionPayloadHeader", header) } // SetLatestExecutionPayloadHeader indicates an expected call of SetLatestExecutionPayloadHeader. -func (mr *MockBeaconStateMutatorMockRecorder) SetLatestExecutionPayloadHeader(arg0 any) *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetLatestExecutionPayloadHeader(header any) *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLatestExecutionPayloadHeader", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetLatestExecutionPayloadHeader), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLatestExecutionPayloadHeader", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetLatestExecutionPayloadHeader), header) return &MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall{Call: call} } // MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall wrap *gomock.Call -type MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall struct{ +type MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall) Return() *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall) Do(f func(*cltypes.Eth1Header)) *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall) DoAndReturn(f func(*cltypes.Eth1Header)) *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall { c.Call = c.Call.DoAndReturn(f) @@ -1131,32 +1232,35 @@ func (c *MockBeaconStateMutatorSetLatestExecutionPayloadHeaderCall) DoAndReturn( } // SetNextSyncCommittee mocks base method. -func (m *MockBeaconStateMutator) SetNextSyncCommittee(arg0 *solid.SyncCommittee) { +func (m *MockBeaconStateMutator) SetNextSyncCommittee(nextSyncCommittee *solid.SyncCommittee) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetNextSyncCommittee", arg0) + m.ctrl.Call(m, "SetNextSyncCommittee", nextSyncCommittee) } // SetNextSyncCommittee indicates an expected call of SetNextSyncCommittee. -func (mr *MockBeaconStateMutatorMockRecorder) SetNextSyncCommittee(arg0 any) *MockBeaconStateMutatorSetNextSyncCommitteeCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetNextSyncCommittee(nextSyncCommittee any) *MockBeaconStateMutatorSetNextSyncCommitteeCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNextSyncCommittee", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetNextSyncCommittee), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNextSyncCommittee", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetNextSyncCommittee), nextSyncCommittee) return &MockBeaconStateMutatorSetNextSyncCommitteeCall{Call: call} } // MockBeaconStateMutatorSetNextSyncCommitteeCall wrap *gomock.Call -type MockBeaconStateMutatorSetNextSyncCommitteeCall struct{ +type MockBeaconStateMutatorSetNextSyncCommitteeCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetNextSyncCommitteeCall) Return() *MockBeaconStateMutatorSetNextSyncCommitteeCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetNextSyncCommitteeCall) Do(f func(*solid.SyncCommittee)) *MockBeaconStateMutatorSetNextSyncCommitteeCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetNextSyncCommitteeCall) DoAndReturn(f func(*solid.SyncCommittee)) *MockBeaconStateMutatorSetNextSyncCommitteeCall { c.Call = c.Call.DoAndReturn(f) @@ -1164,32 +1268,35 @@ func (c *MockBeaconStateMutatorSetNextSyncCommitteeCall) DoAndReturn(f func(*sol } // SetNextWithdrawalIndex mocks base method. -func (m *MockBeaconStateMutator) SetNextWithdrawalIndex(arg0 uint64) { +func (m *MockBeaconStateMutator) SetNextWithdrawalIndex(index uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetNextWithdrawalIndex", arg0) + m.ctrl.Call(m, "SetNextWithdrawalIndex", index) } // SetNextWithdrawalIndex indicates an expected call of SetNextWithdrawalIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetNextWithdrawalIndex(arg0 any) *MockBeaconStateMutatorSetNextWithdrawalIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetNextWithdrawalIndex(index any) *MockBeaconStateMutatorSetNextWithdrawalIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNextWithdrawalIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetNextWithdrawalIndex), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNextWithdrawalIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetNextWithdrawalIndex), index) return &MockBeaconStateMutatorSetNextWithdrawalIndexCall{Call: call} } // MockBeaconStateMutatorSetNextWithdrawalIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetNextWithdrawalIndexCall struct{ +type MockBeaconStateMutatorSetNextWithdrawalIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetNextWithdrawalIndexCall) Return() *MockBeaconStateMutatorSetNextWithdrawalIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetNextWithdrawalIndexCall) Do(f func(uint64)) *MockBeaconStateMutatorSetNextWithdrawalIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetNextWithdrawalIndexCall) DoAndReturn(f func(uint64)) *MockBeaconStateMutatorSetNextWithdrawalIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -1197,32 +1304,35 @@ func (c *MockBeaconStateMutatorSetNextWithdrawalIndexCall) DoAndReturn(f func(ui } // SetNextWithdrawalValidatorIndex mocks base method. -func (m *MockBeaconStateMutator) SetNextWithdrawalValidatorIndex(arg0 uint64) { +func (m *MockBeaconStateMutator) SetNextWithdrawalValidatorIndex(index uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetNextWithdrawalValidatorIndex", arg0) + m.ctrl.Call(m, "SetNextWithdrawalValidatorIndex", index) } // SetNextWithdrawalValidatorIndex indicates an expected call of SetNextWithdrawalValidatorIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetNextWithdrawalValidatorIndex(arg0 any) *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetNextWithdrawalValidatorIndex(index any) *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNextWithdrawalValidatorIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetNextWithdrawalValidatorIndex), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNextWithdrawalValidatorIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetNextWithdrawalValidatorIndex), index) return &MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall{Call: call} } // MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall struct{ +type MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall) Return() *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall) Do(f func(uint64)) *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall) DoAndReturn(f func(uint64)) *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -1230,32 +1340,35 @@ func (c *MockBeaconStateMutatorSetNextWithdrawalValidatorIndexCall) DoAndReturn( } // SetPreviousEpochAttestations mocks base method. -func (m *MockBeaconStateMutator) SetPreviousEpochAttestations(arg0 *solid.ListSSZ[*solid.PendingAttestation]) { +func (m *MockBeaconStateMutator) SetPreviousEpochAttestations(attestations *solid.ListSSZ[*solid.PendingAttestation]) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetPreviousEpochAttestations", arg0) + m.ctrl.Call(m, "SetPreviousEpochAttestations", attestations) } // SetPreviousEpochAttestations indicates an expected call of SetPreviousEpochAttestations. -func (mr *MockBeaconStateMutatorMockRecorder) SetPreviousEpochAttestations(arg0 any) *MockBeaconStateMutatorSetPreviousEpochAttestationsCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetPreviousEpochAttestations(attestations any) *MockBeaconStateMutatorSetPreviousEpochAttestationsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPreviousEpochAttestations", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetPreviousEpochAttestations), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPreviousEpochAttestations", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetPreviousEpochAttestations), attestations) return &MockBeaconStateMutatorSetPreviousEpochAttestationsCall{Call: call} } // MockBeaconStateMutatorSetPreviousEpochAttestationsCall wrap *gomock.Call -type MockBeaconStateMutatorSetPreviousEpochAttestationsCall struct{ +type MockBeaconStateMutatorSetPreviousEpochAttestationsCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetPreviousEpochAttestationsCall) Return() *MockBeaconStateMutatorSetPreviousEpochAttestationsCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetPreviousEpochAttestationsCall) Do(f func(*solid.ListSSZ[*solid.PendingAttestation])) *MockBeaconStateMutatorSetPreviousEpochAttestationsCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetPreviousEpochAttestationsCall) DoAndReturn(f func(*solid.ListSSZ[*solid.PendingAttestation])) *MockBeaconStateMutatorSetPreviousEpochAttestationsCall { c.Call = c.Call.DoAndReturn(f) @@ -1263,32 +1376,35 @@ func (c *MockBeaconStateMutatorSetPreviousEpochAttestationsCall) DoAndReturn(f f } // SetPreviousEpochParticipationFlags mocks base method. -func (m *MockBeaconStateMutator) SetPreviousEpochParticipationFlags(arg0 []cltypes.ParticipationFlags) { +func (m *MockBeaconStateMutator) SetPreviousEpochParticipationFlags(flags []cltypes.ParticipationFlags) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetPreviousEpochParticipationFlags", arg0) + m.ctrl.Call(m, "SetPreviousEpochParticipationFlags", flags) } // SetPreviousEpochParticipationFlags indicates an expected call of SetPreviousEpochParticipationFlags. -func (mr *MockBeaconStateMutatorMockRecorder) SetPreviousEpochParticipationFlags(arg0 any) *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetPreviousEpochParticipationFlags(flags any) *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPreviousEpochParticipationFlags", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetPreviousEpochParticipationFlags), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPreviousEpochParticipationFlags", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetPreviousEpochParticipationFlags), flags) return &MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall{Call: call} } // MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall wrap *gomock.Call -type MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall struct{ +type MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall) Return() *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall) Do(f func([]cltypes.ParticipationFlags)) *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall) DoAndReturn(f func([]cltypes.ParticipationFlags)) *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall { c.Call = c.Call.DoAndReturn(f) @@ -1296,32 +1412,35 @@ func (c *MockBeaconStateMutatorSetPreviousEpochParticipationFlagsCall) DoAndRetu } // SetPreviousJustifiedCheckpoint mocks base method. -func (m *MockBeaconStateMutator) SetPreviousJustifiedCheckpoint(arg0 solid.Checkpoint) { +func (m *MockBeaconStateMutator) SetPreviousJustifiedCheckpoint(previousJustifiedCheckpoint solid.Checkpoint) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetPreviousJustifiedCheckpoint", arg0) + m.ctrl.Call(m, "SetPreviousJustifiedCheckpoint", previousJustifiedCheckpoint) } // SetPreviousJustifiedCheckpoint indicates an expected call of SetPreviousJustifiedCheckpoint. -func (mr *MockBeaconStateMutatorMockRecorder) SetPreviousJustifiedCheckpoint(arg0 any) *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetPreviousJustifiedCheckpoint(previousJustifiedCheckpoint any) *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPreviousJustifiedCheckpoint", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetPreviousJustifiedCheckpoint), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPreviousJustifiedCheckpoint", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetPreviousJustifiedCheckpoint), previousJustifiedCheckpoint) return &MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall{Call: call} } // MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall wrap *gomock.Call -type MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall struct{ +type MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall) Return() *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall) Do(f func(solid.Checkpoint)) *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall) DoAndReturn(f func(solid.Checkpoint)) *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall { c.Call = c.Call.DoAndReturn(f) @@ -1329,32 +1448,35 @@ func (c *MockBeaconStateMutatorSetPreviousJustifiedCheckpointCall) DoAndReturn(f } // SetRandaoMixAt mocks base method. -func (m *MockBeaconStateMutator) SetRandaoMixAt(arg0 int, arg1 common.Hash) { +func (m *MockBeaconStateMutator) SetRandaoMixAt(index int, mix common.Hash) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetRandaoMixAt", arg0, arg1) + m.ctrl.Call(m, "SetRandaoMixAt", index, mix) } // SetRandaoMixAt indicates an expected call of SetRandaoMixAt. -func (mr *MockBeaconStateMutatorMockRecorder) SetRandaoMixAt(arg0, arg1 any) *MockBeaconStateMutatorSetRandaoMixAtCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetRandaoMixAt(index, mix any) *MockBeaconStateMutatorSetRandaoMixAtCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRandaoMixAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetRandaoMixAt), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRandaoMixAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetRandaoMixAt), index, mix) return &MockBeaconStateMutatorSetRandaoMixAtCall{Call: call} } // MockBeaconStateMutatorSetRandaoMixAtCall wrap *gomock.Call -type MockBeaconStateMutatorSetRandaoMixAtCall struct{ +type MockBeaconStateMutatorSetRandaoMixAtCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetRandaoMixAtCall) Return() *MockBeaconStateMutatorSetRandaoMixAtCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetRandaoMixAtCall) Do(f func(int, common.Hash)) *MockBeaconStateMutatorSetRandaoMixAtCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetRandaoMixAtCall) DoAndReturn(f func(int, common.Hash)) *MockBeaconStateMutatorSetRandaoMixAtCall { c.Call = c.Call.DoAndReturn(f) @@ -1362,32 +1484,35 @@ func (c *MockBeaconStateMutatorSetRandaoMixAtCall) DoAndReturn(f func(int, commo } // SetSlashingSegmentAt mocks base method. -func (m *MockBeaconStateMutator) SetSlashingSegmentAt(arg0 int, arg1 uint64) { +func (m *MockBeaconStateMutator) SetSlashingSegmentAt(index int, segment uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetSlashingSegmentAt", arg0, arg1) + m.ctrl.Call(m, "SetSlashingSegmentAt", index, segment) } // SetSlashingSegmentAt indicates an expected call of SetSlashingSegmentAt. -func (mr *MockBeaconStateMutatorMockRecorder) SetSlashingSegmentAt(arg0, arg1 any) *MockBeaconStateMutatorSetSlashingSegmentAtCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetSlashingSegmentAt(index, segment any) *MockBeaconStateMutatorSetSlashingSegmentAtCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSlashingSegmentAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetSlashingSegmentAt), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSlashingSegmentAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetSlashingSegmentAt), index, segment) return &MockBeaconStateMutatorSetSlashingSegmentAtCall{Call: call} } // MockBeaconStateMutatorSetSlashingSegmentAtCall wrap *gomock.Call -type MockBeaconStateMutatorSetSlashingSegmentAtCall struct{ +type MockBeaconStateMutatorSetSlashingSegmentAtCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetSlashingSegmentAtCall) Return() *MockBeaconStateMutatorSetSlashingSegmentAtCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetSlashingSegmentAtCall) Do(f func(int, uint64)) *MockBeaconStateMutatorSetSlashingSegmentAtCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetSlashingSegmentAtCall) DoAndReturn(f func(int, uint64)) *MockBeaconStateMutatorSetSlashingSegmentAtCall { c.Call = c.Call.DoAndReturn(f) @@ -1395,32 +1520,35 @@ func (c *MockBeaconStateMutatorSetSlashingSegmentAtCall) DoAndReturn(f func(int, } // SetSlot mocks base method. -func (m *MockBeaconStateMutator) SetSlot(arg0 uint64) { +func (m *MockBeaconStateMutator) SetSlot(slot uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetSlot", arg0) + m.ctrl.Call(m, "SetSlot", slot) } // SetSlot indicates an expected call of SetSlot. -func (mr *MockBeaconStateMutatorMockRecorder) SetSlot(arg0 any) *MockBeaconStateMutatorSetSlotCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetSlot(slot any) *MockBeaconStateMutatorSetSlotCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSlot", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetSlot), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSlot", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetSlot), slot) return &MockBeaconStateMutatorSetSlotCall{Call: call} } // MockBeaconStateMutatorSetSlotCall wrap *gomock.Call -type MockBeaconStateMutatorSetSlotCall struct{ +type MockBeaconStateMutatorSetSlotCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetSlotCall) Return() *MockBeaconStateMutatorSetSlotCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetSlotCall) Do(f func(uint64)) *MockBeaconStateMutatorSetSlotCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetSlotCall) DoAndReturn(f func(uint64)) *MockBeaconStateMutatorSetSlotCall { c.Call = c.Call.DoAndReturn(f) @@ -1428,32 +1556,35 @@ func (c *MockBeaconStateMutatorSetSlotCall) DoAndReturn(f func(uint64)) *MockBea } // SetStateRootAt mocks base method. -func (m *MockBeaconStateMutator) SetStateRootAt(arg0 int, arg1 common.Hash) { +func (m *MockBeaconStateMutator) SetStateRootAt(index int, root common.Hash) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetStateRootAt", arg0, arg1) + m.ctrl.Call(m, "SetStateRootAt", index, root) } // SetStateRootAt indicates an expected call of SetStateRootAt. -func (mr *MockBeaconStateMutatorMockRecorder) SetStateRootAt(arg0, arg1 any) *MockBeaconStateMutatorSetStateRootAtCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetStateRootAt(index, root any) *MockBeaconStateMutatorSetStateRootAtCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStateRootAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetStateRootAt), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStateRootAt", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetStateRootAt), index, root) return &MockBeaconStateMutatorSetStateRootAtCall{Call: call} } // MockBeaconStateMutatorSetStateRootAtCall wrap *gomock.Call -type MockBeaconStateMutatorSetStateRootAtCall struct{ +type MockBeaconStateMutatorSetStateRootAtCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetStateRootAtCall) Return() *MockBeaconStateMutatorSetStateRootAtCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetStateRootAtCall) Do(f func(int, common.Hash)) *MockBeaconStateMutatorSetStateRootAtCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetStateRootAtCall) DoAndReturn(f func(int, common.Hash)) *MockBeaconStateMutatorSetStateRootAtCall { c.Call = c.Call.DoAndReturn(f) @@ -1461,32 +1592,35 @@ func (c *MockBeaconStateMutatorSetStateRootAtCall) DoAndReturn(f func(int, commo } // SetValidatorAtIndex mocks base method. -func (m *MockBeaconStateMutator) SetValidatorAtIndex(arg0 int, arg1 solid.Validator) { +func (m *MockBeaconStateMutator) SetValidatorAtIndex(index int, validator solid.Validator) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetValidatorAtIndex", arg0, arg1) + m.ctrl.Call(m, "SetValidatorAtIndex", index, validator) } // SetValidatorAtIndex indicates an expected call of SetValidatorAtIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorAtIndex(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorAtIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorAtIndex(index, validator any) *MockBeaconStateMutatorSetValidatorAtIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorAtIndex), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorAtIndex), index, validator) return &MockBeaconStateMutatorSetValidatorAtIndexCall{Call: call} } // MockBeaconStateMutatorSetValidatorAtIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorAtIndexCall struct{ +type MockBeaconStateMutatorSetValidatorAtIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorAtIndexCall) Return() *MockBeaconStateMutatorSetValidatorAtIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorAtIndexCall) Do(f func(int, solid.Validator)) *MockBeaconStateMutatorSetValidatorAtIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorAtIndexCall) DoAndReturn(f func(int, solid.Validator)) *MockBeaconStateMutatorSetValidatorAtIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -1494,34 +1628,37 @@ func (c *MockBeaconStateMutatorSetValidatorAtIndexCall) DoAndReturn(f func(int, } // SetValidatorBalance mocks base method. -func (m *MockBeaconStateMutator) SetValidatorBalance(arg0 int, arg1 uint64) error { +func (m *MockBeaconStateMutator) SetValidatorBalance(index int, balance uint64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorBalance", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorBalance", index, balance) ret0, _ := ret[0].(error) return ret0 } // SetValidatorBalance indicates an expected call of SetValidatorBalance. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorBalance(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorBalanceCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorBalance(index, balance any) *MockBeaconStateMutatorSetValidatorBalanceCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorBalance", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorBalance), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorBalance", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorBalance), index, balance) return &MockBeaconStateMutatorSetValidatorBalanceCall{Call: call} } // MockBeaconStateMutatorSetValidatorBalanceCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorBalanceCall struct{ +type MockBeaconStateMutatorSetValidatorBalanceCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorBalanceCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorBalanceCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorBalanceCall) Do(f func(int, uint64) error) *MockBeaconStateMutatorSetValidatorBalanceCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorBalanceCall) DoAndReturn(f func(int, uint64) error) *MockBeaconStateMutatorSetValidatorBalanceCall { c.Call = c.Call.DoAndReturn(f) @@ -1529,34 +1666,37 @@ func (c *MockBeaconStateMutatorSetValidatorBalanceCall) DoAndReturn(f func(int, } // SetValidatorInactivityScore mocks base method. -func (m *MockBeaconStateMutator) SetValidatorInactivityScore(arg0 int, arg1 uint64) error { +func (m *MockBeaconStateMutator) SetValidatorInactivityScore(index int, score uint64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorInactivityScore", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorInactivityScore", index, score) ret0, _ := ret[0].(error) return ret0 } // SetValidatorInactivityScore indicates an expected call of SetValidatorInactivityScore. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorInactivityScore(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorInactivityScoreCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorInactivityScore(index, score any) *MockBeaconStateMutatorSetValidatorInactivityScoreCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorInactivityScore", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorInactivityScore), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorInactivityScore", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorInactivityScore), index, score) return &MockBeaconStateMutatorSetValidatorInactivityScoreCall{Call: call} } // MockBeaconStateMutatorSetValidatorInactivityScoreCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorInactivityScoreCall struct{ +type MockBeaconStateMutatorSetValidatorInactivityScoreCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorInactivityScoreCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorInactivityScoreCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorInactivityScoreCall) Do(f func(int, uint64) error) *MockBeaconStateMutatorSetValidatorInactivityScoreCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorInactivityScoreCall) DoAndReturn(f func(int, uint64) error) *MockBeaconStateMutatorSetValidatorInactivityScoreCall { c.Call = c.Call.DoAndReturn(f) @@ -1564,34 +1704,37 @@ func (c *MockBeaconStateMutatorSetValidatorInactivityScoreCall) DoAndReturn(f fu } // SetValidatorIsCurrentMatchingHeadAttester mocks base method. -func (m *MockBeaconStateMutator) SetValidatorIsCurrentMatchingHeadAttester(arg0 int, arg1 bool) error { +func (m *MockBeaconStateMutator) SetValidatorIsCurrentMatchingHeadAttester(index int, value bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorIsCurrentMatchingHeadAttester", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorIsCurrentMatchingHeadAttester", index, value) ret0, _ := ret[0].(error) return ret0 } // SetValidatorIsCurrentMatchingHeadAttester indicates an expected call of SetValidatorIsCurrentMatchingHeadAttester. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsCurrentMatchingHeadAttester(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsCurrentMatchingHeadAttester(index, value any) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsCurrentMatchingHeadAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsCurrentMatchingHeadAttester), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsCurrentMatchingHeadAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsCurrentMatchingHeadAttester), index, value) return &MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall{Call: call} } // MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall struct{ +type MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall) Do(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall) DoAndReturn(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall { c.Call = c.Call.DoAndReturn(f) @@ -1599,34 +1742,37 @@ func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingHeadAttesterCall) Do } // SetValidatorIsCurrentMatchingSourceAttester mocks base method. -func (m *MockBeaconStateMutator) SetValidatorIsCurrentMatchingSourceAttester(arg0 int, arg1 bool) error { +func (m *MockBeaconStateMutator) SetValidatorIsCurrentMatchingSourceAttester(index int, value bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorIsCurrentMatchingSourceAttester", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorIsCurrentMatchingSourceAttester", index, value) ret0, _ := ret[0].(error) return ret0 } // SetValidatorIsCurrentMatchingSourceAttester indicates an expected call of SetValidatorIsCurrentMatchingSourceAttester. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsCurrentMatchingSourceAttester(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsCurrentMatchingSourceAttester(index, value any) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsCurrentMatchingSourceAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsCurrentMatchingSourceAttester), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsCurrentMatchingSourceAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsCurrentMatchingSourceAttester), index, value) return &MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall{Call: call} } // MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall struct{ +type MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall) Do(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall) DoAndReturn(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall { c.Call = c.Call.DoAndReturn(f) @@ -1634,34 +1780,37 @@ func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingSourceAttesterCall) } // SetValidatorIsCurrentMatchingTargetAttester mocks base method. -func (m *MockBeaconStateMutator) SetValidatorIsCurrentMatchingTargetAttester(arg0 int, arg1 bool) error { +func (m *MockBeaconStateMutator) SetValidatorIsCurrentMatchingTargetAttester(index int, value bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorIsCurrentMatchingTargetAttester", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorIsCurrentMatchingTargetAttester", index, value) ret0, _ := ret[0].(error) return ret0 } // SetValidatorIsCurrentMatchingTargetAttester indicates an expected call of SetValidatorIsCurrentMatchingTargetAttester. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsCurrentMatchingTargetAttester(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsCurrentMatchingTargetAttester(index, value any) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsCurrentMatchingTargetAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsCurrentMatchingTargetAttester), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsCurrentMatchingTargetAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsCurrentMatchingTargetAttester), index, value) return &MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall{Call: call} } // MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall struct{ +type MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall) Do(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall) DoAndReturn(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall { c.Call = c.Call.DoAndReturn(f) @@ -1669,34 +1818,37 @@ func (c *MockBeaconStateMutatorSetValidatorIsCurrentMatchingTargetAttesterCall) } // SetValidatorIsPreviousMatchingHeadAttester mocks base method. -func (m *MockBeaconStateMutator) SetValidatorIsPreviousMatchingHeadAttester(arg0 int, arg1 bool) error { +func (m *MockBeaconStateMutator) SetValidatorIsPreviousMatchingHeadAttester(index int, value bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorIsPreviousMatchingHeadAttester", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorIsPreviousMatchingHeadAttester", index, value) ret0, _ := ret[0].(error) return ret0 } // SetValidatorIsPreviousMatchingHeadAttester indicates an expected call of SetValidatorIsPreviousMatchingHeadAttester. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsPreviousMatchingHeadAttester(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsPreviousMatchingHeadAttester(index, value any) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsPreviousMatchingHeadAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsPreviousMatchingHeadAttester), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsPreviousMatchingHeadAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsPreviousMatchingHeadAttester), index, value) return &MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall{Call: call} } // MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall struct{ +type MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall) Do(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall) DoAndReturn(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall { c.Call = c.Call.DoAndReturn(f) @@ -1704,34 +1856,37 @@ func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingHeadAttesterCall) D } // SetValidatorIsPreviousMatchingSourceAttester mocks base method. -func (m *MockBeaconStateMutator) SetValidatorIsPreviousMatchingSourceAttester(arg0 int, arg1 bool) error { +func (m *MockBeaconStateMutator) SetValidatorIsPreviousMatchingSourceAttester(index int, value bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorIsPreviousMatchingSourceAttester", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorIsPreviousMatchingSourceAttester", index, value) ret0, _ := ret[0].(error) return ret0 } // SetValidatorIsPreviousMatchingSourceAttester indicates an expected call of SetValidatorIsPreviousMatchingSourceAttester. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsPreviousMatchingSourceAttester(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsPreviousMatchingSourceAttester(index, value any) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsPreviousMatchingSourceAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsPreviousMatchingSourceAttester), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsPreviousMatchingSourceAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsPreviousMatchingSourceAttester), index, value) return &MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall{Call: call} } // MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall struct{ +type MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall) Do(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall) DoAndReturn(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall { c.Call = c.Call.DoAndReturn(f) @@ -1739,34 +1894,37 @@ func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingSourceAttesterCall) } // SetValidatorIsPreviousMatchingTargetAttester mocks base method. -func (m *MockBeaconStateMutator) SetValidatorIsPreviousMatchingTargetAttester(arg0 int, arg1 bool) error { +func (m *MockBeaconStateMutator) SetValidatorIsPreviousMatchingTargetAttester(index int, value bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorIsPreviousMatchingTargetAttester", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorIsPreviousMatchingTargetAttester", index, value) ret0, _ := ret[0].(error) return ret0 } // SetValidatorIsPreviousMatchingTargetAttester indicates an expected call of SetValidatorIsPreviousMatchingTargetAttester. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsPreviousMatchingTargetAttester(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorIsPreviousMatchingTargetAttester(index, value any) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsPreviousMatchingTargetAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsPreviousMatchingTargetAttester), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorIsPreviousMatchingTargetAttester", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorIsPreviousMatchingTargetAttester), index, value) return &MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall{Call: call} } // MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall struct{ +type MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall) Do(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall) DoAndReturn(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall { c.Call = c.Call.DoAndReturn(f) @@ -1774,34 +1932,37 @@ func (c *MockBeaconStateMutatorSetValidatorIsPreviousMatchingTargetAttesterCall) } // SetValidatorMinCurrentInclusionDelayAttestation mocks base method. -func (m *MockBeaconStateMutator) SetValidatorMinCurrentInclusionDelayAttestation(arg0 int, arg1 *solid.PendingAttestation) error { +func (m *MockBeaconStateMutator) SetValidatorMinCurrentInclusionDelayAttestation(index int, value *solid.PendingAttestation) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorMinCurrentInclusionDelayAttestation", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorMinCurrentInclusionDelayAttestation", index, value) ret0, _ := ret[0].(error) return ret0 } // SetValidatorMinCurrentInclusionDelayAttestation indicates an expected call of SetValidatorMinCurrentInclusionDelayAttestation. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorMinCurrentInclusionDelayAttestation(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorMinCurrentInclusionDelayAttestation(index, value any) *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorMinCurrentInclusionDelayAttestation", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorMinCurrentInclusionDelayAttestation), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorMinCurrentInclusionDelayAttestation", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorMinCurrentInclusionDelayAttestation), index, value) return &MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall{Call: call} } // MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall struct{ +type MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall) Do(f func(int, *solid.PendingAttestation) error) *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall) DoAndReturn(f func(int, *solid.PendingAttestation) error) *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCall { c.Call = c.Call.DoAndReturn(f) @@ -1809,34 +1970,37 @@ func (c *MockBeaconStateMutatorSetValidatorMinCurrentInclusionDelayAttestationCa } // SetValidatorMinPreviousInclusionDelayAttestation mocks base method. -func (m *MockBeaconStateMutator) SetValidatorMinPreviousInclusionDelayAttestation(arg0 int, arg1 *solid.PendingAttestation) error { +func (m *MockBeaconStateMutator) SetValidatorMinPreviousInclusionDelayAttestation(index int, value *solid.PendingAttestation) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorMinPreviousInclusionDelayAttestation", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorMinPreviousInclusionDelayAttestation", index, value) ret0, _ := ret[0].(error) return ret0 } // SetValidatorMinPreviousInclusionDelayAttestation indicates an expected call of SetValidatorMinPreviousInclusionDelayAttestation. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorMinPreviousInclusionDelayAttestation(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorMinPreviousInclusionDelayAttestation(index, value any) *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorMinPreviousInclusionDelayAttestation", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorMinPreviousInclusionDelayAttestation), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorMinPreviousInclusionDelayAttestation", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorMinPreviousInclusionDelayAttestation), index, value) return &MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall{Call: call} } // MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall struct{ +type MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall) Do(f func(int, *solid.PendingAttestation) error) *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall) DoAndReturn(f func(int, *solid.PendingAttestation) error) *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationCall { c.Call = c.Call.DoAndReturn(f) @@ -1844,34 +2008,37 @@ func (c *MockBeaconStateMutatorSetValidatorMinPreviousInclusionDelayAttestationC } // SetValidatorSlashed mocks base method. -func (m *MockBeaconStateMutator) SetValidatorSlashed(arg0 int, arg1 bool) error { +func (m *MockBeaconStateMutator) SetValidatorSlashed(index int, slashed bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetValidatorSlashed", arg0, arg1) + ret := m.ctrl.Call(m, "SetValidatorSlashed", index, slashed) ret0, _ := ret[0].(error) return ret0 } // SetValidatorSlashed indicates an expected call of SetValidatorSlashed. -func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorSlashed(arg0, arg1 any) *MockBeaconStateMutatorSetValidatorSlashedCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetValidatorSlashed(index, slashed any) *MockBeaconStateMutatorSetValidatorSlashedCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorSlashed", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorSlashed), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValidatorSlashed", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetValidatorSlashed), index, slashed) return &MockBeaconStateMutatorSetValidatorSlashedCall{Call: call} } // MockBeaconStateMutatorSetValidatorSlashedCall wrap *gomock.Call -type MockBeaconStateMutatorSetValidatorSlashedCall struct{ +type MockBeaconStateMutatorSetValidatorSlashedCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetValidatorSlashedCall) Return(arg0 error) *MockBeaconStateMutatorSetValidatorSlashedCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetValidatorSlashedCall) Do(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorSlashedCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetValidatorSlashedCall) DoAndReturn(f func(int, bool) error) *MockBeaconStateMutatorSetValidatorSlashedCall { c.Call = c.Call.DoAndReturn(f) @@ -1879,32 +2046,35 @@ func (c *MockBeaconStateMutatorSetValidatorSlashedCall) DoAndReturn(f func(int, } // SetVersion mocks base method. -func (m *MockBeaconStateMutator) SetVersion(arg0 clparams.StateVersion) { +func (m *MockBeaconStateMutator) SetVersion(version clparams.StateVersion) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetVersion", arg0) + m.ctrl.Call(m, "SetVersion", version) } // SetVersion indicates an expected call of SetVersion. -func (mr *MockBeaconStateMutatorMockRecorder) SetVersion(arg0 any) *MockBeaconStateMutatorSetVersionCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetVersion(version any) *MockBeaconStateMutatorSetVersionCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVersion", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetVersion), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVersion", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetVersion), version) return &MockBeaconStateMutatorSetVersionCall{Call: call} } // MockBeaconStateMutatorSetVersionCall wrap *gomock.Call -type MockBeaconStateMutatorSetVersionCall struct{ +type MockBeaconStateMutatorSetVersionCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetVersionCall) Return() *MockBeaconStateMutatorSetVersionCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetVersionCall) Do(f func(clparams.StateVersion)) *MockBeaconStateMutatorSetVersionCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetVersionCall) DoAndReturn(f func(clparams.StateVersion)) *MockBeaconStateMutatorSetVersionCall { c.Call = c.Call.DoAndReturn(f) @@ -1912,34 +2082,37 @@ func (c *MockBeaconStateMutatorSetVersionCall) DoAndReturn(f func(clparams.State } // SetWithdrawableEpochForValidatorAtIndex mocks base method. -func (m *MockBeaconStateMutator) SetWithdrawableEpochForValidatorAtIndex(arg0 int, arg1 uint64) error { +func (m *MockBeaconStateMutator) SetWithdrawableEpochForValidatorAtIndex(index int, epoch uint64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetWithdrawableEpochForValidatorAtIndex", arg0, arg1) + ret := m.ctrl.Call(m, "SetWithdrawableEpochForValidatorAtIndex", index, epoch) ret0, _ := ret[0].(error) return ret0 } // SetWithdrawableEpochForValidatorAtIndex indicates an expected call of SetWithdrawableEpochForValidatorAtIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetWithdrawableEpochForValidatorAtIndex(arg0, arg1 any) *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetWithdrawableEpochForValidatorAtIndex(index, epoch any) *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWithdrawableEpochForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetWithdrawableEpochForValidatorAtIndex), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWithdrawableEpochForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetWithdrawableEpochForValidatorAtIndex), index, epoch) return &MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall{Call: call} } // MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall struct{ +type MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall) Return(arg0 error) *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall { - c.Call = c.Call.Return(arg0) + c.Call = c.Call.Return(arg0) return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall) Do(f func(int, uint64) error) *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall) DoAndReturn(f func(int, uint64) error) *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall { c.Call = c.Call.DoAndReturn(f) @@ -1947,32 +2120,35 @@ func (c *MockBeaconStateMutatorSetWithdrawableEpochForValidatorAtIndexCall) DoAn } // SetWithdrawalCredentialForValidatorAtIndex mocks base method. -func (m *MockBeaconStateMutator) SetWithdrawalCredentialForValidatorAtIndex(arg0 int, arg1 common.Hash) { +func (m *MockBeaconStateMutator) SetWithdrawalCredentialForValidatorAtIndex(index int, creds common.Hash) { m.ctrl.T.Helper() - m.ctrl.Call(m, "SetWithdrawalCredentialForValidatorAtIndex", arg0, arg1) + m.ctrl.Call(m, "SetWithdrawalCredentialForValidatorAtIndex", index, creds) } // SetWithdrawalCredentialForValidatorAtIndex indicates an expected call of SetWithdrawalCredentialForValidatorAtIndex. -func (mr *MockBeaconStateMutatorMockRecorder) SetWithdrawalCredentialForValidatorAtIndex(arg0, arg1 any) *MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall { +func (mr *MockBeaconStateMutatorMockRecorder) SetWithdrawalCredentialForValidatorAtIndex(index, creds any) *MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWithdrawalCredentialForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetWithdrawalCredentialForValidatorAtIndex), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWithdrawalCredentialForValidatorAtIndex", reflect.TypeOf((*MockBeaconStateMutator)(nil).SetWithdrawalCredentialForValidatorAtIndex), index, creds) return &MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall{Call: call} } // MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall wrap *gomock.Call -type MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall struct{ +type MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall struct { *gomock.Call } + // Return rewrite *gomock.Call.Return func (c *MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall) Return() *MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall { - c.Call = c.Call.Return() + c.Call = c.Call.Return() return c } + // Do rewrite *gomock.Call.Do func (c *MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall) Do(f func(int, common.Hash)) *MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall { c.Call = c.Call.Do(f) return c } + // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall) DoAndReturn(f func(int, common.Hash)) *MockBeaconStateMutatorSetWithdrawalCredentialForValidatorAtIndexCall { c.Call = c.Call.DoAndReturn(f) diff --git a/cl/abstract/mock_services/beacon_state_reader_mock.go b/cl/abstract/mock_services/beacon_state_reader_mock.go index 8927b3b66f1..13077409a3b 100644 --- a/cl/abstract/mock_services/beacon_state_reader_mock.go +++ b/cl/abstract/mock_services/beacon_state_reader_mock.go @@ -22,6 +22,7 @@ import ( type MockBeaconStateReader struct { ctrl *gomock.Controller recorder *MockBeaconStateReaderMockRecorder + isgomock struct{} } // MockBeaconStateReaderMockRecorder is the mock recorder for MockBeaconStateReader. @@ -42,17 +43,17 @@ func (m *MockBeaconStateReader) EXPECT() *MockBeaconStateReaderMockRecorder { } // CommitteeCount mocks base method. -func (m *MockBeaconStateReader) CommitteeCount(arg0 uint64) uint64 { +func (m *MockBeaconStateReader) CommitteeCount(epoch uint64) uint64 { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CommitteeCount", arg0) + ret := m.ctrl.Call(m, "CommitteeCount", epoch) ret0, _ := ret[0].(uint64) return ret0 } // CommitteeCount indicates an expected call of CommitteeCount. -func (mr *MockBeaconStateReaderMockRecorder) CommitteeCount(arg0 any) *MockBeaconStateReaderCommitteeCountCall { +func (mr *MockBeaconStateReaderMockRecorder) CommitteeCount(epoch any) *MockBeaconStateReaderCommitteeCountCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitteeCount", reflect.TypeOf((*MockBeaconStateReader)(nil).CommitteeCount), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitteeCount", reflect.TypeOf((*MockBeaconStateReader)(nil).CommitteeCount), epoch) return &MockBeaconStateReaderCommitteeCountCall{Call: call} } @@ -118,18 +119,18 @@ func (c *MockBeaconStateReaderGenesisValidatorsRootCall) DoAndReturn(f func() co } // GetBeaconProposerIndexForSlot mocks base method. -func (m *MockBeaconStateReader) GetBeaconProposerIndexForSlot(arg0 uint64) (uint64, error) { +func (m *MockBeaconStateReader) GetBeaconProposerIndexForSlot(slot uint64) (uint64, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetBeaconProposerIndexForSlot", arg0) + ret := m.ctrl.Call(m, "GetBeaconProposerIndexForSlot", slot) ret0, _ := ret[0].(uint64) ret1, _ := ret[1].(error) return ret0, ret1 } // GetBeaconProposerIndexForSlot indicates an expected call of GetBeaconProposerIndexForSlot. -func (mr *MockBeaconStateReaderMockRecorder) GetBeaconProposerIndexForSlot(arg0 any) *MockBeaconStateReaderGetBeaconProposerIndexForSlotCall { +func (mr *MockBeaconStateReaderMockRecorder) GetBeaconProposerIndexForSlot(slot any) *MockBeaconStateReaderGetBeaconProposerIndexForSlotCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBeaconProposerIndexForSlot", reflect.TypeOf((*MockBeaconStateReader)(nil).GetBeaconProposerIndexForSlot), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBeaconProposerIndexForSlot", reflect.TypeOf((*MockBeaconStateReader)(nil).GetBeaconProposerIndexForSlot), slot) return &MockBeaconStateReaderGetBeaconProposerIndexForSlotCall{Call: call} } @@ -157,18 +158,18 @@ func (c *MockBeaconStateReaderGetBeaconProposerIndexForSlotCall) DoAndReturn(f f } // GetDomain mocks base method. -func (m *MockBeaconStateReader) GetDomain(arg0 [4]byte, arg1 uint64) ([]byte, error) { +func (m *MockBeaconStateReader) GetDomain(domainType [4]byte, epoch uint64) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetDomain", arg0, arg1) + ret := m.ctrl.Call(m, "GetDomain", domainType, epoch) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } // GetDomain indicates an expected call of GetDomain. -func (mr *MockBeaconStateReaderMockRecorder) GetDomain(arg0, arg1 any) *MockBeaconStateReaderGetDomainCall { +func (mr *MockBeaconStateReaderMockRecorder) GetDomain(domainType, epoch any) *MockBeaconStateReaderGetDomainCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDomain", reflect.TypeOf((*MockBeaconStateReader)(nil).GetDomain), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDomain", reflect.TypeOf((*MockBeaconStateReader)(nil).GetDomain), domainType, epoch) return &MockBeaconStateReaderGetDomainCall{Call: call} } @@ -196,18 +197,18 @@ func (c *MockBeaconStateReaderGetDomainCall) DoAndReturn(f func([4]byte, uint64) } // ValidatorForValidatorIndex mocks base method. -func (m *MockBeaconStateReader) ValidatorForValidatorIndex(arg0 int) (solid.Validator, error) { +func (m *MockBeaconStateReader) ValidatorForValidatorIndex(index int) (solid.Validator, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatorForValidatorIndex", arg0) + ret := m.ctrl.Call(m, "ValidatorForValidatorIndex", index) ret0, _ := ret[0].(solid.Validator) ret1, _ := ret[1].(error) return ret0, ret1 } // ValidatorForValidatorIndex indicates an expected call of ValidatorForValidatorIndex. -func (mr *MockBeaconStateReaderMockRecorder) ValidatorForValidatorIndex(arg0 any) *MockBeaconStateReaderValidatorForValidatorIndexCall { +func (mr *MockBeaconStateReaderMockRecorder) ValidatorForValidatorIndex(index any) *MockBeaconStateReaderValidatorForValidatorIndexCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorForValidatorIndex", reflect.TypeOf((*MockBeaconStateReader)(nil).ValidatorForValidatorIndex), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorForValidatorIndex", reflect.TypeOf((*MockBeaconStateReader)(nil).ValidatorForValidatorIndex), index) return &MockBeaconStateReaderValidatorForValidatorIndexCall{Call: call} } @@ -235,18 +236,18 @@ func (c *MockBeaconStateReaderValidatorForValidatorIndexCall) DoAndReturn(f func } // ValidatorPublicKey mocks base method. -func (m *MockBeaconStateReader) ValidatorPublicKey(arg0 int) (common.Bytes48, error) { +func (m *MockBeaconStateReader) ValidatorPublicKey(index int) (common.Bytes48, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatorPublicKey", arg0) + ret := m.ctrl.Call(m, "ValidatorPublicKey", index) ret0, _ := ret[0].(common.Bytes48) ret1, _ := ret[1].(error) return ret0, ret1 } // ValidatorPublicKey indicates an expected call of ValidatorPublicKey. -func (mr *MockBeaconStateReaderMockRecorder) ValidatorPublicKey(arg0 any) *MockBeaconStateReaderValidatorPublicKeyCall { +func (mr *MockBeaconStateReaderMockRecorder) ValidatorPublicKey(index any) *MockBeaconStateReaderValidatorPublicKeyCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorPublicKey", reflect.TypeOf((*MockBeaconStateReader)(nil).ValidatorPublicKey), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorPublicKey", reflect.TypeOf((*MockBeaconStateReader)(nil).ValidatorPublicKey), index) return &MockBeaconStateReaderValidatorPublicKeyCall{Call: call} } diff --git a/cl/aggregation/mock_services/aggregation_pool_mock.go b/cl/aggregation/mock_services/aggregation_pool_mock.go index 7946cc7d9ec..15e3404fdc3 100644 --- a/cl/aggregation/mock_services/aggregation_pool_mock.go +++ b/cl/aggregation/mock_services/aggregation_pool_mock.go @@ -21,6 +21,7 @@ import ( type MockAggregationPool struct { ctrl *gomock.Controller recorder *MockAggregationPoolMockRecorder + isgomock struct{} } // MockAggregationPoolMockRecorder is the mock recorder for MockAggregationPool. @@ -41,17 +42,17 @@ func (m *MockAggregationPool) EXPECT() *MockAggregationPoolMockRecorder { } // AddAttestation mocks base method. -func (m *MockAggregationPool) AddAttestation(arg0 *solid.Attestation) error { +func (m *MockAggregationPool) AddAttestation(att *solid.Attestation) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddAttestation", arg0) + ret := m.ctrl.Call(m, "AddAttestation", att) ret0, _ := ret[0].(error) return ret0 } // AddAttestation indicates an expected call of AddAttestation. -func (mr *MockAggregationPoolMockRecorder) AddAttestation(arg0 any) *MockAggregationPoolAddAttestationCall { +func (mr *MockAggregationPoolMockRecorder) AddAttestation(att any) *MockAggregationPoolAddAttestationCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAttestation", reflect.TypeOf((*MockAggregationPool)(nil).AddAttestation), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAttestation", reflect.TypeOf((*MockAggregationPool)(nil).AddAttestation), att) return &MockAggregationPoolAddAttestationCall{Call: call} } @@ -79,17 +80,17 @@ func (c *MockAggregationPoolAddAttestationCall) DoAndReturn(f func(*solid.Attest } // GetAggregatationByRoot mocks base method. -func (m *MockAggregationPool) GetAggregatationByRoot(arg0 common.Hash) *solid.Attestation { +func (m *MockAggregationPool) GetAggregatationByRoot(root common.Hash) *solid.Attestation { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetAggregatationByRoot", arg0) + ret := m.ctrl.Call(m, "GetAggregatationByRoot", root) ret0, _ := ret[0].(*solid.Attestation) return ret0 } // GetAggregatationByRoot indicates an expected call of GetAggregatationByRoot. -func (mr *MockAggregationPoolMockRecorder) GetAggregatationByRoot(arg0 any) *MockAggregationPoolGetAggregatationByRootCall { +func (mr *MockAggregationPoolMockRecorder) GetAggregatationByRoot(root any) *MockAggregationPoolGetAggregatationByRootCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAggregatationByRoot", reflect.TypeOf((*MockAggregationPool)(nil).GetAggregatationByRoot), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAggregatationByRoot", reflect.TypeOf((*MockAggregationPool)(nil).GetAggregatationByRoot), root) return &MockAggregationPoolGetAggregatationByRootCall{Call: call} } diff --git a/cl/beacon/builder/mock_services/builder_client_mock.go b/cl/beacon/builder/mock_services/builder_client_mock.go index 0fc8705f3c0..3caca42843f 100644 --- a/cl/beacon/builder/mock_services/builder_client_mock.go +++ b/cl/beacon/builder/mock_services/builder_client_mock.go @@ -24,6 +24,7 @@ import ( type MockBuilderClient struct { ctrl *gomock.Controller recorder *MockBuilderClientMockRecorder + isgomock struct{} } // MockBuilderClientMockRecorder is the mock recorder for MockBuilderClient. @@ -44,18 +45,18 @@ func (m *MockBuilderClient) EXPECT() *MockBuilderClientMockRecorder { } // GetHeader mocks base method. -func (m *MockBuilderClient) GetHeader(arg0 context.Context, arg1 int64, arg2 common.Hash, arg3 common.Bytes48) (*builder.ExecutionHeader, error) { +func (m *MockBuilderClient) GetHeader(ctx context.Context, slot int64, parentHash common.Hash, pubKey common.Bytes48) (*builder.ExecutionHeader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetHeader", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "GetHeader", ctx, slot, parentHash, pubKey) ret0, _ := ret[0].(*builder.ExecutionHeader) ret1, _ := ret[1].(error) return ret0, ret1 } // GetHeader indicates an expected call of GetHeader. -func (mr *MockBuilderClientMockRecorder) GetHeader(arg0, arg1, arg2, arg3 any) *MockBuilderClientGetHeaderCall { +func (mr *MockBuilderClientMockRecorder) GetHeader(ctx, slot, parentHash, pubKey any) *MockBuilderClientGetHeaderCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeader", reflect.TypeOf((*MockBuilderClient)(nil).GetHeader), arg0, arg1, arg2, arg3) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeader", reflect.TypeOf((*MockBuilderClient)(nil).GetHeader), ctx, slot, parentHash, pubKey) return &MockBuilderClientGetHeaderCall{Call: call} } @@ -83,17 +84,17 @@ func (c *MockBuilderClientGetHeaderCall) DoAndReturn(f func(context.Context, int } // GetStatus mocks base method. -func (m *MockBuilderClient) GetStatus(arg0 context.Context) error { +func (m *MockBuilderClient) GetStatus(ctx context.Context) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetStatus", arg0) + ret := m.ctrl.Call(m, "GetStatus", ctx) ret0, _ := ret[0].(error) return ret0 } // GetStatus indicates an expected call of GetStatus. -func (mr *MockBuilderClientMockRecorder) GetStatus(arg0 any) *MockBuilderClientGetStatusCall { +func (mr *MockBuilderClientMockRecorder) GetStatus(ctx any) *MockBuilderClientGetStatusCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatus", reflect.TypeOf((*MockBuilderClient)(nil).GetStatus), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatus", reflect.TypeOf((*MockBuilderClient)(nil).GetStatus), ctx) return &MockBuilderClientGetStatusCall{Call: call} } @@ -121,17 +122,17 @@ func (c *MockBuilderClientGetStatusCall) DoAndReturn(f func(context.Context) err } // RegisterValidator mocks base method. -func (m *MockBuilderClient) RegisterValidator(arg0 context.Context, arg1 []*cltypes.ValidatorRegistration) error { +func (m *MockBuilderClient) RegisterValidator(ctx context.Context, registers []*cltypes.ValidatorRegistration) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RegisterValidator", arg0, arg1) + ret := m.ctrl.Call(m, "RegisterValidator", ctx, registers) ret0, _ := ret[0].(error) return ret0 } // RegisterValidator indicates an expected call of RegisterValidator. -func (mr *MockBuilderClientMockRecorder) RegisterValidator(arg0, arg1 any) *MockBuilderClientRegisterValidatorCall { +func (mr *MockBuilderClientMockRecorder) RegisterValidator(ctx, registers any) *MockBuilderClientRegisterValidatorCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterValidator", reflect.TypeOf((*MockBuilderClient)(nil).RegisterValidator), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterValidator", reflect.TypeOf((*MockBuilderClient)(nil).RegisterValidator), ctx, registers) return &MockBuilderClientRegisterValidatorCall{Call: call} } @@ -159,9 +160,9 @@ func (c *MockBuilderClientRegisterValidatorCall) DoAndReturn(f func(context.Cont } // SubmitBlindedBlocks mocks base method. -func (m *MockBuilderClient) SubmitBlindedBlocks(arg0 context.Context, arg1 *cltypes.SignedBlindedBeaconBlock) (*cltypes.Eth1Block, *engine_types.BlobsBundleV1, error) { +func (m *MockBuilderClient) SubmitBlindedBlocks(ctx context.Context, block *cltypes.SignedBlindedBeaconBlock) (*cltypes.Eth1Block, *engine_types.BlobsBundleV1, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SubmitBlindedBlocks", arg0, arg1) + ret := m.ctrl.Call(m, "SubmitBlindedBlocks", ctx, block) ret0, _ := ret[0].(*cltypes.Eth1Block) ret1, _ := ret[1].(*engine_types.BlobsBundleV1) ret2, _ := ret[2].(error) @@ -169,9 +170,9 @@ func (m *MockBuilderClient) SubmitBlindedBlocks(arg0 context.Context, arg1 *clty } // SubmitBlindedBlocks indicates an expected call of SubmitBlindedBlocks. -func (mr *MockBuilderClientMockRecorder) SubmitBlindedBlocks(arg0, arg1 any) *MockBuilderClientSubmitBlindedBlocksCall { +func (mr *MockBuilderClientMockRecorder) SubmitBlindedBlocks(ctx, block any) *MockBuilderClientSubmitBlindedBlocksCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitBlindedBlocks", reflect.TypeOf((*MockBuilderClient)(nil).SubmitBlindedBlocks), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitBlindedBlocks", reflect.TypeOf((*MockBuilderClient)(nil).SubmitBlindedBlocks), ctx, block) return &MockBuilderClientSubmitBlindedBlocksCall{Call: call} } diff --git a/cl/beacon/synced_data/mock_services/synced_data_mock.go b/cl/beacon/synced_data/mock_services/synced_data_mock.go index 2d85bccb5be..0827513a482 100644 --- a/cl/beacon/synced_data/mock_services/synced_data_mock.go +++ b/cl/beacon/synced_data/mock_services/synced_data_mock.go @@ -21,6 +21,7 @@ import ( type MockSyncedData struct { ctrl *gomock.Controller recorder *MockSyncedDataMockRecorder + isgomock struct{} } // MockSyncedDataMockRecorder is the mock recorder for MockSyncedData. @@ -193,17 +194,17 @@ func (c *MockSyncedDataHeadStateReaderCall) DoAndReturn(f func() abstract.Beacon } // OnHeadState mocks base method. -func (m *MockSyncedData) OnHeadState(arg0 *state.CachingBeaconState) error { +func (m *MockSyncedData) OnHeadState(newState *state.CachingBeaconState) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "OnHeadState", arg0) + ret := m.ctrl.Call(m, "OnHeadState", newState) ret0, _ := ret[0].(error) return ret0 } // OnHeadState indicates an expected call of OnHeadState. -func (mr *MockSyncedDataMockRecorder) OnHeadState(arg0 any) *MockSyncedDataOnHeadStateCall { +func (mr *MockSyncedDataMockRecorder) OnHeadState(newState any) *MockSyncedDataOnHeadStateCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnHeadState", reflect.TypeOf((*MockSyncedData)(nil).OnHeadState), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnHeadState", reflect.TypeOf((*MockSyncedData)(nil).OnHeadState), newState) return &MockSyncedDataOnHeadStateCall{Call: call} } diff --git a/cl/monitor/mock_services/validator_monitor_mock.go b/cl/monitor/mock_services/validator_monitor_mock.go index a273d5ea052..cbe9008b104 100644 --- a/cl/monitor/mock_services/validator_monitor_mock.go +++ b/cl/monitor/mock_services/validator_monitor_mock.go @@ -21,6 +21,7 @@ import ( type MockValidatorMonitor struct { ctrl *gomock.Controller recorder *MockValidatorMonitorMockRecorder + isgomock struct{} } // MockValidatorMonitorMockRecorder is the mock recorder for MockValidatorMonitor. @@ -41,15 +42,15 @@ func (m *MockValidatorMonitor) EXPECT() *MockValidatorMonitorMockRecorder { } // ObserveValidator mocks base method. -func (m *MockValidatorMonitor) ObserveValidator(arg0 uint64) { +func (m *MockValidatorMonitor) ObserveValidator(vid uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "ObserveValidator", arg0) + m.ctrl.Call(m, "ObserveValidator", vid) } // ObserveValidator indicates an expected call of ObserveValidator. -func (mr *MockValidatorMonitorMockRecorder) ObserveValidator(arg0 any) *MockValidatorMonitorObserveValidatorCall { +func (mr *MockValidatorMonitorMockRecorder) ObserveValidator(vid any) *MockValidatorMonitorObserveValidatorCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObserveValidator", reflect.TypeOf((*MockValidatorMonitor)(nil).ObserveValidator), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObserveValidator", reflect.TypeOf((*MockValidatorMonitor)(nil).ObserveValidator), vid) return &MockValidatorMonitorObserveValidatorCall{Call: call} } @@ -77,17 +78,17 @@ func (c *MockValidatorMonitorObserveValidatorCall) DoAndReturn(f func(uint64)) * } // OnNewBlock mocks base method. -func (m *MockValidatorMonitor) OnNewBlock(arg0 *state.CachingBeaconState, arg1 *cltypes.BeaconBlock) error { +func (m *MockValidatorMonitor) OnNewBlock(state *state.CachingBeaconState, block *cltypes.BeaconBlock) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "OnNewBlock", arg0, arg1) + ret := m.ctrl.Call(m, "OnNewBlock", state, block) ret0, _ := ret[0].(error) return ret0 } // OnNewBlock indicates an expected call of OnNewBlock. -func (mr *MockValidatorMonitorMockRecorder) OnNewBlock(arg0, arg1 any) *MockValidatorMonitorOnNewBlockCall { +func (mr *MockValidatorMonitorMockRecorder) OnNewBlock(state, block any) *MockValidatorMonitorOnNewBlockCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnNewBlock", reflect.TypeOf((*MockValidatorMonitor)(nil).OnNewBlock), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnNewBlock", reflect.TypeOf((*MockValidatorMonitor)(nil).OnNewBlock), state, block) return &MockValidatorMonitorOnNewBlockCall{Call: call} } @@ -115,15 +116,15 @@ func (c *MockValidatorMonitorOnNewBlockCall) DoAndReturn(f func(*state.CachingBe } // RemoveValidator mocks base method. -func (m *MockValidatorMonitor) RemoveValidator(arg0 uint64) { +func (m *MockValidatorMonitor) RemoveValidator(vid uint64) { m.ctrl.T.Helper() - m.ctrl.Call(m, "RemoveValidator", arg0) + m.ctrl.Call(m, "RemoveValidator", vid) } // RemoveValidator indicates an expected call of RemoveValidator. -func (mr *MockValidatorMonitorMockRecorder) RemoveValidator(arg0 any) *MockValidatorMonitorRemoveValidatorCall { +func (mr *MockValidatorMonitorMockRecorder) RemoveValidator(vid any) *MockValidatorMonitorRemoveValidatorCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveValidator", reflect.TypeOf((*MockValidatorMonitor)(nil).RemoveValidator), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveValidator", reflect.TypeOf((*MockValidatorMonitor)(nil).RemoveValidator), vid) return &MockValidatorMonitorRemoveValidatorCall{Call: call} } diff --git a/cl/phase1/execution_client/execution_engine_mock.go b/cl/phase1/execution_client/execution_engine_mock.go index 096058d1db2..b30759d5ce9 100644 --- a/cl/phase1/execution_client/execution_engine_mock.go +++ b/cl/phase1/execution_client/execution_engine_mock.go @@ -25,6 +25,7 @@ import ( type MockExecutionEngine struct { ctrl *gomock.Controller recorder *MockExecutionEngineMockRecorder + isgomock struct{} } // MockExecutionEngineMockRecorder is the mock recorder for MockExecutionEngine. diff --git a/cl/phase1/network/services/mock_services/aggregate_and_proof_service_mock.go b/cl/phase1/network/services/mock_services/aggregate_and_proof_service_mock.go index f579ba0cee0..862b6c4043c 100644 --- a/cl/phase1/network/services/mock_services/aggregate_and_proof_service_mock.go +++ b/cl/phase1/network/services/mock_services/aggregate_and_proof_service_mock.go @@ -21,6 +21,7 @@ import ( type MockAggregateAndProofService struct { ctrl *gomock.Controller recorder *MockAggregateAndProofServiceMockRecorder + isgomock struct{} } // MockAggregateAndProofServiceMockRecorder is the mock recorder for MockAggregateAndProofService. @@ -41,17 +42,17 @@ func (m *MockAggregateAndProofService) EXPECT() *MockAggregateAndProofServiceMoc } // ProcessMessage mocks base method. -func (m *MockAggregateAndProofService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *cltypes.SignedAggregateAndProofData) error { +func (m *MockAggregateAndProofService) ProcessMessage(ctx context.Context, subnet *uint64, msg *cltypes.SignedAggregateAndProofData) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockAggregateAndProofServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockAggregateAndProofServiceProcessMessageCall { +func (mr *MockAggregateAndProofServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockAggregateAndProofServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockAggregateAndProofService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockAggregateAndProofService)(nil).ProcessMessage), ctx, subnet, msg) return &MockAggregateAndProofServiceProcessMessageCall{Call: call} } diff --git a/cl/phase1/network/services/mock_services/attestation_service_mock.go b/cl/phase1/network/services/mock_services/attestation_service_mock.go index d60e4d59805..5220a08349a 100644 --- a/cl/phase1/network/services/mock_services/attestation_service_mock.go +++ b/cl/phase1/network/services/mock_services/attestation_service_mock.go @@ -13,7 +13,7 @@ import ( context "context" reflect "reflect" - solid "github.com/erigontech/erigon/cl/cltypes/solid" + services "github.com/erigontech/erigon/cl/phase1/network/services" gomock "go.uber.org/mock/gomock" ) @@ -21,6 +21,7 @@ import ( type MockAttestationService struct { ctrl *gomock.Controller recorder *MockAttestationServiceMockRecorder + isgomock struct{} } // MockAttestationServiceMockRecorder is the mock recorder for MockAttestationService. @@ -41,17 +42,17 @@ func (m *MockAttestationService) EXPECT() *MockAttestationServiceMockRecorder { } // ProcessMessage mocks base method. -func (m *MockAttestationService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *solid.Attestation) error { +func (m *MockAttestationService) ProcessMessage(ctx context.Context, subnet *uint64, msg *services.AttestationWithGossipData) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockAttestationServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockAttestationServiceProcessMessageCall { +func (mr *MockAttestationServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockAttestationServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockAttestationService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockAttestationService)(nil).ProcessMessage), ctx, subnet, msg) return &MockAttestationServiceProcessMessageCall{Call: call} } @@ -67,13 +68,13 @@ func (c *MockAttestationServiceProcessMessageCall) Return(arg0 error) *MockAttes } // Do rewrite *gomock.Call.Do -func (c *MockAttestationServiceProcessMessageCall) Do(f func(context.Context, *uint64, *solid.Attestation) error) *MockAttestationServiceProcessMessageCall { +func (c *MockAttestationServiceProcessMessageCall) Do(f func(context.Context, *uint64, *services.AttestationWithGossipData) error) *MockAttestationServiceProcessMessageCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn -func (c *MockAttestationServiceProcessMessageCall) DoAndReturn(f func(context.Context, *uint64, *solid.Attestation) error) *MockAttestationServiceProcessMessageCall { +func (c *MockAttestationServiceProcessMessageCall) DoAndReturn(f func(context.Context, *uint64, *services.AttestationWithGossipData) error) *MockAttestationServiceProcessMessageCall { c.Call = c.Call.DoAndReturn(f) return c } diff --git a/cl/phase1/network/services/mock_services/blob_sidecars_service_mock.go b/cl/phase1/network/services/mock_services/blob_sidecars_service_mock.go index ee82d59319a..1445222c060 100644 --- a/cl/phase1/network/services/mock_services/blob_sidecars_service_mock.go +++ b/cl/phase1/network/services/mock_services/blob_sidecars_service_mock.go @@ -21,6 +21,7 @@ import ( type MockBlobSidecarsService struct { ctrl *gomock.Controller recorder *MockBlobSidecarsServiceMockRecorder + isgomock struct{} } // MockBlobSidecarsServiceMockRecorder is the mock recorder for MockBlobSidecarsService. @@ -41,17 +42,17 @@ func (m *MockBlobSidecarsService) EXPECT() *MockBlobSidecarsServiceMockRecorder } // ProcessMessage mocks base method. -func (m *MockBlobSidecarsService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *cltypes.BlobSidecar) error { +func (m *MockBlobSidecarsService) ProcessMessage(ctx context.Context, subnet *uint64, msg *cltypes.BlobSidecar) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockBlobSidecarsServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockBlobSidecarsServiceProcessMessageCall { +func (mr *MockBlobSidecarsServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockBlobSidecarsServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockBlobSidecarsService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockBlobSidecarsService)(nil).ProcessMessage), ctx, subnet, msg) return &MockBlobSidecarsServiceProcessMessageCall{Call: call} } diff --git a/cl/phase1/network/services/mock_services/block_service_mock.go b/cl/phase1/network/services/mock_services/block_service_mock.go index 056061874a9..52ae2370c10 100644 --- a/cl/phase1/network/services/mock_services/block_service_mock.go +++ b/cl/phase1/network/services/mock_services/block_service_mock.go @@ -21,6 +21,7 @@ import ( type MockBlockService struct { ctrl *gomock.Controller recorder *MockBlockServiceMockRecorder + isgomock struct{} } // MockBlockServiceMockRecorder is the mock recorder for MockBlockService. @@ -41,17 +42,17 @@ func (m *MockBlockService) EXPECT() *MockBlockServiceMockRecorder { } // ProcessMessage mocks base method. -func (m *MockBlockService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *cltypes.SignedBeaconBlock) error { +func (m *MockBlockService) ProcessMessage(ctx context.Context, subnet *uint64, msg *cltypes.SignedBeaconBlock) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockBlockServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockBlockServiceProcessMessageCall { +func (mr *MockBlockServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockBlockServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockBlockService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockBlockService)(nil).ProcessMessage), ctx, subnet, msg) return &MockBlockServiceProcessMessageCall{Call: call} } diff --git a/cl/phase1/network/services/mock_services/bls_to_execution_change_service_mock.go b/cl/phase1/network/services/mock_services/bls_to_execution_change_service_mock.go index 7f3cf5243de..c64a9e900a9 100644 --- a/cl/phase1/network/services/mock_services/bls_to_execution_change_service_mock.go +++ b/cl/phase1/network/services/mock_services/bls_to_execution_change_service_mock.go @@ -21,6 +21,7 @@ import ( type MockBLSToExecutionChangeService struct { ctrl *gomock.Controller recorder *MockBLSToExecutionChangeServiceMockRecorder + isgomock struct{} } // MockBLSToExecutionChangeServiceMockRecorder is the mock recorder for MockBLSToExecutionChangeService. @@ -41,17 +42,17 @@ func (m *MockBLSToExecutionChangeService) EXPECT() *MockBLSToExecutionChangeServ } // ProcessMessage mocks base method. -func (m *MockBLSToExecutionChangeService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *cltypes.SignedBLSToExecutionChange) error { +func (m *MockBLSToExecutionChangeService) ProcessMessage(ctx context.Context, subnet *uint64, msg *cltypes.SignedBLSToExecutionChange) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockBLSToExecutionChangeServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockBLSToExecutionChangeServiceProcessMessageCall { +func (mr *MockBLSToExecutionChangeServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockBLSToExecutionChangeServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockBLSToExecutionChangeService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockBLSToExecutionChangeService)(nil).ProcessMessage), ctx, subnet, msg) return &MockBLSToExecutionChangeServiceProcessMessageCall{Call: call} } diff --git a/cl/phase1/network/services/mock_services/proposer_slashing_service_mock.go b/cl/phase1/network/services/mock_services/proposer_slashing_service_mock.go index ee9c87ab65b..9be17ca5202 100644 --- a/cl/phase1/network/services/mock_services/proposer_slashing_service_mock.go +++ b/cl/phase1/network/services/mock_services/proposer_slashing_service_mock.go @@ -21,6 +21,7 @@ import ( type MockProposerSlashingService struct { ctrl *gomock.Controller recorder *MockProposerSlashingServiceMockRecorder + isgomock struct{} } // MockProposerSlashingServiceMockRecorder is the mock recorder for MockProposerSlashingService. @@ -41,17 +42,17 @@ func (m *MockProposerSlashingService) EXPECT() *MockProposerSlashingServiceMockR } // ProcessMessage mocks base method. -func (m *MockProposerSlashingService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *cltypes.ProposerSlashing) error { +func (m *MockProposerSlashingService) ProcessMessage(ctx context.Context, subnet *uint64, msg *cltypes.ProposerSlashing) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockProposerSlashingServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockProposerSlashingServiceProcessMessageCall { +func (mr *MockProposerSlashingServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockProposerSlashingServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockProposerSlashingService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockProposerSlashingService)(nil).ProcessMessage), ctx, subnet, msg) return &MockProposerSlashingServiceProcessMessageCall{Call: call} } diff --git a/cl/phase1/network/services/mock_services/sync_committee_messages_service_mock.go b/cl/phase1/network/services/mock_services/sync_committee_messages_service_mock.go index b914773ca18..565289b1c03 100644 --- a/cl/phase1/network/services/mock_services/sync_committee_messages_service_mock.go +++ b/cl/phase1/network/services/mock_services/sync_committee_messages_service_mock.go @@ -21,6 +21,7 @@ import ( type MockSyncCommitteeMessagesService struct { ctrl *gomock.Controller recorder *MockSyncCommitteeMessagesServiceMockRecorder + isgomock struct{} } // MockSyncCommitteeMessagesServiceMockRecorder is the mock recorder for MockSyncCommitteeMessagesService. @@ -41,17 +42,17 @@ func (m *MockSyncCommitteeMessagesService) EXPECT() *MockSyncCommitteeMessagesSe } // ProcessMessage mocks base method. -func (m *MockSyncCommitteeMessagesService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *cltypes.SyncCommitteeMessage) error { +func (m *MockSyncCommitteeMessagesService) ProcessMessage(ctx context.Context, subnet *uint64, msg *cltypes.SyncCommitteeMessage) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockSyncCommitteeMessagesServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockSyncCommitteeMessagesServiceProcessMessageCall { +func (mr *MockSyncCommitteeMessagesServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockSyncCommitteeMessagesServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockSyncCommitteeMessagesService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockSyncCommitteeMessagesService)(nil).ProcessMessage), ctx, subnet, msg) return &MockSyncCommitteeMessagesServiceProcessMessageCall{Call: call} } diff --git a/cl/phase1/network/services/mock_services/sync_contribution_service_mock.go b/cl/phase1/network/services/mock_services/sync_contribution_service_mock.go index 9f1880aa13e..d7c536f2025 100644 --- a/cl/phase1/network/services/mock_services/sync_contribution_service_mock.go +++ b/cl/phase1/network/services/mock_services/sync_contribution_service_mock.go @@ -21,6 +21,7 @@ import ( type MockSyncContributionService struct { ctrl *gomock.Controller recorder *MockSyncContributionServiceMockRecorder + isgomock struct{} } // MockSyncContributionServiceMockRecorder is the mock recorder for MockSyncContributionService. @@ -41,17 +42,17 @@ func (m *MockSyncContributionService) EXPECT() *MockSyncContributionServiceMockR } // ProcessMessage mocks base method. -func (m *MockSyncContributionService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *cltypes.SignedContributionAndProof) error { +func (m *MockSyncContributionService) ProcessMessage(ctx context.Context, subnet *uint64, msg *cltypes.SignedContributionAndProof) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockSyncContributionServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockSyncContributionServiceProcessMessageCall { +func (mr *MockSyncContributionServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockSyncContributionServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockSyncContributionService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockSyncContributionService)(nil).ProcessMessage), ctx, subnet, msg) return &MockSyncContributionServiceProcessMessageCall{Call: call} } diff --git a/cl/phase1/network/services/mock_services/voluntary_exit_service_mock.go b/cl/phase1/network/services/mock_services/voluntary_exit_service_mock.go index 5c3c2ae4e96..1968c7b6d9e 100644 --- a/cl/phase1/network/services/mock_services/voluntary_exit_service_mock.go +++ b/cl/phase1/network/services/mock_services/voluntary_exit_service_mock.go @@ -21,6 +21,7 @@ import ( type MockVoluntaryExitService struct { ctrl *gomock.Controller recorder *MockVoluntaryExitServiceMockRecorder + isgomock struct{} } // MockVoluntaryExitServiceMockRecorder is the mock recorder for MockVoluntaryExitService. @@ -41,17 +42,17 @@ func (m *MockVoluntaryExitService) EXPECT() *MockVoluntaryExitServiceMockRecorde } // ProcessMessage mocks base method. -func (m *MockVoluntaryExitService) ProcessMessage(arg0 context.Context, arg1 *uint64, arg2 *cltypes.SignedVoluntaryExit) error { +func (m *MockVoluntaryExitService) ProcessMessage(ctx context.Context, subnet *uint64, msg *cltypes.SignedVoluntaryExit) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProcessMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ProcessMessage", ctx, subnet, msg) ret0, _ := ret[0].(error) return ret0 } // ProcessMessage indicates an expected call of ProcessMessage. -func (mr *MockVoluntaryExitServiceMockRecorder) ProcessMessage(arg0, arg1, arg2 any) *MockVoluntaryExitServiceProcessMessageCall { +func (mr *MockVoluntaryExitServiceMockRecorder) ProcessMessage(ctx, subnet, msg any) *MockVoluntaryExitServiceProcessMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockVoluntaryExitService)(nil).ProcessMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessMessage", reflect.TypeOf((*MockVoluntaryExitService)(nil).ProcessMessage), ctx, subnet, msg) return &MockVoluntaryExitServiceProcessMessageCall{Call: call} } diff --git a/cl/utils/eth_clock/ethereum_clock_mock.go b/cl/utils/eth_clock/ethereum_clock_mock.go index ab72c7a8b84..02adc57160b 100644 --- a/cl/utils/eth_clock/ethereum_clock_mock.go +++ b/cl/utils/eth_clock/ethereum_clock_mock.go @@ -22,6 +22,7 @@ import ( type MockEthereumClock struct { ctrl *gomock.Controller recorder *MockEthereumClockMockRecorder + isgomock struct{} } // MockEthereumClockMockRecorder is the mock recorder for MockEthereumClock. diff --git a/cl/validator/committee_subscription/mock_services/committee_subscribe_mock.go b/cl/validator/committee_subscription/mock_services/committee_subscribe_mock.go index b809ec83bed..cfda6522de0 100644 --- a/cl/validator/committee_subscription/mock_services/committee_subscribe_mock.go +++ b/cl/validator/committee_subscription/mock_services/committee_subscribe_mock.go @@ -22,6 +22,7 @@ import ( type MockCommitteeSubscribe struct { ctrl *gomock.Controller recorder *MockCommitteeSubscribeMockRecorder + isgomock struct{} } // MockCommitteeSubscribeMockRecorder is the mock recorder for MockCommitteeSubscribe. @@ -42,17 +43,17 @@ func (m *MockCommitteeSubscribe) EXPECT() *MockCommitteeSubscribeMockRecorder { } // AddAttestationSubscription mocks base method. -func (m *MockCommitteeSubscribe) AddAttestationSubscription(arg0 context.Context, arg1 *cltypes.BeaconCommitteeSubscription) error { +func (m *MockCommitteeSubscribe) AddAttestationSubscription(ctx context.Context, p *cltypes.BeaconCommitteeSubscription) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddAttestationSubscription", arg0, arg1) + ret := m.ctrl.Call(m, "AddAttestationSubscription", ctx, p) ret0, _ := ret[0].(error) return ret0 } // AddAttestationSubscription indicates an expected call of AddAttestationSubscription. -func (mr *MockCommitteeSubscribeMockRecorder) AddAttestationSubscription(arg0, arg1 any) *MockCommitteeSubscribeAddAttestationSubscriptionCall { +func (mr *MockCommitteeSubscribeMockRecorder) AddAttestationSubscription(ctx, p any) *MockCommitteeSubscribeAddAttestationSubscriptionCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAttestationSubscription", reflect.TypeOf((*MockCommitteeSubscribe)(nil).AddAttestationSubscription), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAttestationSubscription", reflect.TypeOf((*MockCommitteeSubscribe)(nil).AddAttestationSubscription), ctx, p) return &MockCommitteeSubscribeAddAttestationSubscriptionCall{Call: call} } @@ -80,17 +81,17 @@ func (c *MockCommitteeSubscribeAddAttestationSubscriptionCall) DoAndReturn(f fun } // AggregateAttestation mocks base method. -func (m *MockCommitteeSubscribe) AggregateAttestation(arg0 *solid.Attestation) error { +func (m *MockCommitteeSubscribe) AggregateAttestation(att *solid.Attestation) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AggregateAttestation", arg0) + ret := m.ctrl.Call(m, "AggregateAttestation", att) ret0, _ := ret[0].(error) return ret0 } // AggregateAttestation indicates an expected call of AggregateAttestation. -func (mr *MockCommitteeSubscribeMockRecorder) AggregateAttestation(arg0 any) *MockCommitteeSubscribeAggregateAttestationCall { +func (mr *MockCommitteeSubscribeMockRecorder) AggregateAttestation(att any) *MockCommitteeSubscribeAggregateAttestationCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateAttestation", reflect.TypeOf((*MockCommitteeSubscribe)(nil).AggregateAttestation), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateAttestation", reflect.TypeOf((*MockCommitteeSubscribe)(nil).AggregateAttestation), att) return &MockCommitteeSubscribeAggregateAttestationCall{Call: call} } @@ -118,17 +119,17 @@ func (c *MockCommitteeSubscribeAggregateAttestationCall) DoAndReturn(f func(*sol } // NeedToAggregate mocks base method. -func (m *MockCommitteeSubscribe) NeedToAggregate(arg0 *solid.Attestation) bool { +func (m *MockCommitteeSubscribe) NeedToAggregate(att *solid.Attestation) bool { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NeedToAggregate", arg0) + ret := m.ctrl.Call(m, "NeedToAggregate", att) ret0, _ := ret[0].(bool) return ret0 } // NeedToAggregate indicates an expected call of NeedToAggregate. -func (mr *MockCommitteeSubscribeMockRecorder) NeedToAggregate(arg0 any) *MockCommitteeSubscribeNeedToAggregateCall { +func (mr *MockCommitteeSubscribeMockRecorder) NeedToAggregate(att any) *MockCommitteeSubscribeNeedToAggregateCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NeedToAggregate", reflect.TypeOf((*MockCommitteeSubscribe)(nil).NeedToAggregate), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NeedToAggregate", reflect.TypeOf((*MockCommitteeSubscribe)(nil).NeedToAggregate), att) return &MockCommitteeSubscribeNeedToAggregateCall{Call: call} } diff --git a/cl/validator/sync_contribution_pool/mock_services/sync_contribution_pool_mock.go b/cl/validator/sync_contribution_pool/mock_services/sync_contribution_pool_mock.go index 92dc4f3e7d5..fb7e1401a3a 100644 --- a/cl/validator/sync_contribution_pool/mock_services/sync_contribution_pool_mock.go +++ b/cl/validator/sync_contribution_pool/mock_services/sync_contribution_pool_mock.go @@ -22,6 +22,7 @@ import ( type MockSyncContributionPool struct { ctrl *gomock.Controller recorder *MockSyncContributionPoolMockRecorder + isgomock struct{} } // MockSyncContributionPoolMockRecorder is the mock recorder for MockSyncContributionPool. @@ -42,17 +43,17 @@ func (m *MockSyncContributionPool) EXPECT() *MockSyncContributionPoolMockRecorde } // AddSyncCommitteeMessage mocks base method. -func (m *MockSyncContributionPool) AddSyncCommitteeMessage(arg0 *state.CachingBeaconState, arg1 uint64, arg2 *cltypes.SyncCommitteeMessage) error { +func (m *MockSyncContributionPool) AddSyncCommitteeMessage(headState *state.CachingBeaconState, subCommitee uint64, message *cltypes.SyncCommitteeMessage) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddSyncCommitteeMessage", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "AddSyncCommitteeMessage", headState, subCommitee, message) ret0, _ := ret[0].(error) return ret0 } // AddSyncCommitteeMessage indicates an expected call of AddSyncCommitteeMessage. -func (mr *MockSyncContributionPoolMockRecorder) AddSyncCommitteeMessage(arg0, arg1, arg2 any) *MockSyncContributionPoolAddSyncCommitteeMessageCall { +func (mr *MockSyncContributionPoolMockRecorder) AddSyncCommitteeMessage(headState, subCommitee, message any) *MockSyncContributionPoolAddSyncCommitteeMessageCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSyncCommitteeMessage", reflect.TypeOf((*MockSyncContributionPool)(nil).AddSyncCommitteeMessage), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSyncCommitteeMessage", reflect.TypeOf((*MockSyncContributionPool)(nil).AddSyncCommitteeMessage), headState, subCommitee, message) return &MockSyncContributionPoolAddSyncCommitteeMessageCall{Call: call} } @@ -80,17 +81,17 @@ func (c *MockSyncContributionPoolAddSyncCommitteeMessageCall) DoAndReturn(f func } // AddSyncContribution mocks base method. -func (m *MockSyncContributionPool) AddSyncContribution(arg0 *state.CachingBeaconState, arg1 *cltypes.Contribution) error { +func (m *MockSyncContributionPool) AddSyncContribution(headState *state.CachingBeaconState, contribution *cltypes.Contribution) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddSyncContribution", arg0, arg1) + ret := m.ctrl.Call(m, "AddSyncContribution", headState, contribution) ret0, _ := ret[0].(error) return ret0 } // AddSyncContribution indicates an expected call of AddSyncContribution. -func (mr *MockSyncContributionPoolMockRecorder) AddSyncContribution(arg0, arg1 any) *MockSyncContributionPoolAddSyncContributionCall { +func (mr *MockSyncContributionPoolMockRecorder) AddSyncContribution(headState, contribution any) *MockSyncContributionPoolAddSyncContributionCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSyncContribution", reflect.TypeOf((*MockSyncContributionPool)(nil).AddSyncContribution), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSyncContribution", reflect.TypeOf((*MockSyncContributionPool)(nil).AddSyncContribution), headState, contribution) return &MockSyncContributionPoolAddSyncContributionCall{Call: call} } @@ -118,18 +119,18 @@ func (c *MockSyncContributionPoolAddSyncContributionCall) DoAndReturn(f func(*st } // GetSyncAggregate mocks base method. -func (m *MockSyncContributionPool) GetSyncAggregate(arg0 uint64, arg1 common.Hash) (*cltypes.SyncAggregate, error) { +func (m *MockSyncContributionPool) GetSyncAggregate(slot uint64, beaconBlockRoot common.Hash) (*cltypes.SyncAggregate, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetSyncAggregate", arg0, arg1) + ret := m.ctrl.Call(m, "GetSyncAggregate", slot, beaconBlockRoot) ret0, _ := ret[0].(*cltypes.SyncAggregate) ret1, _ := ret[1].(error) return ret0, ret1 } // GetSyncAggregate indicates an expected call of GetSyncAggregate. -func (mr *MockSyncContributionPoolMockRecorder) GetSyncAggregate(arg0, arg1 any) *MockSyncContributionPoolGetSyncAggregateCall { +func (mr *MockSyncContributionPoolMockRecorder) GetSyncAggregate(slot, beaconBlockRoot any) *MockSyncContributionPoolGetSyncAggregateCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSyncAggregate", reflect.TypeOf((*MockSyncContributionPool)(nil).GetSyncAggregate), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSyncAggregate", reflect.TypeOf((*MockSyncContributionPool)(nil).GetSyncAggregate), slot, beaconBlockRoot) return &MockSyncContributionPoolGetSyncAggregateCall{Call: call} } @@ -157,17 +158,17 @@ func (c *MockSyncContributionPoolGetSyncAggregateCall) DoAndReturn(f func(uint64 } // GetSyncContribution mocks base method. -func (m *MockSyncContributionPool) GetSyncContribution(arg0, arg1 uint64, arg2 common.Hash) *cltypes.Contribution { +func (m *MockSyncContributionPool) GetSyncContribution(slot, subcommitteeIndex uint64, beaconBlockRoot common.Hash) *cltypes.Contribution { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetSyncContribution", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "GetSyncContribution", slot, subcommitteeIndex, beaconBlockRoot) ret0, _ := ret[0].(*cltypes.Contribution) return ret0 } // GetSyncContribution indicates an expected call of GetSyncContribution. -func (mr *MockSyncContributionPoolMockRecorder) GetSyncContribution(arg0, arg1, arg2 any) *MockSyncContributionPoolGetSyncContributionCall { +func (mr *MockSyncContributionPoolMockRecorder) GetSyncContribution(slot, subcommitteeIndex, beaconBlockRoot any) *MockSyncContributionPoolGetSyncContributionCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSyncContribution", reflect.TypeOf((*MockSyncContributionPool)(nil).GetSyncContribution), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSyncContribution", reflect.TypeOf((*MockSyncContributionPool)(nil).GetSyncContribution), slot, subcommitteeIndex, beaconBlockRoot) return &MockSyncContributionPoolGetSyncContributionCall{Call: call} } diff --git a/consensus/chain_header_reader_mock.go b/consensus/chain_header_reader_mock.go index be54e66f076..a2bf58b0423 100644 --- a/consensus/chain_header_reader_mock.go +++ b/consensus/chain_header_reader_mock.go @@ -23,6 +23,7 @@ import ( type MockChainHeaderReader struct { ctrl *gomock.Controller recorder *MockChainHeaderReaderMockRecorder + isgomock struct{} } // MockChainHeaderReaderMockRecorder is the mock recorder for MockChainHeaderReader. @@ -43,17 +44,17 @@ func (m *MockChainHeaderReader) EXPECT() *MockChainHeaderReaderMockRecorder { } // BorSpan mocks base method. -func (m *MockChainHeaderReader) BorSpan(arg0 uint64) []byte { +func (m *MockChainHeaderReader) BorSpan(spanId uint64) []byte { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BorSpan", arg0) + ret := m.ctrl.Call(m, "BorSpan", spanId) ret0, _ := ret[0].([]byte) return ret0 } // BorSpan indicates an expected call of BorSpan. -func (mr *MockChainHeaderReaderMockRecorder) BorSpan(arg0 any) *MockChainHeaderReaderBorSpanCall { +func (mr *MockChainHeaderReaderMockRecorder) BorSpan(spanId any) *MockChainHeaderReaderBorSpanCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BorSpan", reflect.TypeOf((*MockChainHeaderReader)(nil).BorSpan), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BorSpan", reflect.TypeOf((*MockChainHeaderReader)(nil).BorSpan), spanId) return &MockChainHeaderReaderBorSpanCall{Call: call} } @@ -309,17 +310,17 @@ func (c *MockChainHeaderReaderFrozenBorBlocksCall) DoAndReturn(f func() uint64) } // GetHeader mocks base method. -func (m *MockChainHeaderReader) GetHeader(arg0 common.Hash, arg1 uint64) *types.Header { +func (m *MockChainHeaderReader) GetHeader(hash common.Hash, number uint64) *types.Header { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetHeader", arg0, arg1) + ret := m.ctrl.Call(m, "GetHeader", hash, number) ret0, _ := ret[0].(*types.Header) return ret0 } // GetHeader indicates an expected call of GetHeader. -func (mr *MockChainHeaderReaderMockRecorder) GetHeader(arg0, arg1 any) *MockChainHeaderReaderGetHeaderCall { +func (mr *MockChainHeaderReaderMockRecorder) GetHeader(hash, number any) *MockChainHeaderReaderGetHeaderCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeader", reflect.TypeOf((*MockChainHeaderReader)(nil).GetHeader), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeader", reflect.TypeOf((*MockChainHeaderReader)(nil).GetHeader), hash, number) return &MockChainHeaderReaderGetHeaderCall{Call: call} } @@ -347,17 +348,17 @@ func (c *MockChainHeaderReaderGetHeaderCall) DoAndReturn(f func(common.Hash, uin } // GetHeaderByHash mocks base method. -func (m *MockChainHeaderReader) GetHeaderByHash(arg0 common.Hash) *types.Header { +func (m *MockChainHeaderReader) GetHeaderByHash(hash common.Hash) *types.Header { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetHeaderByHash", arg0) + ret := m.ctrl.Call(m, "GetHeaderByHash", hash) ret0, _ := ret[0].(*types.Header) return ret0 } // GetHeaderByHash indicates an expected call of GetHeaderByHash. -func (mr *MockChainHeaderReaderMockRecorder) GetHeaderByHash(arg0 any) *MockChainHeaderReaderGetHeaderByHashCall { +func (mr *MockChainHeaderReaderMockRecorder) GetHeaderByHash(hash any) *MockChainHeaderReaderGetHeaderByHashCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeaderByHash", reflect.TypeOf((*MockChainHeaderReader)(nil).GetHeaderByHash), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeaderByHash", reflect.TypeOf((*MockChainHeaderReader)(nil).GetHeaderByHash), hash) return &MockChainHeaderReaderGetHeaderByHashCall{Call: call} } @@ -385,17 +386,17 @@ func (c *MockChainHeaderReaderGetHeaderByHashCall) DoAndReturn(f func(common.Has } // GetHeaderByNumber mocks base method. -func (m *MockChainHeaderReader) GetHeaderByNumber(arg0 uint64) *types.Header { +func (m *MockChainHeaderReader) GetHeaderByNumber(number uint64) *types.Header { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetHeaderByNumber", arg0) + ret := m.ctrl.Call(m, "GetHeaderByNumber", number) ret0, _ := ret[0].(*types.Header) return ret0 } // GetHeaderByNumber indicates an expected call of GetHeaderByNumber. -func (mr *MockChainHeaderReaderMockRecorder) GetHeaderByNumber(arg0 any) *MockChainHeaderReaderGetHeaderByNumberCall { +func (mr *MockChainHeaderReaderMockRecorder) GetHeaderByNumber(number any) *MockChainHeaderReaderGetHeaderByNumberCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeaderByNumber", reflect.TypeOf((*MockChainHeaderReader)(nil).GetHeaderByNumber), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeaderByNumber", reflect.TypeOf((*MockChainHeaderReader)(nil).GetHeaderByNumber), number) return &MockChainHeaderReaderGetHeaderByNumberCall{Call: call} } @@ -423,17 +424,17 @@ func (c *MockChainHeaderReaderGetHeaderByNumberCall) DoAndReturn(f func(uint64) } // GetTd mocks base method. -func (m *MockChainHeaderReader) GetTd(arg0 common.Hash, arg1 uint64) *big.Int { +func (m *MockChainHeaderReader) GetTd(hash common.Hash, number uint64) *big.Int { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetTd", arg0, arg1) + ret := m.ctrl.Call(m, "GetTd", hash, number) ret0, _ := ret[0].(*big.Int) return ret0 } // GetTd indicates an expected call of GetTd. -func (mr *MockChainHeaderReaderMockRecorder) GetTd(arg0, arg1 any) *MockChainHeaderReaderGetTdCall { +func (mr *MockChainHeaderReaderMockRecorder) GetTd(hash, number any) *MockChainHeaderReaderGetTdCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTd", reflect.TypeOf((*MockChainHeaderReader)(nil).GetTd), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTd", reflect.TypeOf((*MockChainHeaderReader)(nil).GetTd), hash, number) return &MockChainHeaderReaderGetTdCall{Call: call} } diff --git a/erigon-lib/Makefile b/erigon-lib/Makefile index d02cb11a11d..7c1460e3849 100644 --- a/erigon-lib/Makefile +++ b/erigon-lib/Makefile @@ -92,13 +92,10 @@ grpc: protoc-all txpool/txpool.proto txpool/mining.proto rm -rf vendor -build-mockgen: +mocks: + rm -f $(GOBIN)/mockgen $(GOBUILD) -o "$(GOBIN)/mockgen" go.uber.org/mock/mockgen - -mocks-clean: - grep -r -l --exclude-dir="*$(GOBINREL)*" "^// Code generated by MockGen. DO NOT EDIT.$$" . | xargs rm -r - -mocks: build-mockgen mocks-clean +# grep -r -l --exclude-dir="*$(GOBINREL)*" "^// Code generated by MockGen. DO NOT EDIT.$$" . | xargs rm -r PATH="$(GOBIN):$(PATH)" go generate -run "mockgen" ./... lintci-deps: diff --git a/erigon-lib/direct/sentry_client_mock.go b/erigon-lib/direct/sentry_client_mock.go index d644a20b4e1..3aaf0f72d28 100644 --- a/erigon-lib/direct/sentry_client_mock.go +++ b/erigon-lib/direct/sentry_client_mock.go @@ -24,6 +24,7 @@ import ( type MockSentryClient struct { ctrl *gomock.Controller recorder *MockSentryClientMockRecorder + isgomock struct{} } // MockSentryClientMockRecorder is the mock recorder for MockSentryClient. @@ -44,10 +45,10 @@ func (m *MockSentryClient) EXPECT() *MockSentryClientMockRecorder { } // AddPeer mocks base method. -func (m *MockSentryClient) AddPeer(arg0 context.Context, arg1 *sentryproto.AddPeerRequest, arg2 ...grpc.CallOption) (*sentryproto.AddPeerReply, error) { +func (m *MockSentryClient) AddPeer(ctx context.Context, in *sentryproto.AddPeerRequest, opts ...grpc.CallOption) (*sentryproto.AddPeerReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddPeer", varargs...) @@ -57,9 +58,9 @@ func (m *MockSentryClient) AddPeer(arg0 context.Context, arg1 *sentryproto.AddPe } // AddPeer indicates an expected call of AddPeer. -func (mr *MockSentryClientMockRecorder) AddPeer(arg0, arg1 any, arg2 ...any) *MockSentryClientAddPeerCall { +func (mr *MockSentryClientMockRecorder) AddPeer(ctx, in any, opts ...any) *MockSentryClientAddPeerCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPeer", reflect.TypeOf((*MockSentryClient)(nil).AddPeer), varargs...) return &MockSentryClientAddPeerCall{Call: call} } @@ -88,10 +89,10 @@ func (c *MockSentryClientAddPeerCall) DoAndReturn(f func(context.Context, *sentr } // HandShake mocks base method. -func (m *MockSentryClient) HandShake(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*sentryproto.HandShakeReply, error) { +func (m *MockSentryClient) HandShake(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*sentryproto.HandShakeReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "HandShake", varargs...) @@ -101,9 +102,9 @@ func (m *MockSentryClient) HandShake(arg0 context.Context, arg1 *emptypb.Empty, } // HandShake indicates an expected call of HandShake. -func (mr *MockSentryClientMockRecorder) HandShake(arg0, arg1 any, arg2 ...any) *MockSentryClientHandShakeCall { +func (mr *MockSentryClientMockRecorder) HandShake(ctx, in any, opts ...any) *MockSentryClientHandShakeCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandShake", reflect.TypeOf((*MockSentryClient)(nil).HandShake), varargs...) return &MockSentryClientHandShakeCall{Call: call} } @@ -168,10 +169,10 @@ func (c *MockSentryClientMarkDisconnectedCall) DoAndReturn(f func()) *MockSentry } // Messages mocks base method. -func (m *MockSentryClient) Messages(arg0 context.Context, arg1 *sentryproto.MessagesRequest, arg2 ...grpc.CallOption) (sentryproto.Sentry_MessagesClient, error) { +func (m *MockSentryClient) Messages(ctx context.Context, in *sentryproto.MessagesRequest, opts ...grpc.CallOption) (sentryproto.Sentry_MessagesClient, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Messages", varargs...) @@ -181,9 +182,9 @@ func (m *MockSentryClient) Messages(arg0 context.Context, arg1 *sentryproto.Mess } // Messages indicates an expected call of Messages. -func (mr *MockSentryClientMockRecorder) Messages(arg0, arg1 any, arg2 ...any) *MockSentryClientMessagesCall { +func (mr *MockSentryClientMockRecorder) Messages(ctx, in any, opts ...any) *MockSentryClientMessagesCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Messages", reflect.TypeOf((*MockSentryClient)(nil).Messages), varargs...) return &MockSentryClientMessagesCall{Call: call} } @@ -212,10 +213,10 @@ func (c *MockSentryClientMessagesCall) DoAndReturn(f func(context.Context, *sent } // NodeInfo mocks base method. -func (m *MockSentryClient) NodeInfo(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*typesproto.NodeInfoReply, error) { +func (m *MockSentryClient) NodeInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*typesproto.NodeInfoReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "NodeInfo", varargs...) @@ -225,9 +226,9 @@ func (m *MockSentryClient) NodeInfo(arg0 context.Context, arg1 *emptypb.Empty, a } // NodeInfo indicates an expected call of NodeInfo. -func (mr *MockSentryClientMockRecorder) NodeInfo(arg0, arg1 any, arg2 ...any) *MockSentryClientNodeInfoCall { +func (mr *MockSentryClientMockRecorder) NodeInfo(ctx, in any, opts ...any) *MockSentryClientNodeInfoCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeInfo", reflect.TypeOf((*MockSentryClient)(nil).NodeInfo), varargs...) return &MockSentryClientNodeInfoCall{Call: call} } @@ -256,10 +257,10 @@ func (c *MockSentryClientNodeInfoCall) DoAndReturn(f func(context.Context, *empt } // PeerById mocks base method. -func (m *MockSentryClient) PeerById(arg0 context.Context, arg1 *sentryproto.PeerByIdRequest, arg2 ...grpc.CallOption) (*sentryproto.PeerByIdReply, error) { +func (m *MockSentryClient) PeerById(ctx context.Context, in *sentryproto.PeerByIdRequest, opts ...grpc.CallOption) (*sentryproto.PeerByIdReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PeerById", varargs...) @@ -269,9 +270,9 @@ func (m *MockSentryClient) PeerById(arg0 context.Context, arg1 *sentryproto.Peer } // PeerById indicates an expected call of PeerById. -func (mr *MockSentryClientMockRecorder) PeerById(arg0, arg1 any, arg2 ...any) *MockSentryClientPeerByIdCall { +func (mr *MockSentryClientMockRecorder) PeerById(ctx, in any, opts ...any) *MockSentryClientPeerByIdCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerById", reflect.TypeOf((*MockSentryClient)(nil).PeerById), varargs...) return &MockSentryClientPeerByIdCall{Call: call} } @@ -300,10 +301,10 @@ func (c *MockSentryClientPeerByIdCall) DoAndReturn(f func(context.Context, *sent } // PeerCount mocks base method. -func (m *MockSentryClient) PeerCount(arg0 context.Context, arg1 *sentryproto.PeerCountRequest, arg2 ...grpc.CallOption) (*sentryproto.PeerCountReply, error) { +func (m *MockSentryClient) PeerCount(ctx context.Context, in *sentryproto.PeerCountRequest, opts ...grpc.CallOption) (*sentryproto.PeerCountReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PeerCount", varargs...) @@ -313,9 +314,9 @@ func (m *MockSentryClient) PeerCount(arg0 context.Context, arg1 *sentryproto.Pee } // PeerCount indicates an expected call of PeerCount. -func (mr *MockSentryClientMockRecorder) PeerCount(arg0, arg1 any, arg2 ...any) *MockSentryClientPeerCountCall { +func (mr *MockSentryClientMockRecorder) PeerCount(ctx, in any, opts ...any) *MockSentryClientPeerCountCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerCount", reflect.TypeOf((*MockSentryClient)(nil).PeerCount), varargs...) return &MockSentryClientPeerCountCall{Call: call} } @@ -344,10 +345,10 @@ func (c *MockSentryClientPeerCountCall) DoAndReturn(f func(context.Context, *sen } // PeerEvents mocks base method. -func (m *MockSentryClient) PeerEvents(arg0 context.Context, arg1 *sentryproto.PeerEventsRequest, arg2 ...grpc.CallOption) (sentryproto.Sentry_PeerEventsClient, error) { +func (m *MockSentryClient) PeerEvents(ctx context.Context, in *sentryproto.PeerEventsRequest, opts ...grpc.CallOption) (sentryproto.Sentry_PeerEventsClient, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PeerEvents", varargs...) @@ -357,9 +358,9 @@ func (m *MockSentryClient) PeerEvents(arg0 context.Context, arg1 *sentryproto.Pe } // PeerEvents indicates an expected call of PeerEvents. -func (mr *MockSentryClientMockRecorder) PeerEvents(arg0, arg1 any, arg2 ...any) *MockSentryClientPeerEventsCall { +func (mr *MockSentryClientMockRecorder) PeerEvents(ctx, in any, opts ...any) *MockSentryClientPeerEventsCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerEvents", reflect.TypeOf((*MockSentryClient)(nil).PeerEvents), varargs...) return &MockSentryClientPeerEventsCall{Call: call} } @@ -388,10 +389,10 @@ func (c *MockSentryClientPeerEventsCall) DoAndReturn(f func(context.Context, *se } // PeerMinBlock mocks base method. -func (m *MockSentryClient) PeerMinBlock(arg0 context.Context, arg1 *sentryproto.PeerMinBlockRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +func (m *MockSentryClient) PeerMinBlock(ctx context.Context, in *sentryproto.PeerMinBlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PeerMinBlock", varargs...) @@ -401,9 +402,9 @@ func (m *MockSentryClient) PeerMinBlock(arg0 context.Context, arg1 *sentryproto. } // PeerMinBlock indicates an expected call of PeerMinBlock. -func (mr *MockSentryClientMockRecorder) PeerMinBlock(arg0, arg1 any, arg2 ...any) *MockSentryClientPeerMinBlockCall { +func (mr *MockSentryClientMockRecorder) PeerMinBlock(ctx, in any, opts ...any) *MockSentryClientPeerMinBlockCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerMinBlock", reflect.TypeOf((*MockSentryClient)(nil).PeerMinBlock), varargs...) return &MockSentryClientPeerMinBlockCall{Call: call} } @@ -432,10 +433,10 @@ func (c *MockSentryClientPeerMinBlockCall) DoAndReturn(f func(context.Context, * } // Peers mocks base method. -func (m *MockSentryClient) Peers(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*sentryproto.PeersReply, error) { +func (m *MockSentryClient) Peers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*sentryproto.PeersReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Peers", varargs...) @@ -445,9 +446,9 @@ func (m *MockSentryClient) Peers(arg0 context.Context, arg1 *emptypb.Empty, arg2 } // Peers indicates an expected call of Peers. -func (mr *MockSentryClientMockRecorder) Peers(arg0, arg1 any, arg2 ...any) *MockSentryClientPeersCall { +func (mr *MockSentryClientMockRecorder) Peers(ctx, in any, opts ...any) *MockSentryClientPeersCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Peers", reflect.TypeOf((*MockSentryClient)(nil).Peers), varargs...) return &MockSentryClientPeersCall{Call: call} } @@ -476,10 +477,10 @@ func (c *MockSentryClientPeersCall) DoAndReturn(f func(context.Context, *emptypb } // PenalizePeer mocks base method. -func (m *MockSentryClient) PenalizePeer(arg0 context.Context, arg1 *sentryproto.PenalizePeerRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +func (m *MockSentryClient) PenalizePeer(ctx context.Context, in *sentryproto.PenalizePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PenalizePeer", varargs...) @@ -489,9 +490,9 @@ func (m *MockSentryClient) PenalizePeer(arg0 context.Context, arg1 *sentryproto. } // PenalizePeer indicates an expected call of PenalizePeer. -func (mr *MockSentryClientMockRecorder) PenalizePeer(arg0, arg1 any, arg2 ...any) *MockSentryClientPenalizePeerCall { +func (mr *MockSentryClientMockRecorder) PenalizePeer(ctx, in any, opts ...any) *MockSentryClientPenalizePeerCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PenalizePeer", reflect.TypeOf((*MockSentryClient)(nil).PenalizePeer), varargs...) return &MockSentryClientPenalizePeerCall{Call: call} } @@ -596,10 +597,10 @@ func (c *MockSentryClientReadyCall) DoAndReturn(f func() bool) *MockSentryClient } // SendMessageById mocks base method. -func (m *MockSentryClient) SendMessageById(arg0 context.Context, arg1 *sentryproto.SendMessageByIdRequest, arg2 ...grpc.CallOption) (*sentryproto.SentPeers, error) { +func (m *MockSentryClient) SendMessageById(ctx context.Context, in *sentryproto.SendMessageByIdRequest, opts ...grpc.CallOption) (*sentryproto.SentPeers, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SendMessageById", varargs...) @@ -609,9 +610,9 @@ func (m *MockSentryClient) SendMessageById(arg0 context.Context, arg1 *sentrypro } // SendMessageById indicates an expected call of SendMessageById. -func (mr *MockSentryClientMockRecorder) SendMessageById(arg0, arg1 any, arg2 ...any) *MockSentryClientSendMessageByIdCall { +func (mr *MockSentryClientMockRecorder) SendMessageById(ctx, in any, opts ...any) *MockSentryClientSendMessageByIdCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageById", reflect.TypeOf((*MockSentryClient)(nil).SendMessageById), varargs...) return &MockSentryClientSendMessageByIdCall{Call: call} } @@ -640,10 +641,10 @@ func (c *MockSentryClientSendMessageByIdCall) DoAndReturn(f func(context.Context } // SendMessageByMinBlock mocks base method. -func (m *MockSentryClient) SendMessageByMinBlock(arg0 context.Context, arg1 *sentryproto.SendMessageByMinBlockRequest, arg2 ...grpc.CallOption) (*sentryproto.SentPeers, error) { +func (m *MockSentryClient) SendMessageByMinBlock(ctx context.Context, in *sentryproto.SendMessageByMinBlockRequest, opts ...grpc.CallOption) (*sentryproto.SentPeers, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SendMessageByMinBlock", varargs...) @@ -653,9 +654,9 @@ func (m *MockSentryClient) SendMessageByMinBlock(arg0 context.Context, arg1 *sen } // SendMessageByMinBlock indicates an expected call of SendMessageByMinBlock. -func (mr *MockSentryClientMockRecorder) SendMessageByMinBlock(arg0, arg1 any, arg2 ...any) *MockSentryClientSendMessageByMinBlockCall { +func (mr *MockSentryClientMockRecorder) SendMessageByMinBlock(ctx, in any, opts ...any) *MockSentryClientSendMessageByMinBlockCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageByMinBlock", reflect.TypeOf((*MockSentryClient)(nil).SendMessageByMinBlock), varargs...) return &MockSentryClientSendMessageByMinBlockCall{Call: call} } @@ -684,10 +685,10 @@ func (c *MockSentryClientSendMessageByMinBlockCall) DoAndReturn(f func(context.C } // SendMessageToAll mocks base method. -func (m *MockSentryClient) SendMessageToAll(arg0 context.Context, arg1 *sentryproto.OutboundMessageData, arg2 ...grpc.CallOption) (*sentryproto.SentPeers, error) { +func (m *MockSentryClient) SendMessageToAll(ctx context.Context, in *sentryproto.OutboundMessageData, opts ...grpc.CallOption) (*sentryproto.SentPeers, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SendMessageToAll", varargs...) @@ -697,9 +698,9 @@ func (m *MockSentryClient) SendMessageToAll(arg0 context.Context, arg1 *sentrypr } // SendMessageToAll indicates an expected call of SendMessageToAll. -func (mr *MockSentryClientMockRecorder) SendMessageToAll(arg0, arg1 any, arg2 ...any) *MockSentryClientSendMessageToAllCall { +func (mr *MockSentryClientMockRecorder) SendMessageToAll(ctx, in any, opts ...any) *MockSentryClientSendMessageToAllCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageToAll", reflect.TypeOf((*MockSentryClient)(nil).SendMessageToAll), varargs...) return &MockSentryClientSendMessageToAllCall{Call: call} } @@ -728,10 +729,10 @@ func (c *MockSentryClientSendMessageToAllCall) DoAndReturn(f func(context.Contex } // SendMessageToRandomPeers mocks base method. -func (m *MockSentryClient) SendMessageToRandomPeers(arg0 context.Context, arg1 *sentryproto.SendMessageToRandomPeersRequest, arg2 ...grpc.CallOption) (*sentryproto.SentPeers, error) { +func (m *MockSentryClient) SendMessageToRandomPeers(ctx context.Context, in *sentryproto.SendMessageToRandomPeersRequest, opts ...grpc.CallOption) (*sentryproto.SentPeers, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SendMessageToRandomPeers", varargs...) @@ -741,9 +742,9 @@ func (m *MockSentryClient) SendMessageToRandomPeers(arg0 context.Context, arg1 * } // SendMessageToRandomPeers indicates an expected call of SendMessageToRandomPeers. -func (mr *MockSentryClientMockRecorder) SendMessageToRandomPeers(arg0, arg1 any, arg2 ...any) *MockSentryClientSendMessageToRandomPeersCall { +func (mr *MockSentryClientMockRecorder) SendMessageToRandomPeers(ctx, in any, opts ...any) *MockSentryClientSendMessageToRandomPeersCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageToRandomPeers", reflect.TypeOf((*MockSentryClient)(nil).SendMessageToRandomPeers), varargs...) return &MockSentryClientSendMessageToRandomPeersCall{Call: call} } @@ -772,10 +773,10 @@ func (c *MockSentryClientSendMessageToRandomPeersCall) DoAndReturn(f func(contex } // SetStatus mocks base method. -func (m *MockSentryClient) SetStatus(arg0 context.Context, arg1 *sentryproto.StatusData, arg2 ...grpc.CallOption) (*sentryproto.SetStatusReply, error) { +func (m *MockSentryClient) SetStatus(ctx context.Context, in *sentryproto.StatusData, opts ...grpc.CallOption) (*sentryproto.SetStatusReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SetStatus", varargs...) @@ -785,9 +786,9 @@ func (m *MockSentryClient) SetStatus(arg0 context.Context, arg1 *sentryproto.Sta } // SetStatus indicates an expected call of SetStatus. -func (mr *MockSentryClientMockRecorder) SetStatus(arg0, arg1 any, arg2 ...any) *MockSentryClientSetStatusCall { +func (mr *MockSentryClientMockRecorder) SetStatus(ctx, in any, opts ...any) *MockSentryClientSetStatusCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStatus", reflect.TypeOf((*MockSentryClient)(nil).SetStatus), varargs...) return &MockSentryClientSetStatusCall{Call: call} } diff --git a/erigon-lib/go.mod b/erigon-lib/go.mod index 84d147e24c2..c9da468c0af 100644 --- a/erigon-lib/go.mod +++ b/erigon-lib/go.mod @@ -41,7 +41,7 @@ require ( github.com/spaolacci/murmur3 v1.1.0 github.com/stretchr/testify v1.9.0 github.com/tidwall/btree v1.6.0 - go.uber.org/mock v0.4.0 + go.uber.org/mock v0.5.0 golang.org/x/crypto v0.28.0 golang.org/x/exp v0.0.0-20231226003508-02704c960a9b golang.org/x/sync v0.8.0 diff --git a/erigon-lib/go.sum b/erigon-lib/go.sum index a08eb055a3a..4d055f3288c 100644 --- a/erigon-lib/go.sum +++ b/erigon-lib/go.sum @@ -490,8 +490,8 @@ go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= -go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= +go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= +go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= diff --git a/erigon-lib/gointerfaces/downloaderproto/downloader_client_mock.go b/erigon-lib/gointerfaces/downloaderproto/downloader_client_mock.go index 031c4de59dd..3cd573a9862 100644 --- a/erigon-lib/gointerfaces/downloaderproto/downloader_client_mock.go +++ b/erigon-lib/gointerfaces/downloaderproto/downloader_client_mock.go @@ -22,6 +22,7 @@ import ( type MockDownloaderClient struct { ctrl *gomock.Controller recorder *MockDownloaderClientMockRecorder + isgomock struct{} } // MockDownloaderClientMockRecorder is the mock recorder for MockDownloaderClient. @@ -42,10 +43,10 @@ func (m *MockDownloaderClient) EXPECT() *MockDownloaderClientMockRecorder { } // Add mocks base method. -func (m *MockDownloaderClient) Add(arg0 context.Context, arg1 *AddRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +func (m *MockDownloaderClient) Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Add", varargs...) @@ -55,9 +56,9 @@ func (m *MockDownloaderClient) Add(arg0 context.Context, arg1 *AddRequest, arg2 } // Add indicates an expected call of Add. -func (mr *MockDownloaderClientMockRecorder) Add(arg0, arg1 any, arg2 ...any) *MockDownloaderClientAddCall { +func (mr *MockDownloaderClientMockRecorder) Add(ctx, in any, opts ...any) *MockDownloaderClientAddCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockDownloaderClient)(nil).Add), varargs...) return &MockDownloaderClientAddCall{Call: call} } @@ -85,11 +86,55 @@ func (c *MockDownloaderClientAddCall) DoAndReturn(f func(context.Context, *AddRe return c } +// Completed mocks base method. +func (m *MockDownloaderClient) Completed(ctx context.Context, in *CompletedRequest, opts ...grpc.CallOption) (*CompletedReply, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "Completed", varargs...) + ret0, _ := ret[0].(*CompletedReply) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Completed indicates an expected call of Completed. +func (mr *MockDownloaderClientMockRecorder) Completed(ctx, in any, opts ...any) *MockDownloaderClientCompletedCall { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, in}, opts...) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Completed", reflect.TypeOf((*MockDownloaderClient)(nil).Completed), varargs...) + return &MockDownloaderClientCompletedCall{Call: call} +} + +// MockDownloaderClientCompletedCall wrap *gomock.Call +type MockDownloaderClientCompletedCall struct { + *gomock.Call +} + +// Return rewrite *gomock.Call.Return +func (c *MockDownloaderClientCompletedCall) Return(arg0 *CompletedReply, arg1 error) *MockDownloaderClientCompletedCall { + c.Call = c.Call.Return(arg0, arg1) + return c +} + +// Do rewrite *gomock.Call.Do +func (c *MockDownloaderClientCompletedCall) Do(f func(context.Context, *CompletedRequest, ...grpc.CallOption) (*CompletedReply, error)) *MockDownloaderClientCompletedCall { + c.Call = c.Call.Do(f) + return c +} + +// DoAndReturn rewrite *gomock.Call.DoAndReturn +func (c *MockDownloaderClientCompletedCall) DoAndReturn(f func(context.Context, *CompletedRequest, ...grpc.CallOption) (*CompletedReply, error)) *MockDownloaderClientCompletedCall { + c.Call = c.Call.DoAndReturn(f) + return c +} + // Delete mocks base method. -func (m *MockDownloaderClient) Delete(arg0 context.Context, arg1 *DeleteRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +func (m *MockDownloaderClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Delete", varargs...) @@ -99,9 +144,9 @@ func (m *MockDownloaderClient) Delete(arg0 context.Context, arg1 *DeleteRequest, } // Delete indicates an expected call of Delete. -func (mr *MockDownloaderClientMockRecorder) Delete(arg0, arg1 any, arg2 ...any) *MockDownloaderClientDeleteCall { +func (mr *MockDownloaderClientMockRecorder) Delete(ctx, in any, opts ...any) *MockDownloaderClientDeleteCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockDownloaderClient)(nil).Delete), varargs...) return &MockDownloaderClientDeleteCall{Call: call} } @@ -130,10 +175,10 @@ func (c *MockDownloaderClientDeleteCall) DoAndReturn(f func(context.Context, *De } // ProhibitNewDownloads mocks base method. -func (m *MockDownloaderClient) ProhibitNewDownloads(arg0 context.Context, arg1 *ProhibitNewDownloadsRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +func (m *MockDownloaderClient) ProhibitNewDownloads(ctx context.Context, in *ProhibitNewDownloadsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ProhibitNewDownloads", varargs...) @@ -143,9 +188,9 @@ func (m *MockDownloaderClient) ProhibitNewDownloads(arg0 context.Context, arg1 * } // ProhibitNewDownloads indicates an expected call of ProhibitNewDownloads. -func (mr *MockDownloaderClientMockRecorder) ProhibitNewDownloads(arg0, arg1 any, arg2 ...any) *MockDownloaderClientProhibitNewDownloadsCall { +func (mr *MockDownloaderClientMockRecorder) ProhibitNewDownloads(ctx, in any, opts ...any) *MockDownloaderClientProhibitNewDownloadsCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProhibitNewDownloads", reflect.TypeOf((*MockDownloaderClient)(nil).ProhibitNewDownloads), varargs...) return &MockDownloaderClientProhibitNewDownloadsCall{Call: call} } @@ -173,147 +218,134 @@ func (c *MockDownloaderClientProhibitNewDownloadsCall) DoAndReturn(f func(contex return c } -// Verify mocks base method. -func (m *MockDownloaderClient) Verify(arg0 context.Context, arg1 *VerifyRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +// SetLogPrefix mocks base method. +func (m *MockDownloaderClient) SetLogPrefix(ctx context.Context, in *SetLogPrefixRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "Verify", varargs...) + ret := m.ctrl.Call(m, "SetLogPrefix", varargs...) ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } -// Verify indicates an expected call of Verify. -func (mr *MockDownloaderClientMockRecorder) Verify(arg0, arg1 any, arg2 ...any) *MockDownloaderClientVerifyCall { +// SetLogPrefix indicates an expected call of SetLogPrefix. +func (mr *MockDownloaderClientMockRecorder) SetLogPrefix(ctx, in any, opts ...any) *MockDownloaderClientSetLogPrefixCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockDownloaderClient)(nil).Verify), varargs...) - return &MockDownloaderClientVerifyCall{Call: call} + varargs := append([]any{ctx, in}, opts...) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLogPrefix", reflect.TypeOf((*MockDownloaderClient)(nil).SetLogPrefix), varargs...) + return &MockDownloaderClientSetLogPrefixCall{Call: call} } -// MockDownloaderClientVerifyCall wrap *gomock.Call -type MockDownloaderClientVerifyCall struct { +// MockDownloaderClientSetLogPrefixCall wrap *gomock.Call +type MockDownloaderClientSetLogPrefixCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return -func (c *MockDownloaderClientVerifyCall) Return(arg0 *emptypb.Empty, arg1 error) *MockDownloaderClientVerifyCall { +func (c *MockDownloaderClientSetLogPrefixCall) Return(arg0 *emptypb.Empty, arg1 error) *MockDownloaderClientSetLogPrefixCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do -func (c *MockDownloaderClientVerifyCall) Do(f func(context.Context, *VerifyRequest, ...grpc.CallOption) (*emptypb.Empty, error)) *MockDownloaderClientVerifyCall { +func (c *MockDownloaderClientSetLogPrefixCall) Do(f func(context.Context, *SetLogPrefixRequest, ...grpc.CallOption) (*emptypb.Empty, error)) *MockDownloaderClientSetLogPrefixCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn -func (c *MockDownloaderClientVerifyCall) DoAndReturn(f func(context.Context, *VerifyRequest, ...grpc.CallOption) (*emptypb.Empty, error)) *MockDownloaderClientVerifyCall { +func (c *MockDownloaderClientSetLogPrefixCall) DoAndReturn(f func(context.Context, *SetLogPrefixRequest, ...grpc.CallOption) (*emptypb.Empty, error)) *MockDownloaderClientSetLogPrefixCall { c.Call = c.Call.DoAndReturn(f) return c } -// SetLogPrefix mocks base method. -func (m *MockDownloaderClient) SetLogPrefix(arg0 context.Context, arg1 *SetLogPrefixRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +// TorrentCompleted mocks base method. +func (m *MockDownloaderClient) TorrentCompleted(ctx context.Context, in *TorrentCompletedRequest, opts ...grpc.CallOption) (Downloader_TorrentCompletedClient, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "SetLogPrefix", varargs...) - ret0, _ := ret[0].(*emptypb.Empty) + ret := m.ctrl.Call(m, "TorrentCompleted", varargs...) + ret0, _ := ret[0].(Downloader_TorrentCompletedClient) ret1, _ := ret[1].(error) return ret0, ret1 } -// SetLogPrefix indicates an expected call of SetLogPrefix. -func (mr *MockDownloaderClientMockRecorder) SetLogPrefix(arg0, arg1 any, arg2 ...any) *MockDownloaderClientSetLogPrefixCall { +// TorrentCompleted indicates an expected call of TorrentCompleted. +func (mr *MockDownloaderClientMockRecorder) TorrentCompleted(ctx, in any, opts ...any) *MockDownloaderClientTorrentCompletedCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLogPrefix", reflect.TypeOf((*MockDownloaderClient)(nil).SetLogPrefix), varargs...) - return &MockDownloaderClientSetLogPrefixCall{Call: call} + varargs := append([]any{ctx, in}, opts...) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TorrentCompleted", reflect.TypeOf((*MockDownloaderClient)(nil).TorrentCompleted), varargs...) + return &MockDownloaderClientTorrentCompletedCall{Call: call} } -// MockDownloaderClientSetLogPrefixCall wrap *gomock.Call -type MockDownloaderClientSetLogPrefixCall struct { +// MockDownloaderClientTorrentCompletedCall wrap *gomock.Call +type MockDownloaderClientTorrentCompletedCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return -func (c *MockDownloaderClientSetLogPrefixCall) Return(arg0 *emptypb.Empty, arg1 error) *MockDownloaderClientSetLogPrefixCall { +func (c *MockDownloaderClientTorrentCompletedCall) Return(arg0 Downloader_TorrentCompletedClient, arg1 error) *MockDownloaderClientTorrentCompletedCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do -func (c *MockDownloaderClientSetLogPrefixCall) Do(f func(context.Context, *SetLogPrefixRequest, ...grpc.CallOption) (*emptypb.Empty, error)) *MockDownloaderClientSetLogPrefixCall { +func (c *MockDownloaderClientTorrentCompletedCall) Do(f func(context.Context, *TorrentCompletedRequest, ...grpc.CallOption) (Downloader_TorrentCompletedClient, error)) *MockDownloaderClientTorrentCompletedCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn -func (c *MockDownloaderClientSetLogPrefixCall) DoAndReturn(f func(context.Context, *SetLogPrefixRequest, ...grpc.CallOption) (*emptypb.Empty, error)) *MockDownloaderClientSetLogPrefixCall { +func (c *MockDownloaderClientTorrentCompletedCall) DoAndReturn(f func(context.Context, *TorrentCompletedRequest, ...grpc.CallOption) (Downloader_TorrentCompletedClient, error)) *MockDownloaderClientTorrentCompletedCall { c.Call = c.Call.DoAndReturn(f) return c } -// Completed mocks base method. -func (m *MockDownloaderClient) Completed(arg0 context.Context, arg1 *CompletedRequest, arg2 ...grpc.CallOption) (*CompletedReply, error) { +// Verify mocks base method. +func (m *MockDownloaderClient) Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "Completed", varargs...) - ret0, _ := ret[0].(*CompletedReply) + ret := m.ctrl.Call(m, "Verify", varargs...) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } -// Stats indicates an expected call of Completed. -func (mr *MockDownloaderClientMockRecorder) Completed(arg0, arg1 any, arg2 ...any) *MockDownloaderClientCompletedCall { +// Verify indicates an expected call of Verify. +func (mr *MockDownloaderClientMockRecorder) Verify(ctx, in any, opts ...any) *MockDownloaderClientVerifyCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Completed", reflect.TypeOf((*MockDownloaderClient)(nil).Completed), varargs...) - return &MockDownloaderClientCompletedCall{Call: call} + varargs := append([]any{ctx, in}, opts...) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockDownloaderClient)(nil).Verify), varargs...) + return &MockDownloaderClientVerifyCall{Call: call} } -// MockDownloaderClientCompletedCall wrap *gomock.Call -type MockDownloaderClientCompletedCall struct { +// MockDownloaderClientVerifyCall wrap *gomock.Call +type MockDownloaderClientVerifyCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return -func (c *MockDownloaderClientCompletedCall) Return(arg0 *CompletedReply, arg1 error) *MockDownloaderClientCompletedCall { +func (c *MockDownloaderClientVerifyCall) Return(arg0 *emptypb.Empty, arg1 error) *MockDownloaderClientVerifyCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do -func (c *MockDownloaderClientCompletedCall) Do(f func(context.Context, *CompletedRequest, ...grpc.CallOption) (*CompletedReply, error)) *MockDownloaderClientCompletedCall { +func (c *MockDownloaderClientVerifyCall) Do(f func(context.Context, *VerifyRequest, ...grpc.CallOption) (*emptypb.Empty, error)) *MockDownloaderClientVerifyCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn -func (c *MockDownloaderClientCompletedCall) DoAndReturn(f func(context.Context, *CompletedRequest, ...grpc.CallOption) (*CompletedReply, error)) *MockDownloaderClientCompletedCall { +func (c *MockDownloaderClientVerifyCall) DoAndReturn(f func(context.Context, *VerifyRequest, ...grpc.CallOption) (*emptypb.Empty, error)) *MockDownloaderClientVerifyCall { c.Call = c.Call.DoAndReturn(f) return c } - -// Subscribe mocks base method. -func (m *MockDownloaderClient) TorrentCompleted(arg0 context.Context, arg1 *TorrentCompletedRequest, arg2 ...grpc.CallOption) (Downloader_TorrentCompletedClient, error) { - m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "TorrentCompleted", varargs...) - ret0, _ := ret[0].(Downloader_TorrentCompletedClient) - ret1, _ := ret[1].(error) - return ret0, ret1 -} diff --git a/erigon-lib/gointerfaces/remoteproto/kv_client_mock.go b/erigon-lib/gointerfaces/remoteproto/kv_client_mock.go index eb1ab8e6944..bd029a14dda 100644 --- a/erigon-lib/gointerfaces/remoteproto/kv_client_mock.go +++ b/erigon-lib/gointerfaces/remoteproto/kv_client_mock.go @@ -23,6 +23,7 @@ import ( type MockKVClient struct { ctrl *gomock.Controller recorder *MockKVClientMockRecorder + isgomock struct{} } // MockKVClientMockRecorder is the mock recorder for MockKVClient. @@ -43,10 +44,10 @@ func (m *MockKVClient) EXPECT() *MockKVClientMockRecorder { } // DomainGet mocks base method. -func (m *MockKVClient) DomainGet(arg0 context.Context, arg1 *DomainGetReq, arg2 ...grpc.CallOption) (*DomainGetReply, error) { +func (m *MockKVClient) DomainGet(ctx context.Context, in *DomainGetReq, opts ...grpc.CallOption) (*DomainGetReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DomainGet", varargs...) @@ -56,9 +57,9 @@ func (m *MockKVClient) DomainGet(arg0 context.Context, arg1 *DomainGetReq, arg2 } // DomainGet indicates an expected call of DomainGet. -func (mr *MockKVClientMockRecorder) DomainGet(arg0, arg1 any, arg2 ...any) *MockKVClientDomainGetCall { +func (mr *MockKVClientMockRecorder) DomainGet(ctx, in any, opts ...any) *MockKVClientDomainGetCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DomainGet", reflect.TypeOf((*MockKVClient)(nil).DomainGet), varargs...) return &MockKVClientDomainGetCall{Call: call} } @@ -87,10 +88,10 @@ func (c *MockKVClientDomainGetCall) DoAndReturn(f func(context.Context, *DomainG } // DomainRange mocks base method. -func (m *MockKVClient) DomainRange(arg0 context.Context, arg1 *DomainRangeReq, arg2 ...grpc.CallOption) (*Pairs, error) { +func (m *MockKVClient) DomainRange(ctx context.Context, in *DomainRangeReq, opts ...grpc.CallOption) (*Pairs, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DomainRange", varargs...) @@ -100,9 +101,9 @@ func (m *MockKVClient) DomainRange(arg0 context.Context, arg1 *DomainRangeReq, a } // DomainRange indicates an expected call of DomainRange. -func (mr *MockKVClientMockRecorder) DomainRange(arg0, arg1 any, arg2 ...any) *MockKVClientDomainRangeCall { +func (mr *MockKVClientMockRecorder) DomainRange(ctx, in any, opts ...any) *MockKVClientDomainRangeCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DomainRange", reflect.TypeOf((*MockKVClient)(nil).DomainRange), varargs...) return &MockKVClientDomainRangeCall{Call: call} } @@ -131,10 +132,10 @@ func (c *MockKVClientDomainRangeCall) DoAndReturn(f func(context.Context, *Domai } // HistoryRange mocks base method. -func (m *MockKVClient) HistoryRange(arg0 context.Context, arg1 *HistoryRangeReq, arg2 ...grpc.CallOption) (*Pairs, error) { +func (m *MockKVClient) HistoryRange(ctx context.Context, in *HistoryRangeReq, opts ...grpc.CallOption) (*Pairs, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "HistoryRange", varargs...) @@ -144,9 +145,9 @@ func (m *MockKVClient) HistoryRange(arg0 context.Context, arg1 *HistoryRangeReq, } // HistoryRange indicates an expected call of HistoryRange. -func (mr *MockKVClientMockRecorder) HistoryRange(arg0, arg1 any, arg2 ...any) *MockKVClientHistoryRangeCall { +func (mr *MockKVClientMockRecorder) HistoryRange(ctx, in any, opts ...any) *MockKVClientHistoryRangeCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HistoryRange", reflect.TypeOf((*MockKVClient)(nil).HistoryRange), varargs...) return &MockKVClientHistoryRangeCall{Call: call} } @@ -175,10 +176,10 @@ func (c *MockKVClientHistoryRangeCall) DoAndReturn(f func(context.Context, *Hist } // HistorySeek mocks base method. -func (m *MockKVClient) HistorySeek(arg0 context.Context, arg1 *HistorySeekReq, arg2 ...grpc.CallOption) (*HistorySeekReply, error) { +func (m *MockKVClient) HistorySeek(ctx context.Context, in *HistorySeekReq, opts ...grpc.CallOption) (*HistorySeekReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "HistorySeek", varargs...) @@ -188,9 +189,9 @@ func (m *MockKVClient) HistorySeek(arg0 context.Context, arg1 *HistorySeekReq, a } // HistorySeek indicates an expected call of HistorySeek. -func (mr *MockKVClientMockRecorder) HistorySeek(arg0, arg1 any, arg2 ...any) *MockKVClientHistorySeekCall { +func (mr *MockKVClientMockRecorder) HistorySeek(ctx, in any, opts ...any) *MockKVClientHistorySeekCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HistorySeek", reflect.TypeOf((*MockKVClient)(nil).HistorySeek), varargs...) return &MockKVClientHistorySeekCall{Call: call} } @@ -219,10 +220,10 @@ func (c *MockKVClientHistorySeekCall) DoAndReturn(f func(context.Context, *Histo } // IndexRange mocks base method. -func (m *MockKVClient) IndexRange(arg0 context.Context, arg1 *IndexRangeReq, arg2 ...grpc.CallOption) (*IndexRangeReply, error) { +func (m *MockKVClient) IndexRange(ctx context.Context, in *IndexRangeReq, opts ...grpc.CallOption) (*IndexRangeReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "IndexRange", varargs...) @@ -232,9 +233,9 @@ func (m *MockKVClient) IndexRange(arg0 context.Context, arg1 *IndexRangeReq, arg } // IndexRange indicates an expected call of IndexRange. -func (mr *MockKVClientMockRecorder) IndexRange(arg0, arg1 any, arg2 ...any) *MockKVClientIndexRangeCall { +func (mr *MockKVClientMockRecorder) IndexRange(ctx, in any, opts ...any) *MockKVClientIndexRangeCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexRange", reflect.TypeOf((*MockKVClient)(nil).IndexRange), varargs...) return &MockKVClientIndexRangeCall{Call: call} } @@ -263,10 +264,10 @@ func (c *MockKVClientIndexRangeCall) DoAndReturn(f func(context.Context, *IndexR } // Range mocks base method. -func (m *MockKVClient) Range(arg0 context.Context, arg1 *RangeReq, arg2 ...grpc.CallOption) (*Pairs, error) { +func (m *MockKVClient) Range(ctx context.Context, in *RangeReq, opts ...grpc.CallOption) (*Pairs, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Range", varargs...) @@ -276,9 +277,9 @@ func (m *MockKVClient) Range(arg0 context.Context, arg1 *RangeReq, arg2 ...grpc. } // Range indicates an expected call of Range. -func (mr *MockKVClientMockRecorder) Range(arg0, arg1 any, arg2 ...any) *MockKVClientRangeCall { +func (mr *MockKVClientMockRecorder) Range(ctx, in any, opts ...any) *MockKVClientRangeCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Range", reflect.TypeOf((*MockKVClient)(nil).Range), varargs...) return &MockKVClientRangeCall{Call: call} } @@ -307,10 +308,10 @@ func (c *MockKVClientRangeCall) DoAndReturn(f func(context.Context, *RangeReq, . } // Snapshots mocks base method. -func (m *MockKVClient) Snapshots(arg0 context.Context, arg1 *SnapshotsRequest, arg2 ...grpc.CallOption) (*SnapshotsReply, error) { +func (m *MockKVClient) Snapshots(ctx context.Context, in *SnapshotsRequest, opts ...grpc.CallOption) (*SnapshotsReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Snapshots", varargs...) @@ -320,9 +321,9 @@ func (m *MockKVClient) Snapshots(arg0 context.Context, arg1 *SnapshotsRequest, a } // Snapshots indicates an expected call of Snapshots. -func (mr *MockKVClientMockRecorder) Snapshots(arg0, arg1 any, arg2 ...any) *MockKVClientSnapshotsCall { +func (mr *MockKVClientMockRecorder) Snapshots(ctx, in any, opts ...any) *MockKVClientSnapshotsCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshots", reflect.TypeOf((*MockKVClient)(nil).Snapshots), varargs...) return &MockKVClientSnapshotsCall{Call: call} } @@ -351,10 +352,10 @@ func (c *MockKVClientSnapshotsCall) DoAndReturn(f func(context.Context, *Snapsho } // StateChanges mocks base method. -func (m *MockKVClient) StateChanges(arg0 context.Context, arg1 *StateChangeRequest, arg2 ...grpc.CallOption) (KV_StateChangesClient, error) { +func (m *MockKVClient) StateChanges(ctx context.Context, in *StateChangeRequest, opts ...grpc.CallOption) (KV_StateChangesClient, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "StateChanges", varargs...) @@ -364,9 +365,9 @@ func (m *MockKVClient) StateChanges(arg0 context.Context, arg1 *StateChangeReque } // StateChanges indicates an expected call of StateChanges. -func (mr *MockKVClientMockRecorder) StateChanges(arg0, arg1 any, arg2 ...any) *MockKVClientStateChangesCall { +func (mr *MockKVClientMockRecorder) StateChanges(ctx, in any, opts ...any) *MockKVClientStateChangesCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateChanges", reflect.TypeOf((*MockKVClient)(nil).StateChanges), varargs...) return &MockKVClientStateChangesCall{Call: call} } @@ -395,10 +396,10 @@ func (c *MockKVClientStateChangesCall) DoAndReturn(f func(context.Context, *Stat } // Tx mocks base method. -func (m *MockKVClient) Tx(arg0 context.Context, arg1 ...grpc.CallOption) (KV_TxClient, error) { +func (m *MockKVClient) Tx(ctx context.Context, opts ...grpc.CallOption) (KV_TxClient, error) { m.ctrl.T.Helper() - varargs := []any{arg0} - for _, a := range arg1 { + varargs := []any{ctx} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Tx", varargs...) @@ -408,9 +409,9 @@ func (m *MockKVClient) Tx(arg0 context.Context, arg1 ...grpc.CallOption) (KV_TxC } // Tx indicates an expected call of Tx. -func (mr *MockKVClientMockRecorder) Tx(arg0 any, arg1 ...any) *MockKVClientTxCall { +func (mr *MockKVClientMockRecorder) Tx(ctx any, opts ...any) *MockKVClientTxCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0}, arg1...) + varargs := append([]any{ctx}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tx", reflect.TypeOf((*MockKVClient)(nil).Tx), varargs...) return &MockKVClientTxCall{Call: call} } @@ -439,10 +440,10 @@ func (c *MockKVClientTxCall) DoAndReturn(f func(context.Context, ...grpc.CallOpt } // Version mocks base method. -func (m *MockKVClient) Version(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*typesproto.VersionReply, error) { +func (m *MockKVClient) Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*typesproto.VersionReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Version", varargs...) @@ -452,9 +453,9 @@ func (m *MockKVClient) Version(arg0 context.Context, arg1 *emptypb.Empty, arg2 . } // Version indicates an expected call of Version. -func (mr *MockKVClientMockRecorder) Version(arg0, arg1 any, arg2 ...any) *MockKVClientVersionCall { +func (mr *MockKVClientMockRecorder) Version(ctx, in any, opts ...any) *MockKVClientVersionCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockKVClient)(nil).Version), varargs...) return &MockKVClientVersionCall{Call: call} } diff --git a/erigon-lib/gointerfaces/remoteproto/kv_state_changes_client_mock.go b/erigon-lib/gointerfaces/remoteproto/kv_state_changes_client_mock.go index 59ffa08ad1e..01b9a4a304e 100644 --- a/erigon-lib/gointerfaces/remoteproto/kv_state_changes_client_mock.go +++ b/erigon-lib/gointerfaces/remoteproto/kv_state_changes_client_mock.go @@ -21,6 +21,7 @@ import ( type MockKV_StateChangesClient struct { ctrl *gomock.Controller recorder *MockKV_StateChangesClientMockRecorder + isgomock struct{} } // MockKV_StateChangesClientMockRecorder is the mock recorder for MockKV_StateChangesClient. @@ -195,17 +196,17 @@ func (c *MockKV_StateChangesClientRecvCall) DoAndReturn(f func() (*StateChangeBa } // RecvMsg mocks base method. -func (m *MockKV_StateChangesClient) RecvMsg(arg0 any) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RecvMsg", arg0) +func (m_2 *MockKV_StateChangesClient) RecvMsg(m any) error { + m_2.ctrl.T.Helper() + ret := m_2.ctrl.Call(m_2, "RecvMsg", m) ret0, _ := ret[0].(error) return ret0 } // RecvMsg indicates an expected call of RecvMsg. -func (mr *MockKV_StateChangesClientMockRecorder) RecvMsg(arg0 any) *MockKV_StateChangesClientRecvMsgCall { +func (mr *MockKV_StateChangesClientMockRecorder) RecvMsg(m any) *MockKV_StateChangesClientRecvMsgCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockKV_StateChangesClient)(nil).RecvMsg), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockKV_StateChangesClient)(nil).RecvMsg), m) return &MockKV_StateChangesClientRecvMsgCall{Call: call} } @@ -233,17 +234,17 @@ func (c *MockKV_StateChangesClientRecvMsgCall) DoAndReturn(f func(any) error) *M } // SendMsg mocks base method. -func (m *MockKV_StateChangesClient) SendMsg(arg0 any) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SendMsg", arg0) +func (m_2 *MockKV_StateChangesClient) SendMsg(m any) error { + m_2.ctrl.T.Helper() + ret := m_2.ctrl.Call(m_2, "SendMsg", m) ret0, _ := ret[0].(error) return ret0 } // SendMsg indicates an expected call of SendMsg. -func (mr *MockKV_StateChangesClientMockRecorder) SendMsg(arg0 any) *MockKV_StateChangesClientSendMsgCall { +func (mr *MockKV_StateChangesClientMockRecorder) SendMsg(m any) *MockKV_StateChangesClientSendMsgCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockKV_StateChangesClient)(nil).SendMsg), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockKV_StateChangesClient)(nil).SendMsg), m) return &MockKV_StateChangesClientSendMsgCall{Call: call} } diff --git a/erigon-lib/gointerfaces/sentryproto/sentry_client_mock.go b/erigon-lib/gointerfaces/sentryproto/sentry_client_mock.go index 3ee448deb4e..d5efb9900b5 100644 --- a/erigon-lib/gointerfaces/sentryproto/sentry_client_mock.go +++ b/erigon-lib/gointerfaces/sentryproto/sentry_client_mock.go @@ -23,6 +23,7 @@ import ( type MockSentryClient struct { ctrl *gomock.Controller recorder *MockSentryClientMockRecorder + isgomock struct{} } // MockSentryClientMockRecorder is the mock recorder for MockSentryClient. @@ -43,10 +44,10 @@ func (m *MockSentryClient) EXPECT() *MockSentryClientMockRecorder { } // AddPeer mocks base method. -func (m *MockSentryClient) AddPeer(arg0 context.Context, arg1 *AddPeerRequest, arg2 ...grpc.CallOption) (*AddPeerReply, error) { +func (m *MockSentryClient) AddPeer(ctx context.Context, in *AddPeerRequest, opts ...grpc.CallOption) (*AddPeerReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddPeer", varargs...) @@ -56,9 +57,9 @@ func (m *MockSentryClient) AddPeer(arg0 context.Context, arg1 *AddPeerRequest, a } // AddPeer indicates an expected call of AddPeer. -func (mr *MockSentryClientMockRecorder) AddPeer(arg0, arg1 any, arg2 ...any) *MockSentryClientAddPeerCall { +func (mr *MockSentryClientMockRecorder) AddPeer(ctx, in any, opts ...any) *MockSentryClientAddPeerCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPeer", reflect.TypeOf((*MockSentryClient)(nil).AddPeer), varargs...) return &MockSentryClientAddPeerCall{Call: call} } @@ -87,10 +88,10 @@ func (c *MockSentryClientAddPeerCall) DoAndReturn(f func(context.Context, *AddPe } // HandShake mocks base method. -func (m *MockSentryClient) HandShake(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*HandShakeReply, error) { +func (m *MockSentryClient) HandShake(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HandShakeReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "HandShake", varargs...) @@ -100,9 +101,9 @@ func (m *MockSentryClient) HandShake(arg0 context.Context, arg1 *emptypb.Empty, } // HandShake indicates an expected call of HandShake. -func (mr *MockSentryClientMockRecorder) HandShake(arg0, arg1 any, arg2 ...any) *MockSentryClientHandShakeCall { +func (mr *MockSentryClientMockRecorder) HandShake(ctx, in any, opts ...any) *MockSentryClientHandShakeCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandShake", reflect.TypeOf((*MockSentryClient)(nil).HandShake), varargs...) return &MockSentryClientHandShakeCall{Call: call} } @@ -131,10 +132,10 @@ func (c *MockSentryClientHandShakeCall) DoAndReturn(f func(context.Context, *emp } // Messages mocks base method. -func (m *MockSentryClient) Messages(arg0 context.Context, arg1 *MessagesRequest, arg2 ...grpc.CallOption) (Sentry_MessagesClient, error) { +func (m *MockSentryClient) Messages(ctx context.Context, in *MessagesRequest, opts ...grpc.CallOption) (Sentry_MessagesClient, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Messages", varargs...) @@ -144,9 +145,9 @@ func (m *MockSentryClient) Messages(arg0 context.Context, arg1 *MessagesRequest, } // Messages indicates an expected call of Messages. -func (mr *MockSentryClientMockRecorder) Messages(arg0, arg1 any, arg2 ...any) *MockSentryClientMessagesCall { +func (mr *MockSentryClientMockRecorder) Messages(ctx, in any, opts ...any) *MockSentryClientMessagesCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Messages", reflect.TypeOf((*MockSentryClient)(nil).Messages), varargs...) return &MockSentryClientMessagesCall{Call: call} } @@ -175,10 +176,10 @@ func (c *MockSentryClientMessagesCall) DoAndReturn(f func(context.Context, *Mess } // NodeInfo mocks base method. -func (m *MockSentryClient) NodeInfo(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*typesproto.NodeInfoReply, error) { +func (m *MockSentryClient) NodeInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*typesproto.NodeInfoReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "NodeInfo", varargs...) @@ -188,9 +189,9 @@ func (m *MockSentryClient) NodeInfo(arg0 context.Context, arg1 *emptypb.Empty, a } // NodeInfo indicates an expected call of NodeInfo. -func (mr *MockSentryClientMockRecorder) NodeInfo(arg0, arg1 any, arg2 ...any) *MockSentryClientNodeInfoCall { +func (mr *MockSentryClientMockRecorder) NodeInfo(ctx, in any, opts ...any) *MockSentryClientNodeInfoCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeInfo", reflect.TypeOf((*MockSentryClient)(nil).NodeInfo), varargs...) return &MockSentryClientNodeInfoCall{Call: call} } @@ -219,10 +220,10 @@ func (c *MockSentryClientNodeInfoCall) DoAndReturn(f func(context.Context, *empt } // PeerById mocks base method. -func (m *MockSentryClient) PeerById(arg0 context.Context, arg1 *PeerByIdRequest, arg2 ...grpc.CallOption) (*PeerByIdReply, error) { +func (m *MockSentryClient) PeerById(ctx context.Context, in *PeerByIdRequest, opts ...grpc.CallOption) (*PeerByIdReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PeerById", varargs...) @@ -232,9 +233,9 @@ func (m *MockSentryClient) PeerById(arg0 context.Context, arg1 *PeerByIdRequest, } // PeerById indicates an expected call of PeerById. -func (mr *MockSentryClientMockRecorder) PeerById(arg0, arg1 any, arg2 ...any) *MockSentryClientPeerByIdCall { +func (mr *MockSentryClientMockRecorder) PeerById(ctx, in any, opts ...any) *MockSentryClientPeerByIdCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerById", reflect.TypeOf((*MockSentryClient)(nil).PeerById), varargs...) return &MockSentryClientPeerByIdCall{Call: call} } @@ -263,10 +264,10 @@ func (c *MockSentryClientPeerByIdCall) DoAndReturn(f func(context.Context, *Peer } // PeerCount mocks base method. -func (m *MockSentryClient) PeerCount(arg0 context.Context, arg1 *PeerCountRequest, arg2 ...grpc.CallOption) (*PeerCountReply, error) { +func (m *MockSentryClient) PeerCount(ctx context.Context, in *PeerCountRequest, opts ...grpc.CallOption) (*PeerCountReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PeerCount", varargs...) @@ -276,9 +277,9 @@ func (m *MockSentryClient) PeerCount(arg0 context.Context, arg1 *PeerCountReques } // PeerCount indicates an expected call of PeerCount. -func (mr *MockSentryClientMockRecorder) PeerCount(arg0, arg1 any, arg2 ...any) *MockSentryClientPeerCountCall { +func (mr *MockSentryClientMockRecorder) PeerCount(ctx, in any, opts ...any) *MockSentryClientPeerCountCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerCount", reflect.TypeOf((*MockSentryClient)(nil).PeerCount), varargs...) return &MockSentryClientPeerCountCall{Call: call} } @@ -307,10 +308,10 @@ func (c *MockSentryClientPeerCountCall) DoAndReturn(f func(context.Context, *Pee } // PeerEvents mocks base method. -func (m *MockSentryClient) PeerEvents(arg0 context.Context, arg1 *PeerEventsRequest, arg2 ...grpc.CallOption) (Sentry_PeerEventsClient, error) { +func (m *MockSentryClient) PeerEvents(ctx context.Context, in *PeerEventsRequest, opts ...grpc.CallOption) (Sentry_PeerEventsClient, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PeerEvents", varargs...) @@ -320,9 +321,9 @@ func (m *MockSentryClient) PeerEvents(arg0 context.Context, arg1 *PeerEventsRequ } // PeerEvents indicates an expected call of PeerEvents. -func (mr *MockSentryClientMockRecorder) PeerEvents(arg0, arg1 any, arg2 ...any) *MockSentryClientPeerEventsCall { +func (mr *MockSentryClientMockRecorder) PeerEvents(ctx, in any, opts ...any) *MockSentryClientPeerEventsCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerEvents", reflect.TypeOf((*MockSentryClient)(nil).PeerEvents), varargs...) return &MockSentryClientPeerEventsCall{Call: call} } @@ -351,10 +352,10 @@ func (c *MockSentryClientPeerEventsCall) DoAndReturn(f func(context.Context, *Pe } // PeerMinBlock mocks base method. -func (m *MockSentryClient) PeerMinBlock(arg0 context.Context, arg1 *PeerMinBlockRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +func (m *MockSentryClient) PeerMinBlock(ctx context.Context, in *PeerMinBlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PeerMinBlock", varargs...) @@ -364,9 +365,9 @@ func (m *MockSentryClient) PeerMinBlock(arg0 context.Context, arg1 *PeerMinBlock } // PeerMinBlock indicates an expected call of PeerMinBlock. -func (mr *MockSentryClientMockRecorder) PeerMinBlock(arg0, arg1 any, arg2 ...any) *MockSentryClientPeerMinBlockCall { +func (mr *MockSentryClientMockRecorder) PeerMinBlock(ctx, in any, opts ...any) *MockSentryClientPeerMinBlockCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerMinBlock", reflect.TypeOf((*MockSentryClient)(nil).PeerMinBlock), varargs...) return &MockSentryClientPeerMinBlockCall{Call: call} } @@ -395,10 +396,10 @@ func (c *MockSentryClientPeerMinBlockCall) DoAndReturn(f func(context.Context, * } // Peers mocks base method. -func (m *MockSentryClient) Peers(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*PeersReply, error) { +func (m *MockSentryClient) Peers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PeersReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Peers", varargs...) @@ -408,9 +409,9 @@ func (m *MockSentryClient) Peers(arg0 context.Context, arg1 *emptypb.Empty, arg2 } // Peers indicates an expected call of Peers. -func (mr *MockSentryClientMockRecorder) Peers(arg0, arg1 any, arg2 ...any) *MockSentryClientPeersCall { +func (mr *MockSentryClientMockRecorder) Peers(ctx, in any, opts ...any) *MockSentryClientPeersCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Peers", reflect.TypeOf((*MockSentryClient)(nil).Peers), varargs...) return &MockSentryClientPeersCall{Call: call} } @@ -439,10 +440,10 @@ func (c *MockSentryClientPeersCall) DoAndReturn(f func(context.Context, *emptypb } // PenalizePeer mocks base method. -func (m *MockSentryClient) PenalizePeer(arg0 context.Context, arg1 *PenalizePeerRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { +func (m *MockSentryClient) PenalizePeer(ctx context.Context, in *PenalizePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PenalizePeer", varargs...) @@ -452,9 +453,9 @@ func (m *MockSentryClient) PenalizePeer(arg0 context.Context, arg1 *PenalizePeer } // PenalizePeer indicates an expected call of PenalizePeer. -func (mr *MockSentryClientMockRecorder) PenalizePeer(arg0, arg1 any, arg2 ...any) *MockSentryClientPenalizePeerCall { +func (mr *MockSentryClientMockRecorder) PenalizePeer(ctx, in any, opts ...any) *MockSentryClientPenalizePeerCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PenalizePeer", reflect.TypeOf((*MockSentryClient)(nil).PenalizePeer), varargs...) return &MockSentryClientPenalizePeerCall{Call: call} } @@ -483,10 +484,10 @@ func (c *MockSentryClientPenalizePeerCall) DoAndReturn(f func(context.Context, * } // SendMessageById mocks base method. -func (m *MockSentryClient) SendMessageById(arg0 context.Context, arg1 *SendMessageByIdRequest, arg2 ...grpc.CallOption) (*SentPeers, error) { +func (m *MockSentryClient) SendMessageById(ctx context.Context, in *SendMessageByIdRequest, opts ...grpc.CallOption) (*SentPeers, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SendMessageById", varargs...) @@ -496,9 +497,9 @@ func (m *MockSentryClient) SendMessageById(arg0 context.Context, arg1 *SendMessa } // SendMessageById indicates an expected call of SendMessageById. -func (mr *MockSentryClientMockRecorder) SendMessageById(arg0, arg1 any, arg2 ...any) *MockSentryClientSendMessageByIdCall { +func (mr *MockSentryClientMockRecorder) SendMessageById(ctx, in any, opts ...any) *MockSentryClientSendMessageByIdCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageById", reflect.TypeOf((*MockSentryClient)(nil).SendMessageById), varargs...) return &MockSentryClientSendMessageByIdCall{Call: call} } @@ -527,10 +528,10 @@ func (c *MockSentryClientSendMessageByIdCall) DoAndReturn(f func(context.Context } // SendMessageByMinBlock mocks base method. -func (m *MockSentryClient) SendMessageByMinBlock(arg0 context.Context, arg1 *SendMessageByMinBlockRequest, arg2 ...grpc.CallOption) (*SentPeers, error) { +func (m *MockSentryClient) SendMessageByMinBlock(ctx context.Context, in *SendMessageByMinBlockRequest, opts ...grpc.CallOption) (*SentPeers, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SendMessageByMinBlock", varargs...) @@ -540,9 +541,9 @@ func (m *MockSentryClient) SendMessageByMinBlock(arg0 context.Context, arg1 *Sen } // SendMessageByMinBlock indicates an expected call of SendMessageByMinBlock. -func (mr *MockSentryClientMockRecorder) SendMessageByMinBlock(arg0, arg1 any, arg2 ...any) *MockSentryClientSendMessageByMinBlockCall { +func (mr *MockSentryClientMockRecorder) SendMessageByMinBlock(ctx, in any, opts ...any) *MockSentryClientSendMessageByMinBlockCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageByMinBlock", reflect.TypeOf((*MockSentryClient)(nil).SendMessageByMinBlock), varargs...) return &MockSentryClientSendMessageByMinBlockCall{Call: call} } @@ -571,10 +572,10 @@ func (c *MockSentryClientSendMessageByMinBlockCall) DoAndReturn(f func(context.C } // SendMessageToAll mocks base method. -func (m *MockSentryClient) SendMessageToAll(arg0 context.Context, arg1 *OutboundMessageData, arg2 ...grpc.CallOption) (*SentPeers, error) { +func (m *MockSentryClient) SendMessageToAll(ctx context.Context, in *OutboundMessageData, opts ...grpc.CallOption) (*SentPeers, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SendMessageToAll", varargs...) @@ -584,9 +585,9 @@ func (m *MockSentryClient) SendMessageToAll(arg0 context.Context, arg1 *Outbound } // SendMessageToAll indicates an expected call of SendMessageToAll. -func (mr *MockSentryClientMockRecorder) SendMessageToAll(arg0, arg1 any, arg2 ...any) *MockSentryClientSendMessageToAllCall { +func (mr *MockSentryClientMockRecorder) SendMessageToAll(ctx, in any, opts ...any) *MockSentryClientSendMessageToAllCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageToAll", reflect.TypeOf((*MockSentryClient)(nil).SendMessageToAll), varargs...) return &MockSentryClientSendMessageToAllCall{Call: call} } @@ -615,10 +616,10 @@ func (c *MockSentryClientSendMessageToAllCall) DoAndReturn(f func(context.Contex } // SendMessageToRandomPeers mocks base method. -func (m *MockSentryClient) SendMessageToRandomPeers(arg0 context.Context, arg1 *SendMessageToRandomPeersRequest, arg2 ...grpc.CallOption) (*SentPeers, error) { +func (m *MockSentryClient) SendMessageToRandomPeers(ctx context.Context, in *SendMessageToRandomPeersRequest, opts ...grpc.CallOption) (*SentPeers, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SendMessageToRandomPeers", varargs...) @@ -628,9 +629,9 @@ func (m *MockSentryClient) SendMessageToRandomPeers(arg0 context.Context, arg1 * } // SendMessageToRandomPeers indicates an expected call of SendMessageToRandomPeers. -func (mr *MockSentryClientMockRecorder) SendMessageToRandomPeers(arg0, arg1 any, arg2 ...any) *MockSentryClientSendMessageToRandomPeersCall { +func (mr *MockSentryClientMockRecorder) SendMessageToRandomPeers(ctx, in any, opts ...any) *MockSentryClientSendMessageToRandomPeersCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageToRandomPeers", reflect.TypeOf((*MockSentryClient)(nil).SendMessageToRandomPeers), varargs...) return &MockSentryClientSendMessageToRandomPeersCall{Call: call} } @@ -659,10 +660,10 @@ func (c *MockSentryClientSendMessageToRandomPeersCall) DoAndReturn(f func(contex } // SetStatus mocks base method. -func (m *MockSentryClient) SetStatus(arg0 context.Context, arg1 *StatusData, arg2 ...grpc.CallOption) (*SetStatusReply, error) { +func (m *MockSentryClient) SetStatus(ctx context.Context, in *StatusData, opts ...grpc.CallOption) (*SetStatusReply, error) { m.ctrl.T.Helper() - varargs := []any{arg0, arg1} - for _, a := range arg2 { + varargs := []any{ctx, in} + for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SetStatus", varargs...) @@ -672,9 +673,9 @@ func (m *MockSentryClient) SetStatus(arg0 context.Context, arg1 *StatusData, arg } // SetStatus indicates an expected call of SetStatus. -func (mr *MockSentryClientMockRecorder) SetStatus(arg0, arg1 any, arg2 ...any) *MockSentryClientSetStatusCall { +func (mr *MockSentryClientMockRecorder) SetStatus(ctx, in any, opts ...any) *MockSentryClientSetStatusCall { mr.mock.ctrl.T.Helper() - varargs := append([]any{arg0, arg1}, arg2...) + varargs := append([]any{ctx, in}, opts...) call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStatus", reflect.TypeOf((*MockSentryClient)(nil).SetStatus), varargs...) return &MockSentryClientSetStatusCall{Call: call} } diff --git a/erigon-lib/gointerfaces/sentryproto/sentry_server_mock.go b/erigon-lib/gointerfaces/sentryproto/sentry_server_mock.go index 7bddcc00aa7..1773b34b54d 100644 --- a/erigon-lib/gointerfaces/sentryproto/sentry_server_mock.go +++ b/erigon-lib/gointerfaces/sentryproto/sentry_server_mock.go @@ -22,6 +22,7 @@ import ( type MockSentryServer struct { ctrl *gomock.Controller recorder *MockSentryServerMockRecorder + isgomock struct{} } // MockSentryServerMockRecorder is the mock recorder for MockSentryServer. diff --git a/erigon-lib/kv/remotedbserver/snapshots_mock.go b/erigon-lib/kv/remotedbserver/snapshots_mock.go index 8dde9e6a628..05b2a3da085 100644 --- a/erigon-lib/kv/remotedbserver/snapshots_mock.go +++ b/erigon-lib/kv/remotedbserver/snapshots_mock.go @@ -19,6 +19,7 @@ import ( type MockSnapshots struct { ctrl *gomock.Controller recorder *MockSnapshotsMockRecorder + isgomock struct{} } // MockSnapshotsMockRecorder is the mock recorder for MockSnapshots. diff --git a/erigon-lib/txpool/pool_mock.go b/erigon-lib/txpool/pool_mock.go index a9c1b4aa427..743e33a5e6d 100644 --- a/erigon-lib/txpool/pool_mock.go +++ b/erigon-lib/txpool/pool_mock.go @@ -24,6 +24,7 @@ import ( type MockPool struct { ctrl *gomock.Controller recorder *MockPoolMockRecorder + isgomock struct{} } // MockPoolMockRecorder is the mock recorder for MockPool. @@ -44,18 +45,18 @@ func (m *MockPool) EXPECT() *MockPoolMockRecorder { } // AddLocalTxs mocks base method. -func (m *MockPool) AddLocalTxs(arg0 context.Context, arg1 types.TxSlots, arg2 kv.Tx) ([]txpoolcfg.DiscardReason, error) { +func (m *MockPool) AddLocalTxs(ctx context.Context, newTxs types.TxSlots, tx kv.Tx) ([]txpoolcfg.DiscardReason, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddLocalTxs", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "AddLocalTxs", ctx, newTxs, tx) ret0, _ := ret[0].([]txpoolcfg.DiscardReason) ret1, _ := ret[1].(error) return ret0, ret1 } // AddLocalTxs indicates an expected call of AddLocalTxs. -func (mr *MockPoolMockRecorder) AddLocalTxs(arg0, arg1, arg2 any) *MockPoolAddLocalTxsCall { +func (mr *MockPoolMockRecorder) AddLocalTxs(ctx, newTxs, tx any) *MockPoolAddLocalTxsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddLocalTxs", reflect.TypeOf((*MockPool)(nil).AddLocalTxs), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddLocalTxs", reflect.TypeOf((*MockPool)(nil).AddLocalTxs), ctx, newTxs, tx) return &MockPoolAddLocalTxsCall{Call: call} } @@ -83,15 +84,15 @@ func (c *MockPoolAddLocalTxsCall) DoAndReturn(f func(context.Context, types.TxSl } // AddNewGoodPeer mocks base method. -func (m *MockPool) AddNewGoodPeer(arg0 types.PeerID) { +func (m *MockPool) AddNewGoodPeer(peerID types.PeerID) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddNewGoodPeer", arg0) + m.ctrl.Call(m, "AddNewGoodPeer", peerID) } // AddNewGoodPeer indicates an expected call of AddNewGoodPeer. -func (mr *MockPoolMockRecorder) AddNewGoodPeer(arg0 any) *MockPoolAddNewGoodPeerCall { +func (mr *MockPoolMockRecorder) AddNewGoodPeer(peerID any) *MockPoolAddNewGoodPeerCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddNewGoodPeer", reflect.TypeOf((*MockPool)(nil).AddNewGoodPeer), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddNewGoodPeer", reflect.TypeOf((*MockPool)(nil).AddNewGoodPeer), peerID) return &MockPoolAddNewGoodPeerCall{Call: call} } @@ -119,15 +120,15 @@ func (c *MockPoolAddNewGoodPeerCall) DoAndReturn(f func(types.PeerID)) *MockPool } // AddRemoteTxs mocks base method. -func (m *MockPool) AddRemoteTxs(arg0 context.Context, arg1 types.TxSlots) { +func (m *MockPool) AddRemoteTxs(ctx context.Context, newTxs types.TxSlots) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddRemoteTxs", arg0, arg1) + m.ctrl.Call(m, "AddRemoteTxs", ctx, newTxs) } // AddRemoteTxs indicates an expected call of AddRemoteTxs. -func (mr *MockPoolMockRecorder) AddRemoteTxs(arg0, arg1 any) *MockPoolAddRemoteTxsCall { +func (mr *MockPoolMockRecorder) AddRemoteTxs(ctx, newTxs any) *MockPoolAddRemoteTxsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRemoteTxs", reflect.TypeOf((*MockPool)(nil).AddRemoteTxs), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRemoteTxs", reflect.TypeOf((*MockPool)(nil).AddRemoteTxs), ctx, newTxs) return &MockPoolAddRemoteTxsCall{Call: call} } @@ -155,18 +156,18 @@ func (c *MockPoolAddRemoteTxsCall) DoAndReturn(f func(context.Context, types.TxS } // FilterKnownIdHashes mocks base method. -func (m *MockPool) FilterKnownIdHashes(arg0 kv.Tx, arg1 types.Hashes) (types.Hashes, error) { +func (m *MockPool) FilterKnownIdHashes(tx kv.Tx, hashes types.Hashes) (types.Hashes, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FilterKnownIdHashes", arg0, arg1) + ret := m.ctrl.Call(m, "FilterKnownIdHashes", tx, hashes) ret0, _ := ret[0].(types.Hashes) ret1, _ := ret[1].(error) return ret0, ret1 } // FilterKnownIdHashes indicates an expected call of FilterKnownIdHashes. -func (mr *MockPoolMockRecorder) FilterKnownIdHashes(arg0, arg1 any) *MockPoolFilterKnownIdHashesCall { +func (mr *MockPoolMockRecorder) FilterKnownIdHashes(tx, hashes any) *MockPoolFilterKnownIdHashesCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilterKnownIdHashes", reflect.TypeOf((*MockPool)(nil).FilterKnownIdHashes), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilterKnownIdHashes", reflect.TypeOf((*MockPool)(nil).FilterKnownIdHashes), tx, hashes) return &MockPoolFilterKnownIdHashesCall{Call: call} } @@ -176,8 +177,8 @@ type MockPoolFilterKnownIdHashesCall struct { } // Return rewrite *gomock.Call.Return -func (c *MockPoolFilterKnownIdHashesCall) Return(arg0 types.Hashes, arg1 error) *MockPoolFilterKnownIdHashesCall { - c.Call = c.Call.Return(arg0, arg1) +func (c *MockPoolFilterKnownIdHashesCall) Return(unknownHashes types.Hashes, err error) *MockPoolFilterKnownIdHashesCall { + c.Call = c.Call.Return(unknownHashes, err) return c } @@ -194,18 +195,18 @@ func (c *MockPoolFilterKnownIdHashesCall) DoAndReturn(f func(kv.Tx, types.Hashes } // GetRlp mocks base method. -func (m *MockPool) GetRlp(arg0 kv.Tx, arg1 []byte) ([]byte, error) { +func (m *MockPool) GetRlp(tx kv.Tx, hash []byte) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetRlp", arg0, arg1) + ret := m.ctrl.Call(m, "GetRlp", tx, hash) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } // GetRlp indicates an expected call of GetRlp. -func (mr *MockPoolMockRecorder) GetRlp(arg0, arg1 any) *MockPoolGetRlpCall { +func (mr *MockPoolMockRecorder) GetRlp(tx, hash any) *MockPoolGetRlpCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRlp", reflect.TypeOf((*MockPool)(nil).GetRlp), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRlp", reflect.TypeOf((*MockPool)(nil).GetRlp), tx, hash) return &MockPoolGetRlpCall{Call: call} } @@ -233,18 +234,18 @@ func (c *MockPoolGetRlpCall) DoAndReturn(f func(kv.Tx, []byte) ([]byte, error)) } // IdHashKnown mocks base method. -func (m *MockPool) IdHashKnown(arg0 kv.Tx, arg1 []byte) (bool, error) { +func (m *MockPool) IdHashKnown(tx kv.Tx, hash []byte) (bool, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IdHashKnown", arg0, arg1) + ret := m.ctrl.Call(m, "IdHashKnown", tx, hash) ret0, _ := ret[0].(bool) ret1, _ := ret[1].(error) return ret0, ret1 } // IdHashKnown indicates an expected call of IdHashKnown. -func (mr *MockPoolMockRecorder) IdHashKnown(arg0, arg1 any) *MockPoolIdHashKnownCall { +func (mr *MockPoolMockRecorder) IdHashKnown(tx, hash any) *MockPoolIdHashKnownCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdHashKnown", reflect.TypeOf((*MockPool)(nil).IdHashKnown), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdHashKnown", reflect.TypeOf((*MockPool)(nil).IdHashKnown), tx, hash) return &MockPoolIdHashKnownCall{Call: call} } @@ -272,17 +273,17 @@ func (c *MockPoolIdHashKnownCall) DoAndReturn(f func(kv.Tx, []byte) (bool, error } // OnNewBlock mocks base method. -func (m *MockPool) OnNewBlock(arg0 context.Context, arg1 *remoteproto.StateChangeBatch, arg2, arg3, arg4 types.TxSlots, arg5 kv.Tx) error { +func (m *MockPool) OnNewBlock(ctx context.Context, stateChanges *remoteproto.StateChangeBatch, unwindTxs, unwindBlobTxs, minedTxs types.TxSlots, tx kv.Tx) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "OnNewBlock", arg0, arg1, arg2, arg3, arg4, arg5) + ret := m.ctrl.Call(m, "OnNewBlock", ctx, stateChanges, unwindTxs, unwindBlobTxs, minedTxs, tx) ret0, _ := ret[0].(error) return ret0 } // OnNewBlock indicates an expected call of OnNewBlock. -func (mr *MockPoolMockRecorder) OnNewBlock(arg0, arg1, arg2, arg3, arg4, arg5 any) *MockPoolOnNewBlockCall { +func (mr *MockPoolMockRecorder) OnNewBlock(ctx, stateChanges, unwindTxs, unwindBlobTxs, minedTxs, tx any) *MockPoolOnNewBlockCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnNewBlock", reflect.TypeOf((*MockPool)(nil).OnNewBlock), arg0, arg1, arg2, arg3, arg4, arg5) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnNewBlock", reflect.TypeOf((*MockPool)(nil).OnNewBlock), ctx, stateChanges, unwindTxs, unwindBlobTxs, minedTxs, tx) return &MockPoolOnNewBlockCall{Call: call} } @@ -348,17 +349,17 @@ func (c *MockPoolStartedCall) DoAndReturn(f func() bool) *MockPoolStartedCall { } // ValidateSerializedTxn mocks base method. -func (m *MockPool) ValidateSerializedTxn(arg0 []byte) error { +func (m *MockPool) ValidateSerializedTxn(serializedTxn []byte) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidateSerializedTxn", arg0) + ret := m.ctrl.Call(m, "ValidateSerializedTxn", serializedTxn) ret0, _ := ret[0].(error) return ret0 } // ValidateSerializedTxn indicates an expected call of ValidateSerializedTxn. -func (mr *MockPoolMockRecorder) ValidateSerializedTxn(arg0 any) *MockPoolValidateSerializedTxnCall { +func (mr *MockPoolMockRecorder) ValidateSerializedTxn(serializedTxn any) *MockPoolValidateSerializedTxnCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateSerializedTxn", reflect.TypeOf((*MockPool)(nil).ValidateSerializedTxn), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateSerializedTxn", reflect.TypeOf((*MockPool)(nil).ValidateSerializedTxn), serializedTxn) return &MockPoolValidateSerializedTxnCall{Call: call} } diff --git a/go.mod b/go.mod index 5e695ae51f0..d97bae6cf76 100644 --- a/go.mod +++ b/go.mod @@ -87,7 +87,7 @@ require ( github.com/valyala/fastjson v1.6.4 github.com/vektah/gqlparser/v2 v2.5.16 github.com/xsleonard/go-merkle v1.1.0 - go.uber.org/mock v0.4.0 + go.uber.org/mock v0.5.0 go.uber.org/zap v1.27.0 golang.org/x/crypto v0.28.0 golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 diff --git a/go.sum b/go.sum index 87a547a5a80..da2943e2fb7 100644 --- a/go.sum +++ b/go.sum @@ -945,8 +945,8 @@ go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= -go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= +go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= +go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= diff --git a/polygon/bor/spanner_mock.go b/polygon/bor/spanner_mock.go index 3f7f16ea53a..5907764e212 100644 --- a/polygon/bor/spanner_mock.go +++ b/polygon/bor/spanner_mock.go @@ -22,6 +22,7 @@ import ( type MockSpanner struct { ctrl *gomock.Controller recorder *MockSpannerMockRecorder + isgomock struct{} } // MockSpannerMockRecorder is the mock recorder for MockSpanner. @@ -42,17 +43,17 @@ func (m *MockSpanner) EXPECT() *MockSpannerMockRecorder { } // CommitSpan mocks base method. -func (m *MockSpanner) CommitSpan(arg0 heimdall.Span, arg1 consensus.SystemCall) error { +func (m *MockSpanner) CommitSpan(heimdallSpan heimdall.Span, syscall consensus.SystemCall) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CommitSpan", arg0, arg1) + ret := m.ctrl.Call(m, "CommitSpan", heimdallSpan, syscall) ret0, _ := ret[0].(error) return ret0 } // CommitSpan indicates an expected call of CommitSpan. -func (mr *MockSpannerMockRecorder) CommitSpan(arg0, arg1 any) *MockSpannerCommitSpanCall { +func (mr *MockSpannerMockRecorder) CommitSpan(heimdallSpan, syscall any) *MockSpannerCommitSpanCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitSpan", reflect.TypeOf((*MockSpanner)(nil).CommitSpan), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitSpan", reflect.TypeOf((*MockSpanner)(nil).CommitSpan), heimdallSpan, syscall) return &MockSpannerCommitSpanCall{Call: call} } @@ -80,18 +81,18 @@ func (c *MockSpannerCommitSpanCall) DoAndReturn(f func(heimdall.Span, consensus. } // GetCurrentProducers mocks base method. -func (m *MockSpanner) GetCurrentProducers(arg0 uint64, arg1 consensus.ChainHeaderReader) ([]*valset.Validator, error) { +func (m *MockSpanner) GetCurrentProducers(spanId uint64, chain consensus.ChainHeaderReader) ([]*valset.Validator, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetCurrentProducers", arg0, arg1) + ret := m.ctrl.Call(m, "GetCurrentProducers", spanId, chain) ret0, _ := ret[0].([]*valset.Validator) ret1, _ := ret[1].(error) return ret0, ret1 } // GetCurrentProducers indicates an expected call of GetCurrentProducers. -func (mr *MockSpannerMockRecorder) GetCurrentProducers(arg0, arg1 any) *MockSpannerGetCurrentProducersCall { +func (mr *MockSpannerMockRecorder) GetCurrentProducers(spanId, chain any) *MockSpannerGetCurrentProducersCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentProducers", reflect.TypeOf((*MockSpanner)(nil).GetCurrentProducers), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentProducers", reflect.TypeOf((*MockSpanner)(nil).GetCurrentProducers), spanId, chain) return &MockSpannerGetCurrentProducersCall{Call: call} } @@ -119,18 +120,18 @@ func (c *MockSpannerGetCurrentProducersCall) DoAndReturn(f func(uint64, consensu } // GetCurrentSpan mocks base method. -func (m *MockSpanner) GetCurrentSpan(arg0 consensus.SystemCall) (*heimdall.Span, error) { +func (m *MockSpanner) GetCurrentSpan(syscall consensus.SystemCall) (*heimdall.Span, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetCurrentSpan", arg0) + ret := m.ctrl.Call(m, "GetCurrentSpan", syscall) ret0, _ := ret[0].(*heimdall.Span) ret1, _ := ret[1].(error) return ret0, ret1 } // GetCurrentSpan indicates an expected call of GetCurrentSpan. -func (mr *MockSpannerMockRecorder) GetCurrentSpan(arg0 any) *MockSpannerGetCurrentSpanCall { +func (mr *MockSpannerMockRecorder) GetCurrentSpan(syscall any) *MockSpannerGetCurrentSpanCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentSpan", reflect.TypeOf((*MockSpanner)(nil).GetCurrentSpan), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentSpan", reflect.TypeOf((*MockSpanner)(nil).GetCurrentSpan), syscall) return &MockSpannerGetCurrentSpanCall{Call: call} } @@ -158,18 +159,18 @@ func (c *MockSpannerGetCurrentSpanCall) DoAndReturn(f func(consensus.SystemCall) } // GetCurrentValidators mocks base method. -func (m *MockSpanner) GetCurrentValidators(arg0 uint64, arg1 consensus.ChainHeaderReader) ([]*valset.Validator, error) { +func (m *MockSpanner) GetCurrentValidators(spanId uint64, chain consensus.ChainHeaderReader) ([]*valset.Validator, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetCurrentValidators", arg0, arg1) + ret := m.ctrl.Call(m, "GetCurrentValidators", spanId, chain) ret0, _ := ret[0].([]*valset.Validator) ret1, _ := ret[1].(error) return ret0, ret1 } // GetCurrentValidators indicates an expected call of GetCurrentValidators. -func (mr *MockSpannerMockRecorder) GetCurrentValidators(arg0, arg1 any) *MockSpannerGetCurrentValidatorsCall { +func (mr *MockSpannerMockRecorder) GetCurrentValidators(spanId, chain any) *MockSpannerGetCurrentValidatorsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentValidators", reflect.TypeOf((*MockSpanner)(nil).GetCurrentValidators), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentValidators", reflect.TypeOf((*MockSpanner)(nil).GetCurrentValidators), spanId, chain) return &MockSpannerGetCurrentValidatorsCall{Call: call} } diff --git a/polygon/bor/state_receiver_mock.go b/polygon/bor/state_receiver_mock.go index 14b89b6a1f9..f708a2b012e 100644 --- a/polygon/bor/state_receiver_mock.go +++ b/polygon/bor/state_receiver_mock.go @@ -21,6 +21,7 @@ import ( type MockStateReceiver struct { ctrl *gomock.Controller recorder *MockStateReceiverMockRecorder + isgomock struct{} } // MockStateReceiverMockRecorder is the mock recorder for MockStateReceiver. @@ -41,17 +42,17 @@ func (m *MockStateReceiver) EXPECT() *MockStateReceiverMockRecorder { } // CommitState mocks base method. -func (m *MockStateReceiver) CommitState(arg0 rlp.RawValue, arg1 consensus.SystemCall) error { +func (m *MockStateReceiver) CommitState(event rlp.RawValue, syscall consensus.SystemCall) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CommitState", arg0, arg1) + ret := m.ctrl.Call(m, "CommitState", event, syscall) ret0, _ := ret[0].(error) return ret0 } // CommitState indicates an expected call of CommitState. -func (mr *MockStateReceiverMockRecorder) CommitState(arg0, arg1 any) *MockStateReceiverCommitStateCall { +func (mr *MockStateReceiverMockRecorder) CommitState(event, syscall any) *MockStateReceiverCommitStateCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitState", reflect.TypeOf((*MockStateReceiver)(nil).CommitState), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitState", reflect.TypeOf((*MockStateReceiver)(nil).CommitState), event, syscall) return &MockStateReceiverCommitStateCall{Call: call} } diff --git a/polygon/heimdall/client_mock.go b/polygon/heimdall/client_mock.go index 812de5d65df..d36d245a787 100644 --- a/polygon/heimdall/client_mock.go +++ b/polygon/heimdall/client_mock.go @@ -21,6 +21,7 @@ import ( type MockHeimdallClient struct { ctrl *gomock.Controller recorder *MockHeimdallClientMockRecorder + isgomock struct{} } // MockHeimdallClientMockRecorder is the mock recorder for MockHeimdallClient. @@ -77,18 +78,18 @@ func (c *MockHeimdallClientCloseCall) DoAndReturn(f func()) *MockHeimdallClientC } // FetchCheckpoint mocks base method. -func (m *MockHeimdallClient) FetchCheckpoint(arg0 context.Context, arg1 int64) (*Checkpoint, error) { +func (m *MockHeimdallClient) FetchCheckpoint(ctx context.Context, number int64) (*Checkpoint, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchCheckpoint", arg0, arg1) + ret := m.ctrl.Call(m, "FetchCheckpoint", ctx, number) ret0, _ := ret[0].(*Checkpoint) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchCheckpoint indicates an expected call of FetchCheckpoint. -func (mr *MockHeimdallClientMockRecorder) FetchCheckpoint(arg0, arg1 any) *MockHeimdallClientFetchCheckpointCall { +func (mr *MockHeimdallClientMockRecorder) FetchCheckpoint(ctx, number any) *MockHeimdallClientFetchCheckpointCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpoint", reflect.TypeOf((*MockHeimdallClient)(nil).FetchCheckpoint), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpoint", reflect.TypeOf((*MockHeimdallClient)(nil).FetchCheckpoint), ctx, number) return &MockHeimdallClientFetchCheckpointCall{Call: call} } @@ -116,18 +117,18 @@ func (c *MockHeimdallClientFetchCheckpointCall) DoAndReturn(f func(context.Conte } // FetchCheckpointCount mocks base method. -func (m *MockHeimdallClient) FetchCheckpointCount(arg0 context.Context) (int64, error) { +func (m *MockHeimdallClient) FetchCheckpointCount(ctx context.Context) (int64, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchCheckpointCount", arg0) + ret := m.ctrl.Call(m, "FetchCheckpointCount", ctx) ret0, _ := ret[0].(int64) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchCheckpointCount indicates an expected call of FetchCheckpointCount. -func (mr *MockHeimdallClientMockRecorder) FetchCheckpointCount(arg0 any) *MockHeimdallClientFetchCheckpointCountCall { +func (mr *MockHeimdallClientMockRecorder) FetchCheckpointCount(ctx any) *MockHeimdallClientFetchCheckpointCountCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpointCount", reflect.TypeOf((*MockHeimdallClient)(nil).FetchCheckpointCount), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpointCount", reflect.TypeOf((*MockHeimdallClient)(nil).FetchCheckpointCount), ctx) return &MockHeimdallClientFetchCheckpointCountCall{Call: call} } @@ -155,18 +156,18 @@ func (c *MockHeimdallClientFetchCheckpointCountCall) DoAndReturn(f func(context. } // FetchCheckpoints mocks base method. -func (m *MockHeimdallClient) FetchCheckpoints(arg0 context.Context, arg1, arg2 uint64) ([]*Checkpoint, error) { +func (m *MockHeimdallClient) FetchCheckpoints(ctx context.Context, page, limit uint64) ([]*Checkpoint, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchCheckpoints", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "FetchCheckpoints", ctx, page, limit) ret0, _ := ret[0].([]*Checkpoint) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchCheckpoints indicates an expected call of FetchCheckpoints. -func (mr *MockHeimdallClientMockRecorder) FetchCheckpoints(arg0, arg1, arg2 any) *MockHeimdallClientFetchCheckpointsCall { +func (mr *MockHeimdallClientMockRecorder) FetchCheckpoints(ctx, page, limit any) *MockHeimdallClientFetchCheckpointsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpoints", reflect.TypeOf((*MockHeimdallClient)(nil).FetchCheckpoints), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpoints", reflect.TypeOf((*MockHeimdallClient)(nil).FetchCheckpoints), ctx, page, limit) return &MockHeimdallClientFetchCheckpointsCall{Call: call} } @@ -194,18 +195,18 @@ func (c *MockHeimdallClientFetchCheckpointsCall) DoAndReturn(f func(context.Cont } // FetchFirstMilestoneNum mocks base method. -func (m *MockHeimdallClient) FetchFirstMilestoneNum(arg0 context.Context) (int64, error) { +func (m *MockHeimdallClient) FetchFirstMilestoneNum(ctx context.Context) (int64, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchFirstMilestoneNum", arg0) + ret := m.ctrl.Call(m, "FetchFirstMilestoneNum", ctx) ret0, _ := ret[0].(int64) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchFirstMilestoneNum indicates an expected call of FetchFirstMilestoneNum. -func (mr *MockHeimdallClientMockRecorder) FetchFirstMilestoneNum(arg0 any) *MockHeimdallClientFetchFirstMilestoneNumCall { +func (mr *MockHeimdallClientMockRecorder) FetchFirstMilestoneNum(ctx any) *MockHeimdallClientFetchFirstMilestoneNumCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchFirstMilestoneNum", reflect.TypeOf((*MockHeimdallClient)(nil).FetchFirstMilestoneNum), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchFirstMilestoneNum", reflect.TypeOf((*MockHeimdallClient)(nil).FetchFirstMilestoneNum), ctx) return &MockHeimdallClientFetchFirstMilestoneNumCall{Call: call} } @@ -233,18 +234,18 @@ func (c *MockHeimdallClientFetchFirstMilestoneNumCall) DoAndReturn(f func(contex } // FetchLastNoAckMilestone mocks base method. -func (m *MockHeimdallClient) FetchLastNoAckMilestone(arg0 context.Context) (string, error) { +func (m *MockHeimdallClient) FetchLastNoAckMilestone(ctx context.Context) (string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchLastNoAckMilestone", arg0) + ret := m.ctrl.Call(m, "FetchLastNoAckMilestone", ctx) ret0, _ := ret[0].(string) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchLastNoAckMilestone indicates an expected call of FetchLastNoAckMilestone. -func (mr *MockHeimdallClientMockRecorder) FetchLastNoAckMilestone(arg0 any) *MockHeimdallClientFetchLastNoAckMilestoneCall { +func (mr *MockHeimdallClientMockRecorder) FetchLastNoAckMilestone(ctx any) *MockHeimdallClientFetchLastNoAckMilestoneCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLastNoAckMilestone", reflect.TypeOf((*MockHeimdallClient)(nil).FetchLastNoAckMilestone), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLastNoAckMilestone", reflect.TypeOf((*MockHeimdallClient)(nil).FetchLastNoAckMilestone), ctx) return &MockHeimdallClientFetchLastNoAckMilestoneCall{Call: call} } @@ -272,18 +273,18 @@ func (c *MockHeimdallClientFetchLastNoAckMilestoneCall) DoAndReturn(f func(conte } // FetchLatestSpan mocks base method. -func (m *MockHeimdallClient) FetchLatestSpan(arg0 context.Context) (*Span, error) { +func (m *MockHeimdallClient) FetchLatestSpan(ctx context.Context) (*Span, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchLatestSpan", arg0) + ret := m.ctrl.Call(m, "FetchLatestSpan", ctx) ret0, _ := ret[0].(*Span) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchLatestSpan indicates an expected call of FetchLatestSpan. -func (mr *MockHeimdallClientMockRecorder) FetchLatestSpan(arg0 any) *MockHeimdallClientFetchLatestSpanCall { +func (mr *MockHeimdallClientMockRecorder) FetchLatestSpan(ctx any) *MockHeimdallClientFetchLatestSpanCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLatestSpan", reflect.TypeOf((*MockHeimdallClient)(nil).FetchLatestSpan), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLatestSpan", reflect.TypeOf((*MockHeimdallClient)(nil).FetchLatestSpan), ctx) return &MockHeimdallClientFetchLatestSpanCall{Call: call} } @@ -311,18 +312,18 @@ func (c *MockHeimdallClientFetchLatestSpanCall) DoAndReturn(f func(context.Conte } // FetchMilestone mocks base method. -func (m *MockHeimdallClient) FetchMilestone(arg0 context.Context, arg1 int64) (*Milestone, error) { +func (m *MockHeimdallClient) FetchMilestone(ctx context.Context, number int64) (*Milestone, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchMilestone", arg0, arg1) + ret := m.ctrl.Call(m, "FetchMilestone", ctx, number) ret0, _ := ret[0].(*Milestone) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchMilestone indicates an expected call of FetchMilestone. -func (mr *MockHeimdallClientMockRecorder) FetchMilestone(arg0, arg1 any) *MockHeimdallClientFetchMilestoneCall { +func (mr *MockHeimdallClientMockRecorder) FetchMilestone(ctx, number any) *MockHeimdallClientFetchMilestoneCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMilestone", reflect.TypeOf((*MockHeimdallClient)(nil).FetchMilestone), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMilestone", reflect.TypeOf((*MockHeimdallClient)(nil).FetchMilestone), ctx, number) return &MockHeimdallClientFetchMilestoneCall{Call: call} } @@ -350,18 +351,18 @@ func (c *MockHeimdallClientFetchMilestoneCall) DoAndReturn(f func(context.Contex } // FetchMilestoneCount mocks base method. -func (m *MockHeimdallClient) FetchMilestoneCount(arg0 context.Context) (int64, error) { +func (m *MockHeimdallClient) FetchMilestoneCount(ctx context.Context) (int64, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchMilestoneCount", arg0) + ret := m.ctrl.Call(m, "FetchMilestoneCount", ctx) ret0, _ := ret[0].(int64) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchMilestoneCount indicates an expected call of FetchMilestoneCount. -func (mr *MockHeimdallClientMockRecorder) FetchMilestoneCount(arg0 any) *MockHeimdallClientFetchMilestoneCountCall { +func (mr *MockHeimdallClientMockRecorder) FetchMilestoneCount(ctx any) *MockHeimdallClientFetchMilestoneCountCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMilestoneCount", reflect.TypeOf((*MockHeimdallClient)(nil).FetchMilestoneCount), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMilestoneCount", reflect.TypeOf((*MockHeimdallClient)(nil).FetchMilestoneCount), ctx) return &MockHeimdallClientFetchMilestoneCountCall{Call: call} } @@ -389,17 +390,17 @@ func (c *MockHeimdallClientFetchMilestoneCountCall) DoAndReturn(f func(context.C } // FetchMilestoneID mocks base method. -func (m *MockHeimdallClient) FetchMilestoneID(arg0 context.Context, arg1 string) error { +func (m *MockHeimdallClient) FetchMilestoneID(ctx context.Context, milestoneID string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchMilestoneID", arg0, arg1) + ret := m.ctrl.Call(m, "FetchMilestoneID", ctx, milestoneID) ret0, _ := ret[0].(error) return ret0 } // FetchMilestoneID indicates an expected call of FetchMilestoneID. -func (mr *MockHeimdallClientMockRecorder) FetchMilestoneID(arg0, arg1 any) *MockHeimdallClientFetchMilestoneIDCall { +func (mr *MockHeimdallClientMockRecorder) FetchMilestoneID(ctx, milestoneID any) *MockHeimdallClientFetchMilestoneIDCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMilestoneID", reflect.TypeOf((*MockHeimdallClient)(nil).FetchMilestoneID), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMilestoneID", reflect.TypeOf((*MockHeimdallClient)(nil).FetchMilestoneID), ctx, milestoneID) return &MockHeimdallClientFetchMilestoneIDCall{Call: call} } @@ -427,17 +428,17 @@ func (c *MockHeimdallClientFetchMilestoneIDCall) DoAndReturn(f func(context.Cont } // FetchNoAckMilestone mocks base method. -func (m *MockHeimdallClient) FetchNoAckMilestone(arg0 context.Context, arg1 string) error { +func (m *MockHeimdallClient) FetchNoAckMilestone(ctx context.Context, milestoneID string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchNoAckMilestone", arg0, arg1) + ret := m.ctrl.Call(m, "FetchNoAckMilestone", ctx, milestoneID) ret0, _ := ret[0].(error) return ret0 } // FetchNoAckMilestone indicates an expected call of FetchNoAckMilestone. -func (mr *MockHeimdallClientMockRecorder) FetchNoAckMilestone(arg0, arg1 any) *MockHeimdallClientFetchNoAckMilestoneCall { +func (mr *MockHeimdallClientMockRecorder) FetchNoAckMilestone(ctx, milestoneID any) *MockHeimdallClientFetchNoAckMilestoneCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchNoAckMilestone", reflect.TypeOf((*MockHeimdallClient)(nil).FetchNoAckMilestone), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchNoAckMilestone", reflect.TypeOf((*MockHeimdallClient)(nil).FetchNoAckMilestone), ctx, milestoneID) return &MockHeimdallClientFetchNoAckMilestoneCall{Call: call} } @@ -465,18 +466,18 @@ func (c *MockHeimdallClientFetchNoAckMilestoneCall) DoAndReturn(f func(context.C } // FetchSpan mocks base method. -func (m *MockHeimdallClient) FetchSpan(arg0 context.Context, arg1 uint64) (*Span, error) { +func (m *MockHeimdallClient) FetchSpan(ctx context.Context, spanID uint64) (*Span, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchSpan", arg0, arg1) + ret := m.ctrl.Call(m, "FetchSpan", ctx, spanID) ret0, _ := ret[0].(*Span) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchSpan indicates an expected call of FetchSpan. -func (mr *MockHeimdallClientMockRecorder) FetchSpan(arg0, arg1 any) *MockHeimdallClientFetchSpanCall { +func (mr *MockHeimdallClientMockRecorder) FetchSpan(ctx, spanID any) *MockHeimdallClientFetchSpanCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchSpan", reflect.TypeOf((*MockHeimdallClient)(nil).FetchSpan), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchSpan", reflect.TypeOf((*MockHeimdallClient)(nil).FetchSpan), ctx, spanID) return &MockHeimdallClientFetchSpanCall{Call: call} } @@ -504,18 +505,18 @@ func (c *MockHeimdallClientFetchSpanCall) DoAndReturn(f func(context.Context, ui } // FetchSpans mocks base method. -func (m *MockHeimdallClient) FetchSpans(arg0 context.Context, arg1, arg2 uint64) ([]*Span, error) { +func (m *MockHeimdallClient) FetchSpans(ctx context.Context, page, limit uint64) ([]*Span, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchSpans", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "FetchSpans", ctx, page, limit) ret0, _ := ret[0].([]*Span) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchSpans indicates an expected call of FetchSpans. -func (mr *MockHeimdallClientMockRecorder) FetchSpans(arg0, arg1, arg2 any) *MockHeimdallClientFetchSpansCall { +func (mr *MockHeimdallClientMockRecorder) FetchSpans(ctx, page, limit any) *MockHeimdallClientFetchSpansCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchSpans", reflect.TypeOf((*MockHeimdallClient)(nil).FetchSpans), arg0, arg1, arg2) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchSpans", reflect.TypeOf((*MockHeimdallClient)(nil).FetchSpans), ctx, page, limit) return &MockHeimdallClientFetchSpansCall{Call: call} } @@ -543,18 +544,18 @@ func (c *MockHeimdallClientFetchSpansCall) DoAndReturn(f func(context.Context, u } // FetchStateSyncEvent mocks base method. -func (m *MockHeimdallClient) FetchStateSyncEvent(arg0 context.Context, arg1 uint64) (*EventRecordWithTime, error) { +func (m *MockHeimdallClient) FetchStateSyncEvent(ctx context.Context, id uint64) (*EventRecordWithTime, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchStateSyncEvent", arg0, arg1) + ret := m.ctrl.Call(m, "FetchStateSyncEvent", ctx, id) ret0, _ := ret[0].(*EventRecordWithTime) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchStateSyncEvent indicates an expected call of FetchStateSyncEvent. -func (mr *MockHeimdallClientMockRecorder) FetchStateSyncEvent(arg0, arg1 any) *MockHeimdallClientFetchStateSyncEventCall { +func (mr *MockHeimdallClientMockRecorder) FetchStateSyncEvent(ctx, id any) *MockHeimdallClientFetchStateSyncEventCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchStateSyncEvent", reflect.TypeOf((*MockHeimdallClient)(nil).FetchStateSyncEvent), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchStateSyncEvent", reflect.TypeOf((*MockHeimdallClient)(nil).FetchStateSyncEvent), ctx, id) return &MockHeimdallClientFetchStateSyncEventCall{Call: call} } @@ -582,18 +583,18 @@ func (c *MockHeimdallClientFetchStateSyncEventCall) DoAndReturn(f func(context.C } // FetchStateSyncEvents mocks base method. -func (m *MockHeimdallClient) FetchStateSyncEvents(arg0 context.Context, arg1 uint64, arg2 time.Time, arg3 int) ([]*EventRecordWithTime, error) { +func (m *MockHeimdallClient) FetchStateSyncEvents(ctx context.Context, fromId uint64, to time.Time, limit int) ([]*EventRecordWithTime, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FetchStateSyncEvents", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "FetchStateSyncEvents", ctx, fromId, to, limit) ret0, _ := ret[0].([]*EventRecordWithTime) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchStateSyncEvents indicates an expected call of FetchStateSyncEvents. -func (mr *MockHeimdallClientMockRecorder) FetchStateSyncEvents(arg0, arg1, arg2, arg3 any) *MockHeimdallClientFetchStateSyncEventsCall { +func (mr *MockHeimdallClientMockRecorder) FetchStateSyncEvents(ctx, fromId, to, limit any) *MockHeimdallClientFetchStateSyncEventsCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchStateSyncEvents", reflect.TypeOf((*MockHeimdallClient)(nil).FetchStateSyncEvents), arg0, arg1, arg2, arg3) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchStateSyncEvents", reflect.TypeOf((*MockHeimdallClient)(nil).FetchStateSyncEvents), ctx, fromId, to, limit) return &MockHeimdallClientFetchStateSyncEventsCall{Call: call} } diff --git a/polygon/heimdall/entity_fetcher_mock.go b/polygon/heimdall/entity_fetcher_mock.go index 4623f9ad3bd..691680fdf13 100644 --- a/polygon/heimdall/entity_fetcher_mock.go +++ b/polygon/heimdall/entity_fetcher_mock.go @@ -20,6 +20,7 @@ import ( type MockentityFetcher[TEntity Entity] struct { ctrl *gomock.Controller recorder *MockentityFetcherMockRecorder[TEntity] + isgomock struct{} } // MockentityFetcherMockRecorder is the mock recorder for MockentityFetcher. diff --git a/polygon/heimdall/entity_store_mock.go b/polygon/heimdall/entity_store_mock.go index 4df7d38862b..53ccd77b6a1 100644 --- a/polygon/heimdall/entity_store_mock.go +++ b/polygon/heimdall/entity_store_mock.go @@ -20,6 +20,7 @@ import ( type MockEntityStore[TEntity Entity] struct { ctrl *gomock.Controller recorder *MockEntityStoreMockRecorder[TEntity] + isgomock struct{} } // MockEntityStoreMockRecorder is the mock recorder for MockEntityStore. diff --git a/polygon/heimdall/http_client_mock.go b/polygon/heimdall/http_client_mock.go index ab372e61302..3bbdbb314c8 100644 --- a/polygon/heimdall/http_client_mock.go +++ b/polygon/heimdall/http_client_mock.go @@ -20,6 +20,7 @@ import ( type MockHttpClient struct { ctrl *gomock.Controller recorder *MockHttpClientMockRecorder + isgomock struct{} } // MockHttpClientMockRecorder is the mock recorder for MockHttpClient. @@ -76,18 +77,18 @@ func (c *MockHttpClientCloseIdleConnectionsCall) DoAndReturn(f func()) *MockHttp } // Do mocks base method. -func (m *MockHttpClient) Do(arg0 *http.Request) (*http.Response, error) { +func (m *MockHttpClient) Do(req *http.Request) (*http.Response, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Do", arg0) + ret := m.ctrl.Call(m, "Do", req) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } // Do indicates an expected call of Do. -func (mr *MockHttpClientMockRecorder) Do(arg0 any) *MockHttpClientDoCall { +func (mr *MockHttpClientMockRecorder) Do(req any) *MockHttpClientDoCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockHttpClient)(nil).Do), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockHttpClient)(nil).Do), req) return &MockHttpClientDoCall{Call: call} } diff --git a/polygon/p2p/peer_event_registrar_mock.go b/polygon/p2p/peer_event_registrar_mock.go index 2e8b0726f43..866ed27cacf 100644 --- a/polygon/p2p/peer_event_registrar_mock.go +++ b/polygon/p2p/peer_event_registrar_mock.go @@ -22,6 +22,7 @@ import ( type MockpeerEventRegistrar struct { ctrl *gomock.Controller recorder *MockpeerEventRegistrarMockRecorder + isgomock struct{} } // MockpeerEventRegistrarMockRecorder is the mock recorder for MockpeerEventRegistrar. diff --git a/polygon/p2p/peer_provider_mock.go b/polygon/p2p/peer_provider_mock.go index 796c0ceb860..8136b324dc8 100644 --- a/polygon/p2p/peer_provider_mock.go +++ b/polygon/p2p/peer_provider_mock.go @@ -23,6 +23,7 @@ import ( type MockpeerProvider struct { ctrl *gomock.Controller recorder *MockpeerProviderMockRecorder + isgomock struct{} } // MockpeerProviderMockRecorder is the mock recorder for MockpeerProvider. diff --git a/polygon/p2p/service_mock.go b/polygon/p2p/service_mock.go index 6598ee63a51..617d2b58e34 100644 --- a/polygon/p2p/service_mock.go +++ b/polygon/p2p/service_mock.go @@ -26,6 +26,7 @@ import ( type MockService struct { ctrl *gomock.Controller recorder *MockServiceMockRecorder + isgomock struct{} } // MockServiceMockRecorder is the mock recorder for MockService. diff --git a/polygon/sync/canonical_chain_builder_mock.go b/polygon/sync/canonical_chain_builder_mock.go index e64604fce94..07f20f553ee 100644 --- a/polygon/sync/canonical_chain_builder_mock.go +++ b/polygon/sync/canonical_chain_builder_mock.go @@ -22,6 +22,7 @@ import ( type MockCanonicalChainBuilder struct { ctrl *gomock.Controller recorder *MockCanonicalChainBuilderMockRecorder + isgomock struct{} } // MockCanonicalChainBuilderMockRecorder is the mock recorder for MockCanonicalChainBuilder. @@ -42,18 +43,18 @@ func (m *MockCanonicalChainBuilder) EXPECT() *MockCanonicalChainBuilderMockRecor } // Connect mocks base method. -func (m *MockCanonicalChainBuilder) Connect(arg0 context.Context, arg1 []*types.Header) ([]*types.Header, error) { +func (m *MockCanonicalChainBuilder) Connect(ctx context.Context, headers []*types.Header) ([]*types.Header, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Connect", arg0, arg1) + ret := m.ctrl.Call(m, "Connect", ctx, headers) ret0, _ := ret[0].([]*types.Header) ret1, _ := ret[1].(error) return ret0, ret1 } // Connect indicates an expected call of Connect. -func (mr *MockCanonicalChainBuilderMockRecorder) Connect(arg0, arg1 any) *MockCanonicalChainBuilderConnectCall { +func (mr *MockCanonicalChainBuilderMockRecorder) Connect(ctx, headers any) *MockCanonicalChainBuilderConnectCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Connect", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).Connect), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Connect", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).Connect), ctx, headers) return &MockCanonicalChainBuilderConnectCall{Call: call} } @@ -63,8 +64,8 @@ type MockCanonicalChainBuilderConnectCall struct { } // Return rewrite *gomock.Call.Return -func (c *MockCanonicalChainBuilderConnectCall) Return(arg0 []*types.Header, arg1 error) *MockCanonicalChainBuilderConnectCall { - c.Call = c.Call.Return(arg0, arg1) +func (c *MockCanonicalChainBuilderConnectCall) Return(newConnectedHeaders []*types.Header, err error) *MockCanonicalChainBuilderConnectCall { + c.Call = c.Call.Return(newConnectedHeaders, err) return c } @@ -81,17 +82,17 @@ func (c *MockCanonicalChainBuilderConnectCall) DoAndReturn(f func(context.Contex } // ContainsHash mocks base method. -func (m *MockCanonicalChainBuilder) ContainsHash(arg0 common.Hash) bool { +func (m *MockCanonicalChainBuilder) ContainsHash(hash common.Hash) bool { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ContainsHash", arg0) + ret := m.ctrl.Call(m, "ContainsHash", hash) ret0, _ := ret[0].(bool) return ret0 } // ContainsHash indicates an expected call of ContainsHash. -func (mr *MockCanonicalChainBuilderMockRecorder) ContainsHash(arg0 any) *MockCanonicalChainBuilderContainsHashCall { +func (mr *MockCanonicalChainBuilderMockRecorder) ContainsHash(hash any) *MockCanonicalChainBuilderContainsHashCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsHash", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).ContainsHash), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsHash", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).ContainsHash), hash) return &MockCanonicalChainBuilderContainsHashCall{Call: call} } @@ -119,17 +120,17 @@ func (c *MockCanonicalChainBuilderContainsHashCall) DoAndReturn(f func(common.Ha } // HeadersInRange mocks base method. -func (m *MockCanonicalChainBuilder) HeadersInRange(arg0, arg1 uint64) []*types.Header { +func (m *MockCanonicalChainBuilder) HeadersInRange(start, count uint64) []*types.Header { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HeadersInRange", arg0, arg1) + ret := m.ctrl.Call(m, "HeadersInRange", start, count) ret0, _ := ret[0].([]*types.Header) return ret0 } // HeadersInRange indicates an expected call of HeadersInRange. -func (mr *MockCanonicalChainBuilderMockRecorder) HeadersInRange(arg0, arg1 any) *MockCanonicalChainBuilderHeadersInRangeCall { +func (mr *MockCanonicalChainBuilderMockRecorder) HeadersInRange(start, count any) *MockCanonicalChainBuilderHeadersInRangeCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeadersInRange", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).HeadersInRange), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeadersInRange", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).HeadersInRange), start, count) return &MockCanonicalChainBuilderHeadersInRangeCall{Call: call} } @@ -157,18 +158,18 @@ func (c *MockCanonicalChainBuilderHeadersInRangeCall) DoAndReturn(f func(uint64, } // LowestCommonAncestor mocks base method. -func (m *MockCanonicalChainBuilder) LowestCommonAncestor(arg0, arg1 common.Hash) (*types.Header, bool) { +func (m *MockCanonicalChainBuilder) LowestCommonAncestor(a, b common.Hash) (*types.Header, bool) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LowestCommonAncestor", arg0, arg1) + ret := m.ctrl.Call(m, "LowestCommonAncestor", a, b) ret0, _ := ret[0].(*types.Header) ret1, _ := ret[1].(bool) return ret0, ret1 } // LowestCommonAncestor indicates an expected call of LowestCommonAncestor. -func (mr *MockCanonicalChainBuilderMockRecorder) LowestCommonAncestor(arg0, arg1 any) *MockCanonicalChainBuilderLowestCommonAncestorCall { +func (mr *MockCanonicalChainBuilderMockRecorder) LowestCommonAncestor(a, b any) *MockCanonicalChainBuilderLowestCommonAncestorCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LowestCommonAncestor", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).LowestCommonAncestor), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LowestCommonAncestor", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).LowestCommonAncestor), a, b) return &MockCanonicalChainBuilderLowestCommonAncestorCall{Call: call} } @@ -196,17 +197,17 @@ func (c *MockCanonicalChainBuilderLowestCommonAncestorCall) DoAndReturn(f func(c } // PruneNode mocks base method. -func (m *MockCanonicalChainBuilder) PruneNode(arg0 common.Hash) error { +func (m *MockCanonicalChainBuilder) PruneNode(hash common.Hash) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PruneNode", arg0) + ret := m.ctrl.Call(m, "PruneNode", hash) ret0, _ := ret[0].(error) return ret0 } // PruneNode indicates an expected call of PruneNode. -func (mr *MockCanonicalChainBuilderMockRecorder) PruneNode(arg0 any) *MockCanonicalChainBuilderPruneNodeCall { +func (mr *MockCanonicalChainBuilderMockRecorder) PruneNode(hash any) *MockCanonicalChainBuilderPruneNodeCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PruneNode", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).PruneNode), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PruneNode", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).PruneNode), hash) return &MockCanonicalChainBuilderPruneNodeCall{Call: call} } @@ -234,17 +235,17 @@ func (c *MockCanonicalChainBuilderPruneNodeCall) DoAndReturn(f func(common.Hash) } // PruneRoot mocks base method. -func (m *MockCanonicalChainBuilder) PruneRoot(arg0 uint64) error { +func (m *MockCanonicalChainBuilder) PruneRoot(newRootNum uint64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PruneRoot", arg0) + ret := m.ctrl.Call(m, "PruneRoot", newRootNum) ret0, _ := ret[0].(error) return ret0 } // PruneRoot indicates an expected call of PruneRoot. -func (mr *MockCanonicalChainBuilderMockRecorder) PruneRoot(arg0 any) *MockCanonicalChainBuilderPruneRootCall { +func (mr *MockCanonicalChainBuilderMockRecorder) PruneRoot(newRootNum any) *MockCanonicalChainBuilderPruneRootCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PruneRoot", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).PruneRoot), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PruneRoot", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).PruneRoot), newRootNum) return &MockCanonicalChainBuilderPruneRootCall{Call: call} } @@ -272,15 +273,15 @@ func (c *MockCanonicalChainBuilderPruneRootCall) DoAndReturn(f func(uint64) erro } // Reset mocks base method. -func (m *MockCanonicalChainBuilder) Reset(arg0 *types.Header) { +func (m *MockCanonicalChainBuilder) Reset(root *types.Header) { m.ctrl.T.Helper() - m.ctrl.Call(m, "Reset", arg0) + m.ctrl.Call(m, "Reset", root) } // Reset indicates an expected call of Reset. -func (mr *MockCanonicalChainBuilderMockRecorder) Reset(arg0 any) *MockCanonicalChainBuilderResetCall { +func (mr *MockCanonicalChainBuilderMockRecorder) Reset(root any) *MockCanonicalChainBuilderResetCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).Reset), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockCanonicalChainBuilder)(nil).Reset), root) return &MockCanonicalChainBuilderResetCall{Call: call} } diff --git a/polygon/sync/store_mock.go b/polygon/sync/store_mock.go index 0c37b48cf0d..5d5e7e4c70a 100644 --- a/polygon/sync/store_mock.go +++ b/polygon/sync/store_mock.go @@ -21,6 +21,7 @@ import ( type MockStore struct { ctrl *gomock.Controller recorder *MockStoreMockRecorder + isgomock struct{} } // MockStoreMockRecorder is the mock recorder for MockStore. @@ -41,17 +42,17 @@ func (m *MockStore) EXPECT() *MockStoreMockRecorder { } // Flush mocks base method. -func (m *MockStore) Flush(arg0 context.Context) error { +func (m *MockStore) Flush(ctx context.Context) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Flush", arg0) + ret := m.ctrl.Call(m, "Flush", ctx) ret0, _ := ret[0].(error) return ret0 } // Flush indicates an expected call of Flush. -func (mr *MockStoreMockRecorder) Flush(arg0 any) *MockStoreFlushCall { +func (mr *MockStoreMockRecorder) Flush(ctx any) *MockStoreFlushCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockStore)(nil).Flush), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockStore)(nil).Flush), ctx) return &MockStoreFlushCall{Call: call} } @@ -79,17 +80,17 @@ func (c *MockStoreFlushCall) DoAndReturn(f func(context.Context) error) *MockSto } // InsertBlocks mocks base method. -func (m *MockStore) InsertBlocks(arg0 context.Context, arg1 []*types.Block) error { +func (m *MockStore) InsertBlocks(ctx context.Context, blocks []*types.Block) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InsertBlocks", arg0, arg1) + ret := m.ctrl.Call(m, "InsertBlocks", ctx, blocks) ret0, _ := ret[0].(error) return ret0 } // InsertBlocks indicates an expected call of InsertBlocks. -func (mr *MockStoreMockRecorder) InsertBlocks(arg0, arg1 any) *MockStoreInsertBlocksCall { +func (mr *MockStoreMockRecorder) InsertBlocks(ctx, blocks any) *MockStoreInsertBlocksCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertBlocks", reflect.TypeOf((*MockStore)(nil).InsertBlocks), arg0, arg1) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertBlocks", reflect.TypeOf((*MockStore)(nil).InsertBlocks), ctx, blocks) return &MockStoreInsertBlocksCall{Call: call} } @@ -117,17 +118,17 @@ func (c *MockStoreInsertBlocksCall) DoAndReturn(f func(context.Context, []*types } // Run mocks base method. -func (m *MockStore) Run(arg0 context.Context) error { +func (m *MockStore) Run(ctx context.Context) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Run", arg0) + ret := m.ctrl.Call(m, "Run", ctx) ret0, _ := ret[0].(error) return ret0 } // Run indicates an expected call of Run. -func (mr *MockStoreMockRecorder) Run(arg0 any) *MockStoreRunCall { +func (mr *MockStoreMockRecorder) Run(ctx any) *MockStoreRunCall { mr.mock.ctrl.T.Helper() - call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockStore)(nil).Run), arg0) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockStore)(nil).Run), ctx) return &MockStoreRunCall{Call: call} } diff --git a/polygon/sync/waypoint_reader_mock.go b/polygon/sync/waypoint_reader_mock.go index 3945892ade2..832492a1d21 100644 --- a/polygon/sync/waypoint_reader_mock.go +++ b/polygon/sync/waypoint_reader_mock.go @@ -21,6 +21,7 @@ import ( type MockwaypointReader struct { ctrl *gomock.Controller recorder *MockwaypointReaderMockRecorder + isgomock struct{} } // MockwaypointReaderMockRecorder is the mock recorder for MockwaypointReader.