Skip to content

SYS-4595 show asset balance on explorer#305

Merged
nahuseyoum merged 6 commits intomainfrom
nahu-sys-4595
Jun 24, 2025
Merged

SYS-4595 show asset balance on explorer#305
nahuseyoum merged 6 commits intomainfrom
nahu-sys-4595

Conversation

@nahuseyoum
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 AssetBalance and AssetDetailsWithProvider UI components to fetch and display asset balances per address.
  • Extended the shared GraphQL layer with assets queries and updated codegen and client to support asset data.
  • Updated configuration, default network values, and environment domains to use “sepolia” and .io URLs.

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

Comment thread packages/shared/ui/src/organisms/AssetBalance/assetBalance.tsx Outdated
Comment thread packages/shared/ui/src/organisms/AssetBalance/asset.tsx Outdated
Comment thread packages/shared/ui/src/organisms/AssetBalance/asset.tsx
Comment thread packages/shared/ui/src/molecules/EtherScanLink.tsx Outdated
@nahuseyoum nahuseyoum merged commit 9a206e4 into main Jun 24, 2025
5 checks passed
@nahuseyoum nahuseyoum deleted the nahu-sys-4595 branch June 24, 2025 20:00
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.

2 participants