* Bump common (w/ rxjs 7) * Adjust * pre bump * Cleanup imports * Add missing switchMap * CHANGELOG * Remove duplicate imports * Bump common * Direct rxjs import
14 lines
546 B
TypeScript
14 lines
546 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 { prime as collectivePrime } from '../collective';
|
|
import { memo } from '../util';
|
|
|
|
export function prime (instanceId: string, api: ApiInterfaceRx): () => Observable<AccountId | null> {
|
|
return memo(instanceId, collectivePrime(instanceId, api, 'technicalCommittee'));
|
|
}
|