pledge

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInsufficientFunds = errors.New("insufficient token balance")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	Stake(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error)
	UnStake(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error)
	GetShare(ctx context.Context, address common.Address) (*big.Int, error)
	GetSlash(ctx context.Context, address common.Address) (*big.Int, error)
	GetTotalShare(ctx context.Context) (*big.Int, error)
	GetTotalSlash(ctx context.Context) (*big.Int, error)
	AvailableBalance(ctx context.Context, address common.Address) (*big.Int, error)
	Txs() ([]string, error)
}

func New

func New(stateStore storage.StateStorer, backend transaction.Backend, transactionService transaction.Service, address common.Address) Service

Jump to

Keyboard shortcuts

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