@ocap/resolver 1.18.160 → 1.18.161

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/token-flow.js +4 -5
  2. package/package.json +12 -12
package/lib/token-flow.js CHANGED
@@ -224,7 +224,7 @@ const verifyAccountRisk = async (
224
224
  for (const tx of transactions) {
225
225
  // cache tx
226
226
  if (!checkedTx.has(tx.hash)) {
227
- await fixMigrateReceipts(tx, resolver, ctx);
227
+ await fixMigrateReceipts(tx, resolver);
228
228
  checkedTx.set(tx.hash, getTransferList(tx, tokenAddress));
229
229
  }
230
230
  const { transferInList, transferOutList } = checkedTx.get(tx.hash);
@@ -298,9 +298,9 @@ const verifyAccountRisk = async (
298
298
  };
299
299
 
300
300
  const result = await resolver.runAsLambda(
301
- () => {
301
+ (txn) => {
302
302
  executeCount++;
303
- return execute();
303
+ return execute(txn);
304
304
  },
305
305
  { retryLimit: 0 }
306
306
  );
@@ -361,10 +361,9 @@ const listTokenFlows = async (
361
361
  let accountsToQueue = [];
362
362
 
363
363
  for (const tx of transactions) {
364
- // fix migrate receipts
365
- await fixMigrateReceipts(tx, resolver, ctx);
366
364
  // cache tx
367
365
  if (!checkedTx.has(tx.hash)) {
366
+ await fixMigrateReceipts(tx, resolver);
368
367
  checkedTx.set(tx.hash, await getTransferFlow(tx, tokenAddress));
369
368
  }
370
369
  const txTransfers = checkedTx.get(tx.hash).filter((item) => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.160",
6
+ "version": "1.18.161",
7
7
  "description": "GraphQL resolver built upon ocap statedb and GQL layer",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -22,18 +22,18 @@
22
22
  "jest": "^29.7.0"
23
23
  },
24
24
  "dependencies": {
25
- "@arcblock/did": "1.18.160",
26
- "@arcblock/did-util": "1.18.160",
27
- "@arcblock/validator": "1.18.160",
28
- "@ocap/config": "1.18.160",
29
- "@ocap/indexdb": "1.18.160",
30
- "@ocap/mcrypto": "1.18.160",
31
- "@ocap/message": "1.18.160",
32
- "@ocap/state": "1.18.160",
33
- "@ocap/tx-protocols": "1.18.160",
34
- "@ocap/util": "1.18.160",
25
+ "@arcblock/did": "1.18.161",
26
+ "@arcblock/did-util": "1.18.161",
27
+ "@arcblock/validator": "1.18.161",
28
+ "@ocap/config": "1.18.161",
29
+ "@ocap/indexdb": "1.18.161",
30
+ "@ocap/mcrypto": "1.18.161",
31
+ "@ocap/message": "1.18.161",
32
+ "@ocap/state": "1.18.161",
33
+ "@ocap/tx-protocols": "1.18.161",
34
+ "@ocap/util": "1.18.161",
35
35
  "debug": "^4.3.6",
36
36
  "lodash": "^4.17.21"
37
37
  },
38
- "gitHead": "fe8f69251a9aa924e64895ac83307b2852e90def"
38
+ "gitHead": "5d8436fdf5218fcbf2218b77ae370d50617ba3d0"
39
39
  }