@uniswap/token-list-bridge-utils 1.1.0 → 1.2.0
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/chainId.d.ts +2 -1
- package/dist/constants/tokens.d.ts +1 -0
- package/dist/constants/types.d.ts +3 -25
- package/dist/fixtures/index.d.ts +9 -0
- package/dist/providers/BnbMappingProvider.d.ts +5 -0
- package/dist/token-list-bridge-utils.cjs.development.js +918 -32
- 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 +918 -32
- package/dist/token-list-bridge-utils.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/chainId.ts +1 -0
- package/src/constants/tokens.ts +8 -0
- package/src/constants/types.ts +4 -26
- package/src/fixtures/index.ts +31 -0
- package/src/index.test.ts +28 -0
- package/src/index.ts +1 -0
- package/src/local_mappings/bnb.json +859 -0
- package/src/providers/BnbMappingProvider.ts +11 -0
- package/src/providers/PolygonMappingProvider.ts +9 -15
- package/src/providers/index.ts +5 -2
- package/src/utils.ts +2 -0
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
export interface PolygonMappedToken {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
count: number;
|
|
6
|
-
created_at: string;
|
|
7
|
-
decimals: number;
|
|
8
|
-
deleted: boolean;
|
|
9
|
-
id: number;
|
|
10
|
-
map_type: 'POS';
|
|
11
|
-
mintable: boolean;
|
|
12
|
-
name: string;
|
|
13
|
-
new_child_token: string;
|
|
14
|
-
new_mintable: boolean;
|
|
15
|
-
owner: string;
|
|
16
|
-
reason: string;
|
|
17
|
-
reason_for_remapping: string;
|
|
18
|
-
remapping_allowed: boolean;
|
|
19
|
-
remapping_request_submitted: boolean;
|
|
20
|
-
remapping_verified: boolean;
|
|
21
|
-
root_token: string;
|
|
22
|
-
status: number;
|
|
23
|
-
symbol: string;
|
|
24
|
-
token_type: string;
|
|
25
|
-
updated_at: string;
|
|
26
|
-
uri: string;
|
|
2
|
+
rootToken: string;
|
|
3
|
+
childToken: string;
|
|
4
|
+
isPos?: boolean;
|
|
27
5
|
}
|
|
28
6
|
export declare type GenericMappedTokenData = {
|
|
29
7
|
[key: string]: string | undefined;
|
package/dist/fixtures/index.d.ts
CHANGED
|
@@ -22,6 +22,15 @@ export declare const polygonedSampleTokenList: {
|
|
|
22
22
|
tags?: import("@uniswap/token-lists").Tags | undefined;
|
|
23
23
|
logoURI?: string | undefined;
|
|
24
24
|
};
|
|
25
|
+
export declare const bnbedSampleTokenList: {
|
|
26
|
+
name: string;
|
|
27
|
+
tokens: TokenInfo[];
|
|
28
|
+
timestamp: string;
|
|
29
|
+
version: import("@uniswap/token-lists").Version;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
tags?: import("@uniswap/token-lists").Tags | undefined;
|
|
32
|
+
logoURI?: string | undefined;
|
|
33
|
+
};
|
|
25
34
|
export declare const optimizedSampleTokenList: {
|
|
26
35
|
name: string;
|
|
27
36
|
tokens: TokenInfo[];
|