@@ -526,79 +526,6 @@ export class LedgerClient {
526526 }
527527 }
528528
529- // async activeContracts(options: {
530- // offset: number
531- // templateIds?: string[]
532- // parties?: string[] //TODO: Figure out if this should use this.partyId by default and not allow cross party filtering
533- // filterByParty?: boolean
534- // interfaceIds?: string[]
535- // limit?: number
536- // }): Promise<Array<Types['JsGetActiveContractsResponse']>> {
537- // const {
538- // offset,
539- // templateIds,
540- // parties,
541- // filterByParty,
542- // interfaceIds,
543- // limit,
544- // } = options
545-
546- // this.logger.debug(options, 'options for active contracts')
547-
548- // if (
549- // templateIds &&
550- // templateIds.length > 0 &&
551- // parties &&
552- // parties.length > 0
553- // ) {
554- // return this.acsHelper.activeContractsForTemplates(
555- // offset,
556- // parties,
557- // templateIds
558- // )
559- // }
560-
561- // if (
562- // interfaceIds &&
563- // interfaceIds.length > 0 &&
564- // parties &&
565- // parties.length > 0
566- // ) {
567- // return this.acsHelper.activeContractsForInterfaces(
568- // offset,
569- // parties,
570- // interfaceIds
571- // )
572- // }
573-
574- // if (
575- // filterByParty &&
576- // !templateIds?.length &&
577- // !interfaceIds?.length &&
578- // parties?.length === 1
579- // ) {
580- // const party = parties[0]
581- // const r = this.acsHelper.activeContractsForInterface(
582- // offset,
583- // party,
584- // ''
585- // )
586- // return r
587- // }
588-
589- // const filter = this.buildActiveContractFilter(options)
590- // this.logger.debug('falling back to post request')
591-
592- // return await this.postWithRetry(
593- // '/v2/state/active-contracts',
594- // filter,
595- // defaultRetryableOptions,
596- // {
597- // query: limit ? { limit: limit.toString() } : {},
598- // }
599- // )
600- // }
601-
602529 async activeContracts ( options : {
603530 offset : number
604531 templateIds ?: string [ ]
0 commit comments