@ocap/resolver 1.13.35 → 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.
- package/lib/hooks.js +1 -0
- package/lib/index.js +12 -2
- package/package.json +11 -11
package/lib/hooks.js
CHANGED
|
@@ -110,6 +110,7 @@ const onCreateRollupBlock = async (block, ctx, indexdb) => {
|
|
|
110
110
|
try {
|
|
111
111
|
const doc = await ensureRollupValidator(address, rollupState.address, ctx, indexdb);
|
|
112
112
|
|
|
113
|
+
doc.rollup = rollupState.address;
|
|
113
114
|
doc.renaissanceTime = block.genesisTime;
|
|
114
115
|
doc.verifiedBlockCount += 1;
|
|
115
116
|
if (address === proposer) {
|
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
|
-
|
|
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.
|
|
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.
|
|
26
|
-
"@arcblock/did-util": "1.13.
|
|
27
|
-
"@ocap/config": "1.13.
|
|
28
|
-
"@ocap/indexdb": "1.13.
|
|
29
|
-
"@ocap/mcrypto": "1.13.
|
|
30
|
-
"@ocap/message": "1.13.
|
|
31
|
-
"@ocap/state": "1.13.
|
|
32
|
-
"@ocap/tx-protocols": "1.13.
|
|
33
|
-
"@ocap/util": "1.13.
|
|
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": "
|
|
37
|
+
"gitHead": "ceba4163485223e1a4157f2c3ca49752c09c20e0"
|
|
38
38
|
}
|