transfertype

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pledge  = hex.EncodeToString([]byte("pledge"))
	Staking = hex.EncodeToString([]byte("staking"))

	Redeem       = hex.EncodeToString([]byte("redeem"))
	DelPid       = hex.EncodeToString([]byte("delPid"))
	UnlockReward = hex.EncodeToString([]byte("unlockReward"))
)
View Source
var (
	ErrDuplicatePledgedPid           = errors.New("duplicate pledged pid")
	ErrInsufficientPledge            = errors.New("insufficient funds for Pledge")
	ErrInsufficientRedeem1           = errors.New("insufficient funds for Redeem amount")
	ErrInsufficientRedeem2           = errors.New("unlockBlock not now")
	ErrNotPledged                    = errors.New("not pledged")
	ErrInsufficientUnlockRewardValue = errors.New("insufficient funds for UnlockReward")
	ErrInsufficientStakingValue      = errors.New("the staking amount is too small,Minimum 1000")
	ErrInsufficientFundsForRedeem    = errors.New("insufficient for redeem")
	ErrInvalidPeriods                = errors.New("invalid periods")
	ErrInvalidDelPid                 = errors.New("invalid del pid")
	ErrInvalidPledgedValue           = errors.New("invalid pledged value")
)

Functions

func CalculatePledgeAmount added in v1.8.3

func CalculatePledgeAmount(currentNetCapacity uint64) *big.Int

CalculatePledgeAmount file amount

Types

This section is empty.

Jump to

Keyboard shortcuts

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