Documentation ¶
Index ¶
- type KeeperTestData
- type MockHooks
- func (m MockHooks) AfterOperatorDelegationModified(context.Context, uint32, string) error
- func (m MockHooks) AfterPoolDelegationModified(context.Context, uint32, string) error
- func (m MockHooks) AfterServiceDelegationModified(context.Context, uint32, string) error
- func (m MockHooks) AfterUnbondingInitiated(ctx context.Context, unbondingDelegationID uint64) error
- func (m MockHooks) AfterUserPreferencesModified(ctx context.Context, userAddress string, ...) error
- func (m MockHooks) BeforeOperatorDelegationCreated(context.Context, uint32, string) error
- func (m MockHooks) BeforeOperatorDelegationRemoved(ctx context.Context, operatorID uint32, delegator string) error
- func (m MockHooks) BeforeOperatorDelegationSharesModified(context.Context, uint32, string) error
- func (m MockHooks) BeforePoolDelegationCreated(context.Context, uint32, string) error
- func (m MockHooks) BeforePoolDelegationRemoved(ctx context.Context, poolID uint32, delegator string) error
- func (m MockHooks) BeforePoolDelegationSharesModified(context.Context, uint32, string) error
- func (m MockHooks) BeforeServiceDelegationCreated(context.Context, uint32, string) error
- func (m MockHooks) BeforeServiceDelegationRemoved(ctx context.Context, serviceID uint32, delegator string) error
- func (m MockHooks) BeforeServiceDelegationSharesModified(context.Context, uint32, string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeeperTestData ¶
type KeeperTestData struct { storetesting.BaseKeeperTestData StoreService corestoretypes.KVStoreService PoolsKeeper *poolskeeper.Keeper OperatorsKeeper *operatorskeeper.Keeper ServicesKeeper *serviceskeeper.Keeper MarketMapKeeper *marketmapkeeper.Keeper OracleKeeper *oraclekeeper.Keeper AssetsKeeper *assetskeeper.Keeper Keeper *keeper.Keeper }
func NewKeeperTestData ¶
func NewKeeperTestData(t *testing.T) KeeperTestData
type MockHooks ¶
MockHooks is a mock implementation of the RestakingHooks interface
func (MockHooks) AfterOperatorDelegationModified ¶
AfterOperatorDelegationModified implements restakingtypes.Hooks
func (MockHooks) AfterPoolDelegationModified ¶
AfterPoolDelegationModified implements restakingtypes.Hooks
func (MockHooks) AfterServiceDelegationModified ¶
AfterServiceDelegationModified implements restakingtypes.Hooks
func (MockHooks) AfterUnbondingInitiated ¶
AfterUnbondingInitiated implements restakingtypes.Hooks
func (MockHooks) AfterUserPreferencesModified ¶
func (m MockHooks) AfterUserPreferencesModified(ctx context.Context, userAddress string, oldPreferences, newPreferences types.UserPreferences) error
AfterUserPreferencesModified implements restakingtypes.Hooks
func (MockHooks) BeforeOperatorDelegationCreated ¶
BeforeOperatorDelegationCreated implements restakingtypes.Hooks
func (MockHooks) BeforeOperatorDelegationRemoved ¶
func (m MockHooks) BeforeOperatorDelegationRemoved(ctx context.Context, operatorID uint32, delegator string) error
BeforeOperatorDelegationRemoved implements restakingtypes.Hooks
func (MockHooks) BeforeOperatorDelegationSharesModified ¶
BeforeOperatorDelegationSharesModified implements restakingtypes.Hooks
func (MockHooks) BeforePoolDelegationCreated ¶
BeforePoolDelegationCreated implements restakingtypes.Hooks
func (MockHooks) BeforePoolDelegationRemoved ¶
func (m MockHooks) BeforePoolDelegationRemoved(ctx context.Context, poolID uint32, delegator string) error
BeforePoolDelegationRemoved implements restakingtypes.Hooks
func (MockHooks) BeforePoolDelegationSharesModified ¶
BeforePoolDelegationSharesModified implements restakingtypes.Hooks
func (MockHooks) BeforeServiceDelegationCreated ¶
BeforeServiceDelegationCreated implements restakingtypes.Hooks