Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IoTChainCode/itc-ts
/ functions
Functions
370 in github.com/IoTChainCode/itc-ts
⨍
Functions
370
◇
Types & classes
91
↓ 79 callers
Method
all
(sql: string, ...params: any[])
src/storage/sqlstore.ts:7
↓ 43 callers
Method
run
(sql: string, ...params: any[])
src/storage/sqlstore.ts:9
↓ 33 callers
Method
get
(key: any)
src/storage/kvstore.ts:7
↓ 9 callers
Method
close
()
src/network/Peer.ts:52
↓ 9 callers
Method
on
(event: K, listener: Listener<T[K]>)
src/events/eventbus.ts:8
↓ 9 callers
Method
sendRequest
(ws: string | WebSocketClient, command: string, params?: any)
src/network/Peer.ts:114
↓ 8 callers
Method
reject
* Rejects pending promise with specified `value`.
src/common/ControlledPromise.ts:88
↓ 8 callers
Method
sendData
(ws: string | WebSocketClient, subject: string, body?: any)
src/network/Peer.ts:109
↓ 7 callers
Method
issueOrSelectNextAddress
(wallet: Base64, isChange: number = 0)
src/models/MyAddresses.ts:63
↓ 6 callers
Function
getSourceString
(obj: any)
src/common/string_utils.ts:8
↓ 6 callers
Function
isStringOfLength
(str: any, len: number)
src/common/validation_utils.ts:46
↓ 6 callers
Method
listen
(port?: number)
src/network/Peer.ts:44
↓ 6 callers
Method
readOrCreate
(passphrase?: string, path?: string)
src/common/HDKeys.ts:14
↓ 5 callers
Method
deriveAddress
(wallet: Base64, isChange: number, addressIndex: number)
src/models/MyAddresses.ts:20
↓ 5 callers
Method
unitError
(msg: string)
src/core/unit.ts:23
↓ 4 callers
Method
address
()
src/wallets/wallet.ts:25
↓ 4 callers
Method
getOrCreateClient
(ws: string | WebSocketClient)
src/network/Peer.ts:67
↓ 4 callers
Method
getOrOpen
()
src/storage/sqlstore.ts:17
↓ 4 callers
Method
resolve
(id: string, data: any)
src/network/WebSocketClient.ts:46
↓ 4 callers
Method
save
(filePath: string)
src/common/HDKey.ts:21
↓ 4 callers
Method
sign
(unit: Unit, address: Address, path: any)
src/core/signer.ts:53
↓ 4 callers
Function
sleep
(ms: number)
src/common/utils.ts:1
↓ 3 callers
Method
_send
(data: any)
src/network/WebSocketClient.ts:138
↓ 3 callers
Function
bin2buffer
(bin: string)
src/common/checksum_hash.ts:117
↓ 3 callers
Method
broadcastUnit
(unit: Unit)
src/network/Peer.ts:173
↓ 3 callers
Function
buffer2bin
(buf: Buffer)
src/common/checksum_hash.ts:104
↓ 3 callers
Method
create
(keyPath: string)
src/api/api.ts:12
↓ 3 callers
Method
emit
(event: K, arg: T[K])
src/events/eventbus.ts:22
↓ 3 callers
Function
getObjHashB64
(obj: any)
src/common/object_hash.ts:16
↓ 3 callers
Function
hasFieldsExcept
(obj: any, fields: string[])
src/common/validation_utils.ts:6
↓ 3 callers
Method
onData
(ws: WebSocketClient, subject: string, body: any)
src/network/Peer.ts:134
↓ 3 callers
Method
open
()
src/network/WebSocketClient.ts:123
↓ 3 callers
Method
read
(unit: Base64)
src/models/Units.ts:67
↓ 3 callers
Method
readUnitProps
(unit: Base64)
src/models/Units.ts:34
↓ 3 callers
Method
readWitnesses
(unit: Base64)
src/models/Witnesses.ts:20
↓ 3 callers
Method
sendGetPeers
(ws: Endpoint)
src/network/Peer.ts:156
↓ 2 callers
Method
_cleanup
(error?: any)
src/network/WebSocketClient.ts:223
↓ 2 callers
Method
_clearTimer
()
src/common/ControlledPromise.ts:161
↓ 2 callers
Method
_reliablySendPreparedMessageToHub
(ws: WebSocketClient | string, recipientPubKey: PubKey, obj: any)
src/core/device.ts:105
↓ 2 callers
Method
_settle
(value)
src/common/ControlledPromise.ts:168
↓ 2 callers
Function
addBall
(unit: Base64, parentBalls: Base64[], skiplistBalls: Base64[])
src/core/main_chain.ts:442
↓ 2 callers
Method
broadcast
(data: any)
src/network/WebSocketServer.ts:29
↓ 2 callers
Method
calcBall
()
src/core/unit.ts:70
↓ 2 callers
Function
calcOffsets
(chashLength: number)
src/common/checksum_hash.ts:17
↓ 2 callers
Method
calcUnit
()
src/core/unit.ts:66
↓ 2 callers
Method
call
* 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 callers
Function
checkLastBallDidNotRetreat
()
src/core/validation.ts:28
↓ 2 callers
Function
checkLength
(chashLength: number)
src/common/checksum_hash.ts:11
↓ 2 callers
Function
checkNotRebuildingStableMainChainAndGoDown
(lastMCI: number, lastMCU: Base64)
src/core/main_chain.ts:65
↓ 2 callers
Function
composeAuthors
(addresses: Address[], deviceAddresses: DeviceAddress[], signer: Signer)
src/core/composer.ts:70
↓ 2 callers
Function
composeGenesisUnit
(witnesses: Address[], wallet: Wallet)
src/core/composer.ts:30
↓ 2 callers
Method
create
(key: HDKey)
src/wallets/Wallets.ts:21
↓ 2 callers
Method
deriveDeviceAddress
()
src/common/HDKey.ts:44
↓ 2 callers
Function
deriveSharedSecret
(ecdh: ECDH, peerPubKey: PubKey)
src/common/encrypt.ts:20
↓ 2 callers
Function
determineIfThereAreMyUnitsWithoutMci
(address: Address)
src/witness/witness.ts:15
↓ 2 callers
Method
deviceAddress
()
src/core/device.ts:53
↓ 2 callers
Method
encryptMessage
(json: any, pubKey: PubKey)
src/common/encrypt.ts:15
↓ 2 callers
Method
findByWallet
(wallet: Base64)
src/models/XPubKeys.ts:13
↓ 2 callers
Method
fromHostPort
(host: string, port: number)
src/network/SocketAddr.ts:12
↓ 2 callers
Function
getAppDataDir
()
src/common/desktop.ts:5
↓ 2 callers
Method
getBalance
()
src/api/api.ts:28
↓ 2 callers
Function
getChash
(data: string, chashLength: number)
src/common/checksum_hash.ts:131
↓ 2 callers
Function
getChecksum
(cleanData: Buffer)
src/common/checksum_hash.ts:126
↓ 2 callers
Function
getLength
(value: any)
src/common/object_length.ts:26
↓ 2 callers
Function
getNakedUnit
(unit: Unit)
src/common/object_hash.ts:24
↓ 2 callers
Function
goUp
(startUnits)
src/core/graph.ts:62
↓ 2 callers
Function
isGenesisUnit
(unit: Unit)
src/core/genesis.ts:7
↓ 2 callers
Function
isInteger
(value: any)
src/common/validation_utils.ts:18
↓ 2 callers
Function
isNonnegativeInteger
(int: any)
src/common/validation_utils.ts:32
↓ 2 callers
Function
isValidAddress
(address: Address)
src/common/validation_utils.ts:58
↓ 2 callers
Function
isValidChash
(str: any, len: number)
src/common/validation_utils.ts:50
↓ 2 callers
Function
markMcIndexStable
(mci: number)
src/core/main_chain.ts:334
↓ 2 callers
Method
newTransferInput
(unit: Base64, messageIndex: number, outputIndex: number)
src/models/Messages.ts:7
↓ 2 callers
Method
ok
()
src/core/unit.ts:19
↓ 2 callers
Method
onRequest
(ws: WebSocketClient, id: string, command: string, params: any)
src/network/Peer.ts:147
↓ 2 callers
Method
put
(key: any, value: any)
src/storage/kvstore.ts:5
↓ 2 callers
Method
read
(unit: Base64, messageIndex: number)
src/models/Messages.ts:16
↓ 2 callers
Method
read
()
src/wallets/Wallets.ts:17
↓ 2 callers
Method
readDefinitions
(address: Address)
src/core/signer.ts:32
↓ 2 callers
Method
readOrCreate
(passphrase?: string, keyPath?: string)
src/wallets/Wallets.ts:61
↓ 2 callers
Method
readSigningPaths
(address: Address, signingDeviceAddresses: DeviceAddress[])
src/core/signer.ts:40
↓ 2 callers
Function
readUtxo
(addresses: Address[], mci: number, amount?: number, limit: number = 1)
src/core/composer.ts:126
↓ 2 callers
Method
readWitnessList
(unit: Base64)
src/models/Witnesses.ts:32
↓ 2 callers
Method
save
(unit: Unit)
src/models/Messages.ts:36
↓ 2 callers
Method
sendMessageToHub
(ws: WebSocketClient | string | null, recipientPubkey: PubKey, subject: any, body: any)
src/core/device.ts:85
↓ 2 callers
Method
sendMyAddr
(ws: Endpoint)
src/network/Peer.ts:200
↓ 2 callers
Method
sendPing
(ws: Endpoint)
src/network/Peer.ts:219
↓ 2 callers
Method
sendResponse
(ws: Endpoint, id: string, data: any)
src/network/Peer.ts:124
↓ 2 callers
Function
setContentHash
(unitHash: Base64)
src/core/main_chain.ts:369
↓ 2 callers
Method
start
(wsOptions?: ServerOptions)
src/network/WebSocketServer.ts:64
↓ 2 callers
Method
timeout
* 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 callers
Method
use
(fn: (ctx: Context, next: any) => Promise<any>)
src/network/WebSocketServer.ts:35
↓ 2 callers
Method
validateUnit
(unit: Unit)
src/core/unit.ts:74
↓ 2 callers
Method
witness
(wallet: Wallet, address: Address)
src/witness/witness.ts:126
↓ 1 callers
Method
_callFn
(fn)
src/common/ControlledPromise.ts:174
↓ 1 callers
Method
_cleanupWS
()
src/network/WebSocketClient.ts:219
↓ 1 callers
Method
_createPromise
()
src/common/ControlledPromise.ts:122
↓ 1 callers
Method
_createTimer
()
src/common/ControlledPromise.ts:155
↓ 1 callers
Method
_createWS
()
src/network/WebSocketClient.ts:176
↓ 1 callers
Method
_handleClose
(event)
src/network/WebSocketClient.ts:210
next →
1–100 of 370, ranked by callers