MCPcopy Create free account

hub / github.com/IoTChainCode/itc-ts / functions

Functions370 in github.com/IoTChainCode/itc-ts

↓ 79 callersMethodall
(sql: string, ...params: any[])
src/storage/sqlstore.ts:7
↓ 43 callersMethodrun
(sql: string, ...params: any[])
src/storage/sqlstore.ts:9
↓ 33 callersMethodget
(key: any)
src/storage/kvstore.ts:7
↓ 9 callersMethodclose
()
src/network/Peer.ts:52
↓ 9 callersMethodon
(event: K, listener: Listener<T[K]>)
src/events/eventbus.ts:8
↓ 9 callersMethodsendRequest
(ws: string | WebSocketClient, command: string, params?: any)
src/network/Peer.ts:114
↓ 8 callersMethodreject
* Rejects pending promise with specified `value`.
src/common/ControlledPromise.ts:88
↓ 8 callersMethodsendData
(ws: string | WebSocketClient, subject: string, body?: any)
src/network/Peer.ts:109
↓ 7 callersMethodissueOrSelectNextAddress
(wallet: Base64, isChange: number = 0)
src/models/MyAddresses.ts:63
↓ 6 callersFunctiongetSourceString
(obj: any)
src/common/string_utils.ts:8
↓ 6 callersFunctionisStringOfLength
(str: any, len: number)
src/common/validation_utils.ts:46
↓ 6 callersMethodlisten
(port?: number)
src/network/Peer.ts:44
↓ 6 callersMethodreadOrCreate
(passphrase?: string, path?: string)
src/common/HDKeys.ts:14
↓ 5 callersMethodderiveAddress
(wallet: Base64, isChange: number, addressIndex: number)
src/models/MyAddresses.ts:20
↓ 5 callersMethodunitError
(msg: string)
src/core/unit.ts:23
↓ 4 callersMethodaddress
()
src/wallets/wallet.ts:25
↓ 4 callersMethodgetOrCreateClient
(ws: string | WebSocketClient)
src/network/Peer.ts:67
↓ 4 callersMethodgetOrOpen
()
src/storage/sqlstore.ts:17
↓ 4 callersMethodresolve
(id: string, data: any)
src/network/WebSocketClient.ts:46
↓ 4 callersMethodsave
(filePath: string)
src/common/HDKey.ts:21
↓ 4 callersMethodsign
(unit: Unit, address: Address, path: any)
src/core/signer.ts:53
↓ 4 callersFunctionsleep
(ms: number)
src/common/utils.ts:1
↓ 3 callersMethod_send
(data: any)
src/network/WebSocketClient.ts:138
↓ 3 callersFunctionbin2buffer
(bin: string)
src/common/checksum_hash.ts:117
↓ 3 callersMethodbroadcastUnit
(unit: Unit)
src/network/Peer.ts:173
↓ 3 callersFunctionbuffer2bin
(buf: Buffer)
src/common/checksum_hash.ts:104
↓ 3 callersMethodcreate
(keyPath: string)
src/api/api.ts:12
↓ 3 callersMethodemit
(event: K, arg: T[K])
src/events/eventbus.ts:22
↓ 3 callersFunctiongetObjHashB64
(obj: any)
src/common/object_hash.ts:16
↓ 3 callersFunctionhasFieldsExcept
(obj: any, fields: string[])
src/common/validation_utils.ts:6
↓ 3 callersMethodonData
(ws: WebSocketClient, subject: string, body: any)
src/network/Peer.ts:134
↓ 3 callersMethodopen
()
src/network/WebSocketClient.ts:123
↓ 3 callersMethodread
(unit: Base64)
src/models/Units.ts:67
↓ 3 callersMethodreadUnitProps
(unit: Base64)
src/models/Units.ts:34
↓ 3 callersMethodreadWitnesses
(unit: Base64)
src/models/Witnesses.ts:20
↓ 3 callersMethodsendGetPeers
(ws: Endpoint)
src/network/Peer.ts:156
↓ 2 callersMethod_cleanup
(error?: any)
src/network/WebSocketClient.ts:223
↓ 2 callersMethod_clearTimer
()
src/common/ControlledPromise.ts:161
↓ 2 callersMethod_reliablySendPreparedMessageToHub
(ws: WebSocketClient | string, recipientPubKey: PubKey, obj: any)
src/core/device.ts:105
↓ 2 callersMethod_settle
(value)
src/common/ControlledPromise.ts:168
↓ 2 callersFunctionaddBall
(unit: Base64, parentBalls: Base64[], skiplistBalls: Base64[])
src/core/main_chain.ts:442
↓ 2 callersMethodbroadcast
(data: any)
src/network/WebSocketServer.ts:29
↓ 2 callersMethodcalcBall
()
src/core/unit.ts:70
↓ 2 callersFunctioncalcOffsets
(chashLength: number)
src/common/checksum_hash.ts:17
↓ 2 callersMethodcalcUnit
()
src/core/unit.ts:66
↓ 2 callersMethodcall
* This method executes `fn` and returns promise. While promise is pending all subsequent calls of `.call(fn)` * will return the same promise. To
src/common/ControlledPromise.ts:66
↓ 2 callersFunctioncheckLastBallDidNotRetreat
()
src/core/validation.ts:28
↓ 2 callersFunctioncheckLength
(chashLength: number)
src/common/checksum_hash.ts:11
↓ 2 callersFunctioncheckNotRebuildingStableMainChainAndGoDown
(lastMCI: number, lastMCU: Base64)
src/core/main_chain.ts:65
↓ 2 callersFunctioncomposeAuthors
(addresses: Address[], deviceAddresses: DeviceAddress[], signer: Signer)
src/core/composer.ts:70
↓ 2 callersFunctioncomposeGenesisUnit
(witnesses: Address[], wallet: Wallet)
src/core/composer.ts:30
↓ 2 callersMethodcreate
(key: HDKey)
src/wallets/Wallets.ts:21
↓ 2 callersMethodderiveDeviceAddress
()
src/common/HDKey.ts:44
↓ 2 callersFunctionderiveSharedSecret
(ecdh: ECDH, peerPubKey: PubKey)
src/common/encrypt.ts:20
↓ 2 callersFunctiondetermineIfThereAreMyUnitsWithoutMci
(address: Address)
src/witness/witness.ts:15
↓ 2 callersMethoddeviceAddress
()
src/core/device.ts:53
↓ 2 callersMethodencryptMessage
(json: any, pubKey: PubKey)
src/common/encrypt.ts:15
↓ 2 callersMethodfindByWallet
(wallet: Base64)
src/models/XPubKeys.ts:13
↓ 2 callersMethodfromHostPort
(host: string, port: number)
src/network/SocketAddr.ts:12
↓ 2 callersFunctiongetAppDataDir
()
src/common/desktop.ts:5
↓ 2 callersMethodgetBalance
()
src/api/api.ts:28
↓ 2 callersFunctiongetChash
(data: string, chashLength: number)
src/common/checksum_hash.ts:131
↓ 2 callersFunctiongetChecksum
(cleanData: Buffer)
src/common/checksum_hash.ts:126
↓ 2 callersFunctiongetLength
(value: any)
src/common/object_length.ts:26
↓ 2 callersFunctiongetNakedUnit
(unit: Unit)
src/common/object_hash.ts:24
↓ 2 callersFunctiongoUp
(startUnits)
src/core/graph.ts:62
↓ 2 callersFunctionisGenesisUnit
(unit: Unit)
src/core/genesis.ts:7
↓ 2 callersFunctionisInteger
(value: any)
src/common/validation_utils.ts:18
↓ 2 callersFunctionisNonnegativeInteger
(int: any)
src/common/validation_utils.ts:32
↓ 2 callersFunctionisValidAddress
(address: Address)
src/common/validation_utils.ts:58
↓ 2 callersFunctionisValidChash
(str: any, len: number)
src/common/validation_utils.ts:50
↓ 2 callersFunctionmarkMcIndexStable
(mci: number)
src/core/main_chain.ts:334
↓ 2 callersMethodnewTransferInput
(unit: Base64, messageIndex: number, outputIndex: number)
src/models/Messages.ts:7
↓ 2 callersMethodok
()
src/core/unit.ts:19
↓ 2 callersMethodonRequest
(ws: WebSocketClient, id: string, command: string, params: any)
src/network/Peer.ts:147
↓ 2 callersMethodput
(key: any, value: any)
src/storage/kvstore.ts:5
↓ 2 callersMethodread
(unit: Base64, messageIndex: number)
src/models/Messages.ts:16
↓ 2 callersMethodread
()
src/wallets/Wallets.ts:17
↓ 2 callersMethodreadDefinitions
(address: Address)
src/core/signer.ts:32
↓ 2 callersMethodreadOrCreate
(passphrase?: string, keyPath?: string)
src/wallets/Wallets.ts:61
↓ 2 callersMethodreadSigningPaths
(address: Address, signingDeviceAddresses: DeviceAddress[])
src/core/signer.ts:40
↓ 2 callersFunctionreadUtxo
(addresses: Address[], mci: number, amount?: number, limit: number = 1)
src/core/composer.ts:126
↓ 2 callersMethodreadWitnessList
(unit: Base64)
src/models/Witnesses.ts:32
↓ 2 callersMethodsave
(unit: Unit)
src/models/Messages.ts:36
↓ 2 callersMethodsendMessageToHub
(ws: WebSocketClient | string | null, recipientPubkey: PubKey, subject: any, body: any)
src/core/device.ts:85
↓ 2 callersMethodsendMyAddr
(ws: Endpoint)
src/network/Peer.ts:200
↓ 2 callersMethodsendPing
(ws: Endpoint)
src/network/Peer.ts:219
↓ 2 callersMethodsendResponse
(ws: Endpoint, id: string, data: any)
src/network/Peer.ts:124
↓ 2 callersFunctionsetContentHash
(unitHash: Base64)
src/core/main_chain.ts:369
↓ 2 callersMethodstart
(wsOptions?: ServerOptions)
src/network/WebSocketServer.ts:64
↓ 2 callersMethodtimeout
* Sets timeout to reject promise automatically. * @param {String|Error|Function} [reason] rejection value. If it is string or error - promise wil
src/common/ControlledPromise.ts:115
↓ 2 callersMethoduse
(fn: (ctx: Context, next: any) => Promise<any>)
src/network/WebSocketServer.ts:35
↓ 2 callersMethodvalidateUnit
(unit: Unit)
src/core/unit.ts:74
↓ 2 callersMethodwitness
(wallet: Wallet, address: Address)
src/witness/witness.ts:126
↓ 1 callersMethod_callFn
(fn)
src/common/ControlledPromise.ts:174
↓ 1 callersMethod_cleanupWS
()
src/network/WebSocketClient.ts:219
↓ 1 callersMethod_createPromise
()
src/common/ControlledPromise.ts:122
↓ 1 callersMethod_createTimer
()
src/common/ControlledPromise.ts:155
↓ 1 callersMethod_createWS
()
src/network/WebSocketClient.ts:176
↓ 1 callersMethod_handleClose
(event)
src/network/WebSocketClient.ts:210
next →1–100 of 370, ranked by callers