@lifi/types 9.2.0 → 9.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.
- package/dist/api.d.ts +2 -2
- package/dist/cjs/api.d.ts +2 -2
- package/dist/cjs/coins.js +8 -2
- package/dist/coins.js +8 -2
- package/package.json +1 -1
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
|
@@ -792,7 +792,7 @@ const basicCoins = [
|
|
|
792
792
|
decimals: 18,
|
|
793
793
|
},
|
|
794
794
|
[base_1.ChainId.POL]: {
|
|
795
|
-
address: '
|
|
795
|
+
address: '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359',
|
|
796
796
|
decimals: 6,
|
|
797
797
|
},
|
|
798
798
|
[base_1.ChainId.DAI]: {
|
|
@@ -903,6 +903,12 @@ const basicCoins = [
|
|
|
903
903
|
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
904
904
|
verified: true,
|
|
905
905
|
chains: {
|
|
906
|
+
[base_1.ChainId.POL]: {
|
|
907
|
+
address: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
|
|
908
|
+
decimals: 6,
|
|
909
|
+
name: 'Bridged USD Coin',
|
|
910
|
+
symbol: 'USDC.e',
|
|
911
|
+
},
|
|
906
912
|
[base_1.ChainId.ARB]: {
|
|
907
913
|
address: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
|
|
908
914
|
decimals: 6,
|
|
@@ -1519,7 +1525,7 @@ exports.defaultCoins = basicCoins.map((coin) => {
|
|
|
1519
1525
|
};
|
|
1520
1526
|
for (const [chainId, token] of Object.entries(coin.chains)) {
|
|
1521
1527
|
defaultCoin.chains[chainId] = {
|
|
1522
|
-
address: token.address
|
|
1528
|
+
address: token.address,
|
|
1523
1529
|
decimals: token.decimals,
|
|
1524
1530
|
symbol: (_a = token.symbol) !== null && _a !== void 0 ? _a : coin.key,
|
|
1525
1531
|
chainId: parseInt(chainId),
|
package/dist/coins.js
CHANGED
|
@@ -789,7 +789,7 @@ const basicCoins = [
|
|
|
789
789
|
decimals: 18,
|
|
790
790
|
},
|
|
791
791
|
[ChainId.POL]: {
|
|
792
|
-
address: '
|
|
792
|
+
address: '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359',
|
|
793
793
|
decimals: 6,
|
|
794
794
|
},
|
|
795
795
|
[ChainId.DAI]: {
|
|
@@ -900,6 +900,12 @@ const basicCoins = [
|
|
|
900
900
|
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
901
901
|
verified: true,
|
|
902
902
|
chains: {
|
|
903
|
+
[ChainId.POL]: {
|
|
904
|
+
address: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
|
|
905
|
+
decimals: 6,
|
|
906
|
+
name: 'Bridged USD Coin',
|
|
907
|
+
symbol: 'USDC.e',
|
|
908
|
+
},
|
|
903
909
|
[ChainId.ARB]: {
|
|
904
910
|
address: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
|
|
905
911
|
decimals: 6,
|
|
@@ -1516,7 +1522,7 @@ export const defaultCoins = basicCoins.map((coin) => {
|
|
|
1516
1522
|
};
|
|
1517
1523
|
for (const [chainId, token] of Object.entries(coin.chains)) {
|
|
1518
1524
|
defaultCoin.chains[chainId] = {
|
|
1519
|
-
address: token.address
|
|
1525
|
+
address: token.address,
|
|
1520
1526
|
decimals: token.decimals,
|
|
1521
1527
|
symbol: (_a = token.symbol) !== null && _a !== void 0 ? _a : coin.key,
|
|
1522
1528
|
chainId: parseInt(chainId),
|