Skip to content

Commit

Permalink
add tokenlists for linea, lineagoerli; bump metadata version for publ…
Browse files Browse the repository at this point in the history
…ishing
  • Loading branch information
dmosites committed Aug 6, 2023
1 parent fa97d02 commit cb70dea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 26 deletions.
24 changes: 0 additions & 24 deletions tools/metadata/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,4 @@ export default [
symbol: 'DAI',
chainId: 5,
},
/*
* Linea-Goerli Defaults
*/
{
name: 'Dai',
address: '0x8741ba6225a6bf91f9d73531a98a89807857a2b3',
decimals: 18,
symbol: 'DAI',
chainId: 59140,
},
{
name: 'Tether USD',
address: '0x1990BC6dfe2ef605Bfc08f5A23564dB75642Ad73',
decimals: 6,
symbol: 'USDT',
chainId: 59140,
},
{
name: 'USDC',
address: '0xf56dc6695cF1f5c364eDEbC7Dc7077ac9B586068',
decimals: 6,
symbol: 'USDC',
chainId: 59140,
},
] as TokenInfo[]
2 changes: 1 addition & 1 deletion tools/metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/metadata",
"version": "4.0.11",
"version": "4.0.12",
"description": "AirSwap: Token Metadata for Developers",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion tools/metadata/test/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Metadata: Goerli', async () => {
let result: any

it('fetches all known tokens', async () => {
result = await getKnownTokens(ChainIds.MAINNET)
result = await getKnownTokens(ChainIds.GOERLI)
expect(result.tokens.length).to.not.equal(0)
})
it('checks that ETH does not exist', async () => {
Expand Down
6 changes: 6 additions & 0 deletions tools/metadata/tokenlists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ export default {
'https://raw.githubusercontent.com/pangolindex/tokenlists/main/ab.tokenlist.json',
'https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/joe.tokenlist.json',
],
[ChainIds.LINEAGOERLI]: [
'https://raw.githubusercontent.com/Consensys/linea-token-list/main/json/linea-goerli-token-shortlist.json',
],
[ChainIds.LINEA]: [
'https://raw.githubusercontent.com/Consensys/linea-token-list/main/json/linea-mainnet-token-shortlist.json',
],
} as Record<number, string[]>

0 comments on commit cb70dea

Please sign in to comment.