* Bump common (w/ rxjs 7) * Adjust * pre bump * Cleanup imports * Add missing switchMap * CHANGELOG * Remove duplicate imports * Bump common * Direct rxjs import
14 lines
538 B
TypeScript
14 lines
538 B
TypeScript
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { Observable } from 'rxjs';
|
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
|
import type { AccountId } from '@polkadot/types/interfaces';
|
|
|
|
import { members as collectiveMembers } from '../collective';
|
|
import { memo } from '../util';
|
|
|
|
export function members (instanceId: string, api: ApiInterfaceRx): () => Observable<AccountId[]> {
|
|
return memo(instanceId, collectiveMembers(instanceId, api, 'council'));
|
|
}
|