@lifi/types 9.1.0 → 9.2.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.
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TransactionRequest } from '@ethersproject/providers';
2
- import { BridgeDefinition, Chain, ChainId, ChainType, ExchangeDefinition, LifiStep, Token } from '.';
2
+ import { BridgeDefinition, Chain, ChainId, ChainKey, ChainType, ExchangeDefinition, LifiStep, Token } from '.';
3
3
  import { ToolError } from './apiErrors';
4
4
  export declare const Orders: readonly ["RECOMMENDED", "FASTEST", "CHEAPEST", "SAFEST"];
5
5
  export type Order = (typeof Orders)[number];
@@ -273,7 +273,7 @@ export interface ToolsRequest {
273
273
  chains?: ChainId[];
274
274
  }
275
275
  export type TokensRequest = {
276
- chains?: ChainId[];
276
+ chains?: (ChainId | ChainKey)[];
277
277
  chainTypes?: ChainType[];
278
278
  };
279
279
  export type TokensResponse = {
package/dist/cjs/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TransactionRequest } from '@ethersproject/providers';
2
- import { BridgeDefinition, Chain, ChainId, ChainType, ExchangeDefinition, LifiStep, Token } from '.';
2
+ import { BridgeDefinition, Chain, ChainId, ChainKey, ChainType, ExchangeDefinition, LifiStep, Token } from '.';
3
3
  import { ToolError } from './apiErrors';
4
4
  export declare const Orders: readonly ["RECOMMENDED", "FASTEST", "CHEAPEST", "SAFEST"];
5
5
  export type Order = (typeof Orders)[number];
@@ -273,7 +273,7 @@ export interface ToolsRequest {
273
273
  chains?: ChainId[];
274
274
  }
275
275
  export type TokensRequest = {
276
- chains?: ChainId[];
276
+ chains?: (ChainId | ChainKey)[];
277
277
  chainTypes?: ChainType[];
278
278
  };
279
279
  export type TokensResponse = {
package/dist/cjs/coins.js CHANGED
@@ -1519,7 +1519,7 @@ exports.defaultCoins = basicCoins.map((coin) => {
1519
1519
  };
1520
1520
  for (const [chainId, token] of Object.entries(coin.chains)) {
1521
1521
  defaultCoin.chains[chainId] = {
1522
- address: token.address.toLowerCase(),
1522
+ address: token.address,
1523
1523
  decimals: token.decimals,
1524
1524
  symbol: (_a = token.symbol) !== null && _a !== void 0 ? _a : coin.key,
1525
1525
  chainId: parseInt(chainId),
package/dist/coins.js CHANGED
@@ -1516,7 +1516,7 @@ export const defaultCoins = basicCoins.map((coin) => {
1516
1516
  };
1517
1517
  for (const [chainId, token] of Object.entries(coin.chains)) {
1518
1518
  defaultCoin.chains[chainId] = {
1519
- address: token.address.toLowerCase(),
1519
+ address: token.address,
1520
1520
  decimals: token.decimals,
1521
1521
  symbol: (_a = token.symbol) !== null && _a !== void 0 ? _a : coin.key,
1522
1522
  chainId: parseInt(chainId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "9.1.0",
3
+ "version": "9.2.1",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",