/** * Original work Copyright (c) 2022 Signum Network */ import {ChainService} from '../../../service'; import {AssetTransferList} from '../../../typings/assetTransferList'; import {GetAssetTransfersPerAccountArgs} from '../../../typings/args'; import {getAssetTransfers} from './getAssetTransfers'; /** * Use with [[ApiComposer]] and belongs to [[AssetApi]]. * * See details at [[AssetApi.getAssetTransfersPerAccount]] * @module core.api.factories */ export const getAssetTransfersPerAccount = (service: ChainService): (args: GetAssetTransfersPerAccountArgs) => Promise => (args: GetAssetTransfersPerAccountArgs): Promise => getAssetTransfers(service)({ accountId: args.accountId, firstIndex: args.firstIndex, lastIndex: args.lastIndex });