keyring-agent-core 0.2.0 → 0.2.2
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/dist/index.d.ts +6692 -27
- package/dist/index.js +877 -70
- package/package.json +4 -3
- package/dist/agent/AgentCore.d.ts +0 -256
- package/dist/agent/AgentCore.d.ts.map +0 -1
- package/dist/agent/AgentCore.js +0 -1093
- package/dist/agent/AgentCore.js.map +0 -1
- package/dist/agent/QueryRewriter.d.ts +0 -84
- package/dist/agent/QueryRewriter.d.ts.map +0 -1
- package/dist/agent/QueryRewriter.js +0 -306
- package/dist/agent/QueryRewriter.js.map +0 -1
- package/dist/agent/Router.d.ts +0 -33
- package/dist/agent/Router.d.ts.map +0 -1
- package/dist/agent/Router.js +0 -229
- package/dist/agent/Router.js.map +0 -1
- package/dist/agent/Subagent.d.ts +0 -80
- package/dist/agent/Subagent.d.ts.map +0 -1
- package/dist/agent/Subagent.js +0 -272
- package/dist/agent/Subagent.js.map +0 -1
- package/dist/agent/Synthesizer.d.ts +0 -11
- package/dist/agent/Synthesizer.d.ts.map +0 -1
- package/dist/agent/Synthesizer.js +0 -86
- package/dist/agent/Synthesizer.js.map +0 -1
- package/dist/agent/chatGraph.d.ts +0 -364
- package/dist/agent/chatGraph.d.ts.map +0 -1
- package/dist/agent/chatGraph.js +0 -184
- package/dist/agent/chatGraph.js.map +0 -1
- package/dist/agent/index.d.ts +0 -10
- package/dist/agent/index.d.ts.map +0 -1
- package/dist/agent/index.js +0 -24
- package/dist/agent/index.js.map +0 -1
- package/dist/agent/subagents/AiAgent.d.ts +0 -6
- package/dist/agent/subagents/AiAgent.d.ts.map +0 -1
- package/dist/agent/subagents/AiAgent.js +0 -52
- package/dist/agent/subagents/AiAgent.js.map +0 -1
- package/dist/agent/subagents/NftAgent.d.ts +0 -6
- package/dist/agent/subagents/NftAgent.d.ts.map +0 -1
- package/dist/agent/subagents/NftAgent.js +0 -79
- package/dist/agent/subagents/NftAgent.js.map +0 -1
- package/dist/agent/subagents/PoolAgent.d.ts +0 -6
- package/dist/agent/subagents/PoolAgent.d.ts.map +0 -1
- package/dist/agent/subagents/PoolAgent.js +0 -184
- package/dist/agent/subagents/PoolAgent.js.map +0 -1
- package/dist/agent/subagents/PoolSubgraphAgent.d.ts +0 -6
- package/dist/agent/subagents/PoolSubgraphAgent.d.ts.map +0 -1
- package/dist/agent/subagents/PoolSubgraphAgent.js +0 -117
- package/dist/agent/subagents/PoolSubgraphAgent.js.map +0 -1
- package/dist/agent/subagents/TokenAgent.d.ts +0 -6
- package/dist/agent/subagents/TokenAgent.d.ts.map +0 -1
- package/dist/agent/subagents/TokenAgent.js +0 -76
- package/dist/agent/subagents/TokenAgent.js.map +0 -1
- package/dist/agent/subagents/WalletActionAgent.d.ts +0 -6
- package/dist/agent/subagents/WalletActionAgent.d.ts.map +0 -1
- package/dist/agent/subagents/WalletActionAgent.js +0 -55
- package/dist/agent/subagents/WalletActionAgent.js.map +0 -1
- package/dist/agent/subagents/WalletAgent.d.ts +0 -6
- package/dist/agent/subagents/WalletAgent.d.ts.map +0 -1
- package/dist/agent/subagents/WalletAgent.js +0 -93
- package/dist/agent/subagents/WalletAgent.js.map +0 -1
- package/dist/agent/subagents/index.d.ts +0 -34
- package/dist/agent/subagents/index.d.ts.map +0 -1
- package/dist/agent/subagents/index.js +0 -69
- package/dist/agent/subagents/index.js.map +0 -1
- package/dist/constants/abi.d.ts +0 -551
- package/dist/constants/abi.d.ts.map +0 -1
- package/dist/constants/abi.js +0 -690
- package/dist/constants/abi.js.map +0 -1
- package/dist/functions/pool.d.ts +0 -25
- package/dist/functions/pool.d.ts.map +0 -1
- package/dist/functions/pool.js +0 -151
- package/dist/functions/pool.js.map +0 -1
- package/dist/functions/web3.d.ts +0 -31
- package/dist/functions/web3.d.ts.map +0 -1
- package/dist/functions/web3.js +0 -232
- package/dist/functions/web3.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/llm/GeminiProvider.d.ts +0 -16
- package/dist/llm/GeminiProvider.d.ts.map +0 -1
- package/dist/llm/GeminiProvider.js +0 -329
- package/dist/llm/GeminiProvider.js.map +0 -1
- package/dist/llm/index.d.ts +0 -2
- package/dist/llm/index.d.ts.map +0 -1
- package/dist/llm/index.js +0 -6
- package/dist/llm/index.js.map +0 -1
- package/dist/memory/ChatHistory.d.ts +0 -83
- package/dist/memory/ChatHistory.d.ts.map +0 -1
- package/dist/memory/ChatHistory.js +0 -143
- package/dist/memory/ChatHistory.js.map +0 -1
- package/dist/memory/KnowledgeBase.d.ts +0 -38
- package/dist/memory/KnowledgeBase.d.ts.map +0 -1
- package/dist/memory/KnowledgeBase.js +0 -139
- package/dist/memory/KnowledgeBase.js.map +0 -1
- package/dist/memory/Summarizer.d.ts +0 -12
- package/dist/memory/Summarizer.d.ts.map +0 -1
- package/dist/memory/Summarizer.js +0 -39
- package/dist/memory/Summarizer.js.map +0 -1
- package/dist/memory/UpstashKnowledgeBase.d.ts +0 -124
- package/dist/memory/UpstashKnowledgeBase.d.ts.map +0 -1
- package/dist/memory/UpstashKnowledgeBase.js +0 -152
- package/dist/memory/UpstashKnowledgeBase.js.map +0 -1
- package/dist/memory/historyUtils.d.ts +0 -58
- package/dist/memory/historyUtils.d.ts.map +0 -1
- package/dist/memory/historyUtils.js +0 -190
- package/dist/memory/historyUtils.js.map +0 -1
- package/dist/memory/index.d.ts +0 -7
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js +0 -12
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/ingestKnowledgeBase.d.ts +0 -17
- package/dist/memory/ingestKnowledgeBase.d.ts.map +0 -1
- package/dist/memory/ingestKnowledgeBase.js +0 -35
- package/dist/memory/ingestKnowledgeBase.js.map +0 -1
- package/dist/services/MoralisService.d.ts +0 -1328
- package/dist/services/MoralisService.d.ts.map +0 -1
- package/dist/services/MoralisService.js +0 -1239
- package/dist/services/MoralisService.js.map +0 -1
- package/dist/services/PantographService.d.ts +0 -98
- package/dist/services/PantographService.d.ts.map +0 -1
- package/dist/services/PantographService.js +0 -451
- package/dist/services/PantographService.js.map +0 -1
- package/dist/services/PoolService.d.ts +0 -238
- package/dist/services/PoolService.d.ts.map +0 -1
- package/dist/services/PoolService.js +0 -485
- package/dist/services/PoolService.js.map +0 -1
- package/dist/services/UniswapService.d.ts +0 -289
- package/dist/services/UniswapService.d.ts.map +0 -1
- package/dist/services/UniswapService.js +0 -585
- package/dist/services/UniswapService.js.map +0 -1
- package/dist/services/UniswapSubgraphService.d.ts +0 -144
- package/dist/services/UniswapSubgraphService.d.ts.map +0 -1
- package/dist/services/UniswapSubgraphService.js +0 -606
- package/dist/services/UniswapSubgraphService.js.map +0 -1
- package/dist/services/rpc.d.ts +0 -35
- package/dist/services/rpc.d.ts.map +0 -1
- package/dist/services/rpc.js +0 -110
- package/dist/services/rpc.js.map +0 -1
- package/dist/services/swap/BaseSwapService.d.ts +0 -17
- package/dist/services/swap/BaseSwapService.d.ts.map +0 -1
- package/dist/services/swap/BaseSwapService.js +0 -19
- package/dist/services/swap/BaseSwapService.js.map +0 -1
- package/dist/services/swap/DebridgeAdapter.d.ts +0 -37
- package/dist/services/swap/DebridgeAdapter.d.ts.map +0 -1
- package/dist/services/swap/DebridgeAdapter.js +0 -243
- package/dist/services/swap/DebridgeAdapter.js.map +0 -1
- package/dist/services/swap/RelayAdapter.d.ts +0 -19
- package/dist/services/swap/RelayAdapter.d.ts.map +0 -1
- package/dist/services/swap/RelayAdapter.js +0 -189
- package/dist/services/swap/RelayAdapter.js.map +0 -1
- package/dist/services/swap/SwapServiceFactory.d.ts +0 -25
- package/dist/services/swap/SwapServiceFactory.d.ts.map +0 -1
- package/dist/services/swap/SwapServiceFactory.js +0 -79
- package/dist/services/swap/SwapServiceFactory.js.map +0 -1
- package/dist/services/swap/addresses.d.ts +0 -3
- package/dist/services/swap/addresses.d.ts.map +0 -1
- package/dist/services/swap/addresses.js +0 -68
- package/dist/services/swap/addresses.js.map +0 -1
- package/dist/services/swap/affiliate.d.ts +0 -17
- package/dist/services/swap/affiliate.d.ts.map +0 -1
- package/dist/services/swap/affiliate.js +0 -126
- package/dist/services/swap/affiliate.js.map +0 -1
- package/dist/services/swap/config.d.ts +0 -9
- package/dist/services/swap/config.d.ts.map +0 -1
- package/dist/services/swap/config.js +0 -19
- package/dist/services/swap/config.js.map +0 -1
- package/dist/services/swap/index.d.ts +0 -10
- package/dist/services/swap/index.d.ts.map +0 -1
- package/dist/services/swap/index.js +0 -22
- package/dist/services/swap/index.js.map +0 -1
- package/dist/services/swap/types.d.ts +0 -89
- package/dist/services/swap/types.d.ts.map +0 -1
- package/dist/services/swap/types.js +0 -6
- package/dist/services/swap/types.js.map +0 -1
- package/dist/tools/BaseTool.d.ts +0 -15
- package/dist/tools/BaseTool.d.ts.map +0 -1
- package/dist/tools/BaseTool.js +0 -35
- package/dist/tools/BaseTool.js.map +0 -1
- package/dist/tools/ToolRegistry.d.ts +0 -27
- package/dist/tools/ToolRegistry.d.ts.map +0 -1
- package/dist/tools/ToolRegistry.js +0 -80
- package/dist/tools/ToolRegistry.js.map +0 -1
- package/dist/tools/builtin/ai/GeminiSearchAiTool.d.ts +0 -36
- package/dist/tools/builtin/ai/GeminiSearchAiTool.d.ts.map +0 -1
- package/dist/tools/builtin/ai/GeminiSearchAiTool.js +0 -91
- package/dist/tools/builtin/ai/GeminiSearchAiTool.js.map +0 -1
- package/dist/tools/builtin/ai/index.d.ts +0 -3
- package/dist/tools/builtin/ai/index.d.ts.map +0 -1
- package/dist/tools/builtin/ai/index.js +0 -6
- package/dist/tools/builtin/ai/index.js.map +0 -1
- package/dist/tools/builtin/index.d.ts +0 -8
- package/dist/tools/builtin/index.d.ts.map +0 -1
- package/dist/tools/builtin/index.js +0 -24
- package/dist/tools/builtin/index.js.map +0 -1
- package/dist/tools/builtin/nft/BaseNftMessageTool.d.ts +0 -35
- package/dist/tools/builtin/nft/BaseNftMessageTool.d.ts.map +0 -1
- package/dist/tools/builtin/nft/BaseNftMessageTool.js +0 -45
- package/dist/tools/builtin/nft/BaseNftMessageTool.js.map +0 -1
- package/dist/tools/builtin/nft/NFTContractInfoTool.d.ts +0 -15
- package/dist/tools/builtin/nft/NFTContractInfoTool.d.ts.map +0 -1
- package/dist/tools/builtin/nft/NFTContractInfoTool.js +0 -19
- package/dist/tools/builtin/nft/NFTContractInfoTool.js.map +0 -1
- package/dist/tools/builtin/nft/NFTMetadataTool.d.ts +0 -15
- package/dist/tools/builtin/nft/NFTMetadataTool.d.ts.map +0 -1
- package/dist/tools/builtin/nft/NFTMetadataTool.js +0 -20
- package/dist/tools/builtin/nft/NFTMetadataTool.js.map +0 -1
- package/dist/tools/builtin/nft/SendNftTool.d.ts +0 -14
- package/dist/tools/builtin/nft/SendNftTool.d.ts.map +0 -1
- package/dist/tools/builtin/nft/SendNftTool.js +0 -20
- package/dist/tools/builtin/nft/SendNftTool.js.map +0 -1
- package/dist/tools/builtin/nft/WalletNFTsTool.d.ts +0 -15
- package/dist/tools/builtin/nft/WalletNFTsTool.d.ts.map +0 -1
- package/dist/tools/builtin/nft/WalletNFTsTool.js +0 -20
- package/dist/tools/builtin/nft/WalletNFTsTool.js.map +0 -1
- package/dist/tools/builtin/nft/index.d.ts +0 -7
- package/dist/tools/builtin/nft/index.d.ts.map +0 -1
- package/dist/tools/builtin/nft/index.js +0 -10
- package/dist/tools/builtin/nft/index.js.map +0 -1
- package/dist/tools/builtin/pool/EstimatePoolYieldTool.d.ts +0 -124
- package/dist/tools/builtin/pool/EstimatePoolYieldTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool/EstimatePoolYieldTool.js +0 -236
- package/dist/tools/builtin/pool/EstimatePoolYieldTool.js.map +0 -1
- package/dist/tools/builtin/pool/OpenAddLiquidityFormTool.d.ts +0 -128
- package/dist/tools/builtin/pool/OpenAddLiquidityFormTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool/OpenAddLiquidityFormTool.js +0 -520
- package/dist/tools/builtin/pool/OpenAddLiquidityFormTool.js.map +0 -1
- package/dist/tools/builtin/pool/PoolByAddressTool.d.ts +0 -127
- package/dist/tools/builtin/pool/PoolByAddressTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool/PoolByAddressTool.js +0 -238
- package/dist/tools/builtin/pool/PoolByAddressTool.js.map +0 -1
- package/dist/tools/builtin/pool/PoolDetailTool.d.ts +0 -127
- package/dist/tools/builtin/pool/PoolDetailTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool/PoolDetailTool.js +0 -273
- package/dist/tools/builtin/pool/PoolDetailTool.js.map +0 -1
- package/dist/tools/builtin/pool/PoolSearchTool.d.ts +0 -50
- package/dist/tools/builtin/pool/PoolSearchTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool/PoolSearchTool.js +0 -160
- package/dist/tools/builtin/pool/PoolSearchTool.js.map +0 -1
- package/dist/tools/builtin/pool/PreviewAddLiquidityTool.d.ts +0 -124
- package/dist/tools/builtin/pool/PreviewAddLiquidityTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool/PreviewAddLiquidityTool.js +0 -382
- package/dist/tools/builtin/pool/PreviewAddLiquidityTool.js.map +0 -1
- package/dist/tools/builtin/pool/TopPoolsTool.d.ts +0 -68
- package/dist/tools/builtin/pool/TopPoolsTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool/TopPoolsTool.js +0 -159
- package/dist/tools/builtin/pool/TopPoolsTool.js.map +0 -1
- package/dist/tools/builtin/pool/index.d.ts +0 -15
- package/dist/tools/builtin/pool/index.d.ts.map +0 -1
- package/dist/tools/builtin/pool/index.js +0 -18
- package/dist/tools/builtin/pool/index.js.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphCoinPoolPairsTool.d.ts +0 -54
- package/dist/tools/builtin/pool-subgraph/SubgraphCoinPoolPairsTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphCoinPoolPairsTool.js +0 -98
- package/dist/tools/builtin/pool-subgraph/SubgraphCoinPoolPairsTool.js.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolByAddressTool.d.ts +0 -63
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolByAddressTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolByAddressTool.js +0 -82
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolByAddressTool.js.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolByPositionIdTool.d.ts +0 -79
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolByPositionIdTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolByPositionIdTool.js +0 -97
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolByPositionIdTool.js.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolSearchTool.d.ts +0 -77
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolSearchTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolSearchTool.js +0 -190
- package/dist/tools/builtin/pool-subgraph/SubgraphPoolSearchTool.js.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphPositionDetailTool.d.ts +0 -107
- package/dist/tools/builtin/pool-subgraph/SubgraphPositionDetailTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphPositionDetailTool.js +0 -92
- package/dist/tools/builtin/pool-subgraph/SubgraphPositionDetailTool.js.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphTrendingPoolsTool.d.ts +0 -56
- package/dist/tools/builtin/pool-subgraph/SubgraphTrendingPoolsTool.d.ts.map +0 -1
- package/dist/tools/builtin/pool-subgraph/SubgraphTrendingPoolsTool.js +0 -94
- package/dist/tools/builtin/pool-subgraph/SubgraphTrendingPoolsTool.js.map +0 -1
- package/dist/tools/builtin/pool-subgraph/index.d.ts +0 -13
- package/dist/tools/builtin/pool-subgraph/index.d.ts.map +0 -1
- package/dist/tools/builtin/pool-subgraph/index.js +0 -18
- package/dist/tools/builtin/pool-subgraph/index.js.map +0 -1
- package/dist/tools/builtin/token/TokenAnalyticsTool.d.ts +0 -71
- package/dist/tools/builtin/token/TokenAnalyticsTool.d.ts.map +0 -1
- package/dist/tools/builtin/token/TokenAnalyticsTool.js +0 -147
- package/dist/tools/builtin/token/TokenAnalyticsTool.js.map +0 -1
- package/dist/tools/builtin/token/TokenHoldersTool.d.ts +0 -81
- package/dist/tools/builtin/token/TokenHoldersTool.d.ts.map +0 -1
- package/dist/tools/builtin/token/TokenHoldersTool.js +0 -139
- package/dist/tools/builtin/token/TokenHoldersTool.js.map +0 -1
- package/dist/tools/builtin/token/TokenInfoTool.d.ts +0 -40
- package/dist/tools/builtin/token/TokenInfoTool.d.ts.map +0 -1
- package/dist/tools/builtin/token/TokenInfoTool.js +0 -221
- package/dist/tools/builtin/token/TokenInfoTool.js.map +0 -1
- package/dist/tools/builtin/token/TokenScoreTool.d.ts +0 -63
- package/dist/tools/builtin/token/TokenScoreTool.d.ts.map +0 -1
- package/dist/tools/builtin/token/TokenScoreTool.js +0 -148
- package/dist/tools/builtin/token/TokenScoreTool.js.map +0 -1
- package/dist/tools/builtin/token/TopGainersTool.d.ts +0 -37
- package/dist/tools/builtin/token/TopGainersTool.d.ts.map +0 -1
- package/dist/tools/builtin/token/TopGainersTool.js +0 -100
- package/dist/tools/builtin/token/TopGainersTool.js.map +0 -1
- package/dist/tools/builtin/token/TopLosersTool.d.ts +0 -66
- package/dist/tools/builtin/token/TopLosersTool.d.ts.map +0 -1
- package/dist/tools/builtin/token/TopLosersTool.js +0 -129
- package/dist/tools/builtin/token/TopLosersTool.js.map +0 -1
- package/dist/tools/builtin/token/TrendingTokensTool.d.ts +0 -39
- package/dist/tools/builtin/token/TrendingTokensTool.d.ts.map +0 -1
- package/dist/tools/builtin/token/TrendingTokensTool.js +0 -83
- package/dist/tools/builtin/token/TrendingTokensTool.js.map +0 -1
- package/dist/tools/builtin/token/index.d.ts +0 -13
- package/dist/tools/builtin/token/index.d.ts.map +0 -1
- package/dist/tools/builtin/token/index.js +0 -16
- package/dist/tools/builtin/token/index.js.map +0 -1
- package/dist/tools/builtin/wallet/TransactionByHashTool.d.ts +0 -70
- package/dist/tools/builtin/wallet/TransactionByHashTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/TransactionByHashTool.js +0 -111
- package/dist/tools/builtin/wallet/TransactionByHashTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletApprovalsTool.d.ts +0 -107
- package/dist/tools/builtin/wallet/WalletApprovalsTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletApprovalsTool.js +0 -164
- package/dist/tools/builtin/wallet/WalletApprovalsTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletDefiPositionsTool.d.ts +0 -61
- package/dist/tools/builtin/wallet/WalletDefiPositionsTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletDefiPositionsTool.js +0 -100
- package/dist/tools/builtin/wallet/WalletDefiPositionsTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletDefiProtocolPositionsTool.d.ts +0 -68
- package/dist/tools/builtin/wallet/WalletDefiProtocolPositionsTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletDefiProtocolPositionsTool.js +0 -115
- package/dist/tools/builtin/wallet/WalletDefiProtocolPositionsTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletDefiSummaryTool.d.ts +0 -50
- package/dist/tools/builtin/wallet/WalletDefiSummaryTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletDefiSummaryTool.js +0 -80
- package/dist/tools/builtin/wallet/WalletDefiSummaryTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletHistoryTool.d.ts +0 -31
- package/dist/tools/builtin/wallet/WalletHistoryTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletHistoryTool.js +0 -154
- package/dist/tools/builtin/wallet/WalletHistoryTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletNetWorthTool.d.ts +0 -44
- package/dist/tools/builtin/wallet/WalletNetWorthTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletNetWorthTool.js +0 -122
- package/dist/tools/builtin/wallet/WalletNetWorthTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletNftTransfersTool.d.ts +0 -86
- package/dist/tools/builtin/wallet/WalletNftTransfersTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletNftTransfersTool.js +0 -265
- package/dist/tools/builtin/wallet/WalletNftTransfersTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletPnlSummaryTool.d.ts +0 -43
- package/dist/tools/builtin/wallet/WalletPnlSummaryTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletPnlSummaryTool.js +0 -89
- package/dist/tools/builtin/wallet/WalletPnlSummaryTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletPnlTool.d.ts +0 -43
- package/dist/tools/builtin/wallet/WalletPnlTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletPnlTool.js +0 -175
- package/dist/tools/builtin/wallet/WalletPnlTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletTokenBalancesTool.d.ts +0 -35
- package/dist/tools/builtin/wallet/WalletTokenBalancesTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletTokenBalancesTool.js +0 -68
- package/dist/tools/builtin/wallet/WalletTokenBalancesTool.js.map +0 -1
- package/dist/tools/builtin/wallet/WalletTokenTransfersTool.d.ts +0 -109
- package/dist/tools/builtin/wallet/WalletTokenTransfersTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/WalletTokenTransfersTool.js +0 -354
- package/dist/tools/builtin/wallet/WalletTokenTransfersTool.js.map +0 -1
- package/dist/tools/builtin/wallet/index.d.ts +0 -28
- package/dist/tools/builtin/wallet/index.d.ts.map +0 -1
- package/dist/tools/builtin/wallet/index.js +0 -32
- package/dist/tools/builtin/wallet/index.js.map +0 -1
- package/dist/tools/builtin/wallet-action/ApproveTokenTool.d.ts +0 -25
- package/dist/tools/builtin/wallet-action/ApproveTokenTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/ApproveTokenTool.js +0 -98
- package/dist/tools/builtin/wallet-action/ApproveTokenTool.js.map +0 -1
- package/dist/tools/builtin/wallet-action/BaseWalletActionTool.d.ts +0 -211
- package/dist/tools/builtin/wallet-action/BaseWalletActionTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/BaseWalletActionTool.js +0 -499
- package/dist/tools/builtin/wallet-action/BaseWalletActionTool.js.map +0 -1
- package/dist/tools/builtin/wallet-action/BuyTokenTool.d.ts +0 -240
- package/dist/tools/builtin/wallet-action/BuyTokenTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/BuyTokenTool.js +0 -1257
- package/dist/tools/builtin/wallet-action/BuyTokenTool.js.map +0 -1
- package/dist/tools/builtin/wallet-action/SendNativeTool.d.ts +0 -41
- package/dist/tools/builtin/wallet-action/SendNativeTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/SendNativeTool.js +0 -127
- package/dist/tools/builtin/wallet-action/SendNativeTool.js.map +0 -1
- package/dist/tools/builtin/wallet-action/SendTokenTool.d.ts +0 -63
- package/dist/tools/builtin/wallet-action/SendTokenTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/SendTokenTool.js +0 -294
- package/dist/tools/builtin/wallet-action/SendTokenTool.js.map +0 -1
- package/dist/tools/builtin/wallet-action/SwapTokenTool.d.ts +0 -247
- package/dist/tools/builtin/wallet-action/SwapTokenTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/SwapTokenTool.js +0 -1258
- package/dist/tools/builtin/wallet-action/SwapTokenTool.js.map +0 -1
- package/dist/tools/builtin/wallet-action/UnwrapNativeTool.d.ts +0 -20
- package/dist/tools/builtin/wallet-action/UnwrapNativeTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/UnwrapNativeTool.js +0 -36
- package/dist/tools/builtin/wallet-action/UnwrapNativeTool.js.map +0 -1
- package/dist/tools/builtin/wallet-action/WrapNativeTool.d.ts +0 -23
- package/dist/tools/builtin/wallet-action/WrapNativeTool.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/WrapNativeTool.js +0 -54
- package/dist/tools/builtin/wallet-action/WrapNativeTool.js.map +0 -1
- package/dist/tools/builtin/wallet-action/amountSpec.d.ts +0 -62
- package/dist/tools/builtin/wallet-action/amountSpec.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/amountSpec.js +0 -93
- package/dist/tools/builtin/wallet-action/amountSpec.js.map +0 -1
- package/dist/tools/builtin/wallet-action/gasReserve.d.ts +0 -42
- package/dist/tools/builtin/wallet-action/gasReserve.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/gasReserve.js +0 -103
- package/dist/tools/builtin/wallet-action/gasReserve.js.map +0 -1
- package/dist/tools/builtin/wallet-action/index.d.ts +0 -9
- package/dist/tools/builtin/wallet-action/index.d.ts.map +0 -1
- package/dist/tools/builtin/wallet-action/index.js +0 -20
- package/dist/tools/builtin/wallet-action/index.js.map +0 -1
- package/dist/tools/chainResolver.d.ts +0 -98
- package/dist/tools/chainResolver.d.ts.map +0 -1
- package/dist/tools/chainResolver.js +0 -302
- package/dist/tools/chainResolver.js.map +0 -1
- package/dist/tools/index.d.ts +0 -4
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -23
- package/dist/tools/index.js.map +0 -1
- package/dist/types/index.d.ts +0 -777
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -6
- package/dist/types/index.js.map +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseNftMessageTool, type NftMessageToolConfig } from './BaseNftMessageTool';
|
|
2
|
-
export type NFTMetadataToolConfig = NftMessageToolConfig;
|
|
3
|
-
/**
|
|
4
|
-
* Tool: get-nft-metadata
|
|
5
|
-
*
|
|
6
|
-
* Points the user to the NFT website instead of returning a single NFT's
|
|
7
|
-
* metadata. Emits a fixed NFT website notice; "this website" links to the
|
|
8
|
-
* configured `nftLink` URL when set, otherwise it stays plain text.
|
|
9
|
-
*/
|
|
10
|
-
export declare class NFTMetadataTool extends BaseNftMessageTool {
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
protected readonly template = "Please view your NFT collection on {link} for more details";
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=NFTMetadataTool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NFTMetadataTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/builtin/nft/NFTMetadataTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAErF,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAEzD;;;;;;GAMG;AACH,qBAAa,eAAgB,SAAQ,kBAAkB;IACrD,IAAI,SAAsB;IAC1B,WAAW,SAGuE;IAElF,SAAS,CAAC,QAAQ,CAAC,QAAQ,gEAAgE;CAC5F"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NFTMetadataTool = void 0;
|
|
4
|
-
const BaseNftMessageTool_1 = require("./BaseNftMessageTool");
|
|
5
|
-
/**
|
|
6
|
-
* Tool: get-nft-metadata
|
|
7
|
-
*
|
|
8
|
-
* Points the user to the NFT website instead of returning a single NFT's
|
|
9
|
-
* metadata. Emits a fixed NFT website notice; "this website" links to the
|
|
10
|
-
* configured `nftLink` URL when set, otherwise it stays plain text.
|
|
11
|
-
*/
|
|
12
|
-
class NFTMetadataTool extends BaseNftMessageTool_1.BaseNftMessageTool {
|
|
13
|
-
name = 'get-nft-metadata';
|
|
14
|
-
description = 'Use when the user asks about a specific NFT — its details, traits, image, or floor price ' +
|
|
15
|
-
'("show NFT #1234 of collection X", "traits of this NFT", "floor price of this NFT"). ' +
|
|
16
|
-
'Returns a fixed notice directing them to the NFT website. Takes no arguments.';
|
|
17
|
-
template = 'Please view your NFT collection on {link} for more details';
|
|
18
|
-
}
|
|
19
|
-
exports.NFTMetadataTool = NFTMetadataTool;
|
|
20
|
-
//# sourceMappingURL=NFTMetadataTool.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NFTMetadataTool.js","sourceRoot":"","sources":["../../../../src/tools/builtin/nft/NFTMetadataTool.ts"],"names":[],"mappings":";;;AAAA,6DAAqF;AAIrF;;;;;;GAMG;AACH,MAAa,eAAgB,SAAQ,uCAAkB;IACrD,IAAI,GAAG,kBAAkB,CAAC;IAC1B,WAAW,GACT,2FAA2F;QAC3F,uFAAuF;QACvF,+EAA+E,CAAC;IAE/D,QAAQ,GAAG,4DAA4D,CAAC;CAC5F;AARD,0CAQC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseNftMessageTool } from './BaseNftMessageTool';
|
|
2
|
-
/**
|
|
3
|
-
* Tool: send-nft
|
|
4
|
-
*
|
|
5
|
-
* Points the user to the website to send/transfer an NFT. Emits a fixed
|
|
6
|
-
* message; "this website" links to the configured `nftLink` URL when one is
|
|
7
|
-
* set, otherwise it stays plain text.
|
|
8
|
-
*/
|
|
9
|
-
export declare class SendNftTool extends BaseNftMessageTool {
|
|
10
|
-
name: string;
|
|
11
|
-
description: string;
|
|
12
|
-
protected readonly template = "Please select the NFT you would like to send from the list and proceed via {link}.";
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=SendNftTool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SendNftTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/builtin/nft/SendNftTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;;GAMG;AACH,qBAAa,WAAY,SAAQ,kBAAkB;IACjD,IAAI,SAAc;IAClB,WAAW,SAGsB;IAEjC,SAAS,CAAC,QAAQ,CAAC,QAAQ,wFAAwF;CACpH"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SendNftTool = void 0;
|
|
4
|
-
const BaseNftMessageTool_1 = require("./BaseNftMessageTool");
|
|
5
|
-
/**
|
|
6
|
-
* Tool: send-nft
|
|
7
|
-
*
|
|
8
|
-
* Points the user to the website to send/transfer an NFT. Emits a fixed
|
|
9
|
-
* message; "this website" links to the configured `nftLink` URL when one is
|
|
10
|
-
* set, otherwise it stays plain text.
|
|
11
|
-
*/
|
|
12
|
-
class SendNftTool extends BaseNftMessageTool_1.BaseNftMessageTool {
|
|
13
|
-
name = 'send-nft';
|
|
14
|
-
description = 'Use when the user wants to SEND / transfer an NFT ("send my NFT", "transfer an NFT", ' +
|
|
15
|
-
'"gửi NFT"). Returns a fixed message directing them to select and send the NFT on the ' +
|
|
16
|
-
'website. Takes no arguments.';
|
|
17
|
-
template = 'Please select the NFT you would like to send from the list and proceed via {link}.';
|
|
18
|
-
}
|
|
19
|
-
exports.SendNftTool = SendNftTool;
|
|
20
|
-
//# sourceMappingURL=SendNftTool.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SendNftTool.js","sourceRoot":"","sources":["../../../../src/tools/builtin/nft/SendNftTool.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D;;;;;;GAMG;AACH,MAAa,WAAY,SAAQ,uCAAkB;IACjD,IAAI,GAAG,UAAU,CAAC;IAClB,WAAW,GACT,uFAAuF;QACvF,uFAAuF;QACvF,8BAA8B,CAAC;IAEd,QAAQ,GAAG,oFAAoF,CAAC;CACpH;AARD,kCAQC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseNftMessageTool, type NftMessageToolConfig } from './BaseNftMessageTool';
|
|
2
|
-
export type WalletNFTsToolConfig = NftMessageToolConfig;
|
|
3
|
-
/**
|
|
4
|
-
* Tool: get-wallet-nfts
|
|
5
|
-
*
|
|
6
|
-
* Points the user to the NFT website instead of returning on-chain holdings.
|
|
7
|
-
* Emits a fixed NFT website notice; "this website" links to the configured
|
|
8
|
-
* `nftLink` URL when set, otherwise it stays plain text.
|
|
9
|
-
*/
|
|
10
|
-
export declare class WalletNFTsTool extends BaseNftMessageTool {
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
protected readonly template = "Please view your NFT collection on {link} for more details";
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=WalletNFTsTool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalletNFTsTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/builtin/nft/WalletNFTsTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAErF,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAExD;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IACpD,IAAI,SAAqB;IACzB,WAAW,SAGsC;IAEjD,SAAS,CAAC,QAAQ,CAAC,QAAQ,gEAAgE;CAC5F"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletNFTsTool = void 0;
|
|
4
|
-
const BaseNftMessageTool_1 = require("./BaseNftMessageTool");
|
|
5
|
-
/**
|
|
6
|
-
* Tool: get-wallet-nfts
|
|
7
|
-
*
|
|
8
|
-
* Points the user to the NFT website instead of returning on-chain holdings.
|
|
9
|
-
* Emits a fixed NFT website notice; "this website" links to the configured
|
|
10
|
-
* `nftLink` URL when set, otherwise it stays plain text.
|
|
11
|
-
*/
|
|
12
|
-
class WalletNFTsTool extends BaseNftMessageTool_1.BaseNftMessageTool {
|
|
13
|
-
name = 'get-wallet-nfts';
|
|
14
|
-
description = 'Use when the user wants to view their NFTs / NFT collection / holdings ("my NFTs", ' +
|
|
15
|
-
'"show my NFTs", "what NFTs do I own", "NFT collection"). Returns a fixed notice directing ' +
|
|
16
|
-
'them to the NFT website. Takes no arguments.';
|
|
17
|
-
template = 'Please view your NFT collection on {link} for more details';
|
|
18
|
-
}
|
|
19
|
-
exports.WalletNFTsTool = WalletNFTsTool;
|
|
20
|
-
//# sourceMappingURL=WalletNFTsTool.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalletNFTsTool.js","sourceRoot":"","sources":["../../../../src/tools/builtin/nft/WalletNFTsTool.ts"],"names":[],"mappings":";;;AAAA,6DAAqF;AAIrF;;;;;;GAMG;AACH,MAAa,cAAe,SAAQ,uCAAkB;IACpD,IAAI,GAAG,iBAAiB,CAAC;IACzB,WAAW,GACT,qFAAqF;QACrF,4FAA4F;QAC5F,8CAA8C,CAAC;IAE9B,QAAQ,GAAG,4DAA4D,CAAC;CAC5F;AARD,wCAQC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { WalletNFTsTool } from './WalletNFTsTool';
|
|
2
|
-
export type { WalletNFTsToolConfig } from './WalletNFTsTool';
|
|
3
|
-
export { NFTContractInfoTool } from './NFTContractInfoTool';
|
|
4
|
-
export type { NFTContractInfoToolConfig } from './NFTContractInfoTool';
|
|
5
|
-
export { NFTMetadataTool } from './NFTMetadataTool';
|
|
6
|
-
export type { NFTMetadataToolConfig } from './NFTMetadataTool';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/builtin/nft/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NFTMetadataTool = exports.NFTContractInfoTool = exports.WalletNFTsTool = void 0;
|
|
4
|
-
var WalletNFTsTool_1 = require("./WalletNFTsTool");
|
|
5
|
-
Object.defineProperty(exports, "WalletNFTsTool", { enumerable: true, get: function () { return WalletNFTsTool_1.WalletNFTsTool; } });
|
|
6
|
-
var NFTContractInfoTool_1 = require("./NFTContractInfoTool");
|
|
7
|
-
Object.defineProperty(exports, "NFTContractInfoTool", { enumerable: true, get: function () { return NFTContractInfoTool_1.NFTContractInfoTool; } });
|
|
8
|
-
var NFTMetadataTool_1 = require("./NFTMetadataTool");
|
|
9
|
-
Object.defineProperty(exports, "NFTMetadataTool", { enumerable: true, get: function () { return NFTMetadataTool_1.NFTMetadataTool; } });
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/builtin/nft/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AAEvB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAE5B,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { BaseTool } from '../../BaseTool';
|
|
2
|
-
import type { ToolParameter, UserContext } from '../../../types';
|
|
3
|
-
import { type UniswapServiceConfig } from '../../../services/UniswapService';
|
|
4
|
-
export type EstimatePoolYieldToolConfig = UniswapServiceConfig;
|
|
5
|
-
/**
|
|
6
|
-
* Yield formula (matches Uniswap UI's "estimated APR"):
|
|
7
|
-
* fees24h = volume24h × feeTier_decimal
|
|
8
|
-
* APR = (fees24h / TVL) × 365
|
|
9
|
-
* yield = deposit × APR / period
|
|
10
|
-
*
|
|
11
|
-
* Note: assumes full-range liquidity. Concentrated positions earn more when in
|
|
12
|
-
* range, zero when out of range. Does not account for impermanent loss.
|
|
13
|
-
*/
|
|
14
|
-
interface YieldEstimate {
|
|
15
|
-
depositUsd: number;
|
|
16
|
-
aprPercent: number;
|
|
17
|
-
dailyUsd: number;
|
|
18
|
-
weeklyUsd: number;
|
|
19
|
-
monthlyUsd: number;
|
|
20
|
-
yearlyUsd: number;
|
|
21
|
-
}
|
|
22
|
-
export declare class EstimatePoolYieldTool extends BaseTool {
|
|
23
|
-
name: string;
|
|
24
|
-
description: string;
|
|
25
|
-
category: string;
|
|
26
|
-
parameters: ToolParameter[];
|
|
27
|
-
private service;
|
|
28
|
-
constructor(config?: EstimatePoolYieldToolConfig);
|
|
29
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<{
|
|
30
|
-
error: string;
|
|
31
|
-
_instructions?: undefined;
|
|
32
|
-
reason?: undefined;
|
|
33
|
-
missing?: undefined;
|
|
34
|
-
candidates?: undefined;
|
|
35
|
-
pool?: undefined;
|
|
36
|
-
autoPickedReason?: undefined;
|
|
37
|
-
aprUnavailableReason?: undefined;
|
|
38
|
-
estimate?: undefined;
|
|
39
|
-
depositMode?: undefined;
|
|
40
|
-
disclaimer?: undefined;
|
|
41
|
-
} | {
|
|
42
|
-
_instructions: string;
|
|
43
|
-
reason: string;
|
|
44
|
-
missing: string[];
|
|
45
|
-
candidates: {
|
|
46
|
-
pair: string | undefined;
|
|
47
|
-
feeTierBps: number | undefined;
|
|
48
|
-
feeTierPercent: number | undefined;
|
|
49
|
-
volume24hUsd: number | undefined;
|
|
50
|
-
address: string | undefined;
|
|
51
|
-
}[];
|
|
52
|
-
error?: undefined;
|
|
53
|
-
pool?: undefined;
|
|
54
|
-
autoPickedReason?: undefined;
|
|
55
|
-
aprUnavailableReason?: undefined;
|
|
56
|
-
estimate?: undefined;
|
|
57
|
-
depositMode?: undefined;
|
|
58
|
-
disclaimer?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
_instructions: string;
|
|
61
|
-
pool: {
|
|
62
|
-
address: string | undefined;
|
|
63
|
-
pair: string | undefined;
|
|
64
|
-
feeTierBps: number | undefined;
|
|
65
|
-
feeTierPercent: number | undefined;
|
|
66
|
-
tvlUsd: number | undefined;
|
|
67
|
-
volume24hUsd: number | undefined;
|
|
68
|
-
fees24hUsd: number | undefined;
|
|
69
|
-
aprPercent: number | undefined;
|
|
70
|
-
chain: string;
|
|
71
|
-
token0: {
|
|
72
|
-
symbol: string | undefined;
|
|
73
|
-
} | undefined;
|
|
74
|
-
token1: {
|
|
75
|
-
symbol: string | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
};
|
|
78
|
-
autoPickedReason: string | undefined;
|
|
79
|
-
aprUnavailableReason: string;
|
|
80
|
-
error?: undefined;
|
|
81
|
-
reason?: undefined;
|
|
82
|
-
missing?: undefined;
|
|
83
|
-
candidates?: undefined;
|
|
84
|
-
estimate?: undefined;
|
|
85
|
-
depositMode?: undefined;
|
|
86
|
-
disclaimer?: undefined;
|
|
87
|
-
} | {
|
|
88
|
-
_instructions: string;
|
|
89
|
-
pool: {
|
|
90
|
-
address: string | undefined;
|
|
91
|
-
pair: string | undefined;
|
|
92
|
-
feeTierBps: number | undefined;
|
|
93
|
-
feeTierPercent: number | undefined;
|
|
94
|
-
tvlUsd: number | undefined;
|
|
95
|
-
volume24hUsd: number | undefined;
|
|
96
|
-
fees24hUsd: number | undefined;
|
|
97
|
-
aprPercent: number | undefined;
|
|
98
|
-
chain: string;
|
|
99
|
-
token0: {
|
|
100
|
-
symbol: string | undefined;
|
|
101
|
-
} | undefined;
|
|
102
|
-
token1: {
|
|
103
|
-
symbol: string | undefined;
|
|
104
|
-
} | undefined;
|
|
105
|
-
};
|
|
106
|
-
estimate: YieldEstimate;
|
|
107
|
-
depositMode: string;
|
|
108
|
-
autoPickedReason: string | undefined;
|
|
109
|
-
disclaimer: string;
|
|
110
|
-
error?: undefined;
|
|
111
|
-
reason?: undefined;
|
|
112
|
-
missing?: undefined;
|
|
113
|
-
candidates?: undefined;
|
|
114
|
-
aprUnavailableReason?: undefined;
|
|
115
|
-
}>;
|
|
116
|
-
private filterPools;
|
|
117
|
-
private sym;
|
|
118
|
-
private rankByVolume;
|
|
119
|
-
/** Keep the highest-volume pool per fee tier — useful when the same pair has duplicates across protocols. */
|
|
120
|
-
private dedupeByFeeTier;
|
|
121
|
-
private describeQuery;
|
|
122
|
-
}
|
|
123
|
-
export {};
|
|
124
|
-
//# sourceMappingURL=EstimatePoolYieldTool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EstimatePoolYieldTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/builtin/pool/EstimatePoolYieldTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAkB,KAAK,oBAAoB,EAAyB,MAAM,kCAAkC,CAAC;AAEpH,MAAM,MAAM,2BAA2B,GAAG,oBAAoB,CAAC;AAM/D;;;;;;;;GAQG;AAEH,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAaD,qBAAa,qBAAsB,SAAQ,QAAQ;IACjD,IAAI,SAAyB;IAC7B,WAAW,SAauE;IAElF,QAAQ,SAAqB;IAE7B,UAAU,EAAE,aAAa,EAAE,CAsCzB;IAEF,OAAO,CAAC,OAAO,CAAiB;gBAEpB,MAAM,CAAC,EAAE,2BAA2B;cAKhC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4I5E,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,GAAG;IAKX,OAAO,CAAC,YAAY;IAIpB,6GAA6G;IAC7G,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,aAAa;CAItB"}
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EstimatePoolYieldTool = void 0;
|
|
4
|
-
const BaseTool_1 = require("../../BaseTool");
|
|
5
|
-
const chainResolver_1 = require("../../chainResolver");
|
|
6
|
-
const UniswapService_1 = require("../../../services/UniswapService");
|
|
7
|
-
const DAYS_PER_YEAR = 365;
|
|
8
|
-
const DEFAULT_DEPOSIT_USD = 1000;
|
|
9
|
-
const EVM_ADDRESS_RE = /^0x[a-fA-F0-9]{40}$/;
|
|
10
|
-
function computeYield(depositUsd, aprDecimal) {
|
|
11
|
-
return {
|
|
12
|
-
depositUsd,
|
|
13
|
-
aprPercent: aprDecimal * 100,
|
|
14
|
-
dailyUsd: (depositUsd * aprDecimal) / DAYS_PER_YEAR,
|
|
15
|
-
weeklyUsd: (depositUsd * aprDecimal) / 52,
|
|
16
|
-
monthlyUsd: (depositUsd * aprDecimal) / 12,
|
|
17
|
-
yearlyUsd: depositUsd * aprDecimal,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
class EstimatePoolYieldTool extends BaseTool_1.BaseTool {
|
|
21
|
-
name = 'estimate_pool_yield';
|
|
22
|
-
description = 'Estimate daily / weekly / monthly / yearly fee yield for a USD deposit into a Uniswap V3 pool. ' +
|
|
23
|
-
'Answers questions like: "If I put $1000 into the USDC/WETH 0.05% pool, how much per day?", ' +
|
|
24
|
-
'"bỏ 500$ vào pool ETH/USDC 0.3% mỗi ngày lời bao nhiêu?", "APR of WBTC/ETH 0.3% on Arbitrum". ' +
|
|
25
|
-
'BEHAVIOR (designed to minimize back-and-forth with the user):\n' +
|
|
26
|
-
' • If only ONE token symbol is given → auto-pick the highest-volume V3 pool containing that token and compute yield. ' +
|
|
27
|
-
'Do NOT ask the user for the other token.\n' +
|
|
28
|
-
' • If BOTH tokens are given but fee tier is missing AND multiple fee tiers exist → return candidates (one per fee tier) ' +
|
|
29
|
-
'so the agent can ask the user to pick.\n' +
|
|
30
|
-
' • If depositUsd is missing → default to $1000 and clearly mark the result as a per-$1000 example. ' +
|
|
31
|
-
'Do NOT ask the user for the deposit amount.\n' +
|
|
32
|
-
' • If chain is missing → default to userContext.chain or "0x1" (Ethereum).\n' +
|
|
33
|
-
'Source: Uniswap ExploreStats (live 24h data). ' +
|
|
34
|
-
'Supports: Ethereum, Optimism, BSC, Polygon, Base, Arbitrum, Avalanche, Linea.';
|
|
35
|
-
category = 'blockchain-data';
|
|
36
|
-
parameters = [
|
|
37
|
-
{
|
|
38
|
-
name: 'token0Symbol',
|
|
39
|
-
type: 'string',
|
|
40
|
-
description: 'Symbol of one of the pool tokens (e.g. "USDC"). Pair order does not matter.',
|
|
41
|
-
required: true,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'token1Symbol',
|
|
45
|
-
type: 'string',
|
|
46
|
-
description: 'Symbol of the other pool token (e.g. "WETH"). ' +
|
|
47
|
-
'Optional — if omitted, the tool auto-picks the highest-volume pool containing token0Symbol.',
|
|
48
|
-
required: false,
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'feeTier',
|
|
52
|
-
type: 'number',
|
|
53
|
-
description: 'Fee tier in basis points: 100 = 0.01%, 500 = 0.05%, 3000 = 0.30%, 10000 = 1.00%. ' +
|
|
54
|
-
'Optional — if omitted and the pair has multiple fee tiers, the tool returns candidates.',
|
|
55
|
-
required: false,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'depositUsd',
|
|
59
|
-
type: 'number',
|
|
60
|
-
description: 'USD amount to deposit. Optional — defaults to 1000 and the response is marked as a per-$1000 example.',
|
|
61
|
-
required: false,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'chain',
|
|
65
|
-
type: 'string',
|
|
66
|
-
description: 'Hex chain ID: "0x1" Ethereum, "0xa" Optimism, "0x38" BSC, "0x89" Polygon, "0x2105" Base, ' +
|
|
67
|
-
'"0xa4b1" Arbitrum, "0xa86a" Avalanche, "0xe708" Linea. ONLY set this when the user EXPLICITLY names a chain; otherwise OMIT it so the connected wallet chain is used.',
|
|
68
|
-
required: false,
|
|
69
|
-
},
|
|
70
|
-
];
|
|
71
|
-
service;
|
|
72
|
-
constructor(config) {
|
|
73
|
-
super();
|
|
74
|
-
this.service = new UniswapService_1.UniswapService(config);
|
|
75
|
-
}
|
|
76
|
-
async run(args, userContext) {
|
|
77
|
-
const chain = (0, chainResolver_1.resolveChain)(args.chain, userContext);
|
|
78
|
-
const token0Symbol = typeof args.token0Symbol === 'string' ? args.token0Symbol.trim() : '';
|
|
79
|
-
const token1Symbol = typeof args.token1Symbol === 'string' ? args.token1Symbol.trim() : '';
|
|
80
|
-
const feeTier = typeof args.feeTier === 'number' && Number.isFinite(args.feeTier) ? Math.floor(args.feeTier) : undefined;
|
|
81
|
-
const userProvidedDeposit = typeof args.depositUsd === 'number' && Number.isFinite(args.depositUsd) && args.depositUsd > 0;
|
|
82
|
-
const depositUsd = userProvidedDeposit ? args.depositUsd : DEFAULT_DEPOSIT_USD;
|
|
83
|
-
if (!token0Symbol) {
|
|
84
|
-
return { error: 'token0Symbol is required. Ask the user which pool / token they want to estimate yield for.' };
|
|
85
|
-
}
|
|
86
|
-
const searchQuery = token1Symbol ? `${token0Symbol} ${token1Symbol}` : token0Symbol;
|
|
87
|
-
const search = await this.service.searchPools({
|
|
88
|
-
query: searchQuery,
|
|
89
|
-
chain,
|
|
90
|
-
page: 1,
|
|
91
|
-
size: 50,
|
|
92
|
-
protocolVersion: 'V3',
|
|
93
|
-
});
|
|
94
|
-
if (!search.success)
|
|
95
|
-
return { error: search.error || 'Pool search failed' };
|
|
96
|
-
const all = search.data ?? [];
|
|
97
|
-
const matched = this.filterPools(all, token0Symbol, token1Symbol, feeTier);
|
|
98
|
-
if (matched.length === 0) {
|
|
99
|
-
return {
|
|
100
|
-
error: `No V3 pool found for ${this.describeQuery(token0Symbol, token1Symbol, feeTier)} on chain ${chain}. ` +
|
|
101
|
-
'Verify the token symbols with the user.',
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
const ranked = this.rankByVolume(matched);
|
|
105
|
-
// Disambiguation: ONLY when BOTH symbols are given but feeTier is missing
|
|
106
|
-
// AND there are multiple distinct fee tiers. In every other case we pick
|
|
107
|
-
// the top pool automatically — this is what makes the UX feel natural.
|
|
108
|
-
if (token1Symbol && feeTier == null) {
|
|
109
|
-
const distinctFeeTiers = new Set(ranked.map((p) => p.feeTier).filter((f) => typeof f === 'number'));
|
|
110
|
-
if (distinctFeeTiers.size > 1) {
|
|
111
|
-
const candidates = this.dedupeByFeeTier(ranked).slice(0, 5);
|
|
112
|
-
return {
|
|
113
|
-
_instructions: 'The pair has multiple fee tiers. Present them as a short numbered list (fee tier %, 24h volume). ' +
|
|
114
|
-
'Ask which fee tier the user wants, then re-call with the same token symbols + chosen feeTier. ' +
|
|
115
|
-
'If the user already mentioned a deposit amount, pass it along as depositUsd. ' +
|
|
116
|
-
'Do NOT mention tool names. Format numbers human-readably (e.g. $12.5M, 0.05%).',
|
|
117
|
-
reason: `${token0Symbol}/${token1Symbol} exists across multiple fee tiers — user choice required.`,
|
|
118
|
-
missing: ['feeTier'],
|
|
119
|
-
candidates: candidates.map((p) => ({
|
|
120
|
-
pair: p.token0?.symbol && p.token1?.symbol ? `${p.token0.symbol}/${p.token1.symbol}` : undefined,
|
|
121
|
-
feeTierBps: p.feeTier,
|
|
122
|
-
feeTierPercent: typeof p.feeTier === 'number' ? p.feeTier / 10_000 : undefined,
|
|
123
|
-
volume24hUsd: p.volumeUsd24hr,
|
|
124
|
-
address: p.id,
|
|
125
|
-
})),
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
// Auto-pick: highest-volume pool from the filtered set.
|
|
130
|
-
const chosen = ranked[0];
|
|
131
|
-
if (!chosen.id || !EVM_ADDRESS_RE.test(chosen.id)) {
|
|
132
|
-
return { error: 'Resolved pool has no valid address.' };
|
|
133
|
-
}
|
|
134
|
-
const detail = await this.service.getV3PoolDetail({ address: chosen.id, chain });
|
|
135
|
-
if (!detail.success || !detail.data) {
|
|
136
|
-
return { error: detail.error || 'Failed to fetch pool detail.' };
|
|
137
|
-
}
|
|
138
|
-
const pool = detail.data;
|
|
139
|
-
const tvlUsd = pool.totalLiquidity?.value;
|
|
140
|
-
const volume24hUsd = pool.volume24h?.value;
|
|
141
|
-
const feeTierBps = pool.feeTier;
|
|
142
|
-
const feeTierPercent = typeof feeTierBps === 'number' ? feeTierBps / 10_000 : undefined;
|
|
143
|
-
const fees24hUsd = typeof volume24hUsd === 'number' && typeof feeTierPercent === 'number'
|
|
144
|
-
? (volume24hUsd * feeTierPercent) / 100
|
|
145
|
-
: undefined;
|
|
146
|
-
const aprDecimal = typeof fees24hUsd === 'number' && typeof tvlUsd === 'number' && tvlUsd > 0
|
|
147
|
-
? (fees24hUsd / tvlUsd) * DAYS_PER_YEAR
|
|
148
|
-
: undefined;
|
|
149
|
-
const poolSummary = {
|
|
150
|
-
address: pool.address,
|
|
151
|
-
pair: pool.token0?.symbol && pool.token1?.symbol ? `${pool.token0.symbol}/${pool.token1.symbol}` : undefined,
|
|
152
|
-
feeTierBps,
|
|
153
|
-
feeTierPercent,
|
|
154
|
-
tvlUsd,
|
|
155
|
-
volume24hUsd,
|
|
156
|
-
fees24hUsd,
|
|
157
|
-
aprPercent: typeof aprDecimal === 'number' ? aprDecimal * 100 : undefined,
|
|
158
|
-
chain,
|
|
159
|
-
token0: pool.token0 ? { symbol: pool.token0.symbol } : undefined,
|
|
160
|
-
token1: pool.token1 ? { symbol: pool.token1.symbol } : undefined,
|
|
161
|
-
};
|
|
162
|
-
const autoPickedReason = !token1Symbol
|
|
163
|
-
? `User only provided ${token0Symbol}; auto-picked the highest-volume V3 pool containing it.`
|
|
164
|
-
: undefined;
|
|
165
|
-
if (aprDecimal == null) {
|
|
166
|
-
return {
|
|
167
|
-
_instructions: 'Pool APR could not be computed (TVL or volume data unavailable). Inform the user briefly and show TVL/volume if present. ' +
|
|
168
|
-
'Do NOT mention tool names.',
|
|
169
|
-
pool: poolSummary,
|
|
170
|
-
autoPickedReason,
|
|
171
|
-
aprUnavailableReason: !tvlUsd ? 'TVL is zero or unavailable' : 'Volume data unavailable',
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
const estimate = computeYield(depositUsd, aprDecimal);
|
|
175
|
-
return {
|
|
176
|
-
_instructions: "Present the yield estimate naturally in the user's language. " +
|
|
177
|
-
(userProvidedDeposit
|
|
178
|
-
? "Lead with: pool (pair + fee %), chain, APR %. Then show projected earnings for the user's deposit — daily, weekly, monthly, yearly. "
|
|
179
|
-
: 'IMPORTANT: depositUsd was NOT specified by the user — the result is a per-$1000 EXAMPLE. ' +
|
|
180
|
-
'Lead with: pool (pair + fee %), chain, APR %. Then say "for every $1000 deposited you would earn approximately:" and list daily / weekly / monthly / yearly. ' +
|
|
181
|
-
'End with a short note that the user can multiply these numbers by (their deposit / 1000) for a custom amount. ') +
|
|
182
|
-
(autoPickedReason
|
|
183
|
-
? 'Mention briefly that you picked the highest-volume pool for this token (do NOT say "auto-picked"). '
|
|
184
|
-
: '') +
|
|
185
|
-
'Add a one-line disclaimer about impermanent loss. ' +
|
|
186
|
-
'Format USD numbers with 2 decimal places (e.g. $3.45/day). Do NOT mention tool names.',
|
|
187
|
-
pool: poolSummary,
|
|
188
|
-
estimate,
|
|
189
|
-
depositMode: userProvidedDeposit ? 'user-specified' : 'default-1000-example',
|
|
190
|
-
autoPickedReason,
|
|
191
|
-
disclaimer: "Fee yield is based on the pool's 24h volume snapshot and assumes full-range liquidity. Actual returns vary with price movement, volume changes, and impermanent loss.",
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
filterPools(pools, sym0, sym1, fee) {
|
|
195
|
-
const x = sym0.toLowerCase();
|
|
196
|
-
const y = sym1 ? sym1.toLowerCase() : '';
|
|
197
|
-
return pools.filter((p) => {
|
|
198
|
-
if (fee != null && p.feeTier !== fee)
|
|
199
|
-
return false;
|
|
200
|
-
const a = (p.token0?.symbol ?? '').toLowerCase();
|
|
201
|
-
const b = (p.token1?.symbol ?? '').toLowerCase();
|
|
202
|
-
if (y) {
|
|
203
|
-
return (this.sym(a, x) && this.sym(b, y)) || (this.sym(a, y) && this.sym(b, x));
|
|
204
|
-
}
|
|
205
|
-
return this.sym(a, x) || this.sym(b, x);
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
sym(poolSym, userSym) {
|
|
209
|
-
if (!poolSym || !userSym)
|
|
210
|
-
return false;
|
|
211
|
-
return poolSym.includes(userSym) || userSym.includes(poolSym);
|
|
212
|
-
}
|
|
213
|
-
rankByVolume(pools) {
|
|
214
|
-
return [...pools].sort((a, b) => (b.volumeUsd24hr ?? 0) - (a.volumeUsd24hr ?? 0));
|
|
215
|
-
}
|
|
216
|
-
/** Keep the highest-volume pool per fee tier — useful when the same pair has duplicates across protocols. */
|
|
217
|
-
dedupeByFeeTier(pools) {
|
|
218
|
-
const seen = new Set();
|
|
219
|
-
const out = [];
|
|
220
|
-
for (const p of pools) {
|
|
221
|
-
if (typeof p.feeTier !== 'number')
|
|
222
|
-
continue;
|
|
223
|
-
if (seen.has(p.feeTier))
|
|
224
|
-
continue;
|
|
225
|
-
seen.add(p.feeTier);
|
|
226
|
-
out.push(p);
|
|
227
|
-
}
|
|
228
|
-
return out;
|
|
229
|
-
}
|
|
230
|
-
describeQuery(sym0, sym1, fee) {
|
|
231
|
-
const pair = sym1 ? `${sym0}/${sym1}` : sym0;
|
|
232
|
-
return fee != null ? `${pair} at ${fee} bps` : pair;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
exports.EstimatePoolYieldTool = EstimatePoolYieldTool;
|
|
236
|
-
//# sourceMappingURL=EstimatePoolYieldTool.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EstimatePoolYieldTool.js","sourceRoot":"","sources":["../../../../src/tools/builtin/pool/EstimatePoolYieldTool.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,uDAAmD;AAEnD,qEAAoH;AAIpH,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACjC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AAqB7C,SAAS,YAAY,CAAC,UAAkB,EAAE,UAAkB;IAC1D,OAAO;QACL,UAAU;QACV,UAAU,EAAE,UAAU,GAAG,GAAG;QAC5B,QAAQ,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,aAAa;QACnD,SAAS,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,EAAE;QACzC,UAAU,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,EAAE;QAC1C,SAAS,EAAE,UAAU,GAAG,UAAU;KACnC,CAAC;AACJ,CAAC;AAED,MAAa,qBAAsB,SAAQ,mBAAQ;IACjD,IAAI,GAAG,qBAAqB,CAAC;IAC7B,WAAW,GACT,iGAAiG;QACjG,6FAA6F;QAC7F,gGAAgG;QAChG,iEAAiE;QACjE,wHAAwH;QACxH,4CAA4C;QAC5C,2HAA2H;QAC3H,0CAA0C;QAC1C,sGAAsG;QACtG,+CAA+C;QAC/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