mock_services

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_services is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIService

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

MockIService is a mock of IService interface.

func NewMockIService

func NewMockIService(ctrl *gomock.Controller) *MockIService

NewMockIService creates a new mock instance.

func (*MockIService) EXPECT

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

func (*MockIService) FormatAccount added in v0.1.2

func (m *MockIService) FormatAccount(id *big.Int) (*models.Account, error)

FormatAccount mocks base method.

func (*MockIService) FormatAccounts added in v0.1.2

func (m *MockIService) FormatAccounts() ([]*models.Account, error)

FormatAccounts mocks base method.

func (*MockIService) FormatAccountsLimit added in v0.1.2

func (m *MockIService) FormatAccountsLimit(limit uint64) ([]*models.Account, error)

FormatAccountsLimit mocks base method.

func (*MockIService) GetAccountLastInteraction added in v0.1.21

func (m *MockIService) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error)

GetAccountLastInteraction mocks base method.

func (*MockIService) GetAccountOwner added in v0.1.21

func (m *MockIService) GetAccountOwner(accountId *big.Int) (string, error)

GetAccountOwner mocks base method.

func (*MockIService) GetAvailableMargin added in v0.1.15

func (m *MockIService) GetAvailableMargin(accountId *big.Int) (*big.Int, error)

GetAvailableMargin mocks base method.

func (*MockIService) GetCollateralAmount added in v0.3.0

func (m *MockIService) GetCollateralAmount(accountId, marketId *big.Int) (*big.Int, error)

GetCollateralAmount mocks base method.

func (*MockIService) GetCollateralPrice added in v0.4.0

func (m *MockIService) GetCollateralPrice(blockNumber *big.Int, collateralType common.Address) (*models.CollateralPrice, error)

GetCollateralPrice mocks base method.

func (*MockIService) GetFoundingRate added in v0.1.12

func (m *MockIService) GetFoundingRate(marketId *big.Int) (*big.Int, error)

GetFoundingRate mocks base method.

func (*MockIService) GetFundingParameters added in v0.1.17

func (m *MockIService) GetFundingParameters(marketId *big.Int) (*models.FundingParameters, error)

GetFundingParameters mocks base method.

func (*MockIService) GetLiquidationParameters added in v0.1.16

func (m *MockIService) GetLiquidationParameters(marketId *big.Int) (*models.LiquidationParameters, error)

GetLiquidationParameters mocks base method.

func (*MockIService) GetMarketIDs added in v0.1.7

func (m *MockIService) GetMarketIDs() ([]*big.Int, error)

GetMarketIDs mocks base method.

func (*MockIService) GetMarketMetadata added in v0.1.6

func (m *MockIService) GetMarketMetadata(marketID *big.Int) (*models.MarketMetadata, error)

GetMarketMetadata mocks base method.

func (*MockIService) GetMarketSummary added in v0.1.7

func (m *MockIService) GetMarketSummary(marketID *big.Int) (*models.MarketSummary, error)

GetMarketSummary mocks base method.

func (*MockIService) GetPosition added in v0.0.2

func (m *MockIService) GetPosition(accountID, marketID *big.Int) (*models.Position, error)

GetPosition mocks base method.

func (*MockIService) GetRequiredMaintenanceMargin added in v0.1.24

func (m *MockIService) GetRequiredMaintenanceMargin(accountId *big.Int) (*big.Int, error)

GetRequiredMaintenanceMargin mocks base method.

func (*MockIService) RetrieveAccountLiquidationsLimit added in v0.1.19

func (m *MockIService) RetrieveAccountLiquidationsLimit(limit uint64) ([]*models.AccountLiquidated, error)

RetrieveAccountLiquidationsLimit mocks base method.

func (*MockIService) RetrieveCollateralDepositedLimit added in v0.4.0

func (m *MockIService) RetrieveCollateralDepositedLimit(limit uint64) ([]*models.CollateralDeposited, error)

RetrieveCollateralDepositedLimit mocks base method.

func (*MockIService) RetrieveCollateralWithdrawnLimit added in v0.4.0

func (m *MockIService) RetrieveCollateralWithdrawnLimit(limit uint64) ([]*models.CollateralWithdrawn, error)

RetrieveCollateralWithdrawnLimit mocks base method.

func (*MockIService) RetrieveDelegationUpdatedLimit added in v0.4.0

func (m *MockIService) RetrieveDelegationUpdatedLimit(limit uint64) ([]*models.DelegationUpdated, error)

RetrieveDelegationUpdatedLimit mocks base method.

func (*MockIService) RetrieveLiquidations added in v0.1.3

func (m *MockIService) RetrieveLiquidations(fromBlock uint64, toBLock *uint64) ([]*models.Liquidation, error)

RetrieveLiquidations mocks base method.

func (*MockIService) RetrieveLiquidationsLimit added in v0.1.3

func (m *MockIService) RetrieveLiquidationsLimit(limit uint64) ([]*models.Liquidation, error)

RetrieveLiquidationsLimit mocks base method.

func (*MockIService) RetrieveMarketUpdates added in v0.1.1

func (m *MockIService) RetrieveMarketUpdates(fromBlock uint64, toBLock *uint64) ([]*models.MarketUpdate, error)

RetrieveMarketUpdates mocks base method.

func (*MockIService) RetrieveMarketUpdatesBig added in v0.1.8

func (m *MockIService) RetrieveMarketUpdatesBig(fromBlock uint64, toBLock *uint64) ([]*models.MarketUpdateBig, error)

RetrieveMarketUpdatesBig mocks base method.

func (*MockIService) RetrieveMarketUpdatesBigLimit added in v0.1.8

func (m *MockIService) RetrieveMarketUpdatesBigLimit(limit uint64) ([]*models.MarketUpdateBig, error)

RetrieveMarketUpdatesBigLimit mocks base method.

func (*MockIService) RetrieveMarketUpdatesLimit added in v0.1.4

func (m *MockIService) RetrieveMarketUpdatesLimit(limit uint64) ([]*models.MarketUpdate, error)

RetrieveMarketUpdatesLimit mocks base method.

func (*MockIService) RetrieveOrders added in v0.1.0

func (m *MockIService) RetrieveOrders(fromBlock uint64, toBLock *uint64) ([]*models.Order, error)

RetrieveOrders mocks base method.

func (*MockIService) RetrieveOrdersLimit added in v0.1.4

func (m *MockIService) RetrieveOrdersLimit(limit uint64) ([]*models.Order, error)

RetrieveOrdersLimit mocks base method.

func (*MockIService) RetrieveRewardClaimedLimit added in v0.4.0

func (m *MockIService) RetrieveRewardClaimedLimit(limit uint64) ([]*models.RewardClaimed, error)

RetrieveRewardClaimedLimit mocks base method.

func (*MockIService) RetrieveRewardDistributedLimit added in v0.4.0

func (m *MockIService) RetrieveRewardDistributedLimit(limit uint64) ([]*models.RewardDistributed, error)

RetrieveRewardDistributedLimit mocks base method.

func (*MockIService) RetrieveTrades

func (m *MockIService) RetrieveTrades(fromBlock uint64, toBLock *uint64) ([]*models.Trade, error)

RetrieveTrades mocks base method.

func (*MockIService) RetrieveTradesLimit added in v0.1.4

func (m *MockIService) RetrieveTradesLimit(limit uint64) ([]*models.Trade, error)

RetrieveTradesLimit mocks base method.

func (*MockIService) RetrieveUSDBurnedLimit added in v0.4.0

func (m *MockIService) RetrieveUSDBurnedLimit(limit uint64) ([]*models.USDBurned, error)

RetrieveUSDBurnedLimit mocks base method.

func (*MockIService) RetrieveUSDMintedLimit added in v0.4.0

func (m *MockIService) RetrieveUSDMintedLimit(limit uint64) ([]*models.USDMinted, error)

RetrieveUSDMintedLimit mocks base method.

type MockIServiceMockRecorder

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

MockIServiceMockRecorder is the mock recorder for MockIService.

func (*MockIServiceMockRecorder) FormatAccount added in v0.1.2

func (mr *MockIServiceMockRecorder) FormatAccount(id interface{}) *gomock.Call

FormatAccount indicates an expected call of FormatAccount.

func (*MockIServiceMockRecorder) FormatAccounts added in v0.1.2

func (mr *MockIServiceMockRecorder) FormatAccounts() *gomock.Call

FormatAccounts indicates an expected call of FormatAccounts.

func (*MockIServiceMockRecorder) FormatAccountsLimit added in v0.1.2

func (mr *MockIServiceMockRecorder) FormatAccountsLimit(limit interface{}) *gomock.Call

FormatAccountsLimit indicates an expected call of FormatAccountsLimit.

func (*MockIServiceMockRecorder) GetAccountLastInteraction added in v0.1.21

func (mr *MockIServiceMockRecorder) GetAccountLastInteraction(accountId interface{}) *gomock.Call

GetAccountLastInteraction indicates an expected call of GetAccountLastInteraction.

func (*MockIServiceMockRecorder) GetAccountOwner added in v0.1.21

func (mr *MockIServiceMockRecorder) GetAccountOwner(accountId interface{}) *gomock.Call

GetAccountOwner indicates an expected call of GetAccountOwner.

func (*MockIServiceMockRecorder) GetAvailableMargin added in v0.1.15

func (mr *MockIServiceMockRecorder) GetAvailableMargin(accountId interface{}) *gomock.Call

GetAvailableMargin indicates an expected call of GetAvailableMargin.

func (*MockIServiceMockRecorder) GetCollateralAmount added in v0.3.0

func (mr *MockIServiceMockRecorder) GetCollateralAmount(accountId, marketId interface{}) *gomock.Call

GetCollateralAmount indicates an expected call of GetCollateralAmount.

func (*MockIServiceMockRecorder) GetCollateralPrice added in v0.4.0

func (mr *MockIServiceMockRecorder) GetCollateralPrice(blockNumber, collateralType interface{}) *gomock.Call

GetCollateralPrice indicates an expected call of GetCollateralPrice.

func (*MockIServiceMockRecorder) GetFoundingRate added in v0.1.12

func (mr *MockIServiceMockRecorder) GetFoundingRate(marketId interface{}) *gomock.Call

GetFoundingRate indicates an expected call of GetFoundingRate.

func (*MockIServiceMockRecorder) GetFundingParameters added in v0.1.17

func (mr *MockIServiceMockRecorder) GetFundingParameters(marketId interface{}) *gomock.Call

GetFundingParameters indicates an expected call of GetFundingParameters.

func (*MockIServiceMockRecorder) GetLiquidationParameters added in v0.1.16

func (mr *MockIServiceMockRecorder) GetLiquidationParameters(marketId interface{}) *gomock.Call

GetLiquidationParameters indicates an expected call of GetLiquidationParameters.

func (*MockIServiceMockRecorder) GetMarketIDs added in v0.1.7

func (mr *MockIServiceMockRecorder) GetMarketIDs() *gomock.Call

GetMarketIDs indicates an expected call of GetMarketIDs.

func (*MockIServiceMockRecorder) GetMarketMetadata added in v0.1.6

func (mr *MockIServiceMockRecorder) GetMarketMetadata(marketID interface{}) *gomock.Call

GetMarketMetadata indicates an expected call of GetMarketMetadata.

func (*MockIServiceMockRecorder) GetMarketSummary added in v0.1.7

func (mr *MockIServiceMockRecorder) GetMarketSummary(marketID interface{}) *gomock.Call

GetMarketSummary indicates an expected call of GetMarketSummary.

func (*MockIServiceMockRecorder) GetPosition added in v0.0.2

func (mr *MockIServiceMockRecorder) GetPosition(accountID, marketID interface{}) *gomock.Call

GetPosition indicates an expected call of GetPosition.

func (*MockIServiceMockRecorder) GetRequiredMaintenanceMargin added in v0.1.24

func (mr *MockIServiceMockRecorder) GetRequiredMaintenanceMargin(accountId interface{}) *gomock.Call

GetRequiredMaintenanceMargin indicates an expected call of GetRequiredMaintenanceMargin.

func (*MockIServiceMockRecorder) RetrieveAccountLiquidationsLimit added in v0.1.19

func (mr *MockIServiceMockRecorder) RetrieveAccountLiquidationsLimit(limit interface{}) *gomock.Call

RetrieveAccountLiquidationsLimit indicates an expected call of RetrieveAccountLiquidationsLimit.

func (*MockIServiceMockRecorder) RetrieveCollateralDepositedLimit added in v0.4.0

func (mr *MockIServiceMockRecorder) RetrieveCollateralDepositedLimit(limit interface{}) *gomock.Call

RetrieveCollateralDepositedLimit indicates an expected call of RetrieveCollateralDepositedLimit.

func (*MockIServiceMockRecorder) RetrieveCollateralWithdrawnLimit added in v0.4.0

func (mr *MockIServiceMockRecorder) RetrieveCollateralWithdrawnLimit(limit interface{}) *gomock.Call

RetrieveCollateralWithdrawnLimit indicates an expected call of RetrieveCollateralWithdrawnLimit.

func (*MockIServiceMockRecorder) RetrieveDelegationUpdatedLimit added in v0.4.0

func (mr *MockIServiceMockRecorder) RetrieveDelegationUpdatedLimit(limit interface{}) *gomock.Call

RetrieveDelegationUpdatedLimit indicates an expected call of RetrieveDelegationUpdatedLimit.

func (*MockIServiceMockRecorder) RetrieveLiquidations added in v0.1.3

func (mr *MockIServiceMockRecorder) RetrieveLiquidations(fromBlock, toBLock interface{}) *gomock.Call

RetrieveLiquidations indicates an expected call of RetrieveLiquidations.

func (*MockIServiceMockRecorder) RetrieveLiquidationsLimit added in v0.1.3

func (mr *MockIServiceMockRecorder) RetrieveLiquidationsLimit(limit interface{}) *gomock.Call

RetrieveLiquidationsLimit indicates an expected call of RetrieveLiquidationsLimit.

func (*MockIServiceMockRecorder) RetrieveMarketUpdates added in v0.1.1

func (mr *MockIServiceMockRecorder) RetrieveMarketUpdates(fromBlock, toBLock interface{}) *gomock.Call

RetrieveMarketUpdates indicates an expected call of RetrieveMarketUpdates.

func (*MockIServiceMockRecorder) RetrieveMarketUpdatesBig added in v0.1.8

func (mr *MockIServiceMockRecorder) RetrieveMarketUpdatesBig(fromBlock, toBLock interface{}) *gomock.Call

RetrieveMarketUpdatesBig indicates an expected call of RetrieveMarketUpdatesBig.

func (*MockIServiceMockRecorder) RetrieveMarketUpdatesBigLimit added in v0.1.8

func (mr *MockIServiceMockRecorder) RetrieveMarketUpdatesBigLimit(limit interface{}) *gomock.Call

RetrieveMarketUpdatesBigLimit indicates an expected call of RetrieveMarketUpdatesBigLimit.

func (*MockIServiceMockRecorder) RetrieveMarketUpdatesLimit added in v0.1.4

func (mr *MockIServiceMockRecorder) RetrieveMarketUpdatesLimit(limit interface{}) *gomock.Call

RetrieveMarketUpdatesLimit indicates an expected call of RetrieveMarketUpdatesLimit.

func (*MockIServiceMockRecorder) RetrieveOrders added in v0.1.0

func (mr *MockIServiceMockRecorder) RetrieveOrders(fromBlock, toBLock interface{}) *gomock.Call

RetrieveOrders indicates an expected call of RetrieveOrders.

func (*MockIServiceMockRecorder) RetrieveOrdersLimit added in v0.1.4

func (mr *MockIServiceMockRecorder) RetrieveOrdersLimit(limit interface{}) *gomock.Call

RetrieveOrdersLimit indicates an expected call of RetrieveOrdersLimit.

func (*MockIServiceMockRecorder) RetrieveRewardClaimedLimit added in v0.4.0

func (mr *MockIServiceMockRecorder) RetrieveRewardClaimedLimit(limit interface{}) *gomock.Call

RetrieveRewardClaimedLimit indicates an expected call of RetrieveRewardClaimedLimit.

func (*MockIServiceMockRecorder) RetrieveRewardDistributedLimit added in v0.4.0

func (mr *MockIServiceMockRecorder) RetrieveRewardDistributedLimit(limit interface{}) *gomock.Call

RetrieveRewardDistributedLimit indicates an expected call of RetrieveRewardDistributedLimit.

func (*MockIServiceMockRecorder) RetrieveTrades

func (mr *MockIServiceMockRecorder) RetrieveTrades(fromBlock, toBLock interface{}) *gomock.Call

RetrieveTrades indicates an expected call of RetrieveTrades.

func (*MockIServiceMockRecorder) RetrieveTradesLimit added in v0.1.4

func (mr *MockIServiceMockRecorder) RetrieveTradesLimit(limit interface{}) *gomock.Call

RetrieveTradesLimit indicates an expected call of RetrieveTradesLimit.

func (*MockIServiceMockRecorder) RetrieveUSDBurnedLimit added in v0.4.0

func (mr *MockIServiceMockRecorder) RetrieveUSDBurnedLimit(limit interface{}) *gomock.Call

RetrieveUSDBurnedLimit indicates an expected call of RetrieveUSDBurnedLimit.

func (*MockIServiceMockRecorder) RetrieveUSDMintedLimit added in v0.4.0

func (mr *MockIServiceMockRecorder) RetrieveUSDMintedLimit(limit interface{}) *gomock.Call

RetrieveUSDMintedLimit indicates an expected call of RetrieveUSDMintedLimit.

Jump to

Keyboard shortcuts

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