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

NameType
marketServiceRequestorService
identityServiceDefaultService
cacheCacheService<MarketProposal>

Returns

ProposalRepository

Defined in

src/shared/yagna/repository/proposal-repository.ts:9

Methods

add

add(proposal): MarketProposal

Parameters

NameType
proposalMarketProposal

Returns

MarketProposal

Implementation of

IProposalRepository.add

Defined in

src/shared/yagna/repository/proposal-repository.ts:15


getById

getById(id): undefined | MarketProposal

Parameters

NameType
idstring

Returns

undefined | MarketProposal

Implementation of

IProposalRepository.getById

Defined in

src/shared/yagna/repository/proposal-repository.ts:20


getByDemandAndId

getByDemandAndId(demand, id): Promise<MarketProposal>

Parameters

NameType
demandDemand
idstring

Returns

Promise<MarketProposal>

Implementation of

IProposalRepository.getByDemandAndId

Defined in

src/shared/yagna/repository/proposal-repository.ts:24

Was this helpful?