clodds 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +468 -0
- package/dist/acp/agreement.d.ts +110 -0
- package/dist/acp/agreement.js +514 -0
- package/dist/acp/agreement.js.map +1 -0
- package/dist/acp/discovery.d.ts +84 -0
- package/dist/acp/discovery.js +332 -0
- package/dist/acp/discovery.js.map +1 -0
- package/dist/acp/escrow.d.ts +139 -0
- package/dist/acp/escrow.js +880 -0
- package/dist/acp/escrow.js.map +1 -0
- package/dist/acp/identity.d.ts +135 -0
- package/dist/acp/identity.js +716 -0
- package/dist/acp/identity.js.map +1 -0
- package/dist/acp/index.d.ts +205 -0
- package/dist/acp/index.js +583 -0
- package/dist/acp/index.js.map +1 -0
- package/dist/acp/persistence.d.ts +59 -0
- package/dist/acp/persistence.js +590 -0
- package/dist/acp/persistence.js.map +1 -0
- package/dist/acp/predictions.d.ts +89 -0
- package/dist/acp/predictions.js +417 -0
- package/dist/acp/predictions.js.map +1 -0
- package/dist/acp/registry.d.ts +143 -0
- package/dist/acp/registry.js +584 -0
- package/dist/acp/registry.js.map +1 -0
- package/dist/agents/handlers/acp.d.ts +12 -0
- package/dist/agents/handlers/acp.js +987 -0
- package/dist/agents/handlers/acp.js.map +1 -0
- package/dist/agents/handlers/agentbets.d.ts +8 -0
- package/dist/agents/handlers/agentbets.js +63 -0
- package/dist/agents/handlers/agentbets.js.map +1 -0
- package/dist/agents/handlers/arbitrage.d.ts +16 -0
- package/dist/agents/handlers/arbitrage.js +187 -0
- package/dist/agents/handlers/arbitrage.js.map +1 -0
- package/dist/agents/handlers/betfair.d.ts +11 -0
- package/dist/agents/handlers/betfair.js +214 -0
- package/dist/agents/handlers/betfair.js.map +1 -0
- package/dist/agents/handlers/binance.d.ts +9 -0
- package/dist/agents/handlers/binance.js +227 -0
- package/dist/agents/handlers/binance.js.map +1 -0
- package/dist/agents/handlers/bittensor.d.ts +10 -0
- package/dist/agents/handlers/bittensor.js +90 -0
- package/dist/agents/handlers/bittensor.js.map +1 -0
- package/dist/agents/handlers/bybit.d.ts +9 -0
- package/dist/agents/handlers/bybit.js +226 -0
- package/dist/agents/handlers/bybit.js.map +1 -0
- package/dist/agents/handlers/credentials.d.ts +8 -0
- package/dist/agents/handlers/credentials.js +103 -0
- package/dist/agents/handlers/credentials.js.map +1 -0
- package/dist/agents/handlers/hyperliquid.d.ts +9 -0
- package/dist/agents/handlers/hyperliquid.js +326 -0
- package/dist/agents/handlers/hyperliquid.js.map +1 -0
- package/dist/agents/handlers/index.d.ts +82 -0
- package/dist/agents/handlers/index.js +143 -0
- package/dist/agents/handlers/index.js.map +1 -0
- package/dist/agents/handlers/kalshi.d.ts +10 -0
- package/dist/agents/handlers/kalshi.js +1377 -0
- package/dist/agents/handlers/kalshi.js.map +1 -0
- package/dist/agents/handlers/manifold.d.ts +9 -0
- package/dist/agents/handlers/manifold.js +1001 -0
- package/dist/agents/handlers/manifold.js.map +1 -0
- package/dist/agents/handlers/markets.d.ts +8 -0
- package/dist/agents/handlers/markets.js +321 -0
- package/dist/agents/handlers/markets.js.map +1 -0
- package/dist/agents/handlers/opinion.d.ts +11 -0
- package/dist/agents/handlers/opinion.js +374 -0
- package/dist/agents/handlers/opinion.js.map +1 -0
- package/dist/agents/handlers/paper-trading.d.ts +8 -0
- package/dist/agents/handlers/paper-trading.js +124 -0
- package/dist/agents/handlers/paper-trading.js.map +1 -0
- package/dist/agents/handlers/polymarket.d.ts +17 -0
- package/dist/agents/handlers/polymarket.js +455 -0
- package/dist/agents/handlers/polymarket.js.map +1 -0
- package/dist/agents/handlers/predictfun.d.ts +9 -0
- package/dist/agents/handlers/predictfun.js +488 -0
- package/dist/agents/handlers/predictfun.js.map +1 -0
- package/dist/agents/handlers/smarkets.d.ts +11 -0
- package/dist/agents/handlers/smarkets.js +205 -0
- package/dist/agents/handlers/smarkets.js.map +1 -0
- package/dist/agents/handlers/solana.d.ts +14 -0
- package/dist/agents/handlers/solana.js +1530 -0
- package/dist/agents/handlers/solana.js.map +1 -0
- package/dist/agents/handlers/types.d.ts +58 -0
- package/dist/agents/handlers/types.js +34 -0
- package/dist/agents/handlers/types.js.map +1 -0
- package/dist/agents/handlers/virtuals.d.ts +11 -0
- package/dist/agents/handlers/virtuals.js +135 -0
- package/dist/agents/handlers/virtuals.js.map +1 -0
- package/dist/agents/handlers/wallets.d.ts +9 -0
- package/dist/agents/handlers/wallets.js +222 -0
- package/dist/agents/handlers/wallets.js.map +1 -0
- package/dist/agents/index.d.ts +79 -0
- package/dist/agents/index.js +16690 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/subagents.d.ts +219 -0
- package/dist/agents/subagents.js +736 -0
- package/dist/agents/subagents.js.map +1 -0
- package/dist/alerts/index.d.ts +110 -0
- package/dist/alerts/index.js +421 -0
- package/dist/alerts/index.js.map +1 -0
- package/dist/alerts/realtime.d.ts +114 -0
- package/dist/alerts/realtime.js +262 -0
- package/dist/alerts/realtime.js.map +1 -0
- package/dist/api/apikeys.d.ts +74 -0
- package/dist/api/apikeys.js +319 -0
- package/dist/api/apikeys.js.map +1 -0
- package/dist/api/compute/code.d.ts +28 -0
- package/dist/api/compute/code.js +257 -0
- package/dist/api/compute/code.js.map +1 -0
- package/dist/api/compute/data.d.ts +72 -0
- package/dist/api/compute/data.js +264 -0
- package/dist/api/compute/data.js.map +1 -0
- package/dist/api/compute/gateway.d.ts +185 -0
- package/dist/api/compute/gateway.js +958 -0
- package/dist/api/compute/gateway.js.map +1 -0
- package/dist/api/compute/index.d.ts +21 -0
- package/dist/api/compute/index.js +46 -0
- package/dist/api/compute/index.js.map +1 -0
- package/dist/api/compute/llm.d.ts +64 -0
- package/dist/api/compute/llm.js +602 -0
- package/dist/api/compute/llm.js.map +1 -0
- package/dist/api/compute/persistence.d.ts +77 -0
- package/dist/api/compute/persistence.js +251 -0
- package/dist/api/compute/persistence.js.map +1 -0
- package/dist/api/compute/storage.d.ts +48 -0
- package/dist/api/compute/storage.js +283 -0
- package/dist/api/compute/storage.js.map +1 -0
- package/dist/api/compute/trade.d.ts +69 -0
- package/dist/api/compute/trade.js +460 -0
- package/dist/api/compute/trade.js.map +1 -0
- package/dist/api/compute/types.d.ts +271 -0
- package/dist/api/compute/types.js +87 -0
- package/dist/api/compute/types.js.map +1 -0
- package/dist/api/compute/web.d.ts +29 -0
- package/dist/api/compute/web.js +255 -0
- package/dist/api/compute/web.js.map +1 -0
- package/dist/api/custody.d.ts +48 -0
- package/dist/api/custody.js +272 -0
- package/dist/api/custody.js.map +1 -0
- package/dist/api/fees.d.ts +91 -0
- package/dist/api/fees.js +155 -0
- package/dist/api/fees.js.map +1 -0
- package/dist/api/gateway.d.ts +40 -0
- package/dist/api/gateway.js +569 -0
- package/dist/api/gateway.js.map +1 -0
- package/dist/api/index.d.ts +29 -0
- package/dist/api/index.js +55 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/jobs.d.ts +59 -0
- package/dist/api/jobs.js +362 -0
- package/dist/api/jobs.js.map +1 -0
- package/dist/api/middleware.d.ts +60 -0
- package/dist/api/middleware.js +315 -0
- package/dist/api/middleware.js.map +1 -0
- package/dist/api/prompt.d.ts +44 -0
- package/dist/api/prompt.js +345 -0
- package/dist/api/prompt.js.map +1 -0
- package/dist/api/sdk.d.ts +258 -0
- package/dist/api/sdk.js +341 -0
- package/dist/api/sdk.js.map +1 -0
- package/dist/api/server.d.ts +17 -0
- package/dist/api/server.js +852 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/types.d.ts +307 -0
- package/dist/api/types.js +64 -0
- package/dist/api/types.js.map +1 -0
- package/dist/arbitrage/index.d.ts +124 -0
- package/dist/arbitrage/index.js +482 -0
- package/dist/arbitrage/index.js.map +1 -0
- package/dist/auth/copilot.d.ts +87 -0
- package/dist/auth/copilot.js +328 -0
- package/dist/auth/copilot.js.map +1 -0
- package/dist/auth/google.d.ts +121 -0
- package/dist/auth/google.js +479 -0
- package/dist/auth/google.js.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.js +25 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/oauth.d.ts +94 -0
- package/dist/auth/oauth.js +502 -0
- package/dist/auth/oauth.js.map +1 -0
- package/dist/auth/qwen.d.ts +110 -0
- package/dist/auth/qwen.js +351 -0
- package/dist/auth/qwen.js.map +1 -0
- package/dist/auto-reply/index.d.ts +143 -0
- package/dist/auto-reply/index.js +391 -0
- package/dist/auto-reply/index.js.map +1 -0
- package/dist/automation/cron.d.ts +66 -0
- package/dist/automation/cron.js +226 -0
- package/dist/automation/cron.js.map +1 -0
- package/dist/automation/heartbeats.d.ts +63 -0
- package/dist/automation/heartbeats.js +144 -0
- package/dist/automation/heartbeats.js.map +1 -0
- package/dist/automation/index.d.ts +9 -0
- package/dist/automation/index.js +15 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/automation/webhooks.d.ts +60 -0
- package/dist/automation/webhooks.js +225 -0
- package/dist/automation/webhooks.js.map +1 -0
- package/dist/bankr/client.d.ts +86 -0
- package/dist/bankr/client.js +177 -0
- package/dist/bankr/client.js.map +1 -0
- package/dist/bankr/index.d.ts +6 -0
- package/dist/bankr/index.js +23 -0
- package/dist/bankr/index.js.map +1 -0
- package/dist/base/index.d.ts +6 -0
- package/dist/base/index.js +23 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/provider.d.ts +27 -0
- package/dist/base/provider.js +128 -0
- package/dist/base/provider.js.map +1 -0
- package/dist/bin/worker.d.ts +31 -0
- package/dist/bin/worker.js +127 -0
- package/dist/bin/worker.js.map +1 -0
- package/dist/bittensor/chutes.d.ts +14 -0
- package/dist/bittensor/chutes.js +141 -0
- package/dist/bittensor/chutes.js.map +1 -0
- package/dist/bittensor/index.d.ts +7 -0
- package/dist/bittensor/index.js +13 -0
- package/dist/bittensor/index.js.map +1 -0
- package/dist/bittensor/persistence.d.ts +8 -0
- package/dist/bittensor/persistence.js +188 -0
- package/dist/bittensor/persistence.js.map +1 -0
- package/dist/bittensor/plugin.d.ts +30 -0
- package/dist/bittensor/plugin.js +134 -0
- package/dist/bittensor/plugin.js.map +1 -0
- package/dist/bittensor/python-runner.d.ts +7 -0
- package/dist/bittensor/python-runner.js +83 -0
- package/dist/bittensor/python-runner.js.map +1 -0
- package/dist/bittensor/server.d.ts +7 -0
- package/dist/bittensor/server.js +110 -0
- package/dist/bittensor/server.js.map +1 -0
- package/dist/bittensor/service.d.ts +7 -0
- package/dist/bittensor/service.js +291 -0
- package/dist/bittensor/service.js.map +1 -0
- package/dist/bittensor/tool.d.ts +45 -0
- package/dist/bittensor/tool.js +147 -0
- package/dist/bittensor/tool.js.map +1 -0
- package/dist/bittensor/types.d.ts +188 -0
- package/dist/bittensor/types.js +6 -0
- package/dist/bittensor/types.js.map +1 -0
- package/dist/bittensor/wallet.d.ts +18 -0
- package/dist/bittensor/wallet.js +192 -0
- package/dist/bittensor/wallet.js.map +1 -0
- package/dist/bridge/wormhole.d.ts +239 -0
- package/dist/bridge/wormhole.js +404 -0
- package/dist/bridge/wormhole.js.map +1 -0
- package/dist/browser/index.d.ts +67 -0
- package/dist/browser/index.js +458 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/cache/index.d.ts +105 -0
- package/dist/cache/index.js +306 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/canvas/index.d.ts +66 -0
- package/dist/canvas/index.js +391 -0
- package/dist/canvas/index.js.map +1 -0
- package/dist/channels/base-adapter.d.ts +126 -0
- package/dist/channels/base-adapter.js +416 -0
- package/dist/channels/base-adapter.js.map +1 -0
- package/dist/channels/bluebubbles/index.d.ts +23 -0
- package/dist/channels/bluebubbles/index.js +182 -0
- package/dist/channels/bluebubbles/index.js.map +1 -0
- package/dist/channels/discord/index.d.ts +25 -0
- package/dist/channels/discord/index.js +419 -0
- package/dist/channels/discord/index.js.map +1 -0
- package/dist/channels/googlechat/index.d.ts +35 -0
- package/dist/channels/googlechat/index.js +223 -0
- package/dist/channels/googlechat/index.js.map +1 -0
- package/dist/channels/imessage/index.d.ts +28 -0
- package/dist/channels/imessage/index.js +340 -0
- package/dist/channels/imessage/index.js.map +1 -0
- package/dist/channels/index.d.ts +58 -0
- package/dist/channels/index.js +382 -0
- package/dist/channels/index.js.map +1 -0
- package/dist/channels/line/index.d.ts +307 -0
- package/dist/channels/line/index.js +760 -0
- package/dist/channels/line/index.js.map +1 -0
- package/dist/channels/matrix/index.d.ts +35 -0
- package/dist/channels/matrix/index.js +328 -0
- package/dist/channels/matrix/index.js.map +1 -0
- package/dist/channels/mattermost/index.d.ts +25 -0
- package/dist/channels/mattermost/index.js +239 -0
- package/dist/channels/mattermost/index.js.map +1 -0
- package/dist/channels/nextcloud-talk/index.d.ts +25 -0
- package/dist/channels/nextcloud-talk/index.js +175 -0
- package/dist/channels/nextcloud-talk/index.js.map +1 -0
- package/dist/channels/nostr/index.d.ts +21 -0
- package/dist/channels/nostr/index.js +278 -0
- package/dist/channels/nostr/index.js.map +1 -0
- package/dist/channels/signal/index.d.ts +33 -0
- package/dist/channels/signal/index.js +333 -0
- package/dist/channels/signal/index.js.map +1 -0
- package/dist/channels/slack/index.d.ts +26 -0
- package/dist/channels/slack/index.js +266 -0
- package/dist/channels/slack/index.js.map +1 -0
- package/dist/channels/teams/index.d.ts +42 -0
- package/dist/channels/teams/index.js +312 -0
- package/dist/channels/teams/index.js.map +1 -0
- package/dist/channels/telegram/index.d.ts +9 -0
- package/dist/channels/telegram/index.js +761 -0
- package/dist/channels/telegram/index.js.map +1 -0
- package/dist/channels/tlon/index.d.ts +25 -0
- package/dist/channels/tlon/index.js +236 -0
- package/dist/channels/tlon/index.js.map +1 -0
- package/dist/channels/twitch/index.d.ts +25 -0
- package/dist/channels/twitch/index.js +182 -0
- package/dist/channels/twitch/index.js.map +1 -0
- package/dist/channels/voice/index.d.ts +31 -0
- package/dist/channels/voice/index.js +208 -0
- package/dist/channels/voice/index.js.map +1 -0
- package/dist/channels/webchat/index.d.ts +29 -0
- package/dist/channels/webchat/index.js +366 -0
- package/dist/channels/webchat/index.js.map +1 -0
- package/dist/channels/whatsapp/index.d.ts +72 -0
- package/dist/channels/whatsapp/index.js +767 -0
- package/dist/channels/whatsapp/index.js.map +1 -0
- package/dist/channels/zalo/index.d.ts +45 -0
- package/dist/channels/zalo/index.js +285 -0
- package/dist/channels/zalo/index.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +23 -0
- package/dist/cli/commands/doctor.js +649 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/gateway.d.ts +6 -0
- package/dist/cli/commands/gateway.js +32 -0
- package/dist/cli/commands/gateway.js.map +1 -0
- package/dist/cli/commands/index.d.ts +31 -0
- package/dist/cli/commands/index.js +3743 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/onboard.d.ts +4 -0
- package/dist/cli/commands/onboard.js +334 -0
- package/dist/cli/commands/onboard.js.map +1 -0
- package/dist/cli/commands/repl.d.ts +11 -0
- package/dist/cli/commands/repl.js +185 -0
- package/dist/cli/commands/repl.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +29 -0
- package/dist/cli/commands/skills.js +297 -0
- package/dist/cli/commands/skills.js.map +1 -0
- package/dist/cli/index.d.ts +12 -0
- package/dist/cli/index.js +449 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/secure.d.ts +14 -0
- package/dist/cli/secure.js +626 -0
- package/dist/cli/secure.js.map +1 -0
- package/dist/commands/index.d.ts +61 -0
- package/dist/commands/index.js +290 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/registry.d.ts +69 -0
- package/dist/commands/registry.js +3142 -0
- package/dist/commands/registry.js.map +1 -0
- package/dist/config/index.d.ts +465 -0
- package/dist/config/index.js +1451 -0
- package/dist/config/index.js.map +1 -0
- package/dist/credentials/index.d.ts +51 -0
- package/dist/credentials/index.js +270 -0
- package/dist/credentials/index.js.map +1 -0
- package/dist/cron/index.d.ts +151 -0
- package/dist/cron/index.js +1283 -0
- package/dist/cron/index.js.map +1 -0
- package/dist/cron/types.d.ts +102 -0
- package/dist/cron/types.js +6 -0
- package/dist/cron/types.js.map +1 -0
- package/dist/daemon/index.d.ts +23 -0
- package/dist/daemon/index.js +159 -0
- package/dist/daemon/index.js.map +1 -0
- package/dist/db/index.d.ts +825 -0
- package/dist/db/index.js +3382 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrations.d.ts +70 -0
- package/dist/db/migrations.js +1373 -0
- package/dist/db/migrations.js.map +1 -0
- package/dist/docker/index.d.ts +188 -0
- package/dist/docker/index.js +571 -0
- package/dist/docker/index.js.map +1 -0
- package/dist/doctor/index.d.ts +47 -0
- package/dist/doctor/index.js +379 -0
- package/dist/doctor/index.js.map +1 -0
- package/dist/embeddings/index.d.ts +65 -0
- package/dist/embeddings/index.js +399 -0
- package/dist/embeddings/index.js.map +1 -0
- package/dist/evm/contracts.d.ts +112 -0
- package/dist/evm/contracts.js +332 -0
- package/dist/evm/contracts.js.map +1 -0
- package/dist/evm/index.d.ts +21 -0
- package/dist/evm/index.js +45 -0
- package/dist/evm/index.js.map +1 -0
- package/dist/evm/multichain.d.ts +87 -0
- package/dist/evm/multichain.js +308 -0
- package/dist/evm/multichain.js.map +1 -0
- package/dist/evm/odos.d.ts +62 -0
- package/dist/evm/odos.js +261 -0
- package/dist/evm/odos.js.map +1 -0
- package/dist/evm/oneinch.d.ts +55 -0
- package/dist/evm/oneinch.js +324 -0
- package/dist/evm/oneinch.js.map +1 -0
- package/dist/evm/transfers.d.ts +83 -0
- package/dist/evm/transfers.js +393 -0
- package/dist/evm/transfers.js.map +1 -0
- package/dist/evm/uniswap.d.ts +56 -0
- package/dist/evm/uniswap.js +307 -0
- package/dist/evm/uniswap.js.map +1 -0
- package/dist/evm/virtuals.d.ts +220 -0
- package/dist/evm/virtuals.js +735 -0
- package/dist/evm/virtuals.js.map +1 -0
- package/dist/evm/wallet.d.ts +96 -0
- package/dist/evm/wallet.js +258 -0
- package/dist/evm/wallet.js.map +1 -0
- package/dist/exchanges/binance-futures/index.d.ts +83 -0
- package/dist/exchanges/binance-futures/index.js +394 -0
- package/dist/exchanges/binance-futures/index.js.map +1 -0
- package/dist/exchanges/bybit/index.d.ts +78 -0
- package/dist/exchanges/bybit/index.js +379 -0
- package/dist/exchanges/bybit/index.js.map +1 -0
- package/dist/exchanges/hyperliquid/index.d.ts +594 -0
- package/dist/exchanges/hyperliquid/index.js +1101 -0
- package/dist/exchanges/hyperliquid/index.js.map +1 -0
- package/dist/exchanges/mexc/index.d.ts +80 -0
- package/dist/exchanges/mexc/index.js +389 -0
- package/dist/exchanges/mexc/index.js.map +1 -0
- package/dist/exchanges/opinion/index.d.ts +128 -0
- package/dist/exchanges/opinion/index.js +443 -0
- package/dist/exchanges/opinion/index.js.map +1 -0
- package/dist/exchanges/predictfun/index.d.ts +107 -0
- package/dist/exchanges/predictfun/index.js +398 -0
- package/dist/exchanges/predictfun/index.js.map +1 -0
- package/dist/execution/auto-redeem.d.ts +55 -0
- package/dist/execution/auto-redeem.js +324 -0
- package/dist/execution/auto-redeem.js.map +1 -0
- package/dist/execution/bracket-orders.d.ts +84 -0
- package/dist/execution/bracket-orders.js +387 -0
- package/dist/execution/bracket-orders.js.map +1 -0
- package/dist/execution/circuit-breaker.d.ts +87 -0
- package/dist/execution/circuit-breaker.js +274 -0
- package/dist/execution/circuit-breaker.js.map +1 -0
- package/dist/execution/dca-persistence.d.ts +47 -0
- package/dist/execution/dca-persistence.js +159 -0
- package/dist/execution/dca-persistence.js.map +1 -0
- package/dist/execution/dca.d.ts +60 -0
- package/dist/execution/dca.js +273 -0
- package/dist/execution/dca.js.map +1 -0
- package/dist/execution/futures.d.ts +162 -0
- package/dist/execution/futures.js +1336 -0
- package/dist/execution/futures.js.map +1 -0
- package/dist/execution/index.d.ts +346 -0
- package/dist/execution/index.js +2532 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/mev-protection.d.ts +150 -0
- package/dist/execution/mev-protection.js +377 -0
- package/dist/execution/mev-protection.js.map +1 -0
- package/dist/execution/order-persistence.d.ts +81 -0
- package/dist/execution/order-persistence.js +350 -0
- package/dist/execution/order-persistence.js.map +1 -0
- package/dist/execution/position-manager.d.ts +142 -0
- package/dist/execution/position-manager.js +404 -0
- package/dist/execution/position-manager.js.map +1 -0
- package/dist/execution/smart-router.d.ts +90 -0
- package/dist/execution/smart-router.js +323 -0
- package/dist/execution/smart-router.js.map +1 -0
- package/dist/execution/trigger-orders.d.ts +81 -0
- package/dist/execution/trigger-orders.js +266 -0
- package/dist/execution/trigger-orders.js.map +1 -0
- package/dist/execution/twap.d.ts +87 -0
- package/dist/execution/twap.js +405 -0
- package/dist/execution/twap.js.map +1 -0
- package/dist/extensions/copilot-proxy/index.d.ts +49 -0
- package/dist/extensions/copilot-proxy/index.js +204 -0
- package/dist/extensions/copilot-proxy/index.js.map +1 -0
- package/dist/extensions/diagnostics-otel/index.d.ts +54 -0
- package/dist/extensions/diagnostics-otel/index.js +290 -0
- package/dist/extensions/diagnostics-otel/index.js.map +1 -0
- package/dist/extensions/google-auth/index.d.ts +71 -0
- package/dist/extensions/google-auth/index.js +350 -0
- package/dist/extensions/google-auth/index.js.map +1 -0
- package/dist/extensions/index.d.ts +11 -0
- package/dist/extensions/index.js +29 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/llm-task/index.d.ts +80 -0
- package/dist/extensions/llm-task/index.js +248 -0
- package/dist/extensions/llm-task/index.js.map +1 -0
- package/dist/extensions/lobster/index.d.ts +69 -0
- package/dist/extensions/lobster/index.js +178 -0
- package/dist/extensions/lobster/index.js.map +1 -0
- package/dist/extensions/memory-lancedb/index.d.ts +62 -0
- package/dist/extensions/memory-lancedb/index.js +343 -0
- package/dist/extensions/memory-lancedb/index.js.map +1 -0
- package/dist/extensions/open-prose/index.d.ts +82 -0
- package/dist/extensions/open-prose/index.js +565 -0
- package/dist/extensions/open-prose/index.js.map +1 -0
- package/dist/extensions/qwen-portal/index.d.ts +48 -0
- package/dist/extensions/qwen-portal/index.js +161 -0
- package/dist/extensions/qwen-portal/index.js.map +1 -0
- package/dist/extensions/task-runner/index.d.ts +121 -0
- package/dist/extensions/task-runner/index.js +640 -0
- package/dist/extensions/task-runner/index.js.map +1 -0
- package/dist/farcaster/client.d.ts +101 -0
- package/dist/farcaster/client.js +282 -0
- package/dist/farcaster/client.js.map +1 -0
- package/dist/farcaster/index.d.ts +4 -0
- package/dist/farcaster/index.js +21 -0
- package/dist/farcaster/index.js.map +1 -0
- package/dist/feeds/acled/index.d.ts +86 -0
- package/dist/feeds/acled/index.js +215 -0
- package/dist/feeds/acled/index.js.map +1 -0
- package/dist/feeds/agentbets/index.d.ts +17 -0
- package/dist/feeds/agentbets/index.js +137 -0
- package/dist/feeds/agentbets/index.js.map +1 -0
- package/dist/feeds/betfair/index.d.ts +132 -0
- package/dist/feeds/betfair/index.js +640 -0
- package/dist/feeds/betfair/index.js.map +1 -0
- package/dist/feeds/crypto/index.d.ts +101 -0
- package/dist/feeds/crypto/index.js +506 -0
- package/dist/feeds/crypto/index.js.map +1 -0
- package/dist/feeds/crypto/whale-tracker.d.ts +138 -0
- package/dist/feeds/crypto/whale-tracker.js +685 -0
- package/dist/feeds/crypto/whale-tracker.js.map +1 -0
- package/dist/feeds/descriptors.d.ts +14 -0
- package/dist/feeds/descriptors.js +582 -0
- package/dist/feeds/descriptors.js.map +1 -0
- package/dist/feeds/drift/index.d.ts +23 -0
- package/dist/feeds/drift/index.js +182 -0
- package/dist/feeds/drift/index.js.map +1 -0
- package/dist/feeds/drift/trading.d.ts +75 -0
- package/dist/feeds/drift/trading.js +457 -0
- package/dist/feeds/drift/trading.js.map +1 -0
- package/dist/feeds/external/index.d.ts +48 -0
- package/dist/feeds/external/index.js +575 -0
- package/dist/feeds/external/index.js.map +1 -0
- package/dist/feeds/fred/index.d.ts +134 -0
- package/dist/feeds/fred/index.js +263 -0
- package/dist/feeds/fred/index.js.map +1 -0
- package/dist/feeds/freshness.d.ts +79 -0
- package/dist/feeds/freshness.js +259 -0
- package/dist/feeds/freshness.js.map +1 -0
- package/dist/feeds/hedgehog/index.d.ts +24 -0
- package/dist/feeds/hedgehog/index.js +589 -0
- package/dist/feeds/hedgehog/index.js.map +1 -0
- package/dist/feeds/hedgehog/types.d.ts +215 -0
- package/dist/feeds/hedgehog/types.js +7 -0
- package/dist/feeds/hedgehog/types.js.map +1 -0
- package/dist/feeds/index.d.ts +38 -0
- package/dist/feeds/index.js +469 -0
- package/dist/feeds/index.js.map +1 -0
- package/dist/feeds/kalshi/index.d.ts +116 -0
- package/dist/feeds/kalshi/index.js +970 -0
- package/dist/feeds/kalshi/index.js.map +1 -0
- package/dist/feeds/manifold/index.d.ts +15 -0
- package/dist/feeds/manifold/index.js +269 -0
- package/dist/feeds/manifold/index.js.map +1 -0
- package/dist/feeds/metaculus/index.d.ts +22 -0
- package/dist/feeds/metaculus/index.js +149 -0
- package/dist/feeds/metaculus/index.js.map +1 -0
- package/dist/feeds/news/index.d.ts +20 -0
- package/dist/feeds/news/index.js +308 -0
- package/dist/feeds/news/index.js.map +1 -0
- package/dist/feeds/opinion/index.d.ts +31 -0
- package/dist/feeds/opinion/index.js +389 -0
- package/dist/feeds/opinion/index.js.map +1 -0
- package/dist/feeds/polymarket/index.d.ts +21 -0
- package/dist/feeds/polymarket/index.js +501 -0
- package/dist/feeds/polymarket/index.js.map +1 -0
- package/dist/feeds/polymarket/rtds.d.ts +40 -0
- package/dist/feeds/polymarket/rtds.js +159 -0
- package/dist/feeds/polymarket/rtds.js.map +1 -0
- package/dist/feeds/polymarket/user-ws.d.ts +64 -0
- package/dist/feeds/polymarket/user-ws.js +230 -0
- package/dist/feeds/polymarket/user-ws.js.map +1 -0
- package/dist/feeds/polymarket/whale-tracker.d.ts +152 -0
- package/dist/feeds/polymarket/whale-tracker.js +709 -0
- package/dist/feeds/polymarket/whale-tracker.js.map +1 -0
- package/dist/feeds/predictfun/index.d.ts +24 -0
- package/dist/feeds/predictfun/index.js +234 -0
- package/dist/feeds/predictfun/index.js.map +1 -0
- package/dist/feeds/predictit/index.d.ts +14 -0
- package/dist/feeds/predictit/index.js +88 -0
- package/dist/feeds/predictit/index.js.map +1 -0
- package/dist/feeds/registry.d.ts +148 -0
- package/dist/feeds/registry.js +197 -0
- package/dist/feeds/registry.js.map +1 -0
- package/dist/feeds/smarkets/index.d.ts +76 -0
- package/dist/feeds/smarkets/index.js +415 -0
- package/dist/feeds/smarkets/index.js.map +1 -0
- package/dist/feeds/virtuals/index.d.ts +92 -0
- package/dist/feeds/virtuals/index.js +341 -0
- package/dist/feeds/virtuals/index.js.map +1 -0
- package/dist/feeds/weather-nws/index.d.ts +73 -0
- package/dist/feeds/weather-nws/index.js +162 -0
- package/dist/feeds/weather-nws/index.js.map +1 -0
- package/dist/feeds/weather-openmeteo/index.d.ts +80 -0
- package/dist/feeds/weather-openmeteo/index.js +197 -0
- package/dist/feeds/weather-openmeteo/index.js.map +1 -0
- package/dist/gateway/alerts-routes.d.ts +15 -0
- package/dist/gateway/alerts-routes.js +188 -0
- package/dist/gateway/alerts-routes.js.map +1 -0
- package/dist/gateway/alt-data-routes.d.ts +15 -0
- package/dist/gateway/alt-data-routes.js +67 -0
- package/dist/gateway/alt-data-routes.js.map +1 -0
- package/dist/gateway/api-routes.d.ts +39 -0
- package/dist/gateway/api-routes.js +1028 -0
- package/dist/gateway/api-routes.js.map +1 -0
- package/dist/gateway/audit-routes.d.ts +8 -0
- package/dist/gateway/audit-routes.js +61 -0
- package/dist/gateway/audit-routes.js.map +1 -0
- package/dist/gateway/bracket-routes.d.ts +12 -0
- package/dist/gateway/bracket-routes.js +122 -0
- package/dist/gateway/bracket-routes.js.map +1 -0
- package/dist/gateway/control-ui.d.ts +45 -0
- package/dist/gateway/control-ui.js +301 -0
- package/dist/gateway/control-ui.js.map +1 -0
- package/dist/gateway/copy-trading-routes.d.ts +12 -0
- package/dist/gateway/copy-trading-routes.js +159 -0
- package/dist/gateway/copy-trading-routes.js.map +1 -0
- package/dist/gateway/cron-routes.d.ts +14 -0
- package/dist/gateway/cron-routes.js +132 -0
- package/dist/gateway/cron-routes.js.map +1 -0
- package/dist/gateway/dca-routes.d.ts +8 -0
- package/dist/gateway/dca-routes.js +179 -0
- package/dist/gateway/dca-routes.js.map +1 -0
- package/dist/gateway/embeddings-routes.d.ts +12 -0
- package/dist/gateway/embeddings-routes.js +102 -0
- package/dist/gateway/embeddings-routes.js.map +1 -0
- package/dist/gateway/feeds-routes.d.ts +34 -0
- package/dist/gateway/feeds-routes.js +167 -0
- package/dist/gateway/feeds-routes.js.map +1 -0
- package/dist/gateway/index.d.ts +100 -0
- package/dist/gateway/index.js +2321 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/monitoring-routes.d.ts +12 -0
- package/dist/gateway/monitoring-routes.js +73 -0
- package/dist/gateway/monitoring-routes.js.map +1 -0
- package/dist/gateway/opportunity-routes.d.ts +12 -0
- package/dist/gateway/opportunity-routes.js +238 -0
- package/dist/gateway/opportunity-routes.js.map +1 -0
- package/dist/gateway/payments-routes.d.ts +14 -0
- package/dist/gateway/payments-routes.js +82 -0
- package/dist/gateway/payments-routes.js.map +1 -0
- package/dist/gateway/percolator-routes.d.ts +16 -0
- package/dist/gateway/percolator-routes.js +139 -0
- package/dist/gateway/percolator-routes.js.map +1 -0
- package/dist/gateway/queue-routes.d.ts +12 -0
- package/dist/gateway/queue-routes.js +47 -0
- package/dist/gateway/queue-routes.js.map +1 -0
- package/dist/gateway/risk-routes.d.ts +12 -0
- package/dist/gateway/risk-routes.js +119 -0
- package/dist/gateway/risk-routes.js.map +1 -0
- package/dist/gateway/routing-routes.d.ts +12 -0
- package/dist/gateway/routing-routes.js +86 -0
- package/dist/gateway/routing-routes.js.map +1 -0
- package/dist/gateway/server.d.ts +215 -0
- package/dist/gateway/server.js +2287 -0
- package/dist/gateway/server.js.map +1 -0
- package/dist/gateway/shield-routes.d.ts +8 -0
- package/dist/gateway/shield-routes.js +88 -0
- package/dist/gateway/shield-routes.js.map +1 -0
- package/dist/gateway/signal-bus.d.ts +51 -0
- package/dist/gateway/signal-bus.js +64 -0
- package/dist/gateway/signal-bus.js.map +1 -0
- package/dist/gateway/trigger-routes.d.ts +12 -0
- package/dist/gateway/trigger-routes.js +127 -0
- package/dist/gateway/trigger-routes.js.map +1 -0
- package/dist/gateway/twap-routes.d.ts +12 -0
- package/dist/gateway/twap-routes.js +142 -0
- package/dist/gateway/twap-routes.js.map +1 -0
- package/dist/gateway/webhooks-routes.d.ts +31 -0
- package/dist/gateway/webhooks-routes.js +107 -0
- package/dist/gateway/webhooks-routes.js.map +1 -0
- package/dist/gateway/whale-routes.d.ts +12 -0
- package/dist/gateway/whale-routes.js +204 -0
- package/dist/gateway/whale-routes.js.map +1 -0
- package/dist/history/index.d.ts +81 -0
- package/dist/history/index.js +362 -0
- package/dist/history/index.js.map +1 -0
- package/dist/hooks/index.d.ts +279 -0
- package/dist/hooks/index.js +739 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/i18n/index.d.ts +65 -0
- package/dist/i18n/index.js +183 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/identity/erc8004.d.ts +104 -0
- package/dist/identity/erc8004.js +493 -0
- package/dist/identity/erc8004.js.map +1 -0
- package/dist/identity/index.d.ts +1 -0
- package/dist/identity/index.js +18 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +240 -0
- package/dist/index.js.map +1 -0
- package/dist/infra/index.d.ts +133 -0
- package/dist/infra/index.js +481 -0
- package/dist/infra/index.js.map +1 -0
- package/dist/infra/retry.d.ts +132 -0
- package/dist/infra/retry.js +450 -0
- package/dist/infra/retry.js.map +1 -0
- package/dist/ledger/anchor.d.ts +45 -0
- package/dist/ledger/anchor.js +271 -0
- package/dist/ledger/anchor.js.map +1 -0
- package/dist/ledger/hash.d.ts +26 -0
- package/dist/ledger/hash.js +69 -0
- package/dist/ledger/hash.js.map +1 -0
- package/dist/ledger/hooks.d.ts +107 -0
- package/dist/ledger/hooks.js +314 -0
- package/dist/ledger/hooks.js.map +1 -0
- package/dist/ledger/index.d.ts +67 -0
- package/dist/ledger/index.js +221 -0
- package/dist/ledger/index.js.map +1 -0
- package/dist/ledger/storage.d.ts +57 -0
- package/dist/ledger/storage.js +368 -0
- package/dist/ledger/storage.js.map +1 -0
- package/dist/ledger/types.d.ts +138 -0
- package/dist/ledger/types.js +16 -0
- package/dist/ledger/types.js.map +1 -0
- package/dist/link-understanding/index.d.ts +61 -0
- package/dist/link-understanding/index.js +320 -0
- package/dist/link-understanding/index.js.map +1 -0
- package/dist/logging/index.d.ts +50 -0
- package/dist/logging/index.js +255 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/macos/index.d.ts +143 -0
- package/dist/macos/index.js +587 -0
- package/dist/macos/index.js.map +1 -0
- package/dist/markdown/index.d.ts +43 -0
- package/dist/markdown/index.js +305 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/market-index/index.d.ts +51 -0
- package/dist/market-index/index.js +553 -0
- package/dist/market-index/index.js.map +1 -0
- package/dist/mcp/index.d.ts +263 -0
- package/dist/mcp/index.js +940 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/installer.d.ts +11 -0
- package/dist/mcp/installer.js +128 -0
- package/dist/mcp/installer.js.map +1 -0
- package/dist/mcp/server.d.ts +7 -0
- package/dist/mcp/server.js +172 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/media/index.d.ts +119 -0
- package/dist/media/index.js +740 -0
- package/dist/media/index.js.map +1 -0
- package/dist/memory/context.d.ts +189 -0
- package/dist/memory/context.js +541 -0
- package/dist/memory/context.js.map +1 -0
- package/dist/memory/index.d.ts +74 -0
- package/dist/memory/index.js +352 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/summarizer.d.ts +10 -0
- package/dist/memory/summarizer.js +51 -0
- package/dist/memory/summarizer.js.map +1 -0
- package/dist/memory/tokenizer.d.ts +4 -0
- package/dist/memory/tokenizer.js +61 -0
- package/dist/memory/tokenizer.js.map +1 -0
- package/dist/messages/unified.d.ts +7 -0
- package/dist/messages/unified.js +77 -0
- package/dist/messages/unified.js.map +1 -0
- package/dist/ml-pipeline/collector.d.ts +23 -0
- package/dist/ml-pipeline/collector.js +176 -0
- package/dist/ml-pipeline/collector.js.map +1 -0
- package/dist/ml-pipeline/index.d.ts +21 -0
- package/dist/ml-pipeline/index.js +72 -0
- package/dist/ml-pipeline/index.js.map +1 -0
- package/dist/ml-pipeline/trainer.d.ts +32 -0
- package/dist/ml-pipeline/trainer.js +228 -0
- package/dist/ml-pipeline/trainer.js.map +1 -0
- package/dist/ml-pipeline/types.d.ts +51 -0
- package/dist/ml-pipeline/types.js +23 -0
- package/dist/ml-pipeline/types.js.map +1 -0
- package/dist/models/adaptive.d.ts +11 -0
- package/dist/models/adaptive.js +64 -0
- package/dist/models/adaptive.js.map +1 -0
- package/dist/models/failover.d.ts +51 -0
- package/dist/models/failover.js +151 -0
- package/dist/models/failover.js.map +1 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +13 -0
- package/dist/models/index.js.map +1 -0
- package/dist/monitoring/alerts.d.ts +185 -0
- package/dist/monitoring/alerts.js +565 -0
- package/dist/monitoring/alerts.js.map +1 -0
- package/dist/monitoring/health.d.ts +151 -0
- package/dist/monitoring/health.js +423 -0
- package/dist/monitoring/health.js.map +1 -0
- package/dist/monitoring/index.d.ts +25 -0
- package/dist/monitoring/index.js +258 -0
- package/dist/monitoring/index.js.map +1 -0
- package/dist/monitoring/metrics.d.ts +147 -0
- package/dist/monitoring/metrics.js +519 -0
- package/dist/monitoring/metrics.js.map +1 -0
- package/dist/nodes/index.d.ts +81 -0
- package/dist/nodes/index.js +475 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/opportunity/analytics.d.ts +221 -0
- package/dist/opportunity/analytics.js +678 -0
- package/dist/opportunity/analytics.js.map +1 -0
- package/dist/opportunity/combinatorial.d.ts +147 -0
- package/dist/opportunity/combinatorial.js +765 -0
- package/dist/opportunity/combinatorial.js.map +1 -0
- package/dist/opportunity/correlation.d.ts +107 -0
- package/dist/opportunity/correlation.js +410 -0
- package/dist/opportunity/correlation.js.map +1 -0
- package/dist/opportunity/executor.d.ts +108 -0
- package/dist/opportunity/executor.js +356 -0
- package/dist/opportunity/executor.js.map +1 -0
- package/dist/opportunity/index.d.ts +285 -0
- package/dist/opportunity/index.js +839 -0
- package/dist/opportunity/index.js.map +1 -0
- package/dist/opportunity/links.d.ts +87 -0
- package/dist/opportunity/links.js +344 -0
- package/dist/opportunity/links.js.map +1 -0
- package/dist/opportunity/matching.d.ts +101 -0
- package/dist/opportunity/matching.js +551 -0
- package/dist/opportunity/matching.js.map +1 -0
- package/dist/opportunity/outcomes.d.ts +74 -0
- package/dist/opportunity/outcomes.js +321 -0
- package/dist/opportunity/outcomes.js.map +1 -0
- package/dist/opportunity/risk.d.ts +128 -0
- package/dist/opportunity/risk.js +381 -0
- package/dist/opportunity/risk.js.map +1 -0
- package/dist/opportunity/scoring.d.ts +151 -0
- package/dist/opportunity/scoring.js +421 -0
- package/dist/opportunity/scoring.js.map +1 -0
- package/dist/pairing/index.d.ts +108 -0
- package/dist/pairing/index.js +431 -0
- package/dist/pairing/index.js.map +1 -0
- package/dist/payments/index.d.ts +12 -0
- package/dist/payments/index.js +34 -0
- package/dist/payments/index.js.map +1 -0
- package/dist/payments/x402/evm.d.ts +53 -0
- package/dist/payments/x402/evm.js +282 -0
- package/dist/payments/x402/evm.js.map +1 -0
- package/dist/payments/x402/index.d.ts +158 -0
- package/dist/payments/x402/index.js +531 -0
- package/dist/payments/x402/index.js.map +1 -0
- package/dist/payments/x402/solana.d.ts +51 -0
- package/dist/payments/x402/solana.js +397 -0
- package/dist/payments/x402/solana.js.map +1 -0
- package/dist/percolator/accounts.d.ts +21 -0
- package/dist/percolator/accounts.js +76 -0
- package/dist/percolator/accounts.js.map +1 -0
- package/dist/percolator/encode.d.ts +14 -0
- package/dist/percolator/encode.js +90 -0
- package/dist/percolator/encode.js.map +1 -0
- package/dist/percolator/execution.d.ts +29 -0
- package/dist/percolator/execution.js +239 -0
- package/dist/percolator/execution.js.map +1 -0
- package/dist/percolator/feed.d.ts +15 -0
- package/dist/percolator/feed.js +160 -0
- package/dist/percolator/feed.js.map +1 -0
- package/dist/percolator/index.d.ts +20 -0
- package/dist/percolator/index.js +24 -0
- package/dist/percolator/index.js.map +1 -0
- package/dist/percolator/instructions.d.ts +29 -0
- package/dist/percolator/instructions.js +52 -0
- package/dist/percolator/instructions.js.map +1 -0
- package/dist/percolator/keeper.d.ts +11 -0
- package/dist/percolator/keeper.js +83 -0
- package/dist/percolator/keeper.js.map +1 -0
- package/dist/percolator/pda.d.ts +15 -0
- package/dist/percolator/pda.js +26 -0
- package/dist/percolator/pda.js.map +1 -0
- package/dist/percolator/slab.d.ts +122 -0
- package/dist/percolator/slab.js +325 -0
- package/dist/percolator/slab.js.map +1 -0
- package/dist/percolator/tx.d.ts +27 -0
- package/dist/percolator/tx.js +77 -0
- package/dist/percolator/tx.js.map +1 -0
- package/dist/percolator/types.d.ts +51 -0
- package/dist/percolator/types.js +9 -0
- package/dist/percolator/types.js.map +1 -0
- package/dist/permissions/index.d.ts +262 -0
- package/dist/permissions/index.js +929 -0
- package/dist/permissions/index.js.map +1 -0
- package/dist/plugins/index.d.ts +158 -0
- package/dist/plugins/index.js +444 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/portfolio/index.d.ts +170 -0
- package/dist/portfolio/index.js +970 -0
- package/dist/portfolio/index.js.map +1 -0
- package/dist/presence/index.d.ts +34 -0
- package/dist/presence/index.js +124 -0
- package/dist/presence/index.js.map +1 -0
- package/dist/process/index.d.ts +82 -0
- package/dist/process/index.js +402 -0
- package/dist/process/index.js.map +1 -0
- package/dist/providers/discovery.d.ts +209 -0
- package/dist/providers/discovery.js +751 -0
- package/dist/providers/discovery.js.map +1 -0
- package/dist/providers/health.d.ts +27 -0
- package/dist/providers/health.js +80 -0
- package/dist/providers/health.js.map +1 -0
- package/dist/providers/index.d.ts +154 -0
- package/dist/providers/index.js +897 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/queue/index.d.ts +36 -0
- package/dist/queue/index.js +146 -0
- package/dist/queue/index.js.map +1 -0
- package/dist/queue/jobs/index.d.ts +11 -0
- package/dist/queue/jobs/index.js +32 -0
- package/dist/queue/jobs/index.js.map +1 -0
- package/dist/queue/jobs/producer.d.ts +43 -0
- package/dist/queue/jobs/producer.js +233 -0
- package/dist/queue/jobs/producer.js.map +1 -0
- package/dist/queue/jobs/types.d.ts +128 -0
- package/dist/queue/jobs/types.js +14 -0
- package/dist/queue/jobs/types.js.map +1 -0
- package/dist/queue/jobs/worker.d.ts +22 -0
- package/dist/queue/jobs/worker.js +220 -0
- package/dist/queue/jobs/worker.js.map +1 -0
- package/dist/remote/index.d.ts +136 -0
- package/dist/remote/index.js +456 -0
- package/dist/remote/index.js.map +1 -0
- package/dist/risk/circuit-breaker.d.ts +99 -0
- package/dist/risk/circuit-breaker.js +300 -0
- package/dist/risk/circuit-breaker.js.map +1 -0
- package/dist/risk/dashboard.d.ts +69 -0
- package/dist/risk/dashboard.js +127 -0
- package/dist/risk/dashboard.js.map +1 -0
- package/dist/risk/engine.d.ts +128 -0
- package/dist/risk/engine.js +311 -0
- package/dist/risk/engine.js.map +1 -0
- package/dist/risk/index.d.ts +10 -0
- package/dist/risk/index.js +38 -0
- package/dist/risk/index.js.map +1 -0
- package/dist/risk/stress.d.ts +70 -0
- package/dist/risk/stress.js +215 -0
- package/dist/risk/stress.js.map +1 -0
- package/dist/risk/var.d.ts +72 -0
- package/dist/risk/var.js +173 -0
- package/dist/risk/var.js.map +1 -0
- package/dist/risk/volatility.d.ts +61 -0
- package/dist/risk/volatility.js +132 -0
- package/dist/risk/volatility.js.map +1 -0
- package/dist/routing/index.d.ts +116 -0
- package/dist/routing/index.js +371 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/search/index.d.ts +30 -0
- package/dist/search/index.js +129 -0
- package/dist/search/index.js.map +1 -0
- package/dist/security/address-checker.d.ts +6 -0
- package/dist/security/address-checker.js +213 -0
- package/dist/security/address-checker.js.map +1 -0
- package/dist/security/code-scanner.d.ts +3 -0
- package/dist/security/code-scanner.js +190 -0
- package/dist/security/code-scanner.js.map +1 -0
- package/dist/security/index.d.ts +176 -0
- package/dist/security/index.js +498 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/sanitizer.d.ts +2 -0
- package/dist/security/sanitizer.js +135 -0
- package/dist/security/sanitizer.js.map +1 -0
- package/dist/security/scam-db.d.ts +5 -0
- package/dist/security/scam-db.js +116 -0
- package/dist/security/scam-db.js.map +1 -0
- package/dist/security/shield.d.ts +12 -0
- package/dist/security/shield.js +80 -0
- package/dist/security/shield.js.map +1 -0
- package/dist/security/tx-validator.d.ts +5 -0
- package/dist/security/tx-validator.js +115 -0
- package/dist/security/tx-validator.js.map +1 -0
- package/dist/security/types.d.ts +84 -0
- package/dist/security/types.js +6 -0
- package/dist/security/types.js.map +1 -0
- package/dist/services/alt-data/feeds/fear-greed.d.ts +14 -0
- package/dist/services/alt-data/feeds/fear-greed.js +81 -0
- package/dist/services/alt-data/feeds/fear-greed.js.map +1 -0
- package/dist/services/alt-data/feeds/funding-rates.d.ts +13 -0
- package/dist/services/alt-data/feeds/funding-rates.js +90 -0
- package/dist/services/alt-data/feeds/funding-rates.js.map +1 -0
- package/dist/services/alt-data/feeds/reddit.d.ts +13 -0
- package/dist/services/alt-data/feeds/reddit.js +112 -0
- package/dist/services/alt-data/feeds/reddit.js.map +1 -0
- package/dist/services/alt-data/index.d.ts +31 -0
- package/dist/services/alt-data/index.js +278 -0
- package/dist/services/alt-data/index.js.map +1 -0
- package/dist/services/alt-data/market-matcher.d.ts +29 -0
- package/dist/services/alt-data/market-matcher.js +157 -0
- package/dist/services/alt-data/market-matcher.js.map +1 -0
- package/dist/services/alt-data/sentiment.d.ts +11 -0
- package/dist/services/alt-data/sentiment.js +277 -0
- package/dist/services/alt-data/sentiment.js.map +1 -0
- package/dist/services/alt-data/types.d.ts +86 -0
- package/dist/services/alt-data/types.js +9 -0
- package/dist/services/alt-data/types.js.map +1 -0
- package/dist/services/feature-engineering/accessor.d.ts +19 -0
- package/dist/services/feature-engineering/accessor.js +31 -0
- package/dist/services/feature-engineering/accessor.js.map +1 -0
- package/dist/services/feature-engineering/index.d.ts +15 -0
- package/dist/services/feature-engineering/index.js +345 -0
- package/dist/services/feature-engineering/index.js.map +1 -0
- package/dist/services/feature-engineering/indicators.d.ts +90 -0
- package/dist/services/feature-engineering/indicators.js +254 -0
- package/dist/services/feature-engineering/indicators.js.map +1 -0
- package/dist/services/feature-engineering/rolling-window.d.ts +89 -0
- package/dist/services/feature-engineering/rolling-window.js +173 -0
- package/dist/services/feature-engineering/rolling-window.js.map +1 -0
- package/dist/services/feature-engineering/thresholds.d.ts +137 -0
- package/dist/services/feature-engineering/thresholds.js +280 -0
- package/dist/services/feature-engineering/thresholds.js.map +1 -0
- package/dist/services/feature-engineering/types.d.ts +138 -0
- package/dist/services/feature-engineering/types.js +6 -0
- package/dist/services/feature-engineering/types.js.map +1 -0
- package/dist/services/tick-recorder/index.d.ts +12 -0
- package/dist/services/tick-recorder/index.js +200 -0
- package/dist/services/tick-recorder/index.js.map +1 -0
- package/dist/services/tick-recorder/queries.d.ts +46 -0
- package/dist/services/tick-recorder/queries.js +291 -0
- package/dist/services/tick-recorder/queries.js.map +1 -0
- package/dist/services/tick-recorder/schema.d.ts +27 -0
- package/dist/services/tick-recorder/schema.js +185 -0
- package/dist/services/tick-recorder/schema.js.map +1 -0
- package/dist/services/tick-recorder/timescale.d.ts +27 -0
- package/dist/services/tick-recorder/timescale.js +105 -0
- package/dist/services/tick-recorder/timescale.js.map +1 -0
- package/dist/services/tick-recorder/types.d.ts +113 -0
- package/dist/services/tick-recorder/types.js +7 -0
- package/dist/services/tick-recorder/types.js.map +1 -0
- package/dist/services/tick-streamer/index.d.ts +12 -0
- package/dist/services/tick-streamer/index.js +317 -0
- package/dist/services/tick-streamer/index.js.map +1 -0
- package/dist/services/tick-streamer/types.d.ts +134 -0
- package/dist/services/tick-streamer/types.js +6 -0
- package/dist/services/tick-streamer/types.js.map +1 -0
- package/dist/session/index.d.ts +147 -0
- package/dist/session/index.js +429 -0
- package/dist/session/index.js.map +1 -0
- package/dist/sessions/index.d.ts +69 -0
- package/dist/sessions/index.js +447 -0
- package/dist/sessions/index.js.map +1 -0
- package/dist/signal-router/index.d.ts +2 -0
- package/dist/signal-router/index.js +6 -0
- package/dist/signal-router/index.js.map +1 -0
- package/dist/signal-router/router.d.ts +25 -0
- package/dist/signal-router/router.js +391 -0
- package/dist/signal-router/router.js.map +1 -0
- package/dist/signal-router/types.d.ts +64 -0
- package/dist/signal-router/types.js +9 -0
- package/dist/signal-router/types.js.map +1 -0
- package/dist/skills/bundled/acp/index.d.ts +25 -0
- package/dist/skills/bundled/acp/index.js +472 -0
- package/dist/skills/bundled/acp/index.js.map +1 -0
- package/dist/skills/bundled/agentbets/index.d.ts +15 -0
- package/dist/skills/bundled/agentbets/index.js +168 -0
- package/dist/skills/bundled/agentbets/index.js.map +1 -0
- package/dist/skills/bundled/ai-strategy/index.d.ts +21 -0
- package/dist/skills/bundled/ai-strategy/index.js +647 -0
- package/dist/skills/bundled/ai-strategy/index.js.map +1 -0
- package/dist/skills/bundled/alerts/index.d.ts +20 -0
- package/dist/skills/bundled/alerts/index.js +249 -0
- package/dist/skills/bundled/alerts/index.js.map +1 -0
- package/dist/skills/bundled/analytics/index.d.ts +17 -0
- package/dist/skills/bundled/analytics/index.js +112 -0
- package/dist/skills/bundled/analytics/index.js.map +1 -0
- package/dist/skills/bundled/arbitrage/index.d.ts +24 -0
- package/dist/skills/bundled/arbitrage/index.js +253 -0
- package/dist/skills/bundled/arbitrage/index.js.map +1 -0
- package/dist/skills/bundled/auto-reply/index.d.ts +18 -0
- package/dist/skills/bundled/auto-reply/index.js +215 -0
- package/dist/skills/bundled/auto-reply/index.js.map +1 -0
- package/dist/skills/bundled/automation/index.d.ts +19 -0
- package/dist/skills/bundled/automation/index.js +160 -0
- package/dist/skills/bundled/automation/index.js.map +1 -0
- package/dist/skills/bundled/backtest/index.d.ts +18 -0
- package/dist/skills/bundled/backtest/index.js +250 -0
- package/dist/skills/bundled/backtest/index.js.map +1 -0
- package/dist/skills/bundled/bags/index.d.ts +49 -0
- package/dist/skills/bundled/bags/index.js +1069 -0
- package/dist/skills/bundled/bags/index.js.map +1 -0
- package/dist/skills/bundled/bankr/index.d.ts +161 -0
- package/dist/skills/bundled/bankr/index.js +271 -0
- package/dist/skills/bundled/bankr/index.js.map +1 -0
- package/dist/skills/bundled/betfair/index.d.ts +24 -0
- package/dist/skills/bundled/betfair/index.js +511 -0
- package/dist/skills/bundled/betfair/index.js.map +1 -0
- package/dist/skills/bundled/binance-futures/index.d.ts +15 -0
- package/dist/skills/bundled/binance-futures/index.js +485 -0
- package/dist/skills/bundled/binance-futures/index.js.map +1 -0
- package/dist/skills/bundled/botchan/index.d.ts +130 -0
- package/dist/skills/bundled/botchan/index.js +427 -0
- package/dist/skills/bundled/botchan/index.js.map +1 -0
- package/dist/skills/bundled/bridge/index.d.ts +17 -0
- package/dist/skills/bundled/bridge/index.js +297 -0
- package/dist/skills/bundled/bridge/index.js.map +1 -0
- package/dist/skills/bundled/bybit-futures/index.d.ts +15 -0
- package/dist/skills/bundled/bybit-futures/index.js +380 -0
- package/dist/skills/bundled/bybit-futures/index.js.map +1 -0
- package/dist/skills/bundled/clanker/index.d.ts +236 -0
- package/dist/skills/bundled/clanker/index.js +759 -0
- package/dist/skills/bundled/clanker/index.js.map +1 -0
- package/dist/skills/bundled/copy-trading/index.d.ts +20 -0
- package/dist/skills/bundled/copy-trading/index.js +213 -0
- package/dist/skills/bundled/copy-trading/index.js.map +1 -0
- package/dist/skills/bundled/copy-trading-solana/index.d.ts +21 -0
- package/dist/skills/bundled/copy-trading-solana/index.js +421 -0
- package/dist/skills/bundled/copy-trading-solana/index.js.map +1 -0
- package/dist/skills/bundled/credentials/index.d.ts +17 -0
- package/dist/skills/bundled/credentials/index.js +137 -0
- package/dist/skills/bundled/credentials/index.js.map +1 -0
- package/dist/skills/bundled/crypto-hft/index.d.ts +26 -0
- package/dist/skills/bundled/crypto-hft/index.js +361 -0
- package/dist/skills/bundled/crypto-hft/index.js.map +1 -0
- package/dist/skills/bundled/dca/index.d.ts +26 -0
- package/dist/skills/bundled/dca/index.js +1342 -0
- package/dist/skills/bundled/dca/index.js.map +1 -0
- package/dist/skills/bundled/divergence/index.d.ts +19 -0
- package/dist/skills/bundled/divergence/index.js +272 -0
- package/dist/skills/bundled/divergence/index.js.map +1 -0
- package/dist/skills/bundled/doctor/index.d.ts +18 -0
- package/dist/skills/bundled/doctor/index.js +78 -0
- package/dist/skills/bundled/doctor/index.js.map +1 -0
- package/dist/skills/bundled/drift/index.d.ts +13 -0
- package/dist/skills/bundled/drift/index.js +378 -0
- package/dist/skills/bundled/drift/index.js.map +1 -0
- package/dist/skills/bundled/drift-sdk/index.d.ts +17 -0
- package/dist/skills/bundled/drift-sdk/index.js +501 -0
- package/dist/skills/bundled/drift-sdk/index.js.map +1 -0
- package/dist/skills/bundled/edge/index.d.ts +16 -0
- package/dist/skills/bundled/edge/index.js +91 -0
- package/dist/skills/bundled/edge/index.js.map +1 -0
- package/dist/skills/bundled/embeddings/index.d.ts +19 -0
- package/dist/skills/bundled/embeddings/index.js +215 -0
- package/dist/skills/bundled/embeddings/index.js.map +1 -0
- package/dist/skills/bundled/endaoment/index.d.ts +105 -0
- package/dist/skills/bundled/endaoment/index.js +285 -0
- package/dist/skills/bundled/endaoment/index.js.map +1 -0
- package/dist/skills/bundled/ens/index.d.ts +151 -0
- package/dist/skills/bundled/ens/index.js +278 -0
- package/dist/skills/bundled/ens/index.js.map +1 -0
- package/dist/skills/bundled/erc8004/index.d.ts +123 -0
- package/dist/skills/bundled/erc8004/index.js +301 -0
- package/dist/skills/bundled/erc8004/index.js.map +1 -0
- package/dist/skills/bundled/execution/index.d.ts +18 -0
- package/dist/skills/bundled/execution/index.js +358 -0
- package/dist/skills/bundled/execution/index.js.map +1 -0
- package/dist/skills/bundled/farcaster/index.d.ts +121 -0
- package/dist/skills/bundled/farcaster/index.js +314 -0
- package/dist/skills/bundled/farcaster/index.js.map +1 -0
- package/dist/skills/bundled/features/index.d.ts +17 -0
- package/dist/skills/bundled/features/index.js +305 -0
- package/dist/skills/bundled/features/index.js.map +1 -0
- package/dist/skills/bundled/feeds/index.d.ts +26 -0
- package/dist/skills/bundled/feeds/index.js +462 -0
- package/dist/skills/bundled/feeds/index.js.map +1 -0
- package/dist/skills/bundled/harden/index.d.ts +55 -0
- package/dist/skills/bundled/harden/index.js +510 -0
- package/dist/skills/bundled/harden/index.js.map +1 -0
- package/dist/skills/bundled/history/index.d.ts +21 -0
- package/dist/skills/bundled/history/index.js +195 -0
- package/dist/skills/bundled/history/index.js.map +1 -0
- package/dist/skills/bundled/hyperliquid/index.d.ts +19 -0
- package/dist/skills/bundled/hyperliquid/index.js +1280 -0
- package/dist/skills/bundled/hyperliquid/index.js.map +1 -0
- package/dist/skills/bundled/identity/index.d.ts +17 -0
- package/dist/skills/bundled/identity/index.js +223 -0
- package/dist/skills/bundled/identity/index.js.map +1 -0
- package/dist/skills/bundled/integrations/index.d.ts +17 -0
- package/dist/skills/bundled/integrations/index.js +138 -0
- package/dist/skills/bundled/integrations/index.js.map +1 -0
- package/dist/skills/bundled/jupiter/index.d.ts +41 -0
- package/dist/skills/bundled/jupiter/index.js +872 -0
- package/dist/skills/bundled/jupiter/index.js.map +1 -0
- package/dist/skills/bundled/kamino/index.d.ts +33 -0
- package/dist/skills/bundled/kamino/index.js +578 -0
- package/dist/skills/bundled/kamino/index.js.map +1 -0
- package/dist/skills/bundled/ledger/index.d.ts +14 -0
- package/dist/skills/bundled/ledger/index.js +186 -0
- package/dist/skills/bundled/ledger/index.js.map +1 -0
- package/dist/skills/bundled/market-index/index.d.ts +18 -0
- package/dist/skills/bundled/market-index/index.js +182 -0
- package/dist/skills/bundled/market-index/index.js.map +1 -0
- package/dist/skills/bundled/markets/index.d.ts +16 -0
- package/dist/skills/bundled/markets/index.js +95 -0
- package/dist/skills/bundled/markets/index.js.map +1 -0
- package/dist/skills/bundled/mcp/index.d.ts +19 -0
- package/dist/skills/bundled/mcp/index.js +212 -0
- package/dist/skills/bundled/mcp/index.js.map +1 -0
- package/dist/skills/bundled/memory/index.d.ts +20 -0
- package/dist/skills/bundled/memory/index.js +210 -0
- package/dist/skills/bundled/memory/index.js.map +1 -0
- package/dist/skills/bundled/metaculus/index.d.ts +17 -0
- package/dist/skills/bundled/metaculus/index.js +168 -0
- package/dist/skills/bundled/metaculus/index.js.map +1 -0
- package/dist/skills/bundled/meteora/index.d.ts +39 -0
- package/dist/skills/bundled/meteora/index.js +837 -0
- package/dist/skills/bundled/meteora/index.js.map +1 -0
- package/dist/skills/bundled/meteora-dbc/index.d.ts +33 -0
- package/dist/skills/bundled/meteora-dbc/index.js +993 -0
- package/dist/skills/bundled/meteora-dbc/index.js.map +1 -0
- package/dist/skills/bundled/metrics/index.d.ts +18 -0
- package/dist/skills/bundled/metrics/index.js +91 -0
- package/dist/skills/bundled/metrics/index.js.map +1 -0
- package/dist/skills/bundled/mev/index.d.ts +17 -0
- package/dist/skills/bundled/mev/index.js +108 -0
- package/dist/skills/bundled/mev/index.js.map +1 -0
- package/dist/skills/bundled/mexc-futures/index.d.ts +16 -0
- package/dist/skills/bundled/mexc-futures/index.js +389 -0
- package/dist/skills/bundled/mexc-futures/index.js.map +1 -0
- package/dist/skills/bundled/mm/index.d.ts +18 -0
- package/dist/skills/bundled/mm/index.js +315 -0
- package/dist/skills/bundled/mm/index.js.map +1 -0
- package/dist/skills/bundled/monitoring/index.d.ts +18 -0
- package/dist/skills/bundled/monitoring/index.js +146 -0
- package/dist/skills/bundled/monitoring/index.js.map +1 -0
- package/dist/skills/bundled/news/index.d.ts +17 -0
- package/dist/skills/bundled/news/index.js +161 -0
- package/dist/skills/bundled/news/index.js.map +1 -0
- package/dist/skills/bundled/onchainkit/index.d.ts +92 -0
- package/dist/skills/bundled/onchainkit/index.js +429 -0
- package/dist/skills/bundled/onchainkit/index.js.map +1 -0
- package/dist/skills/bundled/opinion/index.d.ts +12 -0
- package/dist/skills/bundled/opinion/index.js +429 -0
- package/dist/skills/bundled/opinion/index.js.map +1 -0
- package/dist/skills/bundled/opportunity/index.d.ts +25 -0
- package/dist/skills/bundled/opportunity/index.js +289 -0
- package/dist/skills/bundled/opportunity/index.js.map +1 -0
- package/dist/skills/bundled/orca/index.d.ts +12 -0
- package/dist/skills/bundled/orca/index.js +663 -0
- package/dist/skills/bundled/orca/index.js.map +1 -0
- package/dist/skills/bundled/pairing/index.d.ts +24 -0
- package/dist/skills/bundled/pairing/index.js +228 -0
- package/dist/skills/bundled/pairing/index.js.map +1 -0
- package/dist/skills/bundled/percolator/index.d.ts +20 -0
- package/dist/skills/bundled/percolator/index.js +229 -0
- package/dist/skills/bundled/percolator/index.js.map +1 -0
- package/dist/skills/bundled/permissions/index.d.ts +21 -0
- package/dist/skills/bundled/permissions/index.js +204 -0
- package/dist/skills/bundled/permissions/index.js.map +1 -0
- package/dist/skills/bundled/plugins/index.d.ts +20 -0
- package/dist/skills/bundled/plugins/index.js +209 -0
- package/dist/skills/bundled/plugins/index.js.map +1 -0
- package/dist/skills/bundled/portfolio/index.d.ts +20 -0
- package/dist/skills/bundled/portfolio/index.js +367 -0
- package/dist/skills/bundled/portfolio/index.js.map +1 -0
- package/dist/skills/bundled/portfolio-sync/index.d.ts +17 -0
- package/dist/skills/bundled/portfolio-sync/index.js +116 -0
- package/dist/skills/bundled/portfolio-sync/index.js.map +1 -0
- package/dist/skills/bundled/positions/index.d.ts +18 -0
- package/dist/skills/bundled/positions/index.js +161 -0
- package/dist/skills/bundled/positions/index.js.map +1 -0
- package/dist/skills/bundled/predictfun/index.d.ts +13 -0
- package/dist/skills/bundled/predictfun/index.js +612 -0
- package/dist/skills/bundled/predictfun/index.js.map +1 -0
- package/dist/skills/bundled/predictit/index.d.ts +16 -0
- package/dist/skills/bundled/predictit/index.js +138 -0
- package/dist/skills/bundled/predictit/index.js.map +1 -0
- package/dist/skills/bundled/presence/index.d.ts +18 -0
- package/dist/skills/bundled/presence/index.js +151 -0
- package/dist/skills/bundled/presence/index.js.map +1 -0
- package/dist/skills/bundled/processes/index.d.ts +17 -0
- package/dist/skills/bundled/processes/index.js +121 -0
- package/dist/skills/bundled/processes/index.js.map +1 -0
- package/dist/skills/bundled/pump-swarm/index.d.ts +16 -0
- package/dist/skills/bundled/pump-swarm/index.js +2235 -0
- package/dist/skills/bundled/pump-swarm/index.js.map +1 -0
- package/dist/skills/bundled/pumpfun/index.d.ts +47 -0
- package/dist/skills/bundled/pumpfun/index.js +1400 -0
- package/dist/skills/bundled/pumpfun/index.js.map +1 -0
- package/dist/skills/bundled/qmd/index.d.ts +18 -0
- package/dist/skills/bundled/qmd/index.js +116 -0
- package/dist/skills/bundled/qmd/index.js.map +1 -0
- package/dist/skills/bundled/qrcoin/index.d.ts +92 -0
- package/dist/skills/bundled/qrcoin/index.js +328 -0
- package/dist/skills/bundled/qrcoin/index.js.map +1 -0
- package/dist/skills/bundled/raydium/index.d.ts +35 -0
- package/dist/skills/bundled/raydium/index.js +695 -0
- package/dist/skills/bundled/raydium/index.js.map +1 -0
- package/dist/skills/bundled/remote/index.d.ts +19 -0
- package/dist/skills/bundled/remote/index.js +186 -0
- package/dist/skills/bundled/remote/index.js.map +1 -0
- package/dist/skills/bundled/research/index.d.ts +17 -0
- package/dist/skills/bundled/research/index.js +185 -0
- package/dist/skills/bundled/research/index.js.map +1 -0
- package/dist/skills/bundled/risk/index.d.ts +31 -0
- package/dist/skills/bundled/risk/index.js +379 -0
- package/dist/skills/bundled/risk/index.js.map +1 -0
- package/dist/skills/bundled/router/index.d.ts +17 -0
- package/dist/skills/bundled/router/index.js +160 -0
- package/dist/skills/bundled/router/index.js.map +1 -0
- package/dist/skills/bundled/routing/index.d.ts +23 -0
- package/dist/skills/bundled/routing/index.js +257 -0
- package/dist/skills/bundled/routing/index.js.map +1 -0
- package/dist/skills/bundled/sandbox/index.d.ts +18 -0
- package/dist/skills/bundled/sandbox/index.js +119 -0
- package/dist/skills/bundled/sandbox/index.js.map +1 -0
- package/dist/skills/bundled/search-config/index.d.ts +18 -0
- package/dist/skills/bundled/search-config/index.js +170 -0
- package/dist/skills/bundled/search-config/index.js.map +1 -0
- package/dist/skills/bundled/sessions/index.d.ts +29 -0
- package/dist/skills/bundled/sessions/index.js +193 -0
- package/dist/skills/bundled/sessions/index.js.map +1 -0
- package/dist/skills/bundled/shield/index.d.ts +22 -0
- package/dist/skills/bundled/shield/index.js +245 -0
- package/dist/skills/bundled/shield/index.js.map +1 -0
- package/dist/skills/bundled/signals/index.d.ts +24 -0
- package/dist/skills/bundled/signals/index.js +776 -0
- package/dist/skills/bundled/signals/index.js.map +1 -0
- package/dist/skills/bundled/sizing/index.d.ts +16 -0
- package/dist/skills/bundled/sizing/index.js +168 -0
- package/dist/skills/bundled/sizing/index.js.map +1 -0
- package/dist/skills/bundled/slippage/index.d.ts +16 -0
- package/dist/skills/bundled/slippage/index.js +111 -0
- package/dist/skills/bundled/slippage/index.js.map +1 -0
- package/dist/skills/bundled/smarkets/index.d.ts +23 -0
- package/dist/skills/bundled/smarkets/index.js +473 -0
- package/dist/skills/bundled/smarkets/index.js.map +1 -0
- package/dist/skills/bundled/strategy/index.d.ts +18 -0
- package/dist/skills/bundled/strategy/index.js +168 -0
- package/dist/skills/bundled/strategy/index.js.map +1 -0
- package/dist/skills/bundled/streaming/index.d.ts +19 -0
- package/dist/skills/bundled/streaming/index.js +147 -0
- package/dist/skills/bundled/streaming/index.js.map +1 -0
- package/dist/skills/bundled/tailscale/index.d.ts +18 -0
- package/dist/skills/bundled/tailscale/index.js +173 -0
- package/dist/skills/bundled/tailscale/index.js.map +1 -0
- package/dist/skills/bundled/ticks/index.d.ts +17 -0
- package/dist/skills/bundled/ticks/index.js +287 -0
- package/dist/skills/bundled/ticks/index.js.map +1 -0
- package/dist/skills/bundled/token-security/index.d.ts +19 -0
- package/dist/skills/bundled/token-security/index.js +138 -0
- package/dist/skills/bundled/token-security/index.js.map +1 -0
- package/dist/skills/bundled/trading-evm/index.d.ts +19 -0
- package/dist/skills/bundled/trading-evm/index.js +302 -0
- package/dist/skills/bundled/trading-evm/index.js.map +1 -0
- package/dist/skills/bundled/trading-futures/index.d.ts +14 -0
- package/dist/skills/bundled/trading-futures/index.js +874 -0
- package/dist/skills/bundled/trading-futures/index.js.map +1 -0
- package/dist/skills/bundled/trading-kalshi/index.d.ts +36 -0
- package/dist/skills/bundled/trading-kalshi/index.js +1199 -0
- package/dist/skills/bundled/trading-kalshi/index.js.map +1 -0
- package/dist/skills/bundled/trading-manifold/index.d.ts +23 -0
- package/dist/skills/bundled/trading-manifold/index.js +391 -0
- package/dist/skills/bundled/trading-manifold/index.js.map +1 -0
- package/dist/skills/bundled/trading-polymarket/index.d.ts +27 -0
- package/dist/skills/bundled/trading-polymarket/index.js +1321 -0
- package/dist/skills/bundled/trading-polymarket/index.js.map +1 -0
- package/dist/skills/bundled/trading-solana/index.d.ts +19 -0
- package/dist/skills/bundled/trading-solana/index.js +383 -0
- package/dist/skills/bundled/trading-solana/index.js.map +1 -0
- package/dist/skills/bundled/trading-system/index.d.ts +22 -0
- package/dist/skills/bundled/trading-system/index.js +355 -0
- package/dist/skills/bundled/trading-system/index.js.map +1 -0
- package/dist/skills/bundled/triggers/index.d.ts +18 -0
- package/dist/skills/bundled/triggers/index.js +172 -0
- package/dist/skills/bundled/triggers/index.js.map +1 -0
- package/dist/skills/bundled/tts/index.d.ts +16 -0
- package/dist/skills/bundled/tts/index.js +150 -0
- package/dist/skills/bundled/tts/index.js.map +1 -0
- package/dist/skills/bundled/tweet-ideas/index.d.ts +20 -0
- package/dist/skills/bundled/tweet-ideas/index.js +470 -0
- package/dist/skills/bundled/tweet-ideas/index.js.map +1 -0
- package/dist/skills/bundled/usage/index.d.ts +17 -0
- package/dist/skills/bundled/usage/index.js +145 -0
- package/dist/skills/bundled/usage/index.js.map +1 -0
- package/dist/skills/bundled/veil/index.d.ts +79 -0
- package/dist/skills/bundled/veil/index.js +322 -0
- package/dist/skills/bundled/veil/index.js.map +1 -0
- package/dist/skills/bundled/verify/index.d.ts +20 -0
- package/dist/skills/bundled/verify/index.js +157 -0
- package/dist/skills/bundled/verify/index.js.map +1 -0
- package/dist/skills/bundled/virtuals/index.d.ts +20 -0
- package/dist/skills/bundled/virtuals/index.js +255 -0
- package/dist/skills/bundled/virtuals/index.js.map +1 -0
- package/dist/skills/bundled/voice/index.d.ts +18 -0
- package/dist/skills/bundled/voice/index.js +190 -0
- package/dist/skills/bundled/voice/index.js.map +1 -0
- package/dist/skills/bundled/weather/index.d.ts +20 -0
- package/dist/skills/bundled/weather/index.js +475 -0
- package/dist/skills/bundled/weather/index.js.map +1 -0
- package/dist/skills/bundled/webhooks/index.d.ts +18 -0
- package/dist/skills/bundled/webhooks/index.js +136 -0
- package/dist/skills/bundled/webhooks/index.js.map +1 -0
- package/dist/skills/bundled/whale-tracking/index.d.ts +18 -0
- package/dist/skills/bundled/whale-tracking/index.js +441 -0
- package/dist/skills/bundled/whale-tracking/index.js.map +1 -0
- package/dist/skills/bundled/yoink/index.d.ts +78 -0
- package/dist/skills/bundled/yoink/index.js +236 -0
- package/dist/skills/bundled/yoink/index.js.map +1 -0
- package/dist/skills/executor.d.ts +117 -0
- package/dist/skills/executor.js +469 -0
- package/dist/skills/executor.js.map +1 -0
- package/dist/skills/frontmatter.d.ts +69 -0
- package/dist/skills/frontmatter.js +187 -0
- package/dist/skills/frontmatter.js.map +1 -0
- package/dist/skills/index.d.ts +150 -0
- package/dist/skills/index.js +531 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/loader.d.ts +48 -0
- package/dist/skills/loader.js +594 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/registry.d.ts +94 -0
- package/dist/skills/registry.js +308 -0
- package/dist/skills/registry.js.map +1 -0
- package/dist/solana/copytrade.d.ts +116 -0
- package/dist/solana/copytrade.js +493 -0
- package/dist/solana/copytrade.js.map +1 -0
- package/dist/solana/drift.d.ts +154 -0
- package/dist/solana/drift.js +599 -0
- package/dist/solana/drift.js.map +1 -0
- package/dist/solana/jupiter.d.ts +283 -0
- package/dist/solana/jupiter.js +553 -0
- package/dist/solana/jupiter.js.map +1 -0
- package/dist/solana/kamino.d.ts +206 -0
- package/dist/solana/kamino.js +546 -0
- package/dist/solana/kamino.js.map +1 -0
- package/dist/solana/meteora-dbc.d.ts +430 -0
- package/dist/solana/meteora-dbc.js +1105 -0
- package/dist/solana/meteora-dbc.js.map +1 -0
- package/dist/solana/meteora.d.ts +232 -0
- package/dist/solana/meteora.js +682 -0
- package/dist/solana/meteora.js.map +1 -0
- package/dist/solana/orca.d.ts +163 -0
- package/dist/solana/orca.js +378 -0
- package/dist/solana/orca.js.map +1 -0
- package/dist/solana/pools.d.ts +26 -0
- package/dist/solana/pools.js +96 -0
- package/dist/solana/pools.js.map +1 -0
- package/dist/solana/pump-swarm.d.ts +349 -0
- package/dist/solana/pump-swarm.js +1663 -0
- package/dist/solana/pump-swarm.js.map +1 -0
- package/dist/solana/pumpapi.d.ts +196 -0
- package/dist/solana/pumpapi.js +462 -0
- package/dist/solana/pumpapi.js.map +1 -0
- package/dist/solana/raydium.d.ts +170 -0
- package/dist/solana/raydium.js +673 -0
- package/dist/solana/raydium.js.map +1 -0
- package/dist/solana/swarm-ai-builder.d.ts +97 -0
- package/dist/solana/swarm-ai-builder.js +571 -0
- package/dist/solana/swarm-ai-builder.js.map +1 -0
- package/dist/solana/swarm-arbitrage.d.ts +111 -0
- package/dist/solana/swarm-arbitrage.js +437 -0
- package/dist/solana/swarm-arbitrage.js.map +1 -0
- package/dist/solana/swarm-builders.d.ts +71 -0
- package/dist/solana/swarm-builders.js +402 -0
- package/dist/solana/swarm-builders.js.map +1 -0
- package/dist/solana/swarm-copytrade.d.ts +103 -0
- package/dist/solana/swarm-copytrade.js +420 -0
- package/dist/solana/swarm-copytrade.js.map +1 -0
- package/dist/solana/swarm-presets.d.ts +49 -0
- package/dist/solana/swarm-presets.js +282 -0
- package/dist/solana/swarm-presets.js.map +1 -0
- package/dist/solana/swarm-signals.d.ts +128 -0
- package/dist/solana/swarm-signals.js +529 -0
- package/dist/solana/swarm-signals.js.map +1 -0
- package/dist/solana/swarm-strategies.d.ts +230 -0
- package/dist/solana/swarm-strategies.js +611 -0
- package/dist/solana/swarm-strategies.js.map +1 -0
- package/dist/solana/tokenlist.d.ts +10 -0
- package/dist/solana/tokenlist.js +54 -0
- package/dist/solana/tokenlist.js.map +1 -0
- package/dist/solana/wallet.d.ts +12 -0
- package/dist/solana/wallet.js +90 -0
- package/dist/solana/wallet.js.map +1 -0
- package/dist/strategies/crypto-hft/index.d.ts +46 -0
- package/dist/strategies/crypto-hft/index.js +469 -0
- package/dist/strategies/crypto-hft/index.js.map +1 -0
- package/dist/strategies/crypto-hft/market-scanner.d.ts +26 -0
- package/dist/strategies/crypto-hft/market-scanner.js +177 -0
- package/dist/strategies/crypto-hft/market-scanner.js.map +1 -0
- package/dist/strategies/crypto-hft/orderbook.d.ts +37 -0
- package/dist/strategies/crypto-hft/orderbook.js +184 -0
- package/dist/strategies/crypto-hft/orderbook.js.map +1 -0
- package/dist/strategies/crypto-hft/positions.d.ts +49 -0
- package/dist/strategies/crypto-hft/positions.js +376 -0
- package/dist/strategies/crypto-hft/positions.js.map +1 -0
- package/dist/strategies/crypto-hft/presets.d.ts +11 -0
- package/dist/strategies/crypto-hft/presets.js +164 -0
- package/dist/strategies/crypto-hft/presets.js.map +1 -0
- package/dist/strategies/crypto-hft/strategies.d.ts +96 -0
- package/dist/strategies/crypto-hft/strategies.js +330 -0
- package/dist/strategies/crypto-hft/strategies.js.map +1 -0
- package/dist/strategies/crypto-hft/types.d.ts +196 -0
- package/dist/strategies/crypto-hft/types.js +32 -0
- package/dist/strategies/crypto-hft/types.js.map +1 -0
- package/dist/strategies/hft-divergence/detector.d.ts +29 -0
- package/dist/strategies/hft-divergence/detector.js +182 -0
- package/dist/strategies/hft-divergence/detector.js.map +1 -0
- package/dist/strategies/hft-divergence/index.d.ts +12 -0
- package/dist/strategies/hft-divergence/index.js +19 -0
- package/dist/strategies/hft-divergence/index.js.map +1 -0
- package/dist/strategies/hft-divergence/market-rotator.d.ts +17 -0
- package/dist/strategies/hft-divergence/market-rotator.js +128 -0
- package/dist/strategies/hft-divergence/market-rotator.js.map +1 -0
- package/dist/strategies/hft-divergence/position-manager.d.ts +35 -0
- package/dist/strategies/hft-divergence/position-manager.js +188 -0
- package/dist/strategies/hft-divergence/position-manager.js.map +1 -0
- package/dist/strategies/hft-divergence/strategy.d.ts +31 -0
- package/dist/strategies/hft-divergence/strategy.js +295 -0
- package/dist/strategies/hft-divergence/strategy.js.map +1 -0
- package/dist/strategies/hft-divergence/types.d.ts +114 -0
- package/dist/strategies/hft-divergence/types.js +10 -0
- package/dist/strategies/hft-divergence/types.js.map +1 -0
- package/dist/streaming/index.d.ts +70 -0
- package/dist/streaming/index.js +296 -0
- package/dist/streaming/index.js.map +1 -0
- package/dist/tailscale/index.d.ts +139 -0
- package/dist/tailscale/index.js +345 -0
- package/dist/tailscale/index.js.map +1 -0
- package/dist/telemetry/index.d.ts +143 -0
- package/dist/telemetry/index.js +535 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/terminal/index.d.ts +121 -0
- package/dist/terminal/index.js +548 -0
- package/dist/terminal/index.js.map +1 -0
- package/dist/token-security/index.d.ts +36 -0
- package/dist/token-security/index.js +253 -0
- package/dist/token-security/index.js.map +1 -0
- package/dist/tools/browser.d.ts +128 -0
- package/dist/tools/browser.js +459 -0
- package/dist/tools/browser.js.map +1 -0
- package/dist/tools/canvas.d.ts +93 -0
- package/dist/tools/canvas.js +349 -0
- package/dist/tools/canvas.js.map +1 -0
- package/dist/tools/docker.d.ts +59 -0
- package/dist/tools/docker.js +191 -0
- package/dist/tools/docker.js.map +1 -0
- package/dist/tools/email.d.ts +25 -0
- package/dist/tools/email.js +131 -0
- package/dist/tools/email.js.map +1 -0
- package/dist/tools/exec.d.ts +81 -0
- package/dist/tools/exec.js +373 -0
- package/dist/tools/exec.js.map +1 -0
- package/dist/tools/files.d.ts +46 -0
- package/dist/tools/files.js +185 -0
- package/dist/tools/files.js.map +1 -0
- package/dist/tools/git.d.ts +29 -0
- package/dist/tools/git.js +105 -0
- package/dist/tools/git.js.map +1 -0
- package/dist/tools/image.d.ts +57 -0
- package/dist/tools/image.js +308 -0
- package/dist/tools/image.js.map +1 -0
- package/dist/tools/index.d.ts +39 -0
- package/dist/tools/index.js +46 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/message.d.ts +99 -0
- package/dist/tools/message.js +200 -0
- package/dist/tools/message.js.map +1 -0
- package/dist/tools/nodes.d.ts +134 -0
- package/dist/tools/nodes.js +357 -0
- package/dist/tools/nodes.js.map +1 -0
- package/dist/tools/sessions.d.ts +60 -0
- package/dist/tools/sessions.js +119 -0
- package/dist/tools/sessions.js.map +1 -0
- package/dist/tools/shell-history.d.ts +17 -0
- package/dist/tools/shell-history.js +118 -0
- package/dist/tools/shell-history.js.map +1 -0
- package/dist/tools/sms.d.ts +18 -0
- package/dist/tools/sms.js +66 -0
- package/dist/tools/sms.js.map +1 -0
- package/dist/tools/sql.d.ts +19 -0
- package/dist/tools/sql.js +91 -0
- package/dist/tools/sql.js.map +1 -0
- package/dist/tools/transcription.d.ts +13 -0
- package/dist/tools/transcription.js +99 -0
- package/dist/tools/transcription.js.map +1 -0
- package/dist/tools/web-fetch.d.ts +69 -0
- package/dist/tools/web-fetch.js +251 -0
- package/dist/tools/web-fetch.js.map +1 -0
- package/dist/tools/web-search.d.ts +58 -0
- package/dist/tools/web-search.js +204 -0
- package/dist/tools/web-search.js.map +1 -0
- package/dist/tools/webhooks.d.ts +74 -0
- package/dist/tools/webhooks.js +165 -0
- package/dist/tools/webhooks.js.map +1 -0
- package/dist/trading/accounts.d.ts +167 -0
- package/dist/trading/accounts.js +394 -0
- package/dist/trading/accounts.js.map +1 -0
- package/dist/trading/adapters/index.d.ts +27 -0
- package/dist/trading/adapters/index.js +165 -0
- package/dist/trading/adapters/index.js.map +1 -0
- package/dist/trading/backtest.d.ts +161 -0
- package/dist/trading/backtest.js +665 -0
- package/dist/trading/backtest.js.map +1 -0
- package/dist/trading/bots/index.d.ts +196 -0
- package/dist/trading/bots/index.js +688 -0
- package/dist/trading/bots/index.js.map +1 -0
- package/dist/trading/bridge.d.ts +33 -0
- package/dist/trading/bridge.js +121 -0
- package/dist/trading/bridge.js.map +1 -0
- package/dist/trading/builder.d.ts +102 -0
- package/dist/trading/builder.js +430 -0
- package/dist/trading/builder.js.map +1 -0
- package/dist/trading/copy-trading.d.ts +125 -0
- package/dist/trading/copy-trading.js +611 -0
- package/dist/trading/copy-trading.js.map +1 -0
- package/dist/trading/devtools.d.ts +172 -0
- package/dist/trading/devtools.js +425 -0
- package/dist/trading/devtools.js.map +1 -0
- package/dist/trading/futures/index.d.ts +981 -0
- package/dist/trading/futures/index.js +4011 -0
- package/dist/trading/futures/index.js.map +1 -0
- package/dist/trading/index.d.ts +102 -0
- package/dist/trading/index.js +310 -0
- package/dist/trading/index.js.map +1 -0
- package/dist/trading/kelly.d.ts +137 -0
- package/dist/trading/kelly.js +328 -0
- package/dist/trading/kelly.js.map +1 -0
- package/dist/trading/logger.d.ts +163 -0
- package/dist/trading/logger.js +424 -0
- package/dist/trading/logger.js.map +1 -0
- package/dist/trading/market-making/engine.d.ts +44 -0
- package/dist/trading/market-making/engine.js +165 -0
- package/dist/trading/market-making/engine.js.map +1 -0
- package/dist/trading/market-making/index.d.ts +10 -0
- package/dist/trading/market-making/index.js +29 -0
- package/dist/trading/market-making/index.js.map +1 -0
- package/dist/trading/market-making/strategy.d.ts +25 -0
- package/dist/trading/market-making/strategy.js +250 -0
- package/dist/trading/market-making/strategy.js.map +1 -0
- package/dist/trading/market-making/types.d.ts +92 -0
- package/dist/trading/market-making/types.js +6 -0
- package/dist/trading/market-making/types.js.map +1 -0
- package/dist/trading/ml-signals.d.ts +175 -0
- package/dist/trading/ml-signals.js +548 -0
- package/dist/trading/ml-signals.js.map +1 -0
- package/dist/trading/orchestrator.d.ts +59 -0
- package/dist/trading/orchestrator.js +199 -0
- package/dist/trading/orchestrator.js.map +1 -0
- package/dist/trading/position-bridge.d.ts +41 -0
- package/dist/trading/position-bridge.js +178 -0
- package/dist/trading/position-bridge.js.map +1 -0
- package/dist/trading/resilience.d.ts +81 -0
- package/dist/trading/resilience.js +257 -0
- package/dist/trading/resilience.js.map +1 -0
- package/dist/trading/risk.d.ts +18 -0
- package/dist/trading/risk.js +91 -0
- package/dist/trading/risk.js.map +1 -0
- package/dist/trading/safety.d.ts +114 -0
- package/dist/trading/safety.js +372 -0
- package/dist/trading/safety.js.map +1 -0
- package/dist/trading/secrets.d.ts +48 -0
- package/dist/trading/secrets.js +243 -0
- package/dist/trading/secrets.js.map +1 -0
- package/dist/trading/state.d.ts +88 -0
- package/dist/trading/state.js +221 -0
- package/dist/trading/state.js.map +1 -0
- package/dist/trading/stream.d.ts +121 -0
- package/dist/trading/stream.js +396 -0
- package/dist/trading/stream.js.map +1 -0
- package/dist/trading/tracking.d.ts +136 -0
- package/dist/trading/tracking.js +512 -0
- package/dist/trading/tracking.js.map +1 -0
- package/dist/tts/index.d.ts +28 -0
- package/dist/tts/index.js +64 -0
- package/dist/tts/index.js.map +1 -0
- package/dist/tui/index.d.ts +159 -0
- package/dist/tui/index.js +580 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/types.d.ts +1373 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/usage/index.d.ts +57 -0
- package/dist/usage/index.js +191 -0
- package/dist/usage/index.js.map +1 -0
- package/dist/utils/attachments.d.ts +12 -0
- package/dist/utils/attachments.js +104 -0
- package/dist/utils/attachments.js.map +1 -0
- package/dist/utils/config.d.ts +14 -0
- package/dist/utils/config.js +474 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/http.d.ts +22 -0
- package/dist/utils/http.js +191 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/id.d.ts +21 -0
- package/dist/utils/id.js +41 -0
- package/dist/utils/id.js.map +1 -0
- package/dist/utils/json-utils.d.ts +201 -0
- package/dist/utils/json-utils.js +151 -0
- package/dist/utils/json-utils.js.map +1 -0
- package/dist/utils/kalshi-auth.d.ts +10 -0
- package/dist/utils/kalshi-auth.js +48 -0
- package/dist/utils/kalshi-auth.js.map +1 -0
- package/dist/utils/kelly.d.ts +153 -0
- package/dist/utils/kelly.js +322 -0
- package/dist/utils/kelly.js.map +1 -0
- package/dist/utils/logger.d.ts +7 -0
- package/dist/utils/logger.js +26 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/opinion-auth.d.ts +17 -0
- package/dist/utils/opinion-auth.js +25 -0
- package/dist/utils/opinion-auth.js.map +1 -0
- package/dist/utils/polymarket-auth.d.ts +11 -0
- package/dist/utils/polymarket-auth.js +32 -0
- package/dist/utils/polymarket-auth.js.map +1 -0
- package/dist/utils/polymarket-order-signer.d.ts +118 -0
- package/dist/utils/polymarket-order-signer.js +329 -0
- package/dist/utils/polymarket-order-signer.js.map +1 -0
- package/dist/utils/polymarket-setup.d.ts +70 -0
- package/dist/utils/polymarket-setup.js +288 -0
- package/dist/utils/polymarket-setup.js.map +1 -0
- package/dist/utils/production.d.ts +112 -0
- package/dist/utils/production.js +294 -0
- package/dist/utils/production.js.map +1 -0
- package/dist/utils/rate-limiter.d.ts +77 -0
- package/dist/utils/rate-limiter.js +271 -0
- package/dist/utils/rate-limiter.js.map +1 -0
- package/dist/utils/webhook-security.d.ts +63 -0
- package/dist/utils/webhook-security.js +183 -0
- package/dist/utils/webhook-security.js.map +1 -0
- package/dist/voice/index.d.ts +125 -0
- package/dist/voice/index.js +557 -0
- package/dist/voice/index.js.map +1 -0
- package/dist/weather/edge.d.ts +70 -0
- package/dist/weather/edge.js +281 -0
- package/dist/weather/edge.js.map +1 -0
- package/dist/weather/index.d.ts +6 -0
- package/dist/weather/index.js +23 -0
- package/dist/weather/index.js.map +1 -0
- package/dist/weather/markets.d.ts +84 -0
- package/dist/weather/markets.js +320 -0
- package/dist/weather/markets.js.map +1 -0
- package/dist/weather/noaa.d.ts +113 -0
- package/dist/weather/noaa.js +287 -0
- package/dist/weather/noaa.js.map +1 -0
- package/dist/web/index.d.ts +112 -0
- package/dist/web/index.js +639 -0
- package/dist/web/index.js.map +1 -0
- package/dist/wizard/index.d.ts +27 -0
- package/dist/wizard/index.js +186 -0
- package/dist/wizard/index.js.map +1 -0
- package/dist/workspace/index.d.ts +73 -0
- package/dist/workspace/index.js +403 -0
- package/dist/workspace/index.js.map +1 -0
- package/package.json +168 -0
|
@@ -0,0 +1,1105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.toLamports = toLamports;
|
|
37
|
+
exports.createDbcConfig = createDbcConfig;
|
|
38
|
+
exports.createDbcPool = createDbcPool;
|
|
39
|
+
exports.createDbcPoolWithFirstBuy = createDbcPoolWithFirstBuy;
|
|
40
|
+
exports.getDbcPoolStatus = getDbcPoolStatus;
|
|
41
|
+
exports.swapOnDbcPool = swapOnDbcPool;
|
|
42
|
+
exports.getDbcSwapQuote = getDbcSwapQuote;
|
|
43
|
+
exports.claimDbcCreatorFees = claimDbcCreatorFees;
|
|
44
|
+
exports.claimDbcPartnerFees = claimDbcPartnerFees;
|
|
45
|
+
exports.migrateToDammV1 = migrateToDammV1;
|
|
46
|
+
exports.migrateToDammV2 = migrateToDammV2;
|
|
47
|
+
exports.createDbcLocker = createDbcLocker;
|
|
48
|
+
exports.lockDammV1LpToken = lockDammV1LpToken;
|
|
49
|
+
exports.claimDammV1LpToken = claimDammV1LpToken;
|
|
50
|
+
exports.withdrawLeftover = withdrawLeftover;
|
|
51
|
+
exports.createDammV1MigrationMetadata = createDammV1MigrationMetadata;
|
|
52
|
+
exports.createDbcPoolWithExistingConfigAndBuy = createDbcPoolWithExistingConfigAndBuy;
|
|
53
|
+
exports.createDbcPoolWithPartnerAndCreatorBuy = createDbcPoolWithPartnerAndCreatorBuy;
|
|
54
|
+
exports.swapOnDbcPoolV2 = swapOnDbcPoolV2;
|
|
55
|
+
exports.getDbcSwapQuoteV2 = getDbcSwapQuoteV2;
|
|
56
|
+
exports.createPartnerMetadata = createPartnerMetadata;
|
|
57
|
+
exports.partnerWithdrawSurplus = partnerWithdrawSurplus;
|
|
58
|
+
exports.partnerWithdrawMigrationFee = partnerWithdrawMigrationFee;
|
|
59
|
+
exports.claimPartnerPoolCreationFee = claimPartnerPoolCreationFee;
|
|
60
|
+
exports.claimDbcPartnerFeesV2 = claimDbcPartnerFeesV2;
|
|
61
|
+
exports.createPoolMetadata = createPoolMetadata;
|
|
62
|
+
exports.creatorWithdrawSurplus = creatorWithdrawSurplus;
|
|
63
|
+
exports.transferPoolCreator = transferPoolCreator;
|
|
64
|
+
exports.creatorWithdrawMigrationFee = creatorWithdrawMigrationFee;
|
|
65
|
+
exports.claimDbcCreatorFeesV2 = claimDbcCreatorFeesV2;
|
|
66
|
+
exports.getDbcPoolConfigs = getDbcPoolConfigs;
|
|
67
|
+
exports.getDbcPoolConfigsByOwner = getDbcPoolConfigsByOwner;
|
|
68
|
+
exports.getDbcPools = getDbcPools;
|
|
69
|
+
exports.getDbcPoolsByConfig = getDbcPoolsByConfig;
|
|
70
|
+
exports.getDbcPoolsByCreator = getDbcPoolsByCreator;
|
|
71
|
+
exports.getDbcPoolMetadata = getDbcPoolMetadata;
|
|
72
|
+
exports.getDbcPartnerMetadata = getDbcPartnerMetadata;
|
|
73
|
+
exports.getDbcLockEscrow = getDbcLockEscrow;
|
|
74
|
+
exports.getDbcPoolFeeBreakdown = getDbcPoolFeeBreakdown;
|
|
75
|
+
exports.getDbcPoolsFeesByConfig = getDbcPoolsFeesByConfig;
|
|
76
|
+
exports.getDbcPoolsFeesByCreator = getDbcPoolsFeesByCreator;
|
|
77
|
+
exports.getDbcMigrationMetadata = getDbcMigrationMetadata;
|
|
78
|
+
const web3_js_1 = require("@solana/web3.js");
|
|
79
|
+
const anchor_1 = require("@coral-xyz/anchor");
|
|
80
|
+
const wallet_js_1 = require("./wallet.js");
|
|
81
|
+
const SOL_MINT = 'So11111111111111111111111111111111111111112';
|
|
82
|
+
// ============================================
|
|
83
|
+
// Helpers
|
|
84
|
+
// ============================================
|
|
85
|
+
/**
|
|
86
|
+
* String-safe lamport conversion to avoid JS floating-point bugs.
|
|
87
|
+
*/
|
|
88
|
+
function toLamports(amount, decimals) {
|
|
89
|
+
const str = String(amount);
|
|
90
|
+
const [whole, frac = ''] = str.split('.');
|
|
91
|
+
const padded = frac.padEnd(decimals, '0').slice(0, decimals);
|
|
92
|
+
const raw = (whole + padded).replace(/^0+/, '') || '0';
|
|
93
|
+
return new anchor_1.BN(raw);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Lazy-load the DBC SDK client.
|
|
97
|
+
*/
|
|
98
|
+
async function getDbcClient(connection) {
|
|
99
|
+
const sdk = await Promise.resolve().then(() => __importStar(require('@meteora-ag/dynamic-bonding-curve-sdk')));
|
|
100
|
+
const Client = sdk.DynamicBondingCurveClient || sdk.DynamicBondingCurveClient;
|
|
101
|
+
if (!Client) {
|
|
102
|
+
throw new Error('Meteora DBC SDK not available.');
|
|
103
|
+
}
|
|
104
|
+
return Client.create(connection, 'confirmed');
|
|
105
|
+
}
|
|
106
|
+
async function getDbcSdk() {
|
|
107
|
+
return await Promise.resolve().then(() => __importStar(require('@meteora-ag/dynamic-bonding-curve-sdk')));
|
|
108
|
+
}
|
|
109
|
+
// ============================================
|
|
110
|
+
// Build config parameters
|
|
111
|
+
// ============================================
|
|
112
|
+
function buildConfigParams(sdk, params) {
|
|
113
|
+
const { totalTokenSupply = 1_000_000_000, tokenDecimals = 6, initialMarketCap = 30, migrationMarketCap = 500, migrationOption = 1, startingFeeBps = 500, endingFeeBps = 100, feeDecayPeriods = 10, feeDecayDurationSec = 3600, dynamicFeeEnabled = true, creatorTradingFeePercent = 80, partnerLiquidityPct = 0, creatorLiquidityPct = 5, partnerLockedPct = 50, creatorLockedPct = 45, tokenType = 0, collectFeeMode = 0, migrationFeeOption = 6, migrationFeePercentage = 15, creatorMigrationFeePercentage = 50, poolCreationFee = 0, } = params;
|
|
114
|
+
const TokenDecimal = sdk.TokenDecimal;
|
|
115
|
+
const TokenType = sdk.TokenType;
|
|
116
|
+
const ActivationType = sdk.ActivationType;
|
|
117
|
+
const CollectFeeMode = sdk.CollectFeeMode;
|
|
118
|
+
const MigrationOption = sdk.MigrationOption;
|
|
119
|
+
const MigrationFeeOption = sdk.MigrationFeeOption;
|
|
120
|
+
const BaseFeeMode = sdk.BaseFeeMode;
|
|
121
|
+
const decimalMap = { 6: 6, 7: 7, 8: 8, 9: 9 };
|
|
122
|
+
const tokenDecimalEnum = (decimalMap[tokenDecimals] ?? 6);
|
|
123
|
+
const buildCurveWithMarketCap = sdk.buildCurveWithMarketCap;
|
|
124
|
+
if (!buildCurveWithMarketCap) {
|
|
125
|
+
throw new Error('buildCurveWithMarketCap not found in DBC SDK');
|
|
126
|
+
}
|
|
127
|
+
const configParameters = buildCurveWithMarketCap({
|
|
128
|
+
totalTokenSupply,
|
|
129
|
+
tokenType: tokenType === 1 ? TokenType.Token2022 : TokenType.SPL,
|
|
130
|
+
tokenBaseDecimal: tokenDecimalEnum,
|
|
131
|
+
tokenQuoteDecimal: TokenDecimal?.NINE ?? 9,
|
|
132
|
+
tokenUpdateAuthority: 0,
|
|
133
|
+
lockedVestingParams: {
|
|
134
|
+
totalLockedVestingAmount: 0,
|
|
135
|
+
numberOfVestingPeriod: 0,
|
|
136
|
+
cliffUnlockAmount: 0,
|
|
137
|
+
totalVestingDuration: 0,
|
|
138
|
+
cliffDurationFromMigrationTime: 0,
|
|
139
|
+
},
|
|
140
|
+
leftover: 0,
|
|
141
|
+
baseFeeParams: {
|
|
142
|
+
baseFeeMode: BaseFeeMode.FeeSchedulerLinear,
|
|
143
|
+
feeSchedulerParam: {
|
|
144
|
+
startingFeeBps,
|
|
145
|
+
endingFeeBps,
|
|
146
|
+
numberOfPeriod: feeDecayPeriods,
|
|
147
|
+
totalDuration: feeDecayDurationSec,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
dynamicFeeEnabled,
|
|
151
|
+
activationType: ActivationType.Timestamp,
|
|
152
|
+
collectFeeMode: collectFeeMode === 1 ? CollectFeeMode.OutputToken : CollectFeeMode.QuoteToken,
|
|
153
|
+
creatorTradingFeePercentage: creatorTradingFeePercent,
|
|
154
|
+
poolCreationFee,
|
|
155
|
+
migrationOption: migrationOption === 0 ? MigrationOption.MET_DAMM : MigrationOption.MET_DAMM_V2,
|
|
156
|
+
migrationFeeOption: migrationFeeOption === 6 ? MigrationFeeOption.Customizable : migrationFeeOption,
|
|
157
|
+
migrationFee: {
|
|
158
|
+
feePercentage: migrationFeePercentage,
|
|
159
|
+
creatorFeePercentage: creatorMigrationFeePercentage,
|
|
160
|
+
},
|
|
161
|
+
partnerPermanentLockedLiquidityPercentage: partnerLockedPct,
|
|
162
|
+
partnerLiquidityPercentage: partnerLiquidityPct,
|
|
163
|
+
creatorPermanentLockedLiquidityPercentage: creatorLockedPct,
|
|
164
|
+
creatorLiquidityPercentage: creatorLiquidityPct,
|
|
165
|
+
enableFirstSwapWithMinFee: true,
|
|
166
|
+
initialMarketCap,
|
|
167
|
+
migrationMarketCap,
|
|
168
|
+
});
|
|
169
|
+
return configParameters;
|
|
170
|
+
}
|
|
171
|
+
// ============================================
|
|
172
|
+
// Core functions
|
|
173
|
+
// ============================================
|
|
174
|
+
/**
|
|
175
|
+
* Create a DBC config on-chain.
|
|
176
|
+
*/
|
|
177
|
+
async function createDbcConfig(connection, keypair, params) {
|
|
178
|
+
const sdk = await getDbcSdk();
|
|
179
|
+
const client = await getDbcClient(connection);
|
|
180
|
+
const configParameters = buildConfigParams(sdk, params);
|
|
181
|
+
const configKeypair = web3_js_1.Keypair.generate();
|
|
182
|
+
const quoteMint = new web3_js_1.PublicKey(params.quoteMint || SOL_MINT);
|
|
183
|
+
const feeClaimer = new web3_js_1.PublicKey(params.feeClaimer || keypair.publicKey.toBase58());
|
|
184
|
+
const leftoverReceiver = new web3_js_1.PublicKey(params.leftoverReceiver || keypair.publicKey.toBase58());
|
|
185
|
+
const tx = await client.partner.createConfig({
|
|
186
|
+
config: configKeypair.publicKey,
|
|
187
|
+
feeClaimer,
|
|
188
|
+
leftoverReceiver,
|
|
189
|
+
quoteMint,
|
|
190
|
+
payer: keypair.publicKey,
|
|
191
|
+
...configParameters,
|
|
192
|
+
});
|
|
193
|
+
tx.partialSign(configKeypair);
|
|
194
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
195
|
+
return {
|
|
196
|
+
configAddress: configKeypair.publicKey.toBase58(),
|
|
197
|
+
signature,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Create a DBC pool (token + bonding curve). Creates config if no configAddress given.
|
|
202
|
+
*/
|
|
203
|
+
async function createDbcPool(connection, keypair, params) {
|
|
204
|
+
const sdk = await getDbcSdk();
|
|
205
|
+
const client = await getDbcClient(connection);
|
|
206
|
+
let configAddress;
|
|
207
|
+
if (params.configAddress) {
|
|
208
|
+
configAddress = new web3_js_1.PublicKey(params.configAddress);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
// Create config + pool in one flow
|
|
212
|
+
const configParams = params.config || {};
|
|
213
|
+
const configParameters = buildConfigParams(sdk, configParams);
|
|
214
|
+
const configKeypair = web3_js_1.Keypair.generate();
|
|
215
|
+
const baseMintKeypair = web3_js_1.Keypair.generate();
|
|
216
|
+
const quoteMint = new web3_js_1.PublicKey(configParams.quoteMint || SOL_MINT);
|
|
217
|
+
const feeClaimer = new web3_js_1.PublicKey(configParams.feeClaimer || keypair.publicKey.toBase58());
|
|
218
|
+
const leftoverReceiver = new web3_js_1.PublicKey(configParams.leftoverReceiver || keypair.publicKey.toBase58());
|
|
219
|
+
const tx = await client.pool.createConfigAndPool({
|
|
220
|
+
config: configKeypair.publicKey,
|
|
221
|
+
feeClaimer,
|
|
222
|
+
leftoverReceiver,
|
|
223
|
+
quoteMint,
|
|
224
|
+
payer: keypair.publicKey,
|
|
225
|
+
...configParameters,
|
|
226
|
+
preCreatePoolParam: {
|
|
227
|
+
name: params.name,
|
|
228
|
+
symbol: params.symbol,
|
|
229
|
+
uri: params.uri,
|
|
230
|
+
poolCreator: keypair.publicKey,
|
|
231
|
+
baseMint: baseMintKeypair.publicKey,
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
tx.partialSign(configKeypair);
|
|
235
|
+
tx.partialSign(baseMintKeypair);
|
|
236
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
237
|
+
// Derive pool address: deriveDbcPoolAddress(quoteMint, baseMint, config) -> PublicKey
|
|
238
|
+
const derivePool = sdk.deriveDbcPoolAddress;
|
|
239
|
+
let poolAddr = '';
|
|
240
|
+
if (derivePool) {
|
|
241
|
+
try {
|
|
242
|
+
const poolPda = derivePool(quoteMint, baseMintKeypair.publicKey, configKeypair.publicKey);
|
|
243
|
+
poolAddr = poolPda.toBase58();
|
|
244
|
+
}
|
|
245
|
+
catch {
|
|
246
|
+
poolAddr = 'derived-after-confirm';
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
baseMint: baseMintKeypair.publicKey.toBase58(),
|
|
251
|
+
poolAddress: poolAddr,
|
|
252
|
+
configAddress: configKeypair.publicKey.toBase58(),
|
|
253
|
+
signature,
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
// Create pool with existing config
|
|
257
|
+
const baseMintKeypair = web3_js_1.Keypair.generate();
|
|
258
|
+
const tx = await client.pool.createPool({
|
|
259
|
+
name: params.name,
|
|
260
|
+
symbol: params.symbol,
|
|
261
|
+
uri: params.uri,
|
|
262
|
+
payer: keypair.publicKey,
|
|
263
|
+
poolCreator: keypair.publicKey,
|
|
264
|
+
config: configAddress,
|
|
265
|
+
baseMint: baseMintKeypair.publicKey,
|
|
266
|
+
});
|
|
267
|
+
tx.partialSign(baseMintKeypair);
|
|
268
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
269
|
+
// Derive pool address
|
|
270
|
+
const configState = await client.state.getPoolConfig(configAddress);
|
|
271
|
+
const quoteMint = configState.quoteMint;
|
|
272
|
+
const derivePool = sdk.deriveDbcPoolAddress;
|
|
273
|
+
let poolAddr = '';
|
|
274
|
+
if (derivePool) {
|
|
275
|
+
try {
|
|
276
|
+
const poolPda = derivePool(quoteMint, baseMintKeypair.publicKey, configAddress);
|
|
277
|
+
poolAddr = poolPda.toBase58();
|
|
278
|
+
}
|
|
279
|
+
catch {
|
|
280
|
+
poolAddr = 'derived-after-confirm';
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return {
|
|
284
|
+
baseMint: baseMintKeypair.publicKey.toBase58(),
|
|
285
|
+
poolAddress: poolAddr,
|
|
286
|
+
configAddress: configAddress.toBase58(),
|
|
287
|
+
signature,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Create a DBC pool with an initial buy in a single flow.
|
|
292
|
+
*/
|
|
293
|
+
async function createDbcPoolWithFirstBuy(connection, keypair, params) {
|
|
294
|
+
const sdk = await getDbcSdk();
|
|
295
|
+
const client = await getDbcClient(connection);
|
|
296
|
+
const configParams = params.config || {};
|
|
297
|
+
const configParameters = buildConfigParams(sdk, configParams);
|
|
298
|
+
const configKeypair = web3_js_1.Keypair.generate();
|
|
299
|
+
const baseMintKeypair = web3_js_1.Keypair.generate();
|
|
300
|
+
const quoteMint = new web3_js_1.PublicKey(configParams.quoteMint || SOL_MINT);
|
|
301
|
+
const feeClaimer = new web3_js_1.PublicKey(configParams.feeClaimer || keypair.publicKey.toBase58());
|
|
302
|
+
const leftoverReceiver = new web3_js_1.PublicKey(configParams.leftoverReceiver || keypair.publicKey.toBase58());
|
|
303
|
+
const result = await client.pool.createConfigAndPoolWithFirstBuy({
|
|
304
|
+
config: configKeypair.publicKey,
|
|
305
|
+
feeClaimer,
|
|
306
|
+
leftoverReceiver,
|
|
307
|
+
quoteMint,
|
|
308
|
+
payer: keypair.publicKey,
|
|
309
|
+
...configParameters,
|
|
310
|
+
preCreatePoolParam: {
|
|
311
|
+
name: params.name,
|
|
312
|
+
symbol: params.symbol,
|
|
313
|
+
uri: params.uri,
|
|
314
|
+
poolCreator: keypair.publicKey,
|
|
315
|
+
baseMint: baseMintKeypair.publicKey,
|
|
316
|
+
},
|
|
317
|
+
firstBuyParam: {
|
|
318
|
+
buyer: keypair.publicKey,
|
|
319
|
+
buyAmount: new anchor_1.BN(params.buyAmountLamports),
|
|
320
|
+
minimumAmountOut: new anchor_1.BN(0),
|
|
321
|
+
referralTokenAccount: null,
|
|
322
|
+
},
|
|
323
|
+
});
|
|
324
|
+
const signatures = [];
|
|
325
|
+
// Sign and send config tx
|
|
326
|
+
const configTx = result.createConfigTx;
|
|
327
|
+
configTx.partialSign(configKeypair);
|
|
328
|
+
const configSig = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, configTx);
|
|
329
|
+
signatures.push(configSig);
|
|
330
|
+
// Sign and send pool tx
|
|
331
|
+
const poolTx = result.createPoolTx;
|
|
332
|
+
poolTx.partialSign(baseMintKeypair);
|
|
333
|
+
const poolSig = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, poolTx);
|
|
334
|
+
signatures.push(poolSig);
|
|
335
|
+
// Sign and send buy tx if present
|
|
336
|
+
if (result.swapBuyTx) {
|
|
337
|
+
const buySig = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, result.swapBuyTx);
|
|
338
|
+
signatures.push(buySig);
|
|
339
|
+
}
|
|
340
|
+
const derivePool = sdk.deriveDbcPoolAddress;
|
|
341
|
+
let poolAddr = '';
|
|
342
|
+
if (derivePool) {
|
|
343
|
+
try {
|
|
344
|
+
const poolPda = derivePool(quoteMint, baseMintKeypair.publicKey, configKeypair.publicKey);
|
|
345
|
+
poolAddr = poolPda.toBase58();
|
|
346
|
+
}
|
|
347
|
+
catch {
|
|
348
|
+
poolAddr = 'derived-after-confirm';
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return {
|
|
352
|
+
baseMint: baseMintKeypair.publicKey.toBase58(),
|
|
353
|
+
poolAddress: poolAddr,
|
|
354
|
+
configAddress: configKeypair.publicKey.toBase58(),
|
|
355
|
+
signatures,
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Check pool status (migration progress, fees).
|
|
360
|
+
*/
|
|
361
|
+
async function getDbcPoolStatus(connection, baseMint) {
|
|
362
|
+
const client = await getDbcClient(connection);
|
|
363
|
+
const poolAccount = await client.state.getPoolByBaseMint(baseMint);
|
|
364
|
+
if (!poolAccount) {
|
|
365
|
+
return {
|
|
366
|
+
found: false,
|
|
367
|
+
poolAddress: '',
|
|
368
|
+
baseMint,
|
|
369
|
+
configAddress: '',
|
|
370
|
+
creator: '',
|
|
371
|
+
isMigrated: false,
|
|
372
|
+
quoteReserve: '0',
|
|
373
|
+
migrationThreshold: '0',
|
|
374
|
+
progressPercent: '0',
|
|
375
|
+
fees: null,
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
const poolAddress = poolAccount.publicKey.toBase58();
|
|
379
|
+
const pool = poolAccount.account;
|
|
380
|
+
const configPk = pool.config || pool.poolConfig;
|
|
381
|
+
let progress = 0;
|
|
382
|
+
try {
|
|
383
|
+
progress = await client.state.getPoolCurveProgress(poolAddress);
|
|
384
|
+
}
|
|
385
|
+
catch { /* pool may not support progress query */ }
|
|
386
|
+
let fees = null;
|
|
387
|
+
try {
|
|
388
|
+
const feeMetrics = await client.state.getPoolFeeMetrics(poolAddress);
|
|
389
|
+
fees = {
|
|
390
|
+
creatorBase: feeMetrics.current.creatorBaseFee.toString(),
|
|
391
|
+
creatorQuote: feeMetrics.current.creatorQuoteFee.toString(),
|
|
392
|
+
partnerBase: feeMetrics.current.partnerBaseFee.toString(),
|
|
393
|
+
partnerQuote: feeMetrics.current.partnerQuoteFee.toString(),
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
catch { /* fee metrics may fail for fresh pools */ }
|
|
397
|
+
const isMigrated = pool.migrated ?? false;
|
|
398
|
+
const quoteReserve = (pool.quoteReserve || pool.totalQuoteReserve || new anchor_1.BN(0)).toString();
|
|
399
|
+
let migrationThreshold = '0';
|
|
400
|
+
try {
|
|
401
|
+
const threshold = await client.state.getPoolMigrationQuoteThreshold(poolAddress);
|
|
402
|
+
migrationThreshold = threshold.toString();
|
|
403
|
+
}
|
|
404
|
+
catch { /* threshold may not be available */ }
|
|
405
|
+
return {
|
|
406
|
+
found: true,
|
|
407
|
+
poolAddress,
|
|
408
|
+
baseMint,
|
|
409
|
+
configAddress: configPk ? (configPk.toBase58 ? configPk.toBase58() : String(configPk)) : '',
|
|
410
|
+
creator: pool.creator ? (pool.creator.toBase58 ? pool.creator.toBase58() : String(pool.creator)) : '',
|
|
411
|
+
isMigrated,
|
|
412
|
+
quoteReserve,
|
|
413
|
+
migrationThreshold,
|
|
414
|
+
progressPercent: (progress * 100).toFixed(2),
|
|
415
|
+
fees,
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Swap on a DBC bonding curve pool.
|
|
420
|
+
*/
|
|
421
|
+
async function swapOnDbcPool(connection, keypair, params) {
|
|
422
|
+
const client = await getDbcClient(connection);
|
|
423
|
+
const tx = await client.pool.swap({
|
|
424
|
+
owner: keypair.publicKey,
|
|
425
|
+
pool: new web3_js_1.PublicKey(params.poolAddress),
|
|
426
|
+
amountIn: new anchor_1.BN(params.amountIn),
|
|
427
|
+
minimumAmountOut: new anchor_1.BN(params.minimumAmountOut || '0'),
|
|
428
|
+
swapBaseForQuote: params.swapBaseForQuote,
|
|
429
|
+
referralTokenAccount: null,
|
|
430
|
+
});
|
|
431
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
432
|
+
return {
|
|
433
|
+
signature,
|
|
434
|
+
direction: params.swapBaseForQuote ? 'SELL (base->quote)' : 'BUY (quote->base)',
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Get swap quote for a DBC pool.
|
|
439
|
+
*/
|
|
440
|
+
async function getDbcSwapQuote(connection, params) {
|
|
441
|
+
const sdk = await getDbcSdk();
|
|
442
|
+
const client = await getDbcClient(connection);
|
|
443
|
+
const poolAddress = new web3_js_1.PublicKey(params.poolAddress);
|
|
444
|
+
const pool = await client.state.getPool(poolAddress);
|
|
445
|
+
const configPk = pool.config || pool.poolConfig;
|
|
446
|
+
const config = await client.state.getPoolConfig(configPk);
|
|
447
|
+
const getCurrentPointFn = sdk.getCurrentPoint;
|
|
448
|
+
const ActivationType = sdk.ActivationType;
|
|
449
|
+
let currentPoint = new anchor_1.BN(0);
|
|
450
|
+
if (getCurrentPointFn && ActivationType) {
|
|
451
|
+
try {
|
|
452
|
+
currentPoint = await getCurrentPointFn(connection, ActivationType.Timestamp);
|
|
453
|
+
}
|
|
454
|
+
catch { /* fallback to 0 */ }
|
|
455
|
+
}
|
|
456
|
+
const quoteResult = client.pool.swapQuote({
|
|
457
|
+
virtualPool: pool,
|
|
458
|
+
config,
|
|
459
|
+
swapBaseForQuote: params.swapBaseForQuote,
|
|
460
|
+
amountIn: new anchor_1.BN(params.amountIn),
|
|
461
|
+
hasReferral: false,
|
|
462
|
+
eligibleForFirstSwapWithMinFee: false,
|
|
463
|
+
currentPoint,
|
|
464
|
+
});
|
|
465
|
+
return {
|
|
466
|
+
amountIn: params.amountIn,
|
|
467
|
+
amountOut: quoteResult.outputAmount?.toString() || '0',
|
|
468
|
+
minimumAmountOut: quoteResult.minimumAmountOut?.toString() || '0',
|
|
469
|
+
direction: params.swapBaseForQuote ? 'SELL (base->quote)' : 'BUY (quote->base)',
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Claim creator trading fees from a DBC pool.
|
|
474
|
+
*/
|
|
475
|
+
async function claimDbcCreatorFees(connection, keypair, poolAddress) {
|
|
476
|
+
const client = await getDbcClient(connection);
|
|
477
|
+
const u64Max = new anchor_1.BN('18446744073709551615');
|
|
478
|
+
const tx = await client.creator.claimCreatorTradingFee({
|
|
479
|
+
creator: keypair.publicKey,
|
|
480
|
+
payer: keypair.publicKey,
|
|
481
|
+
pool: new web3_js_1.PublicKey(poolAddress),
|
|
482
|
+
maxBaseAmount: u64Max,
|
|
483
|
+
maxQuoteAmount: u64Max,
|
|
484
|
+
});
|
|
485
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
486
|
+
return { signature };
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Claim partner trading fees from a DBC pool.
|
|
490
|
+
*/
|
|
491
|
+
async function claimDbcPartnerFees(connection, keypair, poolAddress) {
|
|
492
|
+
const client = await getDbcClient(connection);
|
|
493
|
+
const u64Max = new anchor_1.BN('18446744073709551615');
|
|
494
|
+
const tx = await client.partner.claimPartnerTradingFee({
|
|
495
|
+
feeClaimer: keypair.publicKey,
|
|
496
|
+
payer: keypair.publicKey,
|
|
497
|
+
pool: new web3_js_1.PublicKey(poolAddress),
|
|
498
|
+
maxBaseAmount: u64Max,
|
|
499
|
+
maxQuoteAmount: u64Max,
|
|
500
|
+
});
|
|
501
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
502
|
+
return { signature };
|
|
503
|
+
}
|
|
504
|
+
// ============================================
|
|
505
|
+
// Migration Service
|
|
506
|
+
// ============================================
|
|
507
|
+
/**
|
|
508
|
+
* Migrate a DBC pool to DAMM V1.
|
|
509
|
+
*/
|
|
510
|
+
async function migrateToDammV1(connection, keypair, params) {
|
|
511
|
+
const client = await getDbcClient(connection);
|
|
512
|
+
const tx = await client.migration.migrateToDammV1({
|
|
513
|
+
payer: keypair.publicKey,
|
|
514
|
+
virtualPool: new web3_js_1.PublicKey(params.poolAddress),
|
|
515
|
+
dammConfig: new web3_js_1.PublicKey(params.dammConfig),
|
|
516
|
+
});
|
|
517
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
518
|
+
return { signature };
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Migrate a DBC pool to DAMM V2.
|
|
522
|
+
*/
|
|
523
|
+
async function migrateToDammV2(connection, keypair, params) {
|
|
524
|
+
const client = await getDbcClient(connection);
|
|
525
|
+
const result = await client.migration.migrateToDammV2({
|
|
526
|
+
payer: keypair.publicKey,
|
|
527
|
+
virtualPool: new web3_js_1.PublicKey(params.poolAddress),
|
|
528
|
+
dammConfig: new web3_js_1.PublicKey(params.dammConfig),
|
|
529
|
+
});
|
|
530
|
+
const tx = result.transaction;
|
|
531
|
+
tx.partialSign(result.firstPositionNftKeypair);
|
|
532
|
+
tx.partialSign(result.secondPositionNftKeypair);
|
|
533
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
534
|
+
return { signature };
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Create a locker for locked vesting after migration.
|
|
538
|
+
*/
|
|
539
|
+
async function createDbcLocker(connection, keypair, poolAddress) {
|
|
540
|
+
const client = await getDbcClient(connection);
|
|
541
|
+
const tx = await client.migration.createLocker({
|
|
542
|
+
payer: keypair.publicKey,
|
|
543
|
+
virtualPool: new web3_js_1.PublicKey(poolAddress),
|
|
544
|
+
});
|
|
545
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
546
|
+
return { signature };
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Lock DAMM V1 LP token for creator or partner.
|
|
550
|
+
*/
|
|
551
|
+
async function lockDammV1LpToken(connection, keypair, params) {
|
|
552
|
+
const client = await getDbcClient(connection);
|
|
553
|
+
const tx = await client.migration.lockDammV1LpToken({
|
|
554
|
+
payer: keypair.publicKey,
|
|
555
|
+
virtualPool: new web3_js_1.PublicKey(params.poolAddress),
|
|
556
|
+
dammConfig: new web3_js_1.PublicKey(params.dammConfig),
|
|
557
|
+
isPartner: params.isPartner,
|
|
558
|
+
});
|
|
559
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
560
|
+
return { signature };
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Claim DAMM V1 LP token for creator or partner.
|
|
564
|
+
*/
|
|
565
|
+
async function claimDammV1LpToken(connection, keypair, params) {
|
|
566
|
+
const client = await getDbcClient(connection);
|
|
567
|
+
const tx = await client.migration.claimDammV1LpToken({
|
|
568
|
+
payer: keypair.publicKey,
|
|
569
|
+
virtualPool: new web3_js_1.PublicKey(params.poolAddress),
|
|
570
|
+
dammConfig: new web3_js_1.PublicKey(params.dammConfig),
|
|
571
|
+
isPartner: params.isPartner,
|
|
572
|
+
});
|
|
573
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
574
|
+
return { signature };
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Withdraw leftover tokens after migration.
|
|
578
|
+
*/
|
|
579
|
+
async function withdrawLeftover(connection, keypair, poolAddress) {
|
|
580
|
+
const client = await getDbcClient(connection);
|
|
581
|
+
const tx = await client.migration.withdrawLeftover({
|
|
582
|
+
payer: keypair.publicKey,
|
|
583
|
+
virtualPool: new web3_js_1.PublicKey(poolAddress),
|
|
584
|
+
});
|
|
585
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
586
|
+
return { signature };
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Create DAMM V1 migration metadata.
|
|
590
|
+
*/
|
|
591
|
+
async function createDammV1MigrationMetadata(connection, keypair, params) {
|
|
592
|
+
const client = await getDbcClient(connection);
|
|
593
|
+
const tx = await client.migration.createDammV1MigrationMetadata({
|
|
594
|
+
payer: keypair.publicKey,
|
|
595
|
+
virtualPool: new web3_js_1.PublicKey(params.poolAddress),
|
|
596
|
+
config: new web3_js_1.PublicKey(params.config),
|
|
597
|
+
});
|
|
598
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
599
|
+
return { signature };
|
|
600
|
+
}
|
|
601
|
+
// ============================================
|
|
602
|
+
// Pool Service (additional methods)
|
|
603
|
+
// ============================================
|
|
604
|
+
/**
|
|
605
|
+
* Create pool with an existing config and optional first buy.
|
|
606
|
+
*/
|
|
607
|
+
async function createDbcPoolWithExistingConfigAndBuy(connection, keypair, params) {
|
|
608
|
+
const sdk = await getDbcSdk();
|
|
609
|
+
const client = await getDbcClient(connection);
|
|
610
|
+
const baseMintKeypair = web3_js_1.Keypair.generate();
|
|
611
|
+
const configPk = new web3_js_1.PublicKey(params.configAddress);
|
|
612
|
+
const createPoolParam = {
|
|
613
|
+
name: params.name,
|
|
614
|
+
symbol: params.symbol,
|
|
615
|
+
uri: params.uri,
|
|
616
|
+
payer: keypair.publicKey,
|
|
617
|
+
poolCreator: keypair.publicKey,
|
|
618
|
+
config: configPk,
|
|
619
|
+
baseMint: baseMintKeypair.publicKey,
|
|
620
|
+
};
|
|
621
|
+
const signatures = [];
|
|
622
|
+
if (params.buyAmountLamports) {
|
|
623
|
+
const result = await client.pool.createPoolWithFirstBuy({
|
|
624
|
+
createPoolParam,
|
|
625
|
+
firstBuyParam: {
|
|
626
|
+
buyer: keypair.publicKey,
|
|
627
|
+
buyAmount: new anchor_1.BN(params.buyAmountLamports),
|
|
628
|
+
minimumAmountOut: new anchor_1.BN(0),
|
|
629
|
+
referralTokenAccount: null,
|
|
630
|
+
},
|
|
631
|
+
});
|
|
632
|
+
const poolTx = result.createPoolTx;
|
|
633
|
+
poolTx.partialSign(baseMintKeypair);
|
|
634
|
+
signatures.push(await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, poolTx));
|
|
635
|
+
if (result.swapBuyTx) {
|
|
636
|
+
signatures.push(await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, result.swapBuyTx));
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
else {
|
|
640
|
+
const tx = await client.pool.createPool(createPoolParam);
|
|
641
|
+
tx.partialSign(baseMintKeypair);
|
|
642
|
+
signatures.push(await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx));
|
|
643
|
+
}
|
|
644
|
+
const configState = await client.state.getPoolConfig(configPk);
|
|
645
|
+
const quoteMint = configState.quoteMint;
|
|
646
|
+
const derivePool = sdk.deriveDbcPoolAddress;
|
|
647
|
+
let poolAddr = '';
|
|
648
|
+
if (derivePool) {
|
|
649
|
+
try {
|
|
650
|
+
const poolPda = derivePool(quoteMint, baseMintKeypair.publicKey, configPk);
|
|
651
|
+
poolAddr = poolPda.toBase58();
|
|
652
|
+
}
|
|
653
|
+
catch {
|
|
654
|
+
poolAddr = 'derived-after-confirm';
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return {
|
|
658
|
+
baseMint: baseMintKeypair.publicKey.toBase58(),
|
|
659
|
+
poolAddress: poolAddr,
|
|
660
|
+
signatures,
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Create pool with partner and creator first buys.
|
|
665
|
+
*/
|
|
666
|
+
async function createDbcPoolWithPartnerAndCreatorBuy(connection, keypair, params) {
|
|
667
|
+
const sdk = await getDbcSdk();
|
|
668
|
+
const client = await getDbcClient(connection);
|
|
669
|
+
const baseMintKeypair = web3_js_1.Keypair.generate();
|
|
670
|
+
const configPk = new web3_js_1.PublicKey(params.configAddress);
|
|
671
|
+
const result = await client.pool.createPoolWithPartnerAndCreatorFirstBuy({
|
|
672
|
+
createPoolParam: {
|
|
673
|
+
name: params.name,
|
|
674
|
+
symbol: params.symbol,
|
|
675
|
+
uri: params.uri,
|
|
676
|
+
payer: keypair.publicKey,
|
|
677
|
+
poolCreator: keypair.publicKey,
|
|
678
|
+
config: configPk,
|
|
679
|
+
baseMint: baseMintKeypair.publicKey,
|
|
680
|
+
},
|
|
681
|
+
partnerFirstBuyParam: params.partnerBuy ? {
|
|
682
|
+
partner: new web3_js_1.PublicKey(params.partnerBuy.wallet),
|
|
683
|
+
receiver: new web3_js_1.PublicKey(params.partnerBuy.receiver),
|
|
684
|
+
buyAmount: new anchor_1.BN(params.partnerBuy.amount),
|
|
685
|
+
minimumAmountOut: new anchor_1.BN(0),
|
|
686
|
+
referralTokenAccount: null,
|
|
687
|
+
} : undefined,
|
|
688
|
+
creatorFirstBuyParam: params.creatorBuy ? {
|
|
689
|
+
creator: new web3_js_1.PublicKey(params.creatorBuy.wallet),
|
|
690
|
+
receiver: new web3_js_1.PublicKey(params.creatorBuy.receiver),
|
|
691
|
+
buyAmount: new anchor_1.BN(params.creatorBuy.amount),
|
|
692
|
+
minimumAmountOut: new anchor_1.BN(0),
|
|
693
|
+
referralTokenAccount: null,
|
|
694
|
+
} : undefined,
|
|
695
|
+
});
|
|
696
|
+
const signatures = [];
|
|
697
|
+
const poolTx = result.createPoolTx;
|
|
698
|
+
poolTx.partialSign(baseMintKeypair);
|
|
699
|
+
signatures.push(await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, poolTx));
|
|
700
|
+
if (result.partnerSwapBuyTx) {
|
|
701
|
+
signatures.push(await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, result.partnerSwapBuyTx));
|
|
702
|
+
}
|
|
703
|
+
if (result.creatorSwapBuyTx) {
|
|
704
|
+
signatures.push(await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, result.creatorSwapBuyTx));
|
|
705
|
+
}
|
|
706
|
+
const configState = await client.state.getPoolConfig(configPk);
|
|
707
|
+
const quoteMint = configState.quoteMint;
|
|
708
|
+
const derivePool = sdk.deriveDbcPoolAddress;
|
|
709
|
+
let poolAddr = '';
|
|
710
|
+
if (derivePool) {
|
|
711
|
+
try {
|
|
712
|
+
const poolPda = derivePool(quoteMint, baseMintKeypair.publicKey, configPk);
|
|
713
|
+
poolAddr = poolPda.toBase58();
|
|
714
|
+
}
|
|
715
|
+
catch {
|
|
716
|
+
poolAddr = 'derived-after-confirm';
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
return {
|
|
720
|
+
baseMint: baseMintKeypair.publicKey.toBase58(),
|
|
721
|
+
poolAddress: poolAddr,
|
|
722
|
+
signatures,
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Swap V2 with ExactIn, PartialFill, or ExactOut modes.
|
|
727
|
+
*/
|
|
728
|
+
async function swapOnDbcPoolV2(connection, keypair, params) {
|
|
729
|
+
const sdk = await getDbcSdk();
|
|
730
|
+
const client = await getDbcClient(connection);
|
|
731
|
+
const SwapMode = sdk.SwapMode;
|
|
732
|
+
const pool = new web3_js_1.PublicKey(params.poolAddress);
|
|
733
|
+
let swap2Params;
|
|
734
|
+
const base = {
|
|
735
|
+
owner: keypair.publicKey,
|
|
736
|
+
pool,
|
|
737
|
+
swapBaseForQuote: params.swapBaseForQuote,
|
|
738
|
+
referralTokenAccount: null,
|
|
739
|
+
};
|
|
740
|
+
if (params.swapMode === 2 && SwapMode) {
|
|
741
|
+
swap2Params = {
|
|
742
|
+
...base,
|
|
743
|
+
swapMode: SwapMode.ExactOut,
|
|
744
|
+
amountOut: new anchor_1.BN(params.amountOut || '0'),
|
|
745
|
+
maximumAmountIn: new anchor_1.BN(params.maximumAmountIn || '18446744073709551615'),
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
else if (params.swapMode === 1 && SwapMode) {
|
|
749
|
+
swap2Params = {
|
|
750
|
+
...base,
|
|
751
|
+
swapMode: SwapMode.PartialFill,
|
|
752
|
+
amountIn: new anchor_1.BN(params.amountIn || '0'),
|
|
753
|
+
minimumAmountOut: new anchor_1.BN(params.minimumAmountOut || '0'),
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
else {
|
|
757
|
+
swap2Params = {
|
|
758
|
+
...base,
|
|
759
|
+
swapMode: SwapMode?.ExactIn ?? 0,
|
|
760
|
+
amountIn: new anchor_1.BN(params.amountIn || '0'),
|
|
761
|
+
minimumAmountOut: new anchor_1.BN(params.minimumAmountOut || '0'),
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
const tx = await client.pool.swap2(swap2Params);
|
|
765
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
766
|
+
return {
|
|
767
|
+
signature,
|
|
768
|
+
direction: params.swapBaseForQuote ? 'SELL (base->quote)' : 'BUY (quote->base)',
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Get swap quote V2 with ExactIn, PartialFill, or ExactOut modes.
|
|
773
|
+
*/
|
|
774
|
+
async function getDbcSwapQuoteV2(connection, params) {
|
|
775
|
+
const sdk = await getDbcSdk();
|
|
776
|
+
const client = await getDbcClient(connection);
|
|
777
|
+
const SwapMode = sdk.SwapMode;
|
|
778
|
+
const poolAddress = new web3_js_1.PublicKey(params.poolAddress);
|
|
779
|
+
const pool = await client.state.getPool(poolAddress);
|
|
780
|
+
const configPk = pool.config || pool.poolConfig;
|
|
781
|
+
const config = await client.state.getPoolConfig(configPk);
|
|
782
|
+
const getCurrentPointFn = sdk.getCurrentPoint;
|
|
783
|
+
const ActivationType = sdk.ActivationType;
|
|
784
|
+
let currentPoint = new anchor_1.BN(0);
|
|
785
|
+
if (getCurrentPointFn && ActivationType) {
|
|
786
|
+
try {
|
|
787
|
+
currentPoint = await getCurrentPointFn(connection, ActivationType.Timestamp);
|
|
788
|
+
}
|
|
789
|
+
catch { /* fallback */ }
|
|
790
|
+
}
|
|
791
|
+
let quoteParams;
|
|
792
|
+
const base = {
|
|
793
|
+
virtualPool: pool,
|
|
794
|
+
config,
|
|
795
|
+
swapBaseForQuote: params.swapBaseForQuote,
|
|
796
|
+
hasReferral: false,
|
|
797
|
+
eligibleForFirstSwapWithMinFee: false,
|
|
798
|
+
currentPoint,
|
|
799
|
+
};
|
|
800
|
+
if (params.swapMode === 2 && SwapMode) {
|
|
801
|
+
quoteParams = { ...base, swapMode: SwapMode.ExactOut, amountOut: new anchor_1.BN(params.amountOut || '0') };
|
|
802
|
+
}
|
|
803
|
+
else if (params.swapMode === 1 && SwapMode) {
|
|
804
|
+
quoteParams = { ...base, swapMode: SwapMode.PartialFill, amountIn: new anchor_1.BN(params.amountIn || '0') };
|
|
805
|
+
}
|
|
806
|
+
else {
|
|
807
|
+
quoteParams = { ...base, swapMode: SwapMode?.ExactIn ?? 0, amountIn: new anchor_1.BN(params.amountIn || '0') };
|
|
808
|
+
}
|
|
809
|
+
const result = client.pool.swapQuote2(quoteParams);
|
|
810
|
+
return {
|
|
811
|
+
amountIn: result.excludedFeeInputAmount?.toString() || params.amountIn || '0',
|
|
812
|
+
amountOut: result.outputAmount?.toString() || '0',
|
|
813
|
+
minimumAmountOut: result.minimumAmountOut?.toString(),
|
|
814
|
+
maximumAmountIn: result.maximumAmountIn?.toString(),
|
|
815
|
+
direction: params.swapBaseForQuote ? 'SELL (base->quote)' : 'BUY (quote->base)',
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
// ============================================
|
|
819
|
+
// Partner Service (additional methods)
|
|
820
|
+
// ============================================
|
|
821
|
+
/**
|
|
822
|
+
* Create partner metadata.
|
|
823
|
+
*/
|
|
824
|
+
async function createPartnerMetadata(connection, keypair, params) {
|
|
825
|
+
const client = await getDbcClient(connection);
|
|
826
|
+
const tx = await client.partner.createPartnerMetadata({
|
|
827
|
+
name: params.name,
|
|
828
|
+
website: params.website,
|
|
829
|
+
logo: params.logo,
|
|
830
|
+
feeClaimer: keypair.publicKey,
|
|
831
|
+
payer: keypair.publicKey,
|
|
832
|
+
});
|
|
833
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
834
|
+
return { signature };
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Partner withdraw surplus from a pool.
|
|
838
|
+
*/
|
|
839
|
+
async function partnerWithdrawSurplus(connection, keypair, poolAddress) {
|
|
840
|
+
const client = await getDbcClient(connection);
|
|
841
|
+
const tx = await client.partner.partnerWithdrawSurplus({
|
|
842
|
+
feeClaimer: keypair.publicKey,
|
|
843
|
+
virtualPool: new web3_js_1.PublicKey(poolAddress),
|
|
844
|
+
});
|
|
845
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
846
|
+
return { signature };
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Partner withdraw migration fee from a pool.
|
|
850
|
+
*/
|
|
851
|
+
async function partnerWithdrawMigrationFee(connection, keypair, poolAddress) {
|
|
852
|
+
const client = await getDbcClient(connection);
|
|
853
|
+
const tx = await client.partner.partnerWithdrawMigrationFee({
|
|
854
|
+
virtualPool: new web3_js_1.PublicKey(poolAddress),
|
|
855
|
+
sender: keypair.publicKey,
|
|
856
|
+
});
|
|
857
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
858
|
+
return { signature };
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* Claim partner pool creation fee.
|
|
862
|
+
*/
|
|
863
|
+
async function claimPartnerPoolCreationFee(connection, keypair, params) {
|
|
864
|
+
const client = await getDbcClient(connection);
|
|
865
|
+
const tx = await client.partner.claimPartnerPoolCreationFee({
|
|
866
|
+
virtualPool: new web3_js_1.PublicKey(params.poolAddress),
|
|
867
|
+
feeReceiver: new web3_js_1.PublicKey(params.feeReceiver),
|
|
868
|
+
});
|
|
869
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
870
|
+
return { signature };
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Claim partner trading fee V2 (non-SOL quote mint).
|
|
874
|
+
*/
|
|
875
|
+
async function claimDbcPartnerFeesV2(connection, keypair, params) {
|
|
876
|
+
const client = await getDbcClient(connection);
|
|
877
|
+
const u64Max = new anchor_1.BN('18446744073709551615');
|
|
878
|
+
const tx = await client.partner.claimPartnerTradingFee2({
|
|
879
|
+
feeClaimer: keypair.publicKey,
|
|
880
|
+
payer: keypair.publicKey,
|
|
881
|
+
pool: new web3_js_1.PublicKey(params.poolAddress),
|
|
882
|
+
maxBaseAmount: u64Max,
|
|
883
|
+
maxQuoteAmount: u64Max,
|
|
884
|
+
receiver: new web3_js_1.PublicKey(params.receiver),
|
|
885
|
+
});
|
|
886
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
887
|
+
return { signature };
|
|
888
|
+
}
|
|
889
|
+
// ============================================
|
|
890
|
+
// Creator Service (additional methods)
|
|
891
|
+
// ============================================
|
|
892
|
+
/**
|
|
893
|
+
* Create pool metadata (name, website, logo).
|
|
894
|
+
*/
|
|
895
|
+
async function createPoolMetadata(connection, keypair, params) {
|
|
896
|
+
const client = await getDbcClient(connection);
|
|
897
|
+
const tx = await client.creator.createPoolMetadata({
|
|
898
|
+
virtualPool: new web3_js_1.PublicKey(params.poolAddress),
|
|
899
|
+
name: params.name,
|
|
900
|
+
website: params.website,
|
|
901
|
+
logo: params.logo,
|
|
902
|
+
creator: keypair.publicKey,
|
|
903
|
+
payer: keypair.publicKey,
|
|
904
|
+
});
|
|
905
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
906
|
+
return { signature };
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Creator withdraw surplus from a pool.
|
|
910
|
+
*/
|
|
911
|
+
async function creatorWithdrawSurplus(connection, keypair, poolAddress) {
|
|
912
|
+
const client = await getDbcClient(connection);
|
|
913
|
+
const tx = await client.creator.creatorWithdrawSurplus({
|
|
914
|
+
creator: keypair.publicKey,
|
|
915
|
+
virtualPool: new web3_js_1.PublicKey(poolAddress),
|
|
916
|
+
});
|
|
917
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
918
|
+
return { signature };
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Transfer pool creator to a new wallet.
|
|
922
|
+
*/
|
|
923
|
+
async function transferPoolCreator(connection, keypair, params) {
|
|
924
|
+
const client = await getDbcClient(connection);
|
|
925
|
+
const tx = await client.creator.transferPoolCreator({
|
|
926
|
+
virtualPool: new web3_js_1.PublicKey(params.poolAddress),
|
|
927
|
+
creator: keypair.publicKey,
|
|
928
|
+
newCreator: new web3_js_1.PublicKey(params.newCreator),
|
|
929
|
+
});
|
|
930
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
931
|
+
return { signature };
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Creator withdraw migration fee from a pool.
|
|
935
|
+
*/
|
|
936
|
+
async function creatorWithdrawMigrationFee(connection, keypair, poolAddress) {
|
|
937
|
+
const client = await getDbcClient(connection);
|
|
938
|
+
const tx = await client.creator.creatorWithdrawMigrationFee({
|
|
939
|
+
virtualPool: new web3_js_1.PublicKey(poolAddress),
|
|
940
|
+
sender: keypair.publicKey,
|
|
941
|
+
});
|
|
942
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
943
|
+
return { signature };
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* Claim creator trading fee V2 (non-SOL quote mint).
|
|
947
|
+
*/
|
|
948
|
+
async function claimDbcCreatorFeesV2(connection, keypair, params) {
|
|
949
|
+
const client = await getDbcClient(connection);
|
|
950
|
+
const u64Max = new anchor_1.BN('18446744073709551615');
|
|
951
|
+
const tx = await client.creator.claimCreatorTradingFee2({
|
|
952
|
+
creator: keypair.publicKey,
|
|
953
|
+
payer: keypair.publicKey,
|
|
954
|
+
pool: new web3_js_1.PublicKey(params.poolAddress),
|
|
955
|
+
maxBaseAmount: u64Max,
|
|
956
|
+
maxQuoteAmount: u64Max,
|
|
957
|
+
receiver: new web3_js_1.PublicKey(params.receiver),
|
|
958
|
+
});
|
|
959
|
+
const signature = await (0, wallet_js_1.signAndSendTransaction)(connection, keypair, tx);
|
|
960
|
+
return { signature };
|
|
961
|
+
}
|
|
962
|
+
// ============================================
|
|
963
|
+
// State Service (additional query methods)
|
|
964
|
+
// ============================================
|
|
965
|
+
/**
|
|
966
|
+
* Get all DBC pool configs.
|
|
967
|
+
*/
|
|
968
|
+
async function getDbcPoolConfigs(connection) {
|
|
969
|
+
const client = await getDbcClient(connection);
|
|
970
|
+
const configs = await client.state.getPoolConfigs();
|
|
971
|
+
return configs.map((c) => ({
|
|
972
|
+
address: c.publicKey.toBase58(),
|
|
973
|
+
config: c.account,
|
|
974
|
+
}));
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Get pool configs by owner.
|
|
978
|
+
*/
|
|
979
|
+
async function getDbcPoolConfigsByOwner(connection, owner) {
|
|
980
|
+
const client = await getDbcClient(connection);
|
|
981
|
+
const configs = await client.state.getPoolConfigsByOwner(owner);
|
|
982
|
+
return configs.map((c) => ({
|
|
983
|
+
address: c.publicKey.toBase58(),
|
|
984
|
+
config: c.account,
|
|
985
|
+
}));
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Get all DBC pools.
|
|
989
|
+
*/
|
|
990
|
+
async function getDbcPools(connection) {
|
|
991
|
+
const client = await getDbcClient(connection);
|
|
992
|
+
const pools = await client.state.getPools();
|
|
993
|
+
return pools.map((p) => ({
|
|
994
|
+
address: p.publicKey.toBase58(),
|
|
995
|
+
pool: p.account,
|
|
996
|
+
}));
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Get pools by config address.
|
|
1000
|
+
*/
|
|
1001
|
+
async function getDbcPoolsByConfig(connection, configAddress) {
|
|
1002
|
+
const client = await getDbcClient(connection);
|
|
1003
|
+
const pools = await client.state.getPoolsByConfig(configAddress);
|
|
1004
|
+
return pools.map((p) => ({
|
|
1005
|
+
address: p.publicKey.toBase58(),
|
|
1006
|
+
pool: p.account,
|
|
1007
|
+
}));
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Get pools by creator address.
|
|
1011
|
+
*/
|
|
1012
|
+
async function getDbcPoolsByCreator(connection, creator) {
|
|
1013
|
+
const client = await getDbcClient(connection);
|
|
1014
|
+
const pools = await client.state.getPoolsByCreator(creator);
|
|
1015
|
+
return pools.map((p) => ({
|
|
1016
|
+
address: p.publicKey.toBase58(),
|
|
1017
|
+
pool: p.account,
|
|
1018
|
+
}));
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Get pool metadata.
|
|
1022
|
+
*/
|
|
1023
|
+
async function getDbcPoolMetadata(connection, poolAddress) {
|
|
1024
|
+
const client = await getDbcClient(connection);
|
|
1025
|
+
return await client.state.getPoolMetadata(poolAddress);
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* Get partner metadata.
|
|
1029
|
+
*/
|
|
1030
|
+
async function getDbcPartnerMetadata(connection, partnerAddress) {
|
|
1031
|
+
const client = await getDbcClient(connection);
|
|
1032
|
+
return await client.state.getPartnerMetadata(partnerAddress);
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Get DAMM V1 lock escrow details.
|
|
1036
|
+
*/
|
|
1037
|
+
async function getDbcLockEscrow(connection, lockEscrowAddress) {
|
|
1038
|
+
const client = await getDbcClient(connection);
|
|
1039
|
+
return await client.state.getDammV1LockEscrow(lockEscrowAddress);
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Get detailed fee breakdown for a pool.
|
|
1043
|
+
*/
|
|
1044
|
+
async function getDbcPoolFeeBreakdown(connection, poolAddress) {
|
|
1045
|
+
const client = await getDbcClient(connection);
|
|
1046
|
+
const breakdown = await client.state.getPoolFeeBreakdown(poolAddress);
|
|
1047
|
+
return {
|
|
1048
|
+
creator: {
|
|
1049
|
+
unclaimedBase: breakdown.creator.unclaimedBaseFee.toString(),
|
|
1050
|
+
unclaimedQuote: breakdown.creator.unclaimedQuoteFee.toString(),
|
|
1051
|
+
claimedBase: breakdown.creator.claimedBaseFee.toString(),
|
|
1052
|
+
claimedQuote: breakdown.creator.claimedQuoteFee.toString(),
|
|
1053
|
+
totalBase: breakdown.creator.totalBaseFee.toString(),
|
|
1054
|
+
totalQuote: breakdown.creator.totalQuoteFee.toString(),
|
|
1055
|
+
},
|
|
1056
|
+
partner: {
|
|
1057
|
+
unclaimedBase: breakdown.partner.unclaimedBaseFee.toString(),
|
|
1058
|
+
unclaimedQuote: breakdown.partner.unclaimedQuoteFee.toString(),
|
|
1059
|
+
claimedBase: breakdown.partner.claimedBaseFee.toString(),
|
|
1060
|
+
claimedQuote: breakdown.partner.claimedQuoteFee.toString(),
|
|
1061
|
+
totalBase: breakdown.partner.totalBaseFee.toString(),
|
|
1062
|
+
totalQuote: breakdown.partner.totalQuoteFee.toString(),
|
|
1063
|
+
},
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* Get all fees for pools by config.
|
|
1068
|
+
*/
|
|
1069
|
+
async function getDbcPoolsFeesByConfig(connection, configAddress) {
|
|
1070
|
+
const client = await getDbcClient(connection);
|
|
1071
|
+
const fees = await client.state.getPoolsFeesByConfig(configAddress);
|
|
1072
|
+
return fees.map((f) => ({
|
|
1073
|
+
poolAddress: f.poolAddress.toBase58(),
|
|
1074
|
+
partnerBase: f.partnerBaseFee.toString(),
|
|
1075
|
+
partnerQuote: f.partnerQuoteFee.toString(),
|
|
1076
|
+
creatorBase: f.creatorBaseFee.toString(),
|
|
1077
|
+
creatorQuote: f.creatorQuoteFee.toString(),
|
|
1078
|
+
totalBase: f.totalTradingBaseFee.toString(),
|
|
1079
|
+
totalQuote: f.totalTradingQuoteFee.toString(),
|
|
1080
|
+
}));
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Get all fees for pools by creator.
|
|
1084
|
+
*/
|
|
1085
|
+
async function getDbcPoolsFeesByCreator(connection, creator) {
|
|
1086
|
+
const client = await getDbcClient(connection);
|
|
1087
|
+
const fees = await client.state.getPoolsFeesByCreator(creator);
|
|
1088
|
+
return fees.map((f) => ({
|
|
1089
|
+
poolAddress: f.poolAddress.toBase58(),
|
|
1090
|
+
partnerBase: f.partnerBaseFee.toString(),
|
|
1091
|
+
partnerQuote: f.partnerQuoteFee.toString(),
|
|
1092
|
+
creatorBase: f.creatorBaseFee.toString(),
|
|
1093
|
+
creatorQuote: f.creatorQuoteFee.toString(),
|
|
1094
|
+
totalBase: f.totalTradingBaseFee.toString(),
|
|
1095
|
+
totalQuote: f.totalTradingQuoteFee.toString(),
|
|
1096
|
+
}));
|
|
1097
|
+
}
|
|
1098
|
+
/**
|
|
1099
|
+
* Get DAMM V1 migration metadata.
|
|
1100
|
+
*/
|
|
1101
|
+
async function getDbcMigrationMetadata(connection, poolAddress) {
|
|
1102
|
+
const client = await getDbcClient(connection);
|
|
1103
|
+
return await client.state.getDammV1MigrationMetadata(new web3_js_1.PublicKey(poolAddress));
|
|
1104
|
+
}
|
|
1105
|
+
//# sourceMappingURL=meteora-dbc.js.map
|