collective proposals (#1671)

This commit is contained in:
Keith Ingram
2019-12-15 15:37:27 -05:00
committed by GitHub
parent 1da6193f34
commit ddd5eab7f5
8 changed files with 84 additions and 47 deletions
@@ -0,0 +1,5 @@
// Copyright 2017-2019 @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.
export * from './proposals';
@@ -0,0 +1,13 @@
// Copyright 2017-2019 @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';
export function proposals (api: ApiInterfaceRx): () => Observable<DerivedCollectiveProposals> {
return collectiveProposals(api, 'technicalCommittee');
}