Skip to content

Commit

Permalink
Add Base config + WETH and BAL
Browse files Browse the repository at this point in the history
  • Loading branch information
timjrobinson committed Jul 26, 2023
1 parent c6a7fe0 commit e82b6b6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/config/base.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default {
name: 'base',
coingecko: {
platformId: 'base',
},
trustWalletNetwork: 'base',
addresses: {
multicaller: '0xca11bde05977b3631167028862be2a173976ca11',
},
}
2 changes: 2 additions & 0 deletions src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Network, Configs } from '../types'
import arbitrum from './arbitrum'
import avalanche from './avalanche'
import base from './base'
import gnosis from './gnosis'
import goerli from './goerli'
import ethereum from './ethereum'
Expand All @@ -12,6 +13,7 @@ import zkevm from './zkevm'
const config: Configs = {
[Network.Arbitrum]: arbitrum,
[Network.Avalanche]: avalanche,
[Network.Base]: base,
[Network.Gnosis]: gnosis,
[Network.Goerli]: goerli,
[Network.Ethereum]: ethereum,
Expand Down
2 changes: 2 additions & 0 deletions src/tokenlists/balancer/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Network, TokensForList } from '../../types'
import arbitrum from './tokens/arbitrum'
import avalanche from './tokens/avalanche'
import base from './tokens/base'
import gnosis from './tokens/gnosis'
import goerli from './tokens/goerli'
import ethereum from './tokens/ethereum'
Expand All @@ -19,4 +20,5 @@ export const tokens: TokensForList = {
[Network.Zkevm]: zkevm,
[Network.Avalanche]: avalanche,
[Network.Sepolia]: sepolia,
[Network.Base]: base,
}
4 changes: 4 additions & 0 deletions src/tokenlists/balancer/tokens/base.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
'0x4200000000000000000000000000000000000006', // WETH
'0x7c6b91D9Be155A6Db01f749217d76fF02A7227F2', // BAL
]
5 changes: 3 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { TokenInfo, TokenList } from '@uniswap/token-lists'
export enum Network {
Ethereum = '1',
Goerli = '5',
Polygon = '137',
Arbitrum = '42161',
Optimism = '10',
Gnosis = '100',
Polygon = '137',
Zkevm = '1101',
Base = '8453',
Arbitrum = '42161',
Avalanche = '43114',
Sepolia = '11155111',
}
Expand Down

0 comments on commit e82b6b6

Please sign in to comment.