Documentation ¶
Index ¶
- type DistributionContractMock
- type EngagementContractMock
- type StakeContractMock
- func (m StakeContractMock) Address() (sdk.AccAddress, error)
- 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) Address() (sdk.AccAddress, error)
- func (m ValsetContractMock) IterateActiveValidators(ctx sdk.Context, callback func(c contract.ValidatorInfo) bool, ...) error
- 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) AddressFn func() (sdk.AccAddress, error) }
func (DistributionContractMock) Address ¶ added in v1.0.0
func (m DistributionContractMock) Address() (sdk.AccAddress, 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 QueryDelegatedFn func(ctx sdk.Context, ownerAddr sdk.AccAddress) (*contract.DelegatedResponse, error) AddressFn func() (sdk.AccAddress, error) }
func (EngagementContractMock) Address ¶ added in v1.0.0
func (m EngagementContractMock) Address() (sdk.AccAddress, error)
func (EngagementContractMock) QueryDelegated ¶ added in v0.6.2
func (m EngagementContractMock) QueryDelegated(ctx sdk.Context, ownerAddr sdk.AccAddress) (*contract.DelegatedResponse, 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) AddressFn func() (sdk.AccAddress, error) }
func (StakeContractMock) Address ¶ added in v1.0.0
func (m StakeContractMock) Address() (sdk.AccAddress, 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 IterateActiveValidatorsFn func(ctx sdk.Context, callback func(c contract.ValidatorInfo) bool, pagination *contract.Paginator) error AddressFn func() (sdk.AccAddress, error) }
func (ValsetContractMock) Address ¶ added in v1.0.0
func (m ValsetContractMock) Address() (sdk.AccAddress, error)
func (ValsetContractMock) IterateActiveValidators ¶ added in v1.0.0
func (m ValsetContractMock) IterateActiveValidators(ctx sdk.Context, callback func(c contract.ValidatorInfo) bool, pagination *contract.Paginator) 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.