Commit b76445e
authored
refactor: mf-6776 remove all NFT functionality across the entire codebase (#12383)
* refactor: remove all NFT functionality across the entire codebase
Phase 1: Delete pure NFT plugins (Avatar, Collectible, ArtBlocks)
Phase 2: Clean NFT parts from mixed plugins (RedPacket, Tips, Trader, RSS3, Approval, ProfileCard)
Phase 3: Delete content-script NFT injections (Twitter, Facebook, Instagram)
Phase 4: Delete popup NFT pages (CollectibleDetail, NFTAvatarPicker, UnlockERC721Token, NonFungibleTokenSection, WalletCollections)
Phase 5: Delete shared NFT UI components (NFTCard, NFTFallbackImage, NFTList, CollectibleList, AddCollectibles, ERC721Boundary, modals)
Phase 6: Delete NFT web3 hooks (10 useNonFungible* + 2 useERC721* hooks)
Phase 7: Delete NFT web3 providers (NFTScan, NFTSpam, HubNonFungible)
Phase 8: Delete NFT types, contracts, constants, events, telemetry, icons, locales
Phase 9: Final verification - fix TypeScript errors, remove dead code (Zora, Alchemy, OpenSea, LooksRare, MagicEden, SimpleHash, AvatarStore, etc.), add back needed SourceType values, simplify TransactionPreview/TokenTransactionConfirmModal
Retained: ERC721.json/ERC1155.json ABIs for transaction decoding, ERC721 transaction descriptor, token redpacket (non-NFT) functionality
* fixup! refactor: remove all NFT functionality across the entire codebase1 parent f38ad4e commit b76445e
389 files changed
Lines changed: 2157 additions & 30570 deletions
File tree
- packages
- icons
- brands
- general
- plugins
- mask
- content-script
- components
- CompositionDialog
- InjectedComponents
- DecryptedPost
- ProfileCard
- site-adaptor-infra
- site-adaptors
- facebook.com
- injection/NFT
- instagram.com
- injection/NFT
- twitter.com
- injection/NFT
- popups
- components
- NFTAvatarPicker
- SelectProvider
- TransactionPreview
- UnlockERC721Token
- hooks
- pages
- Personas/PersonaAvatarSetting
- Wallet
- AddToken
- CollectibleDetail
- Interaction
- SelectWallet
- Transfer
- components/WalletAssets
- plugins
- Approval/src/SiteAdaptor
- ArtBlocks
- src
- SiteAdaptor
- apis
- hooks
- icon
- pipes
- tests
- Avatar
- src
- Application
- SiteAdaptor
- contexts
- hooks
- utils
- Collectible
- src
- SiteAdaptor
- CardDialog
- tabs
- Card
- tabs
- Context
- hooks
- helpers
- tests
- Debugger/src/SiteAdaptor/components
- RSS3/src/SiteAdaptor/components
- FeedActions
- FeedCard
- RedPacket/src
- SiteAdaptor
- Conditions
- NftRedPacket
- SolanaRedpacketDialog
- assets
- components
- contexts
- hooks
- views
- Worker
- schemas
- Tips/src
- components
- NFTSection
- contexts/Tip
- Trader/src
- SiteAdaptor/trending
- apis
- trending
- types
- types/src
- web3-constants/evm
- web3-contracts
- abis
- types
- web3-helpers/src
- web3-hooks
- base/src
- evm/src
- web3-providers/src
- Alchemy
- apis
- AvatarStore
- helpers
- Chainbase
- apis
- LooksRare
- MagicEden
- NFTScan
- apis
- helpers
- tests
- __snapshots__
- types
- NFTSpam
- OpenSea
- RedPacket
- Trending
- Twitter/apis
- Web3
- Base
- apis
- EVM
- apis
- state
- TransactionFormatter
- descriptors
- Flow/apis
- Router/types
- Solana/apis
- Zora
- helpers
- types
- web3-telemetry/src/types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Lines changed: 4 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 3 | + | |
11 | 4 | | |
12 | 5 | | |
13 | 6 | | |
| |||
73 | 66 | | |
74 | 67 | | |
75 | 68 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 69 | + | |
81 | 70 | | |
82 | 71 | | |
83 | 72 | | |
| |||
92 | 81 | | |
93 | 82 | | |
94 | 83 | | |
95 | | - | |
| 84 | + | |
96 | 85 | | |
97 | 86 | | |
98 | 87 | | |
99 | | - | |
| 88 | + | |
100 | 89 | | |
101 | 90 | | |
102 | 91 | | |
| |||
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 3 | + | |
9 | 4 | | |
10 | 5 | | |
11 | 6 | | |
| |||
155 | 150 | | |
156 | 151 | | |
157 | 152 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 153 | + | |
163 | 154 | | |
164 | 155 | | |
165 | 156 | | |
| |||
Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 40 | | |
50 | 41 | | |
51 | 42 | | |
52 | 43 | | |
53 | | - | |
54 | 44 | | |
55 | 45 | | |
56 | 46 | | |
| |||
152 | 142 | | |
153 | 143 | | |
154 | 144 | | |
155 | | - | |
156 | 145 | | |
157 | 146 | | |
158 | 147 | | |
| |||
0 commit comments