Repository navigation
Refactor address page - #84
Merged
Merged
Conversation
- Move all inline styles from AddressDisplay.tsx to components.css - Add CSS classes for address header, ENS name display - Add CSS classes for wallet connect buttons and chain selector - Add CSS classes for contract function buttons (read/write) - Add CSS classes for function forms, inputs, and results - Add CSS classes for transaction status and history section - Add CSS classes for sourcify link and table links
- Add AddressType for account, contract, erc20, erc721, erc1155 - Create fetchAddressWithType utility combining data fetch and type detection - Detect token types via metadata first, then ERC165/ERC20 on-chain detection - Add separate display components for each address type - Extract shared components: AddressHeader, BalanceSection, ContractDetails, etc. - Add CSS classes for address type indicators and token badges
Add dedicated token detail pages accessible via /:networkId/address/:contract/:tokenId route that display individual NFT metadata including: - Token image, name, description, and properties/attributes - Collection info (name, symbol) fetched from contract - Owner and approval status (ERC721) / balance lookup (ERC1155) - Token URI with link to raw metadata - Collapsible raw metadata JSON section Technical changes: - Create shared hexUtils.ts for browser-compatible hex decoding - Add erc721Metadata.ts and erc1155Metadata.ts utility modules - Add NFTTokenDetail wrapper with auto-detection via ERC165 - Remove inline CSS styles in favor of utility classes - Add NFT-specific CSS styles to components.css
AugustoL
marked this pull request as ready for review
December 6, 2025 00:37
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.
mere after #83
Summary
This PR refactors the address page with type-based display components and adds dedicated NFT token detail pages.
Address Page Refactor
NFT Token Detail Pages
Add dedicated token detail pages accessible via
/:networkId/address/:contract/:tokenIdroute:Technical Changes
hexUtils.tsfor browser-compatible hex decoding (replaces Node.js Buffer)erc721Metadata.tsanderc1155Metadata.tsutility modulesNFTTokenDetailwrapper with auto-detection via ERC165 supportsInterface.hidden,.word-break-all)New Files
src/components/pages/address/displays/- Type-specific display componentssrc/components/pages/address/shared/- Reusable address componentssrc/components/pages/tokenDetails/- NFT token detail pagessrc/utils/hexUtils.ts- Hex decoding utilitiessrc/utils/erc721Metadata.ts- ERC721 metadata fetchingsrc/utils/erc1155Metadata.ts- ERC1155 metadata fetching"