UNPKG

@fruitsjs/core

Version:

Principal package with functions and models for building Fruits Eco-Blockchain applications.

17 lines (15 loc) 597 B
import { ChainService } from '../../../service/chainService'; import {Contract} from '../../../typings/contract'; import {ContractList} from '../../../typings/contractList'; /** * Use with [[ApiComposer]] and belongs to [[ContractApi]]. * * See details at [[ContractApi.getContractsByAccount]] * @module core.api.factories */ export const getContractsByAccount = (service: ChainService): (accountId: string) => Promise<ContractList> => (accountId: string): Promise<ContractList> => service.query('getAccountATs', { account: accountId, });