* fix api.derive.collective * imports * Update proposals.ts Co-authored-by: Jaco Greeff <jacogr@gmail.com>
15 lines
591 B
TypeScript
15 lines
591 B
TypeScript
// Copyright 2017-2020 @polkadot/api-derive authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the Apache-2.0 license. See the LICENSE file for details.
|
|
|
|
import { ApiInterfaceRx } from '@polkadot/api/types';
|
|
import { DerivedCollectiveProposals } from '../types';
|
|
|
|
import { Observable } from 'rxjs';
|
|
import { proposals as collectiveProposals } from '../collective';
|
|
import { memo } from '../util';
|
|
|
|
export function proposals (api: ApiInterfaceRx): () => Observable<DerivedCollectiveProposals> {
|
|
return memo(collectiveProposals(api, 'council'));
|
|
}
|