chain-insights 0.75.0 → 0.76.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.
- package/README.md +1 -0
- package/dist/{action-log-D49Par9P.mjs → action-log-Byv9Ln_6.mjs} +4 -10
- package/dist/{action-log-D49Par9P.mjs.map → action-log-Byv9Ln_6.mjs.map} +1 -1
- package/dist/{action-log-HniMMF7f.cjs → action-log-WMW6xFMx.cjs} +3 -9
- package/dist/{active-Dkf8AB1R.mjs → active-D2aabYRF.mjs} +3 -4
- package/dist/{active-Dkf8AB1R.mjs.map → active-D2aabYRF.mjs.map} +1 -1
- package/dist/{active-Bc13hJIm.cjs → active-q3yViZhc.cjs} +2 -3
- package/dist/answer-hint-BlYEBq_Y.cjs +57 -0
- package/dist/answer-hint-vOE1O6Lf.mjs +48 -0
- package/dist/answer-hint-vOE1O6Lf.mjs.map +1 -0
- package/dist/{buy-_mpdRieG.mjs → buy-B2luUbWF.mjs} +5 -6
- package/dist/{buy-_mpdRieG.mjs.map → buy-B2luUbWF.mjs.map} +1 -1
- package/dist/{buy-97M6dtEu.cjs → buy-DEoGITbT.cjs} +4 -5
- package/dist/{cache-location-CBVzUIxq.cjs → cache-location-C09AE55j.cjs} +2 -3
- package/dist/{cache-location-BO2XkfgI.mjs → cache-location-DxTTqBwk.mjs} +2 -3
- package/dist/{cache-location-BO2XkfgI.mjs.map → cache-location-DxTTqBwk.mjs.map} +1 -1
- package/dist/{call-args-B0oMK1-J.mjs → call-args-CBqbYfOE.mjs} +15 -4
- package/dist/{call-args-B0oMK1-J.mjs.map → call-args-CBqbYfOE.mjs.map} +1 -1
- package/dist/{call-args-C8Gp5gco.cjs → call-args-DXEmPeE-.cjs} +14 -2
- package/dist/{capabilities-DxojbX4D.mjs → capabilities-BRNHcabF.mjs} +5 -11
- package/dist/{capabilities-DxojbX4D.mjs.map → capabilities-BRNHcabF.mjs.map} +1 -1
- package/dist/{capabilities-Ds3320iS.cjs → capabilities-DalimVY2.cjs} +4 -10
- package/dist/{claude-desktop-Jmm4PlBZ.cjs → claude-desktop-3OksQZVE.cjs} +2 -3
- package/dist/{claude-desktop-6jwX0Lux.mjs → claude-desktop-C1SDYAP2.mjs} +2 -3
- package/dist/{claude-desktop-6jwX0Lux.mjs.map → claude-desktop-C1SDYAP2.mjs.map} +1 -1
- package/dist/cli.cjs +95 -76
- package/dist/cli.mjs +94 -75
- package/dist/cli.mjs.map +1 -1
- package/dist/{client-7qOfAdpH.mjs → client-BaHAIidE.mjs} +10 -21
- package/dist/{client-7qOfAdpH.mjs.map → client-BaHAIidE.mjs.map} +1 -1
- package/dist/{client-C9uwHnBS.cjs → client-Ddk4X9Ko.cjs} +9 -20
- package/dist/{config-BxtMoo9c.cjs → config-BdE8LcF-.cjs} +3 -5
- package/dist/{config-9MabJh5R.mjs → config-BkLIqOYq.mjs} +4 -6
- package/dist/{config-9MabJh5R.mjs.map → config-BkLIqOYq.mjs.map} +1 -1
- package/dist/{create-CpfZq2fx.mjs → create-CluDZkuF.mjs} +3 -4
- package/dist/{create-CpfZq2fx.mjs.map → create-CluDZkuF.mjs.map} +1 -1
- package/dist/{create-DdggkF04.cjs → create-DvBumvHn.cjs} +2 -3
- package/dist/{dex-registry-Chs79Ukc.cjs → dex-registry-CZQB2YhU.cjs} +4 -26
- package/dist/{dex-registry-rziydXYq.mjs → dex-registry-D6Xxi_vr.mjs} +5 -27
- package/dist/{dex-registry-rziydXYq.mjs.map → dex-registry-D6Xxi_vr.mjs.map} +1 -1
- package/dist/{dex-tool-ib_ICiyV.mjs → dex-tool-BoAYqhZO.mjs} +8 -62
- package/dist/dex-tool-BoAYqhZO.mjs.map +1 -0
- package/dist/{dex-tool-85_76Q8i.cjs → dex-tool-DsM-pSku.cjs} +12 -72
- package/dist/{format-CSesEBvS.mjs → format-CsnW5M4D.mjs} +2 -3
- package/dist/{format-CSesEBvS.mjs.map → format-CsnW5M4D.mjs.map} +1 -1
- package/dist/{format-DfhRQq4L.cjs → format-DUzmoeaE.cjs} +1 -2
- package/dist/{graph-schema-DNJXDaTn.cjs → graph-schema-C8Pi6r7c.cjs} +8 -25
- package/dist/{graph-schema-Bxqwukqu.mjs → graph-schema-D4LAefGf.mjs} +9 -26
- package/dist/{graph-schema-Bxqwukqu.mjs.map → graph-schema-D4LAefGf.mjs.map} +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +0 -16
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -16
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/{known-keys-B87ZqOgE.mjs → known-keys-BbuzCZOW.mjs} +4 -7
- package/dist/{known-keys-B87ZqOgE.mjs.map → known-keys-BbuzCZOW.mjs.map} +1 -1
- package/dist/{known-keys-PKZF5GYd.cjs → known-keys-Cy8lKDOA.cjs} +3 -6
- package/dist/mcp-proxy.cjs +65 -39
- package/dist/mcp-proxy.d.cts +2 -2
- package/dist/mcp-proxy.d.cts.map +1 -1
- package/dist/mcp-proxy.d.mts +2 -2
- package/dist/mcp-proxy.d.mts.map +1 -1
- package/dist/mcp-proxy.mjs +63 -38
- package/dist/mcp-proxy.mjs.map +1 -1
- package/dist/{print-result-if-AbNLY.cjs → print-result-BYppJlUi.cjs} +19 -19
- package/dist/{print-result-BtEAn2Wl.mjs → print-result-IFARsMnL.mjs} +9 -21
- package/dist/print-result-IFARsMnL.mjs.map +1 -0
- package/dist/{public-tools-COG3pCpD.cjs → public-tools-Cfc1OPNS.cjs} +8 -13
- package/dist/{public-tools-DIJs4SHz.mjs → public-tools-DXlZcanX.mjs} +8 -13
- package/dist/{public-tools-DIJs4SHz.mjs.map → public-tools-DXlZcanX.mjs.map} +1 -1
- package/dist/{quote-DfTut0cx.mjs → quote-41CbMc37.mjs} +2 -3
- package/dist/{quote-DfTut0cx.mjs.map → quote-41CbMc37.mjs.map} +1 -1
- package/dist/{quote-B9sYNOiv.cjs → quote-pFKcSvMv.cjs} +1 -2
- package/dist/{request-timeout-CYmQF8N7.cjs → request-timeout-DxwNijQD.cjs} +1 -2
- package/dist/{request-timeout-lBBe0mGf.mjs → request-timeout-K3ljP0pa.mjs} +2 -3
- package/dist/{request-timeout-lBBe0mGf.mjs.map → request-timeout-K3ljP0pa.mjs.map} +1 -1
- package/dist/{robinhood-CCTMagwM.mjs → robinhood-0NZsA6ZW.mjs} +2 -3
- package/dist/robinhood-0NZsA6ZW.mjs.map +1 -0
- package/dist/{robinhood-ChiT69sc.cjs → robinhood-DumTxvlA.cjs} +1 -2
- package/dist/{rolldown-runtime-8H4AJuhK.mjs → rolldown-runtime-BJohB4LM.mjs} +1 -2
- package/dist/{rolldown-runtime-C0BPl7ul.cjs → rolldown-runtime-BW-eSwOZ.cjs} +1 -2
- package/dist/{rules-BWdbOtHi.mjs → rules-B3w9pCeQ.mjs} +2 -3
- package/dist/{rules-BWdbOtHi.mjs.map → rules-B3w9pCeQ.mjs.map} +1 -1
- package/dist/{rules-BD-cNHMX.cjs → rules-BKwfmNsJ.cjs} +1 -2
- package/dist/{schema-KjZqCHbu.mjs → schema-CKnQsdw9.mjs} +6 -13
- package/dist/{schema-KjZqCHbu.mjs.map → schema-CKnQsdw9.mjs.map} +1 -1
- package/dist/{schema-tX0U0-VI.cjs → schema-CSESfCvA.cjs} +5 -12
- package/dist/{schema-cache-DRObKUvS.mjs → schema-cache-BfKHodDY.mjs} +3 -4
- package/dist/{schema-cache-DRObKUvS.mjs.map → schema-cache-BfKHodDY.mjs.map} +1 -1
- package/dist/{schema-cache-C7v9ml6S.cjs → schema-cache-NLgJmh4X.cjs} +3 -4
- package/dist/{skill-refresh-xYWZ_hua.mjs → skill-refresh-BchIsODN.mjs} +2 -3
- package/dist/{skill-refresh-xYWZ_hua.mjs.map → skill-refresh-BchIsODN.mjs.map} +1 -1
- package/dist/{skill-refresh-Be2D5FrX.cjs → skill-refresh-DaCTxhhy.cjs} +2 -3
- package/dist/{subscription-status-DIuH84fM.mjs → subscription-status-5WfPhSep.mjs} +3 -4
- package/dist/{subscription-status-DIuH84fM.mjs.map → subscription-status-5WfPhSep.mjs.map} +1 -1
- package/dist/{subscription-status-9tMfD90J.cjs → subscription-status-w4zI2KCK.cjs} +2 -3
- package/dist/token-lookup-BJ00JO9A.cjs +342 -0
- package/dist/token-lookup-XnyisLQW.mjs +303 -0
- package/dist/token-lookup-XnyisLQW.mjs.map +1 -0
- package/dist/{tool-visibility-DTAYvE9E.cjs → tool-visibility-DIpgPULN.cjs} +5 -10
- package/dist/{tool-visibility-zcmwMSbn.mjs → tool-visibility-Dy3psowS.mjs} +6 -11
- package/dist/tool-visibility-Dy3psowS.mjs.map +1 -0
- package/dist/{tools-D9ep9E7Q.mjs → tools-6pZo4h_p.mjs} +6 -21
- package/dist/{tools-D9ep9E7Q.mjs.map → tools-6pZo4h_p.mjs.map} +1 -1
- package/dist/{tools-Cmnq7yip.cjs → tools-DZLizem9.cjs} +5 -20
- package/dist/{topup-B6gZbTmv.mjs → topup--7JTo4UQ.mjs} +6 -7
- package/dist/{topup-B6gZbTmv.mjs.map → topup--7JTo4UQ.mjs.map} +1 -1
- package/dist/{topup-DVTCU2le.cjs → topup-BgI9OcUd.cjs} +5 -6
- package/dist/{topup-server-ShuYSyBY.cjs → topup-server-D9Uk1Th3.cjs} +7 -24
- package/dist/{topup-server-KQDviFXG.mjs → topup-server-DR0HaUcR.mjs} +8 -25
- package/dist/{topup-server-KQDviFXG.mjs.map → topup-server-DR0HaUcR.mjs.map} +1 -1
- package/dist/{topup-server-BcT7DIpd.mjs → topup-server-DlwzFEF1.mjs} +5 -12
- package/dist/{topup-server-BcT7DIpd.mjs.map → topup-server-DlwzFEF1.mjs.map} +1 -1
- package/dist/{topup-server-f4Gx0vji.cjs → topup-server-H1M_7PJK.cjs} +4 -11
- package/dist/{transport-error-C7OQjmC7.mjs → transport-error-68G35VPH.mjs} +3 -4
- package/dist/{transport-error-C7OQjmC7.mjs.map → transport-error-68G35VPH.mjs.map} +1 -1
- package/dist/{transport-error-qDWQn8hb.cjs → transport-error-DXy1iTpS.cjs} +2 -3
- package/dist/{update-DqBhBXFs.mjs → update-BH8F4cQ2.mjs} +3 -4
- package/dist/{update-DqBhBXFs.mjs.map → update-BH8F4cQ2.mjs.map} +1 -1
- package/dist/{update-NowrCmjR.cjs → update-DUDdQSEU.cjs} +2 -3
- package/dist/{usage-status-Frot6fPG.mjs → usage-status-BUZgRl4r.mjs} +3 -5
- package/dist/{usage-status-Frot6fPG.mjs.map → usage-status-BUZgRl4r.mjs.map} +1 -1
- package/dist/{usage-status-DonwoLR3.cjs → usage-status-DnV3I3gX.cjs} +2 -4
- package/dist/{wallet-QTo5YCFR.mjs → wallet-B1M0HdQh.mjs} +4 -8
- package/dist/{wallet-QTo5YCFR.mjs.map → wallet-B1M0HdQh.mjs.map} +1 -1
- package/dist/{wallet-CgIAfdxL.cjs → wallet-BubGd_sG.cjs} +3 -7
- package/docs/mcp-proxy.md +34 -0
- package/docs/stability.md +3 -2
- package/package.json +1 -1
- package/skills/chain-insights-cypher/SKILL.md +3 -0
- package/dist/dex-tool-ib_ICiyV.mjs.map +0 -1
- package/dist/print-result-BtEAn2Wl.mjs.map +0 -1
- package/dist/robinhood-CCTMagwM.mjs.map +0 -1
- package/dist/tool-visibility-zcmwMSbn.mjs.map +0 -1
|
@@ -1,34 +1,20 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-BW-eSwOZ.cjs");
|
|
2
|
+
const require_wallet = require("./wallet-BubGd_sG.cjs");
|
|
3
|
+
const require_known_keys = require("./known-keys-Cy8lKDOA.cjs");
|
|
4
4
|
let viem_accounts = require("viem/accounts");
|
|
5
5
|
let viem = require("viem");
|
|
6
6
|
let viem_chains = require("viem/chains");
|
|
7
|
-
|
|
7
|
+
// src/wallet/tools.ts
|
|
8
8
|
var tools_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
9
|
-
BASE_CHAIN_ID: () => BASE_CHAIN_ID,
|
|
10
|
-
DEFAULT_BASE_RPC_URL: () => DEFAULT_BASE_RPC_URL,
|
|
11
|
-
DEFAULT_MAX_AUTO_APPROVAL_UNITS: () => DEFAULT_MAX_AUTO_APPROVAL_UNITS,
|
|
12
|
-
DEFAULT_PAYMENT_APPROVAL_UNITS: () => DEFAULT_PAYMENT_APPROVAL_UNITS,
|
|
13
|
-
PERMIT2_ADDRESS: () => PERMIT2_ADDRESS,
|
|
14
|
-
PUBLIC_BASE_RPC_URLS: () => PUBLIC_BASE_RPC_URLS,
|
|
15
|
-
USDC_ADDRESS: () => USDC_ADDRESS,
|
|
16
|
-
approvePaymentAllowance: () => approvePaymentAllowance,
|
|
17
9
|
assertWalletKeyNotPublic: () => assertWalletKeyNotPublic,
|
|
18
10
|
buildTopupInfo: () => buildTopupInfo,
|
|
19
|
-
formatWalletBalance: () => formatWalletBalance,
|
|
20
11
|
formatWalletBalanceResult: () => formatWalletBalanceResult,
|
|
21
12
|
formatWalletReadiness: () => formatWalletReadiness,
|
|
22
|
-
getBalanceEth: () => getBalanceEth,
|
|
23
|
-
getBalanceUsdc: () => getBalanceUsdc,
|
|
24
|
-
getPaymentApprovalUnits: () => getPaymentApprovalUnits,
|
|
25
13
|
getWalletAccount: () => getWalletAccount,
|
|
26
14
|
getWalletBalanceResult: () => getWalletBalanceResult,
|
|
27
15
|
getWalletBalanceText: () => getWalletBalanceText,
|
|
28
|
-
getWalletReadiness: () => getWalletReadiness,
|
|
29
16
|
parsePaymentApprovalUnits: () => parsePaymentApprovalUnits,
|
|
30
|
-
prepareWalletForPaidCalls: () => prepareWalletForPaidCalls
|
|
31
|
-
resolveMaxAutoApprovalUnits: () => resolveMaxAutoApprovalUnits
|
|
17
|
+
prepareWalletForPaidCalls: () => prepareWalletForPaidCalls
|
|
32
18
|
});
|
|
33
19
|
const BASE_CHAIN_ID = 8453;
|
|
34
20
|
const USDC_ADDRESS = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
@@ -351,7 +337,6 @@ function buildTopupInfo(address, topupUrl) {
|
|
|
351
337
|
...topupUrl ? { topup_url: topupUrl } : {}
|
|
352
338
|
};
|
|
353
339
|
}
|
|
354
|
-
//#endregion
|
|
355
340
|
Object.defineProperty(exports, "PERMIT2_ADDRESS", {
|
|
356
341
|
enumerable: true,
|
|
357
342
|
get: function() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as qrTerminalText, t as SUBSCRIPTION_TOPUP_TEXT } from "./topup-server-
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
|
|
1
|
+
import { o as qrTerminalText, t as SUBSCRIPTION_TOPUP_TEXT } from "./topup-server-DR0HaUcR.mjs";
|
|
2
|
+
import { n as startTopupServer } from "./topup-server-DlwzFEF1.mjs";
|
|
3
|
+
import { a as ROBINHOOD_NETWORK_DISPLAY, n as CIA_TOKEN_ADDRESS, r as ROBINHOOD_CHAIN_ID, t as CIA_SYMBOL } from "./robinhood-0NZsA6ZW.mjs";
|
|
4
|
+
// src/subscription/topup.ts
|
|
5
5
|
function subscriptionTopupFacts(walletAddress, topupUrl) {
|
|
6
6
|
return {
|
|
7
7
|
wallet_address: walletAddress,
|
|
@@ -28,7 +28,7 @@ function subscriptionTopupText(facts) {
|
|
|
28
28
|
}
|
|
29
29
|
/** `cia subscription topup`: the user's own wallet, never the payment address. */
|
|
30
30
|
async function runSubscriptionTopup(opts) {
|
|
31
|
-
const { assertWalletKeyNotPublic, getWalletAccount } = await import("./tools-
|
|
31
|
+
const { assertWalletKeyNotPublic, getWalletAccount } = await import("./tools-6pZo4h_p.mjs").then((n) => n.p);
|
|
32
32
|
const account = await getWalletAccount();
|
|
33
33
|
assertWalletKeyNotPublic(account);
|
|
34
34
|
const url = await startTopupServer(account.address, "robinhood-cia");
|
|
@@ -40,7 +40,6 @@ async function runSubscriptionTopup(opts) {
|
|
|
40
40
|
await open(url);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { runSubscriptionTopup };
|
|
45
44
|
|
|
46
|
-
//# sourceMappingURL=topup
|
|
45
|
+
//# sourceMappingURL=topup--7JTo4UQ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topup
|
|
1
|
+
{"version":3,"file":"topup--7JTo4UQ.mjs","names":[],"sources":["../src/subscription/topup.ts"],"sourcesContent":["import { qrTerminalText } from '../wallet/mcp-proxy/qr.js'\nimport { SUBSCRIPTION_TOPUP_TEXT } from '../wallet/mcp-proxy/topup-server.js'\nimport { startTopupServer } from '../wallet/topup-server.js'\nimport {\n CIA_SYMBOL,\n CIA_TOKEN_ADDRESS,\n ROBINHOOD_CHAIN_ID,\n ROBINHOOD_NETWORK_DISPLAY,\n} from '../wallet/robinhood.js'\n\nexport interface SubscriptionTopupFacts {\n wallet_address: string\n network: typeof ROBINHOOD_NETWORK_DISPLAY\n chain_id: typeof ROBINHOOD_CHAIN_ID\n token: typeof CIA_SYMBOL\n token_contract: typeof CIA_TOKEN_ADDRESS\n gas_token: 'ETH'\n topup_url?: string\n}\n\nexport function subscriptionTopupFacts(walletAddress: string, topupUrl?: string): SubscriptionTopupFacts {\n return {\n wallet_address: walletAddress,\n network: ROBINHOOD_NETWORK_DISPLAY,\n chain_id: ROBINHOOD_CHAIN_ID,\n token: CIA_SYMBOL,\n token_contract: CIA_TOKEN_ADDRESS,\n gas_token: 'ETH',\n ...(topupUrl ? { topup_url: topupUrl } : {}),\n }\n}\n\n/** The terminal text of `cia subscription topup`: facts, then the QR code. */\nexport function subscriptionTopupText(facts: SubscriptionTopupFacts): string {\n return [\n ...(facts.topup_url ? [`Top-up page: ${facts.topup_url}`] : []),\n `Wallet: ${facts.wallet_address}`,\n `Network: ${facts.network} (chain ID ${facts.chain_id})`,\n `Token: ${facts.token} ${facts.token_contract}, and a little ETH for gas`,\n '',\n qrTerminalText(facts.wallet_address),\n '',\n SUBSCRIPTION_TOPUP_TEXT,\n ].join('\\n')\n}\n\n/** `cia subscription topup`: the user's own wallet, never the payment address. */\nexport async function runSubscriptionTopup(opts: { open?: boolean; json?: boolean }): Promise<void> {\n const { assertWalletKeyNotPublic, getWalletAccount } = await import('../wallet/tools.js')\n const account = await getWalletAccount()\n assertWalletKeyNotPublic(account)\n const url = await startTopupServer(account.address, 'robinhood-cia')\n const facts = subscriptionTopupFacts(account.address, url)\n console.log(opts.json ? JSON.stringify(facts, null, 2) : subscriptionTopupText(facts))\n if (!opts.json) console.log('Press Ctrl+C to stop the top-up page.')\n if (opts.open !== false) {\n const open = (await import('open')).default\n await open(url)\n }\n}\n"],"mappings":";;;;AAoBA,SAAgB,uBAAuB,eAAuB,UAA2C;CACvG,OAAO;EACL,gBAAgB;EAChB,SAAS;EACT,UAAU;EACV,OAAO;EACP,gBAAgB;EAChB,WAAW;EACX,GAAI,WAAW,EAAE,WAAW,SAAS,IAAI,CAAC;CAC5C;AACF;;AAGA,SAAgB,sBAAsB,OAAuC;CAC3E,OAAO;EACL,GAAI,MAAM,YAAY,CAAC,gBAAgB,MAAM,WAAW,IAAI,CAAC;EAC7D,gBAAgB,MAAM;EACtB,gBAAgB,MAAM,QAAQ,aAAa,MAAM,SAAS;EAC1D,gBAAgB,MAAM,MAAM,GAAG,MAAM,eAAe;EACpD;EACA,eAAe,MAAM,cAAc;EACnC;EACA;CACF,CAAC,CAAC,KAAK,IAAI;AACb;;AAGA,eAAsB,qBAAqB,MAAyD;CAClG,MAAM,EAAE,0BAA0B,qBAAqB,MAAM,OAAO,uBAAqB,CAAA,MAAA,MAAA,EAAA,CAAA;CACzF,MAAM,UAAU,MAAM,iBAAiB;CACvC,yBAAyB,OAAO;CAChC,MAAM,MAAM,MAAM,iBAAiB,QAAQ,SAAS,eAAe;CACnE,MAAM,QAAQ,uBAAuB,QAAQ,SAAS,GAAG;CACzD,QAAQ,IAAI,KAAK,OAAO,KAAK,UAAU,OAAO,MAAM,CAAC,IAAI,sBAAsB,KAAK,CAAC;CACrF,IAAI,CAAC,KAAK,MAAM,QAAQ,IAAI,uCAAuC;CACnE,IAAI,KAAK,SAAS,OAAO;EACvB,MAAM,QAAQ,MAAM,OAAO,QAAA,CAAS;EACpC,MAAM,KAAK,GAAG;CAChB;AACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_topup_server = require("./topup-server-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
const require_topup_server = require("./topup-server-D9Uk1Th3.cjs");
|
|
2
|
+
const require_topup_server$1 = require("./topup-server-H1M_7PJK.cjs");
|
|
3
|
+
const require_robinhood = require("./robinhood-DumTxvlA.cjs");
|
|
4
|
+
// src/subscription/topup.ts
|
|
5
5
|
function subscriptionTopupFacts(walletAddress, topupUrl) {
|
|
6
6
|
return {
|
|
7
7
|
wallet_address: walletAddress,
|
|
@@ -28,7 +28,7 @@ function subscriptionTopupText(facts) {
|
|
|
28
28
|
}
|
|
29
29
|
/** `cia subscription topup`: the user's own wallet, never the payment address. */
|
|
30
30
|
async function runSubscriptionTopup(opts) {
|
|
31
|
-
const { assertWalletKeyNotPublic, getWalletAccount } = await Promise.resolve().then(() => require("./tools-
|
|
31
|
+
const { assertWalletKeyNotPublic, getWalletAccount } = await Promise.resolve().then(() => require("./tools-DZLizem9.cjs")).then((n) => n.tools_exports);
|
|
32
32
|
const account = await getWalletAccount();
|
|
33
33
|
assertWalletKeyNotPublic(account);
|
|
34
34
|
const url = await require_topup_server$1.startTopupServer(account.address, "robinhood-cia");
|
|
@@ -40,5 +40,4 @@ async function runSubscriptionTopup(opts) {
|
|
|
40
40
|
await open(url);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
exports.runSubscriptionTopup = runSubscriptionTopup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
-
const require_robinhood = require("./robinhood-
|
|
3
|
-
const require_rules = require("./rules-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-BW-eSwOZ.cjs");
|
|
2
|
+
const require_robinhood = require("./robinhood-DumTxvlA.cjs");
|
|
3
|
+
const require_rules = require("./rules-BKwfmNsJ.cjs");
|
|
4
4
|
let node_url = require("node:url");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
@@ -8,7 +8,7 @@ let viem = require("viem");
|
|
|
8
8
|
let viem_chains = require("viem/chains");
|
|
9
9
|
let node_http = require("node:http");
|
|
10
10
|
let node_module = require("node:module");
|
|
11
|
-
|
|
11
|
+
// src/wallet/mcp-proxy/qr.ts
|
|
12
12
|
/**
|
|
13
13
|
* Minimal QR code generator. No external dependencies.
|
|
14
14
|
*
|
|
@@ -226,8 +226,7 @@ function qrTerminalText(text, options = {}) {
|
|
|
226
226
|
}
|
|
227
227
|
return lines.join("\n");
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
//#region src/wallet/mcp-proxy/tools.ts
|
|
229
|
+
// src/wallet/mcp-proxy/tools.ts
|
|
231
230
|
const USDC_ADDRESS$1 = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
232
231
|
const PUBLIC_BASE_RPC_URLS = [
|
|
233
232
|
"https://mainnet.base.org",
|
|
@@ -280,25 +279,10 @@ async function getBalanceEth(wallet) {
|
|
|
280
279
|
} catch {}
|
|
281
280
|
return "unknown";
|
|
282
281
|
}
|
|
283
|
-
|
|
284
|
-
//#region src/wallet/mcp-proxy/topup-server.ts
|
|
282
|
+
// src/wallet/mcp-proxy/topup-server.ts
|
|
285
283
|
var topup_server_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
286
|
-
SUBSCRIPTION_TOPUP_RULE: () => SUBSCRIPTION_TOPUP_RULE,
|
|
287
|
-
SUBSCRIPTION_TOPUP_TEXT: () => SUBSCRIPTION_TOPUP_TEXT,
|
|
288
|
-
TOPUP_NETWORK_DISPLAY: () => TOPUP_NETWORK_DISPLAY,
|
|
289
|
-
TOPUP_TOOL_NAME: () => TOPUP_TOOL_NAME,
|
|
290
284
|
TOPUP_VIEW_URI: () => TOPUP_VIEW_URI,
|
|
291
|
-
|
|
292
|
-
generateArtifactHtml: () => generateArtifactHtml,
|
|
293
|
-
generateSubscriptionPage: () => generateSubscriptionPage,
|
|
294
|
-
generateTopupPage: () => generateTopupPage,
|
|
295
|
-
getTopupUrl: () => getTopupUrl,
|
|
296
|
-
qrModulesSource: () => qrModulesSource,
|
|
297
|
-
registerTopupView: () => registerTopupView,
|
|
298
|
-
startTopupServer: () => startTopupServer,
|
|
299
|
-
subscriptionTopupToolResult: () => subscriptionTopupToolResult,
|
|
300
|
-
topupToolResult: () => topupToolResult,
|
|
301
|
-
topupViewHtml: () => topupViewHtml
|
|
285
|
+
registerTopupView: () => registerTopupView
|
|
302
286
|
});
|
|
303
287
|
const USDC_ADDRESS = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
304
288
|
const BASE_CHAIN_ID = "0x2105";
|
|
@@ -1438,7 +1422,6 @@ async function registerTopupView(server, deps) {
|
|
|
1438
1422
|
_meta: { ui: uiMeta }
|
|
1439
1423
|
}] }));
|
|
1440
1424
|
}
|
|
1441
|
-
//#endregion
|
|
1442
1425
|
Object.defineProperty(exports, "SUBSCRIPTION_TOPUP_TEXT", {
|
|
1443
1426
|
enumerable: true,
|
|
1444
1427
|
get: function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { a as ROBINHOOD_NETWORK_DISPLAY, d as getRobinhoodEthBalance, n as CIA_TOKEN_ADDRESS, r as ROBINHOOD_CHAIN_ID, t as CIA_SYMBOL, u as getCiaBalance } from "./robinhood-
|
|
3
|
-
import { i as WALLET_TOPUP_DESCRIPTION, n as SUBSCRIPTION_TOPUP_DESCRIPTION, r as SUBSCRIPTION_TOPUP_TOOL } from "./rules-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.mjs";
|
|
2
|
+
import { a as ROBINHOOD_NETWORK_DISPLAY, d as getRobinhoodEthBalance, n as CIA_TOKEN_ADDRESS, r as ROBINHOOD_CHAIN_ID, t as CIA_SYMBOL, u as getCiaBalance } from "./robinhood-0NZsA6ZW.mjs";
|
|
3
|
+
import { i as WALLET_TOPUP_DESCRIPTION, n as SUBSCRIPTION_TOPUP_DESCRIPTION, r as SUBSCRIPTION_TOPUP_TOOL } from "./rules-B3w9pCeQ.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { dirname, join } from "node:path";
|
|
@@ -8,7 +8,7 @@ import { readFileSync } from "node:fs";
|
|
|
8
8
|
import { createPublicClient, formatEther, formatUnits, http, isAddress } from "viem";
|
|
9
9
|
import { base } from "viem/chains";
|
|
10
10
|
import { createServer } from "node:http";
|
|
11
|
-
|
|
11
|
+
// src/wallet/mcp-proxy/qr.ts
|
|
12
12
|
/**
|
|
13
13
|
* Minimal QR code generator. No external dependencies.
|
|
14
14
|
*
|
|
@@ -226,8 +226,7 @@ function qrTerminalText(text, options = {}) {
|
|
|
226
226
|
}
|
|
227
227
|
return lines.join("\n");
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
//#region src/wallet/mcp-proxy/tools.ts
|
|
229
|
+
// src/wallet/mcp-proxy/tools.ts
|
|
231
230
|
const USDC_ADDRESS$1 = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
232
231
|
const PUBLIC_BASE_RPC_URLS = [
|
|
233
232
|
"https://mainnet.base.org",
|
|
@@ -280,25 +279,10 @@ async function getBalanceEth(wallet) {
|
|
|
280
279
|
} catch {}
|
|
281
280
|
return "unknown";
|
|
282
281
|
}
|
|
283
|
-
|
|
284
|
-
//#region src/wallet/mcp-proxy/topup-server.ts
|
|
282
|
+
// src/wallet/mcp-proxy/topup-server.ts
|
|
285
283
|
var topup_server_exports = /* @__PURE__ */ __exportAll({
|
|
286
|
-
SUBSCRIPTION_TOPUP_RULE: () => SUBSCRIPTION_TOPUP_RULE,
|
|
287
|
-
SUBSCRIPTION_TOPUP_TEXT: () => SUBSCRIPTION_TOPUP_TEXT,
|
|
288
|
-
TOPUP_NETWORK_DISPLAY: () => TOPUP_NETWORK_DISPLAY,
|
|
289
|
-
TOPUP_TOOL_NAME: () => TOPUP_TOOL_NAME,
|
|
290
284
|
TOPUP_VIEW_URI: () => TOPUP_VIEW_URI,
|
|
291
|
-
|
|
292
|
-
generateArtifactHtml: () => generateArtifactHtml,
|
|
293
|
-
generateSubscriptionPage: () => generateSubscriptionPage,
|
|
294
|
-
generateTopupPage: () => generateTopupPage,
|
|
295
|
-
getTopupUrl: () => getTopupUrl,
|
|
296
|
-
qrModulesSource: () => qrModulesSource,
|
|
297
|
-
registerTopupView: () => registerTopupView,
|
|
298
|
-
startTopupServer: () => startTopupServer,
|
|
299
|
-
subscriptionTopupToolResult: () => subscriptionTopupToolResult,
|
|
300
|
-
topupToolResult: () => topupToolResult,
|
|
301
|
-
topupViewHtml: () => topupViewHtml
|
|
285
|
+
registerTopupView: () => registerTopupView
|
|
302
286
|
});
|
|
303
287
|
const USDC_ADDRESS = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
304
288
|
const BASE_CHAIN_ID = "0x2105";
|
|
@@ -1438,7 +1422,6 @@ async function registerTopupView(server, deps) {
|
|
|
1438
1422
|
_meta: { ui: uiMeta }
|
|
1439
1423
|
}] }));
|
|
1440
1424
|
}
|
|
1441
|
-
//#endregion
|
|
1442
1425
|
export { topup_server_exports as a, startTopupServer as i, generateArtifactHtml as n, qrTerminalText as o, getTopupUrl as r, SUBSCRIPTION_TOPUP_TEXT as t };
|
|
1443
1426
|
|
|
1444
|
-
//# sourceMappingURL=topup-server-
|
|
1427
|
+
//# sourceMappingURL=topup-server-DR0HaUcR.mjs.map
|