Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockAssets
- type MockAssetsMockRecorder
- type MockCollateral
- func (m *MockCollateral) Deposit(arg0 context.Context, arg1, arg2 string, arg3 *num.Uint) (*types.LedgerMovement, error)
- func (m *MockCollateral) EXPECT() *MockCollateralMockRecorder
- func (m *MockCollateral) EnableAsset(arg0 context.Context, arg1 types.Asset) error
- func (m *MockCollateral) GetPartyGeneralAccount(arg0, arg1 string) (*types.Account, error)
- func (m *MockCollateral) PropagateAssetUpdate(arg0 context.Context, arg1 types.Asset) error
- func (m *MockCollateral) TransferFunds(arg0 context.Context, arg1 []*types.Transfer, arg2 []zeta.AccountType, ...) ([]*types.LedgerMovement, error)
- func (m *MockCollateral) Withdraw(arg0 context.Context, arg1, arg2 string, arg3 *num.Uint) (*types.LedgerMovement, error)
- type MockCollateralMockRecorder
- func (mr *MockCollateralMockRecorder) Deposit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) EnableAsset(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) GetPartyGeneralAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) PropagateAssetUpdate(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) TransferFunds(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockCollateralMockRecorder) Withdraw(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockERC20BridgeView
- func (m *MockERC20BridgeView) EXPECT() *MockERC20BridgeViewMockRecorder
- func (m *MockERC20BridgeView) FindAssetLimitsUpdated(arg0 *types.ERC20AssetLimitsUpdated, arg1, arg2 uint64, arg3 string) error
- func (m *MockERC20BridgeView) FindAssetList(arg0 *types.ERC20AssetList, arg1, arg2 uint64) error
- func (m *MockERC20BridgeView) FindBridgeResumed(arg0 *types.ERC20EventBridgeResumed, arg1, arg2 uint64) error
- func (m *MockERC20BridgeView) FindBridgeStopped(arg0 *types.ERC20EventBridgeStopped, arg1, arg2 uint64) error
- func (m *MockERC20BridgeView) FindDeposit(arg0 *types.ERC20Deposit, arg1, arg2 uint64, arg3 string) error
- type MockERC20BridgeViewMockRecorder
- func (mr *MockERC20BridgeViewMockRecorder) FindAssetLimitsUpdated(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockERC20BridgeViewMockRecorder) FindAssetList(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockERC20BridgeViewMockRecorder) FindBridgeResumed(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockERC20BridgeViewMockRecorder) FindBridgeStopped(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockERC20BridgeViewMockRecorder) FindDeposit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockEpochService
- type MockEpochServiceMockRecorder
- type MockMarketActivityTracker
- func (m *MockMarketActivityTracker) EXPECT() *MockMarketActivityTrackerMockRecorder
- func (m *MockMarketActivityTracker) GetMarketScores(arg0 string, arg1 []string, arg2 zeta.DispatchMetric) []*types.MarketContributionScore
- func (m *MockMarketActivityTracker) GetMarketsWithEligibleProposer(arg0 string, arg1 []string, arg2, arg3 string) []*types.MarketContributionScore
- func (m *MockMarketActivityTracker) MarkPaidProposer(arg0, arg1 string, arg2 []string, arg3 string)
- type MockMarketActivityTrackerMockRecorder
- func (mr *MockMarketActivityTrackerMockRecorder) GetMarketScores(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockMarketActivityTrackerMockRecorder) GetMarketsWithEligibleProposer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockMarketActivityTrackerMockRecorder) MarkPaidProposer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockNotary
- func (m *MockNotary) EXPECT() *MockNotaryMockRecorder
- func (m *MockNotary) IsSigned(arg0 context.Context, arg1 string, arg2 v1.NodeSignatureKind) ([]v1.NodeSignature, bool)
- func (m *MockNotary) OfferSignatures(arg0 v1.NodeSignatureKind, arg1 func(string) []byte)
- func (m *MockNotary) StartAggregate(arg0 string, arg1 v1.NodeSignatureKind, arg2 []byte)
- type MockNotaryMockRecorder
- type MockTimeService
- type MockTimeServiceMockRecorder
- type MockTopology
- type MockTopologyMockRecorder
- type MockWitness
- type MockWitnessMockRecorder
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.
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 ¶
func (m *MockCollateral) EXPECT() *MockCollateralMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCollateral) EnableAsset ¶
EnableAsset mocks base method.
func (*MockCollateral) GetPartyGeneralAccount ¶
func (m *MockCollateral) GetPartyGeneralAccount(arg0, arg1 string) (*types.Account, error)
GetPartyGeneralAccount mocks base method.
func (*MockCollateral) PropagateAssetUpdate ¶
PropagateAssetUpdate mocks base method.
func (*MockCollateral) TransferFunds ¶
func (m *MockCollateral) TransferFunds(arg0 context.Context, arg1 []*types.Transfer, arg2 []zeta.AccountType, arg3 []string, arg4 []*types.Transfer, arg5 []zeta.AccountType) ([]*types.LedgerMovement, error)
TransferFunds 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) 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 ¶
func (m *MockERC20BridgeView) EXPECT() *MockERC20BridgeViewMockRecorder
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 string) error
FindAssetLimitsUpdated mocks base method.
func (*MockERC20BridgeView) FindAssetList ¶
func (m *MockERC20BridgeView) FindAssetList(arg0 *types.ERC20AssetList, arg1, arg2 uint64) error
FindAssetList mocks base method.
func (*MockERC20BridgeView) FindBridgeResumed ¶
func (m *MockERC20BridgeView) FindBridgeResumed(arg0 *types.ERC20EventBridgeResumed, arg1, arg2 uint64) error
FindBridgeResumed mocks base method.
func (*MockERC20BridgeView) FindBridgeStopped ¶
func (m *MockERC20BridgeView) FindBridgeStopped(arg0 *types.ERC20EventBridgeStopped, arg1, arg2 uint64) error
FindBridgeStopped mocks base method.
func (*MockERC20BridgeView) FindDeposit ¶
func (m *MockERC20BridgeView) FindDeposit(arg0 *types.ERC20Deposit, arg1, arg2 uint64, arg3 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 interface{}) *gomock.Call
FindAssetLimitsUpdated indicates an expected call of FindAssetLimitsUpdated.
func (*MockERC20BridgeViewMockRecorder) FindAssetList ¶
func (mr *MockERC20BridgeViewMockRecorder) FindAssetList(arg0, arg1, arg2 interface{}) *gomock.Call
FindAssetList indicates an expected call of FindAssetList.
func (*MockERC20BridgeViewMockRecorder) FindBridgeResumed ¶
func (mr *MockERC20BridgeViewMockRecorder) FindBridgeResumed(arg0, arg1, arg2 interface{}) *gomock.Call
FindBridgeResumed indicates an expected call of FindBridgeResumed.
func (*MockERC20BridgeViewMockRecorder) FindBridgeStopped ¶
func (mr *MockERC20BridgeViewMockRecorder) FindBridgeStopped(arg0, arg1, arg2 interface{}) *gomock.Call
FindBridgeStopped indicates an expected call of FindBridgeStopped.
func (*MockERC20BridgeViewMockRecorder) FindDeposit ¶
func (mr *MockERC20BridgeViewMockRecorder) FindDeposit(arg0, arg1, arg2, arg3 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 ¶
func (m *MockEpochService) EXPECT() *MockEpochServiceMockRecorder
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 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) EXPECT ¶
func (m *MockMarketActivityTracker) EXPECT() *MockMarketActivityTrackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMarketActivityTracker) GetMarketScores ¶
func (m *MockMarketActivityTracker) GetMarketScores(arg0 string, arg1 []string, arg2 zeta.DispatchMetric) []*types.MarketContributionScore
GetMarketScores mocks base method.
func (*MockMarketActivityTracker) GetMarketsWithEligibleProposer ¶
func (m *MockMarketActivityTracker) GetMarketsWithEligibleProposer(arg0 string, arg1 []string, arg2, arg3 string) []*types.MarketContributionScore
GetMarketsWithEligibleProposer mocks base method.
func (*MockMarketActivityTracker) MarkPaidProposer ¶
func (m *MockMarketActivityTracker) MarkPaidProposer(arg0, arg1 string, arg2 []string, arg3 string)
MarkPaidProposer mocks base method.
type MockMarketActivityTrackerMockRecorder ¶
type MockMarketActivityTrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockMarketActivityTrackerMockRecorder is the mock recorder for MockMarketActivityTracker.
func (*MockMarketActivityTrackerMockRecorder) GetMarketScores ¶
func (mr *MockMarketActivityTrackerMockRecorder) GetMarketScores(arg0, arg1, arg2 interface{}) *gomock.Call
GetMarketScores indicates an expected call of GetMarketScores.
func (*MockMarketActivityTrackerMockRecorder) GetMarketsWithEligibleProposer ¶
func (mr *MockMarketActivityTrackerMockRecorder) GetMarketsWithEligibleProposer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetMarketsWithEligibleProposer indicates an expected call of GetMarketsWithEligibleProposer.
func (*MockMarketActivityTrackerMockRecorder) MarkPaidProposer ¶
func (mr *MockMarketActivityTrackerMockRecorder) MarkPaidProposer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
MarkPaidProposer indicates an expected call of MarkPaidProposer.
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 ¶
func (m *MockTimeService) EXPECT() *MockTimeServiceMockRecorder
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 ¶
func (m *MockTopology) EXPECT() *MockTopologyMockRecorder
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.