@arcadia-finance/mcp-server 0.1.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 (59) hide show
  1. package/LICENSE.md +97 -0
  2. package/README.md +186 -0
  3. package/dist/abis/account.json +1012 -0
  4. package/dist/abis/account_v4.json +1027 -0
  5. package/dist/abis/chainlink.json +509 -0
  6. package/dist/abis/erc20.json +299 -0
  7. package/dist/abis/factory.json +938 -0
  8. package/dist/abis/gauge_helper.json +84 -0
  9. package/dist/abis/index.js +26 -0
  10. package/dist/abis/mainreg.json +1172 -0
  11. package/dist/abis/nftmanager.json +1221 -0
  12. package/dist/abis/nftmanager_v4.json +1297 -0
  13. package/dist/abis/pool.json +2136 -0
  14. package/dist/abis/slipstream_nftmanager.json +1312 -0
  15. package/dist/abis/staked_aero_am.json +1220 -0
  16. package/dist/abis/staked_slipstream_am.json +1131 -0
  17. package/dist/abis/state_viewer.json +365 -0
  18. package/dist/abis/tranche.json +1004 -0
  19. package/dist/abis/wrapped_aero_am.json +1232 -0
  20. package/dist/abis/wrapped_staked_slipstream_am.json +338 -0
  21. package/dist/clients/api.js +189 -0
  22. package/dist/clients/chain.js +30 -0
  23. package/dist/config/addresses.js +94 -0
  24. package/dist/config/chains.js +31 -0
  25. package/dist/index.js +29 -0
  26. package/dist/skills/clamm-liquidity/SKILL.md +167 -0
  27. package/dist/skills/clamm-liquidity/automation.md +138 -0
  28. package/dist/skills/clamm-liquidity/selection.md +183 -0
  29. package/dist/skills/clamm-liquidity/strategies.md +337 -0
  30. package/dist/tools/advanced/account-metadata.js +46 -0
  31. package/dist/tools/advanced/add-liquidity.js +310 -0
  32. package/dist/tools/advanced/close-position.js +208 -0
  33. package/dist/tools/advanced/format-response.js +26 -0
  34. package/dist/tools/advanced/position-actions.js +95 -0
  35. package/dist/tools/advanced/remove-liquidity.js +68 -0
  36. package/dist/tools/advanced/repay-with-collateral.js +66 -0
  37. package/dist/tools/advanced/swap.js +64 -0
  38. package/dist/tools/index.js +52 -0
  39. package/dist/tools/read/accounts.js +243 -0
  40. package/dist/tools/read/allowances.js +86 -0
  41. package/dist/tools/read/assets.js +54 -0
  42. package/dist/tools/read/balances.js +93 -0
  43. package/dist/tools/read/guides.js +59 -0
  44. package/dist/tools/read/points.js +25 -0
  45. package/dist/tools/read/pools.js +48 -0
  46. package/dist/tools/read/protocol.js +94 -0
  47. package/dist/tools/write/approve.js +99 -0
  48. package/dist/tools/write/borrow.js +87 -0
  49. package/dist/tools/write/configure-asset-manager.js +258 -0
  50. package/dist/tools/write/create-account.js +112 -0
  51. package/dist/tools/write/deposit.js +104 -0
  52. package/dist/tools/write/repay.js +56 -0
  53. package/dist/tools/write/set-asset-manager.js +65 -0
  54. package/dist/tools/write/sign-and-send.js +90 -0
  55. package/dist/tools/write/withdraw.js +114 -0
  56. package/dist/types/api.js +5 -0
  57. package/dist/utils/attribution.js +20 -0
  58. package/dist/utils/validation.js +17 -0
  59. package/package.json +67 -0
@@ -0,0 +1,93 @@
1
+ import { z } from "zod";
2
+ import { formatUnits } from "viem";
3
+ import { getPublicClient } from "../../clients/chain.js";
4
+ const ERC20_ABI = [
5
+ {
6
+ type: "function",
7
+ name: "balanceOf",
8
+ inputs: [{ type: "address" }],
9
+ outputs: [{ type: "uint256" }],
10
+ stateMutability: "view",
11
+ },
12
+ {
13
+ type: "function",
14
+ name: "decimals",
15
+ inputs: [],
16
+ outputs: [{ type: "uint8" }],
17
+ stateMutability: "view",
18
+ },
19
+ {
20
+ type: "function",
21
+ name: "symbol",
22
+ inputs: [],
23
+ outputs: [{ type: "string" }],
24
+ stateMutability: "view",
25
+ },
26
+ ];
27
+ export function registerBalanceTools(server, chains) {
28
+ server.tool("get_wallet_balances", "Get native ETH and ERC20 token balances for a wallet address. Reads directly from chain via RPC multicall. Use before build_add_liquidity_tx or build_deposit_tx to verify the wallet has sufficient tokens.", {
29
+ wallet_address: z.string().describe("Wallet address to check balances for"),
30
+ token_addresses: z.array(z.string()).describe("ERC20 token contract addresses to check"),
31
+ chain_id: z
32
+ .number()
33
+ .default(8453)
34
+ .describe("Chain ID: 8453 (Base), 10 (Optimism), or 130 (Unichain)"),
35
+ }, async ({ wallet_address, token_addresses, chain_id }) => {
36
+ try {
37
+ const client = getPublicClient(chain_id, chains);
38
+ const wallet = wallet_address;
39
+ // Build multicall: for each token get balanceOf, decimals, symbol
40
+ const calls = token_addresses.flatMap((addr) => [
41
+ {
42
+ address: addr,
43
+ abi: ERC20_ABI,
44
+ functionName: "balanceOf",
45
+ args: [wallet],
46
+ },
47
+ { address: addr, abi: ERC20_ABI, functionName: "decimals" },
48
+ { address: addr, abi: ERC20_ABI, functionName: "symbol" },
49
+ ]);
50
+ const [nativeBalance, ...multicallResults] = await Promise.all([
51
+ client.getBalance({ address: wallet }),
52
+ ...(calls.length > 0 ? [client.multicall({ contracts: calls, allowFailure: true })] : []),
53
+ ]);
54
+ const results = (multicallResults[0] ?? []);
55
+ const tokens = token_addresses.map((addr, i) => {
56
+ const balRes = results[i * 3];
57
+ const decRes = results[i * 3 + 1];
58
+ const symRes = results[i * 3 + 2];
59
+ const balance = balRes?.status === "success" ? String(balRes.result) : "0";
60
+ const decimals = decRes?.status === "success" ? Number(decRes.result) : 18;
61
+ const symbol = symRes?.status === "success" ? String(symRes.result) : "???";
62
+ return {
63
+ address: addr,
64
+ symbol,
65
+ decimals,
66
+ balance,
67
+ formatted: formatUnits(BigInt(balance), decimals),
68
+ };
69
+ });
70
+ const result = {
71
+ native: {
72
+ symbol: "ETH",
73
+ balance: String(nativeBalance),
74
+ formatted: formatUnits(nativeBalance, 18),
75
+ },
76
+ tokens,
77
+ };
78
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
79
+ }
80
+ catch (err) {
81
+ return {
82
+ content: [
83
+ {
84
+ type: "text",
85
+ text: `Error: ${err instanceof Error ? err.message : String(err)}`,
86
+ },
87
+ ],
88
+ isError: true,
89
+ };
90
+ }
91
+ });
92
+ }
93
+ //# sourceMappingURL=balances.js.map
@@ -0,0 +1,59 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { fileURLToPath } from "node:url";
3
+ import { dirname, resolve } from "node:path";
4
+ import { z } from "zod";
5
+ const TOPICS = {
6
+ overview: {
7
+ file: "SKILL.md",
8
+ summary: "Tool catalog, token/contract/lending pool addresses, asset manager addresses, account versions",
9
+ },
10
+ automation: {
11
+ file: "automation.md",
12
+ summary: "Rebalancer, compounder, yield claimer, merkl operator, CoW swapper setup and addresses",
13
+ },
14
+ strategies: {
15
+ file: "strategies.md",
16
+ summary: "Step-by-step strategy templates: delta neutral leveraged LP, protocol owned liquidity, closing sequences",
17
+ },
18
+ selection: {
19
+ file: "selection.md",
20
+ summary: "Strategy evaluation framework: pool selection, range width, leverage sizing, automation combos, exit signals",
21
+ },
22
+ };
23
+ const TOPIC_KEYS = Object.keys(TOPICS);
24
+ export function registerGuideTools(server) {
25
+ const thisDir = dirname(fileURLToPath(import.meta.url));
26
+ const skillsDir = resolve(thisDir, "..", "..", "..", "skills", "clamm-liquidity");
27
+ const guides = new Map();
28
+ for (const [topic, { file }] of Object.entries(TOPICS)) {
29
+ try {
30
+ guides.set(topic, readFileSync(resolve(skillsDir, file), "utf-8"));
31
+ }
32
+ catch {
33
+ guides.set(topic, `Guide "${topic}" is not available in this installation.`);
34
+ }
35
+ }
36
+ server.tool("get_guide", "Get Arcadia workflow guides and reference documentation. Call this before multi-step workflows (opening LP positions, enabling automation, closing positions) or when you need contract addresses, asset manager addresses, or strategy parameters. Topics: overview (addresses + tool catalog), automation (rebalancer/compounder setup), strategies (step-by-step templates), selection (how to evaluate and parameterize strategies).", {
37
+ topic: z
38
+ .enum(TOPIC_KEYS)
39
+ .describe("overview = addresses + tool catalog, automation = rebalancer/compounder/claimer setup, strategies = step-by-step LP templates, selection = pool evaluation + leverage sizing"),
40
+ }, async ({ topic }) => {
41
+ try {
42
+ return {
43
+ content: [{ type: "text", text: guides.get(topic) }],
44
+ };
45
+ }
46
+ catch (err) {
47
+ return {
48
+ content: [
49
+ {
50
+ type: "text",
51
+ text: `Error: ${err instanceof Error ? err.message : String(err)}`,
52
+ },
53
+ ],
54
+ isError: true,
55
+ };
56
+ }
57
+ });
58
+ }
59
+ //# sourceMappingURL=guides.js.map
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ export function registerPointsTools(server, api) {
3
+ server.tool("get_points", "Get Arcadia points balance for a wallet, or the points leaderboard if no wallet is specified.", {
4
+ wallet_address: z.string().optional().describe("Wallet address for points balance"),
5
+ }, async ({ wallet_address }) => {
6
+ try {
7
+ const result = wallet_address
8
+ ? await api.getPoints(wallet_address)
9
+ : await api.getPointsLeaderboard();
10
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
11
+ }
12
+ catch (err) {
13
+ return {
14
+ content: [
15
+ {
16
+ type: "text",
17
+ text: `Error: ${err instanceof Error ? err.message : String(err)}`,
18
+ },
19
+ ],
20
+ isError: true,
21
+ };
22
+ }
23
+ });
24
+ }
25
+ //# sourceMappingURL=points.js.map
@@ -0,0 +1,48 @@
1
+ import { z } from "zod";
2
+ export function registerPoolTools(server, api) {
3
+ server.tool("get_lending_pools", "Get Arcadia lending pool data: TVL, supply/borrow APY, utilization, available liquidity. Returns all pools, or a single pool with APY history if pool_address is provided.", {
4
+ pool_address: z
5
+ .string()
6
+ .optional()
7
+ .describe("Pool address for detailed info with APY history"),
8
+ days: z.number().default(14).describe("Number of days of APY history"),
9
+ chain_id: z
10
+ .number()
11
+ .default(8453)
12
+ .describe("Chain ID: 8453 (Base), 10 (Optimism), or 130 (Unichain)"),
13
+ }, async ({ pool_address, days, chain_id }) => {
14
+ try {
15
+ if (pool_address) {
16
+ const [poolsData, apy_history] = await Promise.all([
17
+ api.getPoolsData(chain_id),
18
+ api.getPoolApyHistory(chain_id, pool_address, days),
19
+ ]);
20
+ const pools = Array.isArray(poolsData)
21
+ ? poolsData
22
+ : poolsData.data;
23
+ const pool = Array.isArray(pools)
24
+ ? pools.find((p) => String(p.pool_address ?? p.address).toLowerCase() === pool_address.toLowerCase())
25
+ : undefined;
26
+ return {
27
+ content: [
28
+ { type: "text", text: JSON.stringify({ pool, apy_history }, null, 2) },
29
+ ],
30
+ };
31
+ }
32
+ const result = await api.getPools(chain_id);
33
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
34
+ }
35
+ catch (err) {
36
+ return {
37
+ content: [
38
+ {
39
+ type: "text",
40
+ text: `Error: ${err instanceof Error ? err.message : String(err)}`,
41
+ },
42
+ ],
43
+ isError: true,
44
+ };
45
+ }
46
+ });
47
+ }
48
+ //# sourceMappingURL=pools.js.map
@@ -0,0 +1,94 @@
1
+ import { z } from "zod";
2
+ export function registerProtocolTools(server, api) {
3
+ server.tool("get_strategies", "Get Arcadia LP strategies. Use featured_only=true for curated top strategies (recommended first call). Use strategy_id for full detail on a specific strategy — includes APY per range width (narrower range = higher APY but more rebalancing cost/risk). Without filters, returns a compact summary with 7d avg APY for the strategy's default range. Increase limit or use offset for pagination.", {
4
+ strategy_id: z.number().optional().describe("Strategy ID for full detail"),
5
+ featured_only: z
6
+ .boolean()
7
+ .default(false)
8
+ .describe("Return only featured/curated strategies (recommended)"),
9
+ limit: z
10
+ .number()
11
+ .default(25)
12
+ .describe("Max strategies to return in compact list (default 25)"),
13
+ offset: z.number().default(0).describe("Skip first N strategies for pagination"),
14
+ chain_id: z
15
+ .number()
16
+ .default(8453)
17
+ .describe("Chain ID: 8453 (Base), 10 (Optimism), or 130 (Unichain)"),
18
+ }, async ({ strategy_id, featured_only, limit, offset, chain_id }) => {
19
+ try {
20
+ let result;
21
+ if (strategy_id !== undefined) {
22
+ result = await api.getStrategyInfo(chain_id, strategy_id);
23
+ }
24
+ else if (featured_only) {
25
+ result = await api.getFeatured(chain_id);
26
+ }
27
+ else {
28
+ const all = await api.getStrategies(chain_id);
29
+ const list = Array.isArray(all) ? all : all.data;
30
+ if (Array.isArray(list)) {
31
+ const total = list.length;
32
+ const effectiveOffset = offset ?? 0;
33
+ const effectiveLimit = limit ?? 25;
34
+ const page = list.slice(effectiveOffset, effectiveOffset + effectiveLimit);
35
+ result = {
36
+ total,
37
+ offset: effectiveOffset,
38
+ limit: effectiveLimit,
39
+ strategies: page.map((s) => ({
40
+ strategy_id: s.strategy_id,
41
+ name: s.strategy_name,
42
+ strategy_apy_7d: s.strategy_apy,
43
+ tvl: s.tvl,
44
+ underlyings: s.underlyings?.map((u) => ({
45
+ address: u.underlying_address,
46
+ symbol: u.underlying_symbol,
47
+ })),
48
+ max_leverage: s.max_leverage,
49
+ })),
50
+ };
51
+ }
52
+ else {
53
+ result = all;
54
+ }
55
+ }
56
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
57
+ }
58
+ catch (err) {
59
+ return {
60
+ content: [
61
+ {
62
+ type: "text",
63
+ text: `Error: ${err instanceof Error ? err.message : String(err)}`,
64
+ },
65
+ ],
66
+ isError: true,
67
+ };
68
+ }
69
+ });
70
+ server.tool("get_recommendation", "Get a rebalancing recommendation for an Arcadia account — suggests asset changes to optimize yield. Uses 1d APY (not 7d like get_strategies list view), so recommended strategies may differ from the list ranking.", {
71
+ account_address: z.string().describe("Arcadia account address"),
72
+ chain_id: z
73
+ .number()
74
+ .default(8453)
75
+ .describe("Chain ID: 8453 (Base), 10 (Optimism), or 130 (Unichain)"),
76
+ }, async ({ account_address, chain_id }) => {
77
+ try {
78
+ const result = await api.getRecommendation(chain_id, account_address);
79
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
80
+ }
81
+ catch (err) {
82
+ return {
83
+ content: [
84
+ {
85
+ type: "text",
86
+ text: `Error: ${err instanceof Error ? err.message : String(err)}`,
87
+ },
88
+ ],
89
+ isError: true,
90
+ };
91
+ }
92
+ });
93
+ }
94
+ //# sourceMappingURL=protocol.js.map
@@ -0,0 +1,99 @@
1
+ import { z } from "zod";
2
+ import { encodeFunctionData } from "viem";
3
+ import { appendDataSuffix } from "../../utils/attribution.js";
4
+ const ERC20_APPROVE_ABI = [
5
+ {
6
+ type: "function",
7
+ name: "approve",
8
+ inputs: [
9
+ { name: "spender", type: "address" },
10
+ { name: "amount", type: "uint256" },
11
+ ],
12
+ outputs: [{ name: "", type: "bool" }],
13
+ stateMutability: "nonpayable",
14
+ },
15
+ ];
16
+ const ERC721_SET_APPROVAL_FOR_ALL_ABI = [
17
+ {
18
+ type: "function",
19
+ name: "setApprovalForAll",
20
+ inputs: [
21
+ { name: "operator", type: "address" },
22
+ { name: "approved", type: "bool" },
23
+ ],
24
+ outputs: [],
25
+ stateMutability: "nonpayable",
26
+ },
27
+ ];
28
+ const MAX_UINT256 = 2n ** 256n - 1n;
29
+ export function registerApproveTool(server, _chains) {
30
+ server.tool("build_approve_tx", "Build an unsigned approval transaction. For ERC20 tokens: generates approve(spender, amount). For ERC721/ERC1155 NFTs (e.g. LP positions): generates setApprovalForAll(operator, true). Required before build_deposit_tx or build_add_liquidity_tx (when depositing from wallet). Tip: call get_allowance first to check if approval already exists — skip this if the current allowance is sufficient.", {
31
+ token_address: z.string().describe("Token contract address to approve"),
32
+ spender_address: z
33
+ .string()
34
+ .describe("Address being approved — use the Arcadia account address for deposits"),
35
+ asset_type: z
36
+ .enum(["erc20", "erc721", "erc1155"])
37
+ .default("erc20")
38
+ .describe("Token type: 'erc20' (default) for fungible tokens, 'erc721' or 'erc1155' for NFTs (LP positions)"),
39
+ amount: z
40
+ .string()
41
+ .default("max_uint256")
42
+ .describe("ERC20 only: amount in raw units, or 'max_uint256' for unlimited. Ignored for NFTs."),
43
+ chain_id: z
44
+ .number()
45
+ .default(8453)
46
+ .describe("Chain ID: 8453 (Base), 10 (Optimism), or 130 (Unichain)"),
47
+ }, async (params) => {
48
+ try {
49
+ let data;
50
+ let description;
51
+ if (params.asset_type === "erc721" || params.asset_type === "erc1155") {
52
+ data = encodeFunctionData({
53
+ abi: ERC721_SET_APPROVAL_FOR_ALL_ABI,
54
+ functionName: "setApprovalForAll",
55
+ args: [params.spender_address, true],
56
+ });
57
+ description = `Approve ${params.spender_address} to transfer all ${params.asset_type.toUpperCase()} tokens from ${params.token_address}`;
58
+ }
59
+ else {
60
+ const amount = !params.amount || params.amount === "max_uint256" ? MAX_UINT256 : BigInt(params.amount);
61
+ data = encodeFunctionData({
62
+ abi: ERC20_APPROVE_ABI,
63
+ functionName: "approve",
64
+ args: [params.spender_address, amount],
65
+ });
66
+ description = `Approve ${params.spender_address} to spend ${params.token_address}`;
67
+ }
68
+ data = appendDataSuffix(data);
69
+ return {
70
+ content: [
71
+ {
72
+ type: "text",
73
+ text: JSON.stringify({
74
+ description,
75
+ transaction: {
76
+ to: params.token_address,
77
+ data,
78
+ value: "0",
79
+ chainId: params.chain_id,
80
+ },
81
+ }, null, 2),
82
+ },
83
+ ],
84
+ };
85
+ }
86
+ catch (err) {
87
+ return {
88
+ content: [
89
+ {
90
+ type: "text",
91
+ text: `Error: ${err instanceof Error ? err.message : String(err)}`,
92
+ },
93
+ ],
94
+ isError: true,
95
+ };
96
+ }
97
+ });
98
+ }
99
+ //# sourceMappingURL=approve.js.map
@@ -0,0 +1,87 @@
1
+ import { z } from "zod";
2
+ import { encodeFunctionData } from "viem";
3
+ import { poolAbi } from "../../abis/index.js";
4
+ import { appendDataSuffix } from "../../utils/attribution.js";
5
+ export function registerBorrowTool(server, _chains, api) {
6
+ server.tool("build_borrow_tx", "Build an unsigned transaction to borrow from an Arcadia lending pool against account collateral. Only works with margin accounts (created with a creditor/lending pool). Spot accounts (no creditor) cannot borrow — the tool will validate this and reject. Before borrowing, verify the account has positive free margin via get_account_info: collateral_value must exceed used_margin.", {
7
+ pool_address: z
8
+ .string()
9
+ .describe("Lending pool: LP_WETH=0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2, LP_USDC=0x3ec4a293Fb906DD2Cd440c20dECB250DeF141dF1, LP_CBBTC=0xa37E9b4369dc20940009030BfbC2088F09645e3B"),
10
+ account_address: z.string().describe("Arcadia account address used as collateral"),
11
+ amount: z.string().describe("Amount in raw units"),
12
+ to: z.string().describe("Address to receive borrowed tokens"),
13
+ chain_id: z
14
+ .number()
15
+ .default(8453)
16
+ .describe("Chain ID: 8453 (Base), 10 (Optimism), or 130 (Unichain)"),
17
+ }, async (params) => {
18
+ try {
19
+ // Validate: account must have a creditor (margin account)
20
+ const overview = (await api.getAccountOverview(params.chain_id, params.account_address));
21
+ const creditor = overview.creditor ?? "";
22
+ if (!creditor || creditor === "0x0000000000000000000000000000000000000000") {
23
+ return {
24
+ content: [
25
+ {
26
+ type: "text",
27
+ text: "Error: This account has no creditor (spot account) and cannot borrow. Create a margin account with a creditor (lending pool) using build_create_account_tx.",
28
+ },
29
+ ],
30
+ isError: true,
31
+ };
32
+ }
33
+ // Pre-check: account must have free margin to absorb new debt
34
+ const collateralValue = Number(overview.collateral_value ?? 0);
35
+ const usedMargin = Number(overview.used_margin ?? 0);
36
+ if (collateralValue <= usedMargin) {
37
+ return {
38
+ content: [
39
+ {
40
+ type: "text",
41
+ text: `Error: Account has no free margin (collateral_value: ${collateralValue}, used_margin: ${usedMargin}). Add more collateral before borrowing.`,
42
+ },
43
+ ],
44
+ isError: true,
45
+ };
46
+ }
47
+ const data = appendDataSuffix(encodeFunctionData({
48
+ abi: poolAbi,
49
+ functionName: "borrow",
50
+ args: [
51
+ BigInt(params.amount),
52
+ params.account_address,
53
+ params.to,
54
+ "0x000000",
55
+ ],
56
+ }));
57
+ return {
58
+ content: [
59
+ {
60
+ type: "text",
61
+ text: JSON.stringify({
62
+ description: "Borrow from Arcadia lending pool",
63
+ transaction: {
64
+ to: params.pool_address,
65
+ data,
66
+ value: "0",
67
+ chainId: params.chain_id,
68
+ },
69
+ }, null, 2),
70
+ },
71
+ ],
72
+ };
73
+ }
74
+ catch (err) {
75
+ return {
76
+ content: [
77
+ {
78
+ type: "text",
79
+ text: `Error: ${err instanceof Error ? err.message : String(err)}`,
80
+ },
81
+ ],
82
+ isError: true,
83
+ };
84
+ }
85
+ });
86
+ }
87
+ //# sourceMappingURL=borrow.js.map