Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MinimumStakeAmount = big.NewInt(100000000000000000) ErrInsufficientStakeAmount = errors.New("insufficient stake amount") ErrInsufficientFunds = errors.New("insufficient token balance") ErrInsufficientStake = errors.New("insufficient stake") ErrNotImplemented = errors.New("not implemented") ErrNotPaused = errors.New("contract is not paused") ErrUnexpectedLength = errors.New("unexpected results length") )
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract interface {
DepositStake(ctx context.Context, stakedAmount *big.Int) (common.Hash, error)
ChangeStakeOverlay(ctx context.Context, nonce common.Hash) (common.Hash, error)
GetPotentialStake(ctx context.Context) (*big.Int, error)
GetWithdrawableStake(ctx context.Context) (*big.Int, error)
WithdrawStake(ctx context.Context) (common.Hash, error)
MigrateStake(ctx context.Context) (common.Hash, error)
UpdateHeight(ctx context.Context) (common.Hash, bool, error)
RedistributionStatuser
}
Click to show internal directories.
Click to hide internal directories.