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 WithMigrateStake(f func(ctx context.Context) (common.Hash, error)) Option
- func WithWithdrawStake(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 ¶
func WithMigrateStake ¶ added in v2.2.0
Click to show internal directories.
Click to hide internal directories.