Documentation ¶
Overview ¶
Package keeper is a generated GoMock package.
Index ¶
- func ExpectCreateClientMock(ctx sdk.Context, mocks MockedKeepers, clientID string, ...) *gomock.Call
- func ExpectGetCapabilityMock(ctx sdk.Context, mocks MockedKeepers, times int) *gomock.Call
- func ExpectLatestConsensusStateMock(ctx sdk.Context, mocks MockedKeepers, clientID string, ...) *gomock.Call
- func GetMocksForCreateConsumerClient(ctx sdk.Context, mocks *MockedKeepers, expectedChainID string, ...) []*gomock.Call
- func GetMocksForHandleSlashPacket(ctx sdk.Context, mocks MockedKeepers, ...) []*gomock.Call
- func GetMocksForMakeConsumerGenesis(ctx sdk.Context, mocks *MockedKeepers, unbondingTimeToInject time.Duration) []*gomock.Call
- func GetMocksForSendIBCPacket(ctx sdk.Context, mocks MockedKeepers, channelID string, times int) []*gomock.Call
- func GetMocksForSetConsumerChain(ctx sdk.Context, mocks *MockedKeepers, chainIDToInject string) []*gomock.Call
- func GetMocksForSlashValidator(ctx sdk.Context, mocks MockedKeepers, validator stakingtypes.Validator, ...) []*gomock.Call
- func GetMocksForStopConsumerChainWithCloseChannel(ctx sdk.Context, mocks *MockedKeepers) []*gomock.Call
- func GetNewCrossChainValidator(t *testing.T) consumertypes.CrossChainValidator
- func GetNewSlashPacketData() types.SlashPacketData
- func GetNewVSCMaturedPacketData() types.VSCMaturedPacketData
- func GetTestConsumerAdditionProp() *providertypes.ConsumerAdditionProposal
- func NewInMemConsumerKeeper(params InMemKeeperParams, mocks MockedKeepers) consumerkeeper.Keeper
- func NewInMemProviderKeeper(params InMemKeeperParams, mocks MockedKeepers) providerkeeper.Keeper
- func SetupForStoppingConsumerChain(t *testing.T, ctx sdk.Context, providerKeeper *providerkeeper.Keeper, ...)
- func TestProviderStateIsCleanedAfterConsumerChainIsStopped(t *testing.T, ctx sdk.Context, providerKeeper providerkeeper.Keeper, ...)
- type InMemKeeperParams
- type MockAccountKeeper
- type MockAccountKeeperMockRecorder
- type MockBankKeeper
- func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
- func (m *MockBankKeeper) GetAllBalances(ctx types0.Context, addr types0.AccAddress) types0.Coins
- func (m *MockBankKeeper) GetBalance(ctx types0.Context, addr types0.AccAddress, denom string) types0.Coin
- func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx types0.Context, senderModule, recipientModule string, amt types0.Coins) error
- type MockBankKeeperMockRecorder
- func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call
- type MockChannelKeeper
- func (m *MockChannelKeeper) ChanCloseInit(ctx types0.Context, portID, channelID string, chanCap *types2.Capability) error
- func (m *MockChannelKeeper) EXPECT() *MockChannelKeeperMockRecorder
- func (m *MockChannelKeeper) GetChannel(ctx types0.Context, srcPort, srcChan string) (types8.Channel, bool)
- func (m *MockChannelKeeper) GetChannelConnection(ctx types0.Context, portID, channelID string) (string, exported.ConnectionI, error)
- func (m *MockChannelKeeper) GetNextSequenceSend(ctx types0.Context, portID, channelID string) (uint64, bool)
- func (m *MockChannelKeeper) SendPacket(ctx types0.Context, chanCap *types2.Capability, ...) (uint64, error)
- func (m *MockChannelKeeper) WriteAcknowledgement(ctx types0.Context, chanCap *types2.Capability, packet exported.PacketI, ...) error
- type MockChannelKeeperMockRecorder
- func (mr *MockChannelKeeperMockRecorder) ChanCloseInit(ctx, portID, channelID, chanCap interface{}) *gomock.Call
- func (mr *MockChannelKeeperMockRecorder) GetChannel(ctx, srcPort, srcChan interface{}) *gomock.Call
- func (mr *MockChannelKeeperMockRecorder) GetChannelConnection(ctx, portID, channelID interface{}) *gomock.Call
- func (mr *MockChannelKeeperMockRecorder) GetNextSequenceSend(ctx, portID, channelID interface{}) *gomock.Call
- func (mr *MockChannelKeeperMockRecorder) SendPacket(...) *gomock.Call
- func (mr *MockChannelKeeperMockRecorder) WriteAcknowledgement(ctx, chanCap, packet, acknowledgement interface{}) *gomock.Call
- type MockClientKeeper
- func (m *MockClientKeeper) ClientStore(ctx types0.Context, clientID string) types0.KVStore
- func (m *MockClientKeeper) CreateClient(ctx types0.Context, clientState exported.ClientState, ...) (string, error)
- func (m *MockClientKeeper) EXPECT() *MockClientKeeperMockRecorder
- func (m *MockClientKeeper) GetClientConsensusState(ctx types0.Context, clientID string, height exported.Height) (exported.ConsensusState, bool)
- func (m *MockClientKeeper) GetClientState(ctx types0.Context, clientID string) (exported.ClientState, bool)
- func (m *MockClientKeeper) GetLatestClientConsensusState(ctx types0.Context, clientID string) (exported.ConsensusState, bool)
- func (m *MockClientKeeper) GetSelfConsensusState(ctx types0.Context, height exported.Height) (exported.ConsensusState, error)
- func (m *MockClientKeeper) SetClientState(ctx types0.Context, clientID string, clientState exported.ClientState)
- type MockClientKeeperMockRecorder
- func (mr *MockClientKeeperMockRecorder) ClientStore(ctx, clientID interface{}) *gomock.Call
- func (mr *MockClientKeeperMockRecorder) CreateClient(ctx, clientState, consensusState interface{}) *gomock.Call
- func (mr *MockClientKeeperMockRecorder) GetClientConsensusState(ctx, clientID, height interface{}) *gomock.Call
- func (mr *MockClientKeeperMockRecorder) GetClientState(ctx, clientID interface{}) *gomock.Call
- func (mr *MockClientKeeperMockRecorder) GetLatestClientConsensusState(ctx, clientID interface{}) *gomock.Call
- func (mr *MockClientKeeperMockRecorder) GetSelfConsensusState(ctx, height interface{}) *gomock.Call
- func (mr *MockClientKeeperMockRecorder) SetClientState(ctx, clientID, clientState interface{}) *gomock.Call
- type MockConnectionKeeper
- type MockConnectionKeeperMockRecorder
- type MockConsumerHooks
- type MockConsumerHooksMockRecorder
- type MockDistributionKeeper
- type MockDistributionKeeperMockRecorder
- type MockGovKeeper
- type MockGovKeeperMockRecorder
- type MockIBCCoreKeeper
- type MockIBCCoreKeeperMockRecorder
- type MockIBCTransferKeeper
- type MockIBCTransferKeeperMockRecorder
- type MockPortKeeper
- type MockPortKeeperMockRecorder
- type MockScopedKeeper
- func (m *MockScopedKeeper) AuthenticateCapability(ctx types0.Context, cap *types2.Capability, name string) bool
- func (m *MockScopedKeeper) ClaimCapability(ctx types0.Context, cap *types2.Capability, name string) error
- func (m *MockScopedKeeper) EXPECT() *MockScopedKeeperMockRecorder
- func (m *MockScopedKeeper) GetCapability(ctx types0.Context, name string) (*types2.Capability, bool)
- type MockScopedKeeperMockRecorder
- type MockSlashingKeeper
- func (m *MockSlashingKeeper) DowntimeJailDuration(arg0 types0.Context) time.Duration
- func (m *MockSlashingKeeper) EXPECT() *MockSlashingKeeperMockRecorder
- func (m *MockSlashingKeeper) GetValidatorSigningInfo(ctx types0.Context, address types0.ConsAddress) (types3.ValidatorSigningInfo, bool)
- func (m *MockSlashingKeeper) IsTombstoned(arg0 types0.Context, arg1 types0.ConsAddress) bool
- func (m *MockSlashingKeeper) JailUntil(arg0 types0.Context, arg1 types0.ConsAddress, arg2 time.Time)
- func (m *MockSlashingKeeper) SetValidatorSigningInfo(ctx types0.Context, address types0.ConsAddress, ...)
- func (m *MockSlashingKeeper) SlashFractionDoubleSign(ctx types0.Context) types0.Dec
- func (m *MockSlashingKeeper) SlashFractionDowntime(arg0 types0.Context) types0.Dec
- func (m *MockSlashingKeeper) Tombstone(arg0 types0.Context, arg1 types0.ConsAddress)
- type MockSlashingKeeperMockRecorder
- func (mr *MockSlashingKeeperMockRecorder) DowntimeJailDuration(arg0 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) GetValidatorSigningInfo(ctx, address interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) IsTombstoned(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) JailUntil(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) SetValidatorSigningInfo(ctx, address interface{}, info interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) SlashFractionDoubleSign(ctx interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) SlashFractionDowntime(arg0 interface{}) *gomock.Call
- func (mr *MockSlashingKeeperMockRecorder) Tombstone(arg0, arg1 interface{}) *gomock.Call
- type MockStakingKeeper
- func (m *MockStakingKeeper) BondDenom(ctx types0.Context) string
- func (m *MockStakingKeeper) Delegation(ctx types0.Context, addr types0.AccAddress, valAddr types0.ValAddress) types4.DelegationI
- func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
- func (m *MockStakingKeeper) GetLastTotalPower(ctx types0.Context) math.Int
- func (m *MockStakingKeeper) GetLastValidatorPower(ctx types0.Context, operator types0.ValAddress) int64
- func (m *MockStakingKeeper) GetLastValidators(ctx types0.Context) []types4.Validator
- func (m *MockStakingKeeper) GetRedelegationsFromSrcValidator(ctx types0.Context, valAddr types0.ValAddress) []types4.Redelegation
- func (m *MockStakingKeeper) GetUnbondingDelegationsFromValidator(ctx types0.Context, valAddr types0.ValAddress) []types4.UnbondingDelegation
- func (m *MockStakingKeeper) GetUnbondingType(ctx types0.Context, id uint64) (types4.UnbondingType, bool)
- func (m *MockStakingKeeper) GetValidator(ctx types0.Context, addr types0.ValAddress) (types4.Validator, bool)
- func (m *MockStakingKeeper) GetValidatorByConsAddr(ctx types0.Context, consAddr types0.ConsAddress) (types4.Validator, bool)
- func (m *MockStakingKeeper) GetValidatorUpdates(ctx types0.Context) []types.ValidatorUpdate
- func (m *MockStakingKeeper) IsValidatorJailed(ctx types0.Context, addr types0.ConsAddress) bool
- func (m *MockStakingKeeper) IterateLastValidatorPowers(ctx types0.Context, cb func(types0.ValAddress, int64) bool)
- func (m *MockStakingKeeper) IterateValidators(ctx types0.Context, f func(int64, types4.ValidatorI) bool)
- func (m *MockStakingKeeper) Jail(arg0 types0.Context, arg1 types0.ConsAddress)
- func (m *MockStakingKeeper) MaxValidators(ctx types0.Context) uint32
- func (m *MockStakingKeeper) PowerReduction(ctx types0.Context) math.Int
- func (m *MockStakingKeeper) PutUnbondingOnHold(ctx types0.Context, id uint64) error
- func (m *MockStakingKeeper) Slash(arg0 types0.Context, arg1 types0.ConsAddress, arg2, arg3 int64, ...) math.Int
- func (m *MockStakingKeeper) SlashRedelegation(arg0 types0.Context, arg1 types4.Validator, arg2 types4.Redelegation, ...) math.Int
- func (m *MockStakingKeeper) SlashUnbondingDelegation(arg0 types0.Context, arg1 types4.UnbondingDelegation, arg2 int64, ...) math.Int
- func (m *MockStakingKeeper) SlashWithInfractionReason(arg0 types0.Context, arg1 types0.ConsAddress, arg2, arg3 int64, ...) math.Int
- func (m *MockStakingKeeper) UnbondingCanComplete(ctx types0.Context, id uint64) error
- func (m *MockStakingKeeper) UnbondingTime(ctx types0.Context) time.Duration
- func (m *MockStakingKeeper) Unjail(ctx types0.Context, addr types0.ConsAddress)
- func (m *MockStakingKeeper) Validator(ctx types0.Context, addr types0.ValAddress) types4.ValidatorI
- func (m *MockStakingKeeper) ValidatorByConsAddr(ctx types0.Context, consAddr types0.ConsAddress) types4.ValidatorI
- type MockStakingKeeperMockRecorder
- func (mr *MockStakingKeeperMockRecorder) BondDenom(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) Delegation(ctx, addr, valAddr interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetLastTotalPower(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetLastValidatorPower(ctx, operator interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetLastValidators(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetRedelegationsFromSrcValidator(ctx, valAddr interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetUnbondingDelegationsFromValidator(ctx, valAddr interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetUnbondingType(ctx, id interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetValidator(ctx, addr interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetValidatorByConsAddr(ctx, consAddr interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetValidatorUpdates(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) IsValidatorJailed(ctx, addr interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) IterateLastValidatorPowers(ctx, cb interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) IterateValidators(ctx, f interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) MaxValidators(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) PowerReduction(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) PutUnbondingOnHold(ctx, id interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) SlashRedelegation(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) SlashUnbondingDelegation(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) UnbondingCanComplete(ctx, id interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) UnbondingTime(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) Unjail(ctx, addr interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) Validator(ctx, addr interface{}) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) ValidatorByConsAddr(ctx, consAddr interface{}) *gomock.Call
- type MockedKeepers
- func GetConsumerKeeperAndCtx(t *testing.T, params InMemKeeperParams) (consumerkeeper.Keeper, sdk.Context, *gomock.Controller, MockedKeepers)
- func GetProviderKeeperAndCtx(t *testing.T, params InMemKeeperParams) (providerkeeper.Keeper, sdk.Context, *gomock.Controller, MockedKeepers)
- func NewMockedKeepers(ctrl *gomock.Controller) MockedKeepers
- type PrivateKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectCreateClientMock ¶
func ExpectCreateClientMock(ctx sdk.Context, mocks MockedKeepers, clientID string, clientState *ibctmtypes.ClientState, consState *ibctmtypes.ConsensusState) *gomock.Call
func ExpectGetCapabilityMock ¶
func ExpectLatestConsensusStateMock ¶
func ExpectLatestConsensusStateMock(ctx sdk.Context, mocks MockedKeepers, clientID string, consState *ibctmtypes.ConsensusState) *gomock.Call
func GetMocksForCreateConsumerClient ¶
func GetMocksForCreateConsumerClient(ctx sdk.Context, mocks *MockedKeepers, expectedChainID string, expectedLatestHeight clienttypes.Height, ) []*gomock.Call
GetMocksForCreateConsumerClient returns mock expectations needed to call CreateConsumerClient().
func GetMocksForHandleSlashPacket ¶
func GetMocksForHandleSlashPacket(ctx sdk.Context, mocks MockedKeepers, expectedProviderValConsAddr providertypes.ProviderConsAddress, valToReturn stakingtypes.Validator, expectJailing bool, ) []*gomock.Call
func GetMocksForMakeConsumerGenesis ¶
func GetMocksForMakeConsumerGenesis(ctx sdk.Context, mocks *MockedKeepers, unbondingTimeToInject time.Duration, ) []*gomock.Call
GetMocksForMakeConsumerGenesis returns mock expectations needed to call MakeConsumerGenesis().
func GetMocksForSetConsumerChain ¶
func GetMocksForSetConsumerChain(ctx sdk.Context, mocks *MockedKeepers, chainIDToInject string, ) []*gomock.Call
GetMocksForSetConsumerChain returns mock expectations needed to call SetConsumerChain().
func GetMocksForSlashValidator ¶
func GetMocksForSlashValidator( ctx sdk.Context, mocks MockedKeepers, validator stakingtypes.Validator, consAddr sdk.ConsAddress, undelegations []stakingtypes.UnbondingDelegation, redelegations []stakingtypes.Redelegation, powerReduction math.Int, slashFraction math.LegacyDec, currentPower, expectedInfractionHeight, expectedSlashPower int64, ) []*gomock.Call
func GetMocksForStopConsumerChainWithCloseChannel ¶
func GetMocksForStopConsumerChainWithCloseChannel(ctx sdk.Context, mocks *MockedKeepers) []*gomock.Call
GetMocksForStopConsumerChainWithCloseChannel returns mock expectations needed to call StopConsumerChain() when `closeChan` is true.
func GetNewCrossChainValidator ¶
func GetNewCrossChainValidator(t *testing.T) consumertypes.CrossChainValidator
Obtains a CrossChainValidator with a newly generated key, and randomized field values
func GetNewSlashPacketData ¶
func GetNewSlashPacketData() types.SlashPacketData
Obtains slash packet data with a newly generated key, and randomized field values
func GetNewVSCMaturedPacketData ¶
func GetNewVSCMaturedPacketData() types.VSCMaturedPacketData
Obtains vsc matured packet data with a newly generated key
func GetTestConsumerAdditionProp ¶
func GetTestConsumerAdditionProp() *providertypes.ConsumerAdditionProposal
func NewInMemConsumerKeeper ¶
func NewInMemConsumerKeeper(params InMemKeeperParams, mocks MockedKeepers) consumerkeeper.Keeper
NewInMemConsumerKeeper instantiates an in-mem consumer keeper from params and mocked keepers
func NewInMemProviderKeeper ¶
func NewInMemProviderKeeper(params InMemKeeperParams, mocks MockedKeepers) providerkeeper.Keeper
NewInMemProviderKeeper instantiates an in-mem provider keeper from params and mocked keepers
func SetupForStoppingConsumerChain ¶
func SetupForStoppingConsumerChain(t *testing.T, ctx sdk.Context, providerKeeper *providerkeeper.Keeper, mocks MockedKeepers, )
SetupForStoppingConsumerChain registers expected mock calls and corresponding state setup which assert that a consumer chain was properly setup to be later stopped from `StopConsumerChain`. Note: This function only setups and tests that we correctly setup a consumer chain that we could later stop when calling `StopConsumerChain` -- this does NOT necessarily mean that the consumer chain is stopped. Also see `TestProviderStateIsCleanedAfterConsumerChainIsStopped`.
func TestProviderStateIsCleanedAfterConsumerChainIsStopped ¶
func TestProviderStateIsCleanedAfterConsumerChainIsStopped(t *testing.T, ctx sdk.Context, providerKeeper providerkeeper.Keeper, expectedChainID, expectedChannelID string, )
TestProviderStateIsCleanedAfterConsumerChainIsStopped executes test assertions for the provider's state being cleaned after a stopped consumer chain.
Types ¶
type InMemKeeperParams ¶
type InMemKeeperParams struct { Cdc *codec.ProtoCodec StoreKey *storetypes.KVStoreKey ParamsSubspace *paramstypes.Subspace Ctx sdk.Context }
Parameters needed to instantiate an in-memory keeper
func NewInMemKeeperParams ¶
func NewInMemKeeperParams(tb testing.TB) InMemKeeperParams
NewInMemKeeperParams instantiates in-memory keeper params with default values
type MockAccountKeeper ¶
type MockAccountKeeper struct {
// contains filtered or unexported fields
}
MockAccountKeeper is a mock of AccountKeeper interface.
func NewMockAccountKeeper ¶
func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper
NewMockAccountKeeper creates a new mock instance.
func (*MockAccountKeeper) EXPECT ¶
func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountKeeper) GetModuleAccount ¶
func (m *MockAccountKeeper) GetModuleAccount(ctx types0.Context, name string) types1.ModuleAccountI
GetModuleAccount mocks base method.
type MockAccountKeeperMockRecorder ¶
type MockAccountKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.
func (*MockAccountKeeperMockRecorder) GetModuleAccount ¶
func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, name interface{}) *gomock.Call
GetModuleAccount indicates an expected call of GetModuleAccount.
type MockBankKeeper ¶
type MockBankKeeper struct {
// contains filtered or unexported fields
}
MockBankKeeper is a mock of BankKeeper interface.
func NewMockBankKeeper ¶
func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper
NewMockBankKeeper creates a new mock instance.
func (*MockBankKeeper) EXPECT ¶
func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBankKeeper) GetAllBalances ¶
func (m *MockBankKeeper) GetAllBalances(ctx types0.Context, addr types0.AccAddress) types0.Coins
GetAllBalances mocks base method.
func (*MockBankKeeper) GetBalance ¶
func (m *MockBankKeeper) GetBalance(ctx types0.Context, addr types0.AccAddress, denom string) types0.Coin
GetBalance mocks base method.
func (*MockBankKeeper) SendCoinsFromModuleToModule ¶
func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx types0.Context, senderModule, recipientModule string, amt types0.Coins) error
SendCoinsFromModuleToModule mocks base method.
type MockBankKeeperMockRecorder ¶
type MockBankKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.
func (*MockBankKeeperMockRecorder) GetAllBalances ¶
func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call
GetAllBalances indicates an expected call of GetAllBalances.
func (*MockBankKeeperMockRecorder) GetBalance ¶
func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call
GetBalance indicates an expected call of GetBalance.
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call
SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.
type MockChannelKeeper ¶
type MockChannelKeeper struct {
// contains filtered or unexported fields
}
MockChannelKeeper is a mock of ChannelKeeper interface.
func NewMockChannelKeeper ¶
func NewMockChannelKeeper(ctrl *gomock.Controller) *MockChannelKeeper
NewMockChannelKeeper creates a new mock instance.
func (*MockChannelKeeper) ChanCloseInit ¶
func (m *MockChannelKeeper) ChanCloseInit(ctx types0.Context, portID, channelID string, chanCap *types2.Capability) error
ChanCloseInit mocks base method.
func (*MockChannelKeeper) EXPECT ¶
func (m *MockChannelKeeper) EXPECT() *MockChannelKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChannelKeeper) GetChannel ¶
func (m *MockChannelKeeper) GetChannel(ctx types0.Context, srcPort, srcChan string) (types8.Channel, bool)
GetChannel mocks base method.
func (*MockChannelKeeper) GetChannelConnection ¶
func (m *MockChannelKeeper) GetChannelConnection(ctx types0.Context, portID, channelID string) (string, exported.ConnectionI, error)
GetChannelConnection mocks base method.
func (*MockChannelKeeper) GetNextSequenceSend ¶
func (m *MockChannelKeeper) GetNextSequenceSend(ctx types0.Context, portID, channelID string) (uint64, bool)
GetNextSequenceSend mocks base method.
func (*MockChannelKeeper) SendPacket ¶
func (m *MockChannelKeeper) SendPacket(ctx types0.Context, chanCap *types2.Capability, sourcePort, sourceChannel string, timeoutHeight types6.Height, timeoutTimestamp uint64, data []byte) (uint64, error)
SendPacket mocks base method.
func (*MockChannelKeeper) WriteAcknowledgement ¶
func (m *MockChannelKeeper) WriteAcknowledgement(ctx types0.Context, chanCap *types2.Capability, packet exported.PacketI, acknowledgement exported.Acknowledgement) error
WriteAcknowledgement mocks base method.
type MockChannelKeeperMockRecorder ¶
type MockChannelKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockChannelKeeperMockRecorder is the mock recorder for MockChannelKeeper.
func (*MockChannelKeeperMockRecorder) ChanCloseInit ¶
func (mr *MockChannelKeeperMockRecorder) ChanCloseInit(ctx, portID, channelID, chanCap interface{}) *gomock.Call
ChanCloseInit indicates an expected call of ChanCloseInit.
func (*MockChannelKeeperMockRecorder) GetChannel ¶
func (mr *MockChannelKeeperMockRecorder) GetChannel(ctx, srcPort, srcChan interface{}) *gomock.Call
GetChannel indicates an expected call of GetChannel.
func (*MockChannelKeeperMockRecorder) GetChannelConnection ¶
func (mr *MockChannelKeeperMockRecorder) GetChannelConnection(ctx, portID, channelID interface{}) *gomock.Call
GetChannelConnection indicates an expected call of GetChannelConnection.
func (*MockChannelKeeperMockRecorder) GetNextSequenceSend ¶
func (mr *MockChannelKeeperMockRecorder) GetNextSequenceSend(ctx, portID, channelID interface{}) *gomock.Call
GetNextSequenceSend indicates an expected call of GetNextSequenceSend.
func (*MockChannelKeeperMockRecorder) SendPacket ¶
func (mr *MockChannelKeeperMockRecorder) SendPacket(ctx, chanCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, data interface{}) *gomock.Call
SendPacket indicates an expected call of SendPacket.
func (*MockChannelKeeperMockRecorder) WriteAcknowledgement ¶
func (mr *MockChannelKeeperMockRecorder) WriteAcknowledgement(ctx, chanCap, packet, acknowledgement interface{}) *gomock.Call
WriteAcknowledgement indicates an expected call of WriteAcknowledgement.
type MockClientKeeper ¶
type MockClientKeeper struct {
// contains filtered or unexported fields
}
MockClientKeeper is a mock of ClientKeeper interface.
func NewMockClientKeeper ¶
func NewMockClientKeeper(ctrl *gomock.Controller) *MockClientKeeper
NewMockClientKeeper creates a new mock instance.
func (*MockClientKeeper) ClientStore ¶
ClientStore mocks base method.
func (*MockClientKeeper) CreateClient ¶
func (m *MockClientKeeper) CreateClient(ctx types0.Context, clientState exported.ClientState, consensusState exported.ConsensusState) (string, error)
CreateClient mocks base method.
func (*MockClientKeeper) EXPECT ¶
func (m *MockClientKeeper) EXPECT() *MockClientKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientKeeper) GetClientConsensusState ¶
func (m *MockClientKeeper) GetClientConsensusState(ctx types0.Context, clientID string, height exported.Height) (exported.ConsensusState, bool)
GetClientConsensusState mocks base method.
func (*MockClientKeeper) GetClientState ¶
func (m *MockClientKeeper) GetClientState(ctx types0.Context, clientID string) (exported.ClientState, bool)
GetClientState mocks base method.
func (*MockClientKeeper) GetLatestClientConsensusState ¶
func (m *MockClientKeeper) GetLatestClientConsensusState(ctx types0.Context, clientID string) (exported.ConsensusState, bool)
GetLatestClientConsensusState mocks base method.
func (*MockClientKeeper) GetSelfConsensusState ¶
func (m *MockClientKeeper) GetSelfConsensusState(ctx types0.Context, height exported.Height) (exported.ConsensusState, error)
GetSelfConsensusState mocks base method.
func (*MockClientKeeper) SetClientState ¶
func (m *MockClientKeeper) SetClientState(ctx types0.Context, clientID string, clientState exported.ClientState)
SetClientState mocks base method.
type MockClientKeeperMockRecorder ¶
type MockClientKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockClientKeeperMockRecorder is the mock recorder for MockClientKeeper.
func (*MockClientKeeperMockRecorder) ClientStore ¶
func (mr *MockClientKeeperMockRecorder) ClientStore(ctx, clientID interface{}) *gomock.Call
ClientStore indicates an expected call of ClientStore.
func (*MockClientKeeperMockRecorder) CreateClient ¶
func (mr *MockClientKeeperMockRecorder) CreateClient(ctx, clientState, consensusState interface{}) *gomock.Call
CreateClient indicates an expected call of CreateClient.
func (*MockClientKeeperMockRecorder) GetClientConsensusState ¶
func (mr *MockClientKeeperMockRecorder) GetClientConsensusState(ctx, clientID, height interface{}) *gomock.Call
GetClientConsensusState indicates an expected call of GetClientConsensusState.
func (*MockClientKeeperMockRecorder) GetClientState ¶
func (mr *MockClientKeeperMockRecorder) GetClientState(ctx, clientID interface{}) *gomock.Call
GetClientState indicates an expected call of GetClientState.
func (*MockClientKeeperMockRecorder) GetLatestClientConsensusState ¶
func (mr *MockClientKeeperMockRecorder) GetLatestClientConsensusState(ctx, clientID interface{}) *gomock.Call
GetLatestClientConsensusState indicates an expected call of GetLatestClientConsensusState.
func (*MockClientKeeperMockRecorder) GetSelfConsensusState ¶
func (mr *MockClientKeeperMockRecorder) GetSelfConsensusState(ctx, height interface{}) *gomock.Call
GetSelfConsensusState indicates an expected call of GetSelfConsensusState.
func (*MockClientKeeperMockRecorder) SetClientState ¶
func (mr *MockClientKeeperMockRecorder) SetClientState(ctx, clientID, clientState interface{}) *gomock.Call
SetClientState indicates an expected call of SetClientState.
type MockConnectionKeeper ¶
type MockConnectionKeeper struct {
// contains filtered or unexported fields
}
MockConnectionKeeper is a mock of ConnectionKeeper interface.
func NewMockConnectionKeeper ¶
func NewMockConnectionKeeper(ctrl *gomock.Controller) *MockConnectionKeeper
NewMockConnectionKeeper creates a new mock instance.
func (*MockConnectionKeeper) EXPECT ¶
func (m *MockConnectionKeeper) EXPECT() *MockConnectionKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnectionKeeper) GetConnection ¶
func (m *MockConnectionKeeper) GetConnection(ctx types0.Context, connectionID string) (types7.ConnectionEnd, bool)
GetConnection mocks base method.
type MockConnectionKeeperMockRecorder ¶
type MockConnectionKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionKeeperMockRecorder is the mock recorder for MockConnectionKeeper.
func (*MockConnectionKeeperMockRecorder) GetConnection ¶
func (mr *MockConnectionKeeperMockRecorder) GetConnection(ctx, connectionID interface{}) *gomock.Call
GetConnection indicates an expected call of GetConnection.
type MockConsumerHooks ¶
type MockConsumerHooks struct {
// contains filtered or unexported fields
}
MockConsumerHooks is a mock of ConsumerHooks interface.
func NewMockConsumerHooks ¶
func NewMockConsumerHooks(ctrl *gomock.Controller) *MockConsumerHooks
NewMockConsumerHooks creates a new mock instance.
func (*MockConsumerHooks) AfterValidatorBonded ¶
func (m *MockConsumerHooks) AfterValidatorBonded(ctx types0.Context, consAddr types0.ConsAddress, valAddresses types0.ValAddress) error
AfterValidatorBonded mocks base method.
func (*MockConsumerHooks) EXPECT ¶
func (m *MockConsumerHooks) EXPECT() *MockConsumerHooksMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockConsumerHooksMockRecorder ¶
type MockConsumerHooksMockRecorder struct {
// contains filtered or unexported fields
}
MockConsumerHooksMockRecorder is the mock recorder for MockConsumerHooks.
func (*MockConsumerHooksMockRecorder) AfterValidatorBonded ¶
func (mr *MockConsumerHooksMockRecorder) AfterValidatorBonded(ctx, consAddr, valAddresses interface{}) *gomock.Call
AfterValidatorBonded indicates an expected call of AfterValidatorBonded.
type MockDistributionKeeper ¶
type MockDistributionKeeper struct {
// contains filtered or unexported fields
}
MockDistributionKeeper is a mock of DistributionKeeper interface.
func NewMockDistributionKeeper ¶
func NewMockDistributionKeeper(ctrl *gomock.Controller) *MockDistributionKeeper
NewMockDistributionKeeper creates a new mock instance.
func (*MockDistributionKeeper) EXPECT ¶
func (m *MockDistributionKeeper) EXPECT() *MockDistributionKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDistributionKeeper) FundCommunityPool ¶
func (m *MockDistributionKeeper) FundCommunityPool(ctx types0.Context, amount types0.Coins, sender types0.AccAddress) error
FundCommunityPool mocks base method.
type MockDistributionKeeperMockRecorder ¶
type MockDistributionKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockDistributionKeeperMockRecorder is the mock recorder for MockDistributionKeeper.
func (*MockDistributionKeeperMockRecorder) FundCommunityPool ¶
func (mr *MockDistributionKeeperMockRecorder) FundCommunityPool(ctx, amount, sender interface{}) *gomock.Call
FundCommunityPool indicates an expected call of FundCommunityPool.
type MockGovKeeper ¶
type MockGovKeeper struct {
// contains filtered or unexported fields
}
MockGovKeeper is a mock of GovKeeper interface.
func NewMockGovKeeper ¶
func NewMockGovKeeper(ctrl *gomock.Controller) *MockGovKeeper
NewMockGovKeeper creates a new mock instance.
func (*MockGovKeeper) EXPECT ¶
func (m *MockGovKeeper) EXPECT() *MockGovKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGovKeeper) GetProposal ¶
GetProposal mocks base method.
type MockGovKeeperMockRecorder ¶
type MockGovKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockGovKeeperMockRecorder is the mock recorder for MockGovKeeper.
func (*MockGovKeeperMockRecorder) GetProposal ¶
func (mr *MockGovKeeperMockRecorder) GetProposal(ctx, proposalID interface{}) *gomock.Call
GetProposal indicates an expected call of GetProposal.
type MockIBCCoreKeeper ¶
type MockIBCCoreKeeper struct {
// contains filtered or unexported fields
}
MockIBCCoreKeeper is a mock of IBCCoreKeeper interface.
func NewMockIBCCoreKeeper ¶
func NewMockIBCCoreKeeper(ctrl *gomock.Controller) *MockIBCCoreKeeper
NewMockIBCCoreKeeper creates a new mock instance.
func (*MockIBCCoreKeeper) ChannelOpenInit ¶
func (m *MockIBCCoreKeeper) ChannelOpenInit(goCtx context.Context, msg *types8.MsgChannelOpenInit) (*types8.MsgChannelOpenInitResponse, error)
ChannelOpenInit mocks base method.
func (*MockIBCCoreKeeper) EXPECT ¶
func (m *MockIBCCoreKeeper) EXPECT() *MockIBCCoreKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIBCCoreKeeperMockRecorder ¶
type MockIBCCoreKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockIBCCoreKeeperMockRecorder is the mock recorder for MockIBCCoreKeeper.
func (*MockIBCCoreKeeperMockRecorder) ChannelOpenInit ¶
func (mr *MockIBCCoreKeeperMockRecorder) ChannelOpenInit(goCtx, msg interface{}) *gomock.Call
ChannelOpenInit indicates an expected call of ChannelOpenInit.
type MockIBCTransferKeeper ¶
type MockIBCTransferKeeper struct {
// contains filtered or unexported fields
}
MockIBCTransferKeeper is a mock of IBCTransferKeeper interface.
func NewMockIBCTransferKeeper ¶
func NewMockIBCTransferKeeper(ctrl *gomock.Controller) *MockIBCTransferKeeper
NewMockIBCTransferKeeper creates a new mock instance.
func (*MockIBCTransferKeeper) EXPECT ¶
func (m *MockIBCTransferKeeper) EXPECT() *MockIBCTransferKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIBCTransferKeeper) Transfer ¶
func (m *MockIBCTransferKeeper) Transfer(arg0 context.Context, arg1 *types5.MsgTransfer) (*types5.MsgTransferResponse, error)
Transfer mocks base method.
type MockIBCTransferKeeperMockRecorder ¶
type MockIBCTransferKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockIBCTransferKeeperMockRecorder is the mock recorder for MockIBCTransferKeeper.
func (*MockIBCTransferKeeperMockRecorder) Transfer ¶
func (mr *MockIBCTransferKeeperMockRecorder) Transfer(arg0, arg1 interface{}) *gomock.Call
Transfer indicates an expected call of Transfer.
type MockPortKeeper ¶
type MockPortKeeper struct {
// contains filtered or unexported fields
}
MockPortKeeper is a mock of PortKeeper interface.
func NewMockPortKeeper ¶
func NewMockPortKeeper(ctrl *gomock.Controller) *MockPortKeeper
NewMockPortKeeper creates a new mock instance.
func (*MockPortKeeper) BindPort ¶
func (m *MockPortKeeper) BindPort(ctx types0.Context, portID string) *types2.Capability
BindPort mocks base method.
func (*MockPortKeeper) EXPECT ¶
func (m *MockPortKeeper) EXPECT() *MockPortKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPortKeeperMockRecorder ¶
type MockPortKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockPortKeeperMockRecorder is the mock recorder for MockPortKeeper.
func (*MockPortKeeperMockRecorder) BindPort ¶
func (mr *MockPortKeeperMockRecorder) BindPort(ctx, portID interface{}) *gomock.Call
BindPort indicates an expected call of BindPort.
type MockScopedKeeper ¶
type MockScopedKeeper struct {
// contains filtered or unexported fields
}
MockScopedKeeper is a mock of ScopedKeeper interface.
func NewMockScopedKeeper ¶
func NewMockScopedKeeper(ctrl *gomock.Controller) *MockScopedKeeper
NewMockScopedKeeper creates a new mock instance.
func (*MockScopedKeeper) AuthenticateCapability ¶
func (m *MockScopedKeeper) AuthenticateCapability(ctx types0.Context, cap *types2.Capability, name string) bool
AuthenticateCapability mocks base method.
func (*MockScopedKeeper) ClaimCapability ¶
func (m *MockScopedKeeper) ClaimCapability(ctx types0.Context, cap *types2.Capability, name string) error
ClaimCapability mocks base method.
func (*MockScopedKeeper) EXPECT ¶
func (m *MockScopedKeeper) EXPECT() *MockScopedKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockScopedKeeper) GetCapability ¶
func (m *MockScopedKeeper) GetCapability(ctx types0.Context, name string) (*types2.Capability, bool)
GetCapability mocks base method.
type MockScopedKeeperMockRecorder ¶
type MockScopedKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockScopedKeeperMockRecorder is the mock recorder for MockScopedKeeper.
func (*MockScopedKeeperMockRecorder) AuthenticateCapability ¶
func (mr *MockScopedKeeperMockRecorder) AuthenticateCapability(ctx, cap, name interface{}) *gomock.Call
AuthenticateCapability indicates an expected call of AuthenticateCapability.
func (*MockScopedKeeperMockRecorder) ClaimCapability ¶
func (mr *MockScopedKeeperMockRecorder) ClaimCapability(ctx, cap, name interface{}) *gomock.Call
ClaimCapability indicates an expected call of ClaimCapability.
func (*MockScopedKeeperMockRecorder) GetCapability ¶
func (mr *MockScopedKeeperMockRecorder) GetCapability(ctx, name interface{}) *gomock.Call
GetCapability indicates an expected call of GetCapability.
type MockSlashingKeeper ¶
type MockSlashingKeeper struct {
// contains filtered or unexported fields
}
MockSlashingKeeper is a mock of SlashingKeeper interface.
func NewMockSlashingKeeper ¶
func NewMockSlashingKeeper(ctrl *gomock.Controller) *MockSlashingKeeper
NewMockSlashingKeeper creates a new mock instance.
func (*MockSlashingKeeper) DowntimeJailDuration ¶
func (m *MockSlashingKeeper) DowntimeJailDuration(arg0 types0.Context) time.Duration
DowntimeJailDuration mocks base method.
func (*MockSlashingKeeper) EXPECT ¶
func (m *MockSlashingKeeper) EXPECT() *MockSlashingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSlashingKeeper) GetValidatorSigningInfo ¶
func (m *MockSlashingKeeper) GetValidatorSigningInfo(ctx types0.Context, address types0.ConsAddress) (types3.ValidatorSigningInfo, bool)
GetValidatorSigningInfo mocks base method.
func (*MockSlashingKeeper) IsTombstoned ¶
func (m *MockSlashingKeeper) IsTombstoned(arg0 types0.Context, arg1 types0.ConsAddress) bool
IsTombstoned mocks base method.
func (*MockSlashingKeeper) JailUntil ¶
func (m *MockSlashingKeeper) JailUntil(arg0 types0.Context, arg1 types0.ConsAddress, arg2 time.Time)
JailUntil mocks base method.
func (*MockSlashingKeeper) SetValidatorSigningInfo ¶
func (m *MockSlashingKeeper) SetValidatorSigningInfo(ctx types0.Context, address types0.ConsAddress, info types3.ValidatorSigningInfo)
SetValidatorSigningInfo mocks base method.
func (*MockSlashingKeeper) SlashFractionDoubleSign ¶
func (m *MockSlashingKeeper) SlashFractionDoubleSign(ctx types0.Context) types0.Dec
SlashFractionDoubleSign mocks base method.
func (*MockSlashingKeeper) SlashFractionDowntime ¶
func (m *MockSlashingKeeper) SlashFractionDowntime(arg0 types0.Context) types0.Dec
SlashFractionDowntime mocks base method.
func (*MockSlashingKeeper) Tombstone ¶
func (m *MockSlashingKeeper) Tombstone(arg0 types0.Context, arg1 types0.ConsAddress)
Tombstone mocks base method.
type MockSlashingKeeperMockRecorder ¶
type MockSlashingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockSlashingKeeperMockRecorder is the mock recorder for MockSlashingKeeper.
func (*MockSlashingKeeperMockRecorder) DowntimeJailDuration ¶
func (mr *MockSlashingKeeperMockRecorder) DowntimeJailDuration(arg0 interface{}) *gomock.Call
DowntimeJailDuration indicates an expected call of DowntimeJailDuration.
func (*MockSlashingKeeperMockRecorder) GetValidatorSigningInfo ¶
func (mr *MockSlashingKeeperMockRecorder) GetValidatorSigningInfo(ctx, address interface{}) *gomock.Call
GetValidatorSigningInfo indicates an expected call of GetValidatorSigningInfo.
func (*MockSlashingKeeperMockRecorder) IsTombstoned ¶
func (mr *MockSlashingKeeperMockRecorder) IsTombstoned(arg0, arg1 interface{}) *gomock.Call
IsTombstoned indicates an expected call of IsTombstoned.
func (*MockSlashingKeeperMockRecorder) JailUntil ¶
func (mr *MockSlashingKeeperMockRecorder) JailUntil(arg0, arg1, arg2 interface{}) *gomock.Call
JailUntil indicates an expected call of JailUntil.
func (*MockSlashingKeeperMockRecorder) SetValidatorSigningInfo ¶
func (mr *MockSlashingKeeperMockRecorder) SetValidatorSigningInfo(ctx, address interface{}, info interface{}) *gomock.Call
SetValidatorSigningInfo indicates an expected call of SetValidatorSigningInfo.
func (*MockSlashingKeeperMockRecorder) SlashFractionDoubleSign ¶
func (mr *MockSlashingKeeperMockRecorder) SlashFractionDoubleSign(ctx interface{}) *gomock.Call
SlashFractionDoubleSign indicates an expected call of SlashFractionDoubleSign.
func (*MockSlashingKeeperMockRecorder) SlashFractionDowntime ¶
func (mr *MockSlashingKeeperMockRecorder) SlashFractionDowntime(arg0 interface{}) *gomock.Call
SlashFractionDowntime indicates an expected call of SlashFractionDowntime.
func (*MockSlashingKeeperMockRecorder) Tombstone ¶
func (mr *MockSlashingKeeperMockRecorder) Tombstone(arg0, arg1 interface{}) *gomock.Call
Tombstone indicates an expected call of Tombstone.
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) BondDenom ¶
func (m *MockStakingKeeper) BondDenom(ctx types0.Context) string
BondDenom mocks base method.
func (*MockStakingKeeper) Delegation ¶
func (m *MockStakingKeeper) Delegation(ctx types0.Context, addr types0.AccAddress, valAddr types0.ValAddress) types4.DelegationI
Delegation mocks base method.
func (*MockStakingKeeper) EXPECT ¶
func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStakingKeeper) GetLastTotalPower ¶
func (m *MockStakingKeeper) GetLastTotalPower(ctx types0.Context) math.Int
GetLastTotalPower mocks base method.
func (*MockStakingKeeper) GetLastValidatorPower ¶
func (m *MockStakingKeeper) GetLastValidatorPower(ctx types0.Context, operator types0.ValAddress) int64
GetLastValidatorPower mocks base method.
func (*MockStakingKeeper) GetLastValidators ¶
func (m *MockStakingKeeper) GetLastValidators(ctx types0.Context) []types4.Validator
GetLastValidators mocks base method.
func (*MockStakingKeeper) GetRedelegationsFromSrcValidator ¶
func (m *MockStakingKeeper) GetRedelegationsFromSrcValidator(ctx types0.Context, valAddr types0.ValAddress) []types4.Redelegation
GetRedelegationsFromSrcValidator mocks base method.
func (*MockStakingKeeper) GetUnbondingDelegationsFromValidator ¶
func (m *MockStakingKeeper) GetUnbondingDelegationsFromValidator(ctx types0.Context, valAddr types0.ValAddress) []types4.UnbondingDelegation
GetUnbondingDelegationsFromValidator mocks base method.
func (*MockStakingKeeper) GetUnbondingType ¶
func (m *MockStakingKeeper) GetUnbondingType(ctx types0.Context, id uint64) (types4.UnbondingType, bool)
GetUnbondingType mocks base method.
func (*MockStakingKeeper) GetValidator ¶
func (m *MockStakingKeeper) GetValidator(ctx types0.Context, addr types0.ValAddress) (types4.Validator, bool)
GetValidator mocks base method.
func (*MockStakingKeeper) GetValidatorByConsAddr ¶
func (m *MockStakingKeeper) GetValidatorByConsAddr(ctx types0.Context, consAddr types0.ConsAddress) (types4.Validator, bool)
GetValidatorByConsAddr mocks base method.
func (*MockStakingKeeper) GetValidatorUpdates ¶
func (m *MockStakingKeeper) GetValidatorUpdates(ctx types0.Context) []types.ValidatorUpdate
GetValidatorUpdates mocks base method.
func (*MockStakingKeeper) IsValidatorJailed ¶
func (m *MockStakingKeeper) IsValidatorJailed(ctx types0.Context, addr types0.ConsAddress) bool
IsValidatorJailed mocks base method.
func (*MockStakingKeeper) IterateLastValidatorPowers ¶
func (m *MockStakingKeeper) IterateLastValidatorPowers(ctx types0.Context, cb func(types0.ValAddress, int64) bool)
IterateLastValidatorPowers mocks base method.
func (*MockStakingKeeper) IterateValidators ¶
func (m *MockStakingKeeper) IterateValidators(ctx types0.Context, f func(int64, types4.ValidatorI) bool)
IterateValidators mocks base method.
func (*MockStakingKeeper) Jail ¶
func (m *MockStakingKeeper) Jail(arg0 types0.Context, arg1 types0.ConsAddress)
Jail mocks base method.
func (*MockStakingKeeper) MaxValidators ¶
func (m *MockStakingKeeper) MaxValidators(ctx types0.Context) uint32
MaxValidators mocks base method.
func (*MockStakingKeeper) PowerReduction ¶
func (m *MockStakingKeeper) PowerReduction(ctx types0.Context) math.Int
PowerReduction mocks base method.
func (*MockStakingKeeper) PutUnbondingOnHold ¶
func (m *MockStakingKeeper) PutUnbondingOnHold(ctx types0.Context, id uint64) error
PutUnbondingOnHold mocks base method.
func (*MockStakingKeeper) Slash ¶
func (m *MockStakingKeeper) Slash(arg0 types0.Context, arg1 types0.ConsAddress, arg2, arg3 int64, arg4 types0.Dec) math.Int
Slash mocks base method.
func (*MockStakingKeeper) SlashRedelegation ¶
func (m *MockStakingKeeper) SlashRedelegation(arg0 types0.Context, arg1 types4.Validator, arg2 types4.Redelegation, arg3 int64, arg4 types0.Dec) math.Int
SlashRedelegation mocks base method.
func (*MockStakingKeeper) SlashUnbondingDelegation ¶
func (m *MockStakingKeeper) SlashUnbondingDelegation(arg0 types0.Context, arg1 types4.UnbondingDelegation, arg2 int64, arg3 types0.Dec) math.Int
SlashUnbondingDelegation mocks base method.
func (*MockStakingKeeper) SlashWithInfractionReason ¶
func (m *MockStakingKeeper) SlashWithInfractionReason(arg0 types0.Context, arg1 types0.ConsAddress, arg2, arg3 int64, arg4 types0.Dec, arg5 types4.Infraction) math.Int
SlashWithInfractionReason mocks base method.
func (*MockStakingKeeper) UnbondingCanComplete ¶
func (m *MockStakingKeeper) UnbondingCanComplete(ctx types0.Context, id uint64) error
UnbondingCanComplete mocks base method.
func (*MockStakingKeeper) UnbondingTime ¶
func (m *MockStakingKeeper) UnbondingTime(ctx types0.Context) time.Duration
UnbondingTime mocks base method.
func (*MockStakingKeeper) Unjail ¶
func (m *MockStakingKeeper) Unjail(ctx types0.Context, addr types0.ConsAddress)
Unjail mocks base method.
func (*MockStakingKeeper) Validator ¶
func (m *MockStakingKeeper) Validator(ctx types0.Context, addr types0.ValAddress) types4.ValidatorI
Validator mocks base method.
func (*MockStakingKeeper) ValidatorByConsAddr ¶
func (m *MockStakingKeeper) ValidatorByConsAddr(ctx types0.Context, consAddr types0.ConsAddress) types4.ValidatorI
ValidatorByConsAddr mocks base method.
type MockStakingKeeperMockRecorder ¶
type MockStakingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.
func (*MockStakingKeeperMockRecorder) BondDenom ¶
func (mr *MockStakingKeeperMockRecorder) BondDenom(ctx interface{}) *gomock.Call
BondDenom indicates an expected call of BondDenom.
func (*MockStakingKeeperMockRecorder) Delegation ¶
func (mr *MockStakingKeeperMockRecorder) Delegation(ctx, addr, valAddr interface{}) *gomock.Call
Delegation indicates an expected call of Delegation.
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) GetLastValidators ¶
func (mr *MockStakingKeeperMockRecorder) GetLastValidators(ctx interface{}) *gomock.Call
GetLastValidators indicates an expected call of GetLastValidators.
func (*MockStakingKeeperMockRecorder) GetRedelegationsFromSrcValidator ¶
func (mr *MockStakingKeeperMockRecorder) GetRedelegationsFromSrcValidator(ctx, valAddr interface{}) *gomock.Call
GetRedelegationsFromSrcValidator indicates an expected call of GetRedelegationsFromSrcValidator.
func (*MockStakingKeeperMockRecorder) GetUnbondingDelegationsFromValidator ¶
func (mr *MockStakingKeeperMockRecorder) GetUnbondingDelegationsFromValidator(ctx, valAddr interface{}) *gomock.Call
GetUnbondingDelegationsFromValidator indicates an expected call of GetUnbondingDelegationsFromValidator.
func (*MockStakingKeeperMockRecorder) GetUnbondingType ¶
func (mr *MockStakingKeeperMockRecorder) GetUnbondingType(ctx, id interface{}) *gomock.Call
GetUnbondingType indicates an expected call of GetUnbondingType.
func (*MockStakingKeeperMockRecorder) GetValidator ¶
func (mr *MockStakingKeeperMockRecorder) GetValidator(ctx, addr interface{}) *gomock.Call
GetValidator indicates an expected call of GetValidator.
func (*MockStakingKeeperMockRecorder) GetValidatorByConsAddr ¶
func (mr *MockStakingKeeperMockRecorder) GetValidatorByConsAddr(ctx, consAddr interface{}) *gomock.Call
GetValidatorByConsAddr indicates an expected call of GetValidatorByConsAddr.
func (*MockStakingKeeperMockRecorder) GetValidatorUpdates ¶
func (mr *MockStakingKeeperMockRecorder) GetValidatorUpdates(ctx interface{}) *gomock.Call
GetValidatorUpdates indicates an expected call of GetValidatorUpdates.
func (*MockStakingKeeperMockRecorder) IsValidatorJailed ¶
func (mr *MockStakingKeeperMockRecorder) IsValidatorJailed(ctx, addr interface{}) *gomock.Call
IsValidatorJailed indicates an expected call of IsValidatorJailed.
func (*MockStakingKeeperMockRecorder) IterateLastValidatorPowers ¶
func (mr *MockStakingKeeperMockRecorder) IterateLastValidatorPowers(ctx, cb interface{}) *gomock.Call
IterateLastValidatorPowers indicates an expected call of IterateLastValidatorPowers.
func (*MockStakingKeeperMockRecorder) IterateValidators ¶
func (mr *MockStakingKeeperMockRecorder) IterateValidators(ctx, f 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) MaxValidators ¶
func (mr *MockStakingKeeperMockRecorder) MaxValidators(ctx interface{}) *gomock.Call
MaxValidators indicates an expected call of MaxValidators.
func (*MockStakingKeeperMockRecorder) PowerReduction ¶
func (mr *MockStakingKeeperMockRecorder) PowerReduction(ctx interface{}) *gomock.Call
PowerReduction indicates an expected call of PowerReduction.
func (*MockStakingKeeperMockRecorder) PutUnbondingOnHold ¶
func (mr *MockStakingKeeperMockRecorder) PutUnbondingOnHold(ctx, id interface{}) *gomock.Call
PutUnbondingOnHold indicates an expected call of PutUnbondingOnHold.
func (*MockStakingKeeperMockRecorder) Slash ¶
func (mr *MockStakingKeeperMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Slash indicates an expected call of Slash.
func (*MockStakingKeeperMockRecorder) SlashRedelegation ¶
func (mr *MockStakingKeeperMockRecorder) SlashRedelegation(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
SlashRedelegation indicates an expected call of SlashRedelegation.
func (*MockStakingKeeperMockRecorder) SlashUnbondingDelegation ¶
func (mr *MockStakingKeeperMockRecorder) SlashUnbondingDelegation(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SlashUnbondingDelegation indicates an expected call of SlashUnbondingDelegation.
func (*MockStakingKeeperMockRecorder) SlashWithInfractionReason ¶
func (mr *MockStakingKeeperMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
SlashWithInfractionReason indicates an expected call of SlashWithInfractionReason.
func (*MockStakingKeeperMockRecorder) UnbondingCanComplete ¶
func (mr *MockStakingKeeperMockRecorder) UnbondingCanComplete(ctx, id interface{}) *gomock.Call
UnbondingCanComplete indicates an expected call of UnbondingCanComplete.
func (*MockStakingKeeperMockRecorder) UnbondingTime ¶
func (mr *MockStakingKeeperMockRecorder) UnbondingTime(ctx interface{}) *gomock.Call
UnbondingTime indicates an expected call of UnbondingTime.
func (*MockStakingKeeperMockRecorder) Unjail ¶
func (mr *MockStakingKeeperMockRecorder) Unjail(ctx, addr interface{}) *gomock.Call
Unjail indicates an expected call of Unjail.
func (*MockStakingKeeperMockRecorder) Validator ¶
func (mr *MockStakingKeeperMockRecorder) Validator(ctx, addr interface{}) *gomock.Call
Validator indicates an expected call of Validator.
func (*MockStakingKeeperMockRecorder) ValidatorByConsAddr ¶
func (mr *MockStakingKeeperMockRecorder) ValidatorByConsAddr(ctx, consAddr interface{}) *gomock.Call
ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr.
type MockedKeepers ¶
type MockedKeepers struct { *MockScopedKeeper *MockChannelKeeper *MockPortKeeper *MockConnectionKeeper *MockClientKeeper *MockStakingKeeper *MockSlashingKeeper *MockAccountKeeper *MockBankKeeper *MockIBCTransferKeeper *MockIBCCoreKeeper *MockDistributionKeeper *MockGovKeeper }
A struct holding pointers to any mocked external keeper needed for provider/consumer keeper setup.
func GetConsumerKeeperAndCtx ¶
func GetConsumerKeeperAndCtx(t *testing.T, params InMemKeeperParams) ( consumerkeeper.Keeper, sdk.Context, *gomock.Controller, MockedKeepers, )
Return an in-memory consumer keeper, context, controller, and mocks, given a test instance and parameters.
Note: Calling ctrl.Finish() at the end of a test function ensures that no unexpected calls to external keepers are made.
func GetProviderKeeperAndCtx ¶
func GetProviderKeeperAndCtx(t *testing.T, params InMemKeeperParams) ( providerkeeper.Keeper, sdk.Context, *gomock.Controller, MockedKeepers, )
Returns an in-memory provider keeper, context, controller, and mocks, given a test instance and parameters.
Note: Calling ctrl.Finish() at the end of a test function ensures that no unexpected calls to external keepers are made.
func NewMockedKeepers ¶
func NewMockedKeepers(ctrl *gomock.Controller) MockedKeepers
NewMockedKeepers instantiates a struct with pointers to properly instantiated mocked keepers.
type PrivateKey ¶
type PrivateKey struct {
PrivKey cryptotypes.PrivKey
}