Documentation
¶
Index ¶
Constants ¶
View Source
const ( ZPT_NAME = "ZPT Token" ZPT_SYMBOL = "ZPT" ZPT_DECIMALS = 4 ZPT_TOTAL_SUPPLY = uint64(10000000000000) )
zpt constants
View Source
const ( GALA_NAME = "GALA Token" GALA_SYMBOL = "GALA" GALA_DECIMALS = 4 GALA_TOTAL_SUPPLY = uint64(1000000000000000) GALA_UNBOUND_SUPPLY = uint64(180000000000000) )
gala 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)
zpt/gala unbound model constants
Variables ¶
View Source
var ( //TODO: modify this when on mainnet GENESIS_BLOCK_TIMESTAMP = uint32(time.Date(2018, time.August, 31, 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] != 5 || !((count-(uint64(UNBOUND_TIME_INTERVAL)*5))*10000 < GALA_UNBOUND_SUPPLY && GALA_UNBOUND_SUPPLY <= count*10000) { panic("incompatible constants setting") } return UNBOUND_TIME_INTERVAL*uint32(numInterval) - uint32((count-(GALA_UNBOUND_SUPPLY/10000))/5) })()
the end of unbound timestamp offset from genesis block's timestamp
View Source
var UNBOUND_GENERATION_AMOUNT = [18]uint64{89, 89, 55, 55, 55, 34, 34, 34, 21, 21, 21, 13, 13, 13, 8, 8, 5, 5}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.