Documentation ¶
Index ¶
- type DistributionContractMock
- type EngagementContractMock
- type StakeContractMock
- func (m StakeContractMock) QueryStakedAmount(ctx sdk.Context, opAddr sdk.AccAddress) (*sdk.Int, error)
- func (m StakeContractMock) QueryStakingUnbonding(ctx sdk.Context, opAddr sdk.AccAddress) ([]stakingtypes.UnbondingDelegationEntry, error)
- func (m StakeContractMock) QueryStakingUnbondingPeriod(ctx sdk.Context) (time.Duration, error)
- type ValsetContractMock
- func (m ValsetContractMock) ListValidatorSlashing(ctx sdk.Context, opAddr sdk.AccAddress) ([]contract.ValidatorSlashing, error)
- func (m ValsetContractMock) ListValidators(ctx sdk.Context, pagination *contract.Paginator) ([]stakingtypes.Validator, contract.PaginationCursor, error)
- func (m ValsetContractMock) QueryConfig(ctx sdk.Context) (*contract.ValsetConfigResponse, error)
- func (m ValsetContractMock) QueryValidator(ctx sdk.Context, opAddr sdk.AccAddress) (*stakingtypes.Validator, error)
- func (m ValsetContractMock) UpdateAdmin(ctx sdk.Context, new sdk.AccAddress, sender sdk.AccAddress) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributionContractMock ¶
type DistributionContractMock struct {
ValidatorOutstandingRewardFn func(ctx sdk.Context, addr sdk.AccAddress) (sdk.Coin, error)
}
func (DistributionContractMock) ValidatorOutstandingReward ¶
func (m DistributionContractMock) ValidatorOutstandingReward(ctx sdk.Context, addr sdk.AccAddress) (sdk.Coin, error)
type EngagementContractMock ¶
type EngagementContractMock struct {
UpdateAdminFn func(ctx sdk.Context, newAdmin, sender sdk.AccAddress) error
}
func (EngagementContractMock) UpdateAdmin ¶
func (m EngagementContractMock) UpdateAdmin(ctx sdk.Context, newAdmin, sender sdk.AccAddress) error
type StakeContractMock ¶
type StakeContractMock struct { QueryStakingUnbondingPeriodFn func(ctx sdk.Context) (time.Duration, error) QueryStakingUnbondingFn func(ctx sdk.Context, opAddr sdk.AccAddress) ([]stakingtypes.UnbondingDelegationEntry, error) QueryStakedAmountFn func(ctx sdk.Context, opAddr sdk.AccAddress) (*sdk.Int, error) }
func (StakeContractMock) QueryStakedAmount ¶
func (m StakeContractMock) QueryStakedAmount(ctx sdk.Context, opAddr sdk.AccAddress) (*sdk.Int, error)
func (StakeContractMock) QueryStakingUnbonding ¶
func (m StakeContractMock) QueryStakingUnbonding(ctx sdk.Context, opAddr sdk.AccAddress) ([]stakingtypes.UnbondingDelegationEntry, error)
func (StakeContractMock) QueryStakingUnbondingPeriod ¶
type ValsetContractMock ¶
type ValsetContractMock struct { QueryValidatorFn func(ctx sdk.Context, opAddr sdk.AccAddress) (*stakingtypes.Validator, error) ListValidatorsFn func(ctx sdk.Context, pagination *contract.Paginator) ([]stakingtypes.Validator, contract.PaginationCursor, error) QueryConfigFn func(ctx sdk.Context) (*contract.ValsetConfigResponse, error) ListValidatorSlashingFn func(ctx sdk.Context, opAddr sdk.AccAddress) ([]contract.ValidatorSlashing, error) UpdateAdminFn func(ctx sdk.Context, new sdk.AccAddress, sender sdk.AccAddress) error }
func (ValsetContractMock) ListValidatorSlashing ¶
func (m ValsetContractMock) ListValidatorSlashing(ctx sdk.Context, opAddr sdk.AccAddress) ([]contract.ValidatorSlashing, error)
func (ValsetContractMock) ListValidators ¶
func (m ValsetContractMock) ListValidators(ctx sdk.Context, pagination *contract.Paginator) ([]stakingtypes.Validator, contract.PaginationCursor, error)
func (ValsetContractMock) QueryConfig ¶
func (m ValsetContractMock) QueryConfig(ctx sdk.Context) (*contract.ValsetConfigResponse, error)
func (ValsetContractMock) QueryValidator ¶
func (m ValsetContractMock) QueryValidator(ctx sdk.Context, opAddr sdk.AccAddress) (*stakingtypes.Validator, error)
func (ValsetContractMock) UpdateAdmin ¶
func (m ValsetContractMock) UpdateAdmin(ctx sdk.Context, new sdk.AccAddress, sender sdk.AccAddress) error
Click to show internal directories.
Click to hide internal directories.