constants

package
v0.0.0-...-86e039a Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ONX_NAME           = "ONYX Token"
	ONX_SYMBOL         = "ONYX"
	ONX_DECIMALS       = 1 * 8
	ONX_DECIMALS_RATIO = uint64(100000000) // 10 ** 8
	ONX_RATIO          = uint64(10 * ONX_DECIMALS_RATIO)
	ONX_TOTAL_SUPPLY   = uint64(1000000000) * ONX_RATIO
)

onx constants

View Source
const (
	OXG_NAME         = "OXG Token"
	OXG_SYMBOL       = "OXG"
	OXG_DECIMALS     = 9
	OXG_TOTAL_SUPPLY = uint64(1000000000000000000)
)

oxg constants

View Source
const (
	NETWORK_MAGIC_MAINNET = 0x8c77ab60
	NETWORK_MAGIC_POLARIS = 0x2d8829df
)

network magic number

View Source
const MULTI_SIG_MAX_PUBKEY_SIZE = 16

multi-sig constants

View Source
const STATE_HASH_HEIGHT_MAINNET = 3000000

ledger state hash check height

View Source
const STATE_HASH_HEIGHT_POLARIS = 850000
View Source
const TX_MAX_SIG_SIZE = 16

transaction constants

View Source
const UNBOUND_TIME_INTERVAL = uint32(31536000)

onx/oxg unbound model constants

Variables

View Source
var (
	//TODO: modify this when on mainnet
	GENESIS_BLOCK_TIMESTAMP = uint32(time.Date(2019, time.January, 1, 0, 0, 0, 0, time.UTC).Unix())
)

genesis constants

View Source
var UNBOUND_DEADLINE = (func() uint32 {
	count := uint64(0)
	for _, m := range UNBOUND_GENERATION_AMOUNT {
		count += m
	}
	count *= uint64(UNBOUND_TIME_INTERVAL)

	numInterval := len(UNBOUND_GENERATION_AMOUNT)

	if UNBOUND_GENERATION_AMOUNT[numInterval-1] != 1 ||
		(count-uint64(UNBOUND_TIME_INTERVAL) > ONX_TOTAL_SUPPLY/ONX_RATIO && ONX_TOTAL_SUPPLY/ONX_RATIO > count) {
		panic("incompatible constants setting")
	}

	return UNBOUND_TIME_INTERVAL*uint32(numInterval) - uint32(count-uint64(ONX_TOTAL_SUPPLY)/ONX_RATIO)
})()

the end of unbound timestamp offset from genesis block's timestamp

View Source
var UNBOUND_GENERATION_AMOUNT = [18]uint64{5, 4, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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