blockchain

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultElderChecker  = 2
	DefaultBonusChecker  = 5
	DefaultBonusInterval = 8 * 60
)

Variables

This section is empty.

Functions

func InitConf

func InitConf(cf *BCConf)

Types

type BCConf

type BCConf struct {
	TweetContract           string `json:"tweet_vote_contract_address"`
	GameContract            string `json:"game_plugin_contract_address"`
	KolKeyContractAddress   string `json:"kol_key_contract_address"`
	InfuraUrl               string `json:"infura_url"`
	GameTimeInMinute        int    `json:"game_time_in_minute,omitempty"`
	TxCheckerInSeconds      int    `json:"tx_checker_in_seconds,omitempty"`
	ChainID                 int64  `json:"chain_id,omitempty"`
	ElderCheckTimeInSec     int    `json:"elder_check_time_in_sec"`
	PointBonusCheckInMin    int    `json:"point_bonus_check_in_min"`
	PointBonusIntervalInMin int    `json:"point_bonus_interval_in_min"`
	IsMaster                bool   `json:"is_master"`
}

func (*BCConf) String

func (c *BCConf) String() string

type DaemonProc

type DaemonProc struct {
	// contains filtered or unexported fields
}

func DaemonInst

func DaemonInst() *DaemonProc

func (*DaemonProc) Monitor

func (dp *DaemonProc) Monitor()

func (*DaemonProc) PointSumAtCurrentRound

func (dp *DaemonProc) PointSumAtCurrentRound() float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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