JS API Reference

Module: market/api

Table of contents

Interfaces

Type Aliases

Type Aliases

MarketEvents

Ƭ MarketEvents: Object

Type declaration

NameTypeDescription
demandSubscriptionStarted(event: { demand: Demand }) => void-
demandSubscriptionRefreshed(event: { demand: Demand }) => void-
demandSubscriptionStopped(event: { demand: Demand }) => void-
offerProposalReceived(event: { offerProposal: OfferProposal }) => void-
offerCounterProposalSent(event: { offerProposal: OfferProposal ; counterProposal: OfferCounterProposal }) => void-
errorSendingCounterProposal(event: { offerProposal: OfferProposal ; error: Error }) => void-
offerCounterProposalRejected(event: { counterProposal: OfferCounterProposal ; reason: string }) => void-
offerPropertyQueryReceived() => void-
offerProposalRejectedByProposalFilter(event: { offerProposal: OfferProposal ; reason?: string }) => void-
offerProposalRejectedByPriceFilter(event: { offerProposal: OfferProposal ; reason?: string }) => void-
agreementApproved(event: { agreement: Agreement }) => void-
agreementRejected(event: { agreement: Agreement ; reason: string }) => void-
agreementTerminated(event: { agreement: Agreement ; reason: string ; terminatedBy: "Provider" | "Requestor" }) => void-
agreementCancelled(event: { agreement: Agreement }) => void-

Defined in

src/market/api.ts:8