code.vegaprotocol.io/vega@v0.79.0/core/nodewallets/eth/mocks/mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/core/nodewallets/eth (interfaces: EthereumWallet) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 registry "code.vegaprotocol.io/vega/core/nodewallets/registry" 11 crypto "code.vegaprotocol.io/vega/libs/crypto" 12 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockEthereumWallet is a mock of EthereumWallet interface. 16 type MockEthereumWallet struct { 17 ctrl *gomock.Controller 18 recorder *MockEthereumWalletMockRecorder 19 } 20 21 // MockEthereumWalletMockRecorder is the mock recorder for MockEthereumWallet. 22 type MockEthereumWalletMockRecorder struct { 23 mock *MockEthereumWallet 24 } 25 26 // NewMockEthereumWallet creates a new mock instance. 27 func NewMockEthereumWallet(ctrl *gomock.Controller) *MockEthereumWallet { 28 mock := &MockEthereumWallet{ctrl: ctrl} 29 mock.recorder = &MockEthereumWalletMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockEthereumWallet) EXPECT() *MockEthereumWalletMockRecorder { 35 return m.recorder 36 } 37 38 // Algo mocks base method. 39 func (m *MockEthereumWallet) Algo() string { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Algo") 42 ret0, _ := ret[0].(string) 43 return ret0 44 } 45 46 // Algo indicates an expected call of Algo. 47 func (mr *MockEthereumWalletMockRecorder) Algo() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Algo", reflect.TypeOf((*MockEthereumWallet)(nil).Algo)) 50 } 51 52 // Chain mocks base method. 53 func (m *MockEthereumWallet) Chain() string { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Chain") 56 ret0, _ := ret[0].(string) 57 return ret0 58 } 59 60 // Chain indicates an expected call of Chain. 61 func (mr *MockEthereumWalletMockRecorder) Chain() *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Chain", reflect.TypeOf((*MockEthereumWallet)(nil).Chain)) 64 } 65 66 // Cleanup mocks base method. 67 func (m *MockEthereumWallet) Cleanup() error { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "Cleanup") 70 ret0, _ := ret[0].(error) 71 return ret0 72 } 73 74 // Cleanup indicates an expected call of Cleanup. 75 func (mr *MockEthereumWalletMockRecorder) Cleanup() *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cleanup", reflect.TypeOf((*MockEthereumWallet)(nil).Cleanup)) 78 } 79 80 // Name mocks base method. 81 func (m *MockEthereumWallet) Name() string { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "Name") 84 ret0, _ := ret[0].(string) 85 return ret0 86 } 87 88 // Name indicates an expected call of Name. 89 func (mr *MockEthereumWalletMockRecorder) Name() *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockEthereumWallet)(nil).Name)) 92 } 93 94 // PubKey mocks base method. 95 func (m *MockEthereumWallet) PubKey() crypto.PublicKey { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "PubKey") 98 ret0, _ := ret[0].(crypto.PublicKey) 99 return ret0 100 } 101 102 // PubKey indicates an expected call of PubKey. 103 func (mr *MockEthereumWalletMockRecorder) PubKey() *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PubKey", reflect.TypeOf((*MockEthereumWallet)(nil).PubKey)) 106 } 107 108 // Reload mocks base method. 109 func (m *MockEthereumWallet) Reload(arg0 registry.EthereumWalletDetails) error { 110 m.ctrl.T.Helper() 111 ret := m.ctrl.Call(m, "Reload", arg0) 112 ret0, _ := ret[0].(error) 113 return ret0 114 } 115 116 // Reload indicates an expected call of Reload. 117 func (mr *MockEthereumWalletMockRecorder) Reload(arg0 interface{}) *gomock.Call { 118 mr.mock.ctrl.T.Helper() 119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reload", reflect.TypeOf((*MockEthereumWallet)(nil).Reload), arg0) 120 } 121 122 // Sign mocks base method. 123 func (m *MockEthereumWallet) Sign(arg0 []byte) ([]byte, error) { 124 m.ctrl.T.Helper() 125 ret := m.ctrl.Call(m, "Sign", arg0) 126 ret0, _ := ret[0].([]byte) 127 ret1, _ := ret[1].(error) 128 return ret0, ret1 129 } 130 131 // Sign indicates an expected call of Sign. 132 func (mr *MockEthereumWalletMockRecorder) Sign(arg0 interface{}) *gomock.Call { 133 mr.mock.ctrl.T.Helper() 134 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockEthereumWallet)(nil).Sign), arg0) 135 } 136 137 // Version mocks base method. 138 func (m *MockEthereumWallet) Version() (string, error) { 139 m.ctrl.T.Helper() 140 ret := m.ctrl.Call(m, "Version") 141 ret0, _ := ret[0].(string) 142 ret1, _ := ret[1].(error) 143 return ret0, ret1 144 } 145 146 // Version indicates an expected call of Version. 147 func (mr *MockEthereumWalletMockRecorder) Version() *gomock.Call { 148 mr.mock.ctrl.T.Helper() 149 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockEthereumWallet)(nil).Version)) 150 }