Skip to content

Commit

Permalink
Merge pull request #64 from IndexCoop/feat/add-base
Browse files Browse the repository at this point in the history
feat: add base
  • Loading branch information
janndriessen authored Aug 29, 2024
2 parents 949eca0 + 62a1210 commit 7604fd1
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import {ARBITRUM_TOKENS, INDEX_COOP_ARBITRUM_TOKENS} from './lists/arbitrum';
import AVALANCHE_TOKENS, {INDEX_COOP_AVALANCHE_TOKENS} from './lists/avalanche';
import {BASE_TOKENS, INDEX_COOP_BASE_TOKENS} from './lists/base';
import {INDEX_COOP_MAINNET_TOKENS, MAINNET_TOKENS} from './lists/mainnet';
import MATIC_TOKENS, {INDEX_COOP_MATIC_TOKENS} from './lists/matic';
import OPTIMISM_TOKENS, {INDEX_COOP_OPTIMISM_TOKENS} from './lists/optimism';
Expand All @@ -23,6 +24,8 @@ export const ArbitrumTokens = ARBITRUM_TOKENS;
export const IndexCoopArbitrumTokens = INDEX_COOP_ARBITRUM_TOKENS;
export const AvalancheTokens = AVALANCHE_TOKENS;
export const IndexCoopAvalancheTokens = INDEX_COOP_AVALANCHE_TOKENS;
export const BaseTokens = BASE_TOKENS;
export const IndexCoopBaseTokens = INDEX_COOP_BASE_TOKENS;
export const MainnetTokens = MAINNET_TOKENS;
export const IndexCoopMainnetTokens = INDEX_COOP_MAINNET_TOKENS;
export const MaticTokens = MATIC_TOKENS;
Expand Down
38 changes: 38 additions & 0 deletions src/lists/base/base.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import {TokenData} from '../../types';

export const BASE: TokenData[] = [
{
name: 'Dai Stablecoin',
address: '0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb',
symbol: 'DAI',
decimals: 18,
chainId: 8453,
logoURI: 'https://assets.coingecko.com/coins/images/9956/large/4943.png',
},
{
name: 'USD Base Coin',
address: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
symbol: 'USDbC',
decimals: 6,
chainId: 8453,
logoURI:
'https://assets.coingecko.com/coins/images/31164/large/baseusdc.jpg',
},
{
name: 'USD Coin',
address: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
symbol: 'USDC',
decimals: 6,
chainId: 8453,
logoURI:
'https://assets.coingecko.com/coins/images/6319/large/USD_Coin_icon.png',
},
{
name: 'Wrapped Ether',
address: '0x4200000000000000000000000000000000000006',
symbol: 'WETH',
decimals: 18,
chainId: 8453,
logoURI: 'https://assets.coingecko.com/coins/images/2518/large/weth.png',
},
];
20 changes: 20 additions & 0 deletions src/lists/base/index-tokens.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import {TokenData} from '../../types';

export const INDEX_COOP_BASE_TOKENS: TokenData[] = [
{
address: '0xC884646E6C88d9b172a23051b38B0732Cc3E35a6',
chainId: 8453,
name: 'Index Coop Ethereum 2x Index',
symbol: 'ETH2X',
decimals: 18,
logoURI: 'https://index-app.vercel.app/assets/eth2x.png',
},
{
address: '0x329f6656792c7d34D0fBB9762FA9A8F852272acb',
chainId: 8453,
name: 'Index Coop Ethereum 3x Index',
symbol: 'ETH3X',
decimals: 18,
logoURI: 'https://index-app.vercel.app/assets/eth3x.png',
},
];
6 changes: 6 additions & 0 deletions src/lists/base/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {BASE} from './base';
import {INDEX_COOP_BASE_TOKENS} from './index-tokens';

export {INDEX_COOP_BASE_TOKENS} from './index-tokens';

export const BASE_TOKENS = [...BASE, ...INDEX_COOP_BASE_TOKENS];

0 comments on commit 7604fd1

Please sign in to comment.