Documentation ¶
Index ¶
Constants ¶
View Source
const ( ONT_NAME = "ONT Token" ONT_SYMBOL = "ONT" ONT_DECIMALS = 0 ONT_TOTAL_SUPPLY = uint64(1000000000) )
ont constants
View Source
const ( ONG_NAME = "ONG Token" ONG_SYMBOL = "ONG" ONG_DECIMALS = 9 ONG_TOTAL_SUPPLY = uint64(1000000000000000000) )
ong constants
View Source
const ( NETWORK_MAGIC_MAINNET = 0x8c77ab60 NETWORK_MAGIC_POLARIS = 0x2d8829df )
network magic number
View Source
const BLOCKHEIGHT_NEW_ONTID_MAINNET = 9000000
View Source
const BLOCKHEIGHT_NEW_ONTID_POLARIS = 12150000
View Source
const BLOCKHEIGHT_ONTFS_MAINNET = 8550000
View Source
const BLOCKHEIGHT_ONTFS_POLARIS = 12250000
View Source
const BLOCKHEIGHT_SELFGOV_REGISTER_MAINNET = 8600000
self gov register height
View Source
const BLOCKHEIGHT_SELFGOV_REGISTER_POLARIS = 12150000
View Source
const CONTRACT_DEPRECATE_API_HEIGHT_MAINNET = 8600000
View Source
const CONTRACT_DEPRECATE_API_HEIGHT_POLARIS = 13000000
View Source
const GAS_ROUND_TUNE_HEIGHT_MAINNET = 8500000
gas round tune operation height
View Source
const GAS_ROUND_TUNE_HEIGHT_POLARIS = 10100000
View Source
const MULTI_SIG_MAX_PUBKEY_SIZE = 16
multi-sig constants
View Source
const OPCODE_HEIGHT_UPDATE_FIRST_MAINNET = 6300000
neovm opcode update check height
View Source
const OPCODE_HEIGHT_UPDATE_FIRST_POLARIS = 2100000
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)
ont/ong 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) < ONT_TOTAL_SUPPLY && ONT_TOTAL_SUPPLY <= count) { panic("incompatible constants setting") } return UNBOUND_TIME_INTERVAL*uint32(numInterval) - uint32(count-uint64(ONT_TOTAL_SUPPLY)) })()
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.