Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCollateral
- func (m *MockCollateral) CreatePartyAMMsSubAccounts(arg0 context.Context, arg1, arg2, arg3, arg4 string) (*types.Account, *types.Account, error)
- func (m *MockCollateral) EXPECT() *MockCollateralMockRecorder
- func (m *MockCollateral) GetAllParties() []string
- func (m *MockCollateral) GetAssetQuantum(arg0 string) (decimal.Decimal, error)
- func (m *MockCollateral) GetPartyGeneralAccount(arg0, arg1 string) (*types.Account, error)
- func (m *MockCollateral) GetPartyMarginAccount(arg0, arg1, arg2 string) (*types.Account, error)
- func (m *MockCollateral) SubAccountClosed(arg0 context.Context, arg1, arg2, arg3, arg4 string) ([]*types.LedgerMovement, error)
- func (m *MockCollateral) SubAccountRelease(arg0 context.Context, arg1, arg2, arg3, arg4 string, ...) ([]*types.LedgerMovement, events.Margin, error)
- func (m *MockCollateral) SubAccountUpdate(arg0 context.Context, arg1, arg2, arg3, arg4 string, arg5 vega.TransferType, ...) (*types.LedgerMovement, error)
- type MockCollateralMockRecorder
- func (mr *MockCollateralMockRecorder) CreatePartyAMMsSubAccounts(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) GetAllParties() *gomock.Call
- func (mr *MockCollateralMockRecorder) GetAssetQuantum(arg0 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) GetPartyGeneralAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) GetPartyMarginAccount(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) SubAccountClosed(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) SubAccountRelease(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) SubAccountUpdate(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call
- type MockPosition
- type MockPositionMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCollateral ¶
type MockCollateral struct {
// contains filtered or unexported fields
}
MockCollateral is a mock of Collateral interface.
func NewMockCollateral ¶
func NewMockCollateral(ctrl *gomock.Controller) *MockCollateral
NewMockCollateral creates a new mock instance.
func (*MockCollateral) CreatePartyAMMsSubAccounts ¶
func (m *MockCollateral) CreatePartyAMMsSubAccounts(arg0 context.Context, arg1, arg2, arg3, arg4 string) (*types.Account, *types.Account, error)
CreatePartyAMMsSubAccounts mocks base method.
func (*MockCollateral) EXPECT ¶
func (m *MockCollateral) EXPECT() *MockCollateralMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCollateral) GetAllParties ¶ added in v0.78.0
func (m *MockCollateral) GetAllParties() []string
GetAllParties mocks base method.
func (*MockCollateral) GetAssetQuantum ¶
func (m *MockCollateral) GetAssetQuantum(arg0 string) (decimal.Decimal, error)
GetAssetQuantum mocks base method.
func (*MockCollateral) GetPartyGeneralAccount ¶
func (m *MockCollateral) GetPartyGeneralAccount(arg0, arg1 string) (*types.Account, error)
GetPartyGeneralAccount mocks base method.
func (*MockCollateral) GetPartyMarginAccount ¶
func (m *MockCollateral) GetPartyMarginAccount(arg0, arg1, arg2 string) (*types.Account, error)
GetPartyMarginAccount mocks base method.
func (*MockCollateral) SubAccountClosed ¶
func (m *MockCollateral) SubAccountClosed(arg0 context.Context, arg1, arg2, arg3, arg4 string) ([]*types.LedgerMovement, error)
SubAccountClosed mocks base method.
func (*MockCollateral) SubAccountRelease ¶
func (m *MockCollateral) SubAccountRelease(arg0 context.Context, arg1, arg2, arg3, arg4 string, arg5 events.MarketPosition) ([]*types.LedgerMovement, events.Margin, error)
SubAccountRelease mocks base method.
func (*MockCollateral) SubAccountUpdate ¶
func (m *MockCollateral) SubAccountUpdate(arg0 context.Context, arg1, arg2, arg3, arg4 string, arg5 vega.TransferType, arg6 *num.Uint) (*types.LedgerMovement, error)
SubAccountUpdate mocks base method.
type MockCollateralMockRecorder ¶
type MockCollateralMockRecorder struct {
// contains filtered or unexported fields
}
MockCollateralMockRecorder is the mock recorder for MockCollateral.
func (*MockCollateralMockRecorder) CreatePartyAMMsSubAccounts ¶
func (mr *MockCollateralMockRecorder) CreatePartyAMMsSubAccounts(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
CreatePartyAMMsSubAccounts indicates an expected call of CreatePartyAMMsSubAccounts.
func (*MockCollateralMockRecorder) GetAllParties ¶ added in v0.78.0
func (mr *MockCollateralMockRecorder) GetAllParties() *gomock.Call
GetAllParties indicates an expected call of GetAllParties.
func (*MockCollateralMockRecorder) GetAssetQuantum ¶
func (mr *MockCollateralMockRecorder) GetAssetQuantum(arg0 interface{}) *gomock.Call
GetAssetQuantum indicates an expected call of GetAssetQuantum.
func (*MockCollateralMockRecorder) GetPartyGeneralAccount ¶
func (mr *MockCollateralMockRecorder) GetPartyGeneralAccount(arg0, arg1 interface{}) *gomock.Call
GetPartyGeneralAccount indicates an expected call of GetPartyGeneralAccount.
func (*MockCollateralMockRecorder) GetPartyMarginAccount ¶
func (mr *MockCollateralMockRecorder) GetPartyMarginAccount(arg0, arg1, arg2 interface{}) *gomock.Call
GetPartyMarginAccount indicates an expected call of GetPartyMarginAccount.
func (*MockCollateralMockRecorder) SubAccountClosed ¶
func (mr *MockCollateralMockRecorder) SubAccountClosed(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
SubAccountClosed indicates an expected call of SubAccountClosed.
func (*MockCollateralMockRecorder) SubAccountRelease ¶
func (mr *MockCollateralMockRecorder) SubAccountRelease(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
SubAccountRelease indicates an expected call of SubAccountRelease.
func (*MockCollateralMockRecorder) SubAccountUpdate ¶
func (mr *MockCollateralMockRecorder) SubAccountUpdate(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call
SubAccountUpdate indicates an expected call of SubAccountUpdate.
type MockPosition ¶
type MockPosition struct {
// contains filtered or unexported fields
}
MockPosition is a mock of Position interface.
func NewMockPosition ¶
func NewMockPosition(ctrl *gomock.Controller) *MockPosition
NewMockPosition creates a new mock instance.
func (*MockPosition) EXPECT ¶
func (m *MockPosition) EXPECT() *MockPositionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPosition) GetPositionsByParty ¶
func (m *MockPosition) GetPositionsByParty(arg0 ...string) []events.MarketPosition
GetPositionsByParty mocks base method.
type MockPositionMockRecorder ¶
type MockPositionMockRecorder struct {
// contains filtered or unexported fields
}
MockPositionMockRecorder is the mock recorder for MockPosition.
func (*MockPositionMockRecorder) GetPositionsByParty ¶
func (mr *MockPositionMockRecorder) GetPositionsByParty(arg0 ...interface{}) *gomock.Call
GetPositionsByParty indicates an expected call of GetPositionsByParty.