MCPcopy Create free account

hub / github.com/DAVFoundation/dav-js / functions

Functions317 in github.com/DAVFoundation/dav-js

↓ 38 callersFunctionsdkLogger
(message?: any, ...optionalParams: any[])
src/sdkLogger.ts:1
↓ 36 callersMethodmessages
(topicId: string, config: IConfig)
src/common-types.ts:50
↓ 20 callersMethodsendMessage
* @method sendMessage Used to send a message to the bid provider. * @param messageParams the message parameters.
src/Bid.ts:144
↓ 20 callersMethodserialize
()
src/ride-hailing/BidParams.ts:84
↓ 17 callersMethodfromObservable
( observableRx: RxObservable<T>, topic: ID, )
src/common-types.ts:58
↓ 16 callersMethodfilterType
( typesFilter: string[], )
src/KafkaMessageStream.ts:24
↓ 14 callersMethoddeserialize
(json: any)
src/ride-hailing/BidParams.ts:94
↓ 14 callersMethodsendParams
( topicId: string, basicParams: BasicParams, config: IConfig, )
src/common-types.ts:45
↓ 10 callersMethodcreateTopic
(topicId: string, config: IConfig)
src/common-types.ts:44
↓ 10 callersMethoddeserialize
(json: any)
src/vessel-charging/messages/DeclineMessageParams.ts:17
↓ 10 callersMethoddeserialize
(json: any)
src/drone-delivery/BidParams.ts:48
↓ 10 callersMethoddeserialize
(json: any)
src/drone-charging/messages/DeclineMessageParams.ts:17
↓ 10 callersMethodisRegistered
* @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 callersFunctionprintLine
()
samples/vessel_charging/Consumer.ts:16
↓ 9 callersMethodgetIdentity
* @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 callersMethodmissions
* @method missions Used to subscribe for missions. * @returns Observable for missions subscription.
src/Bid.ts:176
↓ 9 callersFunctionprintLine
()
samples/vessel_charging/Provider.ts:18
↓ 9 callersMethodregisterIdentity
* @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 callersFunctionprintLine
()
src/ContractsIntegrationSimulator.ts:30
↓ 8 callersMethodrespond
* @method respond Used to reply for the current message. * @param params the message parameters.
src/Message.ts:20
↓ 7 callersMethodaccept
( missionParams: V, walletPrivateKey: string, )
src/Bid.ts:89
↓ 7 callersMethodfinalizeMission
* @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 callersMethodgetContract
( contractType: ContractTypes, web3: Web3, config: IConfig, )
src/Contracts.ts:33
↓ 7 callersMethodinitWeb3
(config: IConfig)
src/Contracts.ts:29
↓ 6 callersMethoddeserialize
(json: any)
src/vessel-charging/BidParams.ts:144
↓ 6 callersMethoddeserialize
(json: any)
src/drone-charging/BidParams.ts:144
↓ 6 callersMethoddeserialize
()
src/tests/KafkaMessageStream.test.ts:27
↓ 6 callersMethodgetMessageTypes
( protocol: string, category: MessageCategories, )
src/KafkaMessageFactory.ts:76
↓ 6 callersMethodmission
* @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 callersMethodpublishNeed
* @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 callersMethodregisterMessageClasses
( messageClasses: Array<{ protocol: string; messageType: string; messageCategory: Messag
src/KafkaMessageFactory.ts:94
↓ 6 callersMethodrequestCommitment
()
src/Bid.ts:53
↓ 6 callersMethodserialize
()
src/vessel-charging/messages/DeclineMessageParams.ts:12
↓ 6 callersMethodserialize
()
src/drone-charging/messages/DeclineMessageParams.ts:12
↓ 5 callersFunctionSDKFactory
(config: IConfig)
src/SDKFactory.ts:9
↓ 5 callersMethodbid
* @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 callersMethodbids
* @method bids Used to subscribe for bids for the current need. * @returns Observable for bids subscription.
src/Need.ts:58
↓ 5 callersMethodequals
* @method equals Used to compare between two price objects.
src/IPrice.ts:22
↓ 5 callersFunctionforContextSwitch
()
src/tests/Identity.test.ts:42
↓ 5 callersMethodisIdentityRegistered
( davId: DavID, config: IConfig, )
src/Contracts.ts:93
↓ 5 callersMethodneedsForType
* @method needsForType Used to subscribe for specific needs (filtered by params). * @param needFilterParams the filter parameters. * @returns Ob
src/Identity.ts:64
↓ 5 callersMethodserialize
()
src/vessel-charging/BidParams.ts:128
↓ 5 callersMethodserialize
()
src/drone-delivery/BidParams.ts:40
↓ 5 callersMethodserialize
()
src/drone-charging/BidParams.ts:128
↓ 4 callersMethodapproveMission
( davId: DavID, walletPrivateKey: string, config: IConfig, )
src/Contracts.ts:157
↓ 4 callersMethodgetKafkaClient
(config: IConfig)
src/KafkaNode.ts:13
↓ 4 callersMethodgetKafkaMessageStream
()
src/Bid.ts:43
↓ 4 callersMethodgetProtocol
(protocol: string)
src/KafkaMessageFactory.ts:37
↓ 4 callersMethodsendSignedTransaction
( web3: Web3, rawTransaction: string, )
src/Contracts.ts:48
↓ 4 callersMethodsignContract
* @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 callersMethodsignTransaction
()
src/mocks/Web3Mock.ts:19
↓ 4 callersMethodstartMission
( missionId: ID, davId: DavID, walletPublicKey: string, walletPrivateKey: string, vehicleI
src/Contracts.ts:199
↓ 4 callersMethodtoSafeGasLimit
(gasAmount: number)
src/Contracts.ts:76
↓ 3 callersMethodcommitmentRequests
* @method commitmentRequests Used to subscribe for commitmentRequests for current bid. * @returns Observable of commitmentRequests.
src/Bid.ts:205
↓ 3 callersMethodcreateBid
(need: Need<NeedParams>)
samples/vessel_charging/Provider.ts:90
↓ 3 callersMethodcreateBid
* @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 callersFunctionforContextSwitch
()
src/tests/Bid.test.ts:33
↓ 3 callersMethodgenerateTopicId
()
src/common-types.ts:43
↓ 3 callersMethodinit
(davId: string, _publicKey: string, privateKey: string)
samples/vessel_charging/Consumer.ts:31
↓ 3 callersFunctionretryPromise
( promiseFactory: (currentAttempt: number) => Promise<T>, options?: retry.OperationOptions, )
src/retryPromise.ts:3
↓ 3 callersMethodwatchContract
( davId: string, contractType: ContractTypes, config: IConfig, )
src/Contracts.ts:293
↓ 2 callersFunctionforContextSwitch
()
src/tests/Contracts.test.ts:20
↓ 2 callersFunctionformatArea
(area: any)
src/NeedFilterParams.ts:36
↓ 2 callersMethodinit
(davId: string, privateKey: string)
samples/vessel_charging/Provider.ts:33
↓ 2 callersMethodneed
* @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 callersMethodregisterNewTopic
()
src/Identity.ts:26
↓ 2 callersMethodstart
()
samples/vessel_charging/Consumer.ts:48
↓ 2 callersMethodstart
()
samples/vessel_charging/Provider.ts:50
↓ 2 callersFunctiontest
()
src/tests/KafkaMessageStream.test.ts:239
↓ 1 callersFunctionbeginMission
(contract)
samples/drone_delivery/provider_sample.js:76
↓ 1 callersMethodcheckContractPastEvents
( contract: Contract /* , filterParam: string */, )
src/Contracts.ts:68
↓ 1 callersMethodconfirm
()
src/CommitmentRequest.ts:15
↓ 1 callersMethodcreateMission
(bid: Bid<BidParams>)
samples/vessel_charging/Consumer.ts:85
↓ 1 callersMethodcreateNeed
()
samples/vessel_charging/Consumer.ts:62
↓ 1 callersFunctionforContextSwitch
()
src/tests/Mission.test.ts:27
↓ 1 callersFunctionforContextSwitch
()
src/tests/Need.test.ts:11
↓ 1 callersMethodfromJson
( classType: new (...all: any[]) => T, json: any, )
src/KafkaMessageStream.ts:13
↓ 1 callersMethodgenerateMissionId
(config: IConfig)
src/Contracts.ts:87
↓ 1 callersMethodgetClassType
( protocol: string, messageType: string, )
src/KafkaMessageFactory.ts:68
↓ 1 callersMethodgetConsumer
( topicId: string, config: IConfig, )
src/KafkaNode.ts:44
↓ 1 callersMethodgetNeeds
()
samples/vessel_charging/Provider.ts:71
↓ 1 callersMethodgetPastEvents
()
src/mocks/Web3Mock.ts:8
↓ 1 callersMethodgetProducer
(config: IConfig)
src/KafkaNode.ts:38
↓ 1 callersMethodisConnected
(config: IConfig)
src/KafkaNode.ts:173
↓ 1 callersFunctionloadKafka
()
src/Kafka.ts:8
↓ 1 callersFunctionmain
()
samples/vessel_charging/index.ts:4
↓ 1 callersFunctionmain
()
samples/vessel_charging/Consumer.ts:176
↓ 1 callersFunctionmain
()
samples/vessel_charging/Provider.ts:178
↓ 1 callersFunctionmain
()
src/ContractsIntegrationSimulator.ts:29
↓ 1 callersFunctiononMissionCreated
(oldMission: Mission<MissionParams>)
samples/ride-hailing/passenger.ts:48
↓ 1 callersFunctiononVehicleInRiding
(message: Message<MessageParams>)
samples/ride-hailing/driver.ts:42
↓ 1 callersMethodprivateKeyToAccount
()
src/mocks/Web3Mock.ts:15
↓ 1 callersMethodrawMessages
( topicId: string, config: IConfig, )
src/KafkaNode.ts:128
↓ 1 callersMethodregisterClassType
( protocol: string, messageType: string, classType: new (...all: any[]) => T, )
src/KafkaMessageFactory.ts:47
↓ 1 callersMethodregisterMessageCategory
( protocol: string, messageType: string, messageCategory: MessageCategories, )
src/KafkaMessageFactory.ts:56
↓ 1 callersMethodregisterMessageClassAndCategory
( protocol: string, messageType: string, messageCategory: MessageCategories, classType: new (.
src/KafkaMessageFactory.ts:84
↓ 1 callersFunctionrunConsumer
(configuration?: IConfig)
samples/ride-hailing/passenger.ts:16
↓ 1 callersFunctionrunProvider
(configuration?: IConfig)
samples/ride-hailing/driver.ts:14
↓ 1 callersMethodsendMessage
( topicId: string, message: string, config: IConfig, )
src/KafkaNode.ts:82
↓ 1 callersMethodsendPayloads
( payloads: ProduceRequest[], config: IConfig, )
src/KafkaNode.ts:90
next →1–100 of 317, ranked by callers