mocks

package
v0.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAssets

type MockAssets struct {
	// contains filtered or unexported fields
}

MockAssets is a mock of Assets interface.

func NewMockAssets

func NewMockAssets(ctrl *gomock.Controller) *MockAssets

NewMockAssets creates a new mock instance.

func (*MockAssets) EXPECT

func (m *MockAssets) EXPECT() *MockAssetsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAssets) Get

func (m *MockAssets) Get(arg0 string) (*assets.Asset, error)

Get mocks base method.

type MockAssetsMockRecorder

type MockAssetsMockRecorder struct {
	// contains filtered or unexported fields
}

MockAssetsMockRecorder is the mock recorder for MockAssets.

func (*MockAssetsMockRecorder) Get

func (mr *MockAssetsMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

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) AssetExists

func (m *MockCollateral) AssetExists(arg0 string) bool

AssetExists mocks base method.

func (*MockCollateral) BondUpdate

func (m *MockCollateral) BondUpdate(arg0 context.Context, arg1 string, arg2 *types.Transfer) (*types.LedgerMovement, error)

BondUpdate mocks base method.

func (*MockCollateral) CanCoverBond

func (m *MockCollateral) CanCoverBond(arg0, arg1, arg2 string, arg3 *num.Uint) bool

CanCoverBond mocks base method.

func (*MockCollateral) ClearMarket

func (m *MockCollateral) ClearMarket(arg0 context.Context, arg1, arg2 string, arg3 []string) ([]*types.LedgerMovement, error)

ClearMarket mocks base method.

func (*MockCollateral) ClearPartyMarginAccount

func (m *MockCollateral) ClearPartyMarginAccount(arg0 context.Context, arg1, arg2, arg3 string) (*types.LedgerMovement, error)

ClearPartyMarginAccount mocks base method.

func (*MockCollateral) CreateMarketAccounts

func (m *MockCollateral) CreateMarketAccounts(arg0 context.Context, arg1, arg2 string) (string, string, error)

CreateMarketAccounts mocks base method.

func (*MockCollateral) CreatePartyMarginAccount

func (m *MockCollateral) CreatePartyMarginAccount(arg0 context.Context, arg1, arg2, arg3 string) (string, error)

CreatePartyMarginAccount mocks base method.

func (*MockCollateral) Deposit

func (m *MockCollateral) Deposit(arg0 context.Context, arg1, arg2 string, arg3 *num.Uint) (*types.LedgerMovement, error)

Deposit mocks base method.

func (*MockCollateral) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCollateral) EnableAsset

func (m *MockCollateral) EnableAsset(arg0 context.Context, arg1 types.Asset) error

EnableAsset mocks base method.

func (*MockCollateral) FinalSettlement

func (m *MockCollateral) FinalSettlement(arg0 context.Context, arg1 string, arg2 []*types.Transfer) ([]*types.LedgerMovement, error)

FinalSettlement mocks base method.

func (*MockCollateral) GetAssetQuantum

func (m *MockCollateral) GetAssetQuantum(arg0 string) (decimal.Decimal, error)

GetAssetQuantum mocks base method.

func (*MockCollateral) GetMarketLiquidityFeeAccount

func (m *MockCollateral) GetMarketLiquidityFeeAccount(arg0, arg1 string) (*types.Account, error)

GetMarketLiquidityFeeAccount mocks base method.

func (*MockCollateral) GetOrCreatePartyBondAccount

func (m *MockCollateral) GetOrCreatePartyBondAccount(arg0 context.Context, arg1, arg2, arg3 string) (*types.Account, error)

GetOrCreatePartyBondAccount mocks base method.

func (*MockCollateral) GetPartyBondAccount

func (m *MockCollateral) GetPartyBondAccount(arg0, arg1, arg2 string) (*types.Account, error)

GetPartyBondAccount mocks base method.

func (*MockCollateral) GetPartyGeneralAccount

func (m *MockCollateral) GetPartyGeneralAccount(arg0, arg1 string) (*types.Account, error)

GetPartyGeneralAccount mocks base method.

func (*MockCollateral) GetPartyMargin

func (m *MockCollateral) GetPartyMargin(arg0 events.MarketPosition, arg1, arg2 string) (events.Margin, error)

GetPartyMargin mocks base method.

func (*MockCollateral) GetPartyMarginAccount

func (m *MockCollateral) GetPartyMarginAccount(arg0, arg1, arg2 string) (*types.Account, error)

GetPartyMarginAccount mocks base method.

func (*MockCollateral) HasGeneralAccount

func (m *MockCollateral) HasGeneralAccount(arg0, arg1 string) bool

HasGeneralAccount mocks base method.

func (*MockCollateral) Hash

func (m *MockCollateral) Hash() []byte

Hash mocks base method.

func (*MockCollateral) MarginUpdate

func (m *MockCollateral) MarginUpdate(arg0 context.Context, arg1 string, arg2 []events.Risk) ([]*types.LedgerMovement, []events.Margin, []events.Margin, error)

MarginUpdate mocks base method.

func (*MockCollateral) MarginUpdateOnOrder

func (m *MockCollateral) MarginUpdateOnOrder(arg0 context.Context, arg1 string, arg2 events.Risk) (*types.LedgerMovement, events.Margin, error)

MarginUpdateOnOrder mocks base method.

func (*MockCollateral) MarkToMarket

func (m *MockCollateral) MarkToMarket(arg0 context.Context, arg1 string, arg2 []events.Transfer, arg3 string) ([]events.Margin, []*types.LedgerMovement, error)

MarkToMarket mocks base method.

func (*MockCollateral) RemoveDistressed

func (m *MockCollateral) RemoveDistressed(arg0 context.Context, arg1 []events.MarketPosition, arg2, arg3 string) (*types.LedgerMovement, error)

RemoveDistressed mocks base method.

func (*MockCollateral) RollbackMarginUpdateOnOrder

func (m *MockCollateral) RollbackMarginUpdateOnOrder(arg0 context.Context, arg1, arg2 string, arg3 *types.Transfer) (*types.LedgerMovement, error)

RollbackMarginUpdateOnOrder mocks base method.

func (*MockCollateral) TransferFees

func (m *MockCollateral) TransferFees(arg0 context.Context, arg1, arg2 string, arg3 events.FeesTransfer) ([]*types.LedgerMovement, error)

TransferFees mocks base method.

func (*MockCollateral) TransferFeesContinuousTrading

func (m *MockCollateral) TransferFeesContinuousTrading(arg0 context.Context, arg1, arg2 string, arg3 events.FeesTransfer) ([]*types.LedgerMovement, error)

TransferFeesContinuousTrading mocks base method.

func (*MockCollateral) Withdraw

func (m *MockCollateral) Withdraw(arg0 context.Context, arg1, arg2 string, arg3 *num.Uint) (*types.LedgerMovement, error)

Withdraw mocks base method.

type MockCollateralMockRecorder

type MockCollateralMockRecorder struct {
	// contains filtered or unexported fields
}

MockCollateralMockRecorder is the mock recorder for MockCollateral.

func (*MockCollateralMockRecorder) AssetExists

func (mr *MockCollateralMockRecorder) AssetExists(arg0 interface{}) *gomock.Call

AssetExists indicates an expected call of AssetExists.

func (*MockCollateralMockRecorder) BondUpdate

func (mr *MockCollateralMockRecorder) BondUpdate(arg0, arg1, arg2 interface{}) *gomock.Call

BondUpdate indicates an expected call of BondUpdate.

func (*MockCollateralMockRecorder) CanCoverBond

func (mr *MockCollateralMockRecorder) CanCoverBond(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CanCoverBond indicates an expected call of CanCoverBond.

func (*MockCollateralMockRecorder) ClearMarket

func (mr *MockCollateralMockRecorder) ClearMarket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ClearMarket indicates an expected call of ClearMarket.

func (*MockCollateralMockRecorder) ClearPartyMarginAccount

func (mr *MockCollateralMockRecorder) ClearPartyMarginAccount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ClearPartyMarginAccount indicates an expected call of ClearPartyMarginAccount.

func (*MockCollateralMockRecorder) CreateMarketAccounts

func (mr *MockCollateralMockRecorder) CreateMarketAccounts(arg0, arg1, arg2 interface{}) *gomock.Call

CreateMarketAccounts indicates an expected call of CreateMarketAccounts.

func (*MockCollateralMockRecorder) CreatePartyMarginAccount

func (mr *MockCollateralMockRecorder) CreatePartyMarginAccount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreatePartyMarginAccount indicates an expected call of CreatePartyMarginAccount.

func (*MockCollateralMockRecorder) Deposit

func (mr *MockCollateralMockRecorder) Deposit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Deposit indicates an expected call of Deposit.

func (*MockCollateralMockRecorder) EnableAsset

func (mr *MockCollateralMockRecorder) EnableAsset(arg0, arg1 interface{}) *gomock.Call

EnableAsset indicates an expected call of EnableAsset.

func (*MockCollateralMockRecorder) FinalSettlement

func (mr *MockCollateralMockRecorder) FinalSettlement(arg0, arg1, arg2 interface{}) *gomock.Call

FinalSettlement indicates an expected call of FinalSettlement.

func (*MockCollateralMockRecorder) GetAssetQuantum

func (mr *MockCollateralMockRecorder) GetAssetQuantum(arg0 interface{}) *gomock.Call

GetAssetQuantum indicates an expected call of GetAssetQuantum.

func (*MockCollateralMockRecorder) GetMarketLiquidityFeeAccount

func (mr *MockCollateralMockRecorder) GetMarketLiquidityFeeAccount(arg0, arg1 interface{}) *gomock.Call

GetMarketLiquidityFeeAccount indicates an expected call of GetMarketLiquidityFeeAccount.

func (*MockCollateralMockRecorder) GetOrCreatePartyBondAccount

func (mr *MockCollateralMockRecorder) GetOrCreatePartyBondAccount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetOrCreatePartyBondAccount indicates an expected call of GetOrCreatePartyBondAccount.

func (*MockCollateralMockRecorder) GetPartyBondAccount

func (mr *MockCollateralMockRecorder) GetPartyBondAccount(arg0, arg1, arg2 interface{}) *gomock.Call

GetPartyBondAccount indicates an expected call of GetPartyBondAccount.

func (*MockCollateralMockRecorder) GetPartyGeneralAccount

func (mr *MockCollateralMockRecorder) GetPartyGeneralAccount(arg0, arg1 interface{}) *gomock.Call

GetPartyGeneralAccount indicates an expected call of GetPartyGeneralAccount.

func (*MockCollateralMockRecorder) GetPartyMargin

func (mr *MockCollateralMockRecorder) GetPartyMargin(arg0, arg1, arg2 interface{}) *gomock.Call

GetPartyMargin indicates an expected call of GetPartyMargin.

func (*MockCollateralMockRecorder) GetPartyMarginAccount

func (mr *MockCollateralMockRecorder) GetPartyMarginAccount(arg0, arg1, arg2 interface{}) *gomock.Call

GetPartyMarginAccount indicates an expected call of GetPartyMarginAccount.

func (*MockCollateralMockRecorder) HasGeneralAccount

func (mr *MockCollateralMockRecorder) HasGeneralAccount(arg0, arg1 interface{}) *gomock.Call

HasGeneralAccount indicates an expected call of HasGeneralAccount.

func (*MockCollateralMockRecorder) Hash

Hash indicates an expected call of Hash.

func (*MockCollateralMockRecorder) MarginUpdate

func (mr *MockCollateralMockRecorder) MarginUpdate(arg0, arg1, arg2 interface{}) *gomock.Call

MarginUpdate indicates an expected call of MarginUpdate.

func (*MockCollateralMockRecorder) MarginUpdateOnOrder

func (mr *MockCollateralMockRecorder) MarginUpdateOnOrder(arg0, arg1, arg2 interface{}) *gomock.Call

MarginUpdateOnOrder indicates an expected call of MarginUpdateOnOrder.

func (*MockCollateralMockRecorder) MarkToMarket

func (mr *MockCollateralMockRecorder) MarkToMarket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

MarkToMarket indicates an expected call of MarkToMarket.

func (*MockCollateralMockRecorder) RemoveDistressed

func (mr *MockCollateralMockRecorder) RemoveDistressed(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RemoveDistressed indicates an expected call of RemoveDistressed.

func (*MockCollateralMockRecorder) RollbackMarginUpdateOnOrder

func (mr *MockCollateralMockRecorder) RollbackMarginUpdateOnOrder(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RollbackMarginUpdateOnOrder indicates an expected call of RollbackMarginUpdateOnOrder.

func (*MockCollateralMockRecorder) TransferFees

func (mr *MockCollateralMockRecorder) TransferFees(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

TransferFees indicates an expected call of TransferFees.

func (*MockCollateralMockRecorder) TransferFeesContinuousTrading

func (mr *MockCollateralMockRecorder) TransferFeesContinuousTrading(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

TransferFeesContinuousTrading indicates an expected call of TransferFeesContinuousTrading.

func (*MockCollateralMockRecorder) Withdraw

func (mr *MockCollateralMockRecorder) Withdraw(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Withdraw indicates an expected call of Withdraw.

type MockEpochEngine

type MockEpochEngine struct {
	// contains filtered or unexported fields
}

MockEpochEngine is a mock of EpochEngine interface.

func NewMockEpochEngine

func NewMockEpochEngine(ctrl *gomock.Controller) *MockEpochEngine

NewMockEpochEngine creates a new mock instance.

func (*MockEpochEngine) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEpochEngine) NotifyOnEpoch

func (m *MockEpochEngine) NotifyOnEpoch(arg0, arg1 func(context.Context, types.Epoch))

NotifyOnEpoch mocks base method.

type MockEpochEngineMockRecorder

type MockEpochEngineMockRecorder struct {
	// contains filtered or unexported fields
}

MockEpochEngineMockRecorder is the mock recorder for MockEpochEngine.

func (*MockEpochEngineMockRecorder) NotifyOnEpoch

func (mr *MockEpochEngineMockRecorder) NotifyOnEpoch(arg0, arg1 interface{}) *gomock.Call

NotifyOnEpoch indicates an expected call of NotifyOnEpoch.

type MockOracleEngine

type MockOracleEngine struct {
	// contains filtered or unexported fields
}

MockOracleEngine is a mock of OracleEngine interface.

func NewMockOracleEngine

func NewMockOracleEngine(ctrl *gomock.Controller) *MockOracleEngine

NewMockOracleEngine creates a new mock instance.

func (*MockOracleEngine) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOracleEngine) ListensToSigners added in v0.61.0

func (m *MockOracleEngine) ListensToSigners(arg0 oracles.OracleData) bool

ListensToSigners mocks base method.

func (*MockOracleEngine) Subscribe

Subscribe mocks base method.

func (*MockOracleEngine) Unsubscribe

func (m *MockOracleEngine) Unsubscribe(arg0 context.Context, arg1 oracles.SubscriptionID)

Unsubscribe mocks base method.

type MockOracleEngineMockRecorder

type MockOracleEngineMockRecorder struct {
	// contains filtered or unexported fields
}

MockOracleEngineMockRecorder is the mock recorder for MockOracleEngine.

func (*MockOracleEngineMockRecorder) ListensToSigners added in v0.61.0

func (mr *MockOracleEngineMockRecorder) ListensToSigners(arg0 interface{}) *gomock.Call

ListensToSigners indicates an expected call of ListensToSigners.

func (*MockOracleEngineMockRecorder) Subscribe

func (mr *MockOracleEngineMockRecorder) Subscribe(arg0, arg1, arg2 interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

func (*MockOracleEngineMockRecorder) Unsubscribe

func (mr *MockOracleEngineMockRecorder) Unsubscribe(arg0, arg1 interface{}) *gomock.Call

Unsubscribe indicates an expected call of Unsubscribe.

type MockStateVarEngine

type MockStateVarEngine struct {
	// contains filtered or unexported fields
}

MockStateVarEngine is a mock of StateVarEngine interface.

func NewMockStateVarEngine

func NewMockStateVarEngine(ctrl *gomock.Controller) *MockStateVarEngine

NewMockStateVarEngine creates a new mock instance.

func (*MockStateVarEngine) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStateVarEngine) NewEvent

func (m *MockStateVarEngine) NewEvent(arg0, arg1 string, arg2 statevar.EventType)

NewEvent mocks base method.

func (*MockStateVarEngine) ReadyForTimeTrigger

func (m *MockStateVarEngine) ReadyForTimeTrigger(arg0, arg1 string)

ReadyForTimeTrigger mocks base method.

func (*MockStateVarEngine) RegisterStateVariable

func (m *MockStateVarEngine) RegisterStateVariable(arg0, arg1, arg2 string, arg3 statevar.Converter, arg4 func(string, statevar.FinaliseCalculation), arg5 []statevar.EventType, arg6 func(context.Context, statevar.StateVariableResult) error) error

RegisterStateVariable mocks base method.

func (*MockStateVarEngine) UnregisterStateVariable

func (m *MockStateVarEngine) UnregisterStateVariable(arg0, arg1 string)

UnregisterStateVariable mocks base method.

type MockStateVarEngineMockRecorder

type MockStateVarEngineMockRecorder struct {
	// contains filtered or unexported fields
}

MockStateVarEngineMockRecorder is the mock recorder for MockStateVarEngine.

func (*MockStateVarEngineMockRecorder) NewEvent

func (mr *MockStateVarEngineMockRecorder) NewEvent(arg0, arg1, arg2 interface{}) *gomock.Call

NewEvent indicates an expected call of NewEvent.

func (*MockStateVarEngineMockRecorder) ReadyForTimeTrigger

func (mr *MockStateVarEngineMockRecorder) ReadyForTimeTrigger(arg0, arg1 interface{}) *gomock.Call

ReadyForTimeTrigger indicates an expected call of ReadyForTimeTrigger.

func (*MockStateVarEngineMockRecorder) RegisterStateVariable

func (mr *MockStateVarEngineMockRecorder) RegisterStateVariable(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call

RegisterStateVariable indicates an expected call of RegisterStateVariable.

func (*MockStateVarEngineMockRecorder) UnregisterStateVariable

func (mr *MockStateVarEngineMockRecorder) UnregisterStateVariable(arg0, arg1 interface{}) *gomock.Call

UnregisterStateVariable indicates an expected call of UnregisterStateVariable.

type MockTimeService

type MockTimeService struct {
	// contains filtered or unexported fields
}

MockTimeService is a mock of TimeService interface.

func NewMockTimeService

func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService

NewMockTimeService creates a new mock instance.

func (*MockTimeService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTimeService) GetTimeNow

func (m *MockTimeService) GetTimeNow() time.Time

GetTimeNow mocks base method.

type MockTimeServiceMockRecorder

type MockTimeServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockTimeServiceMockRecorder is the mock recorder for MockTimeService.

func (*MockTimeServiceMockRecorder) GetTimeNow

func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call

GetTimeNow indicates an expected call of GetTimeNow.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL