mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 12:40:05 +00:00
5d65ace970
* checkpoint changes * Update beacon-chain/rpc/validator/status.go Co-authored-by: Potuz <potuz@potuz.net> * Update beacon-chain/rpc/validator/status.go Co-authored-by: Potuz <potuz@potuz.net> * add in client side tests * add ordering * add all new test cases * gate feature * handle edge case * add one more test case * fatal error * zahoor's review * Update validator/client/validator.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update validator/client/validator.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * doppelganger not doppleganger * preston's review * add in comment * change comment * Fix e2e to only run new flags on the current version * Fix bug where zero byte public keys were always sent in the request when attestation history existed. Still some tests to fix due to another bug in attester protection AttestationHistoryForPubKey. * go mod tidy, gazelle * Increase test size * fix timeout, change size back to small Co-authored-by: Potuz <potuz@potuz.net> Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
79 lines
2.9 KiB
Go
Generated
79 lines
2.9 KiB
Go
Generated
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/prysmaticlabs/prysm/proto/validator/accounts/v2 (interfaces: RemoteSignerClient)
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
v2 "github.com/prysmaticlabs/prysm/proto/validator/accounts/v2"
|
|
grpc "google.golang.org/grpc"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
)
|
|
|
|
// MockRemoteSignerClient is a mock of RemoteSignerClient interface
|
|
type MockRemoteSignerClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockRemoteSignerClientMockRecorder
|
|
}
|
|
|
|
// MockRemoteSignerClientMockRecorder is the mock recorder for MockRemoteSignerClient
|
|
type MockRemoteSignerClientMockRecorder struct {
|
|
mock *MockRemoteSignerClient
|
|
}
|
|
|
|
// NewMockRemoteSignerClient creates a new mock instance
|
|
func NewMockRemoteSignerClient(ctrl *gomock.Controller) *MockRemoteSignerClient {
|
|
mock := &MockRemoteSignerClient{ctrl: ctrl}
|
|
mock.recorder = &MockRemoteSignerClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockRemoteSignerClient) EXPECT() *MockRemoteSignerClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// ListValidatingPublicKeys mocks base method
|
|
func (m *MockRemoteSignerClient) ListValidatingPublicKeys(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*v2.ListPublicKeysResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{arg0, arg1}
|
|
for _, a := range arg2 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "ListValidatingPublicKeys", varargs...)
|
|
ret0, _ := ret[0].(*v2.ListPublicKeysResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ListValidatingPublicKeys indicates an expected call of ListValidatingPublicKeys
|
|
func (mr *MockRemoteSignerClientMockRecorder) ListValidatingPublicKeys(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListValidatingPublicKeys", reflect.TypeOf((*MockRemoteSignerClient)(nil).ListValidatingPublicKeys), varargs...)
|
|
}
|
|
|
|
// Sign mocks base method
|
|
func (m *MockRemoteSignerClient) Sign(arg0 context.Context, arg1 *v2.SignRequest, arg2 ...grpc.CallOption) (*v2.SignResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{arg0, arg1}
|
|
for _, a := range arg2 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "Sign", varargs...)
|
|
ret0, _ := ret[0].(*v2.SignResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Sign indicates an expected call of Sign
|
|
func (mr *MockRemoteSignerClientMockRecorder) Sign(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockRemoteSignerClient)(nil).Sign), varargs...)
|
|
}
|