@uniswap/token-list-bridge-utils 2.4.0 → 2.6.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.
@@ -12,5 +12,5 @@ export declare enum ChainId {
12
12
  BNB = 56,
13
13
  AVALANCHE = 43114,
14
14
  BASE = 8453,
15
- BASE_GOERLI = 84531
15
+ UNICHAIN = 130
16
16
  }
@@ -1,9 +1,9 @@
1
1
  import { Token } from '@uniswap/sdk-core';
2
2
  export declare const COINBASE_WRAPPED_STAKED_ETH: Token;
3
- export declare const COINBASE_WRAPPED_STAKED_ETH_BASE_GOERLI: Token;
4
3
  export declare const COINBASE_WRAPPED_STAKED_ETH_BASE: Token;
5
4
  export declare const COINBASE_WRAPPED_STAKED_ETH_ARBITRUM_ONE: Token;
6
5
  export declare const COINBASE_WRAPPED_STAKED_ETH_OPTIMISM: Token;
6
+ export declare const COINBASE_WRAPPED_STAKED_ETH_UNICHAIN: Token;
7
7
  export declare const DAI: Token;
8
8
  export declare const DAI_ARBITRUM_ONE: Token;
9
9
  export declare const DAI_OPTIMISM: Token;
@@ -11,7 +11,7 @@ export declare const DAI_POLYGON: Token;
11
11
  export declare const DAI_BNB: Token;
12
12
  export declare const DAI_AVALANCHE: Token;
13
13
  export declare const DAI_BASE: Token;
14
- export declare const DAI_BASE_GOERLI: Token;
14
+ export declare const DAI_UNICHAIN: Token;
15
15
  export declare const USDT: Token;
16
16
  export declare const USDT_BNB: Token;
17
17
  export declare const USDT_CELO: Token;
@@ -16,3 +16,33 @@ export declare type PolygonMappedTokenData = {
16
16
  export declare type MappedTokenData = {
17
17
  [key: string]: MappedToken;
18
18
  };
19
+ export interface PolygonWrappedToken {
20
+ wrappedTokenAddress: string;
21
+ wrappedNetworkId?: number;
22
+ tags: string[];
23
+ originChainBridgeAdapter?: string;
24
+ wrappedChainBridgeAdapter?: string;
25
+ }
26
+ export interface PolygonTokenMapping {
27
+ chainId: number;
28
+ name: string;
29
+ symbol: string;
30
+ decimals: number;
31
+ originTokenAddress: string;
32
+ originNetworkId: number;
33
+ tags: string[];
34
+ wrappedTokens: PolygonWrappedToken[];
35
+ logoURI: string;
36
+ }
37
+ export interface PolygonTokenListResponse {
38
+ name: string;
39
+ version: number;
40
+ logoURI: string;
41
+ description: string;
42
+ tags: Record<string, {
43
+ name: string;
44
+ description: string;
45
+ }>;
46
+ timestamp: string;
47
+ tokens: PolygonTokenMapping[];
48
+ }
@@ -78,18 +78,6 @@ export declare const celoedSampleTokenList: {
78
78
  tags?: import("@uniswap/token-lists").Tags | undefined;
79
79
  logoURI?: string | undefined;
80
80
  };
81
- export declare const baseGoerliSampleTokenList_3: {
82
- name: string;
83
- tokens: TokenInfo[];
84
- timestamp: string;
85
- version: import("@uniswap/token-lists").Version;
86
- tokenMap?: {
87
- readonly [key: string]: TokenInfo;
88
- } | undefined;
89
- keywords?: string[] | undefined;
90
- tags?: import("@uniswap/token-lists").Tags | undefined;
91
- logoURI?: string | undefined;
92
- };
93
81
  export declare const baseSampleTokenList_3: {
94
82
  name: string;
95
83
  tokens: TokenInfo[];
@@ -1,8 +1,6 @@
1
1
  import { MappingProvider } from './MappingProvider';
2
2
  import { PolygonMappedTokenData } from '../constants/types';
3
3
  /**
4
- * The Polygon team manually maintains the mapping via user submissions at
5
- * https://mapper.polygon.technology.
6
4
  *
7
5
  * This provider provides the l1->l2(Polygon) token mappings.
8
6
  */
@@ -0,0 +1,5 @@
1
+ import { MappingProvider } from './MappingProvider';
2
+ import { MappedTokenData } from '../constants/types';
3
+ export declare class UnichainMappingProvider implements MappingProvider {
4
+ provide(): Promise<MappedTokenData>;
5
+ }