mocks

package
v0.73.9 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: AGPL-3.0 Imports: 12 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 MockCommander

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

MockCommander is a mock of Commander interface.

func NewMockCommander

func NewMockCommander(ctrl *gomock.Controller) *MockCommander

NewMockCommander creates a new mock instance.

func (*MockCommander) Command

func (m *MockCommander) Command(arg0 context.Context, arg1 txn.Command, arg2 protoiface.MessageV1, arg3 func(string, error), arg4 *backoff.ExponentialBackOff)

Command mocks base method.

func (*MockCommander) CommandSync

func (m *MockCommander) CommandSync(arg0 context.Context, arg1 txn.Command, arg2 protoiface.MessageV1, arg3 func(string, error), arg4 *backoff.ExponentialBackOff)

CommandSync mocks base method.

func (*MockCommander) EXPECT

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

type MockCommanderMockRecorder

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

MockCommanderMockRecorder is the mock recorder for MockCommander.

func (*MockCommanderMockRecorder) Command

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

Command indicates an expected call of Command.

func (*MockCommanderMockRecorder) CommandSync

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

CommandSync indicates an expected call of CommandSync.

type MockMultiSigTopology added in v0.55.0

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

MockMultiSigTopology is a mock of MultiSigTopology interface.

func NewMockMultiSigTopology added in v0.55.0

func NewMockMultiSigTopology(ctrl *gomock.Controller) *MockMultiSigTopology

NewMockMultiSigTopology creates a new mock instance.

func (*MockMultiSigTopology) EXPECT added in v0.55.0

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

func (*MockMultiSigTopology) ExcessSigners added in v0.55.0

func (m *MockMultiSigTopology) ExcessSigners(arg0 []string) bool

ExcessSigners mocks base method.

func (*MockMultiSigTopology) GetSigners added in v0.67.0

func (m *MockMultiSigTopology) GetSigners() []string

GetSigners mocks base method.

func (*MockMultiSigTopology) GetThreshold added in v0.67.0

func (m *MockMultiSigTopology) GetThreshold() uint32

GetThreshold mocks base method.

func (*MockMultiSigTopology) IsSigner added in v0.55.0

func (m *MockMultiSigTopology) IsSigner(arg0 string) bool

IsSigner mocks base method.

type MockMultiSigTopologyMockRecorder added in v0.55.0

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

MockMultiSigTopologyMockRecorder is the mock recorder for MockMultiSigTopology.

func (*MockMultiSigTopologyMockRecorder) ExcessSigners added in v0.55.0

func (mr *MockMultiSigTopologyMockRecorder) ExcessSigners(arg0 interface{}) *gomock.Call

ExcessSigners indicates an expected call of ExcessSigners.

func (*MockMultiSigTopologyMockRecorder) GetSigners added in v0.67.0

func (mr *MockMultiSigTopologyMockRecorder) GetSigners() *gomock.Call

GetSigners indicates an expected call of GetSigners.

func (*MockMultiSigTopologyMockRecorder) GetThreshold added in v0.67.0

func (mr *MockMultiSigTopologyMockRecorder) GetThreshold() *gomock.Call

GetThreshold indicates an expected call of GetThreshold.

func (*MockMultiSigTopologyMockRecorder) IsSigner added in v0.55.0

func (mr *MockMultiSigTopologyMockRecorder) IsSigner(arg0 interface{}) *gomock.Call

IsSigner indicates an expected call of IsSigner.

type MockNodeWallets

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

MockNodeWallets is a mock of NodeWallets interface.

func NewMockNodeWallets

func NewMockNodeWallets(ctrl *gomock.Controller) *MockNodeWallets

NewMockNodeWallets creates a new mock instance.

func (*MockNodeWallets) EXPECT

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

func (*MockNodeWallets) GetEthereum

func (m *MockNodeWallets) GetEthereum() validators.Signer

GetEthereum mocks base method.

func (*MockNodeWallets) GetEthereumAddress

func (m *MockNodeWallets) GetEthereumAddress() string

GetEthereumAddress mocks base method.

func (*MockNodeWallets) GetTendermintPubkey

func (m *MockNodeWallets) GetTendermintPubkey() string

GetTendermintPubkey mocks base method.

func (*MockNodeWallets) GetVega

func (m *MockNodeWallets) GetVega() validators.Wallet

GetVega mocks base method.

type MockNodeWalletsMockRecorder

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

MockNodeWalletsMockRecorder is the mock recorder for MockNodeWallets.

func (*MockNodeWalletsMockRecorder) GetEthereum

func (mr *MockNodeWalletsMockRecorder) GetEthereum() *gomock.Call

GetEthereum indicates an expected call of GetEthereum.

func (*MockNodeWalletsMockRecorder) GetEthereumAddress

func (mr *MockNodeWalletsMockRecorder) GetEthereumAddress() *gomock.Call

GetEthereumAddress indicates an expected call of GetEthereumAddress.

func (*MockNodeWalletsMockRecorder) GetTendermintPubkey

func (mr *MockNodeWalletsMockRecorder) GetTendermintPubkey() *gomock.Call

GetTendermintPubkey indicates an expected call of GetTendermintPubkey.

func (*MockNodeWalletsMockRecorder) GetVega

func (mr *MockNodeWalletsMockRecorder) GetVega() *gomock.Call

GetVega indicates an expected call of GetVega.

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 MockSignatures

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

MockSignatures is a mock of Signatures interface.

func NewMockSignatures

func NewMockSignatures(ctrl *gomock.Controller) *MockSignatures

NewMockSignatures creates a new mock instance.

func (*MockSignatures) ClearStaleSignatures added in v0.55.0

func (m *MockSignatures) ClearStaleSignatures()

ClearStaleSignatures mocks base method.

func (*MockSignatures) EXPECT

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

func (*MockSignatures) EmitValidatorAddedSignatures added in v0.55.0

func (m *MockSignatures) EmitValidatorAddedSignatures(arg0 context.Context, arg1, arg2 string, arg3 time.Time) error

EmitValidatorAddedSignatures mocks base method.

func (*MockSignatures) EmitValidatorRemovedSignatures added in v0.55.0

func (m *MockSignatures) EmitValidatorRemovedSignatures(arg0 context.Context, arg1, arg2 string, arg3 time.Time) error

EmitValidatorRemovedSignatures mocks base method.

func (*MockSignatures) OfferSignatures added in v0.71.0

func (m *MockSignatures) OfferSignatures()

OfferSignatures mocks base method.

func (*MockSignatures) PreparePromotionsSignatures added in v0.55.0

func (m *MockSignatures) PreparePromotionsSignatures(arg0 context.Context, arg1 time.Time, arg2 uint64, arg3, arg4 map[string]validators.StatusAddress)

PreparePromotionsSignatures mocks base method.

func (*MockSignatures) PrepareValidatorSignatures added in v0.55.0

func (m *MockSignatures) PrepareValidatorSignatures(arg0 context.Context, arg1 []validators.NodeIDAddress, arg2 uint64, arg3 bool)

PrepareValidatorSignatures mocks base method.

func (*MockSignatures) RestorePendingSignatures added in v0.55.0

func (m *MockSignatures) RestorePendingSignatures(arg0 *v10.ToplogySignatures)

RestorePendingSignatures mocks base method.

func (*MockSignatures) SerialisePendingSignatures added in v0.55.0

func (m *MockSignatures) SerialisePendingSignatures() *v10.ToplogySignatures

SerialisePendingSignatures mocks base method.

func (*MockSignatures) SetNonce

func (m *MockSignatures) SetNonce(arg0 time.Time)

SetNonce mocks base method.

type MockSignaturesMockRecorder

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

MockSignaturesMockRecorder is the mock recorder for MockSignatures.

func (*MockSignaturesMockRecorder) ClearStaleSignatures added in v0.55.0

func (mr *MockSignaturesMockRecorder) ClearStaleSignatures() *gomock.Call

ClearStaleSignatures indicates an expected call of ClearStaleSignatures.

func (*MockSignaturesMockRecorder) EmitValidatorAddedSignatures added in v0.55.0

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

EmitValidatorAddedSignatures indicates an expected call of EmitValidatorAddedSignatures.

func (*MockSignaturesMockRecorder) EmitValidatorRemovedSignatures added in v0.55.0

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

EmitValidatorRemovedSignatures indicates an expected call of EmitValidatorRemovedSignatures.

func (*MockSignaturesMockRecorder) OfferSignatures added in v0.71.0

func (mr *MockSignaturesMockRecorder) OfferSignatures() *gomock.Call

OfferSignatures indicates an expected call of OfferSignatures.

func (*MockSignaturesMockRecorder) PreparePromotionsSignatures added in v0.55.0

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

PreparePromotionsSignatures indicates an expected call of PreparePromotionsSignatures.

func (*MockSignaturesMockRecorder) PrepareValidatorSignatures added in v0.55.0

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

PrepareValidatorSignatures indicates an expected call of PrepareValidatorSignatures.

func (*MockSignaturesMockRecorder) RestorePendingSignatures added in v0.55.0

func (mr *MockSignaturesMockRecorder) RestorePendingSignatures(arg0 interface{}) *gomock.Call

RestorePendingSignatures indicates an expected call of RestorePendingSignatures.

func (*MockSignaturesMockRecorder) SerialisePendingSignatures added in v0.55.0

func (mr *MockSignaturesMockRecorder) SerialisePendingSignatures() *gomock.Call

SerialisePendingSignatures indicates an expected call of SerialisePendingSignatures.

func (*MockSignaturesMockRecorder) SetNonce

func (mr *MockSignaturesMockRecorder) SetNonce(arg0 interface{}) *gomock.Call

SetNonce indicates an expected call of SetNonce.

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 MockValidatorPerformance

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

MockValidatorPerformance is a mock of ValidatorPerformance interface.

func NewMockValidatorPerformance

func NewMockValidatorPerformance(ctrl *gomock.Controller) *MockValidatorPerformance

NewMockValidatorPerformance creates a new mock instance.

func (*MockValidatorPerformance) BeginBlock

func (m *MockValidatorPerformance) BeginBlock(arg0 context.Context, arg1 string)

BeginBlock mocks base method.

func (*MockValidatorPerformance) Deserialize

func (m *MockValidatorPerformance) Deserialize(arg0 *v10.ValidatorPerformance)

Deserialize mocks base method.

func (*MockValidatorPerformance) EXPECT

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

func (*MockValidatorPerformance) Reset

func (m *MockValidatorPerformance) Reset()

Reset mocks base method.

func (*MockValidatorPerformance) Serialize

Serialize mocks base method.

func (*MockValidatorPerformance) ValidatorPerformanceScore

func (m *MockValidatorPerformance) ValidatorPerformanceScore(arg0 string, arg1, arg2 int64, arg3 decimal.Decimal) decimal.Decimal

ValidatorPerformanceScore mocks base method.

type MockValidatorPerformanceMockRecorder

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

MockValidatorPerformanceMockRecorder is the mock recorder for MockValidatorPerformance.

func (*MockValidatorPerformanceMockRecorder) BeginBlock

func (mr *MockValidatorPerformanceMockRecorder) BeginBlock(arg0, arg1 interface{}) *gomock.Call

BeginBlock indicates an expected call of BeginBlock.

func (*MockValidatorPerformanceMockRecorder) Deserialize

func (mr *MockValidatorPerformanceMockRecorder) Deserialize(arg0 interface{}) *gomock.Call

Deserialize indicates an expected call of Deserialize.

func (*MockValidatorPerformanceMockRecorder) Reset

Reset indicates an expected call of Reset.

func (*MockValidatorPerformanceMockRecorder) Serialize

Serialize indicates an expected call of Serialize.

func (*MockValidatorPerformanceMockRecorder) ValidatorPerformanceScore

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

ValidatorPerformanceScore indicates an expected call of ValidatorPerformanceScore.

type MockValidatorTopology

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

MockValidatorTopology is a mock of ValidatorTopology interface.

func NewMockValidatorTopology

func NewMockValidatorTopology(ctrl *gomock.Controller) *MockValidatorTopology

NewMockValidatorTopology creates a new mock instance.

func (*MockValidatorTopology) AllVegaPubKeys added in v0.71.0

func (m *MockValidatorTopology) AllVegaPubKeys() []string

AllVegaPubKeys mocks base method.

func (*MockValidatorTopology) EXPECT

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

func (*MockValidatorTopology) GetTotalVotingPower added in v0.64.0

func (m *MockValidatorTopology) GetTotalVotingPower() int64

GetTotalVotingPower mocks base method.

func (*MockValidatorTopology) GetVotingPower added in v0.64.0

func (m *MockValidatorTopology) GetVotingPower(arg0 string) int64

GetVotingPower mocks base method.

func (*MockValidatorTopology) IsTendermintValidator

func (m *MockValidatorTopology) IsTendermintValidator(arg0 string) bool

IsTendermintValidator mocks base method.

func (*MockValidatorTopology) IsValidator

func (m *MockValidatorTopology) IsValidator() bool

IsValidator mocks base method.

func (*MockValidatorTopology) IsValidatorVegaPubKey

func (m *MockValidatorTopology) IsValidatorVegaPubKey(arg0 string) bool

IsValidatorVegaPubKey mocks base method.

func (*MockValidatorTopology) SelfVegaPubKey

func (m *MockValidatorTopology) SelfVegaPubKey() string

SelfVegaPubKey mocks base method.

type MockValidatorTopologyMockRecorder

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

MockValidatorTopologyMockRecorder is the mock recorder for MockValidatorTopology.

func (*MockValidatorTopologyMockRecorder) AllVegaPubKeys added in v0.71.0

func (mr *MockValidatorTopologyMockRecorder) AllVegaPubKeys() *gomock.Call

AllVegaPubKeys indicates an expected call of AllVegaPubKeys.

func (*MockValidatorTopologyMockRecorder) GetTotalVotingPower added in v0.64.0

func (mr *MockValidatorTopologyMockRecorder) GetTotalVotingPower() *gomock.Call

GetTotalVotingPower indicates an expected call of GetTotalVotingPower.

func (*MockValidatorTopologyMockRecorder) GetVotingPower added in v0.64.0

func (mr *MockValidatorTopologyMockRecorder) GetVotingPower(arg0 interface{}) *gomock.Call

GetVotingPower indicates an expected call of GetVotingPower.

func (*MockValidatorTopologyMockRecorder) IsTendermintValidator

func (mr *MockValidatorTopologyMockRecorder) IsTendermintValidator(arg0 interface{}) *gomock.Call

IsTendermintValidator indicates an expected call of IsTendermintValidator.

func (*MockValidatorTopologyMockRecorder) IsValidator

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

IsValidator indicates an expected call of IsValidator.

func (*MockValidatorTopologyMockRecorder) IsValidatorVegaPubKey

func (mr *MockValidatorTopologyMockRecorder) IsValidatorVegaPubKey(arg0 interface{}) *gomock.Call

IsValidatorVegaPubKey indicates an expected call of IsValidatorVegaPubKey.

func (*MockValidatorTopologyMockRecorder) SelfVegaPubKey

func (mr *MockValidatorTopologyMockRecorder) SelfVegaPubKey() *gomock.Call

SelfVegaPubKey indicates an expected call of SelfVegaPubKey.

type MockWallet

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

MockWallet is a mock of Wallet interface.

func NewMockWallet

func NewMockWallet(ctrl *gomock.Controller) *MockWallet

NewMockWallet creates a new mock instance.

func (*MockWallet) Algo

func (m *MockWallet) Algo() string

Algo mocks base method.

func (*MockWallet) EXPECT

func (m *MockWallet) EXPECT() *MockWalletMockRecorder

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

func (*MockWallet) ID

func (m *MockWallet) ID() crypto.PublicKey

ID mocks base method.

func (*MockWallet) PubKey

func (m *MockWallet) PubKey() crypto.PublicKey

PubKey mocks base method.

func (*MockWallet) Sign

func (m *MockWallet) Sign(arg0 []byte) ([]byte, error)

Sign mocks base method.

type MockWalletMockRecorder

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

MockWalletMockRecorder is the mock recorder for MockWallet.

func (*MockWalletMockRecorder) Algo

func (mr *MockWalletMockRecorder) Algo() *gomock.Call

Algo indicates an expected call of Algo.

func (*MockWalletMockRecorder) ID

ID indicates an expected call of ID.

func (*MockWalletMockRecorder) PubKey

func (mr *MockWalletMockRecorder) PubKey() *gomock.Call

PubKey indicates an expected call of PubKey.

func (*MockWalletMockRecorder) Sign

func (mr *MockWalletMockRecorder) Sign(arg0 interface{}) *gomock.Call

Sign indicates an expected call of Sign.

Jump to

Keyboard shortcuts

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