Documentation ¶
Index ¶
- func New(opts ...Option) staking.Contract
- type Option
- func WithDepositStake(f func(ctx context.Context, stakedAmount *big.Int) (common.Hash, error)) Option
- func WithGetStake(f func(ctx context.Context) (*big.Int, error)) Option
- func WithIsFrozen(f func(ctx context.Context, block uint64) (bool, error)) Option
- func WithWithdrawAllStake(f func(ctx context.Context) (common.Hash, error)) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(mock *stakingContractMock)
Option is a an option passed to New
func WithDepositStake ¶
func WithIsFrozen ¶
Click to show internal directories.
Click to hide internal directories.