chain-insights 0.78.0 → 0.80.0

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 (65) hide show
  1. package/README.md +3 -0
  2. package/dist/cli.cjs +72 -18
  3. package/dist/cli.mjs +72 -18
  4. package/dist/cli.mjs.map +1 -1
  5. package/dist/deployer-screen-BomgSBcq.cjs +446 -0
  6. package/dist/deployer-screen-ByQBZEsg.mjs +413 -0
  7. package/dist/deployer-screen-ByQBZEsg.mjs.map +1 -0
  8. package/dist/{dex-registry-sPTFuCrP.mjs → dex-registry-BY67f4Ul.mjs} +2 -2
  9. package/dist/{dex-registry-sPTFuCrP.mjs.map → dex-registry-BY67f4Ul.mjs.map} +1 -1
  10. package/dist/{dex-registry-DdXOg5On.cjs → dex-registry-BhGJUG9_.cjs} +36 -0
  11. package/dist/{dex-tool-CDmhhXfk.cjs → dex-tool-B6AymECb.cjs} +2 -2
  12. package/dist/{dex-tool-D61sIjpq.mjs → dex-tool-CjUZY19i.mjs} +3 -3
  13. package/dist/dex-tool-CjUZY19i.mjs.map +1 -0
  14. package/dist/exchange-deposit-check-CMGTPv-T.mjs +209 -0
  15. package/dist/exchange-deposit-check-CMGTPv-T.mjs.map +1 -0
  16. package/dist/exchange-deposit-check-hJGDHLz1.cjs +242 -0
  17. package/dist/exchange-registry-CT0rRW__.cjs +347 -0
  18. package/dist/exchange-registry-CoLgHw6d.mjs +319 -0
  19. package/dist/exchange-registry-CoLgHw6d.mjs.map +1 -0
  20. package/dist/exchange-tool-B2SMeC5f.cjs +218 -0
  21. package/dist/exchange-tool-Dc46SJ49.mjs +179 -0
  22. package/dist/exchange-tool-Dc46SJ49.mjs.map +1 -0
  23. package/dist/{graph-schema-D4LAefGf.mjs → graph-schema-B8KMeX75.mjs} +19 -3
  24. package/dist/{graph-schema-D4LAefGf.mjs.map → graph-schema-B8KMeX75.mjs.map} +1 -1
  25. package/dist/{graph-schema-C8Pi6r7c.cjs → graph-schema-D8rHCsBJ.cjs} +23 -1
  26. package/dist/mcp-proxy.cjs +78 -12
  27. package/dist/mcp-proxy.d.cts +1 -0
  28. package/dist/mcp-proxy.d.cts.map +1 -1
  29. package/dist/mcp-proxy.d.mts +1 -0
  30. package/dist/mcp-proxy.d.mts.map +1 -1
  31. package/dist/mcp-proxy.mjs +78 -13
  32. package/dist/mcp-proxy.mjs.map +1 -1
  33. package/dist/{public-tools-DXlZcanX.mjs → public-tools-CU1nukHW.mjs} +171 -10
  34. package/dist/public-tools-CU1nukHW.mjs.map +1 -0
  35. package/dist/{public-tools-Cfc1OPNS.cjs → public-tools-yvRiFSry.cjs} +170 -9
  36. package/dist/{token-lookup-DvgEyqcC.cjs → token-lookup-D-5GBEwF.cjs} +15 -2
  37. package/dist/{token-lookup-sH2DesLS.mjs → token-lookup-QpIv77P2.mjs} +5 -4
  38. package/dist/token-lookup-QpIv77P2.mjs.map +1 -0
  39. package/dist/{tool-visibility-DIpgPULN.cjs → tool-visibility-D8Up081E.cjs} +8 -1
  40. package/dist/{tool-visibility-Dy3psowS.mjs → tool-visibility-DuTds7V4.mjs} +9 -2
  41. package/dist/tool-visibility-DuTds7V4.mjs.map +1 -0
  42. package/docs/contributing.md +5 -2
  43. package/docs/development.md +5 -2
  44. package/docs/graph-query-compatibility.md +20 -4
  45. package/docs/graph-tools.md +22 -8
  46. package/docs/mcp-proxy.md +111 -5
  47. package/docs/stability.md +5 -2
  48. package/package.json +2 -2
  49. package/registry/README.md +42 -5
  50. package/registry/exchanges/ethereum.json +920 -0
  51. package/registry/exchanges/robinhood.json +87 -0
  52. package/registry/robinhood.json +7 -4
  53. package/registry/robinhood.md +9 -5
  54. package/skills/chain-insights-aml-exchange/SKILL.md +134 -0
  55. package/skills/chain-insights-aml-exchange/agents/openai.yaml +4 -0
  56. package/skills/chain-insights-cypher/SKILL.md +41 -11
  57. package/skills/chain-insights-dex/SKILL.md +3 -3
  58. package/skills/chain-insights-dex-gauge/SKILL.md +2 -0
  59. package/skills/chain-insights-dex-launchpad/SKILL.md +9 -10
  60. package/skills/chain-insights-dex-vault/SKILL.md +2 -0
  61. package/skills/chain-insights-virtuals/SKILL.md +1 -1
  62. package/dist/dex-tool-D61sIjpq.mjs.map +0 -1
  63. package/dist/public-tools-DXlZcanX.mjs.map +0 -1
  64. package/dist/token-lookup-sH2DesLS.mjs.map +0 -1
  65. package/dist/tool-visibility-Dy3psowS.mjs.map +0 -1
@@ -29,9 +29,17 @@ each network's remote tools.
29
29
  Use `cia mcp call` for low-level GraphRAG calls and custom read-only queries.
30
30
 
31
31
  The Chain Insights MCP proxy adds the local tools `meta_network_capabilities`,
32
- `meta_schema`, `meta_rules`, `meta_help`, `meta_usage_status`,
32
+ `meta_schema`, `meta_dex_lookup`, `meta_token_lookup`, `aml_deployer_screen`,
33
+ `meta_exchange_lookup`, `aml_exchange_deposit_check`, `meta_rules`, `meta_help`, `meta_usage_status`,
33
34
  `meta_subscription_status`, `wallet_balance`, `wallet_topup` and
34
- `subscription_topup`. On hosted
35
+ `subscription_topup`. `aml_deployer_screen` screens who is behind a token or a
36
+ wallet from two anchored topology reads: the launcher, its first funder and
37
+ what kind of wallet that is, their labels and the first inbound bridge
38
+ deposit. It returns facts only, never a score; see
39
+ [MCP proxy](mcp-proxy.md#local-tools). `meta_exchange_lookup` turns a
40
+ centralized exchange name into its proven hot wallets, and
41
+ `aml_exchange_deposit_check` says whether one address is an exchange deposit,
42
+ of which exchange, and into which hot wallet it was swept (`SWEPT`). On hosted
35
43
  backends, `meta_usage_status` can reflect remote quota telemetry. On
36
44
  backends without a quota tool, Chain Insights returns a local unmetered
37
45
  primitive-backend status instead.
@@ -53,14 +61,16 @@ A transaction is a chain question: read it on `USE chain` by its `tx_id`. Chain
53
61
 
54
62
  The layers hand each other keys, and each key keeps its name. Topology gives the pair and the first and last seen time. Facts gives the `tx_id` and the `block_height`. Chain takes an `address`, a `tx_id`, a `block_height` or a `block_hash`, and gives the `block_date` of a transaction or a block.
55
63
 
64
+ `SWEPT` runs from an exchange deposit to the hot wallet it swept into (layer `cex_sweeps`, family annotations), and `cex_role` on an `:Exchange` address says which wallet of its exchange it is: `deposit`, `hot_wallet`, `cold_wallet` or `withdrawal`. A trail that reaches a `SWEPT` link ends there: say the money entered the exchange at that deposit, swept n times into that hot wallet, name the exchange from `labels`, and never walk on past a hot wallet. Read `SWEPT` anchored on an address; call `aml_exchange_deposit_check` for one address and `meta_exchange_lookup` for an exchange by name.
65
+
56
66
  A question about the whole chain (recent activity, the biggest senders, a top list) is a `USE topology` search: bound it by time with `f.last_seen_timestamp >= <epoch ms>` on the `FLOWED_TO` link, then sort and `LIMIT`. A search has 10 s. Read `Head` first (`USE chain MATCH (h:Head) RETURN h.behind_money, h.behind_dex, h.behind_transfers`, under a second): a `FLOWED_TO` search is sent when `behind_money` is at most 100000; a `SWAPPED`, `ADDED_LIQUIDITY` or `REMOVED_LIQUIDITY` search when `behind_dex` is at most 100000; a `TRANSFERRED` search when `behind_transfers` is at most 100000 (100000 blocks is a few hours: a robinhood block is about a tenth of a second apart from the next). When the family is further behind, the search cannot finish, so do not send it: say which family, how many blocks, and ask for an address. On a server whose Head has no `behind_money`, read `h.graph_blocks_behind` and hold it to the same limit. On a server whose Head has no `behind_transfers`, it serves no `TRANSFERRED` link: send no `TRANSFERRED` search. Never turn the block count into days or hours by head. To say how fresh the data is, give the newest `_utc` time you read on the layer you used: a family's lag counts its slowest layer, and the links of an address and the facts rows are often newer than it. If the server refuses the search with `anchor_missing` or `family_behind`, or stops it with `query_timeout`, it cannot search the whole chain now: say so in one line, name the family the refusal names, and ask for an address or drop the link type that is behind. A narrower window times out the same way, so do not send it again.
57
67
 
58
68
  The graph layers are grouped into six families, and each family is as fresh
59
69
  as its slowest layer: `money` (`FLOWED_TO`, `OPERATED_BY`), `dex` (`SWAPPED`,
60
70
  `ADDED_LIQUIDITY`, `REMOVED_LIQUIDITY`), `interactions` (`APPROVED`,
61
71
  `BRIDGED`, `DEPLOYED_CONTRACT`, `SIGNED_AUTHORIZATION`), `smart_accounts`
62
- (`SPONSORED`, `BUNDLED`, `SIGNED_FOR`, `LINKED`), `annotations` (labels
63
- and kinds, which follow runs, not blocks) and `transfers` (`TRANSFERRED`).
72
+ (`SPONSORED`, `BUNDLED`, `SIGNED_FOR`, `LINKED`), `annotations` (labels,
73
+ kinds and `SWEPT`, which follow runs, not blocks) and `transfers` (`TRANSFERRED`).
64
74
  `cia network <name>` prints one
65
75
  row per family with its height and its blocks behind the head, and
66
76
  `annotations` as `fresh` or `walking`. The `Head` node of `USE chain` serves
@@ -290,7 +300,7 @@ one path only:
290
300
  ```bash
291
301
  cia mcp call graph_query \
292
302
  network=robinhood \
293
- 'query=USE topology MATCH p = SHORTEST 1 (a:Address {address: "0x..."} WHERE NOT a:Pool AND NOT a:Protocol AND NOT a:System AND NOT a.address IN ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"]) (()-[:FLOWED_TO|SWAPPED]-(via:Address) WHERE NOT via:Pool AND NOT via:Protocol AND NOT via:System AND NOT via.address IN ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"]){0,4} ()-[:FLOWED_TO|SWAPPED]-(b:Address {address: "0x..."}) RETURN [n IN nodes(p) | n.address] AS route LIMIT 5'
303
+ 'query=USE topology MATCH p = SHORTEST 1 (a:Address {address: "0x..."} WHERE NOT a:Pool AND NOT a:Protocol AND NOT a:System AND NOT a.address IN ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"]) (()-[:FLOWED_TO|SWAPPED]-(via:Address) WHERE NOT via:Pool AND NOT via:Protocol AND NOT via:System AND NOT via.address IN ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"] AND NOT via:Exchange){0,4} ()-[:FLOWED_TO|SWAPPED]-(b:Address {address: "0x..."}) RETURN [n IN nodes(p) | n.address] AS route LIMIT 5'
294
304
  ```
295
305
 
296
306
  The `chain-insights-cypher` skill shows how to read the properties of a link
@@ -355,7 +365,7 @@ Where one token went, up to 3 hops out. Every hop carries the same `asset`:
355
365
 
356
366
  ```cypher
357
367
  USE topology
358
- MATCH p = (a:Address {address: "0x04911a118f11c75667e4d0dfb8e640af5a353550"} WHERE NOT a:Pool AND NOT a:Protocol AND NOT a:System) (()-[t:TRANSFERRED WHERE t.asset = "0x5fc5360d0400a0fd4f2af552add042d716f1d168"]->(via:Address) WHERE NOT via:Pool AND NOT via:Protocol AND NOT via:System AND NOT via.address IN ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"]){0,2} ()-[:TRANSFERRED {asset: "0x5fc5360d0400a0fd4f2af552add042d716f1d168"}]->(b:Address)
368
+ MATCH p = (a:Address {address: "0x04911a118f11c75667e4d0dfb8e640af5a353550"} WHERE NOT a:Pool AND NOT a:Protocol AND NOT a:System) (()-[t:TRANSFERRED WHERE t.asset = "0x5fc5360d0400a0fd4f2af552add042d716f1d168"]->(via:Address) WHERE NOT via:Pool AND NOT via:Protocol AND NOT via:System AND NOT via.address IN ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"] AND NOT via:Exchange){0,2} ()-[:TRANSFERRED {asset: "0x5fc5360d0400a0fd4f2af552add042d716f1d168"}]->(b:Address)
359
369
  RETURN b.address AS to_address, length(p) AS hops LIMIT 25
360
370
  ```
361
371
 
@@ -424,6 +434,7 @@ What each value means:
424
434
  | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
425
435
  | `FAKE_TOKEN` | A fake token: a spoof contract that imitates a real token. |
426
436
  | `FAKE_TOKEN_DEPLOYER` | The creator of a fake token. |
437
+ | `FAKE_TOKEN_LP` | The wallet that seeded a fake token's pool and pulled its liquidity after the buyers paid. |
427
438
  | `ADDRESS_POISONING` | A poisoner: a look-alike address that sent worthless dust so the target copies it from its history. `:Poisoned`, never `:Scam`. |
428
439
  | `INBOUND_IMPERSONATION` | A look-alike address that paid the target to get into its history. |
429
440
  | `PHANTOM_TRANSFER` | A contract that writes fake transfer events, claiming a transfer from a look-alike that never happened. |
@@ -456,8 +467,11 @@ What each value means:
456
467
  - Each flag is absent unless true. An address carries the flag only while it
457
468
  has a live label of that role. A flag is never `false`.
458
469
  - Test a flag with `IS NOT NULL` or `IS NULL`. Do not test `= false`.
459
- - Only `is_exchange` ends a walk: exchange hot wallets are terminals, and a
460
- node with no `is_exchange` is walked through.
470
+ - Only `is_exchange` ends a walk: every `:Exchange` address is a terminal, a
471
+ hot wallet and a deposit alike, and a node with no `is_exchange` is walked
472
+ through. A quantified walk carries `NOT via:Exchange` on every address in
473
+ its middle. A walk that ends at a deposit names the exchange from its
474
+ `SWEPT` link (`aml_exchange_deposit_check`).
461
475
  - The `chain-insights-cypher` skill shows how to read every property from a
462
476
  sample.
463
477
 
package/docs/mcp-proxy.md CHANGED
@@ -83,6 +83,9 @@ The proxy:
83
83
  | `meta_schema` | Show the live graph schema of a network: labels, link types, fields, indexes |
84
84
  | `meta_dex_lookup` | Turn an exchange name into its factories, routers or manager, pools and first reads |
85
85
  | `meta_token_lookup` | Turn a ticker or a token name into every contract that carries it, with its creator |
86
+ | `aml_deployer_screen` | Screen who is behind a token or a wallet: launcher, first funder, labels, facts only |
87
+ | `meta_exchange_lookup` | Turn a centralized exchange name, or one of its wallets, into its listed wallets |
88
+ | `aml_exchange_deposit_check`| Check one address: an exchange deposit, of which exchange, swept into which wallet |
86
89
  | `meta_rules` | Read the answer rules when the `chain-insights-cypher` skill is not loaded |
87
90
  | `meta_help` | Show Chain Insights tool and workflow guidance |
88
91
  | `meta_usage_status` | Check the caller's daily free-tier graph query allowance |
@@ -153,12 +156,111 @@ never picks one.
153
156
 
154
157
  Zero candidates is an answer: no contract on the network carries the symbol
155
158
  or the name. A contract address sent as `symbol` sends no read: an address is
156
- already an anchor, read it on `USE topology`. A server that does not serve the
157
- `Asset` read yet answers with no candidates and a `hint` to ask the user for
158
- the contract. Both reads are billed as any read.
159
+ already an anchor, read it on `USE topology`. When the `Asset` read is refused, the
160
+ tool answers with no candidates and a `hint` to ask the user for the contract. Both reads are billed as any read.
159
161
  `cia mcp call meta_token_lookup network=robinhood symbol=TCITY` runs the same
160
162
  lookup in a terminal.
161
163
 
164
+ `aml_deployer_screen` screens who is behind a token or a wallet. It takes
165
+ `network` and `address` (both required; `address` is a token contract or a
166
+ wallet, 0x plus 40 hex characters, any case). It returns facts only: never a
167
+ score, a risk level or a verdict. The caller decides.
168
+
169
+ ```mermaid
170
+ flowchart LR
171
+ F["first funder<br/>kind, labels, how many it paid"] -->|"first inbound flow"| L["launcher<br/>the creation sender"]
172
+ C["remote chain"] -->|"first bridge deposit"| L
173
+ L -->|"creation transaction"| T["token contract"]
174
+ ```
175
+
176
+ 1. One `graph_query_batch` sends two reads on `USE topology`, both anchored on
177
+ the address. The `token` read takes the address as a contract: its first
178
+ creation, and the launcher, the wallet that sent the creation transaction.
179
+ The `wallet` read takes the address as the launcher itself. Both read the
180
+ launcher's first inbound flow of all time (its first funder) and its first
181
+ inbound bridge deposit.
182
+ 2. When the `token` read holds a row, `input_kind` is `token` and `creation`
183
+ names the transaction, block, time, deployer, factory and `mode`
184
+ (`direct` or `factory`). Otherwise the `wallet` read answers and
185
+ `input_kind` is `wallet`. When neither holds a row, `found` is false: the
186
+ graph holds no node for the address. That is an answer, not an error.
187
+ 3. `launcher` and `first_funder` carry their roles (the graph labels), their
188
+ first activity, their degree (how many distinct addresses they received
189
+ from or paid) and `crime`: the sanctions, scam, victim and issuer-frozen
190
+ marks, and each risk label with its level. `first_funder.kind` is the
191
+ first of `scam`, `mixer`, `exchange`, `bridge`, `bundler`, `launchpad` (a
192
+ pool or a protocol), `contract` (a contract with no other role) that its
193
+ roles name, or `wallet`. It also carries
194
+ when and how often it paid the launcher, and the value in USD.
195
+ 4. `launcher_resolved` is false when the launcher is a bundler: a bundler sends
196
+ transactions for others, so the person behind the launch is not known.
197
+ 5. `bridged_in` names the first inbound bridge deposit: the remote chain, the
198
+ bridge endpoint, the kind, the asset and the first block.
199
+ 6. `not_covered` lists what the graph cannot see yet: `exploit_labels`,
200
+ `ml_labels`, `bridge_sender` (who sent a bridge deposit on the other chain)
201
+ and `ethereum_history`.
202
+
203
+ A fresh launcher funded by a wallet that paid few addresses is the pattern to
204
+ look at. A funder that paid thousands is shared infrastructure, such as a
205
+ bridge or an exchange. Every timestamp has its `_utc` text twin. A failed read
206
+ is an error that says it is not "not found". The batch is billed as any read.
207
+ `cia mcp call aml_deployer_screen network=robinhood address=0x...` runs the
208
+ same screen in a terminal.
209
+
210
+ `meta_exchange_lookup` turns the name of a centralized exchange (Binance, OKX,
211
+ Bitget) into its wallets on one network. It takes `network` (required) and
212
+ `name` or `address` (one of them, not both; with neither, every listed exchange
213
+ is returned with its hot wallet count). It reads the public exchange lookup
214
+ `registry/exchanges/<network>.json` and sends no graph read. The file lists
215
+ every exchange of the network, and only the wallets proven on that network's
216
+ own data: at least 20 clean payers, and at least 90 % of a 200-payer sample
217
+ pay only this exchange, pinned at `proven_at_block`. An exchange may list no
218
+ wallet. Exchange tags and wallets of another network stay out of the file;
219
+ the graph still marks them, and `aml_exchange_deposit_check` reads them there.
220
+
221
+ - `hot_wallets` receive the sweeps of the exchange's deposits; `gas_wallets`
222
+ top deposits up so they can pay their own sweep; `spenders` pull approved
223
+ deposits.
224
+ - A misspelling within two letters is taken and named in `took_for`. An
225
+ `address` answers whose wallet it is, with its role in `took_for`.
226
+ - The file is read like the DEX registry: from `main` over
227
+ `raw.githubusercontent.com`, cached one hour under `~/.chain-insights/cache/`,
228
+ with the packaged copy as the offline fallback. A row merged on `main`
229
+ reaches every running proxy within the hour, with no release.
230
+ - `scripts/pin-exchange-registry.mjs <wallets.json> --write` writes the file
231
+ from the indexer-evm-cex registry of the network and leaves out every
232
+ wallet with no block; `tests/exchange-registry.test.ts` holds every file to
233
+ the rules.
234
+
235
+ `cia mcp call meta_exchange_lookup network=robinhood name=Bitget` runs the
236
+ same lookup in a terminal.
237
+
238
+ `aml_exchange_deposit_check` checks one address. It takes `network` and
239
+ `address` (both required). One `graph_query_batch` sends two reads on
240
+ `USE topology`, both anchored on the address: the address with its
241
+ `cex_role`, and its `SWEPT` links with each hot wallet it swept into.
242
+
243
+ ```mermaid
244
+ flowchart LR
245
+ T["a trail"] -->|"FLOWED_TO"| D["deposit<br/>cex_role deposit"]
246
+ D -->|"SWEPT<br/>sweep_count, paths"| H["hot wallet<br/>cex_role hot_wallet"]
247
+ ```
248
+
249
+ - `is_deposit` is true when the address carries `cex_role` `deposit` or has a
250
+ `SWEPT` link. `SWEPT` is drawn only from an address the deposit rule judged a
251
+ deposit.
252
+ - `exchange` is named from the hot wallet it swept into, through the exchange
253
+ lookup, else from the address's label words.
254
+ - `swept` lists each hot wallet with the sweep count, the USD sum, the paths
255
+ (`plain`, `gas_topped`, `approval_pull`, `forwarder_flush`,
256
+ `forwarder_batch`) and the first and last sweep, each with its `_utc` twin.
257
+ - A trail that reaches a deposit ends there: the exchange can name the
258
+ customer behind it. A failed read is an error that says it is not "no
259
+ deposit". The batch is billed as any read.
260
+
261
+ `cia mcp call aml_exchange_deposit_check network=robinhood address=0x...` runs
262
+ the same check in a terminal.
263
+
162
264
  ## Host parity
163
265
 
164
266
  **A rule a host never loads does not exist for that host.** Each host loads a
@@ -173,6 +275,7 @@ different part of what this package ships:
173
275
  | result `hint` | yes | yes | yes | yes | yes | yes |
174
276
  | protocol tool doors | yes | yes | yes | yes | yes | yes |
175
277
  | token door `meta_token_lookup` | yes | yes | yes | yes | yes | yes |
278
+ | exchange doors `meta_exchange_lookup`, `aml_exchange_deposit_check` | yes | yes | yes | yes | yes | yes |
176
279
 
177
280
  The scout agent pins the CLI by version in its image and copies only
178
281
  `chain-insights-cypher` and `chain-insights-virtuals` into its project, yet asks
@@ -189,8 +292,11 @@ flowchart LR
189
292
 
190
293
  The rule:
191
294
 
192
- 1. A protocol skill ships with a tool door: frontmatter `door: <tool>`.
193
- 2. The door's description carries the rule the skill opens with, and names
295
+ 1. A protocol skill ships with a tool door: frontmatter `door: <tool>`, or
296
+ `door: <tool>, <tool>` for a skill with two doors.
297
+ `chain-insights-aml-exchange` has two: `meta_exchange_lookup` for an
298
+ exchange by name and `aml_exchange_deposit_check` for one address.
299
+ 2. Each door's description carries the rule the skill opens with, and names
194
300
  the skill's trigger words.
195
301
  3. The skill names the door as its first step.
196
302
 
package/docs/stability.md CHANGED
@@ -18,7 +18,7 @@ Exit codes are contract. Scripts and agent harnesses may rely on them.
18
18
 
19
19
  ### MCP tool names
20
20
 
21
- The public MCP surface is these thirteen tools:
21
+ The public MCP surface is these sixteen tools:
22
22
 
23
23
  - `graph_query`
24
24
  - `graph_query_batch`
@@ -26,6 +26,9 @@ The public MCP surface is these thirteen tools:
26
26
  - `meta_schema`
27
27
  - `meta_dex_lookup`
28
28
  - `meta_token_lookup`
29
+ - `aml_deployer_screen`
30
+ - `meta_exchange_lookup`
31
+ - `aml_exchange_deposit_check`
29
32
  - `meta_rules`
30
33
  - `meta_help`
31
34
  - `meta_usage_status`
@@ -34,7 +37,7 @@ The public MCP surface is these thirteen tools:
34
37
  - `wallet_topup`
35
38
  - `subscription_topup`
36
39
 
37
- `graph_expand` is the fourteenth tool the proxy registers. The view calls it
40
+ `graph_expand` is the seventeenth tool the proxy registers. The view calls it
38
41
  when you click in a picture; hosts keep it out of the model's tool list. It
39
42
  is not part of the public surface.
40
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chain-insights",
3
- "version": "0.78.0",
3
+ "version": "0.80.0",
4
4
  "description": "AML investigation CLI and MCP proxy for blockchain risk screening and Chain Insights Graph access",
5
5
  "homepage": "https://chain-insights.ai",
6
6
  "repository": {
@@ -93,7 +93,7 @@
93
93
  "vitest": "^5.0.3"
94
94
  },
95
95
  "chainInsights": {
96
- "dexRegistryVersion": 6
96
+ "dexRegistryVersion": 8
97
97
  },
98
98
  "overrides": {
99
99
  "ws": "8.21.0",
@@ -18,11 +18,13 @@ flowchart LR
18
18
  JSON --> MEMO
19
19
  ```
20
20
 
21
+ Centralized exchanges have their own folder, [exchanges/](#centralized-exchanges).
22
+
21
23
  ## The files
22
24
 
23
25
  | File | Rows served | Why |
24
26
  |---|---|---|
25
- | [robinhood.md](robinhood.md) | 83 | registry version 6, recorded 2026-11-05; the `dyor` row and the Ekubo positions row are not served |
27
+ | [robinhood.md](robinhood.md) | 84 | registry version 8, recorded 2026-11-06 |
26
28
  | [robinhood.json](robinhood.json) | 40 exchanges | the served copy of `robinhood.md`, never edited by hand |
27
29
 
28
30
  A change to the rows merged on `main` reaches every running proxy within one
@@ -42,8 +44,8 @@ hour. No release is needed for a data change.
42
44
  vault, where the manager stays the contract past the swap. The chain or
43
45
  its verified source must tie it to the exchange.
44
46
  Write the check into the file's `## Verification` section.
45
- 3. **An unchecked row stays in the table.** Its verification cell says
46
- `not served:` and the reason. It is served later, when a check passes.
47
+ 3. **An unchecked exchange has no row.** A row enters the table when its support
48
+ is serving and its check passes. Its facts wait on an AP1000 issue until then.
47
49
  4. **The chain wins over the source.** When the chain shows a different
48
50
  factory or block than the source, the row follows the chain and the file
49
51
  says so.
@@ -70,7 +72,7 @@ The `## Rows` table has twelve columns, in this order.
70
72
  | example pool | optional: one pool of the exchange, read live by the release suite. Empty or `-` when not given |
71
73
  | pool floor | optional: the least number of pools the exchange must show on a lane. Empty or `-` when not given |
72
74
  | source link | the one link that confirms the row, as `[text](https://…)` |
73
- | verification | `served`, or `not served:` and the reason |
75
+ | verification | `served` |
74
76
 
75
77
  Each network file states `Registry version: N`. Bump it in every change to
76
78
  the rows. Each file also states `Recorded on: YYYY-MM-DD`, the day of the
@@ -108,7 +110,7 @@ pull request:
108
110
  node scripts/pin-dex-registry.mjs --check registry/robinhood.md
109
111
  ```
110
112
 
111
- It prints `rows: N served, M refused, K not served` and
113
+ It prints `rows: N served, M refused` and
112
114
  `registry/robinhood.json up to date, registry version V`. It exits 1 when a
113
115
  row is refused or the committed copy differs, and names both versions.
114
116
 
@@ -137,3 +139,38 @@ The release suite `tests/dex-registry-live.integration.test.ts` reads every
137
139
  row against a live graph per release candidate: every factory, manager and
138
140
  router is a contract, every factory with a pool floor shows at least that many
139
141
  pools, and every example pool is a `:Pool` deployed by its factory.
142
+
143
+ ## Centralized exchanges
144
+
145
+ `exchanges/<network>.json` lists every centralized exchange of the
146
+ indexer-evm-cex registry of the network, and under each only the wallets
147
+ proven on that network's own data. The proxy tool `meta_exchange_lookup`
148
+ serves it, and `aml_exchange_deposit_check` names an exchange from it.
149
+ Whether an address is a deposit is read from the graph, never from this file:
150
+ `aml_exchange_deposit_check` reads the address's `cex_role` and its `SWEPT`
151
+ links.
152
+
153
+ | File | Exchanges | Wallets proven on the chain |
154
+ |---|---|---|
155
+ | [exchanges/ethereum.json](exchanges/ethereum.json) | 57 | 72 |
156
+ | [exchanges/robinhood.json](exchanges/robinhood.json) | 7 | 3 |
157
+
158
+ 1. **Every exchange is listed**, with its id, its display name and its
159
+ aliases, so a user's word finds it. An exchange may list no wallet.
160
+ 2. **Only a wallet proven on the chain is listed.** The proof is a payer
161
+ proof on this chain: at least 20 clean payers, and at least 90 % of a
162
+ 200-payer sample pay only this exchange, pinned at `proven_at_block`; for
163
+ a gas wallet, at least 90 % of its native recipients are this exchange's
164
+ deposits. `proven_at_block` is always above 0.
165
+ 3. **Tags stay out.** An exchange tag (Etherscan) and a wallet of another
166
+ chain at the same address have `proven_at_block` 0 in the indexer's
167
+ registry. They stay there and reach the graph's labels, never this file.
168
+ 4. **One wallet, one exchange.** A wallet listed for two exchanges is refused.
169
+ 5. **The id is the word the graph's labels carry.** `display` and `aliases` are
170
+ the names a user writes.
171
+
172
+ `node scripts/pin-exchange-registry.mjs <indexer-evm-cex registry/<network>.json> --write`
173
+ writes the file from the indexer's registry, leaves out every wallet with no
174
+ block, and keeps each exchange's display name and aliases.
175
+ `tests/exchange-registry.test.ts` holds every file to these rules. A row merged
176
+ on `main` reaches every running proxy within one hour.