-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.ts
31 lines (24 loc) · 992 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { TokenInfo, TokenList, Version, Tags } from "@uniswap/token-lists";
import tokenListJSON from "./superfluid.tokenlist.json";
import extendedTokenListJSON from "./superfluid.extended.tokenlist.json";
export { TokenInfo, TokenList, Version, Tags }; // Re-export @uniswap/token-lists' main consumer types.
export type SuperTokenExtensions = {
readonly extensions: {
readonly superTokenInfo:
| {
readonly type: "Pure" | "Native Asset";
}
| {
readonly type: "Wrapper";
readonly underlyingTokenAddress: `0x${string}`;
};
};
};
export type SuperTokenInfo = TokenInfo & SuperTokenExtensions;
type UnderlyingTokenInfo = TokenInfo;
export type SuperTokenList = Omit<TokenList, "tokens"> & {
readonly tokens: (SuperTokenInfo & UnderlyingTokenInfo)[];
};
export const extendedSuperTokenList = extendedTokenListJSON as SuperTokenList;
const superTokenList = tokenListJSON as SuperTokenList;
export default superTokenList;