Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(components): add new 3D-related options to MoreDropdown and SuggestionChips feat(api): update package.json and package-lock.json to include new dependencies
nirholas492a50fa6f80
diff --git a/api/_lib/rate-limit.js b/api/_lib/rate-limit.jsindex fa5683884..029f18ef7 100644--- a/api/_lib/rate-limit.js+++ b/api/_lib/rate-limit.js@@ -80,6 +80,9 @@ export const limits = {ensResolve: (ip) => getLimiter('ens:resolve:ip', { limit: 60, window: '1 m' }).limit(ip),// Generic public read endpoints (explore, showcase, public agent fetch). 60/min per IP.publicIp: (ip) => getLimiter('public:ip', { limit: 60, window: '1 m' }).limit(ip),+ // Skills marketplace browse — isolated bucket so traffic on other public endpoints+ // can't starve the skills list. 60/min per IP.+ skillsBrowse: (ip) => getLimiter('skills:browse', { limit: 60, window: '1 m' }).limit(ip),widgetWrite: (userId) => getLimiter('widget:write', { limit: 60, window: '1 m' }).limit(userId),widgetRead: (ip) => getLimiter('widget:read', { limit: 600, window: '1 m' }).limit(ip),// Per-widget visitor chat. Limit is dynamic — one bucket per (widgetId, perMinute).diff --git a/api/skills/index.js b/api/skills/index.jsindex d3cc38342..2453fac11 100644--- a/api/skills/index.js+++ b/api/skills/index.js@@ -110,7 +110,7 @@ async function handleList(req, res) {}}- const rl = await limits.publicIp(clientIp(req));+ const rl = await limits.skillsBrowse(clientIp(req));if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');const auth = await resolveOptionalAuth(req);@@ -162,10 +162,11 @@ async function handleList(req, res) {const hasMore = rows.length > limit;const skills = rows.slice(0, limit).map((r) => toSkill(r, { includeInstalled: userId != null }));- return json(res, 200, {- skills,- next_cursor: hasMore ? rows[limit - 1].id : null,- });+ const cacheHeaders = userId+ ? {}+ : { 'cache-control': 'public, s-maxage=15, stale-while-revalidate=30' };++ return json(res, 200, { skills, next_cursor: hasMore ? rows[limit - 1].id : null }, cacheHeaders);}function runListQuery(p) {diff --git a/chat/src/SkillsMarketplaceModal.svelte b/chat/src/SkillsMarketplaceModal.svelteindex 7b5a486f6..6af37b7a4 100644--- a/chat/src/SkillsMarketplaceModal.svelte+++ b/chat/src/SkillsMarketplaceModal.svelte@@ -9,6 +9,7 @@// Browse statelet skills = [];let loading = false;+ let loaded = false;let fetchFailed = false;let searchQuery = '';let debouncedSearch = '';@@ -131,6 +132,7 @@if (sort) p.set('sort', sort);if (!reset && page) p.set('cursor', page);const res = await fetch(`/api/skills?${p}`);+ if (res.status === 429) throw new Error('Too many requests — please wait a moment and try again');if (!res.ok) throw new Error('Failed to load skills');const data = await res.json();skills = reset ? (data.skills || []) : [...skills, ...(data.skills || [])];@@ -141,6 +143,7 @@notify(e.message, 'error');} finally {loading = false;+ loaded = true;}}@@ -439,11 +442,11 @@// init and keyboard- $: if (open && skills.length === 0 && !loading && !fetchFailed) {+ $: if (open && !loaded && !loading) {Promise.all([loadSkills(true), loadCategories()]);}- $: if (!open) fetchFailed = false;+ $: if (!open) { fetchFailed = false; loaded = false; }$: tagPills = publishForm.tags.split(',')@@ -796,6 +799,7 @@alt=""class="h-8 w-8 shrink-0 rounded-md object-cover"loading="lazy"+ on:error={(e) => { e.currentTarget.style.display = 'none'; }}/>{:else}<span class="shrink-0 text-2xl leading-none">{plugin.avatar}</span>diff --git a/chat/src/ToolPackModal.svelte b/chat/src/ToolPackModal.svelteindex bcc166d37..8b1029037 100644--- a/chat/src/ToolPackModal.svelte+++ b/chat/src/ToolPackModal.svelte@@ -21,7 +21,7 @@<Modal bind:open><div class="flex flex-col gap-y-4"><h2 class="text-base font-semibold text-slate-800">Tool packs</h2>- <ul class="flex flex-col gap-y-3">+ <ul class="flex flex-col gap-y-3 max-h-[60vh] overflow-y-auto pr-1 scrollbar-ultraslim">{#each curatedToolPacks as pack}<li class="flex items-start justify-between gap-x-4 rounded-lg border border-slate-200 px-4 py-3"><div class="min-w-0">diff --git a/chat/src/manus/MoreDropdown.svelte b/chat/src/manus/MoreDropdown.svelteindex e63a1c9cc..159563de7 100644--- a/chat/src/manus/MoreDropdown.svelte+++ b/chat/src/manus/MoreDropdown.svelte@@ -4,18 +4,24 @@import { mode } from '../stores.js';import {feZap, feBarChart2, feLink, feRotateCw, feCode, feCamera, feSliders,+ feBox, fePackage, feHexagon, feRepeat, feGlobe,} from '../feather.js';const dispatch = createEventDispatcher();const items = [- { id: 'pumpfun', label: 'Pump.fun live feed', icon: feZap },- { id: 'curve', label: 'Bonding curve', icon: feBarChart2 },- { id: 'wallet', label: 'Connect wallet', icon: feLink },- { id: 'whale', label: 'Wallet tracker', icon: feCamera },- { id: 'mascot', label: 'Build token mascot', icon: feRotateCw },- { id: 'embed', label: 'Embed on token site', icon: feCode },- { id: 'emotions', label: 'Mascot emotions', icon: feSliders },+ { id: 'pumpfun', label: 'Pump.fun live feed', icon: feZap },+ { id: 'curve', label: 'Bonding curve', icon: feBarChart2 },+ { id: 'wallet', label: 'Connect wallet', icon: feLink },+ { id: 'whale', label: 'Wallet tracker', icon: feCamera },+ { id: 'mascot', label: 'Build token mascot', icon: feRotateCw },+ { id: 'embed', label: 'Embed on token site', icon: feCode },+ { id: 'emotions', label: 'Mascot emotions', icon: feSliders },+ { id: 'ticker3d', label: '3D token ticker', icon: feHexagon },+ { id: 'nft3d', label: 'NFT 3D viewer', icon: fePackage },+ { id: 'walletview', label: 'Wallet 3D viz', icon: feGlobe },+ { id: 'txexplain', label: 'Explain a transaction', icon: feRepeat },+ { id: 'mintnft', label: 'Mint scene as NFT', icon: feBox },];function pick(item) {diff --git a/chat/src/manus/SuggestionChips.svelte b/chat/src/manus/SuggestionChips.svelteindex fd50c6c77..4b6a4ca07 100644--- a/chat/src/manus/SuggestionChips.svelte+++ b/chat/src/manus/SuggestionChips.svelte@@ -1,7 +1,7 @@<script>import { mode } from '../stores.js';import Icon from '../Icon.svelte';- import { feTrendingUp, feBarChart2, feActivity, feAlertCircle, feMoreHorizontal } from '../feather.js';+ import { feTrendingUp, feBarChart2, feActivity, feAlertCircle, feMoreHorizontal, feBox, feLayers } from '../feather.js';import MoreDropdown from './MoreDropdown.svelte';let moreOpen = false;@@ -11,6 +11,8 @@{ id: 'track', label: 'Track a token', icon: feActivity },{ id: 'portfolio', label: 'Check my portfolio', icon: feBarChart2 },{ id: 'rugcheck', label: 'Rug check', icon: feAlertCircle },+ { id: 'chart3d', label: '3D chart', icon: feBox },+ { id: 'scene3d', label: '3D scene', icon: feLayers },];function pick(id) {diff --git a/chat/src/manus/flows/UtilityFlows.svelte b/chat/src/manus/flows/UtilityFlows.svelteindex 5ddcca2c4..4596b435d 100644--- a/chat/src/manus/flows/UtilityFlows.svelte+++ b/chat/src/manus/flows/UtilityFlows.svelte@@ -15,6 +15,11 @@rugcheckPrompts,chart3dPrompts,scene3dPrompts,+ ticker3dPrompts,+ nft3dPrompts,+ walletviewPrompts,+ txexplainPrompts,+ mintnftPrompts,} from './utilityFlowData.js';</script>@@ -48,4 +53,14 @@<SamplePromptGrid title="3D chart examples" prompts={chart3dPrompts} />{:else if $mode === 'scene3d'}<SamplePromptGrid title="3D scene examples" prompts={scene3dPrompts} />+{:else if $mode === 'ticker3d'}+ <SamplePromptGrid title="3D token ticker" prompts={ticker3dPrompts} />+{:else if $mode === 'nft3d'}+ <SamplePromptGrid title="NFT 3D viewer" prompts={nft3dPrompts} />+{:else if $mode === 'walletview'}+ <SamplePromptGrid title="Wallet 3D viz" prompts={walletviewPrompts} />+{:else if $mode === 'txexplain'}+ <SamplePromptGrid title="Explain a transaction" prompts={txexplainPrompts} />+{:else if $mode === 'mintnft'}+ <SamplePromptGrid title="Mint scene as NFT" prompts={mintnftPrompts} />{/if}diff --git a/chat/src/manus/flows/utilityFlowData.js b/chat/src/manus/flows/utilityFlowData.jsindex 542f9f47a..2614d24d1 100644--- a/chat/src/manus/flows/utilityFlowData.js+++ b/chat/src/manus/flows/utilityFlowData.js@@ -170,3 +170,48 @@ export const scene3dPrompts = ['Create a token-gated 3D scene for my NFT holders','Mint the current 3D scene as a Solana NFT',];++export const ticker3dPrompts = [+ 'Show a live 3D rotating coin ticker for SOL',+ 'Display a 3D ticker for Bitcoin with current price',+ 'Render a live 3D coin for ETH with 24h change',+ 'Show me a spinning 3D ticker for the top pump.fun token',+ 'Display a 3D price ticker for PEPE',+ 'Render a live 3D coin for any token by ticker symbol',+];++export const nft3dPrompts = [+ 'Import my Solana NFT [mint address] into a 3D viewer',+ 'Show this Ethereum NFT in 3D: [contract:tokenId]',+ 'Fetch and render my NFT as a rotating 3D model',+ 'Load my NFT collection item into an orbit viewer',+ 'Display this NFT in a 3D scene I can spin around',+ 'Show me what this NFT looks like in a 3D environment',+];++export const walletviewPrompts = [+ 'Visualize my Solana wallet [address] as a 3D coin stack',+ 'Show my EVM wallet [0x…] balances as a 3D chart',+ 'Render my portfolio as a 3D coin tower visualization',+ 'Show all token balances in 3D for wallet [address]',+ 'Display my wallet holdings as stacked 3D cylinders',+ 'Visualize my crypto portfolio allocation in 3D',+];++export const txexplainPrompts = [+ 'Explain this Solana transaction: [paste signature]',+ 'Decode this Ethereum tx hash and show me the flow',+ 'Show a 3D diagram of token transfers in this transaction',+ 'What happened in this swap? [tx signature]',+ 'Visualize the account flow for this on-chain transaction',+ 'Break down this transaction into plain English with a 3D flow',+];++export const mintnftPrompts = [+ 'Mint the current 3D scene as a Solana NFT',+ 'Snapshot this scene and mint it with name "My 3D World"',+ 'Create an NFT from the current 3D visualization',+ 'Mint a scene NFT and send it to my wallet',+ 'Export the current scene as GLB and mint on Solana',+ 'Turn this 3D scene into a collectible NFT',+];diff --git a/package-lock.json b/package-lock.jsonindex c2b65c730..4290c39cc 100644--- a/package-lock.json+++ b/package-lock.json@@ -17,6 +17,7 @@"@coral-xyz/anchor": "^0.31.1","@gltf-transform/core": "^4.3.0","@gltf-transform/extensions": "^4.3.0",+ "@jup-ag/api": "^6.0.48","@metaplex-foundation/mpl-core": "^1.10.0","@metaplex-foundation/umi": "^1.5.1","@metaplex-foundation/umi-bundle-defaults": "^1.5.1",@@ -26,7 +27,9 @@"@pump-fun/agent-payments-sdk": "^3.0.3","@pump-fun/pump-sdk": "^1.33.0","@pump-fun/pump-swap-sdk": "^1.15.0",+ "@pythnetwork/price-service-client": "^1.11.0","@sentry/node": "^10.50.0",+ "@solana/actions": "^1.6.6","@solana/kit": "^6.8.0","@solana/spl-token": "^0.4.14","@solana/web3.js": "^1.98.4",@@ -39,6 +42,7 @@"dat.gui": "^0.7.9","ethers": "^6.16.0","gltf-validator": "^2.0.0-dev.3.10",+ "helius-sdk": "^2.2.2","jose": "^5.9.6","livekit-client": "^2.18.8","query-string": "^8.1.0",@@ -4160,6 +4164,12 @@"@jridgewell/sourcemap-codec": "^1.4.14"}},+ "node_modules/@jup-ag/api": {+ "version": "6.0.48",+ "resolved": "https://registry.npmjs.org/@jup-ag/api/-/api-6.0.48.tgz",+ "integrity": "sha512-H66m/cIqdVIA0qLI2X76UOhuMXkS/+uI6e4KQuU3fn6FSBhCX/9fwt/4IdwES4KWXwGtvqhsg2ExkB9tRtNhyA==",+ "license": "MIT"+ },"node_modules/@livekit/mutex": {"version": "1.1.1","resolved": "https://registry.npmjs.org/@livekit/mutex/-/mutex-1.1.1.tgz",@@ -5158,6 +5168,46 @@"node": ">=10"}},+ "node_modules/@pythnetwork/price-service-client": {+ "version": "1.11.0",+ "resolved": "https://registry.npmjs.org/@pythnetwork/price-service-client/-/price-service-client-1.11.0.tgz",+ "integrity": "sha512-5WFLEzHIHMDOKCLwsOfcAoxgsw6M79RYePU33rxY31kSOXeBn3WCnF3rQ/N28F8ppDJ0kx5V3Gfh2+A19hZ1/w==",+ "deprecated": "This package is deprecated and is no longer maintained. Please use @pythnetwork/hermes-client instead.",+ "license": "Apache-2.0",+ "dependencies": {+ "@pythnetwork/price-service-sdk": "1.9.0",+ "@types/ws": "^8.5.3",+ "axios": "^1.5.1",+ "axios-retry": "^4.0.0",+ "isomorphic-ws": "^4.0.1",+ "ts-log": "^2.2.4",+ "ws": "^8.6.0"+ },+ "engines": {+ "node": "^24.0.0"+ }+ },+ "node_modules/@pythnetwork/price-service-client/node_modules/@types/ws": {+ "version": "8.18.1",+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",+ "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@pythnetwork/price-service-sdk": {+ "version": "1.9.0",+ "resolved": "https://registry.npmjs.org/@pythnetwork/price-service-sdk/-/price-service-sdk-1.9.0.tgz",+ "integrity": "sha512-DX8N4VUqllyervqnCx/Z6Tjz130EcoczYYa96F1YjlbZf0rFyU8VCzX1yAf60q+b8EVcVFVeSkdzJTZD3n6+jQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "bn.js": "^5.2.1"+ },+ "engines": {+ "node": ">=22.14.0"+ }+ },"node_modules/@rollup/plugin-node-resolve": {"version": "15.3.1","resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.3.1.tgz",@@ -6483,6 +6533,33 @@"node": ">=18.0.0"}},+ "node_modules/@solana-program/compute-budget": {+ "version": "0.11.0",+ "resolved": "https://registry.npmjs.org/@solana-program/compute-budget/-/compute-budget-0.11.0.tgz",+ "integrity": "sha512-7f1ePqB/eURkTwTOO9TNIdUXZcyrZoX3Uy2hNo7cXMfNhPFWp9AVgIyRNBc2jf15sdUa9gNpW+PfP2iV8AYAaw==",+ "license": "Apache-2.0",+ "peerDependencies": {+ "@solana/kit": "^5.0"+ }+ },+ "node_modules/@solana-program/stake": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/@solana-program/stake/-/stake-0.5.0.tgz",+ "integrity": "sha512-G3G1kcyTDTqcDEUqJkKyPfHAGh6AociXnDu4dZ87LprWeV3qZ26tReiOu3HN7inf2wCyJ32BWJyxoKNFVL9C8w==",+ "license": "MIT",+ "peerDependencies": {+ "@solana/kit": "^5.0"+ }+ },+ "node_modules/@solana-program/system": {+ "version": "0.10.0",+ "resolved": "https://registry.npmjs.org/@solana-program/system/-/system-0.10.0.tgz",+ "integrity": "sha512-Go+LOEZmqmNlfr+Gjy5ZWAdY5HbYzk2RBewD9QinEU/bBSzpFfzqDRT55JjFRBGJUvMgf3C2vfXEGT4i8DSI4g==",+ "license": "Apache-2.0",+ "peerDependencies": {+ "@solana/kit": "^5.0"+ }+ },"node_modules/@solana-program/token": {"version": "0.9.0","resolved": "https://registry.npmjs.org/@solana-program/token/-/token-0.9.0.tgz",@@ -6570,6 +6647,45 @@"node": ">=20"}},+ "node_modules/@solana/actions": {+ "version": "1.6.6",+ "resolved": "https://registry.npmjs.org/@solana/actions/-/actions-1.6.6.tgz",+ "integrity": "sha512-LkXsXr2NFVgo74ZO8WS1Vli68oJhFBvr7pwh6u6Zb//HJKoG8eHIz24E7Q9gBumWRkduLcLrqtpIgL5SbfO59g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@solana/actions-spec": "^2.4.1",+ "@solana/qr-code-styling": "^1.6.0",+ "@solana/web3.js": "^1.61.0",+ "bs58": "^5.0.0",+ "cross-fetch": "^3.1.5",+ "js-base64": "^3.7.2",+ "tweetnacl": "^1.0.3"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/@solana/actions-spec": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/@solana/actions-spec/-/actions-spec-2.4.2.tgz",+ "integrity": "sha512-phdlA+JqIrsWw3rmhDynddv9/ZQONPqzYCpPoxN3VMR/2bECsdPWyBgLQpjqk4hgdn7VWQXWzEJtdeFMKxn78g==",+ "license": "Apache-2.0"+ },+ "node_modules/@solana/actions/node_modules/base-x": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.1.tgz",+ "integrity": "sha512-uAZ8x6r6S3aUM9rbHGVOIsR15U/ZSc82b3ymnCPsT45Gk1DDvhDPdIgB5MrhirZWt+5K0EEPQH985kNqZgNPFw==",+ "license": "MIT"+ },+ "node_modules/@solana/actions/node_modules/bs58": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz",+ "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==",+ "license": "MIT",+ "dependencies": {+ "base-x": "^4.0.0"+ }+ },"node_modules/@solana/addresses": {"version": "6.8.0","resolved": "https://registry.npmjs.org/@solana/addresses/-/addresses-6.8.0.tgz",@@ -7812,6 +7928,15 @@}}},+ "node_modules/@solana/qr-code-styling": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/@solana/qr-code-styling/-/qr-code-styling-1.6.0.tgz",+ "integrity": "sha512-KyBmyFKPxQPhUkP0jjnxV2ZeF1R1guTD8Hrd0YvHvMnhtrNEoEEdv4Jpp4W0GN4qCGG2KYOM5d3TgoLD+CNf9Q==",+ "license": "MIT",+ "dependencies": {+ "qrcode-generator": "^1.4.3"+ }+ },"node_modules/@solana/rpc": {"version": "6.8.0","resolved": "https://registry.npmjs.org/@solana/rpc/-/rpc-6.8.0.tgz",@@ -10888,6 +11013,12 @@"node": ">= 0.4"}},+ "node_modules/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",+ "license": "MIT"+ },"node_modules/at-least-node": {"version": "1.0.0","resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",@@ -10914,6 +11045,38 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/axios": {+ "version": "1.15.2",+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.2.tgz",+ "integrity": "sha512-wLrXxPtcrPTsNlJmKjkPnNPK2Ihe0hn0wGSaTEiHRPxwjvJwT3hKmXF4dpqxmPO9SoNb2FsYXj/xEo0gHN+D5A==",+ "license": "MIT",+ "dependencies": {+ "follow-redirects": "^1.15.11",+ "form-data": "^4.0.5",+ "proxy-from-env": "^2.1.0"+ }+ },+ "node_modules/axios-retry": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-4.5.0.tgz",+ "integrity": "sha512-aR99oXhpEDGo0UuAlYcn2iGRds30k366Zfa05XWScR9QaQD4JYiP3/1Qt1u7YlefUOK+cn0CcwoL1oefavQUlQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "is-retry-allowed": "^2.2.0"+ },+ "peerDependencies": {+ "axios": "0.x || 1.x"+ }+ },+ "node_modules/axios/node_modules/proxy-from-env": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",+ "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },"node_modules/b4a": {"version": "1.8.0","resolved": "https://registry.npmjs.org/b4a/-/b4a-1.8.0.tgz",@@ -11363,7 +11526,6 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz","integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",- "dev": true,"license": "MIT","dependencies": {"es-errors": "^1.3.0",@@ -11521,6 +11683,18 @@"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==","license": "MIT"},+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/commander": {"version": "2.20.3","resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",@@ -11863,6 +12037,15 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },"node_modules/detect-libc": {"version": "2.1.2","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",@@ -11883,7 +12066,6 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz","integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",- "dev": true,"license": "MIT","dependencies": {"call-bind-apply-helpers": "^1.0.1",@@ -12036,7 +12218,6 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz","integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",- "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -12046,7 +12227,6 @@"version": "1.3.0","resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz","integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",- "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -12063,7 +12243,6 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz","integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",- "dev": true,"license": "MIT","dependencies": {"es-errors": "^1.3.0"@@ -12076,7 +12255,6 @@"version": "2.1.0","resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz","integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",- "dev": true,"license": "MIT","dependencies": {"es-errors": "^1.3.0",@@ -12533,6 +12711,26 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/follow-redirects": {+ "version": "1.16.0",+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",+ "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/RubenVerborgh"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=4.0"+ },+ "peerDependenciesMeta": {+ "debug": {+ "optional": true+ }+ }+ },"node_modules/for-each": {"version": "0.3.5","resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",@@ -12587,6 +12785,22 @@"url": "https://github.com/sponsors/isaacs"}},+ "node_modules/form-data": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",+ "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "es-set-tostringtag": "^2.1.0",+ "hasown": "^2.0.2",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/forwarded-parse": {"version": "2.1.2","resolved": "https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.1.2.tgz",@@ -12634,7 +12848,6 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz","integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",- "dev": true,"license": "MIT","funding": {"url": "https://github.com/sponsors/ljharb"@@ -12704,7 +12917,6 @@"version": "1.3.0","resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz","integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",- "dev": true,"license": "MIT","dependencies": {"call-bind-apply-helpers": "^1.0.2",@@ -12736,7 +12948,6 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz","integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",- "dev": true,"license": "MIT","dependencies": {"dunder-proto": "^1.0.1",@@ -12844,7 +13055,6 @@"version": "1.2.0","resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz","integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",- "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -12915,7 +13125,6 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz","integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",- "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -12928,7 +13137,6 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz","integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",- "dev": true,"license": "MIT","dependencies": {"has-symbols": "^1.0.3"@@ -12944,7 +13152,6 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz","integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",- "dev": true,"license": "MIT","dependencies": {"function-bind": "^1.1.2"@@ -12953,99 +13160,1065 @@"node": ">= 0.4"}},- "node_modules/html-encoding-sniffer": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz",- "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==",- "dev": true,- "license": "MIT",+ "node_modules/helius-sdk": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/helius-sdk/-/helius-sdk-2.2.2.tgz",+ "integrity": "sha512-T7H9fJOYAB9HUZomDQ47EnKYPE//SgweZz4PbWF6q0Y1/jA0J+7xY15kFpZLJHyAGd4AXXxDCSISRdABmpCjfQ==",+ "license": "ISC","dependencies": {- "@exodus/bytes": "^1.6.0"- },- "engines": {- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ "@solana-program/compute-budget": "^0.11.0",+ "@solana-program/stake": "^0.5.0",+ "@solana-program/system": "^0.10.0",+ "@solana-program/token": "^0.9.0",+ "@solana/kit": "^5.0.0",+ "bs58": "^6.0.0",+ "tslib": "^2.8.1"}},- "node_modules/http-proxy-agent": {- "version": "7.0.2",- "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",- "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",+ "node_modules/helius-sdk/node_modules/@solana/accounts": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/accounts/-/accounts-5.5.1.tgz",+ "integrity": "sha512-TfOY9xixg5rizABuLVuZ9XI2x2tmWUC/OoN556xwfDlhBHBjKfszicYYOyD6nbFmwTGYarCmyGIdteXxTXIdhQ==","license": "MIT","dependencies": {- "agent-base": "^7.1.0",- "debug": "^4.3.4"+ "@solana/addresses": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/rpc-spec": "5.5.1",+ "@solana/rpc-types": "5.5.1"},"engines": {- "node": ">= 14"+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }}},- "node_modules/https-proxy-agent": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",- "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "node_modules/helius-sdk/node_modules/@solana/addresses": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/addresses/-/addresses-5.5.1.tgz",+ "integrity": "sha512-5xoah3Q9G30HQghu/9BiHLb5pzlPKRC3zydQDmE3O9H//WfayxTFppsUDCL6FjYUHqj/wzK6CWHySglc2RkpdA==","license": "MIT","dependencies": {- "agent-base": "^7.1.2",- "debug": "4"+ "@solana/assertions": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/nominal-types": "5.5.1"},"engines": {- "node": ">= 14"- }- },- "node_modules/humanize-ms": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",- "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",- "license": "MIT",- "dependencies": {- "ms": "^2.0.0"- }- },- "node_modules/idb": {- "version": "7.1.1",- "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz",- "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==",- "dev": true,- "license": "ISC"- },- "node_modules/ieee754": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true}- ],- "license": "BSD-3-Clause"+ }},- "node_modules/import-fresh": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",- "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",+ "node_modules/helius-sdk/node_modules/@solana/assertions": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/assertions/-/assertions-5.5.1.tgz",+ "integrity": "sha512-YTCSWAlGwSlVPnWtWLm3ukz81wH4j2YaCveK+TjpvUU88hTy6fmUqxi0+hvAMAe4zKXpJyj3Az7BrLJRxbIm4Q==","license": "MIT","dependencies": {- "parent-module": "^1.0.0",- "resolve-from": "^4.0.0"+ "@solana/errors": "5.5.1"},"engines": {- "node": ">=6"+ "node": ">=20.18.0"},- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }}},- "node_modules/import-in-the-middle": {- "version": "3.0.1",+ "node_modules/helius-sdk/node_modules/@solana/codecs": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/codecs/-/codecs-5.5.1.tgz",+ "integrity": "sha512-Vea29nJub/bXjfzEV7ZZQ/PWr1pYLZo3z0qW0LQL37uKKVzVFRQlwetd7INk3YtTD3xm9WUYr7bCvYUk3uKy2g==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-data-structures": "5.5.1",+ "@solana/codecs-numbers": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/options": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/codecs-core": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/codecs-core/-/codecs-core-5.5.1.tgz",+ "integrity": "sha512-TgBt//bbKBct0t6/MpA8ElaOA3sa8eYVvR7LGslCZ84WiAwwjCY0lW/lOYsFHJQzwREMdUyuEyy5YWBKtdh8Rw==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/codecs-data-structures": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/codecs-data-structures/-/codecs-data-structures-5.5.1.tgz",+ "integrity": "sha512-97bJWGyUY9WvBz3mX1UV3YPWGDTez6btCfD0ip3UVEXJbItVuUiOkzcO5iFDUtQT5riKT6xC+Mzl+0nO76gd0w==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-numbers": "5.5.1",+ "@solana/errors": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/codecs-numbers": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/codecs-numbers/-/codecs-numbers-5.5.1.tgz",+ "integrity": "sha512-rllMIZAHqmtvC0HO/dc/21wDuWaD0B8Ryv8o+YtsICQBuiL/0U4AGwH7Pi5GNFySYk0/crSuwfIqQFtmxNSPFw==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "5.5.1",+ "@solana/errors": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/codecs-strings": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-5.5.1.tgz",+ "integrity": "sha512-7klX4AhfHYA+uKKC/nxRGP2MntbYQCR3N6+v7bk1W/rSxYuhNmt+FN8aoThSZtWIKwN6BEyR1167ka8Co1+E7A==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-numbers": "5.5.1",+ "@solana/errors": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "fastestsmallesttextencoderdecoder": "^1.0.22",+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "fastestsmallesttextencoderdecoder": {+ "optional": true+ },+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/errors": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/errors/-/errors-5.5.1.tgz",+ "integrity": "sha512-vFO3p+S7HoyyrcAectnXbdsMfwUzY2zYFUc2DEe5BwpiE9J1IAxPBGjOWO6hL1bbYdBrlmjNx8DXCslqS+Kcmg==",+ "license": "MIT",+ "dependencies": {+ "chalk": "5.6.2",+ "commander": "14.0.2"+ },+ "bin": {+ "errors": "bin/cli.mjs"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/fast-stable-stringify": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/fast-stable-stringify/-/fast-stable-stringify-5.5.1.tgz",+ "integrity": "sha512-Ni7s2FN33zTzhTFgRjEbOVFO+UAmK8qi3Iu0/GRFYK4jN696OjKHnboSQH/EacQ+yGqS54bfxf409wU5dsLLCw==",+ "license": "MIT",+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/functional": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/functional/-/functional-5.5.1.tgz",+ "integrity": "sha512-tTHoJcEQq3gQx5qsdsDJ0LEJeFzwNpXD80xApW9o/PPoCNimI3SALkZl+zNW8VnxRrV3l3yYvfHWBKe/X3WG3w==",+ "license": "MIT",+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/instruction-plans": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/instruction-plans/-/instruction-plans-5.5.1.tgz",+ "integrity": "sha512-7z3CB7YMcFKuVvgcnNY8bY6IsZ8LG61Iytbz7HpNVGX2u1RthOs1tRW8luTzSG1MPL0Ox7afyAVMYeFqSPHnaQ==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1",+ "@solana/instructions": "5.5.1",+ "@solana/keys": "5.5.1",+ "@solana/promises": "5.5.1",+ "@solana/transaction-messages": "5.5.1",+ "@solana/transactions": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/instructions": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/instructions/-/instructions-5.5.1.tgz",+ "integrity": "sha512-h0G1CG6S+gUUSt0eo6rOtsaXRBwCq1+Js2a+Ps9Bzk9q7YHNFA75/X0NWugWLgC92waRp66hrjMTiYYnLBoWOQ==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "5.5.1",+ "@solana/errors": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/keys": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/keys/-/keys-5.5.1.tgz",+ "integrity": "sha512-KRD61cL7CRL+b4r/eB9dEoVxIf/2EJ1Pm1DmRYhtSUAJD2dJ5Xw8QFuehobOGm9URqQ7gaQl+Fkc1qvDlsWqKg==",+ "license": "MIT",+ "dependencies": {+ "@solana/assertions": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/nominal-types": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/kit": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/kit/-/kit-5.5.1.tgz",+ "integrity": "sha512-irKUGiV2yRoyf+4eGQ/ZeCRxa43yjFEL1DUI5B0DkcfZw3cr0VJtVJnrG8OtVF01vT0OUfYOcUn6zJW5TROHvQ==",+ "license": "MIT",+ "dependencies": {+ "@solana/accounts": "5.5.1",+ "@solana/addresses": "5.5.1",+ "@solana/codecs": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/functional": "5.5.1",+ "@solana/instruction-plans": "5.5.1",+ "@solana/instructions": "5.5.1",+ "@solana/keys": "5.5.1",+ "@solana/offchain-messages": "5.5.1",+ "@solana/plugin-core": "5.5.1",+ "@solana/programs": "5.5.1",+ "@solana/rpc": "5.5.1",+ "@solana/rpc-api": "5.5.1",+ "@solana/rpc-parsed-types": "5.5.1",+ "@solana/rpc-spec-types": "5.5.1",+ "@solana/rpc-subscriptions": "5.5.1",+ "@solana/rpc-types": "5.5.1",+ "@solana/signers": "5.5.1",+ "@solana/sysvars": "5.5.1",+ "@solana/transaction-confirmation": "5.5.1",+ "@solana/transaction-messages": "5.5.1",+ "@solana/transactions": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/nominal-types": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/nominal-types/-/nominal-types-5.5.1.tgz",+ "integrity": "sha512-I1ImR+kfrLFxN5z22UDiTWLdRZeKtU0J/pkWkO8qm/8WxveiwdIv4hooi8pb6JnlR4mSrWhq0pCIOxDYrL9GIQ==",+ "license": "MIT",+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/offchain-messages": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/offchain-messages/-/offchain-messages-5.5.1.tgz",+ "integrity": "sha512-g+xHH95prTU+KujtbOzj8wn+C7ZNoiLhf3hj6nYq3MTyxOXtBEysguc97jJveUZG0K97aIKG6xVUlMutg5yxhw==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-data-structures": "5.5.1",+ "@solana/codecs-numbers": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/keys": "5.5.1",+ "@solana/nominal-types": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/options": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/options/-/options-5.5.1.tgz",+ "integrity": "sha512-eo971c9iLNLmk+yOFyo7yKIJzJ/zou6uKpy6mBuyb/thKtS/haiKIc3VLhyTXty3OH2PW8yOlORJnv4DexJB8A==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-data-structures": "5.5.1",+ "@solana/codecs-numbers": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/plugin-core": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/plugin-core/-/plugin-core-5.5.1.tgz",+ "integrity": "sha512-VUZl30lDQFJeiSyNfzU1EjYt2QZvoBFKEwjn1lilUJw7KgqD5z7mbV7diJhT+dLFs36i0OsjXvq5kSygn8YJ3A==",+ "license": "MIT",+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/programs": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/programs/-/programs-5.5.1.tgz",+ "integrity": "sha512-7U9kn0Jsx1NuBLn5HRTFYh78MV4XN145Yc3WP/q5BlqAVNlMoU9coG5IUTJIG847TUqC1lRto3Dnpwm6T4YRpA==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/errors": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/promises": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/promises/-/promises-5.5.1.tgz",+ "integrity": "sha512-T9lfuUYkGykJmppEcssNiCf6yiYQxJkhiLPP+pyAc2z84/7r3UVIb2tNJk4A9sucS66pzJnVHZKcZVGUUp6wzA==",+ "license": "MIT",+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc/-/rpc-5.5.1.tgz",+ "integrity": "sha512-ku8zTUMrkCWci66PRIBC+1mXepEnZH/q1f3ck0kJZ95a06bOTl5KU7HeXWtskkyefzARJ5zvCs54AD5nxjQJ+A==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1",+ "@solana/fast-stable-stringify": "5.5.1",+ "@solana/functional": "5.5.1",+ "@solana/rpc-api": "5.5.1",+ "@solana/rpc-spec": "5.5.1",+ "@solana/rpc-spec-types": "5.5.1",+ "@solana/rpc-transformers": "5.5.1",+ "@solana/rpc-transport-http": "5.5.1",+ "@solana/rpc-types": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-api": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-api/-/rpc-api-5.5.1.tgz",+ "integrity": "sha512-XWOQQPhKl06Vj0xi3RYHAc6oEQd8B82okYJ04K7N0Vvy3J4PN2cxeK7klwkjgavdcN9EVkYCChm2ADAtnztKnA==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/keys": "5.5.1",+ "@solana/rpc-parsed-types": "5.5.1",+ "@solana/rpc-spec": "5.5.1",+ "@solana/rpc-transformers": "5.5.1",+ "@solana/rpc-types": "5.5.1",+ "@solana/transaction-messages": "5.5.1",+ "@solana/transactions": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-parsed-types": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-parsed-types/-/rpc-parsed-types-5.5.1.tgz",+ "integrity": "sha512-HEi3G2nZqGEsa3vX6U0FrXLaqnUCg4SKIUrOe8CezD+cSFbRTOn3rCLrUmJrhVyXlHoQVaRO9mmeovk31jWxJg==",+ "license": "MIT",+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-spec": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-spec/-/rpc-spec-5.5.1.tgz",+ "integrity": "sha512-m3LX2bChm3E3by4mQrH4YwCAFY57QBzuUSWqlUw7ChuZ+oLLOq7b2czi4i6L4Vna67j3eCmB3e+4tqy1j5wy7Q==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1",+ "@solana/rpc-spec-types": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-spec-types": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-spec-types/-/rpc-spec-types-5.5.1.tgz",+ "integrity": "sha512-6OFKtRpIEJQs8Jb2C4OO8KyP2h2Hy1MFhatMAoXA+0Ik8S3H+CicIuMZvGZ91mIu/tXicuOOsNNLu3HAkrakrw==",+ "license": "MIT",+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-subscriptions": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions/-/rpc-subscriptions-5.5.1.tgz",+ "integrity": "sha512-CTMy5bt/6mDh4tc6vUJms9EcuZj3xvK0/xq8IQ90rhkpYvate91RjBP+egvjgSayUg9yucU9vNuUpEjz4spM7w==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1",+ "@solana/fast-stable-stringify": "5.5.1",+ "@solana/functional": "5.5.1",+ "@solana/promises": "5.5.1",+ "@solana/rpc-spec-types": "5.5.1",+ "@solana/rpc-subscriptions-api": "5.5.1",+ "@solana/rpc-subscriptions-channel-websocket": "5.5.1",+ "@solana/rpc-subscriptions-spec": "5.5.1",+ "@solana/rpc-transformers": "5.5.1",+ "@solana/rpc-types": "5.5.1",+ "@solana/subscribable": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-subscriptions-api": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-api/-/rpc-subscriptions-api-5.5.1.tgz",+ "integrity": "sha512-5Oi7k+GdeS8xR2ly1iuSFkAv6CZqwG0Z6b1QZKbEgxadE1XGSDrhM2cn59l+bqCozUWCqh4c/A2znU/qQjROlw==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/keys": "5.5.1",+ "@solana/rpc-subscriptions-spec": "5.5.1",+ "@solana/rpc-transformers": "5.5.1",+ "@solana/rpc-types": "5.5.1",+ "@solana/transaction-messages": "5.5.1",+ "@solana/transactions": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-subscriptions-channel-websocket": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-channel-websocket/-/rpc-subscriptions-channel-websocket-5.5.1.tgz",+ "integrity": "sha512-7tGfBBrYY8TrngOyxSHoCU5shy86iA9SRMRrPSyBhEaZRAk6dnbdpmUTez7gtdVo0BCvh9nzQtUycKWSS7PnFQ==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1",+ "@solana/functional": "5.5.1",+ "@solana/rpc-subscriptions-spec": "5.5.1",+ "@solana/subscribable": "5.5.1",+ "ws": "^8.19.0"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-subscriptions-spec": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-spec/-/rpc-subscriptions-spec-5.5.1.tgz",+ "integrity": "sha512-iq+rGq5fMKP3/mKHPNB6MC8IbVW41KGZg83Us/+LE3AWOTWV1WT20KT2iH1F1ik9roi42COv/TpoZZvhKj45XQ==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1",+ "@solana/promises": "5.5.1",+ "@solana/rpc-spec-types": "5.5.1",+ "@solana/subscribable": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-transformers": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-transformers/-/rpc-transformers-5.5.1.tgz",+ "integrity": "sha512-OsWqLCQdcrRJKvHiMmwFhp9noNZ4FARuMkHT5us3ustDLXaxOjF0gfqZLnMkulSLcKt7TGXqMhBV+HCo7z5M8Q==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1",+ "@solana/functional": "5.5.1",+ "@solana/nominal-types": "5.5.1",+ "@solana/rpc-spec-types": "5.5.1",+ "@solana/rpc-types": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-transport-http": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-transport-http/-/rpc-transport-http-5.5.1.tgz",+ "integrity": "sha512-yv8GoVSHqEV0kUJEIhkdOVkR2SvJ6yoWC51cJn2rSV7plr6huLGe0JgujCmB7uZhhaLbcbP3zxXxu9sOjsi7Fg==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1",+ "@solana/rpc-spec": "5.5.1",+ "@solana/rpc-spec-types": "5.5.1",+ "undici-types": "^7.19.2"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/rpc-types": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/rpc-types/-/rpc-types-5.5.1.tgz",+ "integrity": "sha512-bibTFQ7PbHJJjGJPmfYC2I+/5CRFS4O2p9WwbFraX1Keeel+nRrt/NBXIy8veP5AEn2sVJIyJPpWBRpCx1oATA==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-numbers": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/nominal-types": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/signers": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/signers/-/signers-5.5.1.tgz",+ "integrity": "sha512-FY0IVaBT2kCAze55vEieR6hag4coqcuJ31Aw3hqRH7mv6sV8oqwuJmUrx+uFwOp1gwd5OEAzlv6N4hOOple4sQ==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/instructions": "5.5.1",+ "@solana/keys": "5.5.1",+ "@solana/nominal-types": "5.5.1",+ "@solana/offchain-messages": "5.5.1",+ "@solana/transaction-messages": "5.5.1",+ "@solana/transactions": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/subscribable": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/subscribable/-/subscribable-5.5.1.tgz",+ "integrity": "sha512-9K0PsynFq0CsmK1CDi5Y2vUIJpCqkgSS5yfDN0eKPgHqEptLEaia09Kaxc90cSZDZU5mKY/zv1NBmB6Aro9zQQ==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/sysvars": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/sysvars/-/sysvars-5.5.1.tgz",+ "integrity": "sha512-k3Quq87Mm+geGUu1GWv6knPk0ALsfY6EKSJGw9xUJDHzY/RkYSBnh0RiOrUhtFm2TDNjOailg8/m0VHmi3reFA==",+ "license": "MIT",+ "dependencies": {+ "@solana/accounts": "5.5.1",+ "@solana/codecs": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/rpc-types": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/transaction-confirmation": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/transaction-confirmation/-/transaction-confirmation-5.5.1.tgz",+ "integrity": "sha512-j4mKlYPHEyu+OD7MBt3jRoX4ScFgkhZC6H65on4Fux6LMScgivPJlwnKoZMnsgxFgWds0pl+BYzSiALDsXlYtw==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/keys": "5.5.1",+ "@solana/promises": "5.5.1",+ "@solana/rpc": "5.5.1",+ "@solana/rpc-subscriptions": "5.5.1",+ "@solana/rpc-types": "5.5.1",+ "@solana/transaction-messages": "5.5.1",+ "@solana/transactions": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/transaction-messages": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/transaction-messages/-/transaction-messages-5.5.1.tgz",+ "integrity": "sha512-aXyhMCEaAp3M/4fP0akwBBQkFPr4pfwoC5CLDq999r/FUwDax2RE/h4Ic7h2Xk+JdcUwsb+rLq85Y52hq84XvQ==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-data-structures": "5.5.1",+ "@solana/codecs-numbers": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/functional": "5.5.1",+ "@solana/instructions": "5.5.1",+ "@solana/nominal-types": "5.5.1",+ "@solana/rpc-types": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/@solana/transactions": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@solana/transactions/-/transactions-5.5.1.tgz",+ "integrity": "sha512-8hHtDxtqalZ157pnx6p8k10D7J/KY/biLzfgh9R09VNLLY3Fqi7kJvJCr7M2ik3oRll56pxhraAGCC9yIT6eOA==",+ "license": "MIT",+ "dependencies": {+ "@solana/addresses": "5.5.1",+ "@solana/codecs-core": "5.5.1",+ "@solana/codecs-data-structures": "5.5.1",+ "@solana/codecs-numbers": "5.5.1",+ "@solana/codecs-strings": "5.5.1",+ "@solana/errors": "5.5.1",+ "@solana/functional": "5.5.1",+ "@solana/instructions": "5.5.1",+ "@solana/keys": "5.5.1",+ "@solana/nominal-types": "5.5.1",+ "@solana/rpc-types": "5.5.1",+ "@solana/transaction-messages": "5.5.1"+ },+ "engines": {+ "node": ">=20.18.0"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/helius-sdk/node_modules/commander": {+ "version": "14.0.2",+ "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.2.tgz",+ "integrity": "sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ==",+ "license": "MIT",+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/helius-sdk/node_modules/ws": {+ "version": "8.20.0",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",+ "integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ },+ "peerDependencies": {+ "bufferutil": "^4.0.1",+ "utf-8-validate": ">=5.0.2"+ },+ "peerDependenciesMeta": {+ "bufferutil": {+ "optional": true+ },+ "utf-8-validate": {+ "optional": true+ }+ }+ },+ "node_modules/html-encoding-sniffer": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz",+ "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@exodus/bytes": "^1.6.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/http-proxy-agent": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/humanize-ms": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",+ "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.0.0"+ }+ },+ "node_modules/idb": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz",+ "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/import-fresh": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",+ "license": "MIT",+ "dependencies": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/import-in-the-middle": {+ "version": "3.0.1","resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-3.0.1.tgz","integrity": "sha512-pYkiyXVL2Mf3pozdlDGV6NAObxQx13Ae8knZk1UJRJ6uRW/ZRmTGHlQYtrsSl7ubuE5F8CD1z+s1n4RHNuTtuA==","license": "Apache-2.0",@@ -13418,6 +14591,18 @@"node": ">=0.10.0"}},+ "node_modules/is-retry-allowed": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz",+ "integrity": "sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/is-set": {"version": "2.0.3","resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",@@ -14019,7 +15204,6 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz","integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",- "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -14046,6 +15230,27 @@"node": ">=0.10.0"}},+ "node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },"node_modules/minimatch": {"version": "10.2.5","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",@@ -15028,6 +16233,12 @@}}},+ "node_modules/qrcode-generator": {+ "version": "1.5.2",+ "resolved": "https://registry.npmjs.org/qrcode-generator/-/qrcode-generator-1.5.2.tgz",+ "integrity": "sha512-pItrW0Z9HnDBnFmgiNrY1uxRdri32Uh9EjNYLPVC2zZ3ZRIIEqBoDgm4DkvDwNNDHTK7FNkmr8zAa77BYc9xNw==",+ "license": "MIT"+ },"node_modules/query-string": {"version": "8.2.0","resolved": "https://registry.npmjs.org/query-string/-/query-string-8.2.0.tgz",@@ -17323,12 +18534,24 @@"punycode": "^2.1.0"}},+ "node_modules/ts-log": {+ "version": "2.2.7",+ "resolved": "https://registry.npmjs.org/ts-log/-/ts-log-2.2.7.tgz",+ "integrity": "sha512-320x5Ggei84AxzlXp91QkIGSw5wgaLT6GeAH0KsqDmRZdVWW2OiSeVvElVoatk3f7nicwXlElXsoFkARiGE2yg==",+ "license": "MIT"+ },"node_modules/tslib": {"version": "2.8.1","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz","integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==","license": "0BSD"},+ "node_modules/tweetnacl": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz",+ "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==",+ "license": "Unlicense"+ },"node_modules/type-fest": {"version": "0.16.0","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz",diff --git a/package.json b/package.jsonindex 865d6cba1..c67614e87 100644--- a/package.json+++ b/package.json@@ -72,6 +72,7 @@"@coral-xyz/anchor": "^0.31.1","@gltf-transform/core": "^4.3.0","@gltf-transform/extensions": "^4.3.0",+ "@jup-ag/api": "^6.0.48","@metaplex-foundation/mpl-core": "^1.10.0","@metaplex-foundation/umi": "^1.5.1","@metaplex-foundation/umi-bundle-defaults": "^1.5.1",@@ -81,7 +82,9 @@"@pump-fun/agent-payments-sdk": "^3.0.3","@pump-fun/pump-sdk": "^1.33.0","@pump-fun/pump-swap-sdk": "^1.15.0",+ "@pythnetwork/price-service-client": "^1.11.0","@sentry/node": "^10.50.0",+ "@solana/actions": "^1.6.6","@solana/kit": "^6.8.0","@solana/spl-token": "^0.4.14","@solana/web3.js": "^1.98.4",@@ -94,6 +97,7 @@"dat.gui": "^0.7.9","ethers": "^6.16.0","gltf-validator": "^2.0.0-dev.3.10",+ "helius-sdk": "^2.2.2","jose": "^5.9.6","livekit-client": "^2.18.8","query-string": "^8.1.0",diff --git a/public/chat/index.html b/public/chat/index.htmlindex 034829295..7e326c78b 100644--- a/public/chat/index.html+++ b/public/chat/index.html@@ -43,8 +43,8 @@}}</script>- <script type="module" crossorigin src="/chat/assets/index-mxqepqba.js"></script>- <link rel="stylesheet" crossorigin href="/chat/assets/index-CQdqInHP.css">+ <script type="module" crossorigin src="/chat/assets/index-C6OW_Rhh.js"></script>+ <link rel="stylesheet" crossorigin href="/chat/assets/index-CgrzNPtI.css"></head><body><div id="app"></div>diff --git a/src/agent-skills-jupiter.js b/src/agent-skills-jupiter.jsnew file mode 100644index 000000000..fafc4a46b--- /dev/null+++ b/src/agent-skills-jupiter.js@@ -0,0 +1,270 @@+/**+ * Jupiter Swap + Pyth Oracle skills+ * ----------------------------------+ * Jupiter: quote-only and full swap for any Solana SPL token pair.+ * Pyth: live USD prices for SOL, BTC, ETH, USDC, BONK, WIF, JUP, PYTH.+ *+ * Skills registered:+ * jupiter-quote — read-only quote, no signing+ * jupiter-swap — full swap (wallet signature required)+ * jupiter-tokens — search / resolve token symbols → mint addresses+ * pyth-price — fetch latest price for one or more tokens+ */++import {+ quoteJupiter,+ executeJupiterSwap,+ resolveTokenMint,+ getJupiterTopTokens,+ WSOL_MINT,+ USDC_MINT,+} from './solana/jupiter-swap.js';++import { getPrices, getPrice, PRICE_FEED_IDS } from './solana/pyth-price.js';++// ── helpers ──────────────────────────────────────────────────────────────────++const KNOWN_MINTS = {+ SOL: WSOL_MINT,+ WSOL: WSOL_MINT,+ USDC: USDC_MINT,+};++async function resolveMint(symbol) {+ const upper = symbol.toUpperCase();+ if (upper.length > 32) return symbol; // looks like a raw mint address+ return KNOWN_MINTS[upper] ?? (await resolveTokenMint(symbol));+}++function fmtUsd(n) {+ return n.toLocaleString('en-US', { style: 'currency', currency: 'USD', maximumFractionDigits: 4 });+}++function fmtToken(raw, decimals = 9) {+ return (Number(raw) / 10 ** decimals).toLocaleString('en-US', { maximumFractionDigits: 6 });+}++// ── registration ─────────────────────────────────────────────────────────────++/**+ * @param {import('./agent-skills.js').AgentSkills} skills+ */+export function registerJupiterSkills(skills) {+ // ── jupiter-quote ─────────────────────────────────────────────────────────+ skills.register({+ name: 'jupiter-quote',+ description:+ 'Get a Jupiter DEX swap quote for any Solana token pair. Read-only, no wallet required.',+ instruction: 'Use Jupiter aggregator to find the best swap route and estimated output.',+ animationHint: 'inspect',+ voicePattern: 'Checking Jupiter for {{amountIn}} {{symbolIn}} → {{symbolOut}}…',+ mcpExposed: true,+ inputSchema: {+ type: 'object',+ required: ['symbolIn', 'symbolOut', 'amountIn'],+ properties: {+ symbolIn: {+ type: 'string',+ description: 'Input token symbol (SOL, USDC, BONK, …) or raw mint address',+ },+ symbolOut: {+ type: 'string',+ description: 'Output token symbol or raw mint address',+ },+ amountIn: {+ type: 'number',+ description: 'Human-readable input amount, e.g. 1.5 for 1.5 SOL',+ },+ decimalsIn: {+ type: 'number',+ description: 'Decimals for input token (default 9 for SOL)',+ },+ slippageBps: {+ type: 'number',+ description: 'Slippage tolerance in basis points (default 50 = 0.5%)',+ },+ },+ },+ handler: async (args, _ctx) => {+ const inputMint = await resolveMint(args.symbolIn);+ if (!inputMint)+ return { success: false, output: `Unknown token: ${args.symbolIn}`, sentiment: -0.2 };++ const outputMint = await resolveMint(args.symbolOut);+ if (!outputMint)+ return { success: false, output: `Unknown token: ${args.symbolOut}`, sentiment: -0.2 };++ const quote = await quoteJupiter({+ inputMint,+ outputMint,+ amountIn: args.amountIn,+ decimalsIn: args.decimalsIn ?? 9,+ slippageBps: args.slippageBps ?? 50,+ });++ const outReadable = fmtToken(quote.outAmount, 6);+ const impact = (quote.priceImpactPct * 100).toFixed(3);+ const routes = quote.routePlan?.join(' → ') || 'direct';++ return {+ success: true,+ output: `${args.amountIn} ${args.symbolIn} → ~${outReadable} ${args.symbolOut} (impact ${impact}%) via ${routes}`,+ sentiment: quote.priceImpactPct > 0.05 ? -0.1 : 0.3,+ data: {+ inputMint,+ outputMint,+ inAmount: quote.inAmount,+ outAmount: quote.outAmount,+ priceImpactPct: quote.priceImpactPct,+ slippageBps: quote.slippageBps,+ routePlan: quote.routePlan,+ expiresAtMs: quote.expiresAtMs,+ _quoteRef: quote,+ },+ };+ },+ });++ // ── jupiter-swap ──────────────────────────────────────────────────────────+ skills.register({+ name: 'jupiter-swap',+ description:+ 'Execute a Jupiter DEX swap on Solana. Requires connected browser wallet for signing.',+ instruction:+ 'Quotes first, then sends a versioned transaction for the user to approve. Wallet approval dialog will appear.',+ animationHint: 'celebrate',+ voicePattern: 'Swapping {{amountIn}} {{symbolIn}} for {{symbolOut}} on Jupiter…',+ mcpExposed: true,+ inputSchema: {+ type: 'object',+ required: ['symbolIn', 'symbolOut', 'amountIn'],+ properties: {+ symbolIn: { type: 'string', description: 'Input token symbol or mint address' },+ symbolOut: { type: 'string', description: 'Output token symbol or mint address' },+ amountIn: { type: 'number', description: 'Human-readable input amount' },+ decimalsIn: { type: 'number' },+ slippageBps: { type: 'number' },+ network: { type: 'string', enum: ['mainnet', 'devnet'], default: 'mainnet' },+ },+ },+ handler: async (args, _ctx) => {+ const inputMint = await resolveMint(args.symbolIn);+ if (!inputMint)+ return { success: false, output: `Unknown token: ${args.symbolIn}`, sentiment: -0.3 };++ const outputMint = await resolveMint(args.symbolOut);+ if (!outputMint)+ return { success: false, output: `Unknown token: ${args.symbolOut}`, sentiment: -0.3 };++ // Step 1: quote+ const quote = await quoteJupiter({+ inputMint,+ outputMint,+ amountIn: args.amountIn,+ decimalsIn: args.decimalsIn ?? 9,+ slippageBps: args.slippageBps ?? 50,+ });++ // Step 2: execute (wallet approval dialog fires here)+ const result = await executeJupiterSwap(quote, {+ network: args.network ?? 'mainnet',+ wrapUnwrapSOL: true,+ });++ return {+ success: true,+ output: `Swap confirmed! ${args.amountIn} ${args.symbolIn} → ${fmtToken(result.outAmount, 6)} ${args.symbolOut}. Tx: ${result.txid}`,+ sentiment: 0.9,+ data: { ...result, symbolIn: args.symbolIn, symbolOut: args.symbolOut },+ };+ },+ });++ // ── jupiter-tokens ────────────────────────────────────────────────────────+ skills.register({+ name: 'jupiter-tokens',+ description: 'Search Jupiter token list and resolve symbol → mint address.',+ instruction: 'Look up token info by symbol. Read-only, no wallet.',+ animationHint: 'inspect',+ voicePattern: 'Looking up {{symbol}} on Jupiter…',+ mcpExposed: true,+ inputSchema: {+ type: 'object',+ required: ['symbol'],+ properties: {+ symbol: { type: 'string', description: 'Token symbol to look up (e.g. BONK, WIF)' },+ },+ },+ handler: async (args, _ctx) => {+ const mint = await resolveTokenMint(args.symbol);+ if (!mint)+ return {+ success: false,+ output: `Token "${args.symbol}" not found on Jupiter strict list.`,+ sentiment: -0.1,+ };++ const tokens = await getJupiterTopTokens();+ const info = tokens.find((t) => t.address === mint);++ return {+ success: true,+ output: `${info?.name ?? args.symbol} (${args.symbol.toUpperCase()}) — mint: ${mint}`,+ sentiment: 0.2,+ data: { symbol: info?.symbol, name: info?.name, mint, decimals: info?.decimals },+ };+ },+ });++ // ── pyth-price ────────────────────────────────────────────────────────────+ skills.register({+ name: 'pyth-price',+ description:+ 'Get the current USD price for one or more tokens from Pyth Network oracle. ' ++ `Supported: ${Object.keys(PRICE_FEED_IDS).join(', ')}.`,+ instruction:+ 'Fetch live price from Pyth Hermes API. Returns price, confidence interval, and publish timestamp.',+ animationHint: 'inspect',+ voicePattern: '{{symbol}} is {{price}}…',+ mcpExposed: true,+ inputSchema: {+ type: 'object',+ required: ['symbols'],+ properties: {+ symbols: {+ oneOf: [+ { type: 'string', description: 'Single symbol, e.g. SOL' },+ {+ type: 'array',+ items: { type: 'string' },+ description: 'Multiple symbols, e.g. ["SOL","BTC"]',+ },+ ],+ },+ },+ },+ handler: async (args, _ctx) => {+ const syms = Array.isArray(args.symbols) ? args.symbols : [args.symbols];+ const prices = await getPrices(syms);++ const lines = syms.map((s) => {+ const p = prices[s.toUpperCase()];+ if (!p || isNaN(p.price)) return `${s}: unavailable`;+ return `${s}: ${fmtUsd(p.price)} ±${fmtUsd(p.confidence)}`;+ });++ const isSingle = syms.length === 1;+ const singlePrice = isSingle ? prices[syms[0].toUpperCase()]?.price : null;++ return {+ success: true,+ output: lines.join('\n'),+ sentiment: 0.1,+ data: {+ prices,+ ...(isSingle && singlePrice ? { price: singlePrice, symbol: syms[0].toUpperCase() } : {}),+ },+ };+ },+ });+}diff --git a/src/agent-skills.js b/src/agent-skills.jsindex 57a4691bc..463c1d3e7 100644--- a/src/agent-skills.js+++ b/src/agent-skills.js@@ -17,6 +17,7 @@ import { registerPumpFunWatchSkills } from './agent-skills-pumpfun-watch.js';import { registerPumpFunAutonomousSkills } from './agent-skills-pumpfun-autonomous.js';import { registerPumpFunComposeSkills } from './agent-skills-pumpfun-compose.js';import { attachPumpFunMemoryHooks } from './agent-skills-pumpfun-hooks.js';+import { registerJupiterSkills } from './agent-skills-jupiter.js';/*** @typedef {Object} SkillContext@@ -63,6 +64,7 @@ export class AgentSkills {registerPumpFunAutonomousSkills(this);registerPumpFunComposeSkills(this);attachPumpFunMemoryHooks(protocol, memory);+ registerJupiterSkills(this);}// ── Registry ──────────────────────────────────────────────────────────────diff --git a/src/solana/jupiter-swap.js b/src/solana/jupiter-swap.jsnew file mode 100644index 000000000..88d8713b4--- /dev/null+++ b/src/solana/jupiter-swap.js@@ -0,0 +1,148 @@+/**+ * Jupiter v6 swap integration — quote and swap any SPL token pair.+ * Uses the Jupiter REST API (no on-chain program calls needed for quoting).+ * Swap execution deserialises the versioned transaction and signs it with+ * the injected browser wallet (Phantom / Backpack / Solflare).+ */++import { createJupiterApiClient } from '@jup-ag/api';+import { detectSolanaWallet, SOLANA_RPC } from '../erc8004/solana-deploy.js';++export const WSOL_MINT = 'So11111111111111111111111111111111111111112';+export const USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';++const JUPITER_API_URL = 'https://quote-api.jup.ag/v6';+const QUOTE_TTL_MS = 15_000;++let _client = null;+function getClient() {+ if (!_client) _client = createJupiterApiClient({ basePath: JUPITER_API_URL });+ return _client;+}++async function loadWeb3() {+ const mod = await import('@solana/web3.js');+ return mod;+}++/**+ * Get a swap quote from Jupiter.+ *+ * @param {object} opts+ * @param {string} opts.inputMint Base58 SPL mint (or WSOL_MINT for native SOL).+ * @param {string} opts.outputMint Base58 SPL mint.+ * @param {number} opts.amountIn Input amount in **UI units** (e.g. 1.5 for 1.5 SOL).+ * @param {number} [opts.decimalsIn] Input token decimals (default 9 for SOL).+ * @param {number} [opts.slippageBps] Default 50 (0.5%).+ * @returns {Promise<JupiterQuote>}+ */+export async function quoteJupiter({ inputMint, outputMint, amountIn, decimalsIn = 9, slippageBps = 50 }) {+ const rawAmount = Math.floor(amountIn * 10 ** decimalsIn);+ if (rawAmount <= 0) throw new Error('amountIn must be positive');++ const client = getClient();+ const quote = await client.quoteGet({+ inputMint,+ outputMint,+ amount: rawAmount,+ slippageBps,+ onlyDirectRoutes: false,+ asLegacyTransaction: false,+ });++ if (!quote) throw new Error('Jupiter returned no routes');++ return {+ inputMint,+ outputMint,+ inAmount: Number(quote.inAmount),+ outAmount: Number(quote.outAmount),+ priceImpactPct: Number(quote.priceImpactPct),+ slippageBps: quote.slippageBps,+ routePlan: quote.routePlan?.map((r) => r.swapInfo?.label).filter(Boolean),+ expiresAtMs: Date.now() + QUOTE_TTL_MS,+ _raw: quote,+ };+}++/**+ * Execute a Jupiter swap using the browser wallet.+ * Requires user approval — wallet will show a confirmation dialog.+ *+ * @param {JupiterQuote} quote Result of quoteJupiter().+ * @param {object} [opts]+ * @param {boolean} [opts.wrapUnwrapSOL=true]+ * @param {string} [opts.network='mainnet']+ * @returns {Promise<{txid: string, inputMint: string, outputMint: string, outAmount: number}>}+ */+export async function executeJupiterSwap(quote, { wrapUnwrapSOL = true, network = 'mainnet' } = {}) {+ const wallet = detectSolanaWallet();+ if (!wallet) throw new Error('No Solana wallet found. Connect Phantom / Backpack / Solflare.');+ if (!wallet.publicKey) throw new Error('Wallet is not connected.');++ const client = getClient();+ const { web3 } = await loadWeb3().then((m) => ({ web3: m }));++ const { swapTransaction } = await client.swapPost({+ swapRequest: {+ quoteResponse: quote._raw,+ userPublicKey: wallet.publicKey.toString(),+ wrapAndUnwrapSol: wrapUnwrapSOL,+ dynamicComputeUnitLimit: true,+ prioritizationFeeLamports: 'auto',+ },+ });++ const txBuf = Buffer.from(swapTransaction, 'base64');+ const { VersionedTransaction, Connection } = await import('@solana/web3.js');+ const tx = VersionedTransaction.deserialize(txBuf);++ const rpcUrl = SOLANA_RPC[network] || SOLANA_RPC['mainnet'];+ const connection = new Connection(rpcUrl, 'confirmed');++ const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash();+ tx.message.recentBlockhash = blockhash;++ const signedTx = await wallet.signTransaction(tx);+ const rawTx = signedTx.serialize();++ const txid = await connection.sendRawTransaction(rawTx, { skipPreflight: false, maxRetries: 3 });+ await connection.confirmTransaction({ signature: txid, blockhash, lastValidBlockHeight }, 'confirmed');++ return {+ txid,+ inputMint: quote.inputMint,+ outputMint: quote.outputMint,+ outAmount: quote.outAmount,+ };+}++/**+ * Convenience: fetch token list from Jupiter (top tokens only, cached 5 min).+ * @returns {Promise<Array<{address: string, symbol: string, name: string, decimals: number}>>}+ */+let _tokenListCache = null;+let _tokenListTs = 0;+const TOKEN_LIST_TTL = 5 * 60_000;++export async function getJupiterTopTokens() {+ if (_tokenListCache && Date.now() - _tokenListTs < TOKEN_LIST_TTL) return _tokenListCache;+ const res = await fetch('https://token.jup.ag/strict');+ if (!res.ok) throw new Error(`Jupiter token list fetch failed: ${res.status}`);+ _tokenListCache = await res.json();+ _tokenListTs = Date.now();+ return _tokenListCache;+}++/**+ * Resolve a token symbol (e.g. "BONK") to its mint address.+ * Returns null if not found.+ * @param {string} symbol+ * @returns {Promise<string|null>}+ */+export async function resolveTokenMint(symbol) {+ const tokens = await getJupiterTopTokens();+ const upper = symbol.toUpperCase();+ const match = tokens.find((t) => t.symbol.toUpperCase() === upper);+ return match?.address ?? null;+}diff --git a/src/solana/pyth-price.js b/src/solana/pyth-price.jsnew file mode 100644index 000000000..9268c7d3d--- /dev/null+++ b/src/solana/pyth-price.js@@ -0,0 +1,116 @@+/**+ * Pyth Network price feed integration via the Hermes REST/WebSocket API.+ * Read-only — no on-chain interaction required.+ *+ * Common price feed IDs from https://pyth.network/developers/price-feed-ids+ */++import { PriceServiceConnection } from '@pythnetwork/price-service-client';++// Pyth Hermes public endpoint+const HERMES_URL = 'https://hermes.pyth.network';++// Curated feed IDs for tokens commonly used in this platform+export const PRICE_FEED_IDS = {+ SOL: 'ef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d',+ BTC: 'e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43',+ ETH: 'ff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',+ USDC: 'eaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a',+ BONK: '72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',+ WIF: '4ca4beeca86f0d164160323817a4e42b10010a724c2217c6ee41b54cd4cc61fc',+ JUP: '0a0408d619e9380abad35060f9192039ed5042fa6f82301d0e48bb52be830996',+ PYTH: '0bbf28e9a841a1cc788f6a361b17ca072d0ea3098a1e5df1c3922d06719579ff',+};++let _connection = null;++function getConnection() {+ if (!_connection) {+ _connection = new PriceServiceConnection(HERMES_URL, {+ priceFeedRequestConfig: { binary: false },+ });+ }+ return _connection;+}++/**+ * Parse a raw Pyth price+exponent into a human-readable float.+ * @param {import('@pythnetwork/price-service-client').Price} p+ * @returns {number}+ */+function toFloat(p) {+ if (!p) return NaN;+ return Number(p.price) * 10 ** Number(p.expo);+}++/**+ * Get the latest USD price for one or more tokens.+ *+ * @param {string|string[]} symbols Token symbol(s), e.g. 'SOL' or ['SOL','BTC']+ * @returns {Promise<Record<string, {price: number, confidence: number, publishTime: number}>>}+ */+export async function getPrices(symbols) {+ const syms = Array.isArray(symbols) ? symbols : [symbols];+ const ids = syms.map((s) => {+ const id = PRICE_FEED_IDS[s.toUpperCase()];+ if (!id) throw new Error(`Unknown Pyth feed symbol: ${s}. Known: ${Object.keys(PRICE_FEED_IDS).join(', ')}`);+ return id;+ });++ const conn = getConnection();+ const feeds = await conn.getLatestPriceFeeds(ids);++ const result = {};+ for (let i = 0; i < syms.length; i++) {+ const feed = feeds?.[i];+ const p = feed?.getPriceUnchecked();+ const conf = feed?.getConfUnchecked();+ result[syms[i].toUpperCase()] = {+ price: toFloat(p),+ confidence: toFloat(conf),+ publishTime: p?.publishTime ?? 0,+ };+ }+ return result;+}++/**+ * Get the USD price for a single token symbol.+ *+ * @param {string} symbol+ * @returns {Promise<{price: number, confidence: number, publishTime: number, symbol: string}>}+ */+export async function getPrice(symbol) {+ const map = await getPrices(symbol);+ return { symbol: symbol.toUpperCase(), ...map[symbol.toUpperCase()] };+}++/**+ * Register a real-time WebSocket price subscription.+ * Returns an unsubscribe function.+ *+ * @param {string[]} symbols+ * @param {(updates: Record<string, {price: number, confidence: number}>) => void} onUpdate+ * @returns {() => void} unsubscribe+ */+export function subscribePrices(symbols, onUpdate) {+ const ids = symbols.map((s) => {+ const id = PRICE_FEED_IDS[s.toUpperCase()];+ if (!id) throw new Error(`Unknown Pyth feed: ${s}`);+ return id;+ });++ const idToSymbol = Object.fromEntries(symbols.map((s, i) => [ids[i], s.toUpperCase()]));+ const conn = getConnection();++ conn.subscribePriceFeedUpdates(ids, (feed) => {+ const id = feed.id.replace(/^0x/, '');+ const sym = idToSymbol[id];+ if (!sym) return;+ const p = feed.getPriceUnchecked();+ const conf = feed.getConfUnchecked();+ onUpdate({ [sym]: { price: toFloat(p), confidence: toFloat(conf), publishTime: p?.publishTime ?? 0 } });+ });++ return () => conn.unsubscribePriceFeedUpdates(ids);+}