@fruitsjs/core
Version:
Principal package with functions and models for building Fruits Eco-Blockchain applications.
15 lines (13 loc) • 511 B
text/typescript
import { ChainService } from '../../../service/chainService';
import {Contract} from '../../../typings/contract';
import {ContractIdList} from '../../../typings/contractIdList';
/**
* Use with [[ApiComposer]] and belongs to [[ContractApi]].
*
* See details at [[ContractApi.getAllContractIds]]
* @module core.api.factories
*/
export const getAllContractIds = (service: ChainService):
() => Promise<ContractIdList> =>
(): Promise<ContractIdList> =>
service.query('getATIds');