From 29c589dd2f5b6da0a6bed129b5f733851785ccba Mon Sep 17 00:00:00 2001 From: Wade King Date: Wed, 21 Feb 2024 05:11:47 -0800 Subject: [PATCH] feat(indy-vdr)!: include config in getAllPoolTransactions (#1770) Signed-off-by: wadeking98 BREAKING CHANGE: `IndyVdrApi.getAllPoolTransactions()` now returns an array of objects containing transactions and config of each pool ``` { config: IndyVdrPoolConfig; transactions: Transactions; } ``` --- packages/indy-vdr/src/pool/IndyVdrPoolService.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/indy-vdr/src/pool/IndyVdrPoolService.ts b/packages/indy-vdr/src/pool/IndyVdrPoolService.ts index 5645ec8eaa..0eea7b1239 100644 --- a/packages/indy-vdr/src/pool/IndyVdrPoolService.ts +++ b/packages/indy-vdr/src/pool/IndyVdrPoolService.ts @@ -160,7 +160,11 @@ export class IndyVdrPoolService { * Get all pool transactions */ public getAllPoolTransactions() { - return Promise.allSettled(this.pools.map((pool) => pool.transactions)) + return Promise.allSettled( + this.pools.map(async (pool) => { + return { config: pool.config, transactions: await pool.transactions } + }) + ) } /**