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