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