forked from circlecloud/tera
		
	
							
								
								
									
										19
									
								
								src/global.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								src/global.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,9 @@
 | 
			
		||||
export { };
 | 
			
		||||
 | 
			
		||||
import CSmartContract from './core/transaction-validator'
 | 
			
		||||
import CConsensus from './core/block-exchange'
 | 
			
		||||
import CTransport from './core/server'
 | 
			
		||||
 | 
			
		||||
declare global {
 | 
			
		||||
    var nw: any;
 | 
			
		||||
    interface TeraError {
 | 
			
		||||
@@ -46,7 +50,10 @@ declare global {
 | 
			
		||||
            BLOCKNUM_TICKET_ALGO: number;
 | 
			
		||||
            WATCHDOG_BADACCOUNT: number;
 | 
			
		||||
            WATCHDOG_DEV: number;
 | 
			
		||||
            RESYNC_CONDITION: any;
 | 
			
		||||
            RESYNC_CONDITION: {
 | 
			
		||||
                OWN_BLOCKS: number;
 | 
			
		||||
                K_POW: number;
 | 
			
		||||
            };
 | 
			
		||||
            REST_BLOCK_SCALE: number;
 | 
			
		||||
            REST_START_COUNT: number;
 | 
			
		||||
            LOAD_TO_BEGIN: number;
 | 
			
		||||
@@ -190,7 +197,7 @@ declare global {
 | 
			
		||||
            ArrConnect: any[];
 | 
			
		||||
 | 
			
		||||
            //#region main-process.ts:51
 | 
			
		||||
            SERVER: any;
 | 
			
		||||
            SERVER: CSmartContract | CConsensus | CTransport | any;
 | 
			
		||||
            NeedRestart: number;
 | 
			
		||||
            WEB_PROCESS: TeraProcess;
 | 
			
		||||
            CountAllNode: number;
 | 
			
		||||
@@ -241,12 +248,12 @@ declare global {
 | 
			
		||||
            CompareItemBufFD: Function;
 | 
			
		||||
            CompareArr33: Function;
 | 
			
		||||
            CompareItemHashSimple: Function;
 | 
			
		||||
            CompareItemHash: Function;
 | 
			
		||||
            CompareItemHash: any;
 | 
			
		||||
            CompareItemHash32: Function;
 | 
			
		||||
            CompareItemHASH32: Function;
 | 
			
		||||
            CompareItemHash33: Function;
 | 
			
		||||
            CompareItemHashPow: Function;
 | 
			
		||||
            CompareItemTimePow: Function;
 | 
			
		||||
            CompareItemTimePow: any;
 | 
			
		||||
            LOAD_CONST: Function;
 | 
			
		||||
            SAVE_CONST: Function;
 | 
			
		||||
            CheckGlobalTime: Function;
 | 
			
		||||
@@ -368,7 +375,7 @@ declare global {
 | 
			
		||||
            //#endregion
 | 
			
		||||
 | 
			
		||||
            //#region web-process.ts
 | 
			
		||||
            LoadBlockFromNetwork: Function;
 | 
			
		||||
            LoadBlockFromNetwork: (Params, F?) => any;
 | 
			
		||||
            GlobalRunID: number;
 | 
			
		||||
            //#endregion
 | 
			
		||||
 | 
			
		||||
@@ -525,7 +532,7 @@ declare global {
 | 
			
		||||
            CopyObjValue: Function;
 | 
			
		||||
            CopyArr: Function;
 | 
			
		||||
            ParseNum: Function;
 | 
			
		||||
            CompareArr: Function;
 | 
			
		||||
            CompareArr: (a: any[], b: any[]) => number;
 | 
			
		||||
            CompareArrL: Function;
 | 
			
		||||
            shaarr2: Function;
 | 
			
		||||
            sha3arr2: Function;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user