@uniswap/token-list-bridge-utils 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/types.d.ts +0 -30
- package/dist/providers/PolygonMappingProvider.d.ts +0 -4
- package/dist/token-list-bridge-utils.cjs.development.js +11810 -33
- package/dist/token-list-bridge-utils.cjs.development.js.map +1 -1
- package/dist/token-list-bridge-utils.cjs.production.min.js +1 -1
- package/dist/token-list-bridge-utils.cjs.production.min.js.map +1 -1
- package/dist/token-list-bridge-utils.esm.js +11810 -33
- package/dist/token-list-bridge-utils.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/types.ts +1 -31
- package/src/local_mappings/polygon.json +11807 -0
- package/src/providers/PolygonMappingProvider.ts +4 -32
- package/src/utils.ts +1 -1
package/package.json
CHANGED
package/src/constants/types.ts
CHANGED
|
@@ -11,37 +11,7 @@ export interface MappedToken {
|
|
|
11
11
|
|
|
12
12
|
export type GenericMappedTokenData = { [key: string]: string | undefined }
|
|
13
13
|
|
|
14
|
-
// Polygon has its own type here since
|
|
14
|
+
// Polygon has its own type here since its mappings carry more info than just the mapped token address
|
|
15
15
|
export type PolygonMappedTokenData = { [key: string]: PolygonMappedToken }
|
|
16
16
|
|
|
17
17
|
export type MappedTokenData = { [key: string]: MappedToken }
|
|
18
|
-
|
|
19
|
-
export interface PolygonWrappedToken {
|
|
20
|
-
wrappedTokenAddress: string
|
|
21
|
-
wrappedNetworkId?: number
|
|
22
|
-
tags: string[]
|
|
23
|
-
originChainBridgeAdapter?: string
|
|
24
|
-
wrappedChainBridgeAdapter?: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface PolygonTokenMapping {
|
|
28
|
-
chainId: number
|
|
29
|
-
name: string
|
|
30
|
-
symbol: string
|
|
31
|
-
decimals: number
|
|
32
|
-
originTokenAddress: string
|
|
33
|
-
originNetworkId: number
|
|
34
|
-
tags: string[]
|
|
35
|
-
wrappedTokens: PolygonWrappedToken[]
|
|
36
|
-
logoURI: string
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface PolygonTokenListResponse {
|
|
40
|
-
name: string
|
|
41
|
-
version: number
|
|
42
|
-
logoURI: string
|
|
43
|
-
description: string
|
|
44
|
-
tags: Record<string, { name: string; description: string }>
|
|
45
|
-
timestamp: string
|
|
46
|
-
tokens: PolygonTokenMapping[]
|
|
47
|
-
}
|