masternode

package
v0.0.0-...-11c7724 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIdsByBlockNumber

func GetIdsByBlockNumber(contract *contract.Contract, blockNumber *big.Int) ([]string, error)

func GetMasternodeID

func GetMasternodeID(ID discv5.NodeID) string

Types

type Masternode

type Masternode struct {
	ENode *enode.Node

	ID          string
	NodeID      discv5.NodeID
	Account     common.Address
	OriginBlock *big.Int

	BlockOnline    *big.Int
	BlockOnlineAcc *big.Int
	BlockLastPing  *big.Int
}

func (*Masternode) String

func (n *Masternode) String() string

type MasternodeContext

type MasternodeContext struct {
	Node *Masternode
	// contains filtered or unexported fields
}

func GetMasternodeContext

func GetMasternodeContext(opts *bind.CallOpts, contract *contract.Contract, id [8]byte) (*MasternodeContext, error)

type MasternodeData

type MasternodeData struct {
	Index      int            `json:"index"     gencodec:"required"`
	Id         string         `json:"id"        gencodec:"required"`
	Data       string         `json:"data"      gencodec:"required"`
	Note       string         `json:"note"      gencodec:"required"`
	Account    common.Address `json:"account"`
	PrivateKey string         `json:"privateKey"       gencodec:"required"`
	PublicKey  string         `json:"publicKey"       gencodec:"required"`

	Coinbase       common.Address `json:"coinbase"`
	Status         uint64         `json:"status"`
	BlockEnd       uint64         `json:"blockEnd"`
	BlockRegister  uint64         `json:"blockRegister"`
	BlockLastPing  uint64         `json:"blockLastPing"`
	BlockOnline    uint64         `json:"blockOnline"`
	BlockOnlineAcc uint64         `json:"blockOnlineAcc"`
	Referrer       string         `json:"referrer"`
}

type MasternodeDatas

type MasternodeDatas []*MasternodeData

func (MasternodeDatas) Len

func (s MasternodeDatas) Len() int

func (MasternodeDatas) Less

func (s MasternodeDatas) Less(i, j int) bool

func (MasternodeDatas) Swap

func (s MasternodeDatas) Swap(i, j int)

Jump to

Keyboard shortcuts

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