Commit 4201cb2
authored
MPT Object Page Revamp (#1264)
## High Level Overview of Change
1. Revamp the MPT Object page
* Header has the `General Overview`, `Market Data` and `Settings`
sections
* Add tables displaying all transactions and transfers involving the MPT
* Add a holders table, sorted in descending order by amount
2. Refactor the IOU Token page in order to reuse its components for MPT
since both MPT and IOU are tokens. This involves moving reusable
components to `src/containers/Token/shared/` and placing IOU specific
logic in `src/containers/Token/IOU/`
<!--
Please include a summary/list of the changes.
If too broad, please consider splitting into multiple PRs.
-->
### Context of Change
<!--
Please include the context of a change.
If a bug fix, when was the bug introduced? What was the behavior?
If a new feature, why was this architecture chosen? What were the
alternatives?
If a refactor, how is this better than the previous implementation?
If there is a design document for this feature, please link it here.
-->
The current XRPL Explorer Multi-Purpose Token (MPT) page provides only
on-ledger metadata of MPT tokens, i.e., Token ID, Issuer, Flags. It
lacks interesting information such as market and transaction data. This
PR revamp the XRPL Explorer MPT Token page to deliver a more organized,
performant, and informative experience. The new page will:
1. Present data in an organized format, e.g., General Overview, Market
Data, Settings, Transactions/transfers
2. Show relevant transaction and transfer data
3. Maintain fast load times, even for tokens with high data volume
### Type of Change
<!--
Please check relevant options, delete irrelevant ones.
-->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Refactor (non-breaking change that only restructures code)
- [x] Tests (You added tests for code that already exists, or your new
feature included in this PR)
- [ ] Documentation Updates
- [x] Translation Updates
- [ ] Release
### Codebase Modernization
<!--
In an effort to modernize the codebase, you should convert the files
that you work with to React Hooks and TypeScript,
and update tests to use the React Testing Library instead of Enzyme. If
this is not possible (e.g. it's too many
changes, touching too many files, etc.) please explain why here.
-->
- [ ] Updated files to React Hooks
- [ ] Updated files to TypeScript
- [ ] Updated tests to React Testing Library
## Before / After
1. This MPT has metadata that follows the recommended metadata
standards. Its metadata was provided using short keys. The new page
shows the metadata in long-key format, but the old page shows the short
keys.
* New:
https://testnet.dev.ripplex.io/mpt/00C81C870778A061899843D4E120E4CDF71BE9613D49A3B7
* Old:
https://testnet.xrpl.org/mpt/00C81C870778A061899843D4E120E4CDF71BE9613D49A3B7
2. This MPT has metadata that does not follow the recommended metadata
standards.
* New:
https://testnet.dev.ripplex.io/mpt/00C82BB9B57025920E7575FB97A3930619B73F3DFC630C29
* Old:
https://testnet.xrpl.org/mpt/00C82BB9B57025920E7575FB97A3930619B73F3DFC630C29
3. This MPT's metadata is a non JSON string
* New:
https://testnet.dev.ripplex.io/mpt/00C84CF7586BF37DFD607FA80A5A5FB07D8DD3AAEBE5E831
* Old:
https://testnet.xrpl.org/mpt/00C84CF7586BF37DFD607FA80A5A5FB07D8DD3AAEBE5E831
4. This MPT doesn't have metadata.
* New:
https://testnet.dev.ripplex.io/mpt/00C88EE826D4F4C72605258FB1A895A16343C11CADD98B55
* Old:
https://testnet.xrpl.org/mpt/00C88EE826D4F4C72605258FB1A895A16343C11CADD98B55
5. This MPT has transfer data
* New:
https://livenet.dev.ripplex.io/mpt/057D54EE52340A529B506C4B630ADE0EEE8DA51654A41628
* Old:
https://livenet.xrpl.org/mpt/057D54EE52340A529B506C4B630ADE0EEE8DA51654A41628
<!--
If just refactoring / back-end changes, this can be just an in-English
description of the change at a technical level.
If a UI change, screenshots should be included.
-->
For reference:
1. MPT Token Figma Design:
https://www.figma.com/design/ANoKE7Qr7gsNrRDAyjVTkH/Tokens-and-search?node-id=2736-822&t=0GhNSGgvtMrCWYTy-0
2. RLUSD Token Page:
https://livenet.xrpl.org/token/524C555344000000000000000000000000000000.rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De
## Test Plan
<!--
Please describe the tests that you ran to verify your changes and
provide instructions so that others can reproduce.
-->
* [Done] Unit Tests
* [Done] Manual Tests1 parent 1b45895 commit 4201cb2
File tree
116 files changed
+4696
-2336
lines changed- public/locales
- ca-CA
- en-US
- es-ES
- fr-FR
- ja-JP
- ko-KR
- my-MM
- src
- containers
- Accounts/AccountAsset
- assetTables
- test
- App
- MPT
- MPTHeader
- test
- test
- Token
- IOU
- Header
- test
- TablePicker
- api
- components
- DexTradeTable
- hooks
- services
- test
- Header
- TablePicker
- api
- components
- hooks
- services
- utils
- utils
- MPT
- Header
- TablePicker
- api
- test
- Header
- TablePicker
- api
- TokenHeader
- TokenTablePicker
- test
- components
- TransfersTable
- test
- components
- rippled
- lib
- test
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
116 files changed
+4696
-2336
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| |||
707 | 708 | | |
708 | 709 | | |
709 | 710 | | |
710 | | - | |
| 711 | + | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
| |||
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | 723 | | |
730 | 724 | | |
731 | 725 | | |
| |||
738 | 732 | | |
739 | 733 | | |
740 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
742 | 747 | | |
743 | 748 | | |
744 | 749 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | 750 | | |
750 | | - | |
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
| 755 | + | |
764 | 756 | | |
765 | 757 | | |
766 | 758 | | |
767 | | - | |
768 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
769 | 764 | | |
770 | 765 | | |
771 | 766 | | |
772 | 767 | | |
773 | 768 | | |
774 | 769 | | |
775 | | - | |
776 | | - | |
777 | 770 | | |
778 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
779 | 778 | | |
780 | 779 | | |
781 | 780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
736 | 737 | | |
737 | 738 | | |
738 | 739 | | |
739 | | - | |
| 740 | + | |
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| |||
748 | 749 | | |
749 | 750 | | |
750 | 751 | | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
758 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
759 | 764 | | |
760 | 765 | | |
761 | 766 | | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | 767 | | |
767 | | - | |
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
| 772 | + | |
781 | 773 | | |
782 | 774 | | |
783 | 775 | | |
784 | | - | |
785 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
786 | 781 | | |
787 | 782 | | |
788 | 783 | | |
789 | 784 | | |
790 | 785 | | |
791 | 786 | | |
792 | | - | |
793 | | - | |
794 | 787 | | |
795 | 788 | | |
796 | | - | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
797 | 795 | | |
798 | 796 | | |
799 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| |||
708 | 709 | | |
709 | 710 | | |
710 | 711 | | |
711 | | - | |
| 712 | + | |
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
| |||
720 | 721 | | |
721 | 722 | | |
722 | 723 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | 724 | | |
731 | 725 | | |
732 | 726 | | |
733 | 727 | | |
734 | 728 | | |
735 | 729 | | |
736 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
737 | 737 | | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
738 | 743 | | |
739 | 744 | | |
740 | 745 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | 746 | | |
746 | | - | |
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
| 751 | + | |
760 | 752 | | |
761 | 753 | | |
762 | 754 | | |
763 | | - | |
764 | 755 | | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
765 | 760 | | |
766 | 761 | | |
767 | 762 | | |
768 | 763 | | |
769 | 764 | | |
770 | 765 | | |
771 | | - | |
772 | | - | |
773 | 766 | | |
774 | 767 | | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
775 | 774 | | |
776 | 775 | | |
777 | 776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| |||
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
714 | | - | |
| 715 | + | |
715 | 716 | | |
716 | 717 | | |
717 | 718 | | |
| |||
723 | 724 | | |
724 | 725 | | |
725 | 726 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | 727 | | |
734 | 728 | | |
735 | 729 | | |
736 | 730 | | |
737 | 731 | | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
738 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
739 | 744 | | |
740 | 745 | | |
741 | 746 | | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | 747 | | |
747 | | - | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
| 752 | + | |
761 | 753 | | |
762 | 754 | | |
763 | 755 | | |
764 | | - | |
765 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
766 | 761 | | |
767 | 762 | | |
768 | 763 | | |
769 | 764 | | |
770 | 765 | | |
771 | 766 | | |
772 | | - | |
773 | | - | |
774 | 767 | | |
775 | 768 | | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
776 | 775 | | |
777 | 776 | | |
778 | 777 | | |
| |||
0 commit comments