Skip to content

Conversation

@alfetopito
Copy link
Collaborator

@alfetopito alfetopito commented Sep 16, 2025

Summary

Add BNB native token (0xeee...) logo

Summary by CodeRabbit

  • Chores
    • Added a new metadata file to the image assets library to align asset structure.
    • No changes to features, interface, or performance; behavior remains identical across platforms.
    • No action required from users or administrators; no configuration updates needed.
    • Compatibility is unaffected across all supported versions and environments.

@alfetopito alfetopito self-assigned this Sep 16, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 16, 2025

Walkthrough

A new JSON asset file was added at src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/info.json with empty object content. No existing files or code were modified, and there are no changes to public APIs.

Changes

Cohort / File(s) Summary
Asset addition
src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/info.json
Added new JSON asset with content {}

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A hop, a bop, a file appears—
An empty JSON, quiet cheers.
I twitch my nose, the path is clean,
No code disturbed, a simple scene.
With gentle paws I stamp “all clear,”
Then hop along—another year.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "feat(bnb): add native token logo" is concise, follows conventional commit style, and directly communicates the primary change. It aligns with the PR objective of adding the BNB native token logo (0xeeee...), and the changeset shows a new entry under src/public/images/56/0xeeee.... Therefore the title accurately summarizes the main change and is appropriate for this pull request.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/add-bnb-native-logo

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@alfetopito alfetopito requested a review from a team September 16, 2025 15:25
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6088699 and 8325499.

⛔ Files ignored due to path filters (1)
  • src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/logo.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/info.json (1 hunks)
🔇 Additional comments (3)
src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/info.json (3)

1-1: Logo licensing/attribution.

Confirm we have rights to use the BNB logo and add attribution if this repo requires it (some info.json files include attribution/links).


1-1: Logo present — info.json is empty.

src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee contains logo.png; info.json is {}. Populate info.json with the token metadata (name, symbol, decimals, description/website) and add an SVG logo (logo.svg preferred); keep logo.png as a fallback.

Likely an incorrect or invalid review comment.


1-1: ```shell
#!/bin/bash
set -euo pipefail
echo "=== occurrences of 0xeeee (case-insensitive) ==="
rg -n --hidden -S -i '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' || true

echo
echo "=== references to public/images ==="
rg -n --hidden -S 'public/images' || true

echo
echo "=== references to images/56/0x (likely token images) ==="
rg -n --hidden -S 'images/56/0x' || true

echo
echo "=== chainId .* 56 nearby (patterns) ==="
rg -nP --hidden -S 'chainId.{0,40}56' || true

echo
echo "=== token image resolver candidates (get.*logo|get.*image|token.*logo) ==="
rg -n --hidden -S -e 'get.*logo' -e 'get.*image' -e 'token.*logo' -e 'token.*image' || true

echo
echo "=== cat info.json under src/public/images/56/0xeeee... ==="
cat src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/info.json || true

echo
echo "=== list all 0xeeee... dirs (repeat) ==="
fd '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' src/public/images -t d -x sh -lc 'echo DIR={}; ls -1 {} || true' || true


</blockquote></details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@@ -0,0 +1 @@
{} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

🧩 Analysis chain

Empty info.json won’t convey any metadata and likely fails repo conventions. Populate or drop.

Provide at least the common fields used elsewhere in this repo (name/symbol/links/etc.). Until we confirm the exact schema, here’s a safe minimal scaffold you can adjust to match observed keys:

-{}
+{
+  "name": "BNB",
+  "symbol": "BNB"
+}

Run the script below to discover the typical keys used across existing image info.json files in this repo and align accordingly.


🏁 Script executed:

#!/bin/bash
# Inspect existing info.json keys to infer the expected schema
set -euo pipefail
if ! command -v fd >/dev/null; then echo "Please install fd-find (fd)"; exit 1; fi
if ! command -v jq >/dev/null; then echo "Please install jq"; exit 1; fi

fd info.json src/public/images | while read -r f; do
  echo "--- $f"
  jq -r 'keys_unsorted[]?' "$f" 2>/dev/null || true
done | awk 'NF' | sort | uniq -c | sort -nr

Length of output: 24322


Populate info.json with repo-standard token metadata

File: src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/info.json is empty ({}). Repo scan shows most info.json include logoURI, chainId, address (211 files) and name, symbol, decimals (183 files); reason/removed appear for deprecations. Replace {} with at minimum: name, symbol, decimals, chainId, address, logoURI — add removed: true and reason when appropriate.

🤖 Prompt for AI Agents
In src/public/images/56/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/info.json
(lines 1-1) the file is empty; replace the empty object with a token metadata
object containing at minimum: name, symbol, decimals (numeric), chainId (56),
address (the contract address matching the folder name 0xeeee...eeee), and
logoURI (pointing to the token logo in this folder or an appropriate CDN path);
if the token is deprecated add removed: true and a reason string. Follow the
format and field names used by other files in src/public/images/56 (ensure
proper JSON types and values and that address checksum/format matches repo
convention).

@alfetopito alfetopito merged commit f9358b4 into main Sep 16, 2025
6 checks passed
@alfetopito alfetopito deleted the feat/add-bnb-native-logo branch September 16, 2025 15:45
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants