github.com/celestiaorg/celestia-node@v0.15.0-beta.1/nodebuilder/state/mocks/api.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/celestiaorg/celestia-node/nodebuilder/state (interfaces: Module) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 math "cosmossdk.io/math" 12 blob "github.com/celestiaorg/celestia-node/blob" 13 state "github.com/celestiaorg/celestia-node/state" 14 types "github.com/cosmos/cosmos-sdk/types" 15 types0 "github.com/cosmos/cosmos-sdk/x/staking/types" 16 gomock "github.com/golang/mock/gomock" 17 types1 "github.com/tendermint/tendermint/types" 18 ) 19 20 // MockModule is a mock of Module interface. 21 type MockModule struct { 22 ctrl *gomock.Controller 23 recorder *MockModuleMockRecorder 24 } 25 26 // MockModuleMockRecorder is the mock recorder for MockModule. 27 type MockModuleMockRecorder struct { 28 mock *MockModule 29 } 30 31 // NewMockModule creates a new mock instance. 32 func NewMockModule(ctrl *gomock.Controller) *MockModule { 33 mock := &MockModule{ctrl: ctrl} 34 mock.recorder = &MockModuleMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockModule) EXPECT() *MockModuleMockRecorder { 40 return m.recorder 41 } 42 43 // AccountAddress mocks base method. 44 func (m *MockModule) AccountAddress(arg0 context.Context) (state.Address, error) { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "AccountAddress", arg0) 47 ret0, _ := ret[0].(state.Address) 48 ret1, _ := ret[1].(error) 49 return ret0, ret1 50 } 51 52 // AccountAddress indicates an expected call of AccountAddress. 53 func (mr *MockModuleMockRecorder) AccountAddress(arg0 interface{}) *gomock.Call { 54 mr.mock.ctrl.T.Helper() 55 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccountAddress", reflect.TypeOf((*MockModule)(nil).AccountAddress), arg0) 56 } 57 58 // Balance mocks base method. 59 func (m *MockModule) Balance(arg0 context.Context) (*types.Coin, error) { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "Balance", arg0) 62 ret0, _ := ret[0].(*types.Coin) 63 ret1, _ := ret[1].(error) 64 return ret0, ret1 65 } 66 67 // Balance indicates an expected call of Balance. 68 func (mr *MockModuleMockRecorder) Balance(arg0 interface{}) *gomock.Call { 69 mr.mock.ctrl.T.Helper() 70 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Balance", reflect.TypeOf((*MockModule)(nil).Balance), arg0) 71 } 72 73 // BalanceForAddress mocks base method. 74 func (m *MockModule) BalanceForAddress(arg0 context.Context, arg1 state.Address) (*types.Coin, error) { 75 m.ctrl.T.Helper() 76 ret := m.ctrl.Call(m, "BalanceForAddress", arg0, arg1) 77 ret0, _ := ret[0].(*types.Coin) 78 ret1, _ := ret[1].(error) 79 return ret0, ret1 80 } 81 82 // BalanceForAddress indicates an expected call of BalanceForAddress. 83 func (mr *MockModuleMockRecorder) BalanceForAddress(arg0, arg1 interface{}) *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BalanceForAddress", reflect.TypeOf((*MockModule)(nil).BalanceForAddress), arg0, arg1) 86 } 87 88 // BeginRedelegate mocks base method. 89 func (m *MockModule) BeginRedelegate(arg0 context.Context, arg1, arg2 types.ValAddress, arg3, arg4 math.Int, arg5 uint64) (*types.TxResponse, error) { 90 m.ctrl.T.Helper() 91 ret := m.ctrl.Call(m, "BeginRedelegate", arg0, arg1, arg2, arg3, arg4, arg5) 92 ret0, _ := ret[0].(*types.TxResponse) 93 ret1, _ := ret[1].(error) 94 return ret0, ret1 95 } 96 97 // BeginRedelegate indicates an expected call of BeginRedelegate. 98 func (mr *MockModuleMockRecorder) BeginRedelegate(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 99 mr.mock.ctrl.T.Helper() 100 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginRedelegate", reflect.TypeOf((*MockModule)(nil).BeginRedelegate), arg0, arg1, arg2, arg3, arg4, arg5) 101 } 102 103 // CancelUnbondingDelegation mocks base method. 104 func (m *MockModule) CancelUnbondingDelegation(arg0 context.Context, arg1 types.ValAddress, arg2, arg3, arg4 math.Int, arg5 uint64) (*types.TxResponse, error) { 105 m.ctrl.T.Helper() 106 ret := m.ctrl.Call(m, "CancelUnbondingDelegation", arg0, arg1, arg2, arg3, arg4, arg5) 107 ret0, _ := ret[0].(*types.TxResponse) 108 ret1, _ := ret[1].(error) 109 return ret0, ret1 110 } 111 112 // CancelUnbondingDelegation indicates an expected call of CancelUnbondingDelegation. 113 func (mr *MockModuleMockRecorder) CancelUnbondingDelegation(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 114 mr.mock.ctrl.T.Helper() 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelUnbondingDelegation", reflect.TypeOf((*MockModule)(nil).CancelUnbondingDelegation), arg0, arg1, arg2, arg3, arg4, arg5) 116 } 117 118 // Delegate mocks base method. 119 func (m *MockModule) Delegate(arg0 context.Context, arg1 types.ValAddress, arg2, arg3 math.Int, arg4 uint64) (*types.TxResponse, error) { 120 m.ctrl.T.Helper() 121 ret := m.ctrl.Call(m, "Delegate", arg0, arg1, arg2, arg3, arg4) 122 ret0, _ := ret[0].(*types.TxResponse) 123 ret1, _ := ret[1].(error) 124 return ret0, ret1 125 } 126 127 // Delegate indicates an expected call of Delegate. 128 func (mr *MockModuleMockRecorder) Delegate(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 129 mr.mock.ctrl.T.Helper() 130 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delegate", reflect.TypeOf((*MockModule)(nil).Delegate), arg0, arg1, arg2, arg3, arg4) 131 } 132 133 // QueryDelegation mocks base method. 134 func (m *MockModule) QueryDelegation(arg0 context.Context, arg1 types.ValAddress) (*types0.QueryDelegationResponse, error) { 135 m.ctrl.T.Helper() 136 ret := m.ctrl.Call(m, "QueryDelegation", arg0, arg1) 137 ret0, _ := ret[0].(*types0.QueryDelegationResponse) 138 ret1, _ := ret[1].(error) 139 return ret0, ret1 140 } 141 142 // QueryDelegation indicates an expected call of QueryDelegation. 143 func (mr *MockModuleMockRecorder) QueryDelegation(arg0, arg1 interface{}) *gomock.Call { 144 mr.mock.ctrl.T.Helper() 145 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryDelegation", reflect.TypeOf((*MockModule)(nil).QueryDelegation), arg0, arg1) 146 } 147 148 // QueryRedelegations mocks base method. 149 func (m *MockModule) QueryRedelegations(arg0 context.Context, arg1, arg2 types.ValAddress) (*types0.QueryRedelegationsResponse, error) { 150 m.ctrl.T.Helper() 151 ret := m.ctrl.Call(m, "QueryRedelegations", arg0, arg1, arg2) 152 ret0, _ := ret[0].(*types0.QueryRedelegationsResponse) 153 ret1, _ := ret[1].(error) 154 return ret0, ret1 155 } 156 157 // QueryRedelegations indicates an expected call of QueryRedelegations. 158 func (mr *MockModuleMockRecorder) QueryRedelegations(arg0, arg1, arg2 interface{}) *gomock.Call { 159 mr.mock.ctrl.T.Helper() 160 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryRedelegations", reflect.TypeOf((*MockModule)(nil).QueryRedelegations), arg0, arg1, arg2) 161 } 162 163 // QueryUnbonding mocks base method. 164 func (m *MockModule) QueryUnbonding(arg0 context.Context, arg1 types.ValAddress) (*types0.QueryUnbondingDelegationResponse, error) { 165 m.ctrl.T.Helper() 166 ret := m.ctrl.Call(m, "QueryUnbonding", arg0, arg1) 167 ret0, _ := ret[0].(*types0.QueryUnbondingDelegationResponse) 168 ret1, _ := ret[1].(error) 169 return ret0, ret1 170 } 171 172 // QueryUnbonding indicates an expected call of QueryUnbonding. 173 func (mr *MockModuleMockRecorder) QueryUnbonding(arg0, arg1 interface{}) *gomock.Call { 174 mr.mock.ctrl.T.Helper() 175 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryUnbonding", reflect.TypeOf((*MockModule)(nil).QueryUnbonding), arg0, arg1) 176 } 177 178 // SubmitPayForBlob mocks base method. 179 func (m *MockModule) SubmitPayForBlob(arg0 context.Context, arg1 math.Int, arg2 uint64, arg3 []*blob.Blob) (*types.TxResponse, error) { 180 m.ctrl.T.Helper() 181 ret := m.ctrl.Call(m, "SubmitPayForBlob", arg0, arg1, arg2, arg3) 182 ret0, _ := ret[0].(*types.TxResponse) 183 ret1, _ := ret[1].(error) 184 return ret0, ret1 185 } 186 187 // SubmitPayForBlob indicates an expected call of SubmitPayForBlob. 188 func (mr *MockModuleMockRecorder) SubmitPayForBlob(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 189 mr.mock.ctrl.T.Helper() 190 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitPayForBlob", reflect.TypeOf((*MockModule)(nil).SubmitPayForBlob), arg0, arg1, arg2, arg3) 191 } 192 193 // SubmitTx mocks base method. 194 func (m *MockModule) SubmitTx(arg0 context.Context, arg1 types1.Tx) (*types.TxResponse, error) { 195 m.ctrl.T.Helper() 196 ret := m.ctrl.Call(m, "SubmitTx", arg0, arg1) 197 ret0, _ := ret[0].(*types.TxResponse) 198 ret1, _ := ret[1].(error) 199 return ret0, ret1 200 } 201 202 // SubmitTx indicates an expected call of SubmitTx. 203 func (mr *MockModuleMockRecorder) SubmitTx(arg0, arg1 interface{}) *gomock.Call { 204 mr.mock.ctrl.T.Helper() 205 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitTx", reflect.TypeOf((*MockModule)(nil).SubmitTx), arg0, arg1) 206 } 207 208 // Transfer mocks base method. 209 func (m *MockModule) Transfer(arg0 context.Context, arg1 types.AccAddress, arg2, arg3 math.Int, arg4 uint64) (*types.TxResponse, error) { 210 m.ctrl.T.Helper() 211 ret := m.ctrl.Call(m, "Transfer", arg0, arg1, arg2, arg3, arg4) 212 ret0, _ := ret[0].(*types.TxResponse) 213 ret1, _ := ret[1].(error) 214 return ret0, ret1 215 } 216 217 // Transfer indicates an expected call of Transfer. 218 func (mr *MockModuleMockRecorder) Transfer(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 219 mr.mock.ctrl.T.Helper() 220 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Transfer", reflect.TypeOf((*MockModule)(nil).Transfer), arg0, arg1, arg2, arg3, arg4) 221 } 222 223 // Undelegate mocks base method. 224 func (m *MockModule) Undelegate(arg0 context.Context, arg1 types.ValAddress, arg2, arg3 math.Int, arg4 uint64) (*types.TxResponse, error) { 225 m.ctrl.T.Helper() 226 ret := m.ctrl.Call(m, "Undelegate", arg0, arg1, arg2, arg3, arg4) 227 ret0, _ := ret[0].(*types.TxResponse) 228 ret1, _ := ret[1].(error) 229 return ret0, ret1 230 } 231 232 // Undelegate indicates an expected call of Undelegate. 233 func (mr *MockModuleMockRecorder) Undelegate(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 234 mr.mock.ctrl.T.Helper() 235 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Undelegate", reflect.TypeOf((*MockModule)(nil).Undelegate), arg0, arg1, arg2, arg3, arg4) 236 }