@daostack/client › Globals › Reward
- Reward
+ new Reward(idOrOpts
: string | IRewardStaticState, context
: Arc): Reward
Defined in reward.ts:155
Parameters:
Name | Type |
---|---|
idOrOpts |
string | IRewardStaticState |
context |
Arc |
Returns: Reward
• context: Arc
Defined in reward.ts:157
• id: string
Defined in reward.ts:154
• idOrOpts: string | IRewardStaticState
Defined in reward.ts:157
• staticState: IRewardStaticState | undefined
Defined in reward.ts:155
▸ fetchStaticState(): Promise‹IRewardStaticState›
Defined in reward.ts:215
Returns: Promise‹IRewardStaticState›
▸ setStaticState(opts
: IRewardStaticState): void
Defined in reward.ts:211
Parameters:
Name | Type |
---|---|
opts |
IRewardStaticState |
Returns: void
▸ state(apolloQueryOptions
: IApolloQueryOptions): Observable‹IRewardState›
Defined in reward.ts:167
Parameters:
Name | Type | Default |
---|---|---|
apolloQueryOptions |
IApolloQueryOptions | {} |
Returns: Observable‹IRewardState›
▸ search(context
: Arc, options
: IRewardQueryOptions, apolloQueryOptions
: IApolloQueryOptions): Observable‹Reward[]›
Defined in reward.ts:71
Reward.search(context, options) searches for reward entities
Parameters:
Name | Type | Default | Description |
---|---|---|---|
context |
Arc | - | an Arc instance that provides connection information |
options |
IRewardQueryOptions | {} | the query options, cf. IRewardQueryOptions |
apolloQueryOptions |
IApolloQueryOptions | {} | - |
Returns: Observable‹Reward[]›
an observable of Reward objects
Defined in reward.ts:42
• RewardFields: any = gqlfragment RewardFields on GPReward { id createdAt dao { id } beneficiary daoBountyForStaker proposal { id } reputationForVoter reputationForVoterRedeemedAt reputationForProposer reputationForProposerRedeemedAt tokenAddress tokensForStaker tokensForStakerRedeemedAt daoBountyForStakerRedeemedAt }
Defined in reward.ts:43