Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions packages/icons/brands/X2Y2.svg

This file was deleted.

5 changes: 0 additions & 5 deletions packages/icons/icon-generated-as-jsx.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/icons/icon-generated-as-url.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const PLATFORM_COSTS: {
[k in SourceType]?: number
} = {
[SourceType.OpenSea]: 2.5,
[SourceType.X2Y2]: 0.5,
[SourceType.LooksRare]: 2,
}

Expand Down
9 changes: 0 additions & 9 deletions packages/plugins/Collectible/src/helpers/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ const RULES = [
address: (matched: string) => matched.replace('zora', ZORA_COLLECTION_ADDRESS),
},

// x2y2
{
hosts: ['x2y2.io'],
pathname: /^\/eth\/(0x[\dA-Fa-f]{40})\/(\d+)/,
pluginID: NetworkPluginID.PLUGIN_EVM,
chainId: ChainIdEVM.Mainnet,
provider: SourceType.X2Y2,
},

// looksrare
{
hosts: ['looksrare.org'],
Expand Down
12 changes: 0 additions & 12 deletions packages/plugins/Collectible/tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,6 @@ describe('getPayloadFromURL', () => {
},
},

// x2y2
{
give: 'https://x2y2.io/eth/0x6d19568A959FCB4211852F6472d3df7b67C6Cd54/332',
expected: {
pluginID: NetworkPluginID.PLUGIN_EVM,
chainId: ChainIdEVM.Mainnet,
address: '0x6d19568A959FCB4211852F6472d3df7b67C6Cd54',
tokenId: '332',
provider: SourceType.X2Y2,
},
},

// loosrare
{
give: 'https://looksrare.org/collections/0x60E4d786628Fea6478F785A6d7e704777c86a7c6/28850',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const IconMap: Partial<Record<SourceType, GeneratedIcon>> = {
[SourceType.CoinGecko]: Icons.CoinGecko,
[SourceType.Uniswap]: Icons.Uniswap,
[SourceType.LooksRare]: Icons.LooksRare,
[SourceType.X2Y2]: Icons.X2Y2,
[SourceType.SimpleHash]: Icons.SimpleHash,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SourceType } from '@masknet/web3-shared-base'
import { Stack } from '@mui/material'
import { SourceProviderIcon } from '../index.js'

const sourceList = [SourceType.LooksRare, SourceType.OpenSea, SourceType.Rarible, SourceType.X2Y2]
const sourceList = [SourceType.LooksRare, SourceType.OpenSea, SourceType.Rarible]

interface SourceProviderSwitcherProps {
// default is all
Expand Down
1 change: 0 additions & 1 deletion packages/web3-providers/src/Trending/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export const CURRENCIES_MAP: Record<SourceType, undefined | TrendingAPI.Currency
},
],
[SourceType.UniswapInfo]: undefined,
[SourceType.X2Y2]: undefined,
[SourceType.Chainbase]: undefined,
[SourceType.Zerion]: undefined,
[SourceType.Rarible]: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import * as NFTScanNonFungibleTokenEVM from /* webpackDefer: true */ '../../../N
import * as R2D2TokenList from /* webpackDefer: true */ '../../../R2D2/index.js'
import * as Rabby from /* webpackDefer: true */ '../../../Rabby/index.js'
import * as SimpleHashEVM from /* webpackDefer: true */ '../../../SimpleHash/index.js'
import * as X2Y2 from /* webpackDefer: true */ '../../../X2Y2/index.js'
import * as ZerionNonFungibleToken from /* webpackDefer: true */ '../../../Zerion/index.js'
import * as Zora from /* webpackDefer: true */ '../../../Zora/index.js'
import { BaseHubNonFungible } from '../../Base/apis/HubNonFungible.js'
Expand All @@ -26,7 +25,6 @@ export class HubNonFungibleAPI extends BaseHubNonFungible<ChainId, SchemaType> {
| TokenListAPI.Provider<ChainId, SchemaType>
>(
{
[SourceType.X2Y2]: X2Y2.X2Y2,
[SourceType.Chainbase]: ChainbaseNonFungibleToken.ChainbaseNonFungibleToken,
[SourceType.Zerion]: ZerionNonFungibleToken.ZerionNonFungibleToken,
[SourceType.NFTScan]: NFTScanNonFungibleTokenEVM.NFTScanNonFungibleTokenEVM,
Expand All @@ -41,7 +39,6 @@ export class HubNonFungibleAPI extends BaseHubNonFungible<ChainId, SchemaType> {
[
SimpleHashEVM.SimpleHashEVM,
NFTScanNonFungibleTokenEVM.NFTScanNonFungibleTokenEVM,
X2Y2.X2Y2,
ZerionNonFungibleToken.ZerionNonFungibleToken,
AlchemyEVM.AlchemyEVM,
Zora.Zora,
Expand Down
2 changes: 0 additions & 2 deletions packages/web3-providers/src/X2Y2/constants.ts

This file was deleted.

181 changes: 0 additions & 181 deletions packages/web3-providers/src/X2Y2/index.ts

This file was deleted.

53 changes: 0 additions & 53 deletions packages/web3-providers/src/X2Y2/types.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/web3-shared/base/src/helpers/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const resolveSourceTypeName = createLookupTableResolver<SourceType, strin
[SourceType.RaritySniper]: 'RaritySniper',
[SourceType.TraitSniper]: 'TraitSniper',
[SourceType.Chainbase]: 'Chainbase',
[SourceType.X2Y2]: 'X2Y2',
[SourceType.MagicEden]: 'MagicEden',
[SourceType.Element]: 'Element',
[SourceType.Flow]: 'Flow',
Expand Down
1 change: 0 additions & 1 deletion packages/web3-shared/base/src/specs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export enum SourceType {
Alchemy_EVM = 'Alchemy_EVM',
Alchemy_FLOW = 'Alchemy_FLOW',
Chainbase = 'Chainbase',
X2Y2 = 'X2Y2',
MagicEden = 'MagicEden',
Element = 'Element',
Solsea = 'Solsea',
Expand Down