@daostack/client › Globals › Member
Represents an account that holds reputaion in a specific DAO
- Member
+ new Member(idOrOpts
: string | IMemberStaticState, context
: Arc): Member
Defined in member.ts:107
Parameters:
Name | Type | Description |
---|---|---|
idOrOpts |
string | IMemberStaticState | - |
context |
Arc | an instance of Arc |
Returns: Member
• context: Arc
Defined in member.ts:114
an instance of Arc
• id: string | undefined
Defined in member.ts:106
• staticState: IMemberStaticState | undefined
Defined in member.ts:107
▸ calculateId(opts
: object): string
Defined in member.ts:136
Parameters:
▪ opts: object
Name | Type |
---|---|
address |
Address |
contract |
Address |
Returns: string
▸ dao(): Promise‹DAO›
Defined in member.ts:231
Returns: Promise‹DAO›
▸ fetchStaticState(): Promise‹IMemberStaticState›
Defined in member.ts:123
Returns: Promise‹IMemberStaticState›
▸ proposals(options
: IProposalQueryOptions, apolloQueryOptions
: IApolloQueryOptions): Observable‹Proposal[]›
Defined in member.ts:240
Parameters:
Name | Type | Default |
---|---|---|
options |
IProposalQueryOptions | {} |
apolloQueryOptions |
IApolloQueryOptions | {} |
Returns: Observable‹Proposal[]›
▸ rewards(): Observable‹Reward[]›
Defined in member.ts:236
Returns: Observable‹Reward[]›
▸ setStaticState(opts
: IMemberStaticState): IMemberStaticState
Defined in member.ts:143
Parameters:
Name | Type |
---|---|
opts |
IMemberStaticState |
Returns: IMemberStaticState
▸ stakes(options
: IStakeQueryOptions, apolloQueryOptions
: IApolloQueryOptions): Observable‹Stake[]›
Defined in member.ts:256
Parameters:
Name | Type | Default |
---|---|---|
options |
IStakeQueryOptions | {} |
apolloQueryOptions |
IApolloQueryOptions | {} |
Returns: Observable‹Stake[]›
▸ state(apolloQueryOptions
: IApolloQueryOptions): Observable‹IMemberState›
Defined in member.ts:158
Parameters:
Name | Type | Default |
---|---|---|
apolloQueryOptions |
IApolloQueryOptions | {} |
Returns: Observable‹IMemberState›
▸ votes(options
: IVoteQueryOptions, apolloQueryOptions
: IApolloQueryOptions): Observable‹Vote[]›
Defined in member.ts:269
Parameters:
Name | Type | Default |
---|---|---|
options |
IVoteQueryOptions | {} |
apolloQueryOptions |
IApolloQueryOptions | {} |
Returns: Observable‹Vote[]›
▸ search(context
: Arc, options
: IMemberQueryOptions, apolloQueryOptions
: IApolloQueryOptions): Observable‹Member[]›
Defined in member.ts:64
Member.search(context, options) searches for member entities
Parameters:
Name | Type | Default | Description |
---|---|---|---|
context |
Arc | - | an Arc instance that provides connection information |
options |
IMemberQueryOptions | {} | the query options, cf. IMemberQueryOptions |
apolloQueryOptions |
IApolloQueryOptions | {} | - |
Returns: Observable‹Member[]›
an observable of IRewardState objects
Defined in member.ts:44
• ReputationHolderFields: any = gqlfragment ReputationHolderFields on ReputationHolder { id address contract dao { id } balance }
Defined in member.ts:45