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
@@ -0,0 +1,87 @@
1
+ {
2
+ "schema": "chain-insights.exchange-registry.v1",
3
+ "network": "robinhood",
4
+ "registry_version": 1,
5
+ "recorded_on": "2026-11-09",
6
+ "rows": [
7
+ {
8
+ "exchange": "bitget",
9
+ "display": "Bitget",
10
+ "aliases": [
11
+ "bitget"
12
+ ],
13
+ "wallets": [
14
+ {
15
+ "address": "0xed9ab5bc05a0152b9dc2f7902e8369af7bc18771",
16
+ "role": "hot_wallet",
17
+ "evidence": "1987 clean payers 2026-10-09 to 2026-11-07; 199 of 200 sampled pay only this exchange",
18
+ "proven_at_block": 108803217
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "exchange": "bitrue",
24
+ "display": "Bitrue",
25
+ "aliases": [
26
+ "bitrue"
27
+ ],
28
+ "wallets": []
29
+ },
30
+ {
31
+ "exchange": "bitunix",
32
+ "display": "Bitunix",
33
+ "aliases": [
34
+ "bitunix"
35
+ ],
36
+ "wallets": []
37
+ },
38
+ {
39
+ "exchange": "blofin",
40
+ "display": "BloFin",
41
+ "aliases": [
42
+ "blofin"
43
+ ],
44
+ "wallets": []
45
+ },
46
+ {
47
+ "exchange": "bybit",
48
+ "display": "Bybit",
49
+ "aliases": [
50
+ "bybit"
51
+ ],
52
+ "wallets": [
53
+ {
54
+ "address": "0xc0e17ad342afabd36b3971f8305ff147006962ae",
55
+ "role": "hot_wallet",
56
+ "evidence": "123 clean payers 2026-10-09 to 2026-11-07; 114 of 123 sampled pay only this exchange",
57
+ "proven_at_block": 108803217
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "exchange": "gate",
63
+ "display": "Gate",
64
+ "aliases": [
65
+ "gate",
66
+ "gate.io",
67
+ "gateio"
68
+ ],
69
+ "wallets": [
70
+ {
71
+ "address": "0x0d0707963952f2fba59dd06f2b425ace40b492fe",
72
+ "role": "hot_wallet",
73
+ "evidence": "1208 clean payers 2026-10-09 to 2026-11-07; 193 of 200 sampled pay only this exchange",
74
+ "proven_at_block": 108803217
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "exchange": "pionex",
80
+ "display": "Pionex",
81
+ "aliases": [
82
+ "pionex"
83
+ ],
84
+ "wallets": []
85
+ }
86
+ ]
87
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": "chain-insights.dex-registry.v1",
3
3
  "network": "robinhood",
4
- "registry_version": 6,
5
- "recorded_on": "2026-11-05",
4
+ "registry_version": 8,
5
+ "recorded_on": "2026-11-06",
6
6
  "rows": [
7
7
  {
8
8
  "dex": "aero",
@@ -285,12 +285,15 @@
285
285
  "uniswap-v2"
286
286
  ],
287
287
  "roles": {
288
- "0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f": "factory"
288
+ "0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f": "factory",
289
+ "0x89e5db8b5aa49aa85ac63f691524311aeb649eba": "router"
289
290
  },
290
291
  "factories": [
291
292
  "0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f"
292
293
  ],
293
- "routers": [],
294
+ "routers": [
295
+ "0x89e5db8b5aa49aa85ac63f691524311aeb649eba"
296
+ ],
294
297
  "example_pool": "0x4a6a85252a6f6b383a5f747259ee157e65ff1307",
295
298
  "pool_floor": 10000,
296
299
  "since_block": 0,
@@ -6,9 +6,9 @@ columns and the check are in the [README](README.md). The served copy is
6
6
  [robinhood.json](robinhood.json), written by
7
7
  `node scripts/pin-dex-registry.mjs registry/robinhood.md`.
8
8
 
9
- Registry version: 6.
9
+ Registry version: 8.
10
10
 
11
- Recorded on: 2026-11-05.
11
+ Recorded on: 2026-11-06.
12
12
 
13
13
  ## Rows
14
14
 
@@ -45,6 +45,7 @@ Recorded on: 2026-11-05.
45
45
  | swaphood | SwapHood | SwapHood, SwapHood Finance, SWT, swaphood.finance | gauge | solidly-v2 | factory | `0xe7206ecac3a51afe7e6179182ad4130a26068dd1` | 0 | - | 20 | [SwapHood contract addresses](https://swaphood-finance.gitbook.io/swaphood-finance-docs/contract-addresses.md) | served |
46
46
  | swaphood | SwapHood | | gauge | solidly-v2 | router | `0x8f8056fec03159ebcc4aee1b8ea5a61d8fe405fc` | 0 | - | - | [SwapHood contract addresses](https://swaphood-finance.gitbook.io/swaphood-finance-docs/contract-addresses.md) | served |
47
47
  | uniswap-v2 | Uniswap v2 | Uniswap v2, Uni v2 | plain | uniswap-v2 | factory | `0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f` | 0 | 0x4a6a85252a6f6b383a5f747259ee157e65ff1307 | 10000 | [Uniswap v2 deployments](https://developers.uniswap.org/docs/protocols/v2/deployments) | served |
48
+ | uniswap-v2 | Uniswap v2 | | plain | uniswap-v2 | router | `0x89e5db8b5aa49aa85ac63f691524311aeb649eba` | 8929 | - | - | [Sourcify UniswapV2Router02](https://sourcify.dev/server/v2/contract/4663/0x89e5db8b5aa49aa85ac63f691524311aeb649eba) | served |
48
49
  | uniswap-v3 | Uniswap v3 | Uniswap v3, Uni v3 | plain | uniswap-v3 | factory | `0x1f7d7550b1b028f7571e69a784071f0205fd2efa` | 0 | 0x10cc6bd38112cac182db90b6a71d8bb5939526ba | 200000 | [Uniswap v3 Robinhood deployment](https://developers.uniswap.org/docs/protocols/v3/deployments/v3-robinhood-chain-deployments) | served |
49
50
  | eth-usdg-router | unnamed ETH/USDG swap router (routes into Uniswap v3 and v4) | ETH/USDG router, ETH/USDG swap router, USDG swap router | plain | uniswap-v3 | factory | `0x1f7d7550b1b028f7571e69a784071f0205fd2efa` | 105000018 | 0x52e65b17fb6e5ba00ed806f37afcd2daa50271ca | - | [scout-agent finding 164](https://github.com/chainswarm/scout-agent/issues/164) | served |
50
51
  | eth-usdg-router | unnamed ETH/USDG swap router (routes into Uniswap v3 and v4) | | plain | uniswap-v3 | router | `0x7a39b98d31f84152bc724bc5ddb41dbcb338f2a5` | 105000018 | 0x52e65b17fb6e5ba00ed806f37afcd2daa50271ca | - | [scout-agent finding 164](https://github.com/chainswarm/scout-agent/issues/164) | served |
@@ -59,7 +60,6 @@ Recorded on: 2026-11-05.
59
60
  | swaap | Swaap v2 | Swaap, Swaap Finance, swaap.xyz, Balancer, Balancer v2, Balancer v2 vault | vault | balancer-v2 | manager | `0xd315a9c38ec871068fec378e4ce78af528c76293` | 0 | - | - | [Swaap docs](https://docs.swaap.xyz/) | served |
60
61
  | balancer-v3 | unnamed Balancer v3 vault | Balancer, Balancer v3, Balancer v3 vault | vault | balancer-v3 | manager | `0x28082618ba2073e602230188e4f4c46e9b2169eb` | 0 | - | - | [Sourcify verified source](https://sourcify.dev/server/v2/contract/4663/0x28082618ba2073e602230188e4f4c46e9b2169eb) | served |
61
62
  | ekubo | Ekubo | Ekubo, Ekubo Protocol, ekubo.org | vault | ekubo-core | manager | `0x00000000000014aa86c5d3c41765bb24e11bd701` | 33534 | - | - | [Ekubo robinhood deployment](https://github.com/EkuboProtocol/evm-contracts/blob/933c813ca154475a3c7eab8234869f6db151c682/broadcast/DeployAll.s.sol/4663/run-latest.json) | served |
62
- | ekubo | Ekubo | | vault | ekubo-core | positions | `0xda38ac72ce7220c4dd7719d114ef94edadb8f068` | 18272006 | - | - | [Ekubo robinhood Ve33 deployment](https://github.com/EkuboProtocol/evm-contracts/blob/933c813ca154475a3c7eab8234869f6db151c682/broadcast/DeployVe33.s.sol/4663/run-latest.json) | not served: the positions NFT creates no pool, holds no pool and forwards no swap; the registry serves the roles factory, manager and router only |
63
63
  | stock-token-market | unnamed stock-token market with one reserve holder | stock-token market, stock token market | vault | swapped-custody | manager | `0x2f4579ca81717d3d61bf8b6f06571877bbe54a07` | 461784 | - | - | [devops registry v29](https://github.com/chainswarm/devops/blob/e270ee1a3c8a2afc52e9d5549be5dbb8b98f0914/charts/chainswarm-indexer-evm-dex/registry/robinhood-v29.json) | served |
64
64
  | ramses | Ramses | Ramses, Ramses Exchange, RAM, ramses.xyz, Ramses DLMM | plain | trader-joe-lb | factory | `0xdcd5f77697914e27f56fd263ef82923c8524abac` | 0 | 0x06ffaa507a9c3e7025294a642f1e1c75da3dfb4a | 150 | [Ramses contract addresses](https://www.ramses.xyz/docs/contract-addresses) | served |
65
65
  | ramses | Ramses | | plain | uniswap-v2 | factory | `0x43b2bf9f33036a02fc7a00935571c2a6b0108e66` | 0 | - | - | [Ramses contract addresses](https://www.ramses.xyz/docs/contract-addresses) | served |
@@ -67,7 +67,6 @@ Recorded on: 2026-11-05.
67
67
  | sectorone | SectorOne | SectorOne, SectorOne DLMM | plain | trader-joe-lb | factory | `0x3d8dc63ddc9b992cfde89f7aea6f18717e84687d` | 0 | - | 30 | [DefiLlama traderJoeV2 registry](https://github.com/DefiLlama/DefiLlama-Adapters/blob/main/registries/traderJoeV2.js) | served |
68
68
  | hoodit | Hoodit | Hoodit, hoodit.xyz | plain | trader-joe-lb | factory | `0x22602d966defd638ee94e97a92e2eb0934c3fe1b` | 0 | - | 5 | [DefiLlama traderJoeV2 registry](https://github.com/DefiLlama/DefiLlama-Adapters/blob/main/registries/traderJoeV2.js) | served |
69
69
  | giga | GIGA | GIGA, GIGA DEX, GigaDEX, gigadex.fi | plain | uniswap-v2 | factory | `0x6fdf38f92ead1adfc04b73aaa947ab254f6c0916` | 0 | - | 15 | [HoodScan](https://hoodscan.co/project/giga) | served |
70
- | dyor | DYOR | DYOR, dyor.fun, DYORSwap | plain | uniswap-v2 | factory | `0x5818fddddb96bcd50bee4253f11b324e7dea961b` | 0 | - | - | [Mobula almanac](https://docs.mobula.io/almanac/robinhood-launchpads/dyorfun.md) | not served: the exchange name rests on the contract's own revert strings and one third-party page; a deployment file is awaited |
71
70
  | flap | Flap | Flap, Flap launchpad, flap.sh | launchpad | uniswap-v2 | factory | `0x0d1ebb179cdbca88d74c923c4255cb2b17474afd` | 0 | - | 100000 | [HoodScan](https://hoodscan.co/project/flap) | served |
72
71
  | curve | Curve | Curve, Curve Finance, CRV, curve.finance | plain | curve-stable | factory | `0x8271e06e5887fe5ba05234f5315c19f3ec90e8ad` | 0 | 0x7e0539140f16b3a8ed23ad69d6fea6a38fb8b299 | 25 | [curve-core deployments](https://github.com/curvefi/curve-core/blob/main/deployments/prod/robinhood.yaml) | served |
73
72
  | metric | Metric | Metric, Metric OMM, metric.xyz | plain | metric-omm | factory | `0x2e0a99a2e352043d1ca489cf45bf7b511bccc738` | 0 | 0x584ac6010b095bf99398fae8203a3260a03d2b30 | 30 | [Metric SDK addresses](https://github.com/Metricxyz/sdk/blob/main/src/addresses.ts) | served |
@@ -129,7 +128,6 @@ swaps it forwarded.
129
128
  | `0x3d6ea4e97b8ab9e1a1b4943febffe22d8c920091` | factory | read from the production node on 2026-10-25: its creation event names the launched token, its curve and the creator (sample transaction `0x77b1bcc700d5f1d7513d080d3fe265831529c237065fffed83e665f89cc3f019`, block 95,797,703); 2,182 curves, quoted in SPCX `0x4a0e65a3eccec6dbe60ae065f2e7bb85fae35eea` and two other stock tokens. The example curve `0x1de3f839184cf48696cbb9cc283855eb32dc2c51` logged 1,028 trades in 7M blocks. No source names the operator, so the key stays `spcx` |
130
129
  | `0x190b452d16e12e3beedd76a030ea991fe3856c33` | router | the SPCX legs of the sample trade `0xe200a831908a9b937e08eb4c16fdefd016f606980b9ef71f788994c76020708e` run trader, this contract, curve. The trader stays the payer: the router is never a swap end |
131
130
  | `0x00000000000014aa86c5d3c41765bb24e11bd701` | manager | the Ekubo core, deployed at block 33,534 per Ekubo's robinhood deployment file. Read from the production node on 2026-10-25 over 20,000 blocks: 111 swaps and 65 position updates logged by the core itself, 28 pools initialized, each pool kept by a 32-byte pool id. Sample transaction `0x7926c9fab003029a42e7f398e3183611c49583a082b4aac781003cb43f5a96d9`, block 97,745,015 |
132
- | `0xda38ac72ce7220c4dd7719d114ef94edadb8f068` | positions | "Ekubo Ve33 Positions", deployed at block 18,272,006 with the core as its first argument per Ekubo's Ve33 deployment file. It owns the core's position updates and mints one NFT per position. It is not served: it creates no pool, holds no pool and forwards no swap, and a liquidity owner is the NFT's holder, never this contract |
133
131
  | `0x3d69104da2518f4833d71444d6611310f2d685f2` | factory | read on lane B's StarRocks on 2026-11-02: 827 `spcx-launchpad-v2` curves from block 92,760,418 (2026-10-19) to 104,473,613, each created by this contract. Sourcify verifies it as `LaunchFactory` from the same source path and compiler as the first SPCX factory, created at block 92,651,082 by `0xdaff80aadf44305fe95768de1aad1d8861c9f908`; the first was created by `0xb1748f1857bef8de020982aa33f6f9cc1b9ad3c1`, so the two share code, quote token and trade event, not a deployer. Its curve `0x94dc28d78ddbcfdffedb6825ba90b8c8c7b2ba65` (launch transaction `0x21302babf7065d3af00b755bb05bd0a29ea813f5f19767c4f675a74d420d0c6f`, block 100,172,602) holds 2,805 swap rows since 2026-10-28; the first, `0x7845d3a83929f66dce4bfac6e1ddcb7fc5a98f0b4f08b80f2008159100d1c128` at block 100,191,841, is a route through Uniswap v4 into the curve |
134
132
  | `0x3c7476e8be0efd5b9667421448a99e217b806e80` | router | Sourcify `LaunchRouter`, created at block 92,651,105 by the factory's deployer. In `0x459b6eb7423b3f0f8cb2480a5968b55ffb7211af7efdff7ce64f33e6a3765bd7` (block 100,227,315) it takes the trader's USDG, buys SPCX on Uniswap v4 and pays the curve: the trader stays the payer |
135
133
  | `0xc4210279fb1e1de24a87d6f5cc597c9422aef899` | factory | read on lane B's StarRocks on 2026-11-02: 570 `hoodclub-curve` curves from block 54,625,631 (2026-09-04) to 103,673,419; the factory created 1,710 contracts, a token, a curve and a fee vault per launch. Created at block 54,594,936 by `0xdef671f11c8a30818eb3d9cc9476eeec805f9058`; no source is verified and no project names it, so it is served as an unnamed launchpad. Its curves are paid and pay native ETH. The example curve `0x01e7afb5fc124f6b8270bcd2b7d203dcad68c861`, created with token `0x6966b6233f91790bebb1815a4d3acf55d82b3b49` in `0xb68bc059baa634df52a07570fe29dd61ac14cd6b346d8319edff0fc37feb40ea` (block 100,237,007, the creator's own buy), holds 290 swap rows since 2026-10-28 |
@@ -180,6 +178,12 @@ Uniswap v3 WETH/USDG pool `0x52e65b17fb6e5ba00ed806f37afcd2daa50271ca`.
180
178
  That factory stays Uniswap v3's: a lookup of its address still answers
181
179
  Uniswap v3, the first exchange that names it.
182
180
 
181
+ Registry version 7 (2026-11-05) adds Uniswap's v2 router
182
+ `0x89e5db8b5aa49aa85ac63f691524311aeb649eba`. Sourcify verifies
183
+ `UniswapV2Router02`, and its `factory()` returns the Uniswap v2 factory
184
+ `0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f`. The scout digest of 2026-11-05
185
+ named it as a router with no exchange row.
186
+
183
187
  Registry version 6 (2026-11-05) serves the rows of six scout-agent findings
184
188
  and adds the role `helper`: a contract of an exchange that the trail does not
185
189
  read. That is a position NFT, a gauge, a parts deployer, or a swap router of a
@@ -0,0 +1,134 @@
1
+ ---
2
+ name: chain-insights-aml-exchange
3
+ door: meta_exchange_lookup, aml_exchange_deposit_check
4
+ description: Use for AML exchange checks (aml-exchange) — a question that names a centralized exchange such as Binance, Bitget, Bybit, Coinbase, Gate, KuCoin, MEXC or OKX, asks where money entered an exchange, whether an address is an exchange deposit address, which hot wallet a deposit was swept into, or which exchange a wallet belongs to.
5
+ ---
6
+
7
+ # Chain Insights: where money entered an exchange
8
+
9
+ Load `chain-insights-cypher` first. Its answer rules hold here, and these
10
+ hold even when it cannot load:
11
+
12
+ - Write every address in full, 42 characters, every time. Never shorten
13
+ one with `…` or `...`, not even for a repeat mention.
14
+ - A transfer moves tokens: "tokens worth about N USD", never "sent N USD".
15
+ Write USD after the number, never a dollar sign.
16
+ - Never print the query, its `USE` line or its `LIMIT` in the answer. Write
17
+ a time from its `_utc` twin.
18
+
19
+ **The rule this skill opens with.** Money that reaches an exchange deposit
20
+ with a `SWEPT` link entered that exchange there: the trail ends at the
21
+ deposit, and never walks on past a hot wallet. Take an exchange's wallets
22
+ from `meta_exchange_lookup`, never from a guess or a graph search by name.
23
+
24
+ ## How an exchange takes money in
25
+
26
+ A customer of a centralized exchange gets a deposit address of their own.
27
+ The exchange later moves what arrives there into one of its hot wallets: a
28
+ sweep. The graph draws that move as `SWEPT`, from the deposit to the hot
29
+ wallet, and marks each exchange wallet with `cex_role`.
30
+
31
+ | `cex_role` | The wallet |
32
+ |---|---|
33
+ | `deposit` | one customer's deposit address; the exchange knows who owns it |
34
+ | `hot_wallet` | receives the sweeps of many deposits, and pays withdrawals |
35
+ | `cold_wallet` | holds the exchange's reserve |
36
+ | `withdrawal` | pays customers out |
37
+
38
+ `SWEPT` is drawn only from an address the deposit rule judged a deposit: it
39
+ sends everything to the hot wallets of one exchange, was paid by few
40
+ outside addresses and never traded on a DEX. A customer who pays a hot
41
+ wallet directly has no `SWEPT` link: that payment stays `FLOWED_TO`. A
42
+ deposit and a hot wallet are both `:Exchange` addresses: their `labels`
43
+ carry `Exchange` and the exchange id (`gate`, `bitget`), and `is_exchange`
44
+ is set on both.
45
+
46
+ ## Step 1: the doors
47
+
48
+ 1. **A named exchange: `meta_exchange_lookup`.** Call it first with the
49
+ network and the name as the user wrote it:
50
+ `{"network": "robinhood", "name": "Bitget"}`. It answers from the
51
+ exchange lookup, at no cost: the exchange's hot wallets and gas wallets
52
+ proven on that chain's own data, each with its payer proof in `evidence`
53
+ and the block it was proven at in `proven_at_block`. The file lists every
54
+ exchange, and only the wallets proven on that chain: an exchange may list
55
+ none. Its deposits and hot wallets are still marked in the graph, and
56
+ `aml_exchange_deposit_check` reads them there. It takes a typo within two letters and
57
+ names it in `took_for`; say which you took in one line, and ask
58
+ nothing. Send `address` instead of `name` to learn whose wallet an
59
+ address is. An address the file does not list may still be an exchange
60
+ wallet: check it with `aml_exchange_deposit_check` before you answer.
61
+ 2. **One address: `aml_exchange_deposit_check`.** Call it with the network
62
+ and the address in full:
63
+ `{"network": "robinhood", "address": "0x31a817802ee183eb8b13167ffe24bd28dcc6f30c"}`.
64
+ It reads the address's `cex_role` and its `SWEPT` links
65
+ and answers `is_deposit`, the exchange, and each hot wallet it swept
66
+ into with the sweep count, the USD sum, the paths and the first and
67
+ last sweep.
68
+ 3. **No match.** When `meta_exchange_lookup` returns `matched` null, say
69
+ which exchanges it lists for the network, and ask the user for one
70
+ address of the exchange they mean: a deposit address of theirs, or a
71
+ wallet the exchange paid them from. Check that address with
72
+ `aml_exchange_deposit_check`. **Send no graph search by name**: the graph
73
+ has no name search, and a scan of `labels` walks the whole chain.
74
+
75
+ ## Two questions, answered
76
+
77
+ - **"Is 0xed9ab5bc05a0152b9dc2f7902e8369af7bc18771 an exchange?"** Call
78
+ `meta_exchange_lookup` with the `address`. It answers "a hot wallet of
79
+ Bitget on robinhood": say yes, a hot wallet of Bitget, with the address in
80
+ full. When the file lists no wallet of that address, call
81
+ `aml_exchange_deposit_check`: its `cex_role` and the exchange it names
82
+ answer the question from the graph.
83
+ - **"Where did the money from 0x64ba5fafa7a6e1991f7f60c9b594a7131a784540
84
+ go?"** Call `aml_exchange_deposit_check` first. When the address is a
85
+ deposit, the answer is its `SWEPT` link: the money entered Gate at that
86
+ deposit and was swept into the Gate hot wallet
87
+ 0x0d0707963952f2fba59dd06f2b425ace40b492fe. The trail ends there. Send no
88
+ walk past the hot wallet: what leaves it is the exchange paying other
89
+ customers.
90
+
91
+ ## A trail that reaches an exchange
92
+
93
+ Every walk in `chain-insights-cypher` stops at an `:Exchange` address: each
94
+ address in its middle carries `NOT via:Exchange`, so a deposit and a hot
95
+ wallet can only end it. This skill names what the end is: a trail ends at
96
+ the first `:Exchange` address, and a deposit names its hot wallet through
97
+ its `SWEPT` link.
98
+
99
+ Did the money pass from this address straight into an exchange deposit?
100
+ Anchor on the address the trail reached, with the guard of
101
+ `chain-insights-cypher` on the address and on the deposit:
102
+
103
+ ```cypher
104
+ USE topology
105
+ MATCH (a:Address {address: "0x7e3702e9dfaa847f9829a258f1e26fa431160662"})-[f:FLOWED_TO]->(d:Address)-[s:SWEPT]->(h:Address) WHERE NOT a:Pool AND NOT a:Protocol AND NOT a:System AND NOT a.address IN ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"] AND NOT d:Pool AND NOT d:Protocol AND NOT d:System AND NOT d.address IN ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"] RETURN a.address AS from_address, d.address AS to_address, d.labels AS deposit_labels, h.address AS hot_wallet, h.labels AS hot_wallet_labels, f.amount_usd_sum AS amount_usd_sum, s.sweep_count AS sweep_count LIMIT 25
106
+ ```
107
+
108
+ The sweeps of one deposit, the read `aml_exchange_deposit_check` sends:
109
+
110
+ ```cypher
111
+ USE topology
112
+ MATCH (a:Address {address: "0x31a817802ee183eb8b13167ffe24bd28dcc6f30c"})-[s:SWEPT]->(h:Address) RETURN h.address AS hot_wallet, h.labels AS hot_wallet_labels, h.cex_role AS hot_wallet_role, s.sweep_count AS sweep_count, s.amount_usd_sum AS amount_usd_sum, s.paths AS paths LIMIT 20
113
+ ```
114
+
115
+ - **Never anchor on a hot wallet** to list its deposits: one hot wallet
116
+ links to many thousands of deposits, and the read runs out of time.
117
+ Anchor on the deposit or on the address the trail reached.
118
+ - **Answer the investigator's question.** "The money entered Bitget at
119
+ deposit D on robinhood, which was swept 3 times into hot wallet H." The
120
+ exchange can name the customer behind D: that is the lead to hand over.
121
+ - **Name the exchange** from the deposit's `labels`, or from the hot wallet
122
+ through `meta_exchange_lookup` with its `address`.
123
+ - **A payment straight into a hot wallet** ends the trail too: the money
124
+ entered the exchange, but there is no deposit to name. Say so.
125
+
126
+ ## Words
127
+
128
+ - Say "deposit address", "hot wallet", "swept into". Never "the exchange
129
+ received it from the user" when the trail shows only a deposit: the
130
+ owner of a deposit is known to the exchange, not to the graph.
131
+ - `paths` names how a sweep was paid: `plain` (the deposit paid its own
132
+ fee), `gas_topped` (the exchange sent the fee first), `approval_pull`,
133
+ `forwarder_flush` and `forwarder_batch` (a contract moved it). Name it
134
+ only when the user asks how the money moved.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: 'Chain Insights Centralized Exchanges'
3
+ short_description: 'Where money entered an exchange: deposits, hot wallets and SWEPT'
4
+ default_prompt: 'Load chain-insights-cypher first. For a question that names a centralized exchange, call meta_exchange_lookup with the name first; for one address that may be an exchange deposit, call aml_exchange_deposit_check. A trail that reaches a deposit with a SWEPT link ends there: say which exchange and which deposit, and never walk on past a hot wallet.'
@@ -125,6 +125,7 @@ Route by what the question names: an address, a pair with a day, a transaction o
125
125
  `USE chain` with `Address` reads the balance, the nonce or the kind of one address, now or at a past block with `at_block`. A past block must be at least `chain_admission.at_block_min_depth` blocks below the tip. To find the counterparties of an address, search `USE topology`, then read the pair and one day on `USE facts`.
126
126
  A transaction is a chain question: read it on `USE chain` by its `tx_id`. Chain gives its `block_date`; the transfers between a pair on that day are a `USE facts` read. "Every token that moved inside this transaction": read the chain record for `from_address`, `to_address` and `block_date`, then the facts `TRANSFER` rows of that pair on that day and keep the rows whose `tx_id` matches; a `kind` of `internal` is ETH a contract moved while it ran. Tokens the transaction moved between other pairs are not reachable from the hash alone: say so, and name the pairs you did read.
127
127
  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.
128
+ `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.
128
129
  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.
129
130
 
130
131
  The graph's layers are grouped into six families, and a family is as fresh as its slowest layer. The family of a link type decides which `Head` lag a whole-chain search on it waits for.
@@ -135,7 +136,7 @@ The graph's layers are grouped into six families, and a family is as fresh as it
135
136
  | dex | `dex_swaps`, `dex_liquidity`, `dex_pools` | `SWAPPED`, `ADDED_LIQUIDITY`, `REMOVED_LIQUIDITY` | `behind_dex` |
136
137
  | interactions | `approvals`, `bridged`, `contracts`, `authorization` | `APPROVED`, `BRIDGED`, `DEPLOYED_CONTRACT`, `SIGNED_AUTHORIZATION` | `behind_interactions` |
137
138
  | smart_accounts | `sponsored`, `bundled`, `signers`, `owners` | `SPONSORED`, `BUNDLED`, `SIGNED_FOR`, `LINKED` | `behind_smart_accounts` |
138
- | annotations | `labels`, `ml`, `inferred`, `kinds`, `assets` | none | `annotations_fresh` |
139
+ | annotations | `labels`, `ml`, `inferred`, `kinds`, `assets`, `cex_sweeps` | `SWEPT` | `annotations_fresh` |
139
140
  | transfers | `transfers_by_asset` | `TRANSFERRED` | `behind_transfers` |
140
141
 
141
142
  `transfers` is its own family: a `FLOWED_TO` search never waits for it, and a `TRANSFERRED` search never waits for `money`.
@@ -147,6 +148,7 @@ Find the question in this table. Send its first query, once, with the addresses
147
148
  | Recent activity or newest links of one address | `topology` | Newest links of one address (see Graph searches) |
148
149
  | Who sent money to an address? Who received from it? | `topology` | Newest links of one address, the arrow flipped for senders |
149
150
  | Where did the money go, or come from, in N hops? | `topology` | Where the money went, or came from (`{0,N-1}`, N up to 5) |
151
+ | Is an address an exchange deposit, where did a deposit's money go? | `topology` | `aml_exchange_deposit_check`, skill `chain-insights-aml-exchange`, not a walk |
150
152
  | Is there a route between two addresses? | `topology` | Route between two addresses, `SHORTEST 1` |
151
153
  | What do two addresses have in common? | `topology` | Counterparties that two addresses share |
152
154
  | Biggest senders or receivers of one address | `topology` | Newest links of one address, `ORDER BY f.amount_usd_sum DESC LIMIT 10` |
@@ -283,7 +285,7 @@ A mark says what the labels layer judged. The claims list beside it says why. Th
283
285
 
284
286
  | Mark | List | Value: what it means |
285
287
  | --- | --- | --- |
286
- | `:Scam` | `risk_claims` | `FAKE_TOKEN`: a fake token, a spoof contract that imitates a real token. `FAKE_TOKEN_DEPLOYER`: its creator. `INBOUND_IMPERSONATION`: a look-alike address that paid the target to get into its history. `PHANTOM_TRANSFER`, `PHANTOM_TRANSFER_EMITTER`, `PHANTOM_ENTRYPOINT`: a contract that writes fake transfer events, claiming a transfer from a look-alike that never happened. `SWEEPER_DELEGATE`: an EIP-7702 delegate that empties the accounts that delegate to it. `SWEEP_BENEFICIARY`: where it sends the funds. `UNSAFE_DELEGATE`: a delegate any caller can use to empty the account. `APPROVAL_DRAINER`: a spender that moved the tokens of at least three owners with their approval or Permit2 within 72 hours of the grant, and paid nothing back. `APPROVAL_DRAIN_BENEFICIARY`: the receiver of those tokens. |
288
+ | `:Scam` | `risk_claims` | `FAKE_TOKEN`: a fake token, a spoof contract that imitates a real token. `FAKE_TOKEN_DEPLOYER`: its creator. `FAKE_TOKEN_LP`: the wallet that seeded its pool and pulled the liquidity after the buyers paid. `INBOUND_IMPERSONATION`: a look-alike address that paid the target to get into its history. `PHANTOM_TRANSFER`, `PHANTOM_TRANSFER_EMITTER`, `PHANTOM_ENTRYPOINT`: a contract that writes fake transfer events, claiming a transfer from a look-alike that never happened. `SWEEPER_DELEGATE`: an EIP-7702 delegate that empties the accounts that delegate to it. `SWEEP_BENEFICIARY`: where it sends the funds. `UNSAFE_DELEGATE`: a delegate any caller can use to empty the account. `APPROVAL_DRAINER`: a spender that moved the tokens of at least three owners with their approval or Permit2 within 72 hours of the grant, and paid nothing back. `APPROVAL_DRAIN_BENEFICIARY`: the receiver of those tokens. |
287
289
  | `:Poisoned` | `risk_claims` | `ADDRESS_POISONING`: a poisoner, a look-alike address that sent worthless dust so the target copies it from its history. Never `:Scam`. |
288
290
  | `:Sanctioned` | `risk_claims` | `SANCTIONED`: on a sanctions list. |
289
291
  | `:Victim` | `protection_claims` | `VICTIM`: it lost money to a scam the evidence walk traced. It paid the accused, was swept, or was drained after the attempt. Receiving a fake token or dust never makes a victim. |
@@ -343,7 +345,7 @@ bridges and the `LINKED` overlay. The server checks these before it runs:
343
345
 
344
346
  ## Graph searches
345
347
 
346
- Each query below is admitted by the live server. Change only the addresses and the `RETURN`. Keep the guards inside the pattern: they apply the [pool trace rule](#pool-trace-rule) and the system guard below it, and a `WHERE` after a `SHORTEST` pattern runs too late. A walk of two or more hops carries the long guard on its start and on every address in its middle. A walk follows links, not coins: confirm a hop with a pair and a day on `USE facts`.
348
+ Each query below is admitted by the live server. Change only the addresses and the `RETURN`. Keep the guards inside the pattern: they apply the [pool trace rule](#pool-trace-rule), the [exchange stop](#exchange-stop) and the system guard below it, and a `WHERE` after a `SHORTEST` pattern runs too late. A walk of two or more hops carries the long guard on its start and on every address in its middle. A walk follows links, not coins: confirm a hop with a pair and a day on `USE facts`.
347
349
 
348
350
  Newest links of one address, its receivers. Its newest senders are the same read with the arrow flipped:
349
351
 
@@ -382,7 +384,7 @@ MATCH (a:Address {address: "0x04911a118f11c75667e4d0dfb8e640af5a353550"})
382
384
  RETURN a.degree_in AS senders, a.degree_out AS receivers, a.tx_total_count AS tx_count, a.total_volume_usd AS volume_usd, a.first_activity_timestamp AS first_active, a.last_activity_timestamp AS last_active LIMIT 1
383
385
  ```
384
386
 
385
- Which exchange an address cashed out to: its receivers that carry the exchange flag, one hop. Ask this first; it answers in under a second.
387
+ Which exchange an address cashed out to: its receivers that carry the exchange flag, one hop. Ask this first; it answers in under a second. A receiver whose `cex_role` is `deposit` is a deposit address of the exchange its `labels` name: check it with `aml_exchange_deposit_check` for the hot wallet it was swept into.
386
388
 
387
389
  ```cypher
388
390
  USE topology
@@ -396,7 +398,7 @@ Route between two addresses, one path. Only `MATCH SHORTEST 1` and `MATCH ANY SH
396
398
 
397
399
  ```cypher
398
400
  USE topology
399
- MATCH p = SHORTEST 1 (a:Address {address: "0x31a817802ee183eb8b13167ffe24bd28dcc6f30c"} 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: "0x7e3702e9dfaa847f9829a258f1e26fa431160662"})
401
+ MATCH p = SHORTEST 1 (a:Address {address: "0x31a817802ee183eb8b13167ffe24bd28dcc6f30c"} 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: "0x7e3702e9dfaa847f9829a258f1e26fa431160662"})
400
402
  RETURN [n IN nodes(p) | n.address] AS route
401
403
  LIMIT 5
402
404
  ```
@@ -405,7 +407,7 @@ Several routes, up to 3 hops, in no set order. Add no `ORDER BY`: it can end in
405
407
 
406
408
  ```cypher
407
409
  USE topology
408
- MATCH p = (a:Address {address: "0x31a817802ee183eb8b13167ffe24bd28dcc6f30c"} 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,2} ()-[:FLOWED_TO|SWAPPED]-(b:Address {address: "0x7e3702e9dfaa847f9829a258f1e26fa431160662"})
410
+ MATCH p = (a:Address {address: "0x31a817802ee183eb8b13167ffe24bd28dcc6f30c"} 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,2} ()-[:FLOWED_TO|SWAPPED]-(b:Address {address: "0x7e3702e9dfaa847f9829a258f1e26fa431160662"})
409
411
  RETURN [n IN nodes(p) | n.address] AS route, length(p) AS hops LIMIT 5
410
412
  ```
411
413
 
@@ -413,7 +415,7 @@ Where the money went, up to 3 hops out:
413
415
 
414
416
  ```cypher
415
417
  USE topology
416
- MATCH p = (a:Address {address: "0x04911a118f11c75667e4d0dfb8e640af5a353550"} 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,2} ()-[:FLOWED_TO|SWAPPED]->(b:Address)
418
+ MATCH p = (a:Address {address: "0x04911a118f11c75667e4d0dfb8e640af5a353550"} 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,2} ()-[:FLOWED_TO|SWAPPED]->(b:Address)
417
419
  RETURN b.address AS to_address, length(p) AS hops LIMIT 25
418
420
  ```
419
421
 
@@ -421,7 +423,7 @@ Where the money came from, up to 3 hops in:
421
423
 
422
424
  ```cypher
423
425
  USE topology
424
- MATCH p = (a:Address {address: "0x04911a118f11c75667e4d0dfb8e640af5a353550"} 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,2} ()<-[:FLOWED_TO|SWAPPED]-(b:Address)
426
+ MATCH p = (a:Address {address: "0x04911a118f11c75667e4d0dfb8e640af5a353550"} 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,2} ()<-[:FLOWED_TO|SWAPPED]-(b:Address)
425
427
  RETURN b.address AS from_address, length(p) AS hops LIMIT 25
426
428
  ```
427
429
 
@@ -516,7 +518,7 @@ Where one token went, up to 3 hops out. Every hop carries the same `asset`, so t
516
518
 
517
519
  ```cypher
518
520
  USE topology
519
- 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)
521
+ 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)
520
522
  RETURN b.address AS to_address, length(p) AS hops LIMIT 25
521
523
  ```
522
524
 
@@ -558,7 +560,35 @@ trader who used it. Every trace follows this rule:
558
560
  4. Across a swap, follow `SWAPPED` from payer to recipient, between two
559
561
  different addresses. Do not walk through the pool.
560
562
 
561
- So a walk never starts at a pool and never passes through one. It may end at one. Guard the start with `WHERE NOT a:Pool` and each address in the middle with `WHERE NOT via:Pool`, and follow `FLOWED_TO|SWAPPED`, as above. Exchange hot wallets end a trace: pass through an address only when `is_exchange IS NULL`.
563
+ So a walk never starts at a pool and never passes through one. It may end at one. Guard the start with `WHERE NOT a:Pool` and each address in the middle with `WHERE NOT via:Pool`, and follow `FLOWED_TO|SWAPPED`, as above.
564
+
565
+ ### Exchange stop
566
+
567
+ An `:Exchange` address ends a trace: a hot wallet, a cold wallet, a
568
+ withdrawal wallet or a deposit of a centralized exchange. Money that reaches
569
+ one entered the exchange; past it are the exchange's other customers, and a
570
+ route through it connects nothing. So every walk carries `NOT via:Exchange`
571
+ on each address in its middle, as the walks below do, and may end at one.
572
+ `is_exchange IS NULL` is the same test on a fixed-hop walk.
573
+
574
+ A deposit is an `:Exchange` address too: `is_exchange` is set on it, and its
575
+ `labels` carry `Exchange` and the exchange id (`gate`, `bitget`), as a hot
576
+ wallet's do. "Where did the money from <a deposit> go" is answered by its
577
+ `SWEPT` link alone, read with `aml_exchange_deposit_check`, never by a walk:
578
+ "the money entered <exchange> at deposit D and was swept n times into hot
579
+ wallet H". Use the word swept: it is the move the exchange made.
580
+
581
+ When a walk ends at an `:Exchange` address, name the exchange from its
582
+ `labels`, then:
583
+
584
+ - a deposit (`cex_role` `deposit`): read its `SWEPT` link, with
585
+ `aml_exchange_deposit_check`, and say "the money entered <exchange> at
586
+ deposit D, swept n times into hot wallet H". The exchange can name the
587
+ customer behind D.
588
+ - a hot wallet: say the money entered the exchange there, with no deposit
589
+ to name.
590
+
591
+ Never send the walk again from the exchange address.
562
592
 
563
593
  ### System guard
564
594
 
@@ -608,7 +638,7 @@ USE topology
608
638
  MATCH ()-[r:FLOWED_TO]->() RETURN keys(r) AS keys LIMIT 5
609
639
  ```
610
640
 
611
- Name another link type to read its keys: `SWAPPED`, `LINKED`, `OPERATED_BY`, `BRIDGED`, `ADDED_LIQUIDITY` or `REMOVED_LIQUIDITY`. The keys of an address and of a link include `network`: it is the query's `network`, computed on every node and link. `synced_through_height` and `pair_key` are bookkeeping: never filter or sort on them.
641
+ Name another link type to read its keys: `SWAPPED`, `LINKED`, `OPERATED_BY`, `BRIDGED`, `ADDED_LIQUIDITY`, `REMOVED_LIQUIDITY` or `SWEPT`. The keys of an address and of a link include `network`: it is the query's `network`, computed on every node and link. `synced_through_height` and `pair_key` are bookkeeping: never filter or sort on them.
612
642
 
613
643
  The server serves five read-only catalog calls: `CALL db.labels()`, `CALL db.relationshipTypes()`, `CALL db.propertyKeys()`, `CALL db.schema.visualization()` and `SHOW INDEXES`. `meta_schema` sends four of them for you through one session and keeps the answer, so do not send them yourself.
614
644
 
@@ -85,7 +85,7 @@ hand. When the tool and the memo differ, follow the tool: it reads the
85
85
  newest file.
86
86
 
87
87
  <!-- dex-registry:start -->
88
- Memo of the exchange registry, version 6, robinhood, recorded 2026-11-05.
88
+ Memo of the exchange registry, version 8, robinhood, recorded 2026-11-06.
89
89
 
90
90
  | Exchange | Key | Also written | Trail | Factories, or the manager | Router |
91
91
  |---|---|---|---|---|---|
@@ -98,7 +98,7 @@ Memo of the exchange registry, version 6, robinhood, recorded 2026-11-05.
98
98
  | Kittenswap | `kittenswap` | Kittenswap, KITTEN, KittenSwap | gauge | `0x45362763166cfed6174d312fa1449ea1fc37988a` | `0x7064c7bb85979f008212877c4ce41285ddf5374c` |
99
99
  | Morpheus | `morpheus` | Morpheus, Morpheus Farm | gauge | `0xd7cb0e0692f2d55a17ba81c1fe5501d66774fc4a` | none proven yet |
100
100
  | SwapHood | `swaphood` | SwapHood, SwapHood Finance, SWT, swaphood.finance | gauge | `0xe7206ecac3a51afe7e6179182ad4130a26068dd1` | `0x8f8056fec03159ebcc4aee1b8ea5a61d8fe405fc` |
101
- | Uniswap v2 | `uniswap-v2` | Uniswap v2, Uni v2 | plain | `0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f` | none |
101
+ | Uniswap v2 | `uniswap-v2` | Uniswap v2, Uni v2 | plain | `0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f` | `0x89e5db8b5aa49aa85ac63f691524311aeb649eba` |
102
102
  | Uniswap v3 | `uniswap-v3` | Uniswap v3, Uni v3 | plain | `0x1f7d7550b1b028f7571e69a784071f0205fd2efa` | none |
103
103
  | unnamed ETH/USDG swap router (routes into Uniswap v3 and v4) | `eth-usdg-router` | ETH/USDG router, ETH/USDG swap router, USDG swap router | plain | `0x1f7d7550b1b028f7571e69a784071f0205fd2efa` | `0x7a39b98d31f84152bc724bc5ddb41dbcb338f2a5` |
104
104
  | Uniswap v4 | `uniswap-v4` | Uniswap, UNI, Uniswap v4, Uni v4, PoolManager | vault | manager `0x8366a39cc670b4001a1121b8f6a443a643e40951` | the manager |
@@ -190,7 +190,7 @@ pool and the pool pays the buyer:
190
190
  and the next lead.
191
191
  - **The next lead.** End with who to trace next: the buyer's biggest
192
192
  receivers, or the seller's first funders. Both are the newest-links read of
193
- `chain-insights-cypher`, anchored on that one address.
193
+ `chain-insights-cypher`, anchored on that one address. A receiver that is an `:Exchange` address (`is_exchange` set, a deposit or a hot wallet) is no lead to trace: the money entered that exchange. Name the exchange from its `labels`, and for a deposit the hot wallet it was swept into, with `aml_exchange_deposit_check` (skill `chain-insights-aml-exchange`).
194
194
  - A pool's volume and a link's totals are lifetime totals. The money of one
195
195
  day is a facts read of a pair and that day.
196
196
  - Zero pools from a factory is not "the exchange has no pools": say the
@@ -79,6 +79,8 @@ End every answer with who to trace next, in one short paragraph:
79
79
  Never walk out of the router or the pool on `FLOWED_TO`: the router has
80
80
  thousands of receivers, and the buyer is noise there.
81
81
 
82
+ A receiver that is an `:Exchange` address (`is_exchange` set, a deposit or a hot wallet) is no lead to trace: the money entered that exchange. Name the exchange from its `labels`, and for a deposit the hot wallet it was swept into, with `aml_exchange_deposit_check` (skill `chain-insights-aml-exchange`).
83
+
82
84
  ## Queries
83
85
 
84
86
  ### G1. Sellers into the pool
@@ -74,8 +74,8 @@ read: a token launched there, such as Mob, is never the launchpad's name.
74
74
  5. **The first pool** (L3): the launched contract's `ADDED_LIQUIDITY` links
75
75
  into a `:Pool`, oldest first. The first one is the graduation: the curve's
76
76
  money moved into an exchange pool.
77
- 6. When L3 is empty, say the graduation is not in the graph yet. Never guess
78
- a pool from the token's name.
77
+ 6. When L3 is empty, no liquidity link shows a graduation: say that plainly.
78
+ Never guess a pool from the token's name.
79
79
  7. After graduation the token trades on that pool. Load `chain-insights-dex`
80
80
  for the pool's exchange and its trail.
81
81
 
@@ -101,12 +101,9 @@ indexer finds them by their shape, with one rule for every operator:
101
101
  - **No name, no row.** `meta_dex_lookup` with F's address answers
102
102
  `matched: null`. For F that means "no exchange row", not "no data": read
103
103
  the graph below. Never give F a name you have not read.
104
- - **What the graph holds today.** The launches are rows of the rule
105
- `v4-launch-factory-v1` in the warehouse. The graph does not mark F yet:
106
- no `:Launchpad`, no `:Pool`, no rule name in its `labels`. The
107
- `:Launchpad` mark for a factory of two launches or more is coming in the
108
- graph's pools layer. Until a read of F shows it, do not ask by mark for
109
- F: read the shape from its links.
104
+ - **The mark.** A factory of two launches or more carries `:Launchpad` and
105
+ `:Protocol`, with the word `Launchpad` in `labels` and no name. A contract
106
+ of one launch does not.
110
107
 
111
108
  1. **The launches**: L1, anchored on F. Each `DEPLOYED_CONTRACT` link is a
112
109
  contract F created. Count the tokens to say whether F is a launchpad.
@@ -118,8 +115,8 @@ indexer finds them by their shape, with one rule for every operator:
118
115
  pool manager by a 32-byte pool id. It is not a contract of its own: say
119
116
  "a pool of the Uniswap v4 pool manager". Read the id from `pools` on a
120
117
  `SWAPPED` link that sold or bought the token, anchored on the creator.
121
- When no such link shows, say the graph does not serve that pool id yet.
122
- The creator and the launch transaction still answer who launched it.
118
+ When no such link shows, leave the pool out. The creator and the launch
119
+ transaction still answer who launched it.
123
120
  4. **The trades** are ordinary Uniswap v4 swaps on the pool manager. Load
124
121
  `chain-insights-dex-vault` and follow its trail. The pool manager is
125
122
  never the buyer, and no topology hop goes out of it.
@@ -130,6 +127,8 @@ End with who to trace next: the creator's first funders (the newest-links
130
127
  read of `chain-insights-cypher`, arrow flipped, sorted by
131
128
  `first_seen_timestamp`), or the biggest early buyer's onward flows.
132
129
 
130
+ A receiver that is an `:Exchange` address (`is_exchange` set, a deposit or a hot wallet) is no lead to trace: the money entered that exchange. Name the exchange from its `labels`, and for a deposit the hot wallet it was swept into, with `aml_exchange_deposit_check` (skill `chain-insights-aml-exchange`).
131
+
133
132
  ## Queries
134
133
 
135
134
  ### L1. Launches of one launchpad, newest first
@@ -86,6 +86,8 @@ End with who to trace next: the buyer's biggest receivers, the newest-links
86
86
  read of `chain-insights-cypher` anchored on the buyer. When the buyer is the
87
87
  seller itself, trace the seller's onward flows instead.
88
88
 
89
+ A receiver that is an `:Exchange` address (`is_exchange` set, a deposit or a hot wallet) is no lead to trace: the money entered that exchange. Name the exchange from its `labels`, and for a deposit the hot wallet it was swept into, with `aml_exchange_deposit_check` (skill `chain-insights-aml-exchange`).
90
+
89
91
  ## Queries
90
92
 
91
93
  ### V1. One seller's swaps
@@ -69,7 +69,7 @@ agent is created on Uniswap's own v2 factory
69
69
  most of that factory's pairs are Virtuals agents.
70
70
 
71
71
  <!-- dex-registry:start -->
72
- The factories of the exchange registry, version 6, row `virtuals`:
72
+ The factories of the exchange registry, version 8, row `virtuals`:
73
73
 
74
74
  | Factory | Address |
75
75
  |---|---|