Skip to content

Commit

Permalink
create ExchangeIcon, support Exchanges and add first set of exchanges
Browse files Browse the repository at this point in the history
  • Loading branch information
0xa3k5 committed Jan 11, 2025
1 parent 0cc5d9f commit ae6d8ce
Show file tree
Hide file tree
Showing 100 changed files with 3,268 additions and 83,285 deletions.
Binary file modified bun.lockb
Binary file not shown.
4,243 changes: 2,138 additions & 2,105 deletions docs/icons.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"build": "turbo build && bun run post-build",
"build:packages": "bun run build:common && bun run build:utils && bun run build:core && bun run build:react",
"build:apps": "bun run build:website && bun run build:figma",
"build:common": "bun run build --filter@web3icons/common",
"build:utils": "bun run --filter@webi3cons/utils",
"build:core": "bun run build --filter@web3icons/core",
"build:react": "bun run build --filter@webi3cons/react",
"build:website": "bun run build --filter@webi3cons/website",
"build:figma": "bun run build --filter@webi3cons/figma-plugin",
"build:common": "bun run build --filter @web3icons/common",
"build:utils": "bun run --filter @webi3cons/utils",
"build:core": "bun run build --filter @web3icons/core",
"build:react": "bun run build --filter @webi3cons/react",
"build:website": "bun run build --filter @webi3cons/website",
"build:figma": "bun run build --filter @webi3cons/figma-plugin",
"post-build": "bun run generate-icons-md && bun run lint && bun run format",
"dev": "turbo dev",
"lint": "turbo lint",
Expand Down
126 changes: 126 additions & 0 deletions packages/common/src/metadata/exchanges.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,131 @@
"name": "Coinbase",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "1inch",
"name": "1inch",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "balancer",
"name": "Balancer",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "bancor",
"name": "Bancor",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "binance",
"name": "Binance",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "bithumb",
"name": "Bithumb",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "bitstamp",
"name": "Bitstamp",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "btcturk",
"name": "BtcTurk",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "crypto-com",
"name": "Crypto.com",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "gate-io",
"name": "Gate Io",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "gemini",
"name": "Gemini",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "kraken",
"name": "Kraken",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "odos",
"name": "Odos",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "okx",
"name": "OkX",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "pancake-swap",
"name": "Pancake Swap",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "para-swap",
"name": "ParaSwap",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "paribu",
"name": "Paribu",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "sushiswap",
"name": "Sushi Swap",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "swissborg",
"name": "SwissBorg",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "uniswap",
"name": "Uniswap",
"variants": ["branded", "mono"],
"type": "dex"
},
{
"id": "upbit",
"name": "UpBit",
"variants": ["branded", "mono"],
"type": "cex"
},
{
"id": "cowswap",
"name": "Cow Swap",
"variants": ["branded", "mono"],
"type": "dex"
}
]
126 changes: 126 additions & 0 deletions packages/common/src/metadata/exchanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,130 @@ export const exchanges: IExchangeMetadata[] = [
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: '1inch',
name: '1inch',
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: 'balancer',
name: 'Balancer',
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: 'bancor',
name: 'Bancor',
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: 'binance',
name: 'Binance',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'bithumb',
name: 'Bithumb',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'bitstamp',
name: 'Bitstamp',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'btcturk',
name: 'BtcTurk',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'crypto-com',
name: 'Crypto.com',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'gate-io',
name: 'Gate Io',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'gemini',
name: 'Gemini',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'kraken',
name: 'Kraken',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'odos',
name: 'Odos',
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: 'okx',
name: 'OkX',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'pancake-swap',
name: 'Pancake Swap',
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: 'para-swap',
name: 'ParaSwap',
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: 'paribu',
name: 'Paribu',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'sushiswap',
name: 'Sushi Swap',
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: 'swissborg',
name: 'SwissBorg',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'uniswap',
name: 'Uniswap',
variants: ['branded', 'mono'],
type: 'dex',
},
{
id: 'upbit',
name: 'UpBit',
variants: ['branded', 'mono'],
type: 'cex',
},
{
id: 'cowswap',
name: 'Cow Swap',
variants: ['branded', 'mono'],
type: 'dex',
},
]
9 changes: 7 additions & 2 deletions packages/common/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,10 @@ export interface IconMap {
[key: string]: string
}

export type TMetadata = INetworkMetadata | IWalletMetadata | ITokenMetadata
export type TRaw = INetworkRaw | ITokenRaw | IWalletRaw
export type TMetadata =
| INetworkMetadata
| IWalletMetadata
| ITokenMetadata
| IExchangeMetadata

export type TRaw = INetworkRaw | ITokenRaw | IWalletRaw | IExchangeRaw
Loading

0 comments on commit ae6d8ce

Please sign in to comment.