|
|
|
@@ -1,5 +1,10 @@
|
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
|
// Source: x/staking/types/expected_keepers.go
|
|
|
|
|
//
|
|
|
|
|
// Generated by this command:
|
|
|
|
|
//
|
|
|
|
|
// mockgen -source=x/staking/types/expected_keepers.go -package testutil -destination x/staking/testutil/expected_keepers_mocks.go
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
// Package testutil is a generated GoMock package.
|
|
|
|
|
package testutil
|
|
|
|
@@ -14,13 +19,14 @@ import (
|
|
|
|
|
types "cosmossdk.io/x/staking/types"
|
|
|
|
|
types0 "github.com/cosmos/cosmos-sdk/crypto/types"
|
|
|
|
|
types1 "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// MockAccountKeeper is a mock of AccountKeeper interface.
|
|
|
|
|
type MockAccountKeeper struct {
|
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
|
recorder *MockAccountKeeperMockRecorder
|
|
|
|
|
isgomock struct{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.
|
|
|
|
@@ -63,7 +69,7 @@ func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types1.AccAddre
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetAccount indicates an expected call of GetAccount.
|
|
|
|
|
func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetAccount), ctx, addr)
|
|
|
|
|
}
|
|
|
|
@@ -77,7 +83,7 @@ func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName str
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetModuleAccount indicates an expected call of GetModuleAccount.
|
|
|
|
|
func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAccount), ctx, moduleName)
|
|
|
|
|
}
|
|
|
|
@@ -91,7 +97,7 @@ func (m *MockAccountKeeper) GetModuleAddress(name string) types1.AccAddress {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetModuleAddress indicates an expected call of GetModuleAddress.
|
|
|
|
|
func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAddress", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAddress), name)
|
|
|
|
|
}
|
|
|
|
@@ -103,7 +109,7 @@ func (m *MockAccountKeeper) SetModuleAccount(arg0 context.Context, arg1 types1.M
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SetModuleAccount indicates an expected call of SetModuleAccount.
|
|
|
|
|
func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).SetModuleAccount), arg0, arg1)
|
|
|
|
|
}
|
|
|
|
@@ -112,6 +118,7 @@ func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}
|
|
|
|
|
type MockBankKeeper struct {
|
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
|
recorder *MockBankKeeperMockRecorder
|
|
|
|
|
isgomock struct{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.
|
|
|
|
@@ -140,7 +147,7 @@ func (m *MockBankKeeper) BurnCoins(arg0 context.Context, arg1 []byte, arg2 types
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BurnCoins indicates an expected call of BurnCoins.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) BurnCoins(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) BurnCoins(arg0, arg1, arg2 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BurnCoins", reflect.TypeOf((*MockBankKeeper)(nil).BurnCoins), arg0, arg1, arg2)
|
|
|
|
|
}
|
|
|
|
@@ -154,7 +161,7 @@ func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx context.Context, s
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DelegateCoinsFromAccountToModule indicates an expected call of DelegateCoinsFromAccountToModule.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelegateCoinsFromAccountToModule", reflect.TypeOf((*MockBankKeeper)(nil).DelegateCoinsFromAccountToModule), ctx, senderAddr, recipientModule, amt)
|
|
|
|
|
}
|
|
|
|
@@ -168,7 +175,7 @@ func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types1.AccAddr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetAllBalances indicates an expected call of GetAllBalances.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllBalances", reflect.TypeOf((*MockBankKeeper)(nil).GetAllBalances), ctx, addr)
|
|
|
|
|
}
|
|
|
|
@@ -182,7 +189,7 @@ func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types1.AccAddress,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetBalance indicates an expected call of GetBalance.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBalance", reflect.TypeOf((*MockBankKeeper)(nil).GetBalance), ctx, addr, denom)
|
|
|
|
|
}
|
|
|
|
@@ -196,7 +203,7 @@ func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types1.Coi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetSupply indicates an expected call of GetSupply.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSupply", reflect.TypeOf((*MockBankKeeper)(nil).GetSupply), ctx, denom)
|
|
|
|
|
}
|
|
|
|
@@ -210,7 +217,7 @@ func (m *MockBankKeeper) IsSendEnabledDenom(ctx context.Context, denom string) b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSendEnabledDenom indicates an expected call of IsSendEnabledDenom.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) IsSendEnabledDenom(ctx, denom interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) IsSendEnabledDenom(ctx, denom any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSendEnabledDenom", reflect.TypeOf((*MockBankKeeper)(nil).IsSendEnabledDenom), ctx, denom)
|
|
|
|
|
}
|
|
|
|
@@ -224,7 +231,7 @@ func (m *MockBankKeeper) LockedCoins(ctx context.Context, addr types1.AccAddress
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LockedCoins indicates an expected call of LockedCoins.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockedCoins", reflect.TypeOf((*MockBankKeeper)(nil).LockedCoins), ctx, addr)
|
|
|
|
|
}
|
|
|
|
@@ -238,7 +245,7 @@ func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, sende
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoinsFromAccountToModule", reflect.TypeOf((*MockBankKeeper)(nil).SendCoinsFromAccountToModule), ctx, senderAddr, recipientModule, amt)
|
|
|
|
|
}
|
|
|
|
@@ -252,7 +259,7 @@ func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, sender
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoinsFromModuleToModule", reflect.TypeOf((*MockBankKeeper)(nil).SendCoinsFromModuleToModule), ctx, senderPool, recipientPool, amt)
|
|
|
|
|
}
|
|
|
|
@@ -266,7 +273,7 @@ func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types1.AccAddr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SpendableCoins indicates an expected call of SpendableCoins.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpendableCoins", reflect.TypeOf((*MockBankKeeper)(nil).SpendableCoins), ctx, addr)
|
|
|
|
|
}
|
|
|
|
@@ -280,7 +287,7 @@ func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx context.Context,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UndelegateCoinsFromModuleToAccount indicates an expected call of UndelegateCoinsFromModuleToAccount.
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UndelegateCoinsFromModuleToAccount", reflect.TypeOf((*MockBankKeeper)(nil).UndelegateCoinsFromModuleToAccount), ctx, senderModule, recipientAddr, amt)
|
|
|
|
|
}
|
|
|
|
@@ -289,6 +296,7 @@ func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, se
|
|
|
|
|
type MockValidatorSet struct {
|
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
|
recorder *MockValidatorSetMockRecorder
|
|
|
|
|
isgomock struct{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MockValidatorSetMockRecorder is the mock recorder for MockValidatorSet.
|
|
|
|
@@ -318,7 +326,7 @@ func (m *MockValidatorSet) Delegation(arg0 context.Context, arg1 types1.AccAddre
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Delegation indicates an expected call of Delegation.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Delegation(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Delegation(arg0, arg1, arg2 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delegation", reflect.TypeOf((*MockValidatorSet)(nil).Delegation), arg0, arg1, arg2)
|
|
|
|
|
}
|
|
|
|
@@ -333,7 +341,7 @@ func (m *MockValidatorSet) GetPubKeyByConsAddr(arg0 context.Context, arg1 types1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetPubKeyByConsAddr indicates an expected call of GetPubKeyByConsAddr.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) GetPubKeyByConsAddr(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) GetPubKeyByConsAddr(arg0, arg1 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPubKeyByConsAddr", reflect.TypeOf((*MockValidatorSet)(nil).GetPubKeyByConsAddr), arg0, arg1)
|
|
|
|
|
}
|
|
|
|
@@ -347,7 +355,7 @@ func (m *MockValidatorSet) IterateBondedValidatorsByPower(arg0 context.Context,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IterateBondedValidatorsByPower indicates an expected call of IterateBondedValidatorsByPower.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) IterateBondedValidatorsByPower(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) IterateBondedValidatorsByPower(arg0, arg1 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateBondedValidatorsByPower", reflect.TypeOf((*MockValidatorSet)(nil).IterateBondedValidatorsByPower), arg0, arg1)
|
|
|
|
|
}
|
|
|
|
@@ -361,7 +369,7 @@ func (m *MockValidatorSet) IterateValidators(arg0 context.Context, arg1 func(int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IterateValidators indicates an expected call of IterateValidators.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) IterateValidators(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) IterateValidators(arg0, arg1 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateValidators", reflect.TypeOf((*MockValidatorSet)(nil).IterateValidators), arg0, arg1)
|
|
|
|
|
}
|
|
|
|
@@ -375,7 +383,7 @@ func (m *MockValidatorSet) Jail(arg0 context.Context, arg1 types1.ConsAddress) e
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Jail indicates an expected call of Jail.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Jail(arg0, arg1 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Jail", reflect.TypeOf((*MockValidatorSet)(nil).Jail), arg0, arg1)
|
|
|
|
|
}
|
|
|
|
@@ -390,7 +398,7 @@ func (m *MockValidatorSet) MaxValidators(arg0 context.Context) (uint32, error) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MaxValidators indicates an expected call of MaxValidators.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) MaxValidators(arg0 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) MaxValidators(arg0 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxValidators", reflect.TypeOf((*MockValidatorSet)(nil).MaxValidators), arg0)
|
|
|
|
|
}
|
|
|
|
@@ -405,7 +413,7 @@ func (m *MockValidatorSet) Slash(arg0 context.Context, arg1 types1.ConsAddress,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Slash indicates an expected call of Slash.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Slash", reflect.TypeOf((*MockValidatorSet)(nil).Slash), arg0, arg1, arg2, arg3, arg4)
|
|
|
|
|
}
|
|
|
|
@@ -420,7 +428,7 @@ func (m *MockValidatorSet) SlashWithInfractionReason(arg0 context.Context, arg1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SlashWithInfractionReason indicates an expected call of SlashWithInfractionReason.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SlashWithInfractionReason", reflect.TypeOf((*MockValidatorSet)(nil).SlashWithInfractionReason), arg0, arg1, arg2, arg3, arg4, arg5)
|
|
|
|
|
}
|
|
|
|
@@ -435,7 +443,7 @@ func (m *MockValidatorSet) StakingTokenSupply(arg0 context.Context) (math.Int, e
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// StakingTokenSupply indicates an expected call of StakingTokenSupply.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) StakingTokenSupply(arg0 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) StakingTokenSupply(arg0 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StakingTokenSupply", reflect.TypeOf((*MockValidatorSet)(nil).StakingTokenSupply), arg0)
|
|
|
|
|
}
|
|
|
|
@@ -450,7 +458,7 @@ func (m *MockValidatorSet) TotalBondedTokens(arg0 context.Context) (math.Int, er
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TotalBondedTokens indicates an expected call of TotalBondedTokens.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) TotalBondedTokens(arg0 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) TotalBondedTokens(arg0 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalBondedTokens", reflect.TypeOf((*MockValidatorSet)(nil).TotalBondedTokens), arg0)
|
|
|
|
|
}
|
|
|
|
@@ -464,7 +472,7 @@ func (m *MockValidatorSet) Unjail(arg0 context.Context, arg1 types1.ConsAddress)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Unjail indicates an expected call of Unjail.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Unjail(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Unjail(arg0, arg1 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unjail", reflect.TypeOf((*MockValidatorSet)(nil).Unjail), arg0, arg1)
|
|
|
|
|
}
|
|
|
|
@@ -479,7 +487,7 @@ func (m *MockValidatorSet) Validator(arg0 context.Context, arg1 types1.ValAddres
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Validator indicates an expected call of Validator.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Validator(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) Validator(arg0, arg1 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validator", reflect.TypeOf((*MockValidatorSet)(nil).Validator), arg0, arg1)
|
|
|
|
|
}
|
|
|
|
@@ -494,7 +502,7 @@ func (m *MockValidatorSet) ValidatorByConsAddr(arg0 context.Context, arg1 types1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr.
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockValidatorSetMockRecorder) ValidatorByConsAddr(arg0, arg1 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorByConsAddr", reflect.TypeOf((*MockValidatorSet)(nil).ValidatorByConsAddr), arg0, arg1)
|
|
|
|
|
}
|
|
|
|
@@ -503,6 +511,7 @@ func (mr *MockValidatorSetMockRecorder) ValidatorByConsAddr(arg0, arg1 interface
|
|
|
|
|
type MockDelegationSet struct {
|
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
|
recorder *MockDelegationSetMockRecorder
|
|
|
|
|
isgomock struct{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MockDelegationSetMockRecorder is the mock recorder for MockDelegationSet.
|
|
|
|
@@ -545,7 +554,7 @@ func (m *MockDelegationSet) IterateDelegations(ctx context.Context, delegator ty
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IterateDelegations indicates an expected call of IterateDelegations.
|
|
|
|
|
func (mr *MockDelegationSetMockRecorder) IterateDelegations(ctx, delegator, fn interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockDelegationSetMockRecorder) IterateDelegations(ctx, delegator, fn any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateDelegations", reflect.TypeOf((*MockDelegationSet)(nil).IterateDelegations), ctx, delegator, fn)
|
|
|
|
|
}
|
|
|
|
@@ -554,6 +563,7 @@ func (mr *MockDelegationSetMockRecorder) IterateDelegations(ctx, delegator, fn i
|
|
|
|
|
type MockStakingHooks struct {
|
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
|
recorder *MockStakingHooksMockRecorder
|
|
|
|
|
isgomock struct{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MockStakingHooksMockRecorder is the mock recorder for MockStakingHooks.
|
|
|
|
@@ -582,7 +592,7 @@ func (m *MockStakingHooks) AfterConsensusPubKeyUpdate(ctx context.Context, oldPu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AfterConsensusPubKeyUpdate indicates an expected call of AfterConsensusPubKeyUpdate.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterConsensusPubKeyUpdate(ctx, oldPubKey, newPubKey, rotationFee interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterConsensusPubKeyUpdate(ctx, oldPubKey, newPubKey, rotationFee any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterConsensusPubKeyUpdate", reflect.TypeOf((*MockStakingHooks)(nil).AfterConsensusPubKeyUpdate), ctx, oldPubKey, newPubKey, rotationFee)
|
|
|
|
|
}
|
|
|
|
@@ -596,7 +606,7 @@ func (m *MockStakingHooks) AfterDelegationModified(ctx context.Context, delAddr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AfterDelegationModified indicates an expected call of AfterDelegationModified.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterDelegationModified(ctx, delAddr, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterDelegationModified(ctx, delAddr, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterDelegationModified", reflect.TypeOf((*MockStakingHooks)(nil).AfterDelegationModified), ctx, delAddr, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -610,7 +620,7 @@ func (m *MockStakingHooks) AfterUnbondingInitiated(ctx context.Context, id uint6
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AfterUnbondingInitiated indicates an expected call of AfterUnbondingInitiated.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterUnbondingInitiated(ctx, id interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterUnbondingInitiated(ctx, id any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterUnbondingInitiated", reflect.TypeOf((*MockStakingHooks)(nil).AfterUnbondingInitiated), ctx, id)
|
|
|
|
|
}
|
|
|
|
@@ -624,7 +634,7 @@ func (m *MockStakingHooks) AfterValidatorBeginUnbonding(ctx context.Context, con
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AfterValidatorBeginUnbonding indicates an expected call of AfterValidatorBeginUnbonding.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterValidatorBeginUnbonding(ctx, consAddr, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterValidatorBeginUnbonding(ctx, consAddr, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorBeginUnbonding", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorBeginUnbonding), ctx, consAddr, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -638,7 +648,7 @@ func (m *MockStakingHooks) AfterValidatorBonded(ctx context.Context, consAddr ty
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AfterValidatorBonded indicates an expected call of AfterValidatorBonded.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterValidatorBonded(ctx, consAddr, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterValidatorBonded(ctx, consAddr, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorBonded", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorBonded), ctx, consAddr, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -652,7 +662,7 @@ func (m *MockStakingHooks) AfterValidatorCreated(ctx context.Context, valAddr ty
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AfterValidatorCreated indicates an expected call of AfterValidatorCreated.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterValidatorCreated(ctx, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterValidatorCreated(ctx, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorCreated", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorCreated), ctx, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -666,7 +676,7 @@ func (m *MockStakingHooks) AfterValidatorRemoved(ctx context.Context, consAddr t
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AfterValidatorRemoved indicates an expected call of AfterValidatorRemoved.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterValidatorRemoved(ctx, consAddr, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) AfterValidatorRemoved(ctx, consAddr, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorRemoved", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorRemoved), ctx, consAddr, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -680,7 +690,7 @@ func (m *MockStakingHooks) BeforeDelegationCreated(ctx context.Context, delAddr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BeforeDelegationCreated indicates an expected call of BeforeDelegationCreated.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeDelegationCreated(ctx, delAddr, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeDelegationCreated(ctx, delAddr, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationCreated", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationCreated), ctx, delAddr, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -694,7 +704,7 @@ func (m *MockStakingHooks) BeforeDelegationRemoved(ctx context.Context, delAddr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BeforeDelegationRemoved indicates an expected call of BeforeDelegationRemoved.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeDelegationRemoved(ctx, delAddr, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeDelegationRemoved(ctx, delAddr, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationRemoved", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationRemoved), ctx, delAddr, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -708,7 +718,7 @@ func (m *MockStakingHooks) BeforeDelegationSharesModified(ctx context.Context, d
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BeforeDelegationSharesModified indicates an expected call of BeforeDelegationSharesModified.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeDelegationSharesModified(ctx, delAddr, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeDelegationSharesModified(ctx, delAddr, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationSharesModified", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationSharesModified), ctx, delAddr, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -722,7 +732,7 @@ func (m *MockStakingHooks) BeforeValidatorModified(ctx context.Context, valAddr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BeforeValidatorModified indicates an expected call of BeforeValidatorModified.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeValidatorModified(ctx, valAddr interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeValidatorModified(ctx, valAddr any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeValidatorModified", reflect.TypeOf((*MockStakingHooks)(nil).BeforeValidatorModified), ctx, valAddr)
|
|
|
|
|
}
|
|
|
|
@@ -736,7 +746,7 @@ func (m *MockStakingHooks) BeforeValidatorSlashed(ctx context.Context, valAddr t
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BeforeValidatorSlashed indicates an expected call of BeforeValidatorSlashed.
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeValidatorSlashed(ctx, valAddr, fraction interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockStakingHooksMockRecorder) BeforeValidatorSlashed(ctx, valAddr, fraction any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeValidatorSlashed", reflect.TypeOf((*MockStakingHooks)(nil).BeforeValidatorSlashed), ctx, valAddr, fraction)
|
|
|
|
|
}
|
|
|
|
@@ -745,6 +755,7 @@ func (mr *MockStakingHooksMockRecorder) BeforeValidatorSlashed(ctx, valAddr, fra
|
|
|
|
|
type MockConsensusKeeper struct {
|
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
|
recorder *MockConsensusKeeperMockRecorder
|
|
|
|
|
isgomock struct{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MockConsensusKeeperMockRecorder is the mock recorder for MockConsensusKeeper.
|
|
|
|
@@ -774,7 +785,7 @@ func (m *MockConsensusKeeper) ValidatorPubKeyTypes(arg0 context.Context) ([]stri
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ValidatorPubKeyTypes indicates an expected call of ValidatorPubKeyTypes.
|
|
|
|
|
func (mr *MockConsensusKeeperMockRecorder) ValidatorPubKeyTypes(arg0 interface{}) *gomock.Call {
|
|
|
|
|
func (mr *MockConsensusKeeperMockRecorder) ValidatorPubKeyTypes(arg0 any) *gomock.Call {
|
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorPubKeyTypes", reflect.TypeOf((*MockConsensusKeeper)(nil).ValidatorPubKeyTypes), arg0)
|
|
|
|
|
}
|
|
|
|
|