code.vegaprotocol.io/vega@v0.79.0/core/execution/common/mocks_amm/mocks.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/core/execution/common (interfaces: AMMPool,AMM)
     3  
     4  // Package mocks_amm is a generated GoMock package.
     5  package mocks_amm
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	common "code.vegaprotocol.io/vega/core/execution/common"
    11  	idgeneration "code.vegaprotocol.io/vega/core/idgeneration"
    12  	types "code.vegaprotocol.io/vega/core/types"
    13  	num "code.vegaprotocol.io/vega/libs/num"
    14  	gomock "github.com/golang/mock/gomock"
    15  	decimal "github.com/shopspring/decimal"
    16  )
    17  
    18  // MockAMMPool is a mock of AMMPool interface.
    19  type MockAMMPool struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockAMMPoolMockRecorder
    22  }
    23  
    24  // MockAMMPoolMockRecorder is the mock recorder for MockAMMPool.
    25  type MockAMMPoolMockRecorder struct {
    26  	mock *MockAMMPool
    27  }
    28  
    29  // NewMockAMMPool creates a new mock instance.
    30  func NewMockAMMPool(ctrl *gomock.Controller) *MockAMMPool {
    31  	mock := &MockAMMPool{ctrl: ctrl}
    32  	mock.recorder = &MockAMMPoolMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockAMMPool) EXPECT() *MockAMMPoolMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // CommitmentAmount mocks base method.
    42  func (m *MockAMMPool) CommitmentAmount() *num.Uint {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "CommitmentAmount")
    45  	ret0, _ := ret[0].(*num.Uint)
    46  	return ret0
    47  }
    48  
    49  // CommitmentAmount indicates an expected call of CommitmentAmount.
    50  func (mr *MockAMMPoolMockRecorder) CommitmentAmount() *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitmentAmount", reflect.TypeOf((*MockAMMPool)(nil).CommitmentAmount))
    53  }
    54  
    55  // LiquidityFee mocks base method.
    56  func (m *MockAMMPool) LiquidityFee() decimal.Decimal {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "LiquidityFee")
    59  	ret0, _ := ret[0].(decimal.Decimal)
    60  	return ret0
    61  }
    62  
    63  // LiquidityFee indicates an expected call of LiquidityFee.
    64  func (mr *MockAMMPoolMockRecorder) LiquidityFee() *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LiquidityFee", reflect.TypeOf((*MockAMMPool)(nil).LiquidityFee))
    67  }
    68  
    69  // OrderbookShape mocks base method.
    70  func (m *MockAMMPool) OrderbookShape(arg0, arg1 *num.Uint, arg2 *idgeneration.IDGenerator) *types.OrderbookShapeResult {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "OrderbookShape", arg0, arg1, arg2)
    73  	ret0, _ := ret[0].(*types.OrderbookShapeResult)
    74  	return ret0
    75  }
    76  
    77  // OrderbookShape indicates an expected call of OrderbookShape.
    78  func (mr *MockAMMPoolMockRecorder) OrderbookShape(arg0, arg1, arg2 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OrderbookShape", reflect.TypeOf((*MockAMMPool)(nil).OrderbookShape), arg0, arg1, arg2)
    81  }
    82  
    83  // MockAMM is a mock of AMM interface.
    84  type MockAMM struct {
    85  	ctrl     *gomock.Controller
    86  	recorder *MockAMMMockRecorder
    87  }
    88  
    89  // MockAMMMockRecorder is the mock recorder for MockAMM.
    90  type MockAMMMockRecorder struct {
    91  	mock *MockAMM
    92  }
    93  
    94  // NewMockAMM creates a new mock instance.
    95  func NewMockAMM(ctrl *gomock.Controller) *MockAMM {
    96  	mock := &MockAMM{ctrl: ctrl}
    97  	mock.recorder = &MockAMMMockRecorder{mock}
    98  	return mock
    99  }
   100  
   101  // EXPECT returns an object that allows the caller to indicate expected use.
   102  func (m *MockAMM) EXPECT() *MockAMMMockRecorder {
   103  	return m.recorder
   104  }
   105  
   106  // GetAMMPoolsBySubAccount mocks base method.
   107  func (m *MockAMM) GetAMMPoolsBySubAccount() map[string]common.AMMPool {
   108  	m.ctrl.T.Helper()
   109  	ret := m.ctrl.Call(m, "GetAMMPoolsBySubAccount")
   110  	ret0, _ := ret[0].(map[string]common.AMMPool)
   111  	return ret0
   112  }
   113  
   114  // GetAMMPoolsBySubAccount indicates an expected call of GetAMMPoolsBySubAccount.
   115  func (mr *MockAMMMockRecorder) GetAMMPoolsBySubAccount() *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAMMPoolsBySubAccount", reflect.TypeOf((*MockAMM)(nil).GetAMMPoolsBySubAccount))
   118  }
   119  
   120  // GetAllSubAccounts mocks base method.
   121  func (m *MockAMM) GetAllSubAccounts() []string {
   122  	m.ctrl.T.Helper()
   123  	ret := m.ctrl.Call(m, "GetAllSubAccounts")
   124  	ret0, _ := ret[0].([]string)
   125  	return ret0
   126  }
   127  
   128  // GetAllSubAccounts indicates an expected call of GetAllSubAccounts.
   129  func (mr *MockAMMMockRecorder) GetAllSubAccounts() *gomock.Call {
   130  	mr.mock.ctrl.T.Helper()
   131  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllSubAccounts", reflect.TypeOf((*MockAMM)(nil).GetAllSubAccounts))
   132  }
   133  
   134  // IsAMMPartyID mocks base method.
   135  func (m *MockAMM) IsAMMPartyID(arg0 string) bool {
   136  	m.ctrl.T.Helper()
   137  	ret := m.ctrl.Call(m, "IsAMMPartyID", arg0)
   138  	ret0, _ := ret[0].(bool)
   139  	return ret0
   140  }
   141  
   142  // IsAMMPartyID indicates an expected call of IsAMMPartyID.
   143  func (mr *MockAMMMockRecorder) IsAMMPartyID(arg0 interface{}) *gomock.Call {
   144  	mr.mock.ctrl.T.Helper()
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAMMPartyID", reflect.TypeOf((*MockAMM)(nil).IsAMMPartyID), arg0)
   146  }