constants

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: LGPL-3.0 Imports: 2 Imported by: 65

Documentation

Index

Constants

View Source
const (
	ONT_NAME            = "ONT Token"
	ONT_SYMBOL          = "ONT"
	ONT_DECIMALS        = 0
	ONT_DECIMALS_V2     = 9
	ONT_TOTAL_SUPPLY    = 1000000000
	ONT_TOTAL_SUPPLY_V2 = 1000000000000000000
)
View Source
const (
	ONG_NAME         = "ONG Token"
	ONG_SYMBOL       = "ONG"
	ONG_DECIMALS     = 9
	ONG_DECIMALS_V2  = 18
	ONG_TOTAL_SUPPLY = 1000000000000000000
)

ong constants

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

network magic number

View Source
const (
	EIP155_CHAINID_MAINNET = 58
	EIP155_CHAINID_POLARIS = 5851
)
View Source
const BLOCKHEIGHT_CC_POLARIS = 13130000
View Source
const BLOCKHEIGHT_NEW_ONTID_MAINNET = 9000000
View Source
const BLOCKHEIGHT_NEW_ONTID_POLARIS = 12150000
View Source
const BLOCKHEIGHT_NEW_PEER_COST_MAINNET = 9400000

new node cost height

View Source
const BLOCKHEIGHT_NEW_PEER_COST_POLARIS = 13400000
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 BLOCKHEIGHT_TRACK_DESTROYED_CONTRACT_MAINNET = 11700000
View Source
const BLOCKHEIGHT_TRACK_DESTROYED_CONTRACT_POLARIS = 14100000
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 GWei = 1000000000

ont constants

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())

	CHANGE_UNBOUND_TIMESTAMP_MAINNET = uint32(time.Date(2020, time.July, 7, 0, 0, 0, 0, time.UTC).Unix())
	CHANGE_UNBOUND_TIMESTAMP_POLARIS = uint32(time.Date(2020, time.June, 28, 0, 0, 0, 0, time.UTC).Unix())
)

genesis constants

View Source
var (
	BLOCKHEIGHT_ADD_DECIMALS_MAINNET = uint32(13920000)
	BLOCKHEIGHT_ADD_DECIMALS_POLARIS = uint32(0)
)
View Source
var NEW_UNBOUND_GENERATION_AMOUNT = [18]uint64{5, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3}
View Source
var (
	ONG_TOTAL_SUPPLY_V2 = bigint.New(10).ExpUint8(27)
)
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