@lifi/types 1.0.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/CHANGELOG.md +635 -0
- package/LICENSE +21 -0
- package/README.md +9 -0
- package/dist/api.d.ts +176 -0
- package/dist/api.js +50 -0
- package/dist/apiErrors.d.ts +9 -0
- package/dist/apiErrors.js +2 -0
- package/dist/base.d.ts +204 -0
- package/dist/base.js +174 -0
- package/dist/bridges.d.ts +34 -0
- package/dist/bridges.js +170 -0
- package/dist/chains/Chain.d.ts +15 -0
- package/dist/chains/Chain.js +8 -0
- package/dist/chains/EVMChain.d.ts +19 -0
- package/dist/chains/EVMChain.js +8 -0
- package/dist/chains/SolanaChain.d.ts +2 -0
- package/dist/chains/SolanaChain.js +2 -0
- package/dist/chains/chain.utils.d.ts +4 -0
- package/dist/chains/chain.utils.js +30 -0
- package/dist/chains/index.d.ts +5 -0
- package/dist/chains/index.js +21 -0
- package/dist/chains/supported.chains.d.ts +5 -0
- package/dist/chains/supported.chains.js +1172 -0
- package/dist/coins.d.ts +9 -0
- package/dist/coins.js +1334 -0
- package/dist/exchanges.d.ts +51 -0
- package/dist/exchanges.js +1047 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +24 -0
- package/dist/multicall.d.ts +3 -0
- package/dist/multicall.js +61 -0
- package/dist/step.d.ts +103 -0
- package/dist/step.js +19 -0
- package/package.json +77 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Token } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
* These values are now obtainable from the LI.FI API
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ExchangeTool {
|
|
7
|
+
oneinch = "1inch",
|
|
8
|
+
paraswap = "paraswap",
|
|
9
|
+
openocean = "openocean",
|
|
10
|
+
zerox = "0x",
|
|
11
|
+
dodo = "dodo"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
* These values are now obtainable from the LI.FI API
|
|
16
|
+
*/
|
|
17
|
+
export declare type ExchangeTools = ExchangeTool | string;
|
|
18
|
+
export interface ExchangeAggregator {
|
|
19
|
+
key: ExchangeTool;
|
|
20
|
+
name: string;
|
|
21
|
+
logoURI: string;
|
|
22
|
+
webUrl: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated
|
|
26
|
+
* These values are now obtainable from the LI.FI API
|
|
27
|
+
*/
|
|
28
|
+
export declare const supportedExchangeAggregators: Array<ExchangeAggregator>;
|
|
29
|
+
export interface Exchange {
|
|
30
|
+
key: ExchangeTools;
|
|
31
|
+
name: string;
|
|
32
|
+
chainId: number;
|
|
33
|
+
logoURI: string;
|
|
34
|
+
webUrl: string;
|
|
35
|
+
graph?: string;
|
|
36
|
+
tokenlistUrl: string;
|
|
37
|
+
routerAddress: string;
|
|
38
|
+
factoryAddress: string;
|
|
39
|
+
initCodeHash: string;
|
|
40
|
+
baseTokens: readonly Token[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated
|
|
44
|
+
* These values are now obtainable from the LI.FI API
|
|
45
|
+
*/
|
|
46
|
+
export declare const supportedExchanges: Array<Exchange>;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated
|
|
49
|
+
* Available exchanges should be queried from the API
|
|
50
|
+
*/
|
|
51
|
+
export declare const getExchangeByKey: (key: string) => Exchange;
|