staking

package
v1.10.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: BSD-3-Clause Imports: 12 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ABIv0_0_0 = `` /* 12064-byte string literal not displayed */

Variables

View Source
var (
	MinimumStakeAmount = big.NewInt(100000000000000000)

	ErrInsufficientStakeAmount = errors.New("insufficient stake amount")
	ErrInsufficientFunds       = errors.New("insufficient token balance")
	ErrNotImplemented          = errors.New("not implemented")
)

Functions

This section is empty.

Types

type Contract

type Contract interface {
	DepositStake(ctx context.Context, stakedAmount *big.Int) error
	GetStake(ctx context.Context) (*big.Int, error)
}

func New

func New(
	overlay swarm.Address,
	owner common.Address,
	stakingContractAddress common.Address,
	bzzTokenAddress common.Address,
	transactionService transaction.Service,
	nonce common.Hash,
) Contract

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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