@parabolicfamily/mcp 0.1.2 → 0.1.4

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.
package/README.md CHANGED
@@ -26,27 +26,41 @@ Set `PARABOLIC_CHAIN_ID` and the RPC and contract addresses for that chain follo
26
26
  |---|---|---|
27
27
  | `PARABOLIC_CHAIN_ID` | 5042002 Arc Testnet, 5042 Arc mainnet | `5042002` |
28
28
  | `PARABOLIC_RPC_URL` | Arc JSON-RPC endpoint | the public endpoint for the chain id |
29
- | `PARABOLIC_FACTORY` | `ParabolicLaunchFactory`: coin lookups, launch transactions, log-scan listing | the deployment for the chain id |
29
+ | `PARABOLIC_FACTORY` | `ParabolicLaunchFactory`: coin lookups and launch transactions | the deployment for the chain id |
30
30
  | `PARABOLIC_MEMO_ROUTER` | `ParabolicMemoRouter`: the atomic launch-and-buy and the referral-carrying buy | the deployment for the chain id |
31
31
  | `PARABOLIC_EURC` | EURC address, only for EURC-quoted coins | the deployment for the chain id |
32
- | `PARABOLIC_SUBGRAPH_URL` | Subgraph endpoint: richer listings, holders, 24h volume, protocol stats | unset (falls back to a log scan) |
32
+ | `PARABOLIC_SUBGRAPH_URL` | Subgraph endpoint: richer listings, holders, 24h volume, protocol stats | unset (the public API is used instead) |
33
33
  | `PARABOLIC_HOOK` | `ParabolicHook` address | read from `factory.memeHook()` |
34
34
  | `PARABOLIC_ARC_MEMO` | Arc `Memo` system contract | `0x5294E9927c3306DcBaDb03fe70b92e01cCede505` |
35
+ | `PARABOLIC_AGENT_REGISTRY` | Arc's ERC-8004 `IdentityRegistry`: `agent_status`, `build_register_agent_tx` and the `pair: "Agents"` listing filter | the registry Arc publishes for the chain id (Arc Testnet only, today) |
35
36
  | `PARABOLIC_LAUNCH_CONFIG_ID` | Factory launch-config index (0 = the $5K open / $12,500 graduation curve) | `0` |
36
37
  | `PARABOLIC_FACTORY_START_BLOCK` | First block of the `TokenLaunched` scan, used only when neither a subgraph nor the API is available | the factory's deployment block |
37
38
 
39
+ The API default follows the chain: Arc Testnet reads the testnet site (`https://parabolic-testnet.vercel.app/api/v1`,
40
+ live testnet data), Arc reads `https://www.parabolic.family/api/v1`. Running against a fork or your own
41
+ factory: the server skips the site's API automatically whenever `PARABOLIC_FACTORY` differs from the
42
+ built-in address for the chain or `PARABOLIC_RPC_URL` points anywhere but the chain's own endpoint, and
43
+ reads the chain instead. To force that for any other reason, set `PARABOLIC_API_URL=""`.
44
+
38
45
  Call `parabolic.docs` to print the exact addresses this server is using, including the memo router
39
46
  every launch with an opening buy is sent to. Check each one on Arcscan, where all of them are verified
40
47
  with source, before you sign anything:
41
48
 
42
49
  | Contract | Arc Testnet (5042002) |
43
50
  |---|---|
44
- | `ParabolicLaunchFactory` | [`0xDA14d24385483c5876e0E170c6135F14Fc3BCEc3`](https://testnet.arcscan.app/address/0xDA14d24385483c5876e0E170c6135F14Fc3BCEc3) |
45
- | `ParabolicMemoRouter` | [`0x32E6e071eA1Fe58DF86C4D3f419a8BAF2118f505`](https://testnet.arcscan.app/address/0x32E6e071eA1Fe58DF86C4D3f419a8BAF2118f505) |
51
+ | `ParabolicLaunchFactory` | [`0x2E06eD99bD7D164458847D186B282B23700b2C63`](https://testnet.arcscan.app/address/0x2E06eD99bD7D164458847D186B282B23700b2C63) |
52
+ | `ParabolicMemoRouter` | [`0x1381567ea31a094e64f6B39Bd880d0b59c48e08F`](https://testnet.arcscan.app/address/0x1381567ea31a094e64f6B39Bd880d0b59c48e08F) |
46
53
  | EURC (test token) | [`0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a`](https://testnet.arcscan.app/address/0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a) |
47
54
  | Arc `Memo` (system) | [`0x5294E9927c3306DcBaDb03fe70b92e01cCede505`](https://testnet.arcscan.app/address/0x5294E9927c3306DcBaDb03fe70b92e01cCede505) |
55
+ | ERC-8004 `IdentityRegistry` (Arc's) | [`0x8004A818BFB912233c491871b3d84c89A494BD9e`](https://testnet.arcscan.app/address/0x8004A818BFB912233c491871b3d84c89A494BD9e) |
56
+
57
+ The identity registry is **Arc's contract, not ours**: Arc deploys it, documents it and can change it.
58
+ It is an ERC-1967 proxy, so the implementation behind that address is upgradeable by Arc. Parabolic only
59
+ reads it (and builds the registration for your wallet to sign); nothing on the launchpad depends on it.
48
60
 
49
- Arc mainnet (5042) addresses ship in the release that follows the 16 September 2026 deployment.
61
+ Arc mainnet (5042) addresses ship in the release that follows the 16 September 2026 deployment. That
62
+ includes the identity registry: Arc has published no mainnet address for it yet, so on chain 5042
63
+ `agent_status` says there is no registry rather than reporting a wallet as unregistered.
50
64
 
51
65
  ### Claude Code
52
66
 
@@ -100,17 +114,19 @@ await server.connect(transport);
100
114
 
101
115
  ## Tools
102
116
 
103
- Amounts go in as whole units (`"25"` or `25` = 25 USDC; tokens likewise) and come back as `{ amount, raw }` pairs (whole units and raw 18-decimal, or 6-decimal for EURC, integers). Addresses are checksummed. Every tool returns JSON text plus `structuredContent`; errors come back as `isError` results with a plain message.
117
+ Arguments are strict: a key a tool does not know fails with `Unrecognized key` instead of being dropped (a top-level `referral` on `build_buy_tx` would otherwise build a plain buy; it belongs in `memo: { referral }`). Amounts go in as whole units (`"25"` or `25` = 25 USDC; tokens likewise) and come back as `{ amount, raw }` pairs (whole units and raw 18-decimal, or 6-decimal for EURC, integers). Addresses are checksummed. Every tool returns JSON text plus `structuredContent`; errors come back as `isError` results with a plain message.
104
118
 
105
119
  | Tool | Purpose |
106
120
  |---|---|
107
- | `parabolic.list_coins` | `{ status?: "climbing" \| "graduated", sort?: "trending" \| "new" \| "near_graduation" \| "market_cap", limit? }`. Subgraph when configured (adds holders, 24h volume/change), otherwise a `TokenLaunched` log scan of the factory (newest 50). |
121
+ | `parabolic.list_coins` | `{ status?: "climbing" \| "graduated", sort?: "trending" \| "new" \| "near_graduation" \| "market_cap", limit?, pair?: "USDC" \| "EURC" \| "Agents" }`. Subgraph when configured, otherwise Parabolic's public read API; a `TokenLaunched` log scan only when both are unavailable. `pair` is the quote asset, except `"Agents"`, which means the coin's creator holds an ERC-8004 identity: that is read from Arc's registry (one `balanceOf` per creator, over the top 100 of the sort) whatever the listing source is. Without a registry for the chain the result sets `pairFilterApplied: false` and the `source` line says the filter did not run. |
108
122
  | `parabolic.get_coin` | `{ address }` (token or curve). Name, ticker, creator, curve, status/phase, raised/threshold/progress, price, market cap, holders, pool id, fee terms and 50/30/20 split, snipe-tax window and `currentSnipeTaxBps()`. |
109
123
  | `parabolic.quote_buy` | `{ address, quoteIn, buyer?, slippageBps? }`. Exact curve math on live reserves: fee, creator tax and snipe tax legs, spot vs effective price, price impact, whether the buy graduates the coin, suggested `minTokensOut`. `buyer` checks the snipe-tax exemption. |
110
124
  | `parabolic.quote_sell` | `{ address, tokensIn, slippageBps? }`. Gross, fee, creator tax, effective price, price impact, suggested `minQuoteOut`. |
111
125
  | `parabolic.build_buy_tx` | `{ address, quoteIn, minTokensOut?, recipient, buyer?, slippageBps?, memo? }` → unsigned `curve.buy(...)` (value = quote on native-USDC curves; an approval step for EURC pairs). `memo: { referral, note? }` returns the memo-routed variant instead (see below). |
112
126
  | `parabolic.build_sell_tx` | `{ address, tokensIn, minQuoteOut?, recipient, slippageBps? }` → unsigned ERC-20 approval + `curve.sell(...)`. |
113
127
  | `parabolic.build_launch_tx` | `{ name, ticker, image?, description?, socials?, pair?, devBuy?, creatorTaxBps?, creator, buybackEnabled? }`. The `TokenParams` are built exactly like the web Create form (economics pinned with `previewLaunchEconomics`, random salt). With `devBuy` and `PARABOLIC_MEMO_ROUTER` set: one unsigned `ParabolicMemoRouter.launchAndBuy` (value = launch fee + dev buy, `creatorFeeRecipient` zero, `minTokensOut` from the curve math on the launch config; `launchAndBuyWithToken` plus an approval for EURC). Otherwise: unsigned `factory.launchToken(...)` with the launch fee as value and, for a `devBuy`, the follow-up buy calldata to send to the curve from the `TokenLaunched` event. |
128
+ | `parabolic.agent_status` | `{ address }`. Whether the wallet holds an ERC-8004 agent identity on Arc's `IdentityRegistry` (`balanceOf`), how many it holds, and the registry address and chain. On a chain where Arc has published no registry the answer is that fact, with `registered` and `identities` null. |
129
+ | `parabolic.build_register_agent_tx` | `{ from, metadataURI? }` → unsigned `IdentityRegistry.register(metadataURI)` (no value). The registry mints the ERC-721 identity to the signer, so `from` is the wallet that sends it, and returns the agent id; read it from the `Transfer` log in the receipt. `metadataURI` is a pointer to the agent's metadata stored as `tokenURI` and may be empty. Warns when the wallet already holds an identity. |
114
130
  | `parabolic.protocol_stats` | Subgraph totals (launches, graduations, trades, volume, fees, daily series) plus the factory's live launch fee, curve preset, snipe-tax terms and contract addresses. |
115
131
  | `parabolic.docs` | The adopted parameters, curve mechanics, verified Arc facts and this server's configuration, as text. |
116
132
 
@@ -156,6 +172,28 @@ Launch a coin with a $200 dev buy:
156
172
 
157
173
  With `PARABOLIC_MEMO_ROUTER` set the result is `kind: "launch_and_buy"`: one `tx` to the router (`value` = $1 launch fee + $200), the encoded `params` (`creatorFeeRecipient` zero, as the router requires), the curve `terms` (opening and fully diluted graduation market caps, reserved / pool-seed / locked token shares, snipe-tax window) and `devBuy` (expected and minimum tokens, snipe-tax exempt). Without the router it is `kind: "launch"`: `tx` to the factory (value = the launch fee) and `devBuy` with the calldata for the second, snipe-tax-exempt transaction to the new curve. There is no exemption list: only the creator's own address is exempt from the snipe tax.
158
174
 
175
+ Check whether a wallet is a registered agent, then register it:
176
+
177
+ ```json
178
+ { "name": "parabolic.agent_status", "arguments": { "address": "0xYourWallet" } }
179
+ ```
180
+ ```json
181
+ {
182
+ "address": "0xYourWallet",
183
+ "chain": { "id": 5042002, "name": "Arc Testnet" },
184
+ "registry": { "address": "0x8004A818BFB912233c491871b3d84c89A494BD9e", "contract": "ERC-8004 IdentityRegistry", "operator": "Arc" },
185
+ "registered": false, "identities": 0
186
+ }
187
+ ```
188
+ ```json
189
+ { "name": "parabolic.build_register_agent_tx", "arguments": { "from": "0xYourWallet", "metadataURI": "ipfs://…/agent-card.json" } }
190
+ ```
191
+
192
+ The result is `kind: "register_agent"`: one unsigned `tx` to the registry carrying no value, the
193
+ `metadataURI` as encoded, and `currentIdentities` for the wallet. Send it from `from`, because the
194
+ registry mints to `msg.sender`. Once it lands, `parabolic.list_coins` with `pair: "Agents"` keeps the
195
+ coins launched from that wallet, and the site tags them `[ Agent ]`.
196
+
159
197
  ## Notes on the mechanics
160
198
 
161
199
  - Curve math is a port of `ParabolicBondingCurve` / `ParabolicBondingCurveMath` (and of `web/lib/curve.ts`): fee legs are taken off the buy input separately, the constant product is priced on `getReserves()`, and a buy that would take more than `sellableTokens()` is clamped to the last sellable tokens, charged the grossed-up price and refunded the rest; that buy graduates the coin, so give it extra gas. Sells take the fee off the gross quote output and close once the curve is ready to graduate.
@@ -164,6 +202,8 @@ With `PARABOLIC_MEMO_ROUTER` set the result is `kind: "launch_and_buy"`: one `tx
164
202
  - At graduation the curve still holds the reserved 28.57% of supply: ≈ 20.4% seeds the Uniswap v4 full-range position with the $12,500 raised at the same terminal price, and ≈ 8.2% is permanently locked. Fully diluted graduation market cap: $61,250.
165
203
  - Fair launch: `ParabolicMemoRouter.launchAndBuy` / `launchAndBuyWithToken` put the creator's opening buy inside the launch transaction (snipe-tax exempt, before anyone else can trade). Called directly they work from any wallet; the router forwards no exemption list and rejects a `creatorFeeRecipient` other than zero or the signer.
166
204
  - A memo-routed buy (`memo: { referral }`) wraps `ParabolicMemoRouter.buy` inside Arc's `Memo.memo(...)` so the referral code is attributed on-chain. It is **EOA-only** (the Memo contract's caller must be `tx.origin`) and forwards no value, so the router pulls whole 6-decimal USDC units through the ERC-20 view (`0x3600…0000`) and needs a one-time approval; smart-account wallets should use the direct buy. Memo-wrapped launches (referral on a launch) are not built here.
205
+ - Agent identity is ERC-8004 on Arc's own `IdentityRegistry` (an ERC-721 named `AgentIdentity`, symbol `AGENT`): `register(metadataURI)` mints one to the caller, `balanceOf` answers whether a wallet holds any. The registry is **not** ERC-721 Enumerable, so there is no way to list a wallet's agent ids without scanning `Transfer` logs, which public Arc RPCs cap and rate-limit; this server does not try. Arc can upgrade the registry behind its address (ERC-1967 proxy). Holding an identity is not an endorsement: registration is open to anyone.
206
+ - `pair: "Agents"` is a property of the creator, not of the coin, so it is read at call time: one `balanceOf` per distinct creator over the top 100 coins of the sort, deduplicated and batched. A creator the registry will not answer for is left out rather than counted either way, and the `source` line reports how many. When the registry answers for nobody the list comes back empty and says so, because an unreachable registry and a board with no agent launches are not the same answer.
167
207
  - The factory has no enumeration function (only `getLaunchedToken(address)`), so listing comes from an indexer: `PARABOLIC_SUBGRAPH_URL` when set, otherwise Parabolic's public read API. Only if both are unavailable does it scan `TokenLaunched` logs, which public Arc RPCs rate-limit hard.
168
208
 
169
209
  ## Development
@@ -175,6 +215,7 @@ src/
175
215
  parabolic.ts the service: reads (RPC + subgraph) and unsigned tx builders
176
216
  curve.ts ported curve math
177
217
  tx.ts viem encodeFunctionData builders (buy, sell, approve, launchToken, memo buy)
218
+ agents.ts ERC-8004 identity registry: balanceOf / ownerOf / tokenURI reads, register builder
178
219
  chain.ts viem RPC wrapper (batched HTTP) behind a small Rpc interface
179
220
  subgraph.ts GraphQL client and Coin/Protocol shapes
180
221
  coins.ts coin summaries, sorting
@@ -0,0 +1,106 @@
1
+ import { type Address } from "viem";
2
+ import { type Rpc } from "./chain.js";
3
+ import type { UnsignedTx } from "./tx.js";
4
+ /**
5
+ * ERC-8004 agent identity on Arc.
6
+ *
7
+ * The registries are Arc's, not Parabolic's: Arc deploys them and documents them
8
+ * (https://docs.arc.io/arc/tutorials/register-your-first-ai-agent.md, which registers an agent with
9
+ * `register(string metadataURI)`). The IdentityRegistry is an ERC-1967 proxy, so Arc can change the
10
+ * implementation behind the address in DEPLOYMENTS without the address moving, and the facts recorded
11
+ * below hold for the implementation that answered on the date given.
12
+ *
13
+ * Verified against https://rpc.testnet.arc.io on 13 September 2026: name() = "AgentIdentity",
14
+ * symbol() = "AGENT", supportsInterface(0x80ac58cd) and (0x5b5e139f) true (ERC-721 and Metadata),
15
+ * balanceOf / ownerOf / tokenURI answer, and register(string) is in the implementation bytecode with
16
+ * selector 0xf2c298be.
17
+ *
18
+ * There is deliberately no "list this wallet's agent ids" function. supportsInterface(0x780e9d63) is
19
+ * false: the registry is not ERC-721 Enumerable and has neither totalSupply nor tokenOfOwnerByIndex,
20
+ * so the ids could only come from a Transfer log scan. Public Arc RPCs cap eth_getLogs near 10,000
21
+ * blocks and rate-limit the walk, which is the same cost that moved coin listing off the chain and
22
+ * onto an indexer. balanceOf answers the question the tools actually ask in one eth_call.
23
+ */
24
+ export declare const identityRegistryAbi: readonly [{
25
+ readonly name: "register";
26
+ readonly type: "function";
27
+ readonly stateMutability: "nonpayable";
28
+ readonly inputs: readonly [{
29
+ readonly type: "string";
30
+ readonly name: "metadataURI";
31
+ }];
32
+ readonly outputs: readonly [{
33
+ readonly type: "uint256";
34
+ readonly name: "agentId";
35
+ }];
36
+ }, {
37
+ readonly name: "balanceOf";
38
+ readonly type: "function";
39
+ readonly stateMutability: "view";
40
+ readonly inputs: readonly [{
41
+ readonly type: "address";
42
+ readonly name: "owner";
43
+ }];
44
+ readonly outputs: readonly [{
45
+ readonly type: "uint256";
46
+ }];
47
+ }, {
48
+ readonly name: "ownerOf";
49
+ readonly type: "function";
50
+ readonly stateMutability: "view";
51
+ readonly inputs: readonly [{
52
+ readonly type: "uint256";
53
+ readonly name: "tokenId";
54
+ }];
55
+ readonly outputs: readonly [{
56
+ readonly type: "address";
57
+ }];
58
+ }, {
59
+ readonly name: "tokenURI";
60
+ readonly type: "function";
61
+ readonly stateMutability: "view";
62
+ readonly inputs: readonly [{
63
+ readonly type: "uint256";
64
+ readonly name: "tokenId";
65
+ }];
66
+ readonly outputs: readonly [{
67
+ readonly type: "string";
68
+ }];
69
+ }];
70
+ /** Longest metadata URI this server encodes; a pointer, not a document. */
71
+ export declare const MAX_METADATA_URI_BYTES = 512;
72
+ export type AgentStatus = {
73
+ address: Address;
74
+ registered: boolean;
75
+ identities: number;
76
+ };
77
+ /** `balanceOf(owner)`: whether the wallet holds an agent identity, and how many it holds. */
78
+ export declare function readAgentStatus(rpc: Rpc, registry: Address, owner: Address): Promise<AgentStatus>;
79
+ /** Most wallets one listing checks against the registry: one eth_call each, batched by the transport. */
80
+ export declare const AGENT_LOOKUP_MAX = 100;
81
+ /**
82
+ * Which of these wallets hold an identity, as a set of lowercase addresses. This is how a coin list is
83
+ * filtered to agent launches: the flag is a property of the creator, not of the coin, so it is read
84
+ * per creator at call time.
85
+ *
86
+ * A read that fails is counted, not guessed: "the registry did not answer" is not "this wallet holds
87
+ * none", and the caller has to be able to say how many creators went unchecked.
88
+ */
89
+ export declare function readAgentOwners(rpc: Rpc, registry: Address, owners: readonly Address[]): Promise<{
90
+ agents: Set<string>;
91
+ checked: number;
92
+ failed: number;
93
+ }>;
94
+ export type AgentIdentity = {
95
+ agentId: string;
96
+ owner: Address;
97
+ metadataURI: string;
98
+ };
99
+ /**
100
+ * One identity by agent id: the ERC-721 tokenId that `register` returns, also readable from the
101
+ * Transfer log in the registration receipt. The metadata URI comes back empty for an identity
102
+ * registered without one, which is common on Arc Testnet (tokenURI(1) is the empty string).
103
+ */
104
+ export declare function readAgent(rpc: Rpc, registry: Address, agentId: bigint): Promise<AgentIdentity>;
105
+ /** `registry.register(metadataURI)`: mints an identity to whoever signs and returns its agent id. Carries no value. */
106
+ export declare function encodeRegisterAgent(registry: Address, metadataURI: string, chainId: number): UnsignedTx;
package/dist/agents.js ADDED
@@ -0,0 +1,87 @@
1
+ import { encodeFunctionData, parseAbi, toHex } from "viem";
2
+ import { mapLimit } from "./chain.js";
3
+ import { addrOf, big, str } from "./format.js";
4
+ /**
5
+ * ERC-8004 agent identity on Arc.
6
+ *
7
+ * The registries are Arc's, not Parabolic's: Arc deploys them and documents them
8
+ * (https://docs.arc.io/arc/tutorials/register-your-first-ai-agent.md, which registers an agent with
9
+ * `register(string metadataURI)`). The IdentityRegistry is an ERC-1967 proxy, so Arc can change the
10
+ * implementation behind the address in DEPLOYMENTS without the address moving, and the facts recorded
11
+ * below hold for the implementation that answered on the date given.
12
+ *
13
+ * Verified against https://rpc.testnet.arc.io on 13 September 2026: name() = "AgentIdentity",
14
+ * symbol() = "AGENT", supportsInterface(0x80ac58cd) and (0x5b5e139f) true (ERC-721 and Metadata),
15
+ * balanceOf / ownerOf / tokenURI answer, and register(string) is in the implementation bytecode with
16
+ * selector 0xf2c298be.
17
+ *
18
+ * There is deliberately no "list this wallet's agent ids" function. supportsInterface(0x780e9d63) is
19
+ * false: the registry is not ERC-721 Enumerable and has neither totalSupply nor tokenOfOwnerByIndex,
20
+ * so the ids could only come from a Transfer log scan. Public Arc RPCs cap eth_getLogs near 10,000
21
+ * blocks and rate-limit the walk, which is the same cost that moved coin listing off the chain and
22
+ * onto an indexer. balanceOf answers the question the tools actually ask in one eth_call.
23
+ */
24
+ export const identityRegistryAbi = parseAbi([
25
+ "function register(string metadataURI) returns (uint256 agentId)",
26
+ "function balanceOf(address owner) view returns (uint256)",
27
+ "function ownerOf(uint256 tokenId) view returns (address)",
28
+ "function tokenURI(uint256 tokenId) view returns (string)",
29
+ ]);
30
+ /** Longest metadata URI this server encodes; a pointer, not a document. */
31
+ export const MAX_METADATA_URI_BYTES = 512;
32
+ /** `balanceOf(owner)`: whether the wallet holds an agent identity, and how many it holds. */
33
+ export async function readAgentStatus(rpc, registry, owner) {
34
+ const balance = big(await rpc.read({ address: registry, abi: identityRegistryAbi, functionName: "balanceOf", args: [owner] }));
35
+ return { address: owner, registered: balance > 0n, identities: Number(balance) };
36
+ }
37
+ /** Most wallets one listing checks against the registry: one eth_call each, batched by the transport. */
38
+ export const AGENT_LOOKUP_MAX = 100;
39
+ /**
40
+ * Which of these wallets hold an identity, as a set of lowercase addresses. This is how a coin list is
41
+ * filtered to agent launches: the flag is a property of the creator, not of the coin, so it is read
42
+ * per creator at call time.
43
+ *
44
+ * A read that fails is counted, not guessed: "the registry did not answer" is not "this wallet holds
45
+ * none", and the caller has to be able to say how many creators went unchecked.
46
+ */
47
+ export async function readAgentOwners(rpc, registry, owners) {
48
+ const unique = [...new Set(owners.map((o) => o.toLowerCase()))].slice(0, AGENT_LOOKUP_MAX);
49
+ const agents = new Set();
50
+ let failed = 0;
51
+ await mapLimit(unique, 8, async (owner) => {
52
+ try {
53
+ const balance = big(await rpc.read({ address: registry, abi: identityRegistryAbi, functionName: "balanceOf", args: [owner] }));
54
+ if (balance > 0n)
55
+ agents.add(owner);
56
+ }
57
+ catch {
58
+ failed += 1;
59
+ }
60
+ });
61
+ return { agents, checked: unique.length, failed };
62
+ }
63
+ /**
64
+ * One identity by agent id: the ERC-721 tokenId that `register` returns, also readable from the
65
+ * Transfer log in the registration receipt. The metadata URI comes back empty for an identity
66
+ * registered without one, which is common on Arc Testnet (tokenURI(1) is the empty string).
67
+ */
68
+ export async function readAgent(rpc, registry, agentId) {
69
+ const [owner, uri] = await Promise.all([
70
+ rpc.read({ address: registry, abi: identityRegistryAbi, functionName: "ownerOf", args: [agentId] }),
71
+ rpc.read({ address: registry, abi: identityRegistryAbi, functionName: "tokenURI", args: [agentId] }),
72
+ ]);
73
+ return { agentId: agentId.toString(), owner: addrOf(owner), metadataURI: str(uri) };
74
+ }
75
+ /** `registry.register(metadataURI)`: mints an identity to whoever signs and returns its agent id. Carries no value. */
76
+ export function encodeRegisterAgent(registry, metadataURI, chainId) {
77
+ const data = encodeFunctionData({ abi: identityRegistryAbi, functionName: "register", args: [metadataURI] });
78
+ return {
79
+ to: registry,
80
+ data,
81
+ value: toHex(0n),
82
+ valueWei: "0",
83
+ chainId,
84
+ description: `ERC-8004 IdentityRegistry.register(metadataURI=${metadataURI === "" ? "(empty)" : metadataURI}): mints an agent identity to the wallet that signs`,
85
+ };
86
+ }
87
+ //# sourceMappingURL=agents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KA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AAE,CAAC;AACtF,CAAC;AAED,uHAAuH;AACvH,MAAM,UAAU,mBAAmB,CAAC,QAAiB,EAAE,WAAmB,EAAE,OAAe;IACzF,MAAM,IAAI,GAAG,kBAAkB,CAAC,EAAE,GAAG,EAAE,mBAAmB,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC7G,OAAO;QACL,EAAE,EAAE,QAAQ;QACZ,IAAI;QACJ,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;QAChB,QAAQ,EAAE,GAAG;QACb,OAAO;QACP,WAAW,EAAE,kDAAkD,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,qDAAqD;KACjK,CAAC;AACJ,CAAC"}
package/dist/chain.js CHANGED
@@ -29,7 +29,9 @@ export function viemRpc(rpcUrl, chainId) {
29
29
  logIndex: l.logIndex ?? 0,
30
30
  }));
31
31
  },
32
- blockNumber: () => client.getBlockNumber(),
32
+ // viem caches the block number for four seconds by default; the log scan uses it as the top of
33
+ // its newest window, so a coin launched in that window was missed. Always read the real head.
34
+ blockNumber: () => client.getBlockNumber({ cacheTime: 0 }),
33
35
  };
34
36
  }
35
37
  /** Runs `fn` over `items` with at most `limit` in flight, preserving order. */
package/dist/chain.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"chain.js","sourceRoot":"","sources":["../src/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAA+D,MAAM,MAAM,CAAC;AACtI,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAatD,oFAAoF;AACpF,MAAM,UAAU,QAAQ,CAAC,OAAe,EAAE,MAAc;IACtD,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,WAAW,CAAC;QACjB,EAAE,EAAE,OAAO;QACX,IA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C9F,WAAW,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;KAC3D,CAAC;AACJ,CAAC;AAED,+EAA+E;AAC/E,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAO,KAAmB,EAAE,KAAa,EAAE,EAA0C;IACjH,MAAM,GAAG,GAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;QAC/E,OAAO,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YAC3B,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;YACjB,GAAG,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,CAAC,CAAC,CAAC;QACtC,CAAC;IACH,CAAC,CAAC,CAAC;IACH,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,GAAG,CAAC;AACb,CAAC"}
package/dist/coins.d.ts CHANGED
@@ -33,7 +33,7 @@ export type CoinSummary = {
33
33
  logo?: string;
34
34
  description?: string;
35
35
  launchConfigId?: number;
36
- source: "subgraph" | "chain";
36
+ source: "subgraph" | "api" | "chain";
37
37
  };
38
38
  export declare const isNative: (pairToken: string) => boolean;
39
39
  export declare const quoteDecimalsOf: (pairToken: string) => number;
package/dist/config.d.ts CHANGED
@@ -23,11 +23,21 @@ export declare const DEPLOYMENTS: Record<number, {
23
23
  eurc?: Address;
24
24
  /** Deployment block. The no-subgraph listing scans TokenLaunched from here; a public RPC refuses a scan from 0. */
25
25
  startBlock?: number;
26
+ /** The site API that serves this deployment. Production serves mainnet; the testnet site serves the testnet factory. */
27
+ apiUrl?: string;
28
+ /**
29
+ * Arc's ERC-8004 IdentityRegistry, not one of ours. It is an ERC-1967 proxy, so Arc can upgrade the
30
+ * implementation behind this address at any time. Arc publishes one for Arc Testnet only, so a chain
31
+ * without an entry here has no registry to read rather than a missing configuration.
32
+ */
33
+ agentRegistry?: Address;
26
34
  }>;
27
35
  export declare const DEFAULT_RPC_URL: string;
28
36
  export type Config = {
29
37
  /** JSON-RPC endpoint for Arc. */
30
38
  rpcUrl: string;
39
+ /** PARABOLIC_RPC_URL was set to something other than the deployment's own endpoint (a fork, a private node). */
40
+ rpcOverridden?: boolean;
31
41
  /** 5042002 = Arc Testnet, 5042 = Arc mainnet (id unofficial until Circle publishes it). */
32
42
  chainId: number;
33
43
  /** ParabolicLaunchFactory. Required for on-chain coin lookups and for building launch transactions. */
@@ -47,6 +57,8 @@ export type Config = {
47
57
  hook?: Address;
48
58
  /** Arc's Memo system contract. */
49
59
  arcMemo: Address;
60
+ /** Arc's ERC-8004 IdentityRegistry. Optional; undefined on a chain where Arc has published none. */
61
+ agentRegistry?: Address;
50
62
  /** Launch config index on the factory; preset 0 is the adopted $5K / $12,500 curve. */
51
63
  launchConfigId: bigint;
52
64
  /** First block to scan for `TokenLaunched` logs when listing without a subgraph. */
package/dist/config.js CHANGED
@@ -19,13 +19,16 @@ export const DEFAULT_API_URL = "https://www.parabolic.family/api/v1";
19
19
  export const DEPLOYMENTS = {
20
20
  5042002: {
21
21
  rpcUrl: "https://rpc.testnet.arc.io",
22
- factory: "0xDA14d24385483c5876e0E170c6135F14Fc3BCEc3",
23
- memoRouter: "0x32E6e071eA1Fe58DF86C4D3f419a8BAF2118f505",
22
+ factory: "0x2E06eD99bD7D164458847D186B282B23700b2C63",
23
+ memoRouter: "0x1381567ea31a094e64f6B39Bd880d0b59c48e08F",
24
24
  eurc: "0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a",
25
- startBlock: 61040913,
25
+ startBlock: 61736670,
26
+ apiUrl: "https://parabolic-testnet.vercel.app/api/v1",
27
+ agentRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e",
26
28
  },
27
29
  5042: {
28
30
  rpcUrl: "https://rpc.arc.io",
31
+ apiUrl: DEFAULT_API_URL,
29
32
  },
30
33
  };
31
34
  export const DEFAULT_RPC_URL = DEPLOYMENTS[DEFAULT_CHAIN_ID].rpcUrl;
@@ -38,8 +41,9 @@ export const ENV_VARS = [
38
41
  ["PARABOLIC_SUBGRAPH_URL", "Parabolic subgraph endpoint (listing, holders, volume, protocol stats)"],
39
42
  ["PARABOLIC_EURC", "ERC-20 EURC address (EURC-quoted launches only)"],
40
43
  ["PARABOLIC_HOOK", "ParabolicHook address (optional; read from the factory when unset)"],
41
- ["PARABOLIC_API_URL", `Parabolic public read API for listings (default ${DEFAULT_API_URL}; "" to use a log scan instead)`],
44
+ ["PARABOLIC_API_URL", `Parabolic public read API for listings (default: the site that serves the chain's deployment, ${DEPLOYMENTS[DEFAULT_CHAIN_ID].apiUrl} on Arc Testnet, ${DEFAULT_API_URL} on Arc; "" to use a log scan instead)`],
42
45
  ["PARABOLIC_ARC_MEMO", `Arc Memo system contract (default ${ARC_MEMO_DEFAULT})`],
46
+ ["PARABOLIC_AGENT_REGISTRY", `Arc's ERC-8004 IdentityRegistry (agent_status, build_register_agent_tx and the list_coins pair "Agents" filter; default ${DEPLOYMENTS[DEFAULT_CHAIN_ID].agentRegistry} on Arc Testnet, none published for Arc yet)`],
43
47
  ["PARABOLIC_LAUNCH_CONFIG_ID", "factory launch config index (default 0)"],
44
48
  ["PARABOLIC_FACTORY_START_BLOCK", "first block for the TokenLaunched log scan (default: the factory's deployment block for this chain)"],
45
49
  ];
@@ -67,14 +71,17 @@ export function configFromEnv(env = process.env) {
67
71
  const known = DEPLOYMENTS[chainId];
68
72
  return {
69
73
  rpcUrl: env.PARABOLIC_RPC_URL?.trim() || known?.rpcUrl || DEFAULT_RPC_URL,
74
+ // A different endpoint than the deployment's may be a fork or a private node with other state.
75
+ rpcOverridden: Boolean(env.PARABOLIC_RPC_URL?.trim()) && env.PARABOLIC_RPC_URL.trim() !== known?.rpcUrl,
70
76
  chainId,
71
77
  factory: addr("PARABOLIC_FACTORY", env.PARABOLIC_FACTORY) ?? known?.factory,
72
78
  memoRouter: addr("PARABOLIC_MEMO_ROUTER", env.PARABOLIC_MEMO_ROUTER) ?? known?.memoRouter,
73
- apiUrl: env.PARABOLIC_API_URL === undefined ? DEFAULT_API_URL : env.PARABOLIC_API_URL.trim() || undefined,
79
+ apiUrl: env.PARABOLIC_API_URL === undefined ? known?.apiUrl ?? DEFAULT_API_URL : env.PARABOLIC_API_URL.trim() || undefined,
74
80
  subgraphUrl: env.PARABOLIC_SUBGRAPH_URL?.trim() || undefined,
75
81
  eurc: addr("PARABOLIC_EURC", env.PARABOLIC_EURC) ?? known?.eurc,
76
82
  hook: addr("PARABOLIC_HOOK", env.PARABOLIC_HOOK),
77
83
  arcMemo: addr("PARABOLIC_ARC_MEMO", env.PARABOLIC_ARC_MEMO) ?? ARC_MEMO_DEFAULT,
84
+ agentRegistry: addr("PARABOLIC_AGENT_REGISTRY", env.PARABOLIC_AGENT_REGISTRY) ?? known?.agentRegistry,
78
85
  launchConfigId: BigInt(int("PARABOLIC_LAUNCH_CONFIG_ID", env.PARABOLIC_LAUNCH_CONFIG_ID, 0)),
79
86
  factoryStartBlock: BigInt(int("PARABOLIC_FACTORY_START_BLOCK", env.PARABOLIC_FACTORY_START_BLOCK, known?.startBlock ?? 0)),
80
87
  };
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAgB,MAAM,MAAM,CAAC;AAE3D,gHAAgH;AAChH,MAAM,CAAC,MAAM,gBAAgB,GAAY,4CAA4C,CAAC;AACtF,mGAAmG;AACnG,MAAM,CAAC,MAAM,SAAS,GAAY,4CAA4C,CAAC;AAC/E,+EAA+E;AAC/E,MA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abolicHook takes it on the pool). Split: creator 50 / protocol 30 / buyback vault 20 (vault vests 5 years). On-chain: protocolFeeShareBps of the fee goes to protocol; buybackBurnBps of the remaining creator slice goes to the buyback.",
19
19
  "- Creator tax: optional 0–5% (0–500 bps), fixed at launch, charged like the fee on buys and sells, paid entirely to the creator.",
20
20
  "- Snipe tax: 93% (9,300 bps) at launch decaying to 0 over 5 s along a quadratic ease-out (remaining² / window²); capped at 10,000 − fee − creatorTax − 1 bps, which 9,300 stays below at every legal creator tax, so it is charged as written. Buys only. Only the deployer is exempt, for the buy in their own launch; there is no other exemption pathway. Snipe revenue is split like the base fee.",
21
- "- Referral: a bytes8 referral code (first 8 bytes of the referrer's address) carried in the Arc memo of a routed buy earns 10% of the protocol share.",
21
+ "- Referral: a bytes8 referral code (first 8 bytes of the referrer's address) carried in the Arc memo of a routed buy earns 10% of the fee.",
22
22
  "- Dev buy (fair launch): the creator's opening buy is snipe-tax exempt. ParabolicMemoRouter.launchAndBuy (native USDC; value = launch fee + buy) and launchAndBuyWithToken (ERC-20 quote; value = launch fee, buy pulled after an approval) place it inside the launch transaction, before anyone else can trade. The router forwards no exemption list and requires creatorFeeRecipient to be zero or the signer (FeeRecipientMustBeCreator); buyQuoteIn must be non-zero (ZeroBuyAmount). Without the router the buy is a second transaction to the new curve right after launch.",
23
23
  "",
24
24
  "CURVE MECHANICS (what the tools compute)",
@@ -40,10 +40,10 @@ export function docsText(config) {
40
40
  "THIS SERVER",
41
41
  `- Chain: ${chainName(config.chainId)} (${config.chainId}), RPC ${endpointHost(config.rpcUrl)}.`,
42
42
  `- Factory: ${set(config.factory)} · Memo router: ${set(config.memoRouter)} · Subgraph: ${config.subgraphUrl ? endpointHost(config.subgraphUrl) : "(not configured)"} · EURC: ${set(config.eurc)} · Hook: ${config.hook ?? "(read from factory)"} · Launch config id: ${config.launchConfigId}.`,
43
- "- Tools: parabolic.list_coins, parabolic.get_coin, parabolic.quote_buy, parabolic.quote_sell, parabolic.build_buy_tx, parabolic.build_sell_tx, parabolic.build_launch_tx, parabolic.protocol_stats, parabolic.docs. Resources: parabolic://docs/parameters, parabolic://coins/{address}.",
43
+ "- Tools: parabolic.list_coins, parabolic.get_coin, parabolic.quote_buy, parabolic.quote_sell, parabolic.build_buy_tx, parabolic.build_sell_tx, parabolic.build_launch_tx, parabolic.protocol_stats, parabolic.agent_status, parabolic.build_register_agent_tx, parabolic.docs. Resources: parabolic://docs/parameters, parabolic://coins/{address}.",
44
44
  "- It never holds keys, signs, sends or broadcasts. build_* tools return unsigned { to, data, value, chainId } for the caller's wallet. Quotes are read from chain at call time and can move before a transaction lands.",
45
45
  `- build_launch_tx: with PARABOLIC_MEMO_ROUTER set and devBuy > 0 it returns one ParabolicMemoRouter.launchAndBuy transaction (creatorFeeRecipient zero, minTokensOut from the curve math on the launch config's phantom quote, value = launch fee + devBuy)${config.memoRouter ? " (router configured)" : " (router not configured here)"}; otherwise factory.launchToken plus, for a devBuy, the two-step plan (buy calldata to send to the new curve).`,
46
- "- The factory ABI has no enumeration function; listing uses the subgraph, or a TokenLaunched log scan of the factory (newest 50) when only PARABOLIC_FACTORY is set.",
46
+ "- The factory ABI has no enumeration function; listing uses the subgraph when set, otherwise Parabolic's public read API (PARABOLIC_API_URL), and a TokenLaunched log scan of the factory only when both are unavailable.",
47
47
  "",
48
48
  "ENVIRONMENT",
49
49
  ...ENV_VARS.map(([k, v]) => `- ${k}: ${v}`),
package/dist/docs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,kJAAkJ;AAClJ,MAAM,UAAU,QAAQ,CAAC,MAAc;IACrC,MAAM,GAAG,GAAG,CAAC,CAAqB,EAAE,EAAE,CAAC,CAAC,I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Y,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,kBAAkB,YAAY,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,IAAI,IAAI,qBAAqB,wBAAwB,MAAM,CAAC,cAAc,GAAG;QAChS,qVAAqV;QACrV,yNAAyN;QACzN,8PAA8P,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,+BAA+B,gHAAgH;QAC1b,2NAA2N;QAC3N,EAAE;QACF,aAAa;QACb,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;KAC5C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
package/dist/format.js CHANGED
@@ -57,7 +57,7 @@ export function safeMessage(e) {
57
57
  // the cause, so a rate limit surfaced as "Request exceeds defined limit" with no way to tell why.
58
58
  const headline = lines[0] ?? "Request failed";
59
59
  // Keep the diagnostic lines and drop the ones that carry the endpoint or the request body.
60
- const diagnostics = lines.slice(1).filter((l) => /^(Status|Details|Code):/.test(l));
60
+ const diagnostics = lines.slice(1).filter((l, i, all) => /^(Status|Details|Code|Error|Reason):/.test(l) || (i === 0 && /:$/.test(all[0] ?? "") && !/^(URL|Request body|Version):/.test(l)));
61
61
  const kept = [headline, ...diagnostics].join(" ");
62
62
  return `${kept.replace(/https?:\/\/[^\s"']+/g, "<endpoint>")} (endpoint masked)`;
63
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAgB,MAAM,MAAM,CAAC;AAEpF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,CAAU,EAAW,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,CAA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