@ocap/resolver 1.18.148 → 1.18.149

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 +5 -0
  2. package/package.json +12 -12
package/lib/token-flow.js CHANGED
@@ -169,6 +169,11 @@ const verifyAccountRisk = async ({ accountAddress, tokenAddress }, resolver, ctx
169
169
  const address = accountQueue.pop();
170
170
  // Avoid circular query
171
171
  if (checkedAccounts.has(address)) continue;
172
+ // skip trusted accounts
173
+ if (await resolver.filter.isTrusted(accountAddress)) {
174
+ checkedAccounts.set(accountAddress, {});
175
+ continue;
176
+ }
172
177
 
173
178
  const transactions = await resolver._getAllResults('transactions', (paging) =>
174
179
  resolver.listTransactions({ paging, accountFilter: { accounts: [address] } }, ctx)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.148",
6
+ "version": "1.18.149",
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.148",
26
- "@arcblock/did-util": "1.18.148",
27
- "@arcblock/validator": "1.18.148",
28
- "@ocap/config": "1.18.148",
29
- "@ocap/indexdb": "1.18.148",
30
- "@ocap/mcrypto": "1.18.148",
31
- "@ocap/message": "1.18.148",
32
- "@ocap/state": "1.18.148",
33
- "@ocap/tx-protocols": "1.18.148",
34
- "@ocap/util": "1.18.148",
25
+ "@arcblock/did": "1.18.149",
26
+ "@arcblock/did-util": "1.18.149",
27
+ "@arcblock/validator": "1.18.149",
28
+ "@ocap/config": "1.18.149",
29
+ "@ocap/indexdb": "1.18.149",
30
+ "@ocap/mcrypto": "1.18.149",
31
+ "@ocap/message": "1.18.149",
32
+ "@ocap/state": "1.18.149",
33
+ "@ocap/tx-protocols": "1.18.149",
34
+ "@ocap/util": "1.18.149",
35
35
  "debug": "^4.3.6",
36
36
  "lodash": "^4.17.21"
37
37
  },
38
- "gitHead": "5ba096b17be4f24fb47efce520525c96f8ff9660"
38
+ "gitHead": "8979a303ba489127e429df9ce09738995f716d71"
39
39
  }