SYS-4595 show asset balance on explorer#305
Merged
nahuseyoum merged 6 commits intomainfrom Jun 24, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new asset balance display in the block explorer by adding GraphQL queries for assets and balances, rendering them in UI components, and wiring up the necessary configuration.
- Added
AssetBalanceandAssetDetailsWithProviderUI components to fetch and display asset balances per address. - Extended the shared GraphQL layer with
assetsqueries and updated codegen and client to support asset data. - Updated configuration, default network values, and environment domains to use “sepolia” and
.ioURLs.
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/shared/ui/src/organisms/index.ts | Export AssetBalance from organisms index |
| packages/shared/ui/src/organisms/AssetBalance/index.tsx | Re-export asset and assetBalance modules |
| packages/shared/ui/src/organisms/AssetBalance/assetBalance.tsx | New component to query and render a single asset balance |
| packages/shared/ui/src/organisms/AssetBalance/asset.tsx | New component to list assets and render AssetBalance |
| packages/shared/ui/src/organisms/AssetBalance/asset.css | Styles for the asset balance components |
| packages/shared/ui/src/molecules/EtherScanLink.tsx | Adjusted fallback rendering logic for link text |
| packages/shared/gql/src/index.ts | Export new assets module from shared gql |
| packages/shared/gql/src/assets/queries/balance.query.graphql | Added AssetBalanceQuery |
| packages/shared/gql/src/assets/queries/assets.query.graphql | Added AssetQuery |
| packages/shared/gql/src/assets/index.ts | Re-export generated asset documents |
| packages/shared/gql/src/assets/generated.ts | Generated types and documents for assets and balances |
| packages/shared/gql/src/assets/client/index.ts | New URQL client factory for assets |
| packages/shared/gql/codegen.ts | Included assets in codegen configuration |
| packages/shared/eth/src/test/services/ethers.test.ts | Updated default network in test from rinkeby to sepolia |
| packages/shared/core/src/config/types.ts | Added assets.url to ExplorerConfig type |
| packages/shared/core/src/config/explorer.ts | Configured assets explorer URL |
| packages/shared/core/src/config/app.ts | Updated domain examples to .io |
| packages/app/uniswap/.env.example | Updated tenant domain to .io |
| packages/app/liquidity/.env.example | Updated tenant domain to .io |
| packages/app/block-explorer/ui/src/utils/etherscanUrl.ts | Updated default network fallback to sepolia |
| packages/app/block-explorer/ui/src/components/address/AddressDetails.tsx | Integrated AssetDetailsWithProvider into address view |
| packages/app/block-explorer/ui/next.config.js | Added ASSETS_EXPLORER_URL environment variable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.