systemstaking

package
v1.17.10 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

)

Variables

View Source
var (
	ABI abi.ABI
)

Functions

func GetVoteWeight

func GetVoteWeight(blkHeight uint64, duration uint32, 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
}

type VoteBucket

type VoteBucket struct {
	Index            uint64
	Candidate        string
	Owner            string
	StakedAmount     *big.Int
	StakedDuration   uint32
	CreateTime       time.Time
	StakeStartTime   time.Time
	UnstakeStartTime time.Time
	AutoStake        bool
}

Jump to

Keyboard shortcuts

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