poetesting

package
v0.0.0-...-7205676 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

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)
	QueryWithdrawableRewardsFn func(ctx sdk.Context, addr sdk.AccAddress) (sdk.Coin, error)
	AddressFn                  func() (sdk.AccAddress, error)
}

func (EngagementContractMock) Address

func (m EngagementContractMock) Address() (sdk.AccAddress, error)

func (EngagementContractMock) QueryDelegated

func (m EngagementContractMock) QueryDelegated(ctx sdk.Context, ownerAddr sdk.AccAddress) (*contract.DelegatedResponse, error)

func (EngagementContractMock) QueryWithdrawableRewards

func (m EngagementContractMock) QueryWithdrawableRewards(ctx sdk.Context, addr sdk.AccAddress) (sdk.Coin, 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

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

func (m StakeContractMock) QueryStakingUnbondingPeriod(ctx sdk.Context) (time.Duration, error)

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

func (m ValsetContractMock) Address() (sdk.AccAddress, error)

func (ValsetContractMock) IterateActiveValidators

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 (ValsetContractMock) QueryConfig

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL