export const ADDR_VERSION = '17' ; export const DEFAULT_SCRYPT = { cost : 4096 , blockSize : 8 , parallel : 8 , size : 64 } ; export const OEP_HEADER = '0142' ; export const OEP_FLAG = 'e0' ; export const WEBVIEW_SCHEME = 'Ont' ; export const DEFAULT_ALGORITHM = { algorithm : 'ECDSA' , parameters : { curve : 'P-256' } } ; export const DEFAULT_SM2_ID = '1234567812345678' ; export const TEST_NODE = 'polaris1.ont.io' ; export const TEST_NODE_1 = 'polaris1.ont.io' ; export const TEST_NODE_2 = 'polaris2.ont.io' ; export const MAIN_NODE = 'dappnode1.ont.io' ; export const HTTPS_REST_PORT = '10334' ; export const HTTPS_WS_PORT = '10335' ; export const HTTPS_JSON_PORT = '10336' ; export const REST_API = { getBalance : '/api/v1/balance' , getBalanceV2 : '/api/v1/balancev2' , sendRawTx : '/api/v1/transaction' , getMerkleProof : '/api/v1/merkleproof' } ; export const ONT_NETWORK = { MAIN : 'MainNet' , TEST : 'TestNet' } ; export const TEST_ONT_URL_1 = { SOCKET_URL : `wss://${ TEST_NODE_1 }:${ HTTPS_WS_PORT }` , RPC_URL : `https://${ TEST_NODE_1 }:${ HTTPS_JSON_PORT }` , REST_URL : `https://${ TEST_NODE_1 }:${ HTTPS_REST_PORT }` , sendRawTxByRestful : `https://${ TEST_NODE_1 }:${ HTTPS_REST_PORT }${ REST_API . sendRawTx }` } ; export const TEST_ONT_URL_2 = { SOCKET_URL : `wss://${ TEST_NODE_2 }:${ HTTPS_WS_PORT }` , RPC_URL : `https://${ TEST_NODE_2 }:${ HTTPS_JSON_PORT }` , REST_URL : `https://${ TEST_NODE_2 }:${ HTTPS_REST_PORT }` , sendRawTxByRestful : `https://${ TEST_NODE_2 }:${ HTTPS_REST_PORT }${ REST_API . sendRawTx }` } ; export const TEST_ONT_URL = { SOCKET_URL : `wss://${ TEST_NODE }:${ HTTPS_WS_PORT }` , RPC_URL : `https://${ TEST_NODE }:${ HTTPS_JSON_PORT }` , REST_URL : `https://${ TEST_NODE }:${ HTTPS_REST_PORT }` , sendRawTxByRestful : `https://${ TEST_NODE }:${ HTTPS_REST_PORT }${ REST_API . sendRawTx }` } ; export const MAIN_ONT_URL = { SOCKET_URL : `wss://${ MAIN_NODE }:${ HTTPS_WS_PORT }` , RPC_URL : `https://${ MAIN_NODE }:${ HTTPS_JSON_PORT }/` , REST_URL : `https://${ MAIN_NODE }:${ HTTPS_REST_PORT }/` , sendRawTxByRestful : `https://${ TEST_NODE }:${ HTTPS_REST_PORT }${ REST_API . sendRawTx }` } ; export const TOKEN_TYPE = { ONT : 'ONT' , ONG : 'ONG' } ; export const DEFAULT_GAS_LIMIT = 30000 ; export const NATIVE_INVOKE_NAME = 'Ontology.Native.Invoke' ; export const TX_MAX_SIG_SIZE = 16 ; export const ONT_BIP44_PATH = "m/44'/1024'/0'/0/0" ; export const UNBOUND_GENERATION_AMOUNT = [ 5 , 4 , 3 , 3 , 2 , 2 , 2 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ] ; export const UNBOUND_TIME_INTERVAL = 31536000 ; export const ONT_TOTAL_SUPPLY = 1000000000 ; export const GENESIS_BLOCK_TIMESTAMP = 1530316800 ;