Skip to content

Defillama#58

Merged
nicky-ru merged 5 commits intomainfrom
defillama
Mar 27, 2025
Merged

Defillama#58
nicky-ru merged 5 commits intomainfrom
defillama

Conversation

@nicky-ru
Copy link
Contributor

Added

  • Cmc tool for token discovery
  • Defillama tool for current price fetching

- Implemented CMCBaseTool to fetch and validate token mapping data from CoinMarketCap API.
- Introduced Zod schemas for response validation and input parameters.
- Added comprehensive unit tests to ensure functionality and error handling for the new tool.
- Implemented DefiLlamaTool to retrieve token prices from the DefiLlama API.
- Introduced Zod schemas for response validation and input parameters.
- Added comprehensive unit tests to ensure functionality and error handling for the new tool.
- Added CMCBaseTool and DefiLlamaTool to ToolRegistry for enhanced token data retrieval.
- Changed CMCResponseSchema to use a number type for the status field instead of string.
- Enhanced GetTokenMapToolSchema description for clarity on returned data.
- Updated GetTokenPriceToolSchema description to include fallback instructions for token address retrieval.
@nicky-ru nicky-ru merged commit 41593a1 into main Mar 27, 2025
1 check passed
@nicky-ru nicky-ru deleted the defillama branch March 27, 2025 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant