@uniswap/token-list-bridge-utils 1.3.3 → 2.0.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 -3
- package/dist/fixtures/index.d.ts +9 -0
- package/dist/providers/AvalancheMappingProvider.d.ts +5 -0
- package/dist/providers/BnbMappingProvider.d.ts +2 -2
- package/dist/providers/MappingProvider.d.ts +2 -2
- package/dist/token-list-bridge-utils.cjs.development.js +623 -8
- 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 +623 -8
- package/dist/token-list-bridge-utils.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/chainId.ts +2 -0
- package/src/constants/tokens.ts +8 -0
- package/src/constants/types.ts +2 -2
- package/src/fixtures/index.ts +31 -0
- package/src/index.test.ts +36 -0
- package/src/index.ts +1 -0
- package/src/local_mappings/avax.json +574 -0
- package/src/providers/AvalancheMappingProvider.ts +11 -0
- package/src/providers/BnbMappingProvider.ts +4 -4
- package/src/providers/MappingProvider.ts +2 -2
- package/src/providers/index.ts +17 -10
- package/src/utils.ts +2 -0
- package/src/.DS_Store +0 -0
- package/src/.env +0 -0
|
@@ -4,5 +4,6 @@ export declare const DAI_ARBITRUM_ONE: Token;
|
|
|
4
4
|
export declare const DAI_OPTIMISM: Token;
|
|
5
5
|
export declare const DAI_POLYGON: Token;
|
|
6
6
|
export declare const DAI_BNB: Token;
|
|
7
|
+
export declare const DAI_AVALANCHE: Token;
|
|
7
8
|
export declare const USDT: Token;
|
|
8
9
|
export declare const USDT_BNB: Token;
|
|
@@ -3,7 +3,7 @@ export interface PolygonMappedToken {
|
|
|
3
3
|
childToken: string;
|
|
4
4
|
isPos?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface MappedToken {
|
|
7
7
|
childToken: string;
|
|
8
8
|
decimals: number;
|
|
9
9
|
}
|
|
@@ -13,6 +13,6 @@ export declare type GenericMappedTokenData = {
|
|
|
13
13
|
export declare type PolygonMappedTokenData = {
|
|
14
14
|
[key: string]: PolygonMappedToken;
|
|
15
15
|
};
|
|
16
|
-
export declare type
|
|
17
|
-
[key: string]:
|
|
16
|
+
export declare type MappedTokenData = {
|
|
17
|
+
[key: string]: MappedToken;
|
|
18
18
|
};
|
package/dist/fixtures/index.d.ts
CHANGED
|
@@ -23,6 +23,15 @@ export declare const polygonedSampleTokenList: {
|
|
|
23
23
|
tags?: import("@uniswap/token-lists").Tags | undefined;
|
|
24
24
|
logoURI?: string | undefined;
|
|
25
25
|
};
|
|
26
|
+
export declare const avalanchedSampleTokenList: {
|
|
27
|
+
name: string;
|
|
28
|
+
tokens: TokenInfo[];
|
|
29
|
+
timestamp: string;
|
|
30
|
+
version: import("@uniswap/token-lists").Version;
|
|
31
|
+
keywords?: string[] | undefined;
|
|
32
|
+
tags?: import("@uniswap/token-lists").Tags | undefined;
|
|
33
|
+
logoURI?: string | undefined;
|
|
34
|
+
};
|
|
26
35
|
export declare const bnbedSampleTokenList: {
|
|
27
36
|
name: string;
|
|
28
37
|
tokens: TokenInfo[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MappingProvider } from './MappingProvider';
|
|
2
|
-
import {
|
|
2
|
+
import { MappedTokenData } from '../constants/types';
|
|
3
3
|
export declare class BnbMappingProvider implements MappingProvider {
|
|
4
|
-
provide(): Promise<
|
|
4
|
+
provide(): Promise<MappedTokenData>;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MappedTokenData, GenericMappedTokenData, PolygonMappedTokenData } from '../constants/types';
|
|
2
2
|
export interface MappingProvider {
|
|
3
|
-
provide(): Promise<PolygonMappedTokenData | GenericMappedTokenData |
|
|
3
|
+
provide(): Promise<PolygonMappedTokenData | GenericMappedTokenData | MappedTokenData>;
|
|
4
4
|
}
|