Skip to content

Commit

Permalink
feat(indy-vdr)!: include config in getAllPoolTransactions (#1770)
Browse files Browse the repository at this point in the history
Signed-off-by: wadeking98 <[email protected]>

BREAKING CHANGE:

`IndyVdrApi.getAllPoolTransactions()` now returns an array of objects containing transactions and config of each pool
```
{
    config: IndyVdrPoolConfig;
    transactions: Transactions;
}
```
  • Loading branch information
wadeking98 authored Feb 21, 2024
1 parent 3c58ae0 commit 29c589d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/indy-vdr/src/pool/IndyVdrPoolService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
})
)
}

/**
Expand Down

0 comments on commit 29c589d

Please sign in to comment.