JS API Reference
Class: ActivityRepository
shared/yagna/repository/activity-repository.ActivityRepository
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new ActivityRepository(state
, agreementRepo
): ActivityRepository
Parameters
Name | Type |
---|---|
state | RequestorStateService |
agreementRepo | IAgreementRepository |
Returns
Defined in
src/shared/yagna/repository/activity-repository.ts:11
Methods
getById
▸ getById(id
): Promise
<Activity
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<Activity
>
Implementation of
Defined in
src/shared/yagna/repository/activity-repository.ts:16
getStateOfActivity
▸ getStateOfActivity(id
): Promise
<ActivityStateEnum
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<ActivityStateEnum
>
Implementation of
IActivityRepository.getStateOfActivity