Skip to content

Commit

Permalink
prettier (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnshaoyu authored Jul 5, 2023
1 parent 395b5d6 commit a273873
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://uniswap.org"
},
"description": "📚 The Token Lists specification",
"version": "1.0.0-beta.32",
"version": "1.0.0-beta.33",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export interface TokenList {
readonly timestamp: string;
readonly version: Version;
readonly tokens: TokenInfo[];
readonly tokenMap?: {
readonly [key: string]: TokenInfo;
};
readonly keywords?: string[];
readonly tags?: Tags;
readonly logoURI?: string;
Expand Down
24 changes: 24 additions & 0 deletions test/schema/example.tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,30 @@
]
}
],
"tokenMap": {
"1_0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": {
"chainId": 1,
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"logoURI": "ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM",
"tags": [
"stablecoin"
]
},
"1_0x39AA39c021dfbaE8faC545936693aC917d5E7563": {
"chainId": 1,
"address": "0x39AA39c021dfbaE8faC545936693aC917d5E7563",
"symbol": "cUSDC",
"name": "Compound USD Coin",
"decimals": 8,
"logoURI": "ipfs://QmUSNbwUxUYNMvMksKypkgWs8unSm8dX2GjCPBVGZ7GGMr",
"tags": [
"compound"
]
}
},
"version": {
"major": 1,
"minor": 0,
Expand Down

0 comments on commit a273873

Please sign in to comment.