@ocap/resolver 1.13.38 → 1.13.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +12 -2
  2. package/package.json +11 -11
package/lib/index.js CHANGED
@@ -493,8 +493,18 @@ module.exports = class OCAPResolver {
493
493
  return this._doPaginatedSearch('listAssets', args, 'assets', 'data', ctx);
494
494
  }
495
495
 
496
- listAssetTransactions(args, ctx) {
497
- return this._doPaginatedSearch('listAssetTransactions', args, 'transactions', 'tx.itxJson.data', ctx);
496
+ listAssetTransactions(args = {}, ctx) {
497
+ if (!args.address) {
498
+ return { transactions: [] };
499
+ }
500
+
501
+ return this._doPaginatedSearch(
502
+ 'listTransactions',
503
+ { ...args, assetFilter: { assets: [args.address] } },
504
+ 'transactions',
505
+ 'tx.itxJson.data',
506
+ ctx
507
+ );
498
508
  }
499
509
 
500
510
  async listFactories(args, ctx) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.13.38",
6
+ "version": "1.13.39",
7
7
  "description": "GraphQL resolver built upon ocap statedb and GQL layer",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -22,17 +22,17 @@
22
22
  "jest": "^26.6.3"
23
23
  },
24
24
  "dependencies": {
25
- "@arcblock/did": "1.13.38",
26
- "@arcblock/did-util": "1.13.38",
27
- "@ocap/config": "1.13.38",
28
- "@ocap/indexdb": "1.13.38",
29
- "@ocap/mcrypto": "1.13.38",
30
- "@ocap/message": "1.13.38",
31
- "@ocap/state": "1.13.38",
32
- "@ocap/tx-protocols": "1.13.38",
33
- "@ocap/util": "1.13.38",
25
+ "@arcblock/did": "1.13.39",
26
+ "@arcblock/did-util": "1.13.39",
27
+ "@ocap/config": "1.13.39",
28
+ "@ocap/indexdb": "1.13.39",
29
+ "@ocap/mcrypto": "1.13.39",
30
+ "@ocap/message": "1.13.39",
31
+ "@ocap/state": "1.13.39",
32
+ "@ocap/tx-protocols": "1.13.39",
33
+ "@ocap/util": "1.13.39",
34
34
  "debug": "^4.3.2",
35
35
  "lodash": "^4.17.21"
36
36
  },
37
- "gitHead": "1a63d4006790a3a995317552e6f332be8d523e67"
37
+ "gitHead": "ceba4163485223e1a4157f2c3ca49752c09c20e0"
38
38
  }