Skip to content

Implement Coins List Data Transformation Utility#1

Open
Merango wants to merge 6 commits into
81af2262-181a-4f3a-ba8e-5d3e94999901from
feat-transform-coins-list-data-1749228929
Open

Implement Coins List Data Transformation Utility#1
Merango wants to merge 6 commits into
81af2262-181a-4f3a-ba8e-5d3e94999901from
feat-transform-coins-list-data-1749228929

Conversation

@Merango
Copy link
Copy Markdown
Owner

@Merango Merango commented Jun 6, 2025

Implement Coins List Data Transformation Utility

Description

Task

Implement data transformation for coins list

Acceptance Criteria

  • Function transforms raw cryptocurrency data
  • Supports custom file path configuration
  • Provides robust error handling
  • Maintains type safety
  • Preserves essential coin information

Summary of Work

This pull request implements a robust data transformation utility for converting raw cryptocurrency data into a standardized coins list format.

Changes Made

  • Created transformCoinsList() function in src/coins-list-transformer.ts
  • Implemented flexible file path handling
  • Added comprehensive error handling
  • Defined clear TypeScript interfaces for input and output data

Implementation Details

  • Function accepts an optional file path parameter
  • Defaults to project root's crypto-prices.json if no path provided
  • Transforms raw coin data to a consistent format
  • Preserves essential coin information: id, symbol, name

Error Handling

  • Handles file not found scenarios
  • Validates JSON parsing
  • Provides clear, informative error messages

Testing Considerations

  • Supports custom file path injection for testing
  • Gracefully handles different input scenarios
  • Provides type safety through TypeScript interfaces

Notes

  • Assumes a consistent JSON structure for input data
  • Designed to be easily extensible for future requirements

Changes Made

  • Created transformCoinsList() function in src/coins-list-transformer.ts
  • Implemented TypeScript interfaces for RawCoinData and TransformedCoin
  • Added comprehensive error handling for file reading and parsing
  • Supported flexible file path configuration

Tests

  • Verify transformation of coin data
  • Test error handling for invalid JSON
  • Test file not found scenario
  • Validate output type and structure

Signatures

Staking Key

84mPEB3qLaB2KQr1RXxNgYDF5DSv5ZyuDPpb9qeeNyyT: BHSQJn9fNN5Gv6euTqbJv5hH3YvHwHvHq6BasDbVLHYN2aoEfMvMnSLVtspdGtTi5MfBguK7PcFtDuMTDceFVQoy95nm1L28VynVX9MmQ77avfiddFX4o2rjBBZRtB51sbSeGHfjY36WThpRgj298stxkPqwthXvzNp5ddkNFZ4YqXRegu2ZjKDrrTdvQP1qjvQv6HzLcHX3Rj8c5TVNcTXMwqZadLcDLtuKDqJ3Pjuag7upYCDao8Cn1wfkWEfP9ku8VrdxnT4oBqZzJqqNLqDhyVyoeRJVR4N1qGbchFiov2DRLba8JjYV9hGAG971Mhtq4SpWNd7kxkf9XzwWwH4VNRa7j1exFVh2Ua8vpqqszGQTaQ3aHP3fP8NkDrB8T3qZTb5LWPScbnCYEwz15QASkwcZRN

Public Key

FLcUWedFSfvYeGjtnoXqgNtvtqEBCKwUK7Qn48hGnwsk: 7qZHYVHr9v9M1VSYLvVA7ChFn4ridJmqKKvrqGTmkQykh4cyGQR4rUiA62cedJuspjoPYeVDM1kiELRgnjmqtbPsMQeRodhi7NK62TPZQgj3czrzEvkifKXNEnoj4X4etJrQgTy4egZ8nJP6WcmkBuXVvFG7d9TADvDiqxTyH9tUGEc4ZD2rhAFWSa6q2d17CL5vcJSCzdA4qxtZeQN1ydbiYs2ZYJpJur2zYYK94YECwdnjitajq2ix9YRKuBCt6pZ2BmSKUfQPALekVrZcFuBC9rfrjB2RJnxm2t2rJ6ZjBNPXUpVgiFQ4BAdTAtaFBeBmKiJSEAdeUSjeTXegaiFUFrpAiUFyFE8DkJ1X2b54DV6u9rCBgmpV7LQ8H7ikyrQnfjUcTMxBsHcviKxV9BcaZutMpG

@Merango Merango changed the title [WIP] Implement Data Transformation Utility for Coins List Implement Coins List Data Transformation Utility Jun 6, 2025
@Merango Merango marked this pull request as ready for review June 6, 2025 16:58
Vuk7912 added a commit to Vuk7912/Koii-Task-Funder-Express that referenced this pull request Jun 6, 2025
Bhing26 added a commit to Bhing26/Koii-Task-Funder-Express that referenced this pull request Jun 6, 2025
gapcomputer added a commit to gapcomputer/Koii-Task-Funder-Express that referenced this pull request Jun 7, 2025
Santix1234 added a commit to Santix1234/Koii-Task-Funder-Express that referenced this pull request Jun 7, 2025
Taliesin67 added a commit to Taliesin67/Koii-Task-Funder-Express that referenced this pull request Jun 7, 2025
ItsHugoo added a commit to ItsHugoo/Koii-Task-Funder-Express that referenced this pull request Jun 7, 2025
xLDVx added a commit to xLDVx/Koii-Task-Funder-Express that referenced this pull request Jun 7, 2025
tlxxxsracer added a commit to tlxxxsracer/Koii-Task-Funder-Express that referenced this pull request Jun 7, 2025
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