@uniswap/token-list-bridge-utils 1.1.1 → 1.3.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.
@@ -7,5 +7,6 @@ export declare enum ChainId {
7
7
  OPTIMISTIC_KOVAN = 69,
8
8
  POLYGON = 137,
9
9
  POLYGON_MUMBAI = 80001,
10
- CELO = 42220
10
+ CELO = 42220,
11
+ BNB = 56
11
12
  }
@@ -3,3 +3,6 @@ export declare const DAI: Token;
3
3
  export declare const DAI_ARBITRUM_ONE: Token;
4
4
  export declare const DAI_OPTIMISM: Token;
5
5
  export declare const DAI_POLYGON: Token;
6
+ export declare const DAI_BNB: Token;
7
+ export declare const USDT: Token;
8
+ export declare const USDT_BNB: Token;
@@ -3,9 +3,16 @@ export interface PolygonMappedToken {
3
3
  childToken: string;
4
4
  isPos?: boolean;
5
5
  }
6
+ export interface BnbMappedToken {
7
+ childToken: string;
8
+ decimals: number;
9
+ }
6
10
  export declare type GenericMappedTokenData = {
7
11
  [key: string]: string | undefined;
8
12
  };
9
13
  export declare type PolygonMappedTokenData = {
10
14
  [key: string]: PolygonMappedToken;
11
15
  };
16
+ export declare type BnbMappedTokenData = {
17
+ [key: string]: BnbMappedToken;
18
+ };
@@ -2,6 +2,7 @@ import { TokenInfo, TokenList } from '@uniswap/token-lists';
2
2
  import { ChainId } from '../constants/chainId';
3
3
  export declare const Tokens: Partial<Record<ChainId, Record<string, TokenInfo>>>;
4
4
  export declare const sampleL1TokenList: TokenList;
5
+ export declare const sampleL1TokenList_2: TokenList;
5
6
  export declare const arbBridgeL2Address = "0x467194771dae2967aef3ecbedd3bf9a310c76c65";
6
7
  export declare const arbBridgeL1Address = "0xd3b5b60020504bc3489d6949d545893982ba3011";
7
8
  export declare const arbedSampleTokenList: {
@@ -22,6 +23,24 @@ export declare const polygonedSampleTokenList: {
22
23
  tags?: import("@uniswap/token-lists").Tags | undefined;
23
24
  logoURI?: string | undefined;
24
25
  };
26
+ export declare const bnbedSampleTokenList: {
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
+ };
35
+ export declare const bnbedSampleTokenList_2: {
36
+ name: string;
37
+ tokens: TokenInfo[];
38
+ timestamp: string;
39
+ version: import("@uniswap/token-lists").Version;
40
+ keywords?: string[] | undefined;
41
+ tags?: import("@uniswap/token-lists").Tags | undefined;
42
+ logoURI?: string | undefined;
43
+ };
25
44
  export declare const optimizedSampleTokenList: {
26
45
  name: string;
27
46
  tokens: TokenInfo[];
@@ -0,0 +1,5 @@
1
+ import { MappingProvider } from './MappingProvider';
2
+ import { BnbMappedTokenData } from '../constants/types';
3
+ export declare class BnbMappingProvider implements MappingProvider {
4
+ provide(): Promise<BnbMappedTokenData>;
5
+ }
@@ -1,4 +1,4 @@
1
- import { GenericMappedTokenData, PolygonMappedTokenData } from '../constants/types';
1
+ import { BnbMappedTokenData, GenericMappedTokenData, PolygonMappedTokenData } from '../constants/types';
2
2
  export interface MappingProvider {
3
- provide(): Promise<PolygonMappedTokenData | GenericMappedTokenData>;
3
+ provide(): Promise<PolygonMappedTokenData | GenericMappedTokenData | BnbMappedTokenData>;
4
4
  }