systemstaking

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ABIStr = `` /* 19947-byte string literal not displayed */

)
View Source
const (
	ABIV3Str = `` /* 19762-byte string literal not displayed */

)

Variables

View Source
var (
	ABI abi.ABI
)
View Source
var (
	ABIV3 abi.ABI
)

Functions

func BlocksToDuration added in v1.17.13

func BlocksToDuration(blocks uint32, halfBlockInterval bool) time.Duration

func DurationByType added in v1.17.13

func DurationByType(duration time.Duration, durationType uint8) uint32

func DurationFromType added in v1.17.13

func DurationFromType(duration uint32, durationType uint8) time.Duration

func GetVoteWeight

func GetVoteWeight(blkHeight uint64, duration time.Duration, stakeAmount *big.Int, autoStake, selfStake bool) *big.Int

Types

type BucketInfo

type BucketInfo struct {
	OwnerAddress         string
	DelegateOwnerAddress string
	StakedAmount         string
	Amount               string
	VotingPower          string
	AutoStake            bool
	Duration             uint32
	DurationType         uint8
	CreateTime           int64
	StakeStartTime       int64
	UnstakeStartTime     int64
	Muted                bool
}

Jump to

Keyboard shortcuts

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