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 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(2018, time.June, 30, 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.
Click to show internal directories.
Click to hide internal directories.