JS API Reference
Class: ProposalRepository
shared/yagna/repository/proposal-repository.ProposalRepository
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new ProposalRepository(marketService
, identityService
, cache
): ProposalRepository
Parameters
Name | Type |
---|---|
marketService | RequestorService |
identityService | DefaultService |
cache | CacheService <MarketProposal > |
Returns
Defined in
src/shared/yagna/repository/proposal-repository.ts:9
Methods
add
▸ add(proposal
): MarketProposal
Parameters
Name | Type |
---|---|
proposal | MarketProposal |
Returns
Implementation of
Defined in
src/shared/yagna/repository/proposal-repository.ts:15
getById
▸ getById(id
): undefined
| MarketProposal
Parameters
Name | Type |
---|---|
id | string |
Returns
undefined
| MarketProposal
Implementation of
Defined in
src/shared/yagna/repository/proposal-repository.ts:20
getByDemandAndId
▸ getByDemandAndId(demand
, id
): Promise
<MarketProposal
>
Parameters
Name | Type |
---|---|
demand | Demand |
id | string |
Returns
Promise
<MarketProposal
>
Implementation of
IProposalRepository.getByDemandAndId