mocks

package
v0.68.2-pre1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 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) ExistsForEthereumAddress added in v0.58.0

func (m *MockAssets) ExistsForEthereumAddress(arg0 string) bool

ExistsForEthereumAddress mocks base method.

func (*MockAssets) Get

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

Get mocks base method.

func (*MockAssets) IsEnabled

func (m *MockAssets) IsEnabled(arg0 string) bool

IsEnabled mocks base method.

func (*MockAssets) NewAsset

func (m *MockAssets) NewAsset(arg0 context.Context, arg1 string, arg2 *types.AssetDetails) (string, error)

NewAsset mocks base method.

func (*MockAssets) SetPendingListing

func (m *MockAssets) SetPendingListing(arg0 context.Context, arg1 string) error

SetPendingListing mocks base method.

func (*MockAssets) SetRejected

func (m *MockAssets) SetRejected(arg0 context.Context, arg1 string) error

SetRejected mocks base method.

func (*MockAssets) ValidateAsset

func (m *MockAssets) ValidateAsset(arg0 string) error

ValidateAsset mocks base method.

type MockAssetsMockRecorder

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

MockAssetsMockRecorder is the mock recorder for MockAssets.

func (*MockAssetsMockRecorder) ExistsForEthereumAddress added in v0.58.0

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

ExistsForEthereumAddress indicates an expected call of ExistsForEthereumAddress.

func (*MockAssetsMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockAssetsMockRecorder) IsEnabled

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

IsEnabled indicates an expected call of IsEnabled.

func (*MockAssetsMockRecorder) NewAsset

func (mr *MockAssetsMockRecorder) NewAsset(arg0, arg1, arg2 interface{}) *gomock.Call

NewAsset indicates an expected call of NewAsset.

func (*MockAssetsMockRecorder) SetPendingListing

func (mr *MockAssetsMockRecorder) SetPendingListing(arg0, arg1 interface{}) *gomock.Call

SetPendingListing indicates an expected call of SetPendingListing.

func (*MockAssetsMockRecorder) SetRejected

func (mr *MockAssetsMockRecorder) SetRejected(arg0, arg1 interface{}) *gomock.Call

SetRejected indicates an expected call of SetRejected.

func (*MockAssetsMockRecorder) ValidateAsset

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

ValidateAsset indicates an expected call of ValidateAsset.

type MockMarkets

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

MockMarkets is a mock of Markets interface.

func NewMockMarkets

func NewMockMarkets(ctrl *gomock.Controller) *MockMarkets

NewMockMarkets creates a new mock instance.

func (*MockMarkets) EXPECT

func (m *MockMarkets) EXPECT() *MockMarketsMockRecorder

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

func (*MockMarkets) GetEquityLikeShareForMarketAndParty

func (m *MockMarkets) GetEquityLikeShareForMarketAndParty(arg0, arg1 string) (decimal.Decimal, bool)

GetEquityLikeShareForMarketAndParty mocks base method.

func (*MockMarkets) GetMarket

func (m *MockMarkets) GetMarket(arg0 string) (types.Market, bool)

GetMarket mocks base method.

func (*MockMarkets) GetMarketState

func (m *MockMarkets) GetMarketState(arg0 string) (vega.Market_State, error)

GetMarketState mocks base method.

func (*MockMarkets) MarketExists

func (m *MockMarkets) MarketExists(arg0 string) bool

MarketExists mocks base method.

func (*MockMarkets) RestoreMarket

func (m *MockMarkets) RestoreMarket(arg0 context.Context, arg1 *types.Market) error

RestoreMarket mocks base method.

func (*MockMarkets) StartOpeningAuction

func (m *MockMarkets) StartOpeningAuction(arg0 context.Context, arg1 string) error

StartOpeningAuction mocks base method.

func (*MockMarkets) UpdateMarket

func (m *MockMarkets) UpdateMarket(arg0 context.Context, arg1 *types.Market) error

UpdateMarket mocks base method.

type MockMarketsMockRecorder

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

MockMarketsMockRecorder is the mock recorder for MockMarkets.

func (*MockMarketsMockRecorder) GetEquityLikeShareForMarketAndParty

func (mr *MockMarketsMockRecorder) GetEquityLikeShareForMarketAndParty(arg0, arg1 interface{}) *gomock.Call

GetEquityLikeShareForMarketAndParty indicates an expected call of GetEquityLikeShareForMarketAndParty.

func (*MockMarketsMockRecorder) GetMarket

func (mr *MockMarketsMockRecorder) GetMarket(arg0 interface{}) *gomock.Call

GetMarket indicates an expected call of GetMarket.

func (*MockMarketsMockRecorder) GetMarketState

func (mr *MockMarketsMockRecorder) GetMarketState(arg0 interface{}) *gomock.Call

GetMarketState indicates an expected call of GetMarketState.

func (*MockMarketsMockRecorder) MarketExists

func (mr *MockMarketsMockRecorder) MarketExists(arg0 interface{}) *gomock.Call

MarketExists indicates an expected call of MarketExists.

func (*MockMarketsMockRecorder) RestoreMarket

func (mr *MockMarketsMockRecorder) RestoreMarket(arg0, arg1 interface{}) *gomock.Call

RestoreMarket indicates an expected call of RestoreMarket.

func (*MockMarketsMockRecorder) StartOpeningAuction

func (mr *MockMarketsMockRecorder) StartOpeningAuction(arg0, arg1 interface{}) *gomock.Call

StartOpeningAuction indicates an expected call of StartOpeningAuction.

func (*MockMarketsMockRecorder) UpdateMarket

func (mr *MockMarketsMockRecorder) UpdateMarket(arg0, arg1 interface{}) *gomock.Call

UpdateMarket indicates an expected call of UpdateMarket.

type MockNetParams

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

MockNetParams is a mock of NetParams interface.

func NewMockNetParams

func NewMockNetParams(ctrl *gomock.Controller) *MockNetParams

NewMockNetParams creates a new mock instance.

func (*MockNetParams) EXPECT

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

func (*MockNetParams) Get

func (m *MockNetParams) Get(arg0 string) (string, error)

Get mocks base method.

func (*MockNetParams) GetDecimal

func (m *MockNetParams) GetDecimal(arg0 string) (decimal.Decimal, error)

GetDecimal mocks base method.

func (*MockNetParams) GetDuration

func (m *MockNetParams) GetDuration(arg0 string) (time.Duration, error)

GetDuration mocks base method.

func (*MockNetParams) GetInt

func (m *MockNetParams) GetInt(arg0 string) (int64, error)

GetInt mocks base method.

func (*MockNetParams) GetJSONStruct

func (m *MockNetParams) GetJSONStruct(arg0 string, arg1 netparams.Reset) error

GetJSONStruct mocks base method.

func (*MockNetParams) GetUint

func (m *MockNetParams) GetUint(arg0 string) (*num.Uint, error)

GetUint mocks base method.

func (*MockNetParams) Update

func (m *MockNetParams) Update(arg0 context.Context, arg1, arg2 string) error

Update mocks base method.

func (*MockNetParams) Validate

func (m *MockNetParams) Validate(arg0, arg1 string) error

Validate mocks base method.

type MockNetParamsMockRecorder

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

MockNetParamsMockRecorder is the mock recorder for MockNetParams.

func (*MockNetParamsMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockNetParamsMockRecorder) GetDecimal

func (mr *MockNetParamsMockRecorder) GetDecimal(arg0 interface{}) *gomock.Call

GetDecimal indicates an expected call of GetDecimal.

func (*MockNetParamsMockRecorder) GetDuration

func (mr *MockNetParamsMockRecorder) GetDuration(arg0 interface{}) *gomock.Call

GetDuration indicates an expected call of GetDuration.

func (*MockNetParamsMockRecorder) GetInt

func (mr *MockNetParamsMockRecorder) GetInt(arg0 interface{}) *gomock.Call

GetInt indicates an expected call of GetInt.

func (*MockNetParamsMockRecorder) GetJSONStruct

func (mr *MockNetParamsMockRecorder) GetJSONStruct(arg0, arg1 interface{}) *gomock.Call

GetJSONStruct indicates an expected call of GetJSONStruct.

func (*MockNetParamsMockRecorder) GetUint

func (mr *MockNetParamsMockRecorder) GetUint(arg0 interface{}) *gomock.Call

GetUint indicates an expected call of GetUint.

func (*MockNetParamsMockRecorder) Update

func (mr *MockNetParamsMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockNetParamsMockRecorder) Validate

func (mr *MockNetParamsMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate.

type MockStakingAccounts

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

MockStakingAccounts is a mock of StakingAccounts interface.

func NewMockStakingAccounts

func NewMockStakingAccounts(ctrl *gomock.Controller) *MockStakingAccounts

NewMockStakingAccounts creates a new mock instance.

func (*MockStakingAccounts) EXPECT

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

func (*MockStakingAccounts) GetAvailableBalance

func (m *MockStakingAccounts) GetAvailableBalance(arg0 string) (*num.Uint, error)

GetAvailableBalance mocks base method.

func (*MockStakingAccounts) GetStakingAssetTotalSupply

func (m *MockStakingAccounts) GetStakingAssetTotalSupply() *num.Uint

GetStakingAssetTotalSupply mocks base method.

type MockStakingAccountsMockRecorder

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

MockStakingAccountsMockRecorder is the mock recorder for MockStakingAccounts.

func (*MockStakingAccountsMockRecorder) GetAvailableBalance

func (mr *MockStakingAccountsMockRecorder) GetAvailableBalance(arg0 interface{}) *gomock.Call

GetAvailableBalance indicates an expected call of GetAvailableBalance.

func (*MockStakingAccountsMockRecorder) GetStakingAssetTotalSupply

func (mr *MockStakingAccountsMockRecorder) GetStakingAssetTotalSupply() *gomock.Call

GetStakingAssetTotalSupply indicates an expected call of GetStakingAssetTotalSupply.

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.

type MockWitness

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

MockWitness is a mock of Witness interface.

func NewMockWitness

func NewMockWitness(ctrl *gomock.Controller) *MockWitness

NewMockWitness creates a new mock instance.

func (*MockWitness) EXPECT

func (m *MockWitness) EXPECT() *MockWitnessMockRecorder

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

func (*MockWitness) RestoreResource

func (m *MockWitness) RestoreResource(arg0 validators.Resource, arg1 func(interface{}, bool)) error

RestoreResource mocks base method.

func (*MockWitness) StartCheck

func (m *MockWitness) StartCheck(arg0 validators.Resource, arg1 func(interface{}, bool), arg2 time.Time) error

StartCheck mocks base method.

type MockWitnessMockRecorder

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

MockWitnessMockRecorder is the mock recorder for MockWitness.

func (*MockWitnessMockRecorder) RestoreResource

func (mr *MockWitnessMockRecorder) RestoreResource(arg0, arg1 interface{}) *gomock.Call

RestoreResource indicates an expected call of RestoreResource.

func (*MockWitnessMockRecorder) StartCheck

func (mr *MockWitnessMockRecorder) StartCheck(arg0, arg1, arg2 interface{}) *gomock.Call

StartCheck indicates an expected call of StartCheck.

Jump to

Keyboard shortcuts

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