Documentation ¶
Index ¶
- type NexusMock
- func (mock *NexusMock) GetChain(ctx github_com_cosmos_cosmos_sdk_types.Context, chain string) (nexus.Chain, bool)
- func (mock *NexusMock) GetChainCalls() []struct{ ... }
- func (mock *NexusMock) GetChains(ctx github_com_cosmos_cosmos_sdk_types.Context) []nexus.Chain
- func (mock *NexusMock) GetChainsCalls() []struct{ ... }
- type RewarderMock
- type SnapshotterMock
- func (mock *SnapshotterMock) GetLatestSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool)
- func (mock *SnapshotterMock) GetLatestSnapshotCalls() []struct{ ... }
- func (mock *SnapshotterMock) GetOperator(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) github_com_cosmos_cosmos_sdk_types.ValAddress
- func (mock *SnapshotterMock) GetOperatorCalls() []struct{ ... }
- func (mock *SnapshotterMock) GetProxy(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) (github_com_cosmos_cosmos_sdk_types.AccAddress, bool)
- func (mock *SnapshotterMock) GetProxyCalls() []struct{ ... }
- func (mock *SnapshotterMock) GetSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, seqNo int64) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool)
- func (mock *SnapshotterMock) GetSnapshotCalls() []struct{ ... }
- func (mock *SnapshotterMock) GetValidatorIllegibility(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.ValidatorIllegibility, ...)
- func (mock *SnapshotterMock) GetValidatorIllegibilityCalls() []struct{ ... }
- func (mock *SnapshotterMock) TakeSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, error)
- func (mock *SnapshotterMock) TakeSnapshotCalls() []struct{ ... }
- type StakingKeeperMock
- func (mock *StakingKeeperMock) GetLastTotalPower(ctx github_com_cosmos_cosmos_sdk_types.Context) github_com_cosmos_cosmos_sdk_types.Int
- func (mock *StakingKeeperMock) GetLastTotalPowerCalls() []struct{ ... }
- func (mock *StakingKeeperMock) IterateBondedValidatorsByPower(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *StakingKeeperMock) IterateBondedValidatorsByPowerCalls() []struct{ ... }
- func (mock *StakingKeeperMock) Validator(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) stakingtypes.ValidatorI
- func (mock *StakingKeeperMock) ValidatorCalls() []struct{ ... }
- type TSSKeeperMock
- func (mock *TSSKeeperMock) AssertMatchesRequirements(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) error
- func (mock *TSSKeeperMock) AssertMatchesRequirementsCalls() []struct{ ... }
- func (mock *TSSKeeperMock) AssignNextKey(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, ...) error
- func (mock *TSSKeeperMock) AssignNextKeyCalls() []struct{ ... }
- func (mock *TSSKeeperMock) DeleteInfoForSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string)
- func (mock *TSSKeeperMock) DeleteInfoForSigCalls() []struct{ ... }
- func (mock *TSSKeeperMock) DeleteKeyRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) DeleteKeyRecoveryInfoCalls() []struct{ ... }
- func (mock *TSSKeeperMock) DeleteKeygenStart(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) DeleteKeygenStartCalls() []struct{ ... }
- func (mock *TSSKeeperMock) DeleteMultisigKeygen(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) DeleteMultisigKeygenCalls() []struct{ ... }
- func (mock *TSSKeeperMock) DeleteMultisigSign(ctx github_com_cosmos_cosmos_sdk_types.Context, signID string)
- func (mock *TSSKeeperMock) DeleteMultisigSignCalls() []struct{ ... }
- func (mock *TSSKeeperMock) DeleteSnapshotCounterForKeyID(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) DeleteSnapshotCounterForKeyIDCalls() []struct{ ... }
- func (mock *TSSKeeperMock) DoesValidatorParticipateInSign(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, ...) bool
- func (mock *TSSKeeperMock) DoesValidatorParticipateInSignCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetAvailableOperators(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) []github_com_cosmos_cosmos_sdk_types.ValAddress
- func (mock *TSSKeeperMock) GetAvailableOperatorsCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetCurrentKey(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, ...) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)
- func (mock *TSSKeeperMock) GetCurrentKeyCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetCurrentKeyID(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, ...) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)
- func (mock *TSSKeeperMock) GetCurrentKeyIDCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetExternalKeyIDs(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)
- func (mock *TSSKeeperMock) GetExternalKeyIDsCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetExternalMultisigThreshold(ctx github_com_cosmos_cosmos_sdk_types.Context) utils.Threshold
- func (mock *TSSKeeperMock) GetExternalMultisigThresholdCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetGroupRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) []byte
- func (mock *TSSKeeperMock) GetGroupRecoveryInfoCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetHeartbeatPeriodInBlocks(ctx github_com_cosmos_cosmos_sdk_types.Context) int64
- func (mock *TSSKeeperMock) GetHeartbeatPeriodInBlocksCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetInfoForSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, bool)
- func (mock *TSSKeeperMock) GetInfoForSigCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetKey(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)
- func (mock *TSSKeeperMock) GetKeyCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetKeyRequirement(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement, bool)
- func (mock *TSSKeeperMock) GetKeyRequirementCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetKeyType(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType
- func (mock *TSSKeeperMock) GetKeyTypeCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetMaxSimultaneousSignShares(ctx github_com_cosmos_cosmos_sdk_types.Context) int64
- func (mock *TSSKeeperMock) GetMaxSimultaneousSignSharesCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetMultisigKeygenInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) (types.MultisigKeygenInfo, bool)
- func (mock *TSSKeeperMock) GetMultisigKeygenInfoCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetMultisigPubKeysByValidator(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) ([]ecdsa.PublicKey, bool)
- func (mock *TSSKeeperMock) GetMultisigPubKeysByValidatorCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetMultisigSignInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (types.MultisigSignInfo, bool)
- func (mock *TSSKeeperMock) GetMultisigSignInfoCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetNextKey(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, ...) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)
- func (mock *TSSKeeperMock) GetNextKeyCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetNextKeyID(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, ...) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)
- func (mock *TSSKeeperMock) GetNextKeyIDCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetOldActiveKeys(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, ...) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.Key, error)
- func (mock *TSSKeeperMock) GetOldActiveKeysCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetParams(ctx github_com_cosmos_cosmos_sdk_types.Context) types.Params
- func (mock *TSSKeeperMock) GetParamsCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetPrivateRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) []byte
- func (mock *TSSKeeperMock) GetPrivateRecoveryInfoCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetRouter() types.Router
- func (mock *TSSKeeperMock) GetRouterCalls() []struct{}
- func (mock *TSSKeeperMock) GetSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.Signature, ...)
- func (mock *TSSKeeperMock) GetSigCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetSignParticipants(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []string
- func (mock *TSSKeeperMock) GetSignParticipantsAsJSON(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte
- func (mock *TSSKeeperMock) GetSignParticipantsAsJSONCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetSignParticipantsCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetSignParticipantsSharesAsJSON(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte
- func (mock *TSSKeeperMock) GetSignParticipantsSharesAsJSONCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetSnapshotCounterForKeyID(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) (int64, bool)
- func (mock *TSSKeeperMock) GetSnapshotCounterForKeyIDCalls() []struct{ ... }
- func (mock *TSSKeeperMock) GetSuspendedUntil(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) int64
- func (mock *TSSKeeperMock) GetSuspendedUntilCalls() []struct{ ... }
- func (mock *TSSKeeperMock) HasKeygenStarted(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) bool
- func (mock *TSSKeeperMock) HasKeygenStartedCalls() []struct{ ... }
- func (mock *TSSKeeperMock) HasPrivateRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) bool
- func (mock *TSSKeeperMock) HasPrivateRecoveryInfoCalls() []struct{ ... }
- func (mock *TSSKeeperMock) IsMultisigKeygenCompleted(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) bool
- func (mock *TSSKeeperMock) IsMultisigKeygenCompletedCalls() []struct{ ... }
- func (mock *TSSKeeperMock) Logger(ctx github_com_cosmos_cosmos_sdk_types.Context) log.Logger
- func (mock *TSSKeeperMock) LoggerCalls() []struct{ ... }
- func (mock *TSSKeeperMock) PenalizeCriminal(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) PenalizeCriminalCalls() []struct{ ... }
- func (mock *TSSKeeperMock) RotateKey(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, ...) error
- func (mock *TSSKeeperMock) RotateKeyCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SelectSignParticipants(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) ([]github_com_axelarnetwork_axelar_core_x_snapshot_exported.Validator, ...)
- func (mock *TSSKeeperMock) SelectSignParticipantsCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetAvailableOperator(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) SetAvailableOperatorCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetExternalKeyIDs(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, ...)
- func (mock *TSSKeeperMock) SetExternalKeyIDsCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetGroupRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) SetGroupRecoveryInfoCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetInfoForSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, ...)
- func (mock *TSSKeeperMock) SetInfoForSigCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetKey(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) SetKeyCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetParams(ctx github_com_cosmos_cosmos_sdk_types.Context, p types.Params)
- func (mock *TSSKeeperMock) SetParamsCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetPrivateRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) SetPrivateRecoveryInfoCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetSig(ctx github_com_cosmos_cosmos_sdk_types.Context, ...)
- func (mock *TSSKeeperMock) SetSigCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SetSigStatus(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, ...)
- func (mock *TSSKeeperMock) SetSigStatusCalls() []struct{ ... }
- func (mock *TSSKeeperMock) StartKeygen(ctx github_com_cosmos_cosmos_sdk_types.Context, voter types.Voter, ...) error
- func (mock *TSSKeeperMock) StartKeygenCalls() []struct{ ... }
- func (mock *TSSKeeperMock) StartSign(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) error
- func (mock *TSSKeeperMock) StartSignCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SubmitPubKeys(ctx github_com_cosmos_cosmos_sdk_types.Context, ...) bool
- func (mock *TSSKeeperMock) SubmitPubKeysCalls() []struct{ ... }
- func (mock *TSSKeeperMock) SubmitSignatures(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, ...) bool
- func (mock *TSSKeeperMock) SubmitSignaturesCalls() []struct{ ... }
- type TofndClientMock
- func (mock *TofndClientMock) KeyPresence(ctx context.Context, in *tofnd.KeyPresenceRequest, opts ...grpc.CallOption) (*tofnd.KeyPresenceResponse, error)
- func (mock *TofndClientMock) KeyPresenceCalls() []struct{ ... }
- func (mock *TofndClientMock) Keygen(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_KeygenClient, error)
- func (mock *TofndClientMock) KeygenCalls() []struct{ ... }
- func (mock *TofndClientMock) Recover(ctx context.Context, in *tofnd.RecoverRequest, opts ...grpc.CallOption) (*tofnd.RecoverResponse, error)
- func (mock *TofndClientMock) RecoverCalls() []struct{ ... }
- func (mock *TofndClientMock) Sign(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_SignClient, error)
- func (mock *TofndClientMock) SignCalls() []struct{ ... }
- type TofndKeyGenClientMock
- func (mock *TofndKeyGenClientMock) CloseSend() error
- func (mock *TofndKeyGenClientMock) CloseSendCalls() []struct{}
- func (mock *TofndKeyGenClientMock) Context() context.Context
- func (mock *TofndKeyGenClientMock) ContextCalls() []struct{}
- func (mock *TofndKeyGenClientMock) Header() (metadata.MD, error)
- func (mock *TofndKeyGenClientMock) HeaderCalls() []struct{}
- func (mock *TofndKeyGenClientMock) Recv() (*tofnd.MessageOut, error)
- func (mock *TofndKeyGenClientMock) RecvCalls() []struct{}
- func (mock *TofndKeyGenClientMock) RecvMsg(m interface{}) error
- func (mock *TofndKeyGenClientMock) RecvMsgCalls() []struct{ ... }
- func (mock *TofndKeyGenClientMock) Send(messageIn *tofnd.MessageIn) error
- func (mock *TofndKeyGenClientMock) SendCalls() []struct{ ... }
- func (mock *TofndKeyGenClientMock) SendMsg(m interface{}) error
- func (mock *TofndKeyGenClientMock) SendMsgCalls() []struct{ ... }
- func (mock *TofndKeyGenClientMock) Trailer() metadata.MD
- func (mock *TofndKeyGenClientMock) TrailerCalls() []struct{}
- type TofndSignClientMock
- func (mock *TofndSignClientMock) CloseSend() error
- func (mock *TofndSignClientMock) CloseSendCalls() []struct{}
- func (mock *TofndSignClientMock) Context() context.Context
- func (mock *TofndSignClientMock) ContextCalls() []struct{}
- func (mock *TofndSignClientMock) Header() (metadata.MD, error)
- func (mock *TofndSignClientMock) HeaderCalls() []struct{}
- func (mock *TofndSignClientMock) Recv() (*tofnd.MessageOut, error)
- func (mock *TofndSignClientMock) RecvCalls() []struct{}
- func (mock *TofndSignClientMock) RecvMsg(m interface{}) error
- func (mock *TofndSignClientMock) RecvMsgCalls() []struct{ ... }
- func (mock *TofndSignClientMock) Send(messageIn *tofnd.MessageIn) error
- func (mock *TofndSignClientMock) SendCalls() []struct{ ... }
- func (mock *TofndSignClientMock) SendMsg(m interface{}) error
- func (mock *TofndSignClientMock) SendMsgCalls() []struct{ ... }
- func (mock *TofndSignClientMock) Trailer() metadata.MD
- func (mock *TofndSignClientMock) TrailerCalls() []struct{}
- type VoterMock
- func (mock *VoterMock) GetPoll(ctx github_com_cosmos_cosmos_sdk_types.Context, pollKey exported1.PollKey) exported1.Poll
- func (mock *VoterMock) GetPollCalls() []struct{ ... }
- func (mock *VoterMock) InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, ...) error
- func (mock *VoterMock) InitializePollWithSnapshotCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NexusMock ¶
type NexusMock struct { // GetChainFunc mocks the GetChain method. GetChainFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain string) (nexus.Chain, bool) // GetChainsFunc mocks the GetChains method. GetChainsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) []nexus.Chain // contains filtered or unexported fields }
NexusMock is a mock implementation of types.Nexus.
func TestSomethingThatUsesNexus(t *testing.T) { // make and configure a mocked types.Nexus mockedNexus := &NexusMock{ GetChainFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain string) (nexus.Chain, bool) { panic("mock out the GetChain method") }, GetChainsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) []nexus.Chain { panic("mock out the GetChains method") }, } // use mockedNexus in code that requires types.Nexus // and then make assertions. }
func (*NexusMock) GetChain ¶
func (mock *NexusMock) GetChain(ctx github_com_cosmos_cosmos_sdk_types.Context, chain string) (nexus.Chain, bool)
GetChain calls GetChainFunc.
func (*NexusMock) GetChainCalls ¶
func (mock *NexusMock) GetChainCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain string }
GetChainCalls gets all the calls that were made to GetChain. Check the length with:
len(mockedNexus.GetChainCalls())
func (*NexusMock) GetChains ¶
func (mock *NexusMock) GetChains(ctx github_com_cosmos_cosmos_sdk_types.Context) []nexus.Chain
GetChains calls GetChainsFunc.
func (*NexusMock) GetChainsCalls ¶
func (mock *NexusMock) GetChainsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context }
GetChainsCalls gets all the calls that were made to GetChains. Check the length with:
len(mockedNexus.GetChainsCalls())
type RewarderMock ¶
type RewarderMock struct { // GetPoolFunc mocks the GetPool method. GetPoolFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, name string) reward.RewardPool // contains filtered or unexported fields }
RewarderMock is a mock implementation of types.Rewarder.
func TestSomethingThatUsesRewarder(t *testing.T) { // make and configure a mocked types.Rewarder mockedRewarder := &RewarderMock{ GetPoolFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, name string) reward.RewardPool { panic("mock out the GetPool method") }, } // use mockedRewarder in code that requires types.Rewarder // and then make assertions. }
func (*RewarderMock) GetPool ¶
func (mock *RewarderMock) GetPool(ctx github_com_cosmos_cosmos_sdk_types.Context, name string) reward.RewardPool
GetPool calls GetPoolFunc.
func (*RewarderMock) GetPoolCalls ¶
func (mock *RewarderMock) GetPoolCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Name string }
GetPoolCalls gets all the calls that were made to GetPool. Check the length with:
len(mockedRewarder.GetPoolCalls())
type SnapshotterMock ¶
type SnapshotterMock struct { // GetLatestSnapshotFunc mocks the GetLatestSnapshot method. GetLatestSnapshotFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool) // GetOperatorFunc mocks the GetOperator method. GetOperatorFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, proxy github_com_cosmos_cosmos_sdk_types.AccAddress) github_com_cosmos_cosmos_sdk_types.ValAddress // GetProxyFunc mocks the GetProxy method. GetProxyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, principal github_com_cosmos_cosmos_sdk_types.ValAddress) (github_com_cosmos_cosmos_sdk_types.AccAddress, bool) // GetSnapshotFunc mocks the GetSnapshot method. GetSnapshotFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, seqNo int64) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool) // GetValidatorIllegibilityFunc mocks the GetValidatorIllegibility method. GetValidatorIllegibilityFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_axelarnetwork_axelar_core_x_snapshot_exported.SDKValidator) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.ValidatorIllegibility, error) // TakeSnapshotFunc mocks the TakeSnapshot method. TakeSnapshotFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRequirement github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, error) // contains filtered or unexported fields }
SnapshotterMock is a mock implementation of types.Snapshotter.
func TestSomethingThatUsesSnapshotter(t *testing.T) { // make and configure a mocked types.Snapshotter mockedSnapshotter := &SnapshotterMock{ GetLatestSnapshotFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool) { panic("mock out the GetLatestSnapshot method") }, GetOperatorFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, proxy github_com_cosmos_cosmos_sdk_types.AccAddress) github_com_cosmos_cosmos_sdk_types.ValAddress { panic("mock out the GetOperator method") }, GetProxyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, principal github_com_cosmos_cosmos_sdk_types.ValAddress) (github_com_cosmos_cosmos_sdk_types.AccAddress, bool) { panic("mock out the GetProxy method") }, GetSnapshotFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, seqNo int64) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool) { panic("mock out the GetSnapshot method") }, GetValidatorIllegibilityFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_axelarnetwork_axelar_core_x_snapshot_exported.SDKValidator) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.ValidatorIllegibility, error) { panic("mock out the GetValidatorIllegibility method") }, TakeSnapshotFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRequirement github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, error) { panic("mock out the TakeSnapshot method") }, } // use mockedSnapshotter in code that requires types.Snapshotter // and then make assertions. }
func (*SnapshotterMock) GetLatestSnapshot ¶
func (mock *SnapshotterMock) GetLatestSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool)
GetLatestSnapshot calls GetLatestSnapshotFunc.
func (*SnapshotterMock) GetLatestSnapshotCalls ¶
func (mock *SnapshotterMock) GetLatestSnapshotCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context }
GetLatestSnapshotCalls gets all the calls that were made to GetLatestSnapshot. Check the length with:
len(mockedSnapshotter.GetLatestSnapshotCalls())
func (*SnapshotterMock) GetOperator ¶
func (mock *SnapshotterMock) GetOperator(ctx github_com_cosmos_cosmos_sdk_types.Context, proxy github_com_cosmos_cosmos_sdk_types.AccAddress) github_com_cosmos_cosmos_sdk_types.ValAddress
GetOperator calls GetOperatorFunc.
func (*SnapshotterMock) GetOperatorCalls ¶
func (mock *SnapshotterMock) GetOperatorCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Proxy github_com_cosmos_cosmos_sdk_types.AccAddress }
GetOperatorCalls gets all the calls that were made to GetOperator. Check the length with:
len(mockedSnapshotter.GetOperatorCalls())
func (*SnapshotterMock) GetProxy ¶
func (mock *SnapshotterMock) GetProxy(ctx github_com_cosmos_cosmos_sdk_types.Context, principal github_com_cosmos_cosmos_sdk_types.ValAddress) (github_com_cosmos_cosmos_sdk_types.AccAddress, bool)
GetProxy calls GetProxyFunc.
func (*SnapshotterMock) GetProxyCalls ¶
func (mock *SnapshotterMock) GetProxyCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Principal github_com_cosmos_cosmos_sdk_types.ValAddress }
GetProxyCalls gets all the calls that were made to GetProxy. Check the length with:
len(mockedSnapshotter.GetProxyCalls())
func (*SnapshotterMock) GetSnapshot ¶
func (mock *SnapshotterMock) GetSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, seqNo int64) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool)
GetSnapshot calls GetSnapshotFunc.
func (*SnapshotterMock) GetSnapshotCalls ¶
func (mock *SnapshotterMock) GetSnapshotCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SeqNo int64 }
GetSnapshotCalls gets all the calls that were made to GetSnapshot. Check the length with:
len(mockedSnapshotter.GetSnapshotCalls())
func (*SnapshotterMock) GetValidatorIllegibility ¶
func (mock *SnapshotterMock) GetValidatorIllegibility(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_axelarnetwork_axelar_core_x_snapshot_exported.SDKValidator) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.ValidatorIllegibility, error)
GetValidatorIllegibility calls GetValidatorIllegibilityFunc.
func (*SnapshotterMock) GetValidatorIllegibilityCalls ¶
func (mock *SnapshotterMock) GetValidatorIllegibilityCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Validator github_com_axelarnetwork_axelar_core_x_snapshot_exported.SDKValidator }
GetValidatorIllegibilityCalls gets all the calls that were made to GetValidatorIllegibility. Check the length with:
len(mockedSnapshotter.GetValidatorIllegibilityCalls())
func (*SnapshotterMock) TakeSnapshot ¶
func (mock *SnapshotterMock) TakeSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRequirement github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, error)
TakeSnapshot calls TakeSnapshotFunc.
func (*SnapshotterMock) TakeSnapshotCalls ¶
func (mock *SnapshotterMock) TakeSnapshotCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyRequirement github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement }
TakeSnapshotCalls gets all the calls that were made to TakeSnapshot. Check the length with:
len(mockedSnapshotter.TakeSnapshotCalls())
type StakingKeeperMock ¶
type StakingKeeperMock struct { // GetLastTotalPowerFunc mocks the GetLastTotalPower method. GetLastTotalPowerFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) github_com_cosmos_cosmos_sdk_types.Int // IterateBondedValidatorsByPowerFunc mocks the IterateBondedValidatorsByPower method. IterateBondedValidatorsByPowerFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool)) // ValidatorFunc mocks the Validator method. ValidatorFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, addr github_com_cosmos_cosmos_sdk_types.ValAddress) stakingtypes.ValidatorI // contains filtered or unexported fields }
StakingKeeperMock is a mock implementation of types.StakingKeeper.
func TestSomethingThatUsesStakingKeeper(t *testing.T) { // make and configure a mocked types.StakingKeeper mockedStakingKeeper := &StakingKeeperMock{ GetLastTotalPowerFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) github_com_cosmos_cosmos_sdk_types.Int { panic("mock out the GetLastTotalPower method") }, IterateBondedValidatorsByPowerFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool)) { panic("mock out the IterateBondedValidatorsByPower method") }, ValidatorFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, addr github_com_cosmos_cosmos_sdk_types.ValAddress) stakingtypes.ValidatorI { panic("mock out the Validator method") }, } // use mockedStakingKeeper in code that requires types.StakingKeeper // and then make assertions. }
func (*StakingKeeperMock) GetLastTotalPower ¶
func (mock *StakingKeeperMock) GetLastTotalPower(ctx github_com_cosmos_cosmos_sdk_types.Context) github_com_cosmos_cosmos_sdk_types.Int
GetLastTotalPower calls GetLastTotalPowerFunc.
func (*StakingKeeperMock) GetLastTotalPowerCalls ¶
func (mock *StakingKeeperMock) GetLastTotalPowerCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context }
GetLastTotalPowerCalls gets all the calls that were made to GetLastTotalPower. Check the length with:
len(mockedStakingKeeper.GetLastTotalPowerCalls())
func (*StakingKeeperMock) IterateBondedValidatorsByPower ¶
func (mock *StakingKeeperMock) IterateBondedValidatorsByPower(ctx github_com_cosmos_cosmos_sdk_types.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool))
IterateBondedValidatorsByPower calls IterateBondedValidatorsByPowerFunc.
func (*StakingKeeperMock) IterateBondedValidatorsByPowerCalls ¶
func (mock *StakingKeeperMock) IterateBondedValidatorsByPowerCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Fn func(index int64, validator stakingtypes.ValidatorI) (stop bool) }
IterateBondedValidatorsByPowerCalls gets all the calls that were made to IterateBondedValidatorsByPower. Check the length with:
len(mockedStakingKeeper.IterateBondedValidatorsByPowerCalls())
func (*StakingKeeperMock) Validator ¶
func (mock *StakingKeeperMock) Validator(ctx github_com_cosmos_cosmos_sdk_types.Context, addr github_com_cosmos_cosmos_sdk_types.ValAddress) stakingtypes.ValidatorI
Validator calls ValidatorFunc.
func (*StakingKeeperMock) ValidatorCalls ¶
func (mock *StakingKeeperMock) ValidatorCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Addr github_com_cosmos_cosmos_sdk_types.ValAddress }
ValidatorCalls gets all the calls that were made to Validator. Check the length with:
len(mockedStakingKeeper.ValidatorCalls())
type TSSKeeperMock ¶
type TSSKeeperMock struct { // AssertMatchesRequirementsFunc mocks the AssertMatchesRequirements method. AssertMatchesRequirementsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, chain nexus.Chain, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error // AssignNextKeyFunc mocks the AssignNextKey method. AssignNextKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) error // DeleteInfoForSigFunc mocks the DeleteInfoForSig method. DeleteInfoForSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) // DeleteKeyRecoveryInfoFunc mocks the DeleteKeyRecoveryInfo method. DeleteKeyRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) // DeleteKeygenStartFunc mocks the DeleteKeygenStart method. DeleteKeygenStartFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) // DeleteMultisigKeygenFunc mocks the DeleteMultisigKeygen method. DeleteMultisigKeygenFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) // DeleteMultisigSignFunc mocks the DeleteMultisigSign method. DeleteMultisigSignFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, signID string) // DeleteSnapshotCounterForKeyIDFunc mocks the DeleteSnapshotCounterForKeyID method. DeleteSnapshotCounterForKeyIDFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) // DoesValidatorParticipateInSignFunc mocks the DoesValidatorParticipateInSign method. DoesValidatorParticipateInSignFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress) bool // GetAvailableOperatorsFunc mocks the GetAvailableOperators method. GetAvailableOperatorsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []github_com_cosmos_cosmos_sdk_types.ValAddress // GetCurrentKeyFunc mocks the GetCurrentKey method. GetCurrentKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) // GetCurrentKeyIDFunc mocks the GetCurrentKeyID method. GetCurrentKeyIDFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) // GetExternalKeyIDsFunc mocks the GetExternalKeyIDs method. GetExternalKeyIDsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) // GetExternalMultisigThresholdFunc mocks the GetExternalMultisigThreshold method. GetExternalMultisigThresholdFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) utils.Threshold // GetGroupRecoveryInfoFunc mocks the GetGroupRecoveryInfo method. GetGroupRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte // GetHeartbeatPeriodInBlocksFunc mocks the GetHeartbeatPeriodInBlocks method. GetHeartbeatPeriodInBlocksFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) int64 // GetInfoForSigFunc mocks the GetInfoForSig method. GetInfoForSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, bool) // GetKeyFunc mocks the GetKey method. GetKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) // GetKeyRequirementFunc mocks the GetKeyRequirement method. GetKeyRequirementFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement, bool) // GetKeyTypeFunc mocks the GetKeyType method. GetKeyTypeFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType GetMaxSimultaneousSignSharesFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) int64 // GetMultisigKeygenInfoFunc mocks the GetMultisigKeygenInfo method. GetMultisigKeygenInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (types.MultisigKeygenInfo, bool) // GetMultisigPubKeysByValidatorFunc mocks the GetMultisigPubKeysByValidator method. GetMultisigPubKeysByValidatorFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, val github_com_cosmos_cosmos_sdk_types.ValAddress) ([]ecdsa.PublicKey, bool) // GetMultisigSignInfoFunc mocks the GetMultisigSignInfo method. GetMultisigSignInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (types.MultisigSignInfo, bool) // GetNextKeyFunc mocks the GetNextKey method. GetNextKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) // GetNextKeyIDFunc mocks the GetNextKeyID method. GetNextKeyIDFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) // GetOldActiveKeysFunc mocks the GetOldActiveKeys method. GetOldActiveKeysFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.Key, error) // GetParamsFunc mocks the GetParams method. GetParamsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) types.Params // GetPrivateRecoveryInfoFunc mocks the GetPrivateRecoveryInfo method. GetPrivateRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte // GetRouterFunc mocks the GetRouter method. GetRouterFunc func() types.Router // GetSigFunc mocks the GetSig method. GetSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.Signature, github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus) // GetSignParticipantsFunc mocks the GetSignParticipants method. GetSignParticipantsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []string // GetSignParticipantsAsJSONFunc mocks the GetSignParticipantsAsJSON method. GetSignParticipantsAsJSONFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte GetSignParticipantsSharesAsJSONFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte // GetSnapshotCounterForKeyIDFunc mocks the GetSnapshotCounterForKeyID method. GetSnapshotCounterForKeyIDFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (int64, bool) // GetSuspendedUntilFunc mocks the GetSuspendedUntil method. GetSuspendedUntilFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress) int64 // HasKeygenStartedFunc mocks the HasKeygenStarted method. HasKeygenStartedFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool // HasPrivateRecoveryInfoFunc mocks the HasPrivateRecoveryInfo method. HasPrivateRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool // IsMultisigKeygenCompletedFunc mocks the IsMultisigKeygenCompleted method. IsMultisigKeygenCompletedFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool // LoggerFunc mocks the Logger method. LoggerFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) log.Logger // PenalizeCriminalFunc mocks the PenalizeCriminal method. PenalizeCriminalFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, criminal github_com_cosmos_cosmos_sdk_types.ValAddress, crimeType tofnd.MessageOut_CriminalList_Criminal_CrimeType) // RotateKeyFunc mocks the RotateKey method. RotateKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error // SelectSignParticipantsFunc mocks the SelectSignParticipants method. SelectSignParticipantsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, snap github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, keyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType) ([]github_com_axelarnetwork_axelar_core_x_snapshot_exported.Validator, []github_com_axelarnetwork_axelar_core_x_snapshot_exported.Validator, error) // SetAvailableOperatorFunc mocks the SetAvailableOperator method. SetAvailableOperatorFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) // SetExternalKeyIDsFunc mocks the SetExternalKeyIDs method. SetExternalKeyIDsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) // SetGroupRecoveryInfoFunc mocks the SetGroupRecoveryInfo method. SetGroupRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte) // SetInfoForSigFunc mocks the SetInfoForSig method. SetInfoForSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo) // SetKeyFunc mocks the SetKey method. SetKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, key github_com_axelarnetwork_axelar_core_x_tss_exported.Key) // SetParamsFunc mocks the SetParams method. SetParamsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, p types.Params) // SetPrivateRecoveryInfoFunc mocks the SetPrivateRecoveryInfo method. SetPrivateRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte) // SetSigFunc mocks the SetSig method. SetSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, signature github_com_axelarnetwork_axelar_core_x_tss_exported.Signature) // SetSigStatusFunc mocks the SetSigStatus method. SetSigStatusFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, status github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus) // StartKeygenFunc mocks the StartKeygen method. StartKeygenFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, voter types.Voter, keyInfo types.KeyInfo, snapshot github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot) error // StartSignFunc mocks the StartSign method. StartSignFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, voter interface { InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error }) error // SubmitPubKeysFunc mocks the SubmitPubKeys method. SubmitPubKeysFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, validator github_com_cosmos_cosmos_sdk_types.ValAddress, pubKeys ...[]byte) bool // SubmitSignaturesFunc mocks the SubmitSignatures method. SubmitSignaturesFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress, sigs ...[]byte) bool // contains filtered or unexported fields }
TSSKeeperMock is a mock implementation of types.TSSKeeper.
func TestSomethingThatUsesTSSKeeper(t *testing.T) { // make and configure a mocked types.TSSKeeper mockedTSSKeeper := &TSSKeeperMock{ AssertMatchesRequirementsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, chain nexus.Chain, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error { panic("mock out the AssertMatchesRequirements method") }, AssignNextKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) error { panic("mock out the AssignNextKey method") }, DeleteInfoForSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) { panic("mock out the DeleteInfoForSig method") }, DeleteKeyRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) { panic("mock out the DeleteKeyRecoveryInfo method") }, DeleteKeygenStartFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) { panic("mock out the DeleteKeygenStart method") }, DeleteMultisigKeygenFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) { panic("mock out the DeleteMultisigKeygen method") }, DeleteMultisigSignFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, signID string) { panic("mock out the DeleteMultisigSign method") }, DeleteSnapshotCounterForKeyIDFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) { panic("mock out the DeleteSnapshotCounterForKeyID method") }, DoesValidatorParticipateInSignFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress) bool { panic("mock out the DoesValidatorParticipateInSign method") }, GetAvailableOperatorsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []github_com_cosmos_cosmos_sdk_types.ValAddress { panic("mock out the GetAvailableOperators method") }, GetCurrentKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) { panic("mock out the GetCurrentKey method") }, GetCurrentKeyIDFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) { panic("mock out the GetCurrentKeyID method") }, GetExternalKeyIDsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) { panic("mock out the GetExternalKeyIDs method") }, GetExternalMultisigThresholdFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) utils.Threshold { panic("mock out the GetExternalMultisigThreshold method") }, GetGroupRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte { panic("mock out the GetGroupRecoveryInfo method") }, GetHeartbeatPeriodInBlocksFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) int64 { panic("mock out the GetHeartbeatPeriodInBlocks method") }, GetInfoForSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, bool) { panic("mock out the GetInfoForSig method") }, GetKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) { panic("mock out the GetKey method") }, GetKeyRequirementFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement, bool) { panic("mock out the GetKeyRequirement method") }, GetKeyTypeFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType { panic("mock out the GetKeyType method") }, GetMaxSimultaneousSignSharesFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) int64 { panic("mock out the GetMaxSimultaneousSignShares method") }, GetMultisigKeygenInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (types.MultisigKeygenInfo, bool) { panic("mock out the GetMultisigKeygenInfo method") }, GetMultisigPubKeysByValidatorFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, val github_com_cosmos_cosmos_sdk_types.ValAddress) ([]ecdsa.PublicKey, bool) { panic("mock out the GetMultisigPubKeysByValidator method") }, GetMultisigSignInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (types.MultisigSignInfo, bool) { panic("mock out the GetMultisigSignInfo method") }, GetNextKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) { panic("mock out the GetNextKey method") }, GetNextKeyIDFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) { panic("mock out the GetNextKeyID method") }, GetOldActiveKeysFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.Key, error) { panic("mock out the GetOldActiveKeys method") }, GetParamsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) types.Params { panic("mock out the GetParams method") }, GetPrivateRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte { panic("mock out the GetPrivateRecoveryInfo method") }, GetRouterFunc: func() types.Router { panic("mock out the GetRouter method") }, GetSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.Signature, github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus) { panic("mock out the GetSig method") }, GetSignParticipantsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []string { panic("mock out the GetSignParticipants method") }, GetSignParticipantsAsJSONFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte { panic("mock out the GetSignParticipantsAsJSON method") }, GetSignParticipantsSharesAsJSONFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte { panic("mock out the GetSignParticipantsSharesAsJSON method") }, GetSnapshotCounterForKeyIDFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (int64, bool) { panic("mock out the GetSnapshotCounterForKeyID method") }, GetSuspendedUntilFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress) int64 { panic("mock out the GetSuspendedUntil method") }, HasKeygenStartedFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool { panic("mock out the HasKeygenStarted method") }, HasPrivateRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool { panic("mock out the HasPrivateRecoveryInfo method") }, IsMultisigKeygenCompletedFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool { panic("mock out the IsMultisigKeygenCompleted method") }, LoggerFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) log.Logger { panic("mock out the Logger method") }, PenalizeCriminalFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, criminal github_com_cosmos_cosmos_sdk_types.ValAddress, crimeType tofnd.MessageOut_CriminalList_Criminal_CrimeType) { panic("mock out the PenalizeCriminal method") }, RotateKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error { panic("mock out the RotateKey method") }, SelectSignParticipantsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, snap github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, keyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType) ([]github_com_axelarnetwork_axelar_core_x_snapshot_exported.Validator, []github_com_axelarnetwork_axelar_core_x_snapshot_exported.Validator, error) { panic("mock out the SelectSignParticipants method") }, SetAvailableOperatorFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) { panic("mock out the SetAvailableOperator method") }, SetExternalKeyIDsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) { panic("mock out the SetExternalKeyIDs method") }, SetGroupRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte) { panic("mock out the SetGroupRecoveryInfo method") }, SetInfoForSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo) { panic("mock out the SetInfoForSig method") }, SetKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, key github_com_axelarnetwork_axelar_core_x_tss_exported.Key) { panic("mock out the SetKey method") }, SetParamsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, p types.Params) { panic("mock out the SetParams method") }, SetPrivateRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte) { panic("mock out the SetPrivateRecoveryInfo method") }, SetSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, signature github_com_axelarnetwork_axelar_core_x_tss_exported.Signature) { panic("mock out the SetSig method") }, SetSigStatusFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, status github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus) { panic("mock out the SetSigStatus method") }, StartKeygenFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, voter types.Voter, keyInfo types.KeyInfo, snapshot github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot) error { panic("mock out the StartKeygen method") }, StartSignFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, voter interface{InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error}) error { panic("mock out the StartSign method") }, SubmitPubKeysFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, validator github_com_cosmos_cosmos_sdk_types.ValAddress, pubKeys ...[]byte) bool { panic("mock out the SubmitPubKeys method") }, SubmitSignaturesFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress, sigs ...[]byte) bool { panic("mock out the SubmitSignatures method") }, } // use mockedTSSKeeper in code that requires types.TSSKeeper // and then make assertions. }
func (*TSSKeeperMock) AssertMatchesRequirements ¶
func (mock *TSSKeeperMock) AssertMatchesRequirements(ctx github_com_cosmos_cosmos_sdk_types.Context, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, chain nexus.Chain, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error
AssertMatchesRequirements calls AssertMatchesRequirementsFunc.
func (*TSSKeeperMock) AssertMatchesRequirementsCalls ¶
func (mock *TSSKeeperMock) AssertMatchesRequirementsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter Chain nexus.Chain KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole }
AssertMatchesRequirementsCalls gets all the calls that were made to AssertMatchesRequirements. Check the length with:
len(mockedTSSKeeper.AssertMatchesRequirementsCalls())
func (*TSSKeeperMock) AssignNextKey ¶
func (mock *TSSKeeperMock) AssignNextKey(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) error
AssignNextKey calls AssignNextKeyFunc.
func (*TSSKeeperMock) AssignNextKeyCalls ¶
func (mock *TSSKeeperMock) AssignNextKeyCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
AssignNextKeyCalls gets all the calls that were made to AssignNextKey. Check the length with:
len(mockedTSSKeeper.AssignNextKeyCalls())
func (*TSSKeeperMock) DeleteInfoForSig ¶
func (mock *TSSKeeperMock) DeleteInfoForSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string)
DeleteInfoForSig calls DeleteInfoForSigFunc.
func (*TSSKeeperMock) DeleteInfoForSigCalls ¶
func (mock *TSSKeeperMock) DeleteInfoForSigCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string }
DeleteInfoForSigCalls gets all the calls that were made to DeleteInfoForSig. Check the length with:
len(mockedTSSKeeper.DeleteInfoForSigCalls())
func (*TSSKeeperMock) DeleteKeyRecoveryInfo ¶ added in v0.9.0
func (mock *TSSKeeperMock) DeleteKeyRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)
DeleteKeyRecoveryInfo calls DeleteKeyRecoveryInfoFunc.
func (*TSSKeeperMock) DeleteKeyRecoveryInfoCalls ¶ added in v0.9.0
func (mock *TSSKeeperMock) DeleteKeyRecoveryInfoCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
DeleteKeyRecoveryInfoCalls gets all the calls that were made to DeleteKeyRecoveryInfo. Check the length with:
len(mockedTSSKeeper.DeleteKeyRecoveryInfoCalls())
func (*TSSKeeperMock) DeleteKeygenStart ¶
func (mock *TSSKeeperMock) DeleteKeygenStart(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)
DeleteKeygenStart calls DeleteKeygenStartFunc.
func (*TSSKeeperMock) DeleteKeygenStartCalls ¶
func (mock *TSSKeeperMock) DeleteKeygenStartCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
DeleteKeygenStartCalls gets all the calls that were made to DeleteKeygenStart. Check the length with:
len(mockedTSSKeeper.DeleteKeygenStartCalls())
func (*TSSKeeperMock) DeleteMultisigKeygen ¶
func (mock *TSSKeeperMock) DeleteMultisigKeygen(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)
DeleteMultisigKeygen calls DeleteMultisigKeygenFunc.
func (*TSSKeeperMock) DeleteMultisigKeygenCalls ¶
func (mock *TSSKeeperMock) DeleteMultisigKeygenCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
DeleteMultisigKeygenCalls gets all the calls that were made to DeleteMultisigKeygen. Check the length with:
len(mockedTSSKeeper.DeleteMultisigKeygenCalls())
func (*TSSKeeperMock) DeleteMultisigSign ¶
func (mock *TSSKeeperMock) DeleteMultisigSign(ctx github_com_cosmos_cosmos_sdk_types.Context, signID string)
DeleteMultisigSign calls DeleteMultisigSignFunc.
func (*TSSKeeperMock) DeleteMultisigSignCalls ¶
func (mock *TSSKeeperMock) DeleteMultisigSignCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SignID string }
DeleteMultisigSignCalls gets all the calls that were made to DeleteMultisigSign. Check the length with:
len(mockedTSSKeeper.DeleteMultisigSignCalls())
func (*TSSKeeperMock) DeleteSnapshotCounterForKeyID ¶
func (mock *TSSKeeperMock) DeleteSnapshotCounterForKeyID(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)
DeleteSnapshotCounterForKeyID calls DeleteSnapshotCounterForKeyIDFunc.
func (*TSSKeeperMock) DeleteSnapshotCounterForKeyIDCalls ¶
func (mock *TSSKeeperMock) DeleteSnapshotCounterForKeyIDCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
DeleteSnapshotCounterForKeyIDCalls gets all the calls that were made to DeleteSnapshotCounterForKeyID. Check the length with:
len(mockedTSSKeeper.DeleteSnapshotCounterForKeyIDCalls())
func (*TSSKeeperMock) DoesValidatorParticipateInSign ¶
func (mock *TSSKeeperMock) DoesValidatorParticipateInSign(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress) bool
DoesValidatorParticipateInSign calls DoesValidatorParticipateInSignFunc.
func (*TSSKeeperMock) DoesValidatorParticipateInSignCalls ¶
func (mock *TSSKeeperMock) DoesValidatorParticipateInSignCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string Validator github_com_cosmos_cosmos_sdk_types.ValAddress }
DoesValidatorParticipateInSignCalls gets all the calls that were made to DoesValidatorParticipateInSign. Check the length with:
len(mockedTSSKeeper.DoesValidatorParticipateInSignCalls())
func (*TSSKeeperMock) GetAvailableOperators ¶
func (mock *TSSKeeperMock) GetAvailableOperators(ctx github_com_cosmos_cosmos_sdk_types.Context, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []github_com_cosmos_cosmos_sdk_types.ValAddress
GetAvailableOperators calls GetAvailableOperatorsFunc.
func (*TSSKeeperMock) GetAvailableOperatorsCalls ¶
func (mock *TSSKeeperMock) GetAvailableOperatorsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
GetAvailableOperatorsCalls gets all the calls that were made to GetAvailableOperators. Check the length with:
len(mockedTSSKeeper.GetAvailableOperatorsCalls())
func (*TSSKeeperMock) GetCurrentKey ¶
func (mock *TSSKeeperMock) GetCurrentKey(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)
GetCurrentKey calls GetCurrentKeyFunc.
func (*TSSKeeperMock) GetCurrentKeyCalls ¶
func (mock *TSSKeeperMock) GetCurrentKeyCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole }
GetCurrentKeyCalls gets all the calls that were made to GetCurrentKey. Check the length with:
len(mockedTSSKeeper.GetCurrentKeyCalls())
func (*TSSKeeperMock) GetCurrentKeyID ¶
func (mock *TSSKeeperMock) GetCurrentKeyID(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)
GetCurrentKeyID calls GetCurrentKeyIDFunc.
func (*TSSKeeperMock) GetCurrentKeyIDCalls ¶
func (mock *TSSKeeperMock) GetCurrentKeyIDCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole }
GetCurrentKeyIDCalls gets all the calls that were made to GetCurrentKeyID. Check the length with:
len(mockedTSSKeeper.GetCurrentKeyIDCalls())
func (*TSSKeeperMock) GetExternalKeyIDs ¶
func (mock *TSSKeeperMock) GetExternalKeyIDs(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)
GetExternalKeyIDs calls GetExternalKeyIDsFunc.
func (*TSSKeeperMock) GetExternalKeyIDsCalls ¶
func (mock *TSSKeeperMock) GetExternalKeyIDsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain }
GetExternalKeyIDsCalls gets all the calls that were made to GetExternalKeyIDs. Check the length with:
len(mockedTSSKeeper.GetExternalKeyIDsCalls())
func (*TSSKeeperMock) GetExternalMultisigThreshold ¶
func (mock *TSSKeeperMock) GetExternalMultisigThreshold(ctx github_com_cosmos_cosmos_sdk_types.Context) utils.Threshold
GetExternalMultisigThreshold calls GetExternalMultisigThresholdFunc.
func (*TSSKeeperMock) GetExternalMultisigThresholdCalls ¶
func (mock *TSSKeeperMock) GetExternalMultisigThresholdCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context }
GetExternalMultisigThresholdCalls gets all the calls that were made to GetExternalMultisigThreshold. Check the length with:
len(mockedTSSKeeper.GetExternalMultisigThresholdCalls())
func (*TSSKeeperMock) GetGroupRecoveryInfo ¶
func (mock *TSSKeeperMock) GetGroupRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte
GetGroupRecoveryInfo calls GetGroupRecoveryInfoFunc.
func (*TSSKeeperMock) GetGroupRecoveryInfoCalls ¶
func (mock *TSSKeeperMock) GetGroupRecoveryInfoCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
GetGroupRecoveryInfoCalls gets all the calls that were made to GetGroupRecoveryInfo. Check the length with:
len(mockedTSSKeeper.GetGroupRecoveryInfoCalls())
func (*TSSKeeperMock) GetHeartbeatPeriodInBlocks ¶
func (mock *TSSKeeperMock) GetHeartbeatPeriodInBlocks(ctx github_com_cosmos_cosmos_sdk_types.Context) int64
GetHeartbeatPeriodInBlocks calls GetHeartbeatPeriodInBlocksFunc.
func (*TSSKeeperMock) GetHeartbeatPeriodInBlocksCalls ¶
func (mock *TSSKeeperMock) GetHeartbeatPeriodInBlocksCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context }
GetHeartbeatPeriodInBlocksCalls gets all the calls that were made to GetHeartbeatPeriodInBlocks. Check the length with:
len(mockedTSSKeeper.GetHeartbeatPeriodInBlocksCalls())
func (*TSSKeeperMock) GetInfoForSig ¶
func (mock *TSSKeeperMock) GetInfoForSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, bool)
GetInfoForSig calls GetInfoForSigFunc.
func (*TSSKeeperMock) GetInfoForSigCalls ¶
func (mock *TSSKeeperMock) GetInfoForSigCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string }
GetInfoForSigCalls gets all the calls that were made to GetInfoForSig. Check the length with:
len(mockedTSSKeeper.GetInfoForSigCalls())
func (*TSSKeeperMock) GetKey ¶
func (mock *TSSKeeperMock) GetKey(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)
GetKey calls GetKeyFunc.
func (*TSSKeeperMock) GetKeyCalls ¶
func (mock *TSSKeeperMock) GetKeyCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
GetKeyCalls gets all the calls that were made to GetKey. Check the length with:
len(mockedTSSKeeper.GetKeyCalls())
func (*TSSKeeperMock) GetKeyRequirement ¶
func (mock *TSSKeeperMock) GetKeyRequirement(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement, bool)
GetKeyRequirement calls GetKeyRequirementFunc.
func (*TSSKeeperMock) GetKeyRequirementCalls ¶
func (mock *TSSKeeperMock) GetKeyRequirementCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole KeyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType }
GetKeyRequirementCalls gets all the calls that were made to GetKeyRequirement. Check the length with:
len(mockedTSSKeeper.GetKeyRequirementCalls())
func (*TSSKeeperMock) GetKeyType ¶
func (mock *TSSKeeperMock) GetKeyType(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType
GetKeyType calls GetKeyTypeFunc.
func (*TSSKeeperMock) GetKeyTypeCalls ¶
func (mock *TSSKeeperMock) GetKeyTypeCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
GetKeyTypeCalls gets all the calls that were made to GetKeyType. Check the length with:
len(mockedTSSKeeper.GetKeyTypeCalls())
func (*TSSKeeperMock) GetMaxSimultaneousSignShares ¶
func (mock *TSSKeeperMock) GetMaxSimultaneousSignShares(ctx github_com_cosmos_cosmos_sdk_types.Context) int64
GetMaxSimultaneousSignShares calls GetMaxSimultaneousSignSharesFunc.
func (*TSSKeeperMock) GetMaxSimultaneousSignSharesCalls ¶
func (mock *TSSKeeperMock) GetMaxSimultaneousSignSharesCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context }
GetMaxSimultaneousSignSharesCalls gets all the calls that were made to GetMaxSimultaneousSignShares. Check the length with:
len(mockedTSSKeeper.GetMaxSimultaneousSignSharesCalls())
func (*TSSKeeperMock) GetMultisigKeygenInfo ¶
func (mock *TSSKeeperMock) GetMultisigKeygenInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (types.MultisigKeygenInfo, bool)
GetMultisigKeygenInfo calls GetMultisigKeygenInfoFunc.
func (*TSSKeeperMock) GetMultisigKeygenInfoCalls ¶
func (mock *TSSKeeperMock) GetMultisigKeygenInfoCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
GetMultisigKeygenInfoCalls gets all the calls that were made to GetMultisigKeygenInfo. Check the length with:
len(mockedTSSKeeper.GetMultisigKeygenInfoCalls())
func (*TSSKeeperMock) GetMultisigPubKeysByValidator ¶
func (mock *TSSKeeperMock) GetMultisigPubKeysByValidator(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, val github_com_cosmos_cosmos_sdk_types.ValAddress) ([]ecdsa.PublicKey, bool)
GetMultisigPubKeysByValidator calls GetMultisigPubKeysByValidatorFunc.
func (*TSSKeeperMock) GetMultisigPubKeysByValidatorCalls ¶
func (mock *TSSKeeperMock) GetMultisigPubKeysByValidatorCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID Val github_com_cosmos_cosmos_sdk_types.ValAddress }
GetMultisigPubKeysByValidatorCalls gets all the calls that were made to GetMultisigPubKeysByValidator. Check the length with:
len(mockedTSSKeeper.GetMultisigPubKeysByValidatorCalls())
func (*TSSKeeperMock) GetMultisigSignInfo ¶
func (mock *TSSKeeperMock) GetMultisigSignInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (types.MultisigSignInfo, bool)
GetMultisigSignInfo calls GetMultisigSignInfoFunc.
func (*TSSKeeperMock) GetMultisigSignInfoCalls ¶
func (mock *TSSKeeperMock) GetMultisigSignInfoCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string }
GetMultisigSignInfoCalls gets all the calls that were made to GetMultisigSignInfo. Check the length with:
len(mockedTSSKeeper.GetMultisigSignInfoCalls())
func (*TSSKeeperMock) GetNextKey ¶
func (mock *TSSKeeperMock) GetNextKey(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)
GetNextKey calls GetNextKeyFunc.
func (*TSSKeeperMock) GetNextKeyCalls ¶
func (mock *TSSKeeperMock) GetNextKeyCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole }
GetNextKeyCalls gets all the calls that were made to GetNextKey. Check the length with:
len(mockedTSSKeeper.GetNextKeyCalls())
func (*TSSKeeperMock) GetNextKeyID ¶
func (mock *TSSKeeperMock) GetNextKeyID(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)
GetNextKeyID calls GetNextKeyIDFunc.
func (*TSSKeeperMock) GetNextKeyIDCalls ¶
func (mock *TSSKeeperMock) GetNextKeyIDCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole }
GetNextKeyIDCalls gets all the calls that were made to GetNextKeyID. Check the length with:
len(mockedTSSKeeper.GetNextKeyIDCalls())
func (*TSSKeeperMock) GetOldActiveKeys ¶
func (mock *TSSKeeperMock) GetOldActiveKeys(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.Key, error)
GetOldActiveKeys calls GetOldActiveKeysFunc.
func (*TSSKeeperMock) GetOldActiveKeysCalls ¶
func (mock *TSSKeeperMock) GetOldActiveKeysCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole }
GetOldActiveKeysCalls gets all the calls that were made to GetOldActiveKeys. Check the length with:
len(mockedTSSKeeper.GetOldActiveKeysCalls())
func (*TSSKeeperMock) GetParams ¶
func (mock *TSSKeeperMock) GetParams(ctx github_com_cosmos_cosmos_sdk_types.Context) types.Params
GetParams calls GetParamsFunc.
func (*TSSKeeperMock) GetParamsCalls ¶
func (mock *TSSKeeperMock) GetParamsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context }
GetParamsCalls gets all the calls that were made to GetParams. Check the length with:
len(mockedTSSKeeper.GetParamsCalls())
func (*TSSKeeperMock) GetPrivateRecoveryInfo ¶
func (mock *TSSKeeperMock) GetPrivateRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte
GetPrivateRecoveryInfo calls GetPrivateRecoveryInfoFunc.
func (*TSSKeeperMock) GetPrivateRecoveryInfoCalls ¶
func (mock *TSSKeeperMock) GetPrivateRecoveryInfoCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Sender github_com_cosmos_cosmos_sdk_types.ValAddress KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
GetPrivateRecoveryInfoCalls gets all the calls that were made to GetPrivateRecoveryInfo. Check the length with:
len(mockedTSSKeeper.GetPrivateRecoveryInfoCalls())
func (*TSSKeeperMock) GetRouter ¶
func (mock *TSSKeeperMock) GetRouter() types.Router
GetRouter calls GetRouterFunc.
func (*TSSKeeperMock) GetRouterCalls ¶
func (mock *TSSKeeperMock) GetRouterCalls() []struct { }
GetRouterCalls gets all the calls that were made to GetRouter. Check the length with:
len(mockedTSSKeeper.GetRouterCalls())
func (*TSSKeeperMock) GetSig ¶
func (mock *TSSKeeperMock) GetSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.Signature, github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus)
GetSig calls GetSigFunc.
func (*TSSKeeperMock) GetSigCalls ¶
func (mock *TSSKeeperMock) GetSigCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string }
GetSigCalls gets all the calls that were made to GetSig. Check the length with:
len(mockedTSSKeeper.GetSigCalls())
func (*TSSKeeperMock) GetSignParticipants ¶
func (mock *TSSKeeperMock) GetSignParticipants(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []string
GetSignParticipants calls GetSignParticipantsFunc.
func (*TSSKeeperMock) GetSignParticipantsAsJSON ¶
func (mock *TSSKeeperMock) GetSignParticipantsAsJSON(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte
GetSignParticipantsAsJSON calls GetSignParticipantsAsJSONFunc.
func (*TSSKeeperMock) GetSignParticipantsAsJSONCalls ¶
func (mock *TSSKeeperMock) GetSignParticipantsAsJSONCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string }
GetSignParticipantsAsJSONCalls gets all the calls that were made to GetSignParticipantsAsJSON. Check the length with:
len(mockedTSSKeeper.GetSignParticipantsAsJSONCalls())
func (*TSSKeeperMock) GetSignParticipantsCalls ¶
func (mock *TSSKeeperMock) GetSignParticipantsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string }
GetSignParticipantsCalls gets all the calls that were made to GetSignParticipants. Check the length with:
len(mockedTSSKeeper.GetSignParticipantsCalls())
func (*TSSKeeperMock) GetSignParticipantsSharesAsJSON ¶
func (mock *TSSKeeperMock) GetSignParticipantsSharesAsJSON(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte
GetSignParticipantsSharesAsJSON calls GetSignParticipantsSharesAsJSONFunc.
func (*TSSKeeperMock) GetSignParticipantsSharesAsJSONCalls ¶
func (mock *TSSKeeperMock) GetSignParticipantsSharesAsJSONCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string }
GetSignParticipantsSharesAsJSONCalls gets all the calls that were made to GetSignParticipantsSharesAsJSON. Check the length with:
len(mockedTSSKeeper.GetSignParticipantsSharesAsJSONCalls())
func (*TSSKeeperMock) GetSnapshotCounterForKeyID ¶
func (mock *TSSKeeperMock) GetSnapshotCounterForKeyID(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (int64, bool)
GetSnapshotCounterForKeyID calls GetSnapshotCounterForKeyIDFunc.
func (*TSSKeeperMock) GetSnapshotCounterForKeyIDCalls ¶
func (mock *TSSKeeperMock) GetSnapshotCounterForKeyIDCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
GetSnapshotCounterForKeyIDCalls gets all the calls that were made to GetSnapshotCounterForKeyID. Check the length with:
len(mockedTSSKeeper.GetSnapshotCounterForKeyIDCalls())
func (*TSSKeeperMock) GetSuspendedUntil ¶ added in v0.9.0
func (mock *TSSKeeperMock) GetSuspendedUntil(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress) int64
GetSuspendedUntil calls GetSuspendedUntilFunc.
func (*TSSKeeperMock) GetSuspendedUntilCalls ¶ added in v0.9.0
func (mock *TSSKeeperMock) GetSuspendedUntilCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Validator github_com_cosmos_cosmos_sdk_types.ValAddress }
GetSuspendedUntilCalls gets all the calls that were made to GetSuspendedUntil. Check the length with:
len(mockedTSSKeeper.GetSuspendedUntilCalls())
func (*TSSKeeperMock) HasKeygenStarted ¶ added in v0.8.1
func (mock *TSSKeeperMock) HasKeygenStarted(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool
HasKeygenStarted calls HasKeygenStartedFunc.
func (*TSSKeeperMock) HasKeygenStartedCalls ¶ added in v0.8.1
func (mock *TSSKeeperMock) HasKeygenStartedCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
HasKeygenStartedCalls gets all the calls that were made to HasKeygenStarted. Check the length with:
len(mockedTSSKeeper.HasKeygenStartedCalls())
func (*TSSKeeperMock) HasPrivateRecoveryInfo ¶ added in v0.9.0
func (mock *TSSKeeperMock) HasPrivateRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool
HasPrivateRecoveryInfo calls HasPrivateRecoveryInfoFunc.
func (*TSSKeeperMock) HasPrivateRecoveryInfoCalls ¶ added in v0.9.0
func (mock *TSSKeeperMock) HasPrivateRecoveryInfoCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Sender github_com_cosmos_cosmos_sdk_types.ValAddress KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
HasPrivateRecoveryInfoCalls gets all the calls that were made to HasPrivateRecoveryInfo. Check the length with:
len(mockedTSSKeeper.HasPrivateRecoveryInfoCalls())
func (*TSSKeeperMock) IsMultisigKeygenCompleted ¶
func (mock *TSSKeeperMock) IsMultisigKeygenCompleted(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool
IsMultisigKeygenCompleted calls IsMultisigKeygenCompletedFunc.
func (*TSSKeeperMock) IsMultisigKeygenCompletedCalls ¶
func (mock *TSSKeeperMock) IsMultisigKeygenCompletedCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
IsMultisigKeygenCompletedCalls gets all the calls that were made to IsMultisigKeygenCompleted. Check the length with:
len(mockedTSSKeeper.IsMultisigKeygenCompletedCalls())
func (*TSSKeeperMock) Logger ¶
func (mock *TSSKeeperMock) Logger(ctx github_com_cosmos_cosmos_sdk_types.Context) log.Logger
Logger calls LoggerFunc.
func (*TSSKeeperMock) LoggerCalls ¶
func (mock *TSSKeeperMock) LoggerCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context }
LoggerCalls gets all the calls that were made to Logger. Check the length with:
len(mockedTSSKeeper.LoggerCalls())
func (*TSSKeeperMock) PenalizeCriminal ¶
func (mock *TSSKeeperMock) PenalizeCriminal(ctx github_com_cosmos_cosmos_sdk_types.Context, criminal github_com_cosmos_cosmos_sdk_types.ValAddress, crimeType tofnd.MessageOut_CriminalList_Criminal_CrimeType)
PenalizeCriminal calls PenalizeCriminalFunc.
func (*TSSKeeperMock) PenalizeCriminalCalls ¶
func (mock *TSSKeeperMock) PenalizeCriminalCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Criminal github_com_cosmos_cosmos_sdk_types.ValAddress CrimeType tofnd.MessageOut_CriminalList_Criminal_CrimeType }
PenalizeCriminalCalls gets all the calls that were made to PenalizeCriminal. Check the length with:
len(mockedTSSKeeper.PenalizeCriminalCalls())
func (*TSSKeeperMock) RotateKey ¶
func (mock *TSSKeeperMock) RotateKey(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error
RotateKey calls RotateKeyFunc.
func (*TSSKeeperMock) RotateKeyCalls ¶
func (mock *TSSKeeperMock) RotateKeyCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain KeyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole }
RotateKeyCalls gets all the calls that were made to RotateKey. Check the length with:
len(mockedTSSKeeper.RotateKeyCalls())
func (*TSSKeeperMock) SelectSignParticipants ¶
func (mock *TSSKeeperMock) SelectSignParticipants(ctx github_com_cosmos_cosmos_sdk_types.Context, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, snap github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, keyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType) ([]github_com_axelarnetwork_axelar_core_x_snapshot_exported.Validator, []github_com_axelarnetwork_axelar_core_x_snapshot_exported.Validator, error)
SelectSignParticipants calls SelectSignParticipantsFunc.
func (*TSSKeeperMock) SelectSignParticipantsCalls ¶
func (mock *TSSKeeperMock) SelectSignParticipantsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter Info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo Snap github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot KeyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType }
SelectSignParticipantsCalls gets all the calls that were made to SelectSignParticipants. Check the length with:
len(mockedTSSKeeper.SelectSignParticipantsCalls())
func (*TSSKeeperMock) SetAvailableOperator ¶
func (mock *TSSKeeperMock) SetAvailableOperator(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)
SetAvailableOperator calls SetAvailableOperatorFunc.
func (*TSSKeeperMock) SetAvailableOperatorCalls ¶
func (mock *TSSKeeperMock) SetAvailableOperatorCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Validator github_com_cosmos_cosmos_sdk_types.ValAddress KeyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
SetAvailableOperatorCalls gets all the calls that were made to SetAvailableOperator. Check the length with:
len(mockedTSSKeeper.SetAvailableOperatorCalls())
func (*TSSKeeperMock) SetExternalKeyIDs ¶
func (mock *TSSKeeperMock) SetExternalKeyIDs(ctx github_com_cosmos_cosmos_sdk_types.Context, chain nexus.Chain, keyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)
SetExternalKeyIDs calls SetExternalKeyIDsFunc.
func (*TSSKeeperMock) SetExternalKeyIDsCalls ¶
func (mock *TSSKeeperMock) SetExternalKeyIDsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Chain nexus.Chain KeyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID }
SetExternalKeyIDsCalls gets all the calls that were made to SetExternalKeyIDs. Check the length with:
len(mockedTSSKeeper.SetExternalKeyIDsCalls())
func (*TSSKeeperMock) SetGroupRecoveryInfo ¶
func (mock *TSSKeeperMock) SetGroupRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte)
SetGroupRecoveryInfo calls SetGroupRecoveryInfoFunc.
func (*TSSKeeperMock) SetGroupRecoveryInfoCalls ¶
func (mock *TSSKeeperMock) SetGroupRecoveryInfoCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID RecoveryInfo []byte }
SetGroupRecoveryInfoCalls gets all the calls that were made to SetGroupRecoveryInfo. Check the length with:
len(mockedTSSKeeper.SetGroupRecoveryInfoCalls())
func (*TSSKeeperMock) SetInfoForSig ¶
func (mock *TSSKeeperMock) SetInfoForSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo)
SetInfoForSig calls SetInfoForSigFunc.
func (*TSSKeeperMock) SetInfoForSigCalls ¶
func (mock *TSSKeeperMock) SetInfoForSigCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string Info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo }
SetInfoForSigCalls gets all the calls that were made to SetInfoForSig. Check the length with:
len(mockedTSSKeeper.SetInfoForSigCalls())
func (*TSSKeeperMock) SetKey ¶
func (mock *TSSKeeperMock) SetKey(ctx github_com_cosmos_cosmos_sdk_types.Context, key github_com_axelarnetwork_axelar_core_x_tss_exported.Key)
SetKey calls SetKeyFunc.
func (*TSSKeeperMock) SetKeyCalls ¶
func (mock *TSSKeeperMock) SetKeyCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Key github_com_axelarnetwork_axelar_core_x_tss_exported.Key }
SetKeyCalls gets all the calls that were made to SetKey. Check the length with:
len(mockedTSSKeeper.SetKeyCalls())
func (*TSSKeeperMock) SetParams ¶
func (mock *TSSKeeperMock) SetParams(ctx github_com_cosmos_cosmos_sdk_types.Context, p types.Params)
SetParams calls SetParamsFunc.
func (*TSSKeeperMock) SetParamsCalls ¶
func (mock *TSSKeeperMock) SetParamsCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context P types.Params }
SetParamsCalls gets all the calls that were made to SetParams. Check the length with:
len(mockedTSSKeeper.SetParamsCalls())
func (*TSSKeeperMock) SetPrivateRecoveryInfo ¶
func (mock *TSSKeeperMock) SetPrivateRecoveryInfo(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte)
SetPrivateRecoveryInfo calls SetPrivateRecoveryInfoFunc.
func (*TSSKeeperMock) SetPrivateRecoveryInfoCalls ¶
func (mock *TSSKeeperMock) SetPrivateRecoveryInfoCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Sender github_com_cosmos_cosmos_sdk_types.ValAddress KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID RecoveryInfo []byte }
SetPrivateRecoveryInfoCalls gets all the calls that were made to SetPrivateRecoveryInfo. Check the length with:
len(mockedTSSKeeper.SetPrivateRecoveryInfoCalls())
func (*TSSKeeperMock) SetSig ¶
func (mock *TSSKeeperMock) SetSig(ctx github_com_cosmos_cosmos_sdk_types.Context, signature github_com_axelarnetwork_axelar_core_x_tss_exported.Signature)
SetSig calls SetSigFunc.
func (*TSSKeeperMock) SetSigCalls ¶
func (mock *TSSKeeperMock) SetSigCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Signature github_com_axelarnetwork_axelar_core_x_tss_exported.Signature }
SetSigCalls gets all the calls that were made to SetSig. Check the length with:
len(mockedTSSKeeper.SetSigCalls())
func (*TSSKeeperMock) SetSigStatus ¶
func (mock *TSSKeeperMock) SetSigStatus(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, status github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus)
SetSigStatus calls SetSigStatusFunc.
func (*TSSKeeperMock) SetSigStatusCalls ¶
func (mock *TSSKeeperMock) SetSigStatusCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string Status github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus }
SetSigStatusCalls gets all the calls that were made to SetSigStatus. Check the length with:
len(mockedTSSKeeper.SetSigStatusCalls())
func (*TSSKeeperMock) StartKeygen ¶
func (mock *TSSKeeperMock) StartKeygen(ctx github_com_cosmos_cosmos_sdk_types.Context, voter types.Voter, keyInfo types.KeyInfo, snapshot github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot) error
StartKeygen calls StartKeygenFunc.
func (*TSSKeeperMock) StartKeygenCalls ¶
func (mock *TSSKeeperMock) StartKeygenCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Voter types.Voter KeyInfo types.KeyInfo Snapshot github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot }
StartKeygenCalls gets all the calls that were made to StartKeygen. Check the length with:
len(mockedTSSKeeper.StartKeygenCalls())
func (*TSSKeeperMock) StartSign ¶
func (mock *TSSKeeperMock) StartSign(ctx github_com_cosmos_cosmos_sdk_types.Context, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, voter interface { InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error }) error
StartSign calls StartSignFunc.
func (*TSSKeeperMock) StartSignCalls ¶
func (mock *TSSKeeperMock) StartSignCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo Snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter Voter interface { InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error } }
StartSignCalls gets all the calls that were made to StartSign. Check the length with:
len(mockedTSSKeeper.StartSignCalls())
func (*TSSKeeperMock) SubmitPubKeys ¶
func (mock *TSSKeeperMock) SubmitPubKeys(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, validator github_com_cosmos_cosmos_sdk_types.ValAddress, pubKeys ...[]byte) bool
SubmitPubKeys calls SubmitPubKeysFunc.
func (*TSSKeeperMock) SubmitPubKeysCalls ¶
func (mock *TSSKeeperMock) SubmitPubKeysCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID Validator github_com_cosmos_cosmos_sdk_types.ValAddress PubKeys [][]byte }
SubmitPubKeysCalls gets all the calls that were made to SubmitPubKeys. Check the length with:
len(mockedTSSKeeper.SubmitPubKeysCalls())
func (*TSSKeeperMock) SubmitSignatures ¶
func (mock *TSSKeeperMock) SubmitSignatures(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress, sigs ...[]byte) bool
SubmitSignatures calls SubmitSignaturesFunc.
func (*TSSKeeperMock) SubmitSignaturesCalls ¶
func (mock *TSSKeeperMock) SubmitSignaturesCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context SigID string Validator github_com_cosmos_cosmos_sdk_types.ValAddress Sigs [][]byte }
SubmitSignaturesCalls gets all the calls that were made to SubmitSignatures. Check the length with:
len(mockedTSSKeeper.SubmitSignaturesCalls())
type TofndClientMock ¶
type TofndClientMock struct { // KeyPresenceFunc mocks the KeyPresence method. KeyPresenceFunc func(ctx context.Context, in *tofnd.KeyPresenceRequest, opts ...grpc.CallOption) (*tofnd.KeyPresenceResponse, error) // KeygenFunc mocks the Keygen method. KeygenFunc func(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_KeygenClient, error) // RecoverFunc mocks the Recover method. RecoverFunc func(ctx context.Context, in *tofnd.RecoverRequest, opts ...grpc.CallOption) (*tofnd.RecoverResponse, error) // SignFunc mocks the Sign method. SignFunc func(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_SignClient, error) // contains filtered or unexported fields }
TofndClientMock is a mock implementation of types.TofndClient.
func TestSomethingThatUsesTofndClient(t *testing.T) { // make and configure a mocked types.TofndClient mockedTofndClient := &TofndClientMock{ KeyPresenceFunc: func(ctx context.Context, in *tofnd.KeyPresenceRequest, opts ...grpc.CallOption) (*tofnd.KeyPresenceResponse, error) { panic("mock out the KeyPresence method") }, KeygenFunc: func(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_KeygenClient, error) { panic("mock out the Keygen method") }, RecoverFunc: func(ctx context.Context, in *tofnd.RecoverRequest, opts ...grpc.CallOption) (*tofnd.RecoverResponse, error) { panic("mock out the Recover method") }, SignFunc: func(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_SignClient, error) { panic("mock out the Sign method") }, } // use mockedTofndClient in code that requires types.TofndClient // and then make assertions. }
func (*TofndClientMock) KeyPresence ¶
func (mock *TofndClientMock) KeyPresence(ctx context.Context, in *tofnd.KeyPresenceRequest, opts ...grpc.CallOption) (*tofnd.KeyPresenceResponse, error)
KeyPresence calls KeyPresenceFunc.
func (*TofndClientMock) KeyPresenceCalls ¶
func (mock *TofndClientMock) KeyPresenceCalls() []struct { Ctx context.Context In *tofnd.KeyPresenceRequest Opts []grpc.CallOption }
KeyPresenceCalls gets all the calls that were made to KeyPresence. Check the length with:
len(mockedTofndClient.KeyPresenceCalls())
func (*TofndClientMock) Keygen ¶
func (mock *TofndClientMock) Keygen(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_KeygenClient, error)
Keygen calls KeygenFunc.
func (*TofndClientMock) KeygenCalls ¶
func (mock *TofndClientMock) KeygenCalls() []struct { Ctx context.Context Opts []grpc.CallOption }
KeygenCalls gets all the calls that were made to Keygen. Check the length with:
len(mockedTofndClient.KeygenCalls())
func (*TofndClientMock) Recover ¶
func (mock *TofndClientMock) Recover(ctx context.Context, in *tofnd.RecoverRequest, opts ...grpc.CallOption) (*tofnd.RecoverResponse, error)
Recover calls RecoverFunc.
func (*TofndClientMock) RecoverCalls ¶
func (mock *TofndClientMock) RecoverCalls() []struct { Ctx context.Context In *tofnd.RecoverRequest Opts []grpc.CallOption }
RecoverCalls gets all the calls that were made to Recover. Check the length with:
len(mockedTofndClient.RecoverCalls())
func (*TofndClientMock) Sign ¶
func (mock *TofndClientMock) Sign(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_SignClient, error)
Sign calls SignFunc.
func (*TofndClientMock) SignCalls ¶
func (mock *TofndClientMock) SignCalls() []struct { Ctx context.Context Opts []grpc.CallOption }
SignCalls gets all the calls that were made to Sign. Check the length with:
len(mockedTofndClient.SignCalls())
type TofndKeyGenClientMock ¶
type TofndKeyGenClientMock struct { // CloseSendFunc mocks the CloseSend method. CloseSendFunc func() error // ContextFunc mocks the Context method. ContextFunc func() context.Context // HeaderFunc mocks the Header method. HeaderFunc func() (metadata.MD, error) // RecvFunc mocks the Recv method. RecvFunc func() (*tofnd.MessageOut, error) // RecvMsgFunc mocks the RecvMsg method. RecvMsgFunc func(m interface{}) error // SendFunc mocks the Send method. SendFunc func(messageIn *tofnd.MessageIn) error // SendMsgFunc mocks the SendMsg method. SendMsgFunc func(m interface{}) error // TrailerFunc mocks the Trailer method. TrailerFunc func() metadata.MD // contains filtered or unexported fields }
TofndKeyGenClientMock is a mock implementation of types.TofndKeyGenClient.
func TestSomethingThatUsesTofndKeyGenClient(t *testing.T) { // make and configure a mocked types.TofndKeyGenClient mockedTofndKeyGenClient := &TofndKeyGenClientMock{ CloseSendFunc: func() error { panic("mock out the CloseSend method") }, ContextFunc: func() context.Context { panic("mock out the Context method") }, HeaderFunc: func() (metadata.MD, error) { panic("mock out the Header method") }, RecvFunc: func() (*tofnd.MessageOut, error) { panic("mock out the Recv method") }, RecvMsgFunc: func(m interface{}) error { panic("mock out the RecvMsg method") }, SendFunc: func(messageIn *tofnd.MessageIn) error { panic("mock out the Send method") }, SendMsgFunc: func(m interface{}) error { panic("mock out the SendMsg method") }, TrailerFunc: func() metadata.MD { panic("mock out the Trailer method") }, } // use mockedTofndKeyGenClient in code that requires types.TofndKeyGenClient // and then make assertions. }
func (*TofndKeyGenClientMock) CloseSend ¶
func (mock *TofndKeyGenClientMock) CloseSend() error
CloseSend calls CloseSendFunc.
func (*TofndKeyGenClientMock) CloseSendCalls ¶
func (mock *TofndKeyGenClientMock) CloseSendCalls() []struct { }
CloseSendCalls gets all the calls that were made to CloseSend. Check the length with:
len(mockedTofndKeyGenClient.CloseSendCalls())
func (*TofndKeyGenClientMock) Context ¶
func (mock *TofndKeyGenClientMock) Context() context.Context
Context calls ContextFunc.
func (*TofndKeyGenClientMock) ContextCalls ¶
func (mock *TofndKeyGenClientMock) ContextCalls() []struct { }
ContextCalls gets all the calls that were made to Context. Check the length with:
len(mockedTofndKeyGenClient.ContextCalls())
func (*TofndKeyGenClientMock) Header ¶
func (mock *TofndKeyGenClientMock) Header() (metadata.MD, error)
Header calls HeaderFunc.
func (*TofndKeyGenClientMock) HeaderCalls ¶
func (mock *TofndKeyGenClientMock) HeaderCalls() []struct { }
HeaderCalls gets all the calls that were made to Header. Check the length with:
len(mockedTofndKeyGenClient.HeaderCalls())
func (*TofndKeyGenClientMock) Recv ¶
func (mock *TofndKeyGenClientMock) Recv() (*tofnd.MessageOut, error)
Recv calls RecvFunc.
func (*TofndKeyGenClientMock) RecvCalls ¶
func (mock *TofndKeyGenClientMock) RecvCalls() []struct { }
RecvCalls gets all the calls that were made to Recv. Check the length with:
len(mockedTofndKeyGenClient.RecvCalls())
func (*TofndKeyGenClientMock) RecvMsg ¶
func (mock *TofndKeyGenClientMock) RecvMsg(m interface{}) error
RecvMsg calls RecvMsgFunc.
func (*TofndKeyGenClientMock) RecvMsgCalls ¶
func (mock *TofndKeyGenClientMock) RecvMsgCalls() []struct { M interface{} }
RecvMsgCalls gets all the calls that were made to RecvMsg. Check the length with:
len(mockedTofndKeyGenClient.RecvMsgCalls())
func (*TofndKeyGenClientMock) Send ¶
func (mock *TofndKeyGenClientMock) Send(messageIn *tofnd.MessageIn) error
Send calls SendFunc.
func (*TofndKeyGenClientMock) SendCalls ¶
func (mock *TofndKeyGenClientMock) SendCalls() []struct { MessageIn *tofnd.MessageIn }
SendCalls gets all the calls that were made to Send. Check the length with:
len(mockedTofndKeyGenClient.SendCalls())
func (*TofndKeyGenClientMock) SendMsg ¶
func (mock *TofndKeyGenClientMock) SendMsg(m interface{}) error
SendMsg calls SendMsgFunc.
func (*TofndKeyGenClientMock) SendMsgCalls ¶
func (mock *TofndKeyGenClientMock) SendMsgCalls() []struct { M interface{} }
SendMsgCalls gets all the calls that were made to SendMsg. Check the length with:
len(mockedTofndKeyGenClient.SendMsgCalls())
func (*TofndKeyGenClientMock) Trailer ¶
func (mock *TofndKeyGenClientMock) Trailer() metadata.MD
Trailer calls TrailerFunc.
func (*TofndKeyGenClientMock) TrailerCalls ¶
func (mock *TofndKeyGenClientMock) TrailerCalls() []struct { }
TrailerCalls gets all the calls that were made to Trailer. Check the length with:
len(mockedTofndKeyGenClient.TrailerCalls())
type TofndSignClientMock ¶
type TofndSignClientMock struct { // CloseSendFunc mocks the CloseSend method. CloseSendFunc func() error // ContextFunc mocks the Context method. ContextFunc func() context.Context // HeaderFunc mocks the Header method. HeaderFunc func() (metadata.MD, error) // RecvFunc mocks the Recv method. RecvFunc func() (*tofnd.MessageOut, error) // RecvMsgFunc mocks the RecvMsg method. RecvMsgFunc func(m interface{}) error // SendFunc mocks the Send method. SendFunc func(messageIn *tofnd.MessageIn) error // SendMsgFunc mocks the SendMsg method. SendMsgFunc func(m interface{}) error // TrailerFunc mocks the Trailer method. TrailerFunc func() metadata.MD // contains filtered or unexported fields }
TofndSignClientMock is a mock implementation of types.TofndSignClient.
func TestSomethingThatUsesTofndSignClient(t *testing.T) { // make and configure a mocked types.TofndSignClient mockedTofndSignClient := &TofndSignClientMock{ CloseSendFunc: func() error { panic("mock out the CloseSend method") }, ContextFunc: func() context.Context { panic("mock out the Context method") }, HeaderFunc: func() (metadata.MD, error) { panic("mock out the Header method") }, RecvFunc: func() (*tofnd.MessageOut, error) { panic("mock out the Recv method") }, RecvMsgFunc: func(m interface{}) error { panic("mock out the RecvMsg method") }, SendFunc: func(messageIn *tofnd.MessageIn) error { panic("mock out the Send method") }, SendMsgFunc: func(m interface{}) error { panic("mock out the SendMsg method") }, TrailerFunc: func() metadata.MD { panic("mock out the Trailer method") }, } // use mockedTofndSignClient in code that requires types.TofndSignClient // and then make assertions. }
func (*TofndSignClientMock) CloseSend ¶
func (mock *TofndSignClientMock) CloseSend() error
CloseSend calls CloseSendFunc.
func (*TofndSignClientMock) CloseSendCalls ¶
func (mock *TofndSignClientMock) CloseSendCalls() []struct { }
CloseSendCalls gets all the calls that were made to CloseSend. Check the length with:
len(mockedTofndSignClient.CloseSendCalls())
func (*TofndSignClientMock) Context ¶
func (mock *TofndSignClientMock) Context() context.Context
Context calls ContextFunc.
func (*TofndSignClientMock) ContextCalls ¶
func (mock *TofndSignClientMock) ContextCalls() []struct { }
ContextCalls gets all the calls that were made to Context. Check the length with:
len(mockedTofndSignClient.ContextCalls())
func (*TofndSignClientMock) Header ¶
func (mock *TofndSignClientMock) Header() (metadata.MD, error)
Header calls HeaderFunc.
func (*TofndSignClientMock) HeaderCalls ¶
func (mock *TofndSignClientMock) HeaderCalls() []struct { }
HeaderCalls gets all the calls that were made to Header. Check the length with:
len(mockedTofndSignClient.HeaderCalls())
func (*TofndSignClientMock) Recv ¶
func (mock *TofndSignClientMock) Recv() (*tofnd.MessageOut, error)
Recv calls RecvFunc.
func (*TofndSignClientMock) RecvCalls ¶
func (mock *TofndSignClientMock) RecvCalls() []struct { }
RecvCalls gets all the calls that were made to Recv. Check the length with:
len(mockedTofndSignClient.RecvCalls())
func (*TofndSignClientMock) RecvMsg ¶
func (mock *TofndSignClientMock) RecvMsg(m interface{}) error
RecvMsg calls RecvMsgFunc.
func (*TofndSignClientMock) RecvMsgCalls ¶
func (mock *TofndSignClientMock) RecvMsgCalls() []struct { M interface{} }
RecvMsgCalls gets all the calls that were made to RecvMsg. Check the length with:
len(mockedTofndSignClient.RecvMsgCalls())
func (*TofndSignClientMock) Send ¶
func (mock *TofndSignClientMock) Send(messageIn *tofnd.MessageIn) error
Send calls SendFunc.
func (*TofndSignClientMock) SendCalls ¶
func (mock *TofndSignClientMock) SendCalls() []struct { MessageIn *tofnd.MessageIn }
SendCalls gets all the calls that were made to Send. Check the length with:
len(mockedTofndSignClient.SendCalls())
func (*TofndSignClientMock) SendMsg ¶
func (mock *TofndSignClientMock) SendMsg(m interface{}) error
SendMsg calls SendMsgFunc.
func (*TofndSignClientMock) SendMsgCalls ¶
func (mock *TofndSignClientMock) SendMsgCalls() []struct { M interface{} }
SendMsgCalls gets all the calls that were made to SendMsg. Check the length with:
len(mockedTofndSignClient.SendMsgCalls())
func (*TofndSignClientMock) Trailer ¶
func (mock *TofndSignClientMock) Trailer() metadata.MD
Trailer calls TrailerFunc.
func (*TofndSignClientMock) TrailerCalls ¶
func (mock *TofndSignClientMock) TrailerCalls() []struct { }
TrailerCalls gets all the calls that were made to Trailer. Check the length with:
len(mockedTofndSignClient.TrailerCalls())
type VoterMock ¶
type VoterMock struct { // GetPollFunc mocks the GetPoll method. GetPollFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, pollKey exported1.PollKey) exported1.Poll // InitializePollWithSnapshotFunc mocks the InitializePollWithSnapshot method. InitializePollWithSnapshotFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error // contains filtered or unexported fields }
VoterMock is a mock implementation of types.Voter.
func TestSomethingThatUsesVoter(t *testing.T) { // make and configure a mocked types.Voter mockedVoter := &VoterMock{ GetPollFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, pollKey exported1.PollKey) exported1.Poll { panic("mock out the GetPoll method") }, InitializePollWithSnapshotFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error { panic("mock out the InitializePollWithSnapshot method") }, } // use mockedVoter in code that requires types.Voter // and then make assertions. }
func (*VoterMock) GetPoll ¶
func (mock *VoterMock) GetPoll(ctx github_com_cosmos_cosmos_sdk_types.Context, pollKey exported1.PollKey) exported1.Poll
GetPoll calls GetPollFunc.
func (*VoterMock) GetPollCalls ¶
func (mock *VoterMock) GetPollCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context PollKey exported1.PollKey }
GetPollCalls gets all the calls that were made to GetPoll. Check the length with:
len(mockedVoter.GetPollCalls())
func (*VoterMock) InitializePollWithSnapshot ¶
func (mock *VoterMock) InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error
InitializePollWithSnapshot calls InitializePollWithSnapshotFunc.
func (*VoterMock) InitializePollWithSnapshotCalls ¶
func (mock *VoterMock) InitializePollWithSnapshotCalls() []struct { Ctx github_com_cosmos_cosmos_sdk_types.Context Key exported1.PollKey SnapshotSeqNo int64 PollProperties []exported1.PollProperty }
InitializePollWithSnapshotCalls gets all the calls that were made to InitializePollWithSnapshot. Check the length with:
len(mockedVoter.InitializePollWithSnapshotCalls())