Skip to content

feat: regenerate asset data 07/31/2025#10162

Merged
NeOMakinG merged 3 commits intodevelopfrom
feat_regenerate_asset_data
Aug 1, 2025
Merged

feat: regenerate asset data 07/31/2025#10162
NeOMakinG merged 3 commits intodevelopfrom
feat_regenerate_asset_data

Conversation

@0xean
Copy link
Contributor

@0xean 0xean commented Jul 31, 2025

Generated from CI.

Summary by CodeRabbit

  • Data Updates

    • Updated blockchain asset color mappings, with several assets added, removed, or modified across multiple chains.
    • Revised related asset indices, including numerous changes to array contents and the addition of new entries.
  • Chores

    • Added a new migration entry for asset clearing at version 148.

@0xean 0xean requested a review from a team as a code owner July 31, 2025 09:13
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 31, 2025

📝 Walkthrough

Walkthrough

This update modifies two large JSON data files: one mapping blockchain asset identifiers to color codes, and another mapping keys to arrays of related asset indices. Additionally, a new migration version (148) is registered in the migration manifest, pointing to the existing clearAssets migration function. No structural or functional changes were made to code logic.

Changes

Cohort / File(s) Change Summary
Asset Color Map Updates
scripts/generateAssetData/color-map.json
Removed and added multiple asset-color pairs for various blockchain assets across several chains. The data structure and format remain unchanged.
Related Asset Index Mapping
src/lib/asset-service/service/encodedRelatedAssetIndex.json
Numerous updates to integer arrays for many keys: additions, removals, replacements, and new key entries. Structure unchanged.
Migration Manifest Update
src/state/migrations/index.ts
Added migration version 148 to the clearAssetsMigrations manifest, mapped to clearAssets. No other logic changes.

Sequence Diagram(s)

sequenceDiagram
    participant App
    participant MigrationManifest
    participant clearAssets

    App->>MigrationManifest: Load migrations
    MigrationManifest->>clearAssets: Register version 148
    App->>MigrationManifest: Run migration v148
    MigrationManifest->>clearAssets: Execute migration logic
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

Suggested reviewers

  • NeOMakinG

Poem

A hop through fields of JSON green,
Where colors shift and assets preen.
Indices shuffled, migrations anew,
The blockchain garden gets a freshened view.
With every patch, a brighter hue—
A rabbit's work is never through! 🐇🌈

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4ab2f28 and 8c5a8a8.

⛔ Files ignored due to path filters (10)
  • packages/caip/src/adapters/coincap/generated/eip155_1/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/eip155_1/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/eip155_10/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/eip155_100/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/eip155_137/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/eip155_42161/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/eip155_43114/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/eip155_56/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/eip155_8453/adapter.json is excluded by !**/generated/**
  • packages/caip/src/adapters/coingecko/generated/solana_5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/adapter.json is excluded by !**/generated/**
📒 Files selected for processing (3)
  • scripts/generateAssetData/color-map.json (44 hunks)
  • src/lib/asset-service/service/encodedRelatedAssetIndex.json (1 hunks)
  • src/state/migrations/index.ts (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: NeOMakinG
PR: shapeshift/web#10136
File: src/lib/asset-service/service/encodedRelatedAssetIndex.json:1-1
Timestamp: 2025-07-29T10:22:27.037Z
Learning: PRs with titles starting with "feat: regenerate asset data" are routine daily asset updates that don't need detailed code analysis. Users prefer to skip automated reviews for these maintenance PRs using @coderabbitai ignore.
Learnt from: 0xApotheosis
PR: shapeshift/web#10073
File: src/components/Layout/Header/ActionCenter/components/Details/ClaimDetails.tsx:10-11
Timestamp: 2025-07-24T21:05:13.642Z
Learning: In the ShapeShift web repository, translation workflow follows a two-step process: 1) First PR adds only English translations to src/assets/translations/en/main.json, 2) Globalization team handles follow-up PRs to add keys to remaining language files (de, es, fr, id, ja, ko, pt, ru, tr, uk, zh). Don't suggest verifying all locale files simultaneously during initial feature PRs.
Learnt from: CR
PR: shapeshift/web#0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-07-24T09:43:11.699Z
Learning: Applies to packages/swapper/src/swappers/*/{*.ts,endpoints.ts} : Verify chain ID filtering in filterAssetIdsBySellable and filterBuyAssetsBySellAssetId methods.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Install and Cache
🔇 Additional comments (3)
src/state/migrations/index.ts (1)

191-192: Routine asset-regeneration bump – review skipped

This PR follows the standard “feat: regenerate asset data” pattern; per prior agreement these auto-generated version bumps don’t need manual scrutiny.

scripts/generateAssetData/color-map.json (1)

1-13687: Routine auto-generated asset data – review intentionally skipped per team convention
Daily “feat: regenerate asset data” updates are considered maintenance; no manual review required.

src/lib/asset-service/service/encodedRelatedAssetIndex.json (1)

1-1: Automated asset data refresh – review skipped

PR is a routine “feat: regenerate asset data” update generated by CI; contains only regenerated JSON data with no executable logic changes. Skipping detailed review as per repository convention.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat_regenerate_asset_data

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Collaborator

@NeOMakinG NeOMakinG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NeOMakinG NeOMakinG enabled auto-merge (squash) August 1, 2025 08:13
@NeOMakinG NeOMakinG merged commit c276418 into develop Aug 1, 2025
4 checks passed
@NeOMakinG NeOMakinG deleted the feat_regenerate_asset_data branch August 1, 2025 08:21
@coderabbitai coderabbitai bot mentioned this pull request Nov 28, 2025
1 task
@coderabbitai coderabbitai bot mentioned this pull request Jan 17, 2026
4 tasks
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.

3 participants