Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DAVFoundation/dav-js
/ functions
Functions
317 in github.com/DAVFoundation/dav-js
⨍
Functions
317
◇
Types & classes
169
↓ 38 callers
Function
sdkLogger
(message?: any, ...optionalParams: any[])
src/sdkLogger.ts:1
↓ 36 callers
Method
messages
(topicId: string, config: IConfig)
src/common-types.ts:50
↓ 20 callers
Method
sendMessage
* @method sendMessage Used to send a message to the bid provider. * @param messageParams the message parameters.
src/Bid.ts:144
↓ 20 callers
Method
serialize
()
src/ride-hailing/BidParams.ts:84
↓ 17 callers
Method
fromObservable
( observableRx: RxObservable<T>, topic: ID, )
src/common-types.ts:58
↓ 16 callers
Method
filterType
( typesFilter: string[], )
src/KafkaMessageStream.ts:24
↓ 14 callers
Method
deserialize
(json: any)
src/ride-hailing/BidParams.ts:94
↓ 14 callers
Method
sendParams
( topicId: string, basicParams: BasicParams, config: IConfig, )
src/common-types.ts:45
↓ 10 callers
Method
createTopic
(topicId: string, config: IConfig)
src/common-types.ts:44
↓ 10 callers
Method
deserialize
(json: any)
src/vessel-charging/messages/DeclineMessageParams.ts:17
↓ 10 callers
Method
deserialize
(json: any)
src/drone-delivery/BidParams.ts:48
↓ 10 callers
Method
deserialize
(json: any)
src/drone-charging/messages/DeclineMessageParams.ts:17
↓ 10 callers
Method
isRegistered
* @method isRegistered Used to check the DAV Identity is registered. * @param davId The unique DAV identity string. * @returns true if the davId
src/SDK.ts:31
↓ 10 callers
Function
printLine
()
samples/vessel_charging/Consumer.ts:16
↓ 9 callers
Method
getIdentity
* @method getIdentity Used to create an instance DAV Identity class. * @param davId the unique DAV identity string. * @param config DavSDK confi
src/SDK.ts:18
↓ 9 callers
Method
missions
* @method missions Used to subscribe for missions. * @returns Observable for missions subscription.
src/Bid.ts:176
↓ 9 callers
Function
printLine
()
samples/vessel_charging/Provider.ts:18
↓ 9 callers
Method
registerIdentity
* @method registerIdentity Used to register an instance to the DAV identity contract. * @param davId The DAV identity string to register. * @par
src/SDK.ts:42
↓ 8 callers
Function
printLine
()
src/ContractsIntegrationSimulator.ts:30
↓ 8 callers
Method
respond
* @method respond Used to reply for the current message. * @param params the message parameters.
src/Message.ts:20
↓ 7 callers
Method
accept
( missionParams: V, walletPrivateKey: string, )
src/Bid.ts:89
↓ 7 callers
Method
finalizeMission
* @method finalizeMission Used to approve the mission is completed, * and transfer the tokens from the basicMission contract to the service provide
src/Mission.ts:64
↓ 7 callers
Method
getContract
( contractType: ContractTypes, web3: Web3, config: IConfig, )
src/Contracts.ts:33
↓ 7 callers
Method
initWeb3
(config: IConfig)
src/Contracts.ts:29
↓ 6 callers
Method
deserialize
(json: any)
src/vessel-charging/BidParams.ts:144
↓ 6 callers
Method
deserialize
(json: any)
src/drone-charging/BidParams.ts:144
↓ 6 callers
Method
deserialize
()
src/tests/KafkaMessageStream.test.ts:27
↓ 6 callers
Method
getMessageTypes
( protocol: string, category: MessageCategories, )
src/KafkaMessageFactory.ts:76
↓ 6 callers
Method
mission
* @method mission Used to restore an existed mission. * @param missionSelfId The mission self topic ID. * @param missionPeerId The mission peer
src/Identity.ts:151
↓ 6 callers
Method
publishNeed
* @method publishNeed Used to create a new need and publish it to the relevant service providers. * @param needParams the need parameters. * @re
src/Identity.ts:42
↓ 6 callers
Method
registerMessageClasses
( messageClasses: Array<{ protocol: string; messageType: string; messageCategory: Messag
src/KafkaMessageFactory.ts:94
↓ 6 callers
Method
requestCommitment
()
src/Bid.ts:53
↓ 6 callers
Method
serialize
()
src/vessel-charging/messages/DeclineMessageParams.ts:12
↓ 6 callers
Method
serialize
()
src/drone-charging/messages/DeclineMessageParams.ts:12
↓ 5 callers
Function
SDKFactory
(config: IConfig)
src/SDKFactory.ts:9
↓ 5 callers
Method
bid
* @method bid Used to restore an existed bid. * @param bidSelfId The selfId that used to create the bid. * @param params The bid parameters.
src/Identity.ts:138
↓ 5 callers
Method
bids
* @method bids Used to subscribe for bids for the current need. * @returns Observable for bids subscription.
src/Need.ts:58
↓ 5 callers
Method
equals
* @method equals Used to compare between two price objects.
src/IPrice.ts:22
↓ 5 callers
Function
forContextSwitch
()
src/tests/Identity.test.ts:42
↓ 5 callers
Method
isIdentityRegistered
( davId: DavID, config: IConfig, )
src/Contracts.ts:93
↓ 5 callers
Method
needsForType
* @method needsForType Used to subscribe for specific needs (filtered by params). * @param needFilterParams the filter parameters. * @returns Ob
src/Identity.ts:64
↓ 5 callers
Method
serialize
()
src/vessel-charging/BidParams.ts:128
↓ 5 callers
Method
serialize
()
src/drone-delivery/BidParams.ts:40
↓ 5 callers
Method
serialize
()
src/drone-charging/BidParams.ts:128
↓ 4 callers
Method
approveMission
( davId: DavID, walletPrivateKey: string, config: IConfig, )
src/Contracts.ts:157
↓ 4 callers
Method
getKafkaClient
(config: IConfig)
src/KafkaNode.ts:13
↓ 4 callers
Method
getKafkaMessageStream
()
src/Bid.ts:43
↓ 4 callers
Method
getProtocol
(protocol: string)
src/KafkaMessageFactory.ts:37
↓ 4 callers
Method
sendSignedTransaction
( web3: Web3, rawTransaction: string, )
src/Contracts.ts:48
↓ 4 callers
Method
signContract
* @method signContract Used to transfer tokens to the basicMission contract in order to start the mission. * @param walletPrivateKey Ethereum walle
src/Mission.ts:40
↓ 4 callers
Method
signTransaction
()
src/mocks/Web3Mock.ts:19
↓ 4 callers
Method
startMission
( missionId: ID, davId: DavID, walletPublicKey: string, walletPrivateKey: string, vehicleI
src/Contracts.ts:199
↓ 4 callers
Method
toSafeGasLimit
(gasAmount: number)
src/Contracts.ts:76
↓ 3 callers
Method
commitmentRequests
* @method commitmentRequests Used to subscribe for commitmentRequests for current bid. * @returns Observable of commitmentRequests.
src/Bid.ts:205
↓ 3 callers
Method
createBid
(need: Need<NeedParams>)
samples/vessel_charging/Provider.ts:90
↓ 3 callers
Method
createBid
* @method createBid Used to create a new bid for the current need and publish it to the service consumer. * @param bidParams The bid parameters.
src/Need.ts:34
↓ 3 callers
Function
forContextSwitch
()
src/tests/Bid.test.ts:33
↓ 3 callers
Method
generateTopicId
()
src/common-types.ts:43
↓ 3 callers
Method
init
(davId: string, _publicKey: string, privateKey: string)
samples/vessel_charging/Consumer.ts:31
↓ 3 callers
Function
retryPromise
( promiseFactory: (currentAttempt: number) => Promise<T>, options?: retry.OperationOptions, )
src/retryPromise.ts:3
↓ 3 callers
Method
watchContract
( davId: string, contractType: ContractTypes, config: IConfig, )
src/Contracts.ts:293
↓ 2 callers
Function
forContextSwitch
()
src/tests/Contracts.test.ts:20
↓ 2 callers
Function
formatArea
(area: any)
src/NeedFilterParams.ts:36
↓ 2 callers
Method
init
(davId: string, privateKey: string)
samples/vessel_charging/Provider.ts:33
↓ 2 callers
Method
need
* @method need Used to restore an existed need. * @param needSelfId The selfId that used to create the bid. * @param params The need parameters.
src/Identity.ts:126
↓ 2 callers
Method
registerNewTopic
()
src/Identity.ts:26
↓ 2 callers
Method
start
()
samples/vessel_charging/Consumer.ts:48
↓ 2 callers
Method
start
()
samples/vessel_charging/Provider.ts:50
↓ 2 callers
Function
test
()
src/tests/KafkaMessageStream.test.ts:239
↓ 1 callers
Function
beginMission
(contract)
samples/drone_delivery/provider_sample.js:76
↓ 1 callers
Method
checkContractPastEvents
( contract: Contract /* , filterParam: string */, )
src/Contracts.ts:68
↓ 1 callers
Method
confirm
()
src/CommitmentRequest.ts:15
↓ 1 callers
Method
createMission
(bid: Bid<BidParams>)
samples/vessel_charging/Consumer.ts:85
↓ 1 callers
Method
createNeed
()
samples/vessel_charging/Consumer.ts:62
↓ 1 callers
Function
forContextSwitch
()
src/tests/Mission.test.ts:27
↓ 1 callers
Function
forContextSwitch
()
src/tests/Need.test.ts:11
↓ 1 callers
Method
fromJson
( classType: new (...all: any[]) => T, json: any, )
src/KafkaMessageStream.ts:13
↓ 1 callers
Method
generateMissionId
(config: IConfig)
src/Contracts.ts:87
↓ 1 callers
Method
getClassType
( protocol: string, messageType: string, )
src/KafkaMessageFactory.ts:68
↓ 1 callers
Method
getConsumer
( topicId: string, config: IConfig, )
src/KafkaNode.ts:44
↓ 1 callers
Method
getNeeds
()
samples/vessel_charging/Provider.ts:71
↓ 1 callers
Method
getPastEvents
()
src/mocks/Web3Mock.ts:8
↓ 1 callers
Method
getProducer
(config: IConfig)
src/KafkaNode.ts:38
↓ 1 callers
Method
isConnected
(config: IConfig)
src/KafkaNode.ts:173
↓ 1 callers
Function
loadKafka
()
src/Kafka.ts:8
↓ 1 callers
Function
main
()
samples/vessel_charging/index.ts:4
↓ 1 callers
Function
main
()
samples/vessel_charging/Consumer.ts:176
↓ 1 callers
Function
main
()
samples/vessel_charging/Provider.ts:178
↓ 1 callers
Function
main
()
src/ContractsIntegrationSimulator.ts:29
↓ 1 callers
Function
onMissionCreated
(oldMission: Mission<MissionParams>)
samples/ride-hailing/passenger.ts:48
↓ 1 callers
Function
onVehicleInRiding
(message: Message<MessageParams>)
samples/ride-hailing/driver.ts:42
↓ 1 callers
Method
privateKeyToAccount
()
src/mocks/Web3Mock.ts:15
↓ 1 callers
Method
rawMessages
( topicId: string, config: IConfig, )
src/KafkaNode.ts:128
↓ 1 callers
Method
registerClassType
( protocol: string, messageType: string, classType: new (...all: any[]) => T, )
src/KafkaMessageFactory.ts:47
↓ 1 callers
Method
registerMessageCategory
( protocol: string, messageType: string, messageCategory: MessageCategories, )
src/KafkaMessageFactory.ts:56
↓ 1 callers
Method
registerMessageClassAndCategory
( protocol: string, messageType: string, messageCategory: MessageCategories, classType: new (.
src/KafkaMessageFactory.ts:84
↓ 1 callers
Function
runConsumer
(configuration?: IConfig)
samples/ride-hailing/passenger.ts:16
↓ 1 callers
Function
runProvider
(configuration?: IConfig)
samples/ride-hailing/driver.ts:14
↓ 1 callers
Method
sendMessage
( topicId: string, message: string, config: IConfig, )
src/KafkaNode.ts:82
↓ 1 callers
Method
sendPayloads
( payloads: ProduceRequest[], config: IConfig, )
src/KafkaNode.ts:90
next →
1–100 of 317, ranked by callers