@uniswap/token-list-bridge-utils 1.3.2 → 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/README.md CHANGED
@@ -81,7 +81,7 @@ or
81
81
  `npm i @uniswap/token-list-bridge-utils`
82
82
 
83
83
  ### Create .env file (Optional)
84
- - By default, the library uses `https://cloudflare-eth.com/` as the MAINNET_RPC env variable value required by arbitrum-sdk. You can override this value by creating a .env file in your root directory and setting a value for MAINNET_RPC.
84
+ - By default, the library uses `https://rpc.ankr.com/eth` as the MAINNET_RPC env variable value required by arbitrum-sdk. You can override this value by creating a .env file in your root directory and setting a value for MAINNET_RPC.
85
85
 
86
86
  - Sample .env file contents:
87
87
 
@@ -8,5 +8,6 @@ export declare enum ChainId {
8
8
  POLYGON = 137,
9
9
  POLYGON_MUMBAI = 80001,
10
10
  CELO = 42220,
11
- BNB = 56
11
+ BNB = 56,
12
+ AVALANCHE = 43114
12
13
  }
@@ -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 BnbMappedToken {
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 BnbMappedTokenData = {
17
- [key: string]: BnbMappedToken;
16
+ export declare type MappedTokenData = {
17
+ [key: string]: MappedToken;
18
18
  };
@@ -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[];
@@ -0,0 +1,5 @@
1
+ import { MappingProvider } from './MappingProvider';
2
+ import { MappedTokenData } from '../constants/types';
3
+ export declare class AvalancheMappingProvider implements MappingProvider {
4
+ provide(): Promise<MappedTokenData>;
5
+ }
@@ -1,5 +1,5 @@
1
1
  import { MappingProvider } from './MappingProvider';
2
- import { BnbMappedTokenData } from '../constants/types';
2
+ import { MappedTokenData } from '../constants/types';
3
3
  export declare class BnbMappingProvider implements MappingProvider {
4
- provide(): Promise<BnbMappedTokenData>;
4
+ provide(): Promise<MappedTokenData>;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { BnbMappedTokenData, GenericMappedTokenData, PolygonMappedTokenData } from '../constants/types';
1
+ import { MappedTokenData, GenericMappedTokenData, PolygonMappedTokenData } from '../constants/types';
2
2
  export interface MappingProvider {
3
- provide(): Promise<PolygonMappedTokenData | GenericMappedTokenData | BnbMappedTokenData>;
3
+ provide(): Promise<PolygonMappedTokenData | GenericMappedTokenData | MappedTokenData>;
4
4
  }