transfertype

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 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"))
	UnlockStaking = hex.EncodeToString([]byte("unlockStaking"))
)
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")
	ErrInsufficientUnlockStakingValue    = errors.New("insufficient funds for UnlockStaking")
	ErrInsufficientUnlockRewardValue     = errors.New("insufficient funds for UnlockReward")
	ErrInsufficientStakingValue          = errors.New("the staking amount is too small,Minimum 1000")
	ErrInsufficientFundsForRedeem        = errors.New("insufficient for redeem")
	ErrInsufficientFundsForUnlockStaking = errors.New("insufficient funds for unlockStaking")
)

Functions

func CalculateNetCapacity added in v1.8.2

func CalculateNetCapacity(currentNetCapacity uint64) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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