poetesting

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 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 added in v1.0.0

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

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 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 (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