mock

package
v7.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

// Code generated by MockGen. DO NOT EDIT.

Interfaces from source: x/cork/types/expected_keepers.go - StakingKeeper - GravityKeeper

Interfaces from source: github.com/cosmos/cosmos-sdk/x/staking/types/exported.go - DelegatorI - ValidatorI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDelegationI

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

MockDelegationI is a mock of DelegationI interface.

func NewMockDelegationI

func NewMockDelegationI(ctrl *gomock.Controller) *MockDelegationI

NewMockDelegationI creates a new mock instance.

func (*MockDelegationI) EXPECT

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

func (*MockDelegationI) GetDelegatorAddr

func (m *MockDelegationI) GetDelegatorAddr() sdk.AccAddress

GetDelegatorAddr mocks base method.

func (*MockDelegationI) GetShares

func (m *MockDelegationI) GetShares() sdk.Dec

GetShares mocks base method.

func (*MockDelegationI) GetValidatorAddr

func (m *MockDelegationI) GetValidatorAddr() sdk.ValAddress

GetValidatorAddr mocks base method.

type MockDelegationIMockRecorder

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

MockDelegationIMockRecorder is the mock recorder for MockDelegationI.

func (*MockDelegationIMockRecorder) GetDelegatorAddr

func (mr *MockDelegationIMockRecorder) GetDelegatorAddr() *gomock.Call

GetDelegatorAddr indicates an expected call of GetDelegatorAddr.

func (*MockDelegationIMockRecorder) GetShares

func (mr *MockDelegationIMockRecorder) GetShares() *gomock.Call

GetShares indicates an expected call of GetShares.

func (*MockDelegationIMockRecorder) GetValidatorAddr

func (mr *MockDelegationIMockRecorder) GetValidatorAddr() *gomock.Call

GetValidatorAddr indicates an expected call of GetValidatorAddr.

type MockGravityKeeper

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

MockGravityKeeper is a mock of GravityKeeper interface.

func NewMockGravityKeeper

func NewMockGravityKeeper(ctrl *gomock.Controller) *MockGravityKeeper

NewMockGravityKeeper creates a new mock instance.

func (*MockGravityKeeper) CreateContractCallTx

func (m *MockGravityKeeper) CreateContractCallTx(ctx types.Context, invalidationNonce uint64, invalidationScope bytes.HexBytes, address common.Address, payload []byte, tokens, fees []types1.ERC20Token) *types1.ContractCallTx

CreateContractCallTx mocks base method.

func (*MockGravityKeeper) EXPECT

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

func (*MockGravityKeeper) GetEthereumOrchestratorAddress

func (m *MockGravityKeeper) GetEthereumOrchestratorAddress(ctx types.Context, ethAddr common.Address) types.AccAddress

GetEthereumOrchestratorAddress mocks base method.

func (*MockGravityKeeper) GetOrchestratorValidatorAddress

func (m *MockGravityKeeper) GetOrchestratorValidatorAddress(ctx types.Context, orchAddr types.AccAddress) types.ValAddress

GetOrchestratorValidatorAddress mocks base method.

func (*MockGravityKeeper) GetValidatorEthereumAddress

func (m *MockGravityKeeper) GetValidatorEthereumAddress(ctx types.Context, valAddr types.ValAddress) common.Address

GetValidatorEthereumAddress mocks base method.

func (*MockGravityKeeper) SetOrchestratorValidatorAddress

func (m *MockGravityKeeper) SetOrchestratorValidatorAddress(ctx types.Context, val types.ValAddress, orchAddr types.AccAddress)

SetOrchestratorValidatorAddress mocks base method.

func (*MockGravityKeeper) SetOutgoingTx

func (m *MockGravityKeeper) SetOutgoingTx(ctx types.Context, outgoing types1.OutgoingTx)

SetOutgoingTx mocks base method.

type MockGravityKeeperMockRecorder

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

MockGravityKeeperMockRecorder is the mock recorder for MockGravityKeeper.

func (*MockGravityKeeperMockRecorder) CreateContractCallTx

func (mr *MockGravityKeeperMockRecorder) CreateContractCallTx(ctx, invalidationNonce, invalidationScope, address, payload, tokens, fees interface{}) *gomock.Call

CreateContractCallTx indicates an expected call of CreateContractCallTx.

func (*MockGravityKeeperMockRecorder) GetEthereumOrchestratorAddress

func (mr *MockGravityKeeperMockRecorder) GetEthereumOrchestratorAddress(ctx, ethAddr interface{}) *gomock.Call

GetEthereumOrchestratorAddress indicates an expected call of GetEthereumOrchestratorAddress.

func (*MockGravityKeeperMockRecorder) GetOrchestratorValidatorAddress

func (mr *MockGravityKeeperMockRecorder) GetOrchestratorValidatorAddress(ctx, orchAddr interface{}) *gomock.Call

GetOrchestratorValidatorAddress indicates an expected call of GetOrchestratorValidatorAddress.

func (*MockGravityKeeperMockRecorder) GetValidatorEthereumAddress

func (mr *MockGravityKeeperMockRecorder) GetValidatorEthereumAddress(ctx, valAddr interface{}) *gomock.Call

GetValidatorEthereumAddress indicates an expected call of GetValidatorEthereumAddress.

func (*MockGravityKeeperMockRecorder) SetOrchestratorValidatorAddress

func (mr *MockGravityKeeperMockRecorder) SetOrchestratorValidatorAddress(ctx, val, orchAddr interface{}) *gomock.Call

SetOrchestratorValidatorAddress indicates an expected call of SetOrchestratorValidatorAddress.

func (*MockGravityKeeperMockRecorder) SetOutgoingTx

func (mr *MockGravityKeeperMockRecorder) SetOutgoingTx(ctx, outgoing interface{}) *gomock.Call

SetOutgoingTx indicates an expected call of SetOutgoingTx.

type MockPubsubKeeper

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

MockPubsubKeeper is a mock of PubsubKeeper interface.

func NewMockPubsubKeeper

func NewMockPubsubKeeper(ctrl *gomock.Controller) *MockPubsubKeeper

NewMockPubsubKeeper creates a new mock instance.

func (*MockPubsubKeeper) DeleteDefaultSubscription

func (m *MockPubsubKeeper) DeleteDefaultSubscription(ctx types.Context, subscriptionID string)

DeleteDefaultSubscription mocks base method.

func (*MockPubsubKeeper) EXPECT

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

func (*MockPubsubKeeper) GetPublisher

func (m *MockPubsubKeeper) GetPublisher(ctx types.Context, publisherDomain string) (types2.Publisher, bool)

GetPublisher mocks base method.

func (*MockPubsubKeeper) SetDefaultSubscription

func (m *MockPubsubKeeper) SetDefaultSubscription(ctx types.Context, defaultSubscription types2.DefaultSubscription)

SetDefaultSubscription mocks base method.

type MockPubsubKeeperMockRecorder

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

MockPubsubKeeperMockRecorder is the mock recorder for MockPubsubKeeper.

func (*MockPubsubKeeperMockRecorder) DeleteDefaultSubscription

func (mr *MockPubsubKeeperMockRecorder) DeleteDefaultSubscription(ctx, subscriptionID interface{}) *gomock.Call

DeleteDefaultSubscription indicates an expected call of DeleteDefaultSubscription.

func (*MockPubsubKeeperMockRecorder) GetPublisher

func (mr *MockPubsubKeeperMockRecorder) GetPublisher(ctx, publisherDomain interface{}) *gomock.Call

GetPublisher indicates an expected call of GetPublisher.

func (*MockPubsubKeeperMockRecorder) SetDefaultSubscription

func (mr *MockPubsubKeeperMockRecorder) SetDefaultSubscription(ctx, defaultSubscription interface{}) *gomock.Call

SetDefaultSubscription indicates an expected call of SetDefaultSubscription.

type MockStakingKeeper

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

MockStakingKeeper is a mock of StakingKeeper interface.

func NewMockStakingKeeper

func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper

NewMockStakingKeeper creates a new mock instance.

func (*MockStakingKeeper) EXPECT

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

func (*MockStakingKeeper) GetBondedValidatorsByPower

func (m *MockStakingKeeper) GetBondedValidatorsByPower(ctx types.Context) []types0.Validator

GetBondedValidatorsByPower mocks base method.

func (*MockStakingKeeper) GetLastTotalPower

func (m *MockStakingKeeper) GetLastTotalPower(ctx types.Context) math.Int

GetLastTotalPower mocks base method.

func (*MockStakingKeeper) GetLastValidatorPower

func (m *MockStakingKeeper) GetLastValidatorPower(ctx types.Context, operator types.ValAddress) int64

GetLastValidatorPower mocks base method.

func (*MockStakingKeeper) IterateBondedValidatorsByPower

func (m *MockStakingKeeper) IterateBondedValidatorsByPower(arg0 types.Context, arg1 func(int64, types0.ValidatorI) bool)

IterateBondedValidatorsByPower mocks base method.

func (*MockStakingKeeper) IterateLastValidators

func (m *MockStakingKeeper) IterateLastValidators(arg0 types.Context, arg1 func(int64, types0.ValidatorI) bool)

IterateLastValidators mocks base method.

func (*MockStakingKeeper) IterateValidators

func (m *MockStakingKeeper) IterateValidators(arg0 types.Context, arg1 func(int64, types0.ValidatorI) bool)

IterateValidators mocks base method.

func (*MockStakingKeeper) Jail

func (m *MockStakingKeeper) Jail(arg0 types.Context, arg1 types.ConsAddress)

Jail mocks base method.

func (*MockStakingKeeper) PowerReduction

func (m *MockStakingKeeper) PowerReduction(ctx types.Context) math.Int

PowerReduction mocks base method.

func (*MockStakingKeeper) Slash

func (m *MockStakingKeeper) Slash(arg0 types.Context, arg1 types.ConsAddress, arg2, arg3 int64, arg4 types.Dec) math.Int

Slash mocks base method.

func (*MockStakingKeeper) Validator

func (m *MockStakingKeeper) Validator(arg0 types.Context, arg1 types.ValAddress) types0.ValidatorI

Validator mocks base method.

func (*MockStakingKeeper) ValidatorByConsAddr

func (m *MockStakingKeeper) ValidatorByConsAddr(arg0 types.Context, arg1 types.ConsAddress) types0.ValidatorI

ValidatorByConsAddr mocks base method.

type MockStakingKeeperMockRecorder

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

MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.

func (*MockStakingKeeperMockRecorder) GetBondedValidatorsByPower

func (mr *MockStakingKeeperMockRecorder) GetBondedValidatorsByPower(ctx interface{}) *gomock.Call

GetBondedValidatorsByPower indicates an expected call of GetBondedValidatorsByPower.

func (*MockStakingKeeperMockRecorder) GetLastTotalPower

func (mr *MockStakingKeeperMockRecorder) GetLastTotalPower(ctx interface{}) *gomock.Call

GetLastTotalPower indicates an expected call of GetLastTotalPower.

func (*MockStakingKeeperMockRecorder) GetLastValidatorPower

func (mr *MockStakingKeeperMockRecorder) GetLastValidatorPower(ctx, operator interface{}) *gomock.Call

GetLastValidatorPower indicates an expected call of GetLastValidatorPower.

func (*MockStakingKeeperMockRecorder) IterateBondedValidatorsByPower

func (mr *MockStakingKeeperMockRecorder) IterateBondedValidatorsByPower(arg0, arg1 interface{}) *gomock.Call

IterateBondedValidatorsByPower indicates an expected call of IterateBondedValidatorsByPower.

func (*MockStakingKeeperMockRecorder) IterateLastValidators

func (mr *MockStakingKeeperMockRecorder) IterateLastValidators(arg0, arg1 interface{}) *gomock.Call

IterateLastValidators indicates an expected call of IterateLastValidators.

func (*MockStakingKeeperMockRecorder) IterateValidators

func (mr *MockStakingKeeperMockRecorder) IterateValidators(arg0, arg1 interface{}) *gomock.Call

IterateValidators indicates an expected call of IterateValidators.

func (*MockStakingKeeperMockRecorder) Jail

func (mr *MockStakingKeeperMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call

Jail indicates an expected call of Jail.

func (*MockStakingKeeperMockRecorder) PowerReduction

func (mr *MockStakingKeeperMockRecorder) PowerReduction(ctx interface{}) *gomock.Call

PowerReduction indicates an expected call of PowerReduction.

func (*MockStakingKeeperMockRecorder) Slash

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

Slash indicates an expected call of Slash.

func (*MockStakingKeeperMockRecorder) Validator

func (mr *MockStakingKeeperMockRecorder) Validator(arg0, arg1 interface{}) *gomock.Call

Validator indicates an expected call of Validator.

func (*MockStakingKeeperMockRecorder) ValidatorByConsAddr

func (mr *MockStakingKeeperMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call

ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr.

type MockValidatorI

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

MockValidatorI is a mock of ValidatorI interface.

func NewMockValidatorI

func NewMockValidatorI(ctrl *gomock.Controller) *MockValidatorI

NewMockValidatorI creates a new mock instance.

func (*MockValidatorI) ConsPubKey

func (m *MockValidatorI) ConsPubKey() (cryptotypes.PubKey, error)

ConsPubKey mocks base method.

func (*MockValidatorI) EXPECT

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

func (*MockValidatorI) GetBondedTokens

func (m *MockValidatorI) GetBondedTokens() sdk.Int

GetBondedTokens mocks base method.

func (*MockValidatorI) GetCommission

func (m *MockValidatorI) GetCommission() sdk.Dec

GetCommission mocks base method.

func (*MockValidatorI) GetConsAddr

func (m *MockValidatorI) GetConsAddr() (sdk.ConsAddress, error)

GetConsAddr mocks base method.

func (*MockValidatorI) GetConsensusPower

func (m *MockValidatorI) GetConsensusPower(arg0 sdk.Int) int64

GetConsensusPower mocks base method.

func (*MockValidatorI) GetDelegatorShares

func (m *MockValidatorI) GetDelegatorShares() sdk.Dec

GetDelegatorShares mocks base method.

func (*MockValidatorI) GetMinSelfDelegation

func (m *MockValidatorI) GetMinSelfDelegation() sdk.Int

GetMinSelfDelegation mocks base method.

func (*MockValidatorI) GetMoniker

func (m *MockValidatorI) GetMoniker() string

GetMoniker mocks base method.

func (*MockValidatorI) GetOperator

func (m *MockValidatorI) GetOperator() sdk.ValAddress

GetOperator mocks base method.

func (*MockValidatorI) GetStatus

func (m *MockValidatorI) GetStatus() stakingtypes.BondStatus

GetStatus mocks base method.

func (*MockValidatorI) GetTokens

func (m *MockValidatorI) GetTokens() sdk.Int

GetTokens mocks base method.

func (*MockValidatorI) IsBonded

func (m *MockValidatorI) IsBonded() bool

IsBonded mocks base method.

func (*MockValidatorI) IsJailed

func (m *MockValidatorI) IsJailed() bool

IsJailed mocks base method.

func (*MockValidatorI) IsUnbonded

func (m *MockValidatorI) IsUnbonded() bool

IsUnbonded mocks base method.

func (*MockValidatorI) IsUnbonding

func (m *MockValidatorI) IsUnbonding() bool

IsUnbonding mocks base method.

func (*MockValidatorI) SharesFromTokens

func (m *MockValidatorI) SharesFromTokens(amt sdk.Int) (sdk.Dec, error)

SharesFromTokens mocks base method.

func (*MockValidatorI) SharesFromTokensTruncated

func (m *MockValidatorI) SharesFromTokensTruncated(amt sdk.Int) (sdk.Dec, error)

SharesFromTokensTruncated mocks base method.

func (*MockValidatorI) TmConsPublicKey

func (m *MockValidatorI) TmConsPublicKey() (crypto.PublicKey, error)

TmConsPublicKey mocks base method.

func (*MockValidatorI) TokensFromShares

func (m *MockValidatorI) TokensFromShares(arg0 sdk.Dec) sdk.Dec

TokensFromShares mocks base method.

func (*MockValidatorI) TokensFromSharesRoundUp

func (m *MockValidatorI) TokensFromSharesRoundUp(arg0 sdk.Dec) sdk.Dec

TokensFromSharesRoundUp mocks base method.

func (*MockValidatorI) TokensFromSharesTruncated

func (m *MockValidatorI) TokensFromSharesTruncated(arg0 sdk.Dec) sdk.Dec

TokensFromSharesTruncated mocks base method.

type MockValidatorIMockRecorder

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

MockValidatorIMockRecorder is the mock recorder for MockValidatorI.

func (*MockValidatorIMockRecorder) ConsPubKey

func (mr *MockValidatorIMockRecorder) ConsPubKey() *gomock.Call

ConsPubKey indicates an expected call of ConsPubKey.

func (*MockValidatorIMockRecorder) GetBondedTokens

func (mr *MockValidatorIMockRecorder) GetBondedTokens() *gomock.Call

GetBondedTokens indicates an expected call of GetBondedTokens.

func (*MockValidatorIMockRecorder) GetCommission

func (mr *MockValidatorIMockRecorder) GetCommission() *gomock.Call

GetCommission indicates an expected call of GetCommission.

func (*MockValidatorIMockRecorder) GetConsAddr

func (mr *MockValidatorIMockRecorder) GetConsAddr() *gomock.Call

GetConsAddr indicates an expected call of GetConsAddr.

func (*MockValidatorIMockRecorder) GetConsensusPower

func (mr *MockValidatorIMockRecorder) GetConsensusPower(arg0 interface{}) *gomock.Call

GetConsensusPower indicates an expected call of GetConsensusPower.

func (*MockValidatorIMockRecorder) GetDelegatorShares

func (mr *MockValidatorIMockRecorder) GetDelegatorShares() *gomock.Call

GetDelegatorShares indicates an expected call of GetDelegatorShares.

func (*MockValidatorIMockRecorder) GetMinSelfDelegation

func (mr *MockValidatorIMockRecorder) GetMinSelfDelegation() *gomock.Call

GetMinSelfDelegation indicates an expected call of GetMinSelfDelegation.

func (*MockValidatorIMockRecorder) GetMoniker

func (mr *MockValidatorIMockRecorder) GetMoniker() *gomock.Call

GetMoniker indicates an expected call of GetMoniker.

func (*MockValidatorIMockRecorder) GetOperator

func (mr *MockValidatorIMockRecorder) GetOperator() *gomock.Call

GetOperator indicates an expected call of GetOperator.

func (*MockValidatorIMockRecorder) GetStatus

func (mr *MockValidatorIMockRecorder) GetStatus() *gomock.Call

GetStatus indicates an expected call of GetStatus.

func (*MockValidatorIMockRecorder) GetTokens

func (mr *MockValidatorIMockRecorder) GetTokens() *gomock.Call

GetTokens indicates an expected call of GetTokens.

func (*MockValidatorIMockRecorder) IsBonded

func (mr *MockValidatorIMockRecorder) IsBonded() *gomock.Call

IsBonded indicates an expected call of IsBonded.

func (*MockValidatorIMockRecorder) IsJailed

func (mr *MockValidatorIMockRecorder) IsJailed() *gomock.Call

IsJailed indicates an expected call of IsJailed.

func (*MockValidatorIMockRecorder) IsUnbonded

func (mr *MockValidatorIMockRecorder) IsUnbonded() *gomock.Call

IsUnbonded indicates an expected call of IsUnbonded.

func (*MockValidatorIMockRecorder) IsUnbonding

func (mr *MockValidatorIMockRecorder) IsUnbonding() *gomock.Call

IsUnbonding indicates an expected call of IsUnbonding.

func (*MockValidatorIMockRecorder) SharesFromTokens

func (mr *MockValidatorIMockRecorder) SharesFromTokens(amt interface{}) *gomock.Call

SharesFromTokens indicates an expected call of SharesFromTokens.

func (*MockValidatorIMockRecorder) SharesFromTokensTruncated

func (mr *MockValidatorIMockRecorder) SharesFromTokensTruncated(amt interface{}) *gomock.Call

SharesFromTokensTruncated indicates an expected call of SharesFromTokensTruncated.

func (*MockValidatorIMockRecorder) TmConsPublicKey

func (mr *MockValidatorIMockRecorder) TmConsPublicKey() *gomock.Call

TmConsPublicKey indicates an expected call of TmConsPublicKey.

func (*MockValidatorIMockRecorder) TokensFromShares

func (mr *MockValidatorIMockRecorder) TokensFromShares(arg0 interface{}) *gomock.Call

TokensFromShares indicates an expected call of TokensFromShares.

func (*MockValidatorIMockRecorder) TokensFromSharesRoundUp

func (mr *MockValidatorIMockRecorder) TokensFromSharesRoundUp(arg0 interface{}) *gomock.Call

TokensFromSharesRoundUp indicates an expected call of TokensFromSharesRoundUp.

func (*MockValidatorIMockRecorder) TokensFromSharesTruncated

func (mr *MockValidatorIMockRecorder) TokensFromSharesTruncated(arg0 interface{}) *gomock.Call

TokensFromSharesTruncated indicates an expected call of TokensFromSharesTruncated.

Jump to

Keyboard shortcuts

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