@swapkit/helpers 1.0.0-rc.99 → 1.0.1

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.
@@ -13,7 +13,6 @@ export enum DerivationPath {
13
13
  ARB = "m/44'/60'/0'/0",
14
14
  AVAX = "m/44'/60'/0'/0",
15
15
  BCH = "m/44'/145'/0'/0",
16
- BNB = "m/44'/714'/0'/0",
17
16
  BSC = "m/44'/60'/0'/0",
18
17
  BTC = "m/84'/0'/0'/0",
19
18
  DASH = "m/44'/5'/0'/0",
@@ -27,7 +26,9 @@ export enum DerivationPath {
27
26
  MATIC = "m/44'/60'/0'/0",
28
27
  MAYA = "m/44'/931'/0'/0",
29
28
  OP = "m/44'/60'/0'/0",
29
+ SOL = "m/44'/501'/0'/0",
30
30
  THOR = "m/44'/931'/0'/0",
31
+ XRD = "////",
31
32
  }
32
33
 
33
34
  export type DerivationPathArray = [number, number, number, number, number?];
@@ -36,7 +37,6 @@ export const NetworkDerivationPath: Record<Chain, DerivationPathArray> = {
36
37
  ARB: [44, 60, 0, 0, 0],
37
38
  AVAX: [44, 60, 0, 0, 0],
38
39
  BCH: [44, 145, 0, 0, 0],
39
- BNB: [44, 714, 0, 0, 0],
40
40
  BSC: [44, 60, 0, 0, 0],
41
41
  BTC: [84, 0, 0, 0, 0],
42
42
  DASH: [44, 5, 0, 0, 0],
@@ -48,9 +48,11 @@ export const NetworkDerivationPath: Record<Chain, DerivationPathArray> = {
48
48
  MATIC: [44, 60, 0, 0, 0],
49
49
  MAYA: [44, 931, 0, 0, 0],
50
50
  OP: [44, 60, 0, 0, 0],
51
+ SOL: [44, 501, 0, 0, 0],
51
52
  THOR: [44, 931, 0, 0, 0],
52
53
 
53
54
  // Polkadot and related network derivation path is not number based
55
+ XRD: [0, 0, 0, 0, 0],
54
56
  DOT: [0, 0, 0, 0, 0],
55
57
  FLIP: [0, 0, 0, 0, 0],
56
58
  };
File without changes
@@ -8,3 +8,5 @@ export * from "./network";
8
8
  export * from "./tokens";
9
9
  export * from "./wallet";
10
10
  export * from "./sdk";
11
+ export * from "./quotes";
12
+ export * from "./radix";
@@ -1,7 +1,6 @@
1
1
  export enum RPCUrl {
2
2
  Arbitrum = "https://arb1.arbitrum.io/rpc",
3
3
  Avalanche = "https://node-router.thorswap.net/avalanche-c",
4
- Binance = "",
5
4
  BinanceSmartChain = "https://bsc-dataseed.binance.org",
6
5
  Bitcoin = "https://node-router.thorswap.net/bitcoin",
7
6
  BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash",
@@ -17,14 +16,15 @@ export enum RPCUrl {
17
16
  Optimism = "https://mainnet.optimism.io",
18
17
  Polkadot = "wss://rpc.polkadot.io",
19
18
  Polygon = "https://polygon-rpc.com",
19
+ Radix = "https://radix-mainnet.rpc.grove.city/v1/326002fc/core",
20
20
  THORChain = "https://rpc.thorswap.net",
21
21
  THORChainStagenet = "https://stagenet-rpc.ninerealms.com",
22
+ Solana = "https://mainnet.helius-rpc.com/?api-key=2cbe3ae6-cfc5-4141-a093-0055d0fa3d80",
22
23
  }
23
24
 
24
25
  export enum ExplorerUrl {
25
26
  Arbitrum = "https://arbiscan.io",
26
27
  Avalanche = "https://snowtrace.io",
27
- Binance = "https://explorer.binance.org",
28
28
  BinanceSmartChain = "https://bscscan.com",
29
29
  Bitcoin = "https://blockchair.com/bitcoin",
30
30
  BitcoinCash = "https://www.blockchair.com/bitcoin-cash",
@@ -37,7 +37,9 @@ export enum ExplorerUrl {
37
37
  Litecoin = "https://blockchair.com/litecoin",
38
38
  Maya = "https://www.mayascan.org",
39
39
  Optimism = "https://optimistic.etherscan.io",
40
- Polkadot = "https://polkadot.subscan.io/",
40
+ Polkadot = "https://polkadot.subscan.io",
41
41
  Polygon = "https://polygonscan.com",
42
+ Radix = "https://dashboard.radixdlt.com",
42
43
  THORChain = "https://runescan.io",
44
+ Solana = "https://solscan.io",
43
45
  }
@@ -0,0 +1,391 @@
1
+ import { z } from "zod";
2
+
3
+ export enum WarningCodeEnum {
4
+ highSlippage = "highSlippage",
5
+ highPriceImpact = "highPriceImpact",
6
+ }
7
+
8
+ export const EVMTransactionDetailsParamsSchema = z.array(
9
+ z.union([
10
+ z.string(),
11
+ z.number(),
12
+ z.array(z.string()),
13
+ z
14
+ .object({
15
+ from: z.string(),
16
+ value: z.string(),
17
+ })
18
+ .describe("Parameters to pass to the contract method"),
19
+ ]),
20
+ );
21
+
22
+ export type EVMTransactionDetailsParams = z.infer<typeof EVMTransactionDetailsParamsSchema>;
23
+
24
+ export const EVMTransactionDetailsSchema = z.object({
25
+ contractAddress: z.string({
26
+ description: "Address of the contract to interact with",
27
+ }),
28
+ contractMethod: z.string({
29
+ description: "Name of the method to call",
30
+ }),
31
+ contractParams: EVMTransactionDetailsParamsSchema,
32
+ // contractParamsStreaming: z.array(
33
+ // z.string({
34
+ // description:
35
+ // "If making a streaming swap through THORChain, parameters to pass to the contract method",
36
+ // }),
37
+ // ),
38
+ contractParamNames: z.array(
39
+ z.string({
40
+ description: "Names of the parameters to pass to the contract method",
41
+ }),
42
+ ),
43
+ approvalToken: z.optional(
44
+ z.string({
45
+ description: "Address of the token to approve spending of",
46
+ }),
47
+ ),
48
+ approvalSpender: z.optional(
49
+ z.string({
50
+ description: "Address of the spender to approve",
51
+ }),
52
+ ),
53
+ });
54
+
55
+ export type EVMTransactionDetails = z.infer<typeof EVMTransactionDetailsSchema>;
56
+
57
+ export const EstimatedTimeSchema = z.object({
58
+ inbound: z.optional(
59
+ z.number({
60
+ description: "Time to receive inbound asset in seconds",
61
+ }),
62
+ ),
63
+ swap: z.optional(
64
+ z.number({
65
+ description: "Time to swap assets in seconds",
66
+ }),
67
+ ),
68
+ outbound: z.optional(
69
+ z.number({
70
+ description: "Time to receive outbound asset in seconds",
71
+ }),
72
+ ),
73
+ total: z.number({
74
+ description: "Total time in seconds",
75
+ }),
76
+ });
77
+
78
+ export type EstimatedTime = z.infer<typeof EstimatedTimeSchema>;
79
+
80
+ export enum ProviderName {
81
+ CHAINFLIP = "CHAINFLIP",
82
+ TRADERJOE_V1 = "TRADERJOE_V1",
83
+ PANGOLIN_V1 = "PANGOLIN_V1",
84
+ UNISWAP_V2 = "UNISWAP_V2",
85
+ THORCHAIN = "THORCHAIN",
86
+ THORCHAIN_STREAMING = "THORCHAIN_STREAMING",
87
+ MAYACHAIN = "MAYACHAIN",
88
+ ONEINCH = "ONEINCH",
89
+ SUSHISWAP_V2 = "SUSHISWAP_V2",
90
+ WOOFI_V2 = "WOOFI_V2",
91
+ PANCAKESWAP = "PANCAKESWAP",
92
+ }
93
+
94
+ export enum FeeTypeEnum {
95
+ LIQUIDITY = "liquidity",
96
+ NETWORK = "network",
97
+ INBOUND = "inbound",
98
+ OUTBOUND = "outbound",
99
+ AFFILIATE = "affiliate",
100
+ TAX = "tax",
101
+ }
102
+
103
+ export const FeesSchema = z.array(
104
+ z.object({
105
+ type: z.nativeEnum(FeeTypeEnum),
106
+ amount: z.string(),
107
+ asset: z.string(),
108
+ chain: z.string(),
109
+ protocol: z.nativeEnum(ProviderName),
110
+ }),
111
+ );
112
+
113
+ export type Fees = z.infer<typeof FeesSchema>;
114
+
115
+ export const RouteLegSchema = z.object({
116
+ sellAsset: z.string({
117
+ description: "Asset to sell",
118
+ }),
119
+ buyAsset: z.string({
120
+ description: "Asset to buy",
121
+ }),
122
+ provider: z.nativeEnum(ProviderName),
123
+ sourceAddress: z.string({
124
+ description: "Source address",
125
+ }),
126
+ destinationAddress: z.string({
127
+ description: "Destination address",
128
+ }),
129
+ estimatedTime: EstimatedTimeSchema.optional(),
130
+ affiliate: z
131
+ .string({
132
+ description: "Affiliate address",
133
+ })
134
+ .optional(),
135
+ affiliateFee: z
136
+ .number({
137
+ description: "Affiliate fee",
138
+ })
139
+ .optional(),
140
+ slipPercentage: z.number({
141
+ description: "Slippage as a percentage",
142
+ }),
143
+ });
144
+
145
+ export type RouteLeg = z.infer<typeof RouteLegSchema>;
146
+
147
+ export const RouteLegWithoutAddressesSchema = RouteLegSchema.omit({
148
+ sourceAddress: true,
149
+ destinationAddress: true,
150
+ slipPercentage: true,
151
+ });
152
+
153
+ export type RouteLegWithoutAddresses = z.infer<typeof RouteLegWithoutAddressesSchema>;
154
+
155
+ export const RouteQuoteMetadataAssetSchema = z.object({
156
+ name: z.string({
157
+ description: "Asset name",
158
+ }),
159
+ price: z.number({
160
+ description: "Price in USD",
161
+ }),
162
+ image: z.string({
163
+ description: "Asset image",
164
+ }),
165
+ });
166
+
167
+ export type RouteQuoteMetadataAsset = z.infer<typeof RouteQuoteMetadataAssetSchema>;
168
+
169
+ export const RouteQuoteMetadataSchema = z.object({
170
+ priceImpact: z.number({
171
+ description: "Price impact",
172
+ }),
173
+ assets: z.optional(z.array(RouteQuoteMetadataAssetSchema)),
174
+ });
175
+
176
+ export const RouteQuoteWarningSchema = z.array(
177
+ z.object({
178
+ code: z.nativeEnum(WarningCodeEnum),
179
+ display: z.string(),
180
+ tooltip: z.string().optional(),
181
+ }),
182
+ );
183
+
184
+ export const RouteQuoteLegSchema = z.object({
185
+ sellAsset: z.string({
186
+ description: "Asset to sell",
187
+ }),
188
+ buyAsset: z.string({
189
+ description: "Asset to buy",
190
+ }),
191
+ provider: z.nativeEnum(ProviderName),
192
+ buyAmount: z.string({
193
+ description: "Amount of asset to buy",
194
+ }),
195
+ buyAmountMaxSlippage: z.string({
196
+ description: "Amount of asset to buy",
197
+ }),
198
+ sellAmount: z.string({
199
+ description: "Amount of asset to sell",
200
+ }),
201
+ sourceAddress: z.string({
202
+ description: "Source address",
203
+ }),
204
+ destinationAddress: z.string({
205
+ description: "Destination address",
206
+ }),
207
+ slippageBps: z.number({
208
+ description: "Slippage in bps",
209
+ }),
210
+ targetAddress: z.optional(
211
+ z.string({
212
+ description: "Target address for contract call or transfer address",
213
+ }),
214
+ ),
215
+ inboundAddress: z.optional(
216
+ z.string({
217
+ description: "Inbound address",
218
+ }),
219
+ ),
220
+ routerAddress: z.optional(
221
+ z.string({
222
+ description: "Inbound address",
223
+ }),
224
+ ),
225
+ contractMethod: z.optional(
226
+ z.string({
227
+ description: "Contract method",
228
+ }),
229
+ ),
230
+ fees: z.optional(FeesSchema),
231
+ estimatedTime: z.optional(EstimatedTimeSchema),
232
+ memo: z.optional(
233
+ z.string({
234
+ description: "Memo",
235
+ }),
236
+ ),
237
+ expiration: z.optional(
238
+ z.string({
239
+ description: "Expiration",
240
+ }),
241
+ ),
242
+ });
243
+
244
+ export type RouteQuoteLeg = z.infer<typeof RouteQuoteLegSchema>;
245
+
246
+ export const RouteQuoteSchema = z.object({
247
+ providers: z.array(z.nativeEnum(ProviderName)),
248
+ sellAsset: z.string({
249
+ description: "Asset to sell",
250
+ }),
251
+ sellAmount: z.string({
252
+ description: "sell amount",
253
+ }),
254
+ buyAsset: z.string({
255
+ description: "Asset to buy",
256
+ }),
257
+ expectedBuyAmount: z.string({
258
+ description: "Expected Buy amount",
259
+ }),
260
+ expectedBuyAmountMaxSlippage: z.string({
261
+ description: "Expected Buy amount max slippage",
262
+ }),
263
+ sourceAddress: z.string({
264
+ description: "Source address",
265
+ }),
266
+ destinationAddress: z.string({
267
+ description: "Destination address",
268
+ }),
269
+ targetAddress: z.optional(
270
+ z.string({
271
+ description: "Target address",
272
+ }),
273
+ ),
274
+ routerAddress: z.optional(
275
+ z.string({
276
+ description: "Router address",
277
+ }),
278
+ ),
279
+ inboundAddress: z.optional(
280
+ z.string({
281
+ description: "Inbound address",
282
+ }),
283
+ ),
284
+ expiration: z.optional(
285
+ z.string({
286
+ description: "Expiration",
287
+ }),
288
+ ),
289
+ memo: z.optional(
290
+ z.string({
291
+ description: "Memo",
292
+ }),
293
+ ),
294
+ evmTransactionDetails: z.optional(EVMTransactionDetailsSchema),
295
+ routePathArray: z.optional(z.array(z.string())),
296
+ estimatedTime: z.optional(EstimatedTimeSchema),
297
+ totalSlippageBps: z.number({
298
+ description: "Total slippage in bps",
299
+ }),
300
+ legs: z.array(RouteQuoteLegSchema),
301
+ // TODO use enum
302
+ errorCode: z.optional(z.string()),
303
+ warnings: RouteQuoteWarningSchema,
304
+ meta: RouteQuoteMetadataSchema,
305
+ });
306
+
307
+ export type RouteQuote = z.infer<typeof RouteQuoteSchema>;
308
+
309
+ const QuoteResponseRouteLegItem = z.object({
310
+ provider: z.nativeEnum(ProviderName),
311
+ sellAsset: z.string({
312
+ description: "Asset to sell",
313
+ }),
314
+ sellAmount: z.string({
315
+ description: "Sell amount",
316
+ }),
317
+ buyAsset: z.string({
318
+ description: "Asset to buy",
319
+ }),
320
+ buyAmount: z.string({
321
+ description: "Buy amount",
322
+ }),
323
+ buyAmountMaxSlippage: z.string({
324
+ description: "Buy amount max slippage",
325
+ }),
326
+ fees: z.optional(FeesSchema), // TODO remove optionality
327
+ });
328
+
329
+ const QuoteResponseRouteItem = z.object({
330
+ providers: z.array(z.nativeEnum(ProviderName)),
331
+ sellAsset: z.string({
332
+ description: "Asset to sell",
333
+ }),
334
+ sellAmount: z.string({
335
+ description: "sell amount",
336
+ }),
337
+ buyAsset: z.string({
338
+ description: "Asset to buy",
339
+ }),
340
+ expectedBuyAmount: z.string({
341
+ description: "Expected Buy amount",
342
+ }),
343
+ expectedBuyAmountMaxSlippage: z.string({
344
+ description: "Expected Buy amount max slippage",
345
+ }),
346
+ sourceAddress: z.string({
347
+ description: "Source address",
348
+ }),
349
+ destinationAddress: z.string({
350
+ description: "Destination address",
351
+ }),
352
+ targetAddress: z.optional(
353
+ z.string({
354
+ description: "Target address",
355
+ }),
356
+ ),
357
+ expiration: z.optional(
358
+ z.string({
359
+ description: "Expiration",
360
+ }),
361
+ ),
362
+ memo: z.optional(
363
+ z.string({
364
+ description: "Memo",
365
+ }),
366
+ ),
367
+ evmTransactionDetails: z.optional(EVMTransactionDetailsSchema),
368
+ estimatedTime: z.optional(EstimatedTimeSchema), // TODO remove optionality
369
+ totalSlippageBps: z.number({
370
+ description: "Total slippage in bps",
371
+ }),
372
+ legs: z.array(QuoteResponseRouteLegItem),
373
+ warnings: RouteQuoteWarningSchema,
374
+ meta: RouteQuoteMetadataSchema,
375
+ });
376
+
377
+ export const QuoteResponseSchema = z.object({
378
+ quoteId: z.string({
379
+ description: "Quote ID",
380
+ }),
381
+ routes: z.array(QuoteResponseRouteItem),
382
+ error: z.optional(
383
+ z.string({
384
+ description: "Error message",
385
+ }),
386
+ ),
387
+ });
388
+
389
+ export type QuoteResponse = z.infer<typeof QuoteResponseSchema>;
390
+ export type QuoteResponseRoute = z.infer<typeof QuoteResponseRouteItem>;
391
+ export type QuoteResponseRouteLeg = z.infer<typeof QuoteResponseRouteLegItem>;
@@ -0,0 +1,14 @@
1
+ export type RadixCoreStateResourceDTO = {
2
+ at_ledger_state?: Todo; // not needed
3
+ manager: {
4
+ resource_type: string;
5
+ divisibility: {
6
+ substate_type: string;
7
+ is_locked: boolean;
8
+ value: {
9
+ divisibility: number;
10
+ };
11
+ };
12
+ };
13
+ owner_role?: Todo; // not needed
14
+ };
package/src/types/sdk.ts CHANGED
@@ -1,13 +1,17 @@
1
+ import { z } from "zod";
1
2
  import type { AssetValue } from "../modules/assetValue";
3
+ import type { QuoteResponseRoute } from "./quotes";
2
4
 
3
5
  export type GenericSwapParams = {
4
- buyAsset: AssetValue;
5
- sellAsset: AssetValue;
6
- recipient: string;
6
+ buyAsset?: AssetValue;
7
+ sellAsset?: AssetValue;
8
+ recipient?: string;
9
+ feeOptionKey?: FeeOption;
10
+ route: QuoteResponseRoute;
7
11
  };
8
12
 
9
13
  export type SwapParams<PluginNames = string, T = GenericSwapParams> = T & {
10
- pluginName: PluginNames;
14
+ pluginName?: PluginNames;
11
15
  };
12
16
 
13
17
  export enum FeeOption {
@@ -36,9 +40,87 @@ export enum MemoType {
36
40
  BOND = "BOND",
37
41
  DEPOSIT = "+",
38
42
  LEAVE = "LEAVE",
39
- THORNAME_REGISTER = "~",
43
+ NAME_REGISTER = "~",
40
44
  UNBOND = "UNBOND",
41
45
  WITHDRAW = "-",
42
46
  OPEN_LOAN = "$+",
43
47
  CLOSE_LOAN = "$-",
44
48
  }
49
+
50
+ export const QuoteRequestSchema = z
51
+ .object({
52
+ sellAsset: z.string({
53
+ description: "Asset to sell",
54
+ }),
55
+ buyAsset: z.string({
56
+ description: "Asset to buy",
57
+ }),
58
+ sellAmount: z
59
+ .number({
60
+ description: "Amount of asset to sell",
61
+ })
62
+ .refine((amount) => amount > 0, {
63
+ message: "sellAmount must be greater than 0",
64
+ path: ["sellAmount"],
65
+ }),
66
+ providers: z.optional(
67
+ z.array(
68
+ z.string({
69
+ description: "List of providers to use",
70
+ }),
71
+ ),
72
+ ),
73
+ sourceAddress: z.optional(
74
+ z.string({
75
+ description: "Address to send asset from",
76
+ }),
77
+ ),
78
+ destinationAddress: z.optional(
79
+ z.string({
80
+ description: "Address to send asset to",
81
+ }),
82
+ ),
83
+ slippage: z.optional(
84
+ z.number({
85
+ description: "Slippage tolerance as a percentage. Default is 3%.",
86
+ }),
87
+ ),
88
+ affiliate: z.optional(
89
+ z.string({
90
+ description: "Affiliate thorname",
91
+ }),
92
+ ),
93
+ affiliateFee: z.optional(
94
+ z
95
+ .number({
96
+ description: "Affiliate fee in basis points",
97
+ })
98
+ .refine(
99
+ (fee) => {
100
+ return fee === Math.floor(fee) && fee >= 0;
101
+ },
102
+ { message: "affiliateFee must be a positive integer", path: ["affiliateFee"] },
103
+ ),
104
+ ),
105
+ allowSmartContractSender: z.optional(
106
+ z.boolean({
107
+ description: "Allow smart contract as sender",
108
+ }),
109
+ ),
110
+ allowSmartContractReceiver: z.optional(
111
+ z.boolean({
112
+ description: "Allow smart contract as recipient",
113
+ }),
114
+ ),
115
+ disableSecurityChecks: z.optional(
116
+ z.boolean({
117
+ description: "Disable security checks",
118
+ }),
119
+ ),
120
+ })
121
+ .refine((data) => data.sellAsset !== data.buyAsset, {
122
+ message: "Must be different",
123
+ path: ["sellAsset", "buyAsset"],
124
+ });
125
+
126
+ export type QuoteRequest = z.infer<typeof QuoteRequestSchema>;
@@ -1,30 +1,34 @@
1
1
  import type {
2
2
  ChainflipList,
3
- CoinGeckoList,
4
3
  MayaList,
5
- PancakeswapETHList,
4
+ OneInchList,
6
5
  PancakeswapList,
7
6
  PangolinList,
8
- StargateARBList,
9
7
  SushiswapList,
10
8
  ThorchainList,
11
- TraderjoeList,
12
- UniswapList,
13
- WoofiList,
9
+ TraderjoeV1List,
10
+ TraderjoeV2List,
11
+ UniswapV2List,
12
+ UniswapV3List,
14
13
  } from "@swapkit/tokens";
15
14
 
16
15
  export type TokenTax = { buy: number; sell: number };
17
16
 
18
17
  export type TokenNames =
19
- | (typeof ThorchainList)["tokens"][number]["identifier"]
20
- | (typeof CoinGeckoList)["tokens"][number]["identifier"]
18
+ | (typeof ChainflipList)["tokens"][number]["identifier"]
21
19
  | (typeof MayaList)["tokens"][number]["identifier"]
22
- | (typeof PancakeswapETHList)["tokens"][number]["identifier"]
20
+ | (typeof OneInchList)["tokens"][number]["identifier"]
23
21
  | (typeof PancakeswapList)["tokens"][number]["identifier"]
24
22
  | (typeof PangolinList)["tokens"][number]["identifier"]
25
- | (typeof StargateARBList)["tokens"][number]["identifier"]
26
23
  | (typeof SushiswapList)["tokens"][number]["identifier"]
27
- | (typeof TraderjoeList)["tokens"][number]["identifier"]
28
- | (typeof WoofiList)["tokens"][number]["identifier"]
29
- | (typeof UniswapList)["tokens"][number]["identifier"]
30
- | (typeof ChainflipList)["tokens"][number]["identifier"];
24
+ | (typeof ThorchainList)["tokens"][number]["identifier"]
25
+ | (typeof TraderjoeV1List)["tokens"][number]["identifier"]
26
+ | (typeof TraderjoeV2List)["tokens"][number]["identifier"]
27
+ | (typeof UniswapV2List)["tokens"][number]["identifier"]
28
+ | (typeof UniswapV3List)["tokens"][number]["identifier"];
29
+ // | (typeof CoinGeckoList)["tokens"][number]["identifier"]
30
+ // | (typeof PancakeswapETHList)["tokens"][number]["identifier"]
31
+ // | (typeof StargateARBList)["tokens"][number]["identifier"]
32
+ // | (typeof TraderjoeList)["tokens"][number]["identifier"]
33
+ // | (typeof WoofiList)["tokens"][number]["identifier"]
34
+ // | (typeof UniswapList)["tokens"][number]["identifier"];