oculon 0.0.0-stage → 0.1.1

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 (255) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +344 -2
  3. package/dist/agent.d.ts +47 -0
  4. package/dist/agent.js +104 -0
  5. package/dist/cases.d.ts +68 -0
  6. package/dist/cases.js +158 -0
  7. package/dist/cli/main.d.ts +12 -0
  8. package/dist/cli/main.js +1999 -0
  9. package/dist/cli.d.ts +2 -0
  10. package/dist/cli.js +15 -0
  11. package/dist/core/context.d.ts +19 -0
  12. package/dist/core/context.js +19 -0
  13. package/dist/core/features.d.ts +22 -0
  14. package/dist/core/features.js +28 -0
  15. package/dist/core/graph.d.ts +38 -0
  16. package/dist/core/graph.js +81 -0
  17. package/dist/core/http.d.ts +42 -0
  18. package/dist/core/http.js +266 -0
  19. package/dist/core/keys.d.ts +8 -0
  20. package/dist/core/keys.js +22 -0
  21. package/dist/core/llm.d.ts +93 -0
  22. package/dist/core/llm.js +180 -0
  23. package/dist/core/merkle.d.ts +15 -0
  24. package/dist/core/merkle.js +46 -0
  25. package/dist/core/paths.d.ts +2 -0
  26. package/dist/core/paths.js +6 -0
  27. package/dist/core/png.d.ts +17 -0
  28. package/dist/core/png.js +101 -0
  29. package/dist/core/quota.d.ts +15 -0
  30. package/dist/core/quota.js +90 -0
  31. package/dist/core/stats.d.ts +24 -0
  32. package/dist/core/stats.js +67 -0
  33. package/dist/core/store.d.ts +20 -0
  34. package/dist/core/store.js +213 -0
  35. package/dist/core/text.d.ts +9 -0
  36. package/dist/core/text.js +30 -0
  37. package/dist/core/types.d.ts +38 -0
  38. package/dist/core/types.js +1 -0
  39. package/dist/index.d.ts +346 -0
  40. package/dist/index.js +503 -0
  41. package/dist/live.d.ts +53 -0
  42. package/dist/live.js +236 -0
  43. package/dist/mcp.d.ts +43 -0
  44. package/dist/mcp.js +651 -0
  45. package/dist/modules/airport.d.ts +60 -0
  46. package/dist/modules/airport.js +111 -0
  47. package/dist/modules/audit.d.ts +73 -0
  48. package/dist/modules/audit.js +211 -0
  49. package/dist/modules/bgp.d.ts +147 -0
  50. package/dist/modules/bgp.js +206 -0
  51. package/dist/modules/blackout.d.ts +41 -0
  52. package/dist/modules/blackout.js +98 -0
  53. package/dist/modules/brief.d.ts +26 -0
  54. package/dist/modules/brief.js +99 -0
  55. package/dist/modules/calendar.d.ts +27 -0
  56. package/dist/modules/calendar.js +145 -0
  57. package/dist/modules/calibrate.d.ts +46 -0
  58. package/dist/modules/calibrate.js +92 -0
  59. package/dist/modules/cloud.d.ts +32 -0
  60. package/dist/modules/cloud.js +94 -0
  61. package/dist/modules/condor.d.ts +66 -0
  62. package/dist/modules/condor.js +214 -0
  63. package/dist/modules/connect.d.ts +47 -0
  64. package/dist/modules/connect.js +114 -0
  65. package/dist/modules/contradictions.d.ts +27 -0
  66. package/dist/modules/contradictions.js +76 -0
  67. package/dist/modules/country.d.ts +82 -0
  68. package/dist/modules/country.js +136 -0
  69. package/dist/modules/cricket.d.ts +34 -0
  70. package/dist/modules/cricket.js +166 -0
  71. package/dist/modules/darkships.d.ts +219 -0
  72. package/dist/modules/darkships.js +400 -0
  73. package/dist/modules/defi.d.ts +237 -0
  74. package/dist/modules/defi.js +512 -0
  75. package/dist/modules/emailsec.d.ts +47 -0
  76. package/dist/modules/emailsec.js +146 -0
  77. package/dist/modules/exposure.d.ts +43 -0
  78. package/dist/modules/exposure.js +89 -0
  79. package/dist/modules/factcheck.d.ts +39 -0
  80. package/dist/modules/factcheck.js +127 -0
  81. package/dist/modules/falcon.d.ts +58 -0
  82. package/dist/modules/falcon.js +219 -0
  83. package/dist/modules/feedback.d.ts +24 -0
  84. package/dist/modules/feedback.js +37 -0
  85. package/dist/modules/fence.d.ts +52 -0
  86. package/dist/modules/fence.js +128 -0
  87. package/dist/modules/ferret.d.ts +47 -0
  88. package/dist/modules/ferret.js +220 -0
  89. package/dist/modules/filings.d.ts +86 -0
  90. package/dist/modules/filings.js +166 -0
  91. package/dist/modules/fires.d.ts +56 -0
  92. package/dist/modules/fires.js +150 -0
  93. package/dist/modules/hazards.d.ts +37 -0
  94. package/dist/modules/hazards.js +83 -0
  95. package/dist/modules/health.d.ts +24 -0
  96. package/dist/modules/health.js +82 -0
  97. package/dist/modules/heron.d.ts +68 -0
  98. package/dist/modules/heron.js +184 -0
  99. package/dist/modules/hound.d.ts +100 -0
  100. package/dist/modules/hound.js +301 -0
  101. package/dist/modules/impact.d.ts +39 -0
  102. package/dist/modules/impact.js +63 -0
  103. package/dist/modules/launches.d.ts +24 -0
  104. package/dist/modules/launches.js +61 -0
  105. package/dist/modules/listen.d.ts +48 -0
  106. package/dist/modules/listen.js +125 -0
  107. package/dist/modules/lynx.d.ts +43 -0
  108. package/dist/modules/lynx.js +127 -0
  109. package/dist/modules/magpie.d.ts +70 -0
  110. package/dist/modules/magpie.js +174 -0
  111. package/dist/modules/meerkat.d.ts +42 -0
  112. package/dist/modules/meerkat.js +293 -0
  113. package/dist/modules/monitor.d.ts +27 -0
  114. package/dist/modules/monitor.js +105 -0
  115. package/dist/modules/narratives.d.ts +33 -0
  116. package/dist/modules/narratives.js +136 -0
  117. package/dist/modules/owl.d.ts +71 -0
  118. package/dist/modules/owl.js +290 -0
  119. package/dist/modules/papers.d.ts +46 -0
  120. package/dist/modules/papers.js +135 -0
  121. package/dist/modules/personal.d.ts +54 -0
  122. package/dist/modules/personal.js +153 -0
  123. package/dist/modules/pulse.d.ts +19 -0
  124. package/dist/modules/pulse.js +59 -0
  125. package/dist/modules/raven.d.ts +80 -0
  126. package/dist/modules/raven.js +147 -0
  127. package/dist/modules/recall.d.ts +44 -0
  128. package/dist/modules/recall.js +123 -0
  129. package/dist/modules/regs.d.ts +88 -0
  130. package/dist/modules/regs.js +142 -0
  131. package/dist/modules/rewind.d.ts +22 -0
  132. package/dist/modules/rewind.js +68 -0
  133. package/dist/modules/sanctions.d.ts +62 -0
  134. package/dist/modules/sanctions.js +173 -0
  135. package/dist/modules/scam.d.ts +43 -0
  136. package/dist/modules/scam.js +149 -0
  137. package/dist/modules/scoop.d.ts +31 -0
  138. package/dist/modules/scoop.js +74 -0
  139. package/dist/modules/ships.d.ts +33 -0
  140. package/dist/modules/ships.js +113 -0
  141. package/dist/modules/sky.d.ts +47 -0
  142. package/dist/modules/sky.js +183 -0
  143. package/dist/modules/squawk.d.ts +46 -0
  144. package/dist/modules/squawk.js +106 -0
  145. package/dist/modules/tortoise.d.ts +59 -0
  146. package/dist/modules/tortoise.js +133 -0
  147. package/dist/modules/travel.d.ts +94 -0
  148. package/dist/modules/travel.js +241 -0
  149. package/dist/modules/urlcheck.d.ts +63 -0
  150. package/dist/modules/urlcheck.js +223 -0
  151. package/dist/modules/vulns.d.ts +142 -0
  152. package/dist/modules/vulns.js +276 -0
  153. package/dist/plugins.d.ts +41 -0
  154. package/dist/plugins.js +70 -0
  155. package/dist/report.d.ts +12 -0
  156. package/dist/report.js +90 -0
  157. package/dist/scheduler.d.ts +22 -0
  158. package/dist/scheduler.js +139 -0
  159. package/dist/sources/aircraft.d.ts +76 -0
  160. package/dist/sources/aircraft.js +107 -0
  161. package/dist/sources/airports.d.ts +28 -0
  162. package/dist/sources/airports.js +100 -0
  163. package/dist/sources/ais.d.ts +32 -0
  164. package/dist/sources/ais.js +111 -0
  165. package/dist/sources/apify.d.ts +28 -0
  166. package/dist/sources/apify.js +80 -0
  167. package/dist/sources/arxiv.d.ts +13 -0
  168. package/dist/sources/arxiv.js +27 -0
  169. package/dist/sources/certs.d.ts +12 -0
  170. package/dist/sources/certs.js +23 -0
  171. package/dist/sources/corp.d.ts +46 -0
  172. package/dist/sources/corp.js +60 -0
  173. package/dist/sources/earth.d.ts +39 -0
  174. package/dist/sources/earth.js +76 -0
  175. package/dist/sources/fda.d.ts +77 -0
  176. package/dist/sources/fda.js +121 -0
  177. package/dist/sources/finance.d.ts +181 -0
  178. package/dist/sources/finance.js +270 -0
  179. package/dist/sources/gdelt.d.ts +19 -0
  180. package/dist/sources/gdelt.js +33 -0
  181. package/dist/sources/github.d.ts +17 -0
  182. package/dist/sources/github.js +33 -0
  183. package/dist/sources/hackernews.d.ts +20 -0
  184. package/dist/sources/hackernews.js +37 -0
  185. package/dist/sources/labels.d.ts +21 -0
  186. package/dist/sources/labels.js +87 -0
  187. package/dist/sources/launch.d.ts +16 -0
  188. package/dist/sources/launch.js +41 -0
  189. package/dist/sources/ofac.d.ts +29 -0
  190. package/dist/sources/ofac.js +86 -0
  191. package/dist/sources/onchain.d.ts +77 -0
  192. package/dist/sources/onchain.js +189 -0
  193. package/dist/sources/opentimestamps.d.ts +49 -0
  194. package/dist/sources/opentimestamps.js +145 -0
  195. package/dist/sources/polymarket.d.ts +36 -0
  196. package/dist/sources/polymarket.js +70 -0
  197. package/dist/sources/predict.d.ts +18 -0
  198. package/dist/sources/predict.js +59 -0
  199. package/dist/sources/press.d.ts +30 -0
  200. package/dist/sources/press.js +111 -0
  201. package/dist/sources/resend.d.ts +14 -0
  202. package/dist/sources/resend.js +29 -0
  203. package/dist/sources/robinhood.d.ts +109 -0
  204. package/dist/sources/robinhood.js +129 -0
  205. package/dist/sources/sec.d.ts +67 -0
  206. package/dist/sources/sec.js +129 -0
  207. package/dist/sources/sentinel.d.ts +13 -0
  208. package/dist/sources/sentinel.js +63 -0
  209. package/dist/sources/signatures.d.ts +14 -0
  210. package/dist/sources/signatures.js +103 -0
  211. package/dist/sources/social.d.ts +22 -0
  212. package/dist/sources/social.js +56 -0
  213. package/dist/sources/space.d.ts +160 -0
  214. package/dist/sources/space.js +230 -0
  215. package/dist/sources/usgs.d.ts +17 -0
  216. package/dist/sources/usgs.js +24 -0
  217. package/dist/sources/wayback.d.ts +10 -0
  218. package/dist/sources/wayback.js +28 -0
  219. package/dist/sources/websec.d.ts +19 -0
  220. package/dist/sources/websec.js +40 -0
  221. package/dist/sources/wikidata.d.ts +11 -0
  222. package/dist/sources/wikidata.js +30 -0
  223. package/dist/sources/wikimedia.d.ts +28 -0
  224. package/dist/sources/wikimedia.js +52 -0
  225. package/dist/telegram.d.ts +104 -0
  226. package/dist/telegram.js +927 -0
  227. package/dist/web/assets/favicon-32.png +0 -0
  228. package/dist/web/assets/fx.js +178 -0
  229. package/dist/web/assets/icon-192.png +0 -0
  230. package/dist/web/assets/icon-512.png +0 -0
  231. package/dist/web/assets/icon-maskable-512.png +0 -0
  232. package/dist/web/assets/night-americas.jpg +0 -0
  233. package/dist/web/assets/night-emea.jpg +0 -0
  234. package/dist/web/assets/og.png +0 -0
  235. package/dist/web/assets/redsea-bm.jpg +0 -0
  236. package/dist/web/docs.html +281 -0
  237. package/dist/web/index.html +1828 -0
  238. package/dist/web/insights.d.ts +100 -0
  239. package/dist/web/insights.js +134 -0
  240. package/dist/web/landing.html +1144 -0
  241. package/dist/web/legal.html +176 -0
  242. package/dist/web/manifest.webmanifest +20 -0
  243. package/dist/web/mcp.html +104 -0
  244. package/dist/web/mcphttp.d.ts +10 -0
  245. package/dist/web/mcphttp.js +67 -0
  246. package/dist/web/openapi.d.ts +1 -0
  247. package/dist/web/openapi.js +51 -0
  248. package/dist/web/public.d.ts +45 -0
  249. package/dist/web/public.js +136 -0
  250. package/dist/web/server.d.ts +69 -0
  251. package/dist/web/server.js +764 -0
  252. package/dist/web/share.d.ts +35 -0
  253. package/dist/web/share.js +132 -0
  254. package/dist/web/sw.js +28 -0
  255. package/package.json +60 -4
@@ -0,0 +1,145 @@
1
+ /**
2
+ * OpenTimestamps: free, keyless timestamping anchored in Bitcoin.
3
+ * We submit a 32-byte digest to public calendars, keep their receipts, and later check
4
+ * (a) whether a calendar has upgraded the receipt to a Bitcoin block attestation, and
5
+ * (b) that the attested commitment equals that block's merkle root (fetched from Blockstream).
6
+ */
7
+ import { createHash } from 'node:crypto';
8
+ export const CALENDARS = ['https://a.pool.opentimestamps.org', 'https://b.pool.opentimestamps.org'];
9
+ const PENDING_TAG = '83dfe30d2ef90c8e';
10
+ const BITCOIN_TAG = '0588960d73d71901';
11
+ class Reader {
12
+ buf;
13
+ pos = 0;
14
+ constructor(buf) {
15
+ this.buf = buf;
16
+ }
17
+ byte() {
18
+ if (this.pos >= this.buf.length)
19
+ throw new Error('ots: unexpected end');
20
+ return this.buf[this.pos++];
21
+ }
22
+ bytes(n) {
23
+ if (this.pos + n > this.buf.length)
24
+ throw new Error('ots: unexpected end');
25
+ const b = this.buf.subarray(this.pos, this.pos + n);
26
+ this.pos += n;
27
+ return b;
28
+ }
29
+ varuint() {
30
+ let v = 0;
31
+ let shift = 0;
32
+ for (;;) {
33
+ const b = this.byte();
34
+ v += (b & 0x7f) * 2 ** shift;
35
+ if (!(b & 0x80))
36
+ return v;
37
+ shift += 7;
38
+ }
39
+ }
40
+ varbytes() {
41
+ return this.bytes(this.varuint());
42
+ }
43
+ }
44
+ const hash = (alg, data) => createHash(alg).update(data).digest();
45
+ function applyOp(op, msg, r) {
46
+ switch (op) {
47
+ case 0xf0:
48
+ return Buffer.concat([msg, r.varbytes()]);
49
+ case 0xf1:
50
+ return Buffer.concat([r.varbytes(), msg]);
51
+ case 0x08:
52
+ return hash('sha256', msg);
53
+ case 0x02:
54
+ return hash('sha1', msg);
55
+ case 0x03:
56
+ return hash('ripemd160', msg);
57
+ case 0xf2:
58
+ return Buffer.from(msg).reverse();
59
+ case 0xf3:
60
+ return Buffer.from(msg.toString('hex'), 'utf8');
61
+ default:
62
+ throw new Error(`ots: unsupported op 0x${op.toString(16)}`);
63
+ }
64
+ }
65
+ /** Walk a serialized timestamp (as returned by a calendar) starting from `digest`, collecting attestations. */
66
+ export function parseTimestamp(bytes, digest) {
67
+ const r = new Reader(bytes);
68
+ const out = [];
69
+ const item = (tag, msg) => {
70
+ if (tag === 0x00) {
71
+ const t = r.bytes(8).toString('hex');
72
+ const payload = new Reader(r.varbytes());
73
+ const commitment = msg.toString('hex');
74
+ if (t === PENDING_TAG)
75
+ out.push({ kind: 'pending', uri: payload.varbytes().toString('utf8'), commitment });
76
+ else if (t === BITCOIN_TAG)
77
+ out.push({ kind: 'bitcoin', height: payload.varuint(), commitment });
78
+ else
79
+ out.push({ kind: 'unknown', tag: t, commitment });
80
+ }
81
+ else {
82
+ walk(applyOp(tag, msg, r));
83
+ }
84
+ };
85
+ const walk = (msg) => {
86
+ for (;;) {
87
+ const tag = r.byte();
88
+ if (tag === 0xff) {
89
+ item(r.byte(), msg);
90
+ continue;
91
+ }
92
+ item(tag, msg);
93
+ return;
94
+ }
95
+ };
96
+ walk(digest);
97
+ return out;
98
+ }
99
+ const OTS_MAGIC = Buffer.from('004f70656e54696d657374616d7073000050726f6f6600bf89e2e884e89294', 'hex');
100
+ /**
101
+ * A standard detached `.ots` file for a SHA-256 digest, built from the calendar receipts.
102
+ * Any OpenTimestamps tool can upgrade and verify it, e.g. `ots verify -d <digest> proof.ots`.
103
+ */
104
+ export function otsFile(digestHex, receipts) {
105
+ const parts = [OTS_MAGIC, Buffer.from([0x01, 0x08]), Buffer.from(digestHex, 'hex')];
106
+ receipts.forEach((rc, i) => {
107
+ if (i < receipts.length - 1)
108
+ parts.push(Buffer.from([0xff]));
109
+ parts.push(Buffer.from(rc.ots, 'hex'));
110
+ });
111
+ return Buffer.concat(parts);
112
+ }
113
+ export async function submit(ctx, digestHex) {
114
+ const body = Buffer.from(digestHex, 'hex');
115
+ const results = await Promise.all(CALENDARS.map((c) => ctx.http.postBytes(`${c}/digest`, body, { source: 'opentimestamps', headers: { accept: 'application/vnd.opentimestamps.v1' } })));
116
+ const receipts = results.flatMap((r, i) => (r.data ? [{ calendar: CALENDARS[i], ots: r.data.toString('hex') }] : []));
117
+ return { receipts, provenance: results.map((r) => r.prov) };
118
+ }
119
+ /** Ask the calendar for the upgraded timestamp of a pending commitment. 404 means still pending. */
120
+ export async function upgrade(ctx, att) {
121
+ const r = await ctx.http.getBytes(`${att.uri.replace(/\/$/, '')}/timestamp/${att.commitment}`, {
122
+ source: 'opentimestamps',
123
+ headers: { accept: 'application/vnd.opentimestamps.v1' },
124
+ });
125
+ if (!r.data)
126
+ return { attestations: [], prov: r.prov };
127
+ try {
128
+ return { attestations: parseTimestamp(r.data, Buffer.from(att.commitment, 'hex')), prov: r.prov };
129
+ }
130
+ catch (e) {
131
+ return { attestations: [], prov: { ...r.prov, status: 'ERROR', note: e.message } };
132
+ }
133
+ }
134
+ export async function bitcoinBlock(ctx, height) {
135
+ const h = await ctx.http.get(`https://blockstream.info/api/block-height/${height}`, { source: 'blockstream', as: 'text', ttlSec: 30 * 86_400 });
136
+ if (!h.data)
137
+ return { data: null, prov: h.prov };
138
+ const b = await ctx.http.get(`https://blockstream.info/api/block/${h.data.trim()}`, {
139
+ source: 'blockstream',
140
+ ttlSec: 30 * 86_400,
141
+ });
142
+ return { data: b.data ? { height: b.data.height, hash: b.data.id, merkleRoot: b.data.merkle_root, time: b.data.timestamp } : null, prov: b.prov };
143
+ }
144
+ /** OTS commitments are in internal byte order; explorers display the merkle root reversed. */
145
+ export const matchesMerkleRoot = (commitmentHex, displayRootHex) => Buffer.from(commitmentHex, 'hex').reverse().toString('hex') === displayRootHex.toLowerCase();
@@ -0,0 +1,36 @@
1
+ import type { Ctx } from '../core/context.js';
2
+ import type { Sourced } from '../core/types.js';
3
+ export interface Market {
4
+ id: string;
5
+ slug: string | null;
6
+ question: string;
7
+ closed: boolean;
8
+ url: string;
9
+ outcomes: string[];
10
+ prices: number[];
11
+ volume24h: number;
12
+ /** Change in the first outcome's price over 24h, in probability points (0.1 = +10pp). */
13
+ change1d: number | null;
14
+ endDate: string | null;
15
+ }
16
+ interface GammaMarket {
17
+ id?: string | number;
18
+ question?: string;
19
+ slug?: string;
20
+ outcomes?: string;
21
+ outcomePrices?: string;
22
+ volume24hr?: number | string;
23
+ oneDayPriceChange?: number | string;
24
+ endDate?: string;
25
+ closed?: boolean;
26
+ }
27
+ export declare function toMarket(m: GammaMarket): Market | null;
28
+ /** Open markets whose event matches a free-text query. */
29
+ export declare function searchMarkets(ctx: Ctx, query: string, limit?: number): Promise<Sourced<Market[]>>;
30
+ /** One market by slug, open or closed. */
31
+ export declare function marketBySlug(ctx: Ctx, slug: string, ttlSec?: number): Promise<Sourced<Market>>;
32
+ /** 1 or 0 for the first outcome once the market is closed with a settled price; null while unresolved. */
33
+ export declare function resolution(m: Market): 0 | 1 | null;
34
+ /** Active markets ranked by 24h volume. */
35
+ export declare function topMarkets(ctx: Ctx, limit?: number): Promise<Sourced<Market[]>>;
36
+ export {};
@@ -0,0 +1,70 @@
1
+ function parseList(s) {
2
+ if (!s)
3
+ return [];
4
+ try {
5
+ const v = JSON.parse(s);
6
+ return Array.isArray(v) ? v.map(String) : [];
7
+ }
8
+ catch {
9
+ return [];
10
+ }
11
+ }
12
+ const num = (v) => {
13
+ const n = typeof v === 'string' ? Number(v) : typeof v === 'number' ? v : NaN;
14
+ return Number.isFinite(n) ? n : null;
15
+ };
16
+ export function toMarket(m) {
17
+ if (!m.question)
18
+ return null;
19
+ return {
20
+ id: String(m.id ?? m.slug ?? m.question),
21
+ slug: m.slug ?? null,
22
+ question: m.question,
23
+ closed: m.closed === true,
24
+ url: m.slug ? `https://polymarket.com/market/${m.slug}` : 'https://polymarket.com',
25
+ outcomes: parseList(m.outcomes),
26
+ prices: parseList(m.outcomePrices).map(Number),
27
+ volume24h: num(m.volume24hr) ?? 0,
28
+ change1d: num(m.oneDayPriceChange),
29
+ endDate: m.endDate ?? null,
30
+ };
31
+ }
32
+ /** Open markets whose event matches a free-text query. */
33
+ export async function searchMarkets(ctx, query, limit = 10) {
34
+ const url = `https://gamma-api.polymarket.com/public-search?q=${encodeURIComponent(query)}&limit_per_type=${limit}&events_status=active`;
35
+ const r = await ctx.http.get(url, {
36
+ source: 'polymarket',
37
+ ttlSec: 600,
38
+ });
39
+ const data = r.data?.events
40
+ ?.filter((e) => !e.closed)
41
+ .flatMap((e) => e.markets ?? [])
42
+ .filter((m) => m.active !== false && m.closed !== true)
43
+ .map(toMarket)
44
+ .filter((m) => m !== null)
45
+ .sort((a, b) => b.volume24h - a.volume24h) ?? null;
46
+ return { data, prov: r.prov };
47
+ }
48
+ /** One market by slug, open or closed. */
49
+ export async function marketBySlug(ctx, slug, ttlSec = 300) {
50
+ const r = await ctx.http.get(`https://gamma-api.polymarket.com/markets?slug=${encodeURIComponent(slug)}`, { source: 'polymarket', ttlSec });
51
+ const m = r.data?.[0];
52
+ return { data: m ? toMarket(m) : null, prov: r.data && !m ? { ...r.prov, status: 'UNAVAILABLE', note: 'no market with that slug' } : r.prov };
53
+ }
54
+ /** 1 or 0 for the first outcome once the market is closed with a settled price; null while unresolved. */
55
+ export function resolution(m) {
56
+ if (!m.closed || m.prices.length < 2)
57
+ return null;
58
+ if (m.prices[0] === 1 && m.prices[1] === 0)
59
+ return 1;
60
+ if (m.prices[0] === 0 && m.prices[1] === 1)
61
+ return 0;
62
+ return null;
63
+ }
64
+ /** Active markets ranked by 24h volume. */
65
+ export async function topMarkets(ctx, limit = 100) {
66
+ const url = `https://gamma-api.polymarket.com/markets?active=true&closed=false&order=volume24hr&ascending=false&limit=${limit}`;
67
+ const r = await ctx.http.get(url, { source: 'polymarket', ttlSec: 600 });
68
+ const data = r.data?.map(toMarket).filter((m) => m !== null) ?? null;
69
+ return { data, prov: r.prov };
70
+ }
@@ -0,0 +1,18 @@
1
+ /** Other prediction markets: Kalshi (public market data) and Manifold (play-money, public API). Both keyless. */
2
+ import { type Ctx } from '../core/context.js';
3
+ import type { Provenance, Sourced } from '../core/types.js';
4
+ export interface OtherMarket {
5
+ venue: 'kalshi' | 'manifold';
6
+ question: string;
7
+ probability: number;
8
+ volume: number | null;
9
+ url: string;
10
+ closes: string | null;
11
+ }
12
+ /** Open Kalshi markets with a usable price, excluding multi-leg sports parlays. Up to `pages` x 200 events. */
13
+ export declare function kalshiMarkets(ctx: Ctx, pages?: number): Promise<{
14
+ data: OtherMarket[] | null;
15
+ provs: Provenance[];
16
+ }>;
17
+ /** Binary Manifold markets matching a search term. */
18
+ export declare function manifoldSearch(ctx: Ctx, term: string, limit?: number): Promise<Sourced<OtherMarket[]>>;
@@ -0,0 +1,59 @@
1
+ /** Other prediction markets: Kalshi (public market data) and Manifold (play-money, public API). Both keyless. */
2
+ import { enc } from '../core/context.js';
3
+ const num = (v) => {
4
+ const n = Number(v);
5
+ return Number.isFinite(n) ? n : null;
6
+ };
7
+ /** Open Kalshi markets with a usable price, excluding multi-leg sports parlays. Up to `pages` x 200 events. */
8
+ export async function kalshiMarkets(ctx, pages = 10) {
9
+ const out = [];
10
+ const provs = [];
11
+ let cursor = '';
12
+ for (let i = 0; i < pages; i++) {
13
+ const r = await ctx.http.get(`https://api.elections.kalshi.com/trade-api/v2/events?status=open&with_nested_markets=true&limit=200${cursor ? `&cursor=${enc(cursor)}` : ''}`, {
14
+ source: 'kalshi',
15
+ ttlSec: 1800,
16
+ timeoutMs: 40_000,
17
+ // Pages are megabytes of fields we never read; cache only these.
18
+ keep: (d) => ({
19
+ cursor: d.cursor,
20
+ events: (d.events ?? []).map((e) => ({
21
+ event_ticker: e.event_ticker,
22
+ title: e.title,
23
+ markets: e.event_ticker.startsWith('KXMVE') ? [] : (e.markets ?? []).map((m) => ({ title: m.title, yes_sub_title: m.yes_sub_title, last_price_dollars: m.last_price_dollars, yes_bid_dollars: m.yes_bid_dollars, yes_ask_dollars: m.yes_ask_dollars, volume_fp: m.volume_fp, close_time: m.close_time })),
24
+ })),
25
+ }),
26
+ });
27
+ provs.push(r.prov);
28
+ if (!r.data)
29
+ return { data: i === 0 ? null : out, provs };
30
+ for (const e of r.data.events ?? []) {
31
+ if (e.event_ticker.startsWith('KXMVE'))
32
+ continue;
33
+ for (const m of e.markets ?? []) {
34
+ const last = num(m.last_price_dollars);
35
+ const bid = num(m.yes_bid_dollars);
36
+ const ask = num(m.yes_ask_dollars);
37
+ const p = last && last > 0 ? last : bid !== null && ask !== null && ask > 0 ? (bid + ask) / 2 : null;
38
+ if (p === null || p <= 0 || p >= 1)
39
+ continue;
40
+ const sub = m.yes_sub_title && !e.title.includes(m.yes_sub_title) ? ` — ${m.yes_sub_title}` : '';
41
+ out.push({ venue: 'kalshi', question: `${m.title ?? e.title}${sub}`, probability: p, volume: num(m.volume_fp), url: `https://kalshi.com/markets/${e.event_ticker.toLowerCase()}`, closes: m.close_time ?? null });
42
+ }
43
+ }
44
+ cursor = r.data.cursor ?? '';
45
+ if (!cursor)
46
+ break;
47
+ }
48
+ return { data: out, provs };
49
+ }
50
+ /** Binary Manifold markets matching a search term. */
51
+ export async function manifoldSearch(ctx, term, limit = 8) {
52
+ const r = await ctx.http.get(`https://api.manifold.markets/v0/search-markets?term=${enc(term)}&filter=open&contractType=BINARY&limit=${limit}`, { source: 'manifold', ttlSec: 3600 });
53
+ return {
54
+ data: r.data
55
+ ?.filter((m) => m.outcomeType === 'BINARY' && typeof m.probability === 'number')
56
+ .map((m) => ({ venue: 'manifold', question: m.question, probability: m.probability, volume: m.volume ?? null, url: m.url, closes: m.closeTime ? new Date(m.closeTime).toISOString() : null })) ?? null,
57
+ prov: r.prov,
58
+ };
59
+ }
@@ -0,0 +1,30 @@
1
+ /** News and web search: GNews, The Guardian, New York Times, Tavily, Exa, plus Jina/Firecrawl page reading. */
2
+ import { type Ctx } from '../core/context.js';
3
+ import type { Sourced } from '../core/types.js';
4
+ import type { NewsItem } from './finance.js';
5
+ /** Search options for finding the FIRST coverage of something: oldest first, from a fixed start date. */
6
+ export interface EarliestOpts {
7
+ fromIso: string;
8
+ }
9
+ export declare function gnews(ctx: Ctx, q: string, max?: number, earliest?: EarliestOpts): Promise<Sourced<NewsItem[]>>;
10
+ export declare function guardian(ctx: Ctx, q: string, days?: number, max?: number, earliest?: EarliestOpts): Promise<Sourced<NewsItem[]>>;
11
+ /** Guardian news stories published on one day (YYYY-MM-DD), in the main news sections. */
12
+ export declare function guardianDay(ctx: Ctx, date: string, max?: number): Promise<Sourced<NewsItem[]>>;
13
+ /** Number of Guardian articles matching `q` between two dates (YYYY-MM-DD, inclusive). */
14
+ export declare function guardianCount(ctx: Ctx, q: string, from: string, to: string): Promise<Sourced<number>>;
15
+ export declare function nytSearch(ctx: Ctx, q: string, days?: number, earliest?: EarliestOpts): Promise<Sourced<NewsItem[]>>;
16
+ export declare function nytTopStories(ctx: Ctx): Promise<Sourced<NewsItem[]>>;
17
+ export interface WebResult {
18
+ title: string;
19
+ url: string;
20
+ snippet: string;
21
+ date: string | null;
22
+ }
23
+ /** Web search: Tavily first, Exa as fallback. */
24
+ export declare function webSearch(ctx: Ctx, q: string, max?: number, news?: boolean): Promise<Sourced<WebResult[]>>;
25
+ /** Readable text of a web page: Jina Reader first, Firecrawl as fallback. Capped at `maxChars`. */
26
+ export declare function readPage(ctx: Ctx, url: string, maxChars?: number): Promise<Sourced<string>>;
27
+ /**
28
+ * POST JSON with caching keyed on the body. Used for search APIs whose results are fine to reuse for a few hours.
29
+ */
30
+ export declare function postJson<T>(ctx: Ctx, url: string, body: unknown, headers: Record<string, string>, source: string, ttlSec?: number): Promise<Sourced<T>>;
@@ -0,0 +1,111 @@
1
+ /** News and web search: GNews, The Guardian, New York Times, Tavily, Exa, plus Jina/Firecrawl page reading. */
2
+ import { DAY_MS, enc } from '../core/context.js';
3
+ import { key, noKey } from '../core/keys.js';
4
+ export async function gnews(ctx, q, max = 10, earliest) {
5
+ if (earliest) {
6
+ const k = key('GNEWS_API_KEY');
7
+ if (!k)
8
+ return noKey('gnews', 'GNEWS_API_KEY');
9
+ // GNews has no oldest-first sort; bound the window instead so the earliest stories are inside it.
10
+ const r = await ctx.http.get(`https://gnews.io/api/v4/search?q=${enc(`"${q.replace(/"/g, '')}"`)}&lang=en&max=${max}&from=${enc(earliest.fromIso.slice(0, 19) + 'Z')}&sortby=publishedAt&apikey=${k}`, { source: 'gnews', ttlSec: 6 * 3600 });
11
+ return { data: r.data?.articles?.map((a) => ({ title: a.title, url: a.url, date: a.publishedAt, source: a.source?.name ?? 'gnews' })) ?? null, prov: r.prov };
12
+ }
13
+ const k = key('GNEWS_API_KEY');
14
+ if (!k)
15
+ return noKey('gnews', 'GNEWS_API_KEY');
16
+ const r = await ctx.http.get(`https://gnews.io/api/v4/search?q=${enc(`"${q.replace(/"/g, '')}"`)}&lang=en&max=${max}&sortby=publishedAt&apikey=${k}`, { source: 'gnews', ttlSec: 3 * 3600 });
17
+ return { data: r.data?.articles?.map((a) => ({ title: a.title, url: a.url, date: a.publishedAt, source: a.source?.name ?? 'gnews' })) ?? null, prov: r.prov };
18
+ }
19
+ export async function guardian(ctx, q, days = 14, max = 10, earliest) {
20
+ const k = key('GUARDIAN_API_KEY');
21
+ if (!k)
22
+ return noKey('guardian', 'GUARDIAN_API_KEY');
23
+ const from = earliest ? earliest.fromIso.slice(0, 10) : new Date(ctx.now().getTime() - days * DAY_MS).toISOString().slice(0, 10);
24
+ const r = await ctx.http.get(`https://content.guardianapis.com/search?q=${enc(`"${q.replace(/"/g, '')}"`)}&from-date=${from}&order-by=${earliest ? 'oldest' : 'newest'}&page-size=${max}&api-key=${k}`, { source: 'guardian', ttlSec: 3 * 3600 });
25
+ return { data: r.data?.response?.results?.map((a) => ({ title: a.webTitle, url: a.webUrl, date: a.webPublicationDate, source: 'The Guardian' })) ?? null, prov: r.prov };
26
+ }
27
+ /** Guardian news stories published on one day (YYYY-MM-DD), in the main news sections. */
28
+ export async function guardianDay(ctx, date, max = 30) {
29
+ const k = key('GUARDIAN_API_KEY');
30
+ if (!k)
31
+ return noKey('guardian', 'GUARDIAN_API_KEY');
32
+ const sections = 'world|us-news|uk-news|business|technology|politics|environment|science';
33
+ const r = await ctx.http.get(`https://content.guardianapis.com/search?from-date=${date}&to-date=${date}&section=${enc(sections)}&order-by=newest&page-size=${max}&api-key=${k}`, { source: 'guardian', ttlSec: 30 * 86_400 });
34
+ return { data: r.data?.response?.results?.map((a) => ({ title: a.webTitle, url: a.webUrl, date: a.webPublicationDate, source: 'The Guardian' })) ?? null, prov: r.prov };
35
+ }
36
+ /** Number of Guardian articles matching `q` between two dates (YYYY-MM-DD, inclusive). */
37
+ export async function guardianCount(ctx, q, from, to) {
38
+ const k = key('GUARDIAN_API_KEY');
39
+ if (!k)
40
+ return noKey('guardian', 'GUARDIAN_API_KEY');
41
+ const r = await ctx.http.get(`https://content.guardianapis.com/search?q=${enc(`"${q.replace(/"/g, '')}"`)}&from-date=${from}&to-date=${to}&page-size=1&api-key=${k}`, { source: 'guardian', ttlSec: 12 * 3600 });
42
+ return { data: r.data?.response?.total ?? null, prov: r.prov };
43
+ }
44
+ export async function nytSearch(ctx, q, days = 14, earliest) {
45
+ const k = key('NYT_API_KEY');
46
+ if (!k)
47
+ return noKey('nyt', 'NYT_API_KEY');
48
+ const begin = (earliest ? earliest.fromIso : new Date(ctx.now().getTime() - days * DAY_MS).toISOString()).slice(0, 10).replace(/-/g, '');
49
+ const r = await ctx.http.get(`https://api.nytimes.com/svc/search/v2/articlesearch.json?q=${enc(q)}&begin_date=${begin}&sort=${earliest ? 'oldest' : 'newest'}&api-key=${k}`, { source: 'nyt', ttlSec: 3 * 3600 });
50
+ return { data: r.data?.response ? (r.data.response.docs ?? []).map((d) => ({ title: d.headline?.main ?? '', url: d.web_url, date: d.pub_date, source: 'New York Times' })) : null, prov: r.prov };
51
+ }
52
+ export async function nytTopStories(ctx) {
53
+ const k = key('NYT_API_KEY');
54
+ if (!k)
55
+ return noKey('nyt', 'NYT_API_KEY');
56
+ const r = await ctx.http.get(`https://api.nytimes.com/svc/topstories/v2/home.json?api-key=${k}`, {
57
+ source: 'nyt',
58
+ ttlSec: 1800,
59
+ });
60
+ return { data: r.data?.results?.filter((s) => s.title).map((s) => ({ title: s.title, url: s.url, date: s.published_date, source: `NYT ${s.section}` })) ?? null, prov: r.prov };
61
+ }
62
+ /** Web search: Tavily first, Exa as fallback. */
63
+ export async function webSearch(ctx, q, max = 6, news = false) {
64
+ const tv = key('TAVILY_API_KEY');
65
+ if (tv) {
66
+ const r = await postJson(ctx, 'https://api.tavily.com/search', { query: q, max_results: max, ...(news ? { topic: 'news', days: 7 } : {}) }, { authorization: `Bearer ${tv}` }, 'tavily');
67
+ if (r.data)
68
+ return { data: r.data.results?.map((x) => ({ title: x.title, url: x.url, snippet: x.content.slice(0, 300), date: x.published_date ?? null })) ?? [], prov: r.prov };
69
+ }
70
+ const ex = key('EXA_API_KEY');
71
+ if (!ex)
72
+ return noKey('websearch', 'TAVILY_API_KEY or EXA_API_KEY');
73
+ const r = await postJson(ctx, 'https://api.exa.ai/search', { query: q, numResults: max, contents: { text: { maxCharacters: 300 } } }, { 'x-api-key': ex }, 'exa');
74
+ return { data: r.data?.results?.map((x) => ({ title: x.title, url: x.url, snippet: (x.text ?? '').slice(0, 300), date: x.publishedDate ?? null })) ?? null, prov: r.prov };
75
+ }
76
+ /** Readable text of a web page: Jina Reader first, Firecrawl as fallback. Capped at `maxChars`. */
77
+ export async function readPage(ctx, url, maxChars = 6000) {
78
+ if (!/^https?:\/\//i.test(url))
79
+ return { data: null, prov: { source: 'reader', url, status: 'ERROR', fetchedAt: new Date().toISOString(), note: 'only http(s) URLs' } };
80
+ const jina = key('JINA_API_KEY');
81
+ const r = await ctx.http.get(`https://r.jina.ai/${url}`, { source: 'jina', as: 'text', ttlSec: 6 * 3600, timeoutMs: 45_000, ...(jina ? { headers: { authorization: `Bearer ${jina}` } } : {}) });
82
+ if (r.data)
83
+ return { data: r.data.slice(0, maxChars), prov: r.prov };
84
+ const fc = key('FIRECRAWL_API_KEY');
85
+ if (!fc)
86
+ return r;
87
+ const f = await postJson(ctx, 'https://api.firecrawl.dev/v1/scrape', { url, formats: ['markdown'], onlyMainContent: true }, { authorization: `Bearer ${fc}` }, 'firecrawl');
88
+ return { data: f.data?.data?.markdown?.slice(0, maxChars) ?? null, prov: f.prov };
89
+ }
90
+ /**
91
+ * POST JSON with caching keyed on the body. Used for search APIs whose results are fine to reuse for a few hours.
92
+ */
93
+ export async function postJson(ctx, url, body, headers, source, ttlSec = 3 * 3600) {
94
+ const cacheKey = `post:${url}:${JSON.stringify(body)}`;
95
+ const cached = ctx.store.cacheGet(cacheKey);
96
+ if (cached && Date.now() - cached.fetchedAt < ttlSec * 1000) {
97
+ return { data: JSON.parse(cached.body), prov: { source, url, status: 'CACHED', fetchedAt: new Date(cached.fetchedAt).toISOString() } };
98
+ }
99
+ const r = await ctx.http.postBytes(url, new TextEncoder().encode(JSON.stringify(body)), { source, headers: { 'content-type': 'application/json', ...headers }, timeoutMs: 45_000 });
100
+ if (!r.data)
101
+ return { data: null, prov: r.prov };
102
+ try {
103
+ const text = r.data.toString('utf8');
104
+ const data = JSON.parse(text);
105
+ ctx.store.cachePut(cacheKey, text);
106
+ return { data, prov: r.prov };
107
+ }
108
+ catch {
109
+ return { data: null, prov: { ...r.prov, status: 'ERROR', note: 'invalid JSON' } };
110
+ }
111
+ }
@@ -0,0 +1,14 @@
1
+ export interface MailResult {
2
+ ok: boolean;
3
+ id?: string;
4
+ error?: string;
5
+ }
6
+ export declare const mailFrom: () => string;
7
+ export declare const mailEnabled: () => boolean;
8
+ export declare function sendEmail(msg: {
9
+ to: string;
10
+ subject: string;
11
+ html: string;
12
+ text: string;
13
+ unsubscribeUrl?: string;
14
+ }, fetchImpl?: typeof fetch): Promise<MailResult>;
@@ -0,0 +1,29 @@
1
+ /** Outgoing email through Resend (RESEND_API_KEY; free tier 3,000 emails a month). Never cached. */
2
+ import { key } from '../core/keys.js';
3
+ export const mailFrom = () => process.env.OCULON_MAIL_FROM?.trim() || 'Oculon <alerts@oculon.live>';
4
+ export const mailEnabled = () => Boolean(key('RESEND_API_KEY'));
5
+ export async function sendEmail(msg, fetchImpl = fetch) {
6
+ const k = key('RESEND_API_KEY');
7
+ if (!k)
8
+ return { ok: false, error: 'RESEND_API_KEY is not set' };
9
+ try {
10
+ const res = await fetchImpl('https://api.resend.com/emails', {
11
+ method: 'POST',
12
+ headers: { authorization: `Bearer ${k}`, 'content-type': 'application/json' },
13
+ body: JSON.stringify({
14
+ from: mailFrom(),
15
+ to: [msg.to],
16
+ subject: msg.subject,
17
+ html: msg.html,
18
+ text: msg.text,
19
+ ...(msg.unsubscribeUrl ? { headers: { 'List-Unsubscribe': `<${msg.unsubscribeUrl}>`, 'List-Unsubscribe-Post': 'List-Unsubscribe=One-Click' } } : {}),
20
+ }),
21
+ signal: AbortSignal.timeout(20_000),
22
+ });
23
+ const j = (await res.json().catch(() => ({})));
24
+ return res.ok ? { ok: true, id: j.id } : { ok: false, error: `HTTP ${res.status}${j.message ? ` (${j.message})` : ''}` };
25
+ }
26
+ catch (e) {
27
+ return { ok: false, error: e.message };
28
+ }
29
+ }
@@ -0,0 +1,109 @@
1
+ /** Robinhood Chain (id 4663) data: GeckoTerminal pools (keyless) and Blockscout explorer API. */
2
+ import { type Ctx } from '../core/context.js';
3
+ import type { Sourced } from '../core/types.js';
4
+ export declare const RH_CHAIN_ID = 4663;
5
+ export interface Pool {
6
+ name: string;
7
+ address: string;
8
+ token: string;
9
+ createdAt: string;
10
+ liquidityUsd: number;
11
+ volume24h: number;
12
+ change1h: number | null;
13
+ change24h: number | null;
14
+ buys24h: number;
15
+ sells24h: number;
16
+ buyers24h: number;
17
+ sellers24h: number;
18
+ fdvUsd: number | null;
19
+ url: string;
20
+ }
21
+ interface GtPool {
22
+ id: string;
23
+ attributes: {
24
+ name: string;
25
+ address: string;
26
+ pool_created_at: string;
27
+ reserve_in_usd?: string;
28
+ fdv_usd?: string | null;
29
+ volume_usd?: {
30
+ h24?: string;
31
+ };
32
+ price_change_percentage?: {
33
+ h1?: string;
34
+ h24?: string;
35
+ };
36
+ transactions?: {
37
+ h24?: {
38
+ buys?: number;
39
+ sells?: number;
40
+ buyers?: number;
41
+ sellers?: number;
42
+ };
43
+ };
44
+ };
45
+ relationships?: {
46
+ base_token?: {
47
+ data?: {
48
+ id?: string;
49
+ };
50
+ };
51
+ };
52
+ }
53
+ export declare function toPool(p: GtPool): Pool;
54
+ export declare const newPools: (ctx: Ctx) => Promise<Sourced<Pool[]>>;
55
+ export declare const trendingPools: (ctx: Ctx) => Promise<Sourced<Pool[]>>;
56
+ export declare const tokenPools: (ctx: Ctx, token: string) => Promise<Sourced<Pool[]>>;
57
+ export interface ChainStats {
58
+ blocks: number;
59
+ transactions: number;
60
+ addresses: number;
61
+ transactionsToday: number;
62
+ gasAverage: number | null;
63
+ }
64
+ export declare function chainStats(ctx: Ctx): Promise<Sourced<ChainStats>>;
65
+ export interface RhToken {
66
+ name: string;
67
+ symbol: string;
68
+ holders: number;
69
+ totalSupply: number;
70
+ decimals: number;
71
+ }
72
+ export declare function rhToken(ctx: Ctx, address: string): Promise<Sourced<RhToken>>;
73
+ /** Share of supply held by the 10 largest holders (0-1). */
74
+ export declare function topHolderShare(ctx: Ctx, address: string, totalSupply: number): Promise<Sourced<number>>;
75
+ /** Who deployed a contract (null for a plain wallet). */
76
+ export declare function contractCreator(ctx: Ctx, address: string): Promise<Sourced<{
77
+ creator: string;
78
+ creationTx: string | null;
79
+ } | null>>;
80
+ export interface CreatedContract {
81
+ address: string;
82
+ name: string | null;
83
+ createdAt: string;
84
+ }
85
+ /** Contracts deployed by an address, from its most recent transactions (one page, newest first). */
86
+ export declare function createdContracts(ctx: Ctx, deployer: string): Promise<Sourced<CreatedContract[]>>;
87
+ export declare function addressInfo(ctx: Ctx, address: string): Promise<Sourced<{
88
+ isContract: boolean;
89
+ name: string | null;
90
+ }>>;
91
+ export declare function txParties(ctx: Ctx, hash: string): Promise<Sourced<{
92
+ from: string;
93
+ to: string | null;
94
+ method: string | null;
95
+ }>>;
96
+ /**
97
+ * Tokens a wallet launched through a launchpad/factory contract: its transactions to the launcher, then the
98
+ * contracts each one created internally. Limited to the most recent `max` launches.
99
+ */
100
+ export declare function launchesVia(ctx: Ctx, wallet: string, launcher: string, max?: number): Promise<Sourced<CreatedContract[]>>;
101
+ export interface TokenMarket {
102
+ symbol: string;
103
+ reserveUsd: number;
104
+ volume24h: number;
105
+ }
106
+ /** Market data for up to 30 tokens in one GeckoTerminal call. Tokens without pools are simply absent. */
107
+ export declare function tokensMarket(ctx: Ctx, addresses: string[]): Promise<Sourced<Map<string, TokenMarket>>>;
108
+ export declare function isVerified(ctx: Ctx, address: string): Promise<Sourced<boolean>>;
109
+ export {};