manager

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ManagerContract = "0xfffffffffffffffffffffffffffffffff0000003"
	ABI             = "" /* 5911-byte string literal not displayed */
)

Variables

View Source
var (
	SingleMode = big.NewInt(1)
	NormalMode = big.NewInt(0)
)

Functions

func CalculateStateDbIndex

func CalculateStateDbIndex(key *big.Int) []byte

calculate the statedb index from key and parameter

func GetCommitteeCount

func GetCommitteeCount(statedb *state.StateDB) int32

Get the committee max count based on state db reader Normal mode 0: 5 committees Single mode 1: 1 committees

func GetCommitteePublicKey

func GetCommitteePublicKey(statedb *state.StateDB) (res string, err error)

read the committee public key from contract

func IsCommittee

func IsCommittee(statedb *state.StateDB, addr common.Address) bool

Check the address whether be a committee based on state db reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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