chain-insights 0.79.2 → 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 (61) hide show
  1. package/README.md +2 -0
  2. package/dist/cli.cjs +43 -13
  3. package/dist/cli.mjs +43 -13
  4. package/dist/cli.mjs.map +1 -1
  5. package/dist/{deployer-screen-4AxZhsrO.cjs → deployer-screen-BomgSBcq.cjs} +2 -2
  6. package/dist/{deployer-screen-eix6pvW7.mjs → deployer-screen-ByQBZEsg.mjs} +3 -3
  7. package/dist/{deployer-screen-eix6pvW7.mjs.map → deployer-screen-ByQBZEsg.mjs.map} +1 -1
  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 +65 -13
  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 +65 -14
  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-DBN3Lxl7.cjs → token-lookup-D-5GBEwF.cjs} +1 -1
  37. package/dist/{token-lookup-Bv_Fviis.mjs → token-lookup-QpIv77P2.mjs} +2 -2
  38. package/dist/{token-lookup-Bv_Fviis.mjs.map → token-lookup-QpIv77P2.mjs.map} +1 -1
  39. package/dist/{tool-visibility-DwNr6Rp9.cjs → tool-visibility-D8Up081E.cjs} +7 -1
  40. package/dist/{tool-visibility-DlxA8R00.mjs → tool-visibility-DuTds7V4.mjs} +8 -2
  41. package/dist/tool-visibility-DuTds7V4.mjs.map +1 -0
  42. package/docs/contributing.md +4 -3
  43. package/docs/development.md +4 -2
  44. package/docs/graph-query-compatibility.md +20 -4
  45. package/docs/graph-tools.md +17 -8
  46. package/docs/mcp-proxy.md +62 -2
  47. package/docs/stability.md +4 -2
  48. package/package.json +1 -1
  49. package/registry/README.md +37 -0
  50. package/registry/exchanges/ethereum.json +920 -0
  51. package/registry/exchanges/robinhood.json +87 -0
  52. package/skills/chain-insights-aml-exchange/SKILL.md +134 -0
  53. package/skills/chain-insights-aml-exchange/agents/openai.yaml +4 -0
  54. package/skills/chain-insights-cypher/SKILL.md +41 -11
  55. package/skills/chain-insights-dex/SKILL.md +1 -1
  56. package/skills/chain-insights-dex-gauge/SKILL.md +2 -0
  57. package/skills/chain-insights-dex-launchpad/SKILL.md +2 -0
  58. package/skills/chain-insights-dex-vault/SKILL.md +2 -0
  59. package/dist/dex-tool-D61sIjpq.mjs.map +0 -1
  60. package/dist/public-tools-DXlZcanX.mjs.map +0 -1
  61. package/dist/tool-visibility-DlxA8R00.mjs.map +0 -1
@@ -30,13 +30,16 @@ 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
32
  `meta_schema`, `meta_dex_lookup`, `meta_token_lookup`, `aml_deployer_screen`,
33
- `meta_rules`, `meta_help`, `meta_usage_status`,
33
+ `meta_exchange_lookup`, `aml_exchange_deposit_check`, `meta_rules`, `meta_help`, `meta_usage_status`,
34
34
  `meta_subscription_status`, `wallet_balance`, `wallet_topup` and
35
35
  `subscription_topup`. `aml_deployer_screen` screens who is behind a token or a
36
36
  wallet from two anchored topology reads: the launcher, its first funder and
37
37
  what kind of wallet that is, their labels and the first inbound bridge
38
38
  deposit. It returns facts only, never a score; see
39
- [MCP proxy](mcp-proxy.md#local-tools). On hosted
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
40
43
  backends, `meta_usage_status` can reflect remote quota telemetry. On
41
44
  backends without a quota tool, Chain Insights returns a local unmetered
42
45
  primitive-backend status instead.
@@ -58,14 +61,16 @@ A transaction is a chain question: read it on `USE chain` by its `tx_id`. Chain
58
61
 
59
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.
60
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
+
61
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.
62
67
 
63
68
  The graph layers are grouped into six families, and each family is as fresh
64
69
  as its slowest layer: `money` (`FLOWED_TO`, `OPERATED_BY`), `dex` (`SWAPPED`,
65
70
  `ADDED_LIQUIDITY`, `REMOVED_LIQUIDITY`), `interactions` (`APPROVED`,
66
71
  `BRIDGED`, `DEPLOYED_CONTRACT`, `SIGNED_AUTHORIZATION`), `smart_accounts`
67
- (`SPONSORED`, `BUNDLED`, `SIGNED_FOR`, `LINKED`), `annotations` (labels
68
- 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`).
69
74
  `cia network <name>` prints one
70
75
  row per family with its height and its blocks behind the head, and
71
76
  `annotations` as `fresh` or `walking`. The `Head` node of `USE chain` serves
@@ -295,7 +300,7 @@ one path only:
295
300
  ```bash
296
301
  cia mcp call graph_query \
297
302
  network=robinhood \
298
- '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'
299
304
  ```
300
305
 
301
306
  The `chain-insights-cypher` skill shows how to read the properties of a link
@@ -360,7 +365,7 @@ Where one token went, up to 3 hops out. Every hop carries the same `asset`:
360
365
 
361
366
  ```cypher
362
367
  USE topology
363
- 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)
364
369
  RETURN b.address AS to_address, length(p) AS hops LIMIT 25
365
370
  ```
366
371
 
@@ -429,6 +434,7 @@ What each value means:
429
434
  | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
430
435
  | `FAKE_TOKEN` | A fake token: a spoof contract that imitates a real token. |
431
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. |
432
438
  | `ADDRESS_POISONING` | A poisoner: a look-alike address that sent worthless dust so the target copies it from its history. `:Poisoned`, never `:Scam`. |
433
439
  | `INBOUND_IMPERSONATION` | A look-alike address that paid the target to get into its history. |
434
440
  | `PHANTOM_TRANSFER` | A contract that writes fake transfer events, claiming a transfer from a look-alike that never happened. |
@@ -461,8 +467,11 @@ What each value means:
461
467
  - Each flag is absent unless true. An address carries the flag only while it
462
468
  has a live label of that role. A flag is never `false`.
463
469
  - Test a flag with `IS NOT NULL` or `IS NULL`. Do not test `= false`.
464
- - Only `is_exchange` ends a walk: exchange hot wallets are terminals, and a
465
- 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`).
466
475
  - The `chain-insights-cypher` skill shows how to read every property from a
467
476
  sample.
468
477
 
package/docs/mcp-proxy.md CHANGED
@@ -84,6 +84,8 @@ The proxy:
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
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 |
87
89
  | `meta_rules` | Read the answer rules when the `chain-insights-cypher` skill is not loaded |
88
90
  | `meta_help` | Show Chain Insights tool and workflow guidance |
89
91
  | `meta_usage_status` | Check the caller's daily free-tier graph query allowance |
@@ -205,6 +207,60 @@ is an error that says it is not "not found". The batch is billed as any read.
205
207
  `cia mcp call aml_deployer_screen network=robinhood address=0x...` runs the
206
208
  same screen in a terminal.
207
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
+
208
264
  ## Host parity
209
265
 
210
266
  **A rule a host never loads does not exist for that host.** Each host loads a
@@ -219,6 +275,7 @@ different part of what this package ships:
219
275
  | result `hint` | yes | yes | yes | yes | yes | yes |
220
276
  | protocol tool doors | yes | yes | yes | yes | yes | yes |
221
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 |
222
279
 
223
280
  The scout agent pins the CLI by version in its image and copies only
224
281
  `chain-insights-cypher` and `chain-insights-virtuals` into its project, yet asks
@@ -235,8 +292,11 @@ flowchart LR
235
292
 
236
293
  The rule:
237
294
 
238
- 1. A protocol skill ships with a tool door: frontmatter `door: <tool>`.
239
- 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
240
300
  the skill's trigger words.
241
301
  3. The skill names the door as its first step.
242
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 fourteen tools:
21
+ The public MCP surface is these sixteen tools:
22
22
 
23
23
  - `graph_query`
24
24
  - `graph_query_batch`
@@ -27,6 +27,8 @@ The public MCP surface is these fourteen tools:
27
27
  - `meta_dex_lookup`
28
28
  - `meta_token_lookup`
29
29
  - `aml_deployer_screen`
30
+ - `meta_exchange_lookup`
31
+ - `aml_exchange_deposit_check`
30
32
  - `meta_rules`
31
33
  - `meta_help`
32
34
  - `meta_usage_status`
@@ -35,7 +37,7 @@ The public MCP surface is these fourteen tools:
35
37
  - `wallet_topup`
36
38
  - `subscription_topup`
37
39
 
38
- `graph_expand` is the fifteenth tool the proxy registers. The view calls it
40
+ `graph_expand` is the seventeenth tool the proxy registers. The view calls it
39
41
  when you click in a picture; hosts keep it out of the model's tool list. It
40
42
  is not part of the public surface.
41
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chain-insights",
3
- "version": "0.79.2",
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": {
@@ -18,6 +18,8 @@ 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 |
@@ -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.