mocks

package
v0.74.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: AGPL-3.0 Imports: 10 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) ApplyAssetUpdate

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

ApplyAssetUpdate mocks base method.

func (*MockAssets) EXPECT

func (m *MockAssets) EXPECT() *MockAssetsMockRecorder

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

func (*MockAssets) Enable

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

Enable mocks base method.

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

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

ApplyAssetUpdate indicates an expected call of ApplyAssetUpdate.

func (*MockAssetsMockRecorder) Enable

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

Enable indicates an expected call of Enable.

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

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

GetPartyGeneralAccount mocks base method.

func (*MockCollateral) GetPartyVestedRewardAccount added in v0.73.0

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

GetPartyVestedRewardAccount mocks base method.

func (*MockCollateral) GetSystemAccountBalance added in v0.72.0

func (m *MockCollateral) GetSystemAccountBalance(arg0, arg1 string, arg2 vega.AccountType) (*num.Uint, error)

GetSystemAccountBalance mocks base method.

func (*MockCollateral) GovernanceTransferFunds added in v0.72.0

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

GovernanceTransferFunds mocks base method.

func (*MockCollateral) PropagateAssetUpdate

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

PropagateAssetUpdate mocks base method.

func (*MockCollateral) TransferFunds

func (m *MockCollateral) TransferFunds(arg0 context.Context, arg1 []*types.Transfer, arg2 []vega.AccountType, arg3 []string, arg4 []*types.Transfer, arg5 []vega.AccountType) ([]*types.LedgerMovement, error)

TransferFunds 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) 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) GetPartyGeneralAccount

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

GetPartyGeneralAccount indicates an expected call of GetPartyGeneralAccount.

func (*MockCollateralMockRecorder) GetPartyVestedRewardAccount added in v0.73.0

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

GetPartyVestedRewardAccount indicates an expected call of GetPartyVestedRewardAccount.

func (*MockCollateralMockRecorder) GetSystemAccountBalance added in v0.72.0

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

GetSystemAccountBalance indicates an expected call of GetSystemAccountBalance.

func (*MockCollateralMockRecorder) GovernanceTransferFunds added in v0.72.0

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

GovernanceTransferFunds indicates an expected call of GovernanceTransferFunds.

func (*MockCollateralMockRecorder) PropagateAssetUpdate

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

PropagateAssetUpdate indicates an expected call of PropagateAssetUpdate.

func (*MockCollateralMockRecorder) TransferFunds

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

TransferFunds indicates an expected call of TransferFunds.

func (*MockCollateralMockRecorder) Withdraw

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

Withdraw indicates an expected call of Withdraw.

type MockERC20BridgeView

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

MockERC20BridgeView is a mock of ERC20BridgeView interface.

func NewMockERC20BridgeView

func NewMockERC20BridgeView(ctrl *gomock.Controller) *MockERC20BridgeView

NewMockERC20BridgeView creates a new mock instance.

func (*MockERC20BridgeView) EXPECT

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

func (*MockERC20BridgeView) FindAssetLimitsUpdated

func (m *MockERC20BridgeView) FindAssetLimitsUpdated(arg0 *types.ERC20AssetLimitsUpdated, arg1, arg2 uint64, arg3, arg4 string) error

FindAssetLimitsUpdated mocks base method.

func (*MockERC20BridgeView) FindAssetList

func (m *MockERC20BridgeView) FindAssetList(arg0 *types.ERC20AssetList, arg1, arg2 uint64, arg3 string) error

FindAssetList mocks base method.

func (*MockERC20BridgeView) FindBridgeResumed

func (m *MockERC20BridgeView) FindBridgeResumed(arg0 *types.ERC20EventBridgeResumed, arg1, arg2 uint64, arg3 string) error

FindBridgeResumed mocks base method.

func (*MockERC20BridgeView) FindBridgeStopped

func (m *MockERC20BridgeView) FindBridgeStopped(arg0 *types.ERC20EventBridgeStopped, arg1, arg2 uint64, arg3 string) error

FindBridgeStopped mocks base method.

func (*MockERC20BridgeView) FindDeposit

func (m *MockERC20BridgeView) FindDeposit(arg0 *types.ERC20Deposit, arg1, arg2 uint64, arg3, arg4 string) error

FindDeposit mocks base method.

type MockERC20BridgeViewMockRecorder

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

MockERC20BridgeViewMockRecorder is the mock recorder for MockERC20BridgeView.

func (*MockERC20BridgeViewMockRecorder) FindAssetLimitsUpdated

func (mr *MockERC20BridgeViewMockRecorder) FindAssetLimitsUpdated(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

FindAssetLimitsUpdated indicates an expected call of FindAssetLimitsUpdated.

func (*MockERC20BridgeViewMockRecorder) FindAssetList

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

FindAssetList indicates an expected call of FindAssetList.

func (*MockERC20BridgeViewMockRecorder) FindBridgeResumed

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

FindBridgeResumed indicates an expected call of FindBridgeResumed.

func (*MockERC20BridgeViewMockRecorder) FindBridgeStopped

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

FindBridgeStopped indicates an expected call of FindBridgeStopped.

func (*MockERC20BridgeViewMockRecorder) FindDeposit

func (mr *MockERC20BridgeViewMockRecorder) FindDeposit(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

FindDeposit indicates an expected call of FindDeposit.

type MockEpochService

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

MockEpochService is a mock of EpochService interface.

func NewMockEpochService

func NewMockEpochService(ctrl *gomock.Controller) *MockEpochService

NewMockEpochService creates a new mock instance.

func (*MockEpochService) EXPECT

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

func (*MockEpochService) NotifyOnEpoch

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

NotifyOnEpoch mocks base method.

type MockEpochServiceMockRecorder

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

MockEpochServiceMockRecorder is the mock recorder for MockEpochService.

func (*MockEpochServiceMockRecorder) NotifyOnEpoch

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

NotifyOnEpoch indicates an expected call of NotifyOnEpoch.

type MockEthereumEventSource added in v0.69.0

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

MockEthereumEventSource is a mock of EthereumEventSource interface.

func NewMockEthereumEventSource added in v0.69.0

func NewMockEthereumEventSource(ctrl *gomock.Controller) *MockEthereumEventSource

NewMockEthereumEventSource creates a new mock instance.

func (*MockEthereumEventSource) EXPECT added in v0.69.0

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

func (*MockEthereumEventSource) UpdateCollateralStartingBlock added in v0.69.0

func (m *MockEthereumEventSource) UpdateCollateralStartingBlock(arg0 uint64)

UpdateCollateralStartingBlock mocks base method.

type MockEthereumEventSourceMockRecorder added in v0.69.0

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

MockEthereumEventSourceMockRecorder is the mock recorder for MockEthereumEventSource.

func (*MockEthereumEventSourceMockRecorder) UpdateCollateralStartingBlock added in v0.69.0

func (mr *MockEthereumEventSourceMockRecorder) UpdateCollateralStartingBlock(arg0 interface{}) *gomock.Call

UpdateCollateralStartingBlock indicates an expected call of UpdateCollateralStartingBlock.

type MockMarketActivityTracker

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

MockMarketActivityTracker is a mock of MarketActivityTracker interface.

func NewMockMarketActivityTracker

func NewMockMarketActivityTracker(ctrl *gomock.Controller) *MockMarketActivityTracker

NewMockMarketActivityTracker creates a new mock instance.

func (*MockMarketActivityTracker) CalculateMetricForIndividuals added in v0.73.0

func (m *MockMarketActivityTracker) CalculateMetricForIndividuals(arg0 *vega.DispatchStrategy) []*types.PartyContributionScore

CalculateMetricForIndividuals mocks base method.

func (*MockMarketActivityTracker) CalculateMetricForTeams added in v0.73.0

CalculateMetricForTeams mocks base method.

func (*MockMarketActivityTracker) EXPECT

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

func (*MockMarketActivityTracker) GetMarketsWithEligibleProposer

func (m *MockMarketActivityTracker) GetMarketsWithEligibleProposer(arg0 string, arg1 []string, arg2, arg3 string) []*types.MarketContributionScore

GetMarketsWithEligibleProposer mocks base method.

func (*MockMarketActivityTracker) MarkPaidProposer added in v0.55.0

func (m *MockMarketActivityTracker) MarkPaidProposer(arg0, arg1, arg2 string, arg3 []string, arg4 string)

MarkPaidProposer mocks base method.

func (*MockMarketActivityTracker) MarketTrackedForAsset added in v0.73.0

func (m *MockMarketActivityTracker) MarketTrackedForAsset(arg0, arg1 string) bool

MarketTrackedForAsset mocks base method.

func (*MockMarketActivityTracker) TeamStatsForMarkets added in v0.74.0

func (m *MockMarketActivityTracker) TeamStatsForMarkets(arg0, arg1 []string) map[string]map[string]*num.Uint

TeamStatsForMarkets mocks base method.

type MockMarketActivityTrackerMockRecorder

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

MockMarketActivityTrackerMockRecorder is the mock recorder for MockMarketActivityTracker.

func (*MockMarketActivityTrackerMockRecorder) CalculateMetricForIndividuals added in v0.73.0

func (mr *MockMarketActivityTrackerMockRecorder) CalculateMetricForIndividuals(arg0 interface{}) *gomock.Call

CalculateMetricForIndividuals indicates an expected call of CalculateMetricForIndividuals.

func (*MockMarketActivityTrackerMockRecorder) CalculateMetricForTeams added in v0.73.0

func (mr *MockMarketActivityTrackerMockRecorder) CalculateMetricForTeams(arg0 interface{}) *gomock.Call

CalculateMetricForTeams indicates an expected call of CalculateMetricForTeams.

func (*MockMarketActivityTrackerMockRecorder) GetMarketsWithEligibleProposer

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

GetMarketsWithEligibleProposer indicates an expected call of GetMarketsWithEligibleProposer.

func (*MockMarketActivityTrackerMockRecorder) MarkPaidProposer added in v0.55.0

func (mr *MockMarketActivityTrackerMockRecorder) MarkPaidProposer(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

MarkPaidProposer indicates an expected call of MarkPaidProposer.

func (*MockMarketActivityTrackerMockRecorder) MarketTrackedForAsset added in v0.73.0

func (mr *MockMarketActivityTrackerMockRecorder) MarketTrackedForAsset(arg0, arg1 interface{}) *gomock.Call

MarketTrackedForAsset indicates an expected call of MarketTrackedForAsset.

func (*MockMarketActivityTrackerMockRecorder) TeamStatsForMarkets added in v0.74.0

func (mr *MockMarketActivityTrackerMockRecorder) TeamStatsForMarkets(arg0, arg1 interface{}) *gomock.Call

TeamStatsForMarkets indicates an expected call of TeamStatsForMarkets.

type MockNotary

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

MockNotary is a mock of Notary interface.

func NewMockNotary

func NewMockNotary(ctrl *gomock.Controller) *MockNotary

NewMockNotary creates a new mock instance.

func (*MockNotary) EXPECT

func (m *MockNotary) EXPECT() *MockNotaryMockRecorder

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

func (*MockNotary) IsSigned

func (m *MockNotary) IsSigned(arg0 context.Context, arg1 string, arg2 v1.NodeSignatureKind) ([]v1.NodeSignature, bool)

IsSigned mocks base method.

func (*MockNotary) OfferSignatures

func (m *MockNotary) OfferSignatures(arg0 v1.NodeSignatureKind, arg1 func(string) []byte)

OfferSignatures mocks base method.

func (*MockNotary) StartAggregate

func (m *MockNotary) StartAggregate(arg0 string, arg1 v1.NodeSignatureKind, arg2 []byte)

StartAggregate mocks base method.

type MockNotaryMockRecorder

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

MockNotaryMockRecorder is the mock recorder for MockNotary.

func (*MockNotaryMockRecorder) IsSigned

func (mr *MockNotaryMockRecorder) IsSigned(arg0, arg1, arg2 interface{}) *gomock.Call

IsSigned indicates an expected call of IsSigned.

func (*MockNotaryMockRecorder) OfferSignatures

func (mr *MockNotaryMockRecorder) OfferSignatures(arg0, arg1 interface{}) *gomock.Call

OfferSignatures indicates an expected call of OfferSignatures.

func (*MockNotaryMockRecorder) StartAggregate

func (mr *MockNotaryMockRecorder) StartAggregate(arg0, arg1, arg2 interface{}) *gomock.Call

StartAggregate indicates an expected call of StartAggregate.

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 MockTopology

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

MockTopology is a mock of Topology interface.

func NewMockTopology

func NewMockTopology(ctrl *gomock.Controller) *MockTopology

NewMockTopology creates a new mock instance.

func (*MockTopology) EXPECT

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

func (*MockTopology) IsValidator

func (m *MockTopology) IsValidator() bool

IsValidator mocks base method.

type MockTopologyMockRecorder

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

MockTopologyMockRecorder is the mock recorder for MockTopology.

func (*MockTopologyMockRecorder) IsValidator

func (mr *MockTopologyMockRecorder) IsValidator() *gomock.Call

IsValidator indicates an expected call of IsValidator.

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