@lifi/types 9.0.0-alpha.0 → 9.0.0-alpha.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 +20 -2
- package/dist/base.d.ts +0 -22
- package/dist/bridges.d.ts +14 -2
- package/dist/bridges.js +0 -148
- package/dist/chains/EVMChain.d.ts +0 -1
- package/dist/chains/EVMChain.js +1 -4
- package/dist/chains/index.d.ts +0 -2
- package/dist/chains/index.js +0 -2
- package/dist/cjs/api.d.ts +20 -2
- package/dist/cjs/base.d.ts +0 -22
- package/dist/cjs/bridges.d.ts +14 -2
- package/dist/cjs/bridges.js +1 -149
- package/dist/cjs/chains/EVMChain.d.ts +0 -1
- package/dist/cjs/chains/EVMChain.js +0 -6
- package/dist/cjs/chains/index.d.ts +0 -2
- package/dist/cjs/chains/index.js +0 -2
- package/dist/cjs/exchanges.d.ts +4 -14
- package/dist/cjs/exchanges.js +1 -1090
- package/dist/cjs/index.d.ts +3 -5
- package/dist/cjs/index.js +3 -5
- package/dist/cjs/step.d.ts +8 -6
- package/dist/exchanges.d.ts +4 -14
- package/dist/exchanges.js +0 -1088
- package/dist/index.d.ts +3 -5
- package/dist/index.js +3 -5
- package/dist/step.d.ts +8 -6
- package/package.json +2 -7
- package/dist/chains/chain.utils.d.ts +0 -4
- package/dist/chains/chain.utils.js +0 -21
- package/dist/chains/supported.chains.d.ts +0 -5
- package/dist/chains/supported.chains.js +0 -1166
- package/dist/cjs/chains/chain.utils.d.ts +0 -4
- package/dist/cjs/chains/chain.utils.js +0 -26
- package/dist/cjs/chains/supported.chains.d.ts +0 -5
- package/dist/cjs/chains/supported.chains.js +0 -1169
- package/dist/cjs/coins.d.ts +0 -9
- package/dist/cjs/coins.js +0 -1841
- package/dist/cjs/multicall.d.ts +0 -3
- package/dist/cjs/multicall.js +0 -79
- package/dist/coins.d.ts +0 -9
- package/dist/coins.js +0 -1834
- package/dist/multicall.d.ts +0 -3
- package/dist/multicall.js +0 -76
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
export * from './api';
|
|
2
|
+
export * from './apiErrors';
|
|
1
3
|
export * from './base';
|
|
2
4
|
export * from './bridges';
|
|
3
5
|
export * from './chains';
|
|
4
|
-
export * from './coins';
|
|
5
6
|
export * from './exchanges';
|
|
6
|
-
export * from './step';
|
|
7
|
-
export * from './api';
|
|
8
|
-
export * from './apiErrors';
|
|
9
|
-
export * from './multicall';
|
|
10
7
|
export * from './quests';
|
|
8
|
+
export * from './step';
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,13 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
18
|
+
__exportStar(require("./apiErrors"), exports);
|
|
17
19
|
__exportStar(require("./base"), exports);
|
|
18
20
|
__exportStar(require("./bridges"), exports);
|
|
19
21
|
__exportStar(require("./chains"), exports);
|
|
20
|
-
__exportStar(require("./coins"), exports);
|
|
21
22
|
__exportStar(require("./exchanges"), exports);
|
|
22
|
-
__exportStar(require("./step"), exports);
|
|
23
|
-
__exportStar(require("./api"), exports);
|
|
24
|
-
__exportStar(require("./apiErrors"), exports);
|
|
25
|
-
__exportStar(require("./multicall"), exports);
|
|
26
23
|
__exportStar(require("./quests"), exports);
|
|
24
|
+
__exportStar(require("./step"), exports);
|
package/dist/cjs/step.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Substatus } from '.';
|
|
1
|
+
import { Substatus, TransactionRequest } from '.';
|
|
3
2
|
import { Token } from './base';
|
|
4
|
-
import { Bridge } from './bridges';
|
|
5
|
-
import { Exchange, ExchangeAggregator } from './exchanges';
|
|
6
3
|
export interface FeeCost {
|
|
7
4
|
name: string;
|
|
8
5
|
description: string;
|
|
@@ -79,17 +76,22 @@ export declare const emptyExecution: Execution;
|
|
|
79
76
|
export declare const _StepType: readonly ["lifi", "swap", "cross", "protocol", "custom"];
|
|
80
77
|
export type StepType = (typeof _StepType)[number];
|
|
81
78
|
export type StepTool = string;
|
|
79
|
+
export type StepToolDetails = {
|
|
80
|
+
key: string;
|
|
81
|
+
name: string;
|
|
82
|
+
logoURI: string;
|
|
83
|
+
};
|
|
82
84
|
export interface StepBase {
|
|
83
85
|
id: string;
|
|
84
86
|
type: StepType;
|
|
85
87
|
tool: StepTool;
|
|
86
|
-
toolDetails:
|
|
88
|
+
toolDetails: StepToolDetails;
|
|
87
89
|
integrator?: string;
|
|
88
90
|
referrer?: string;
|
|
89
91
|
action: Action;
|
|
90
92
|
estimate?: Estimate;
|
|
91
93
|
execution?: Execution;
|
|
92
|
-
transactionRequest?:
|
|
94
|
+
transactionRequest?: TransactionRequest;
|
|
93
95
|
}
|
|
94
96
|
export interface DestinationCallInfo {
|
|
95
97
|
toContractAddress: string;
|
package/dist/exchanges.d.ts
CHANGED
|
@@ -21,11 +21,6 @@ export interface ExchangeAggregator {
|
|
|
21
21
|
logoURI: string;
|
|
22
22
|
webUrl: string;
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated
|
|
26
|
-
* These values are now obtainable from the LI.FI API
|
|
27
|
-
*/
|
|
28
|
-
export declare const supportedExchangeAggregators: Array<ExchangeAggregator>;
|
|
29
24
|
export interface Exchange {
|
|
30
25
|
key: ExchangeTools;
|
|
31
26
|
name: string;
|
|
@@ -39,12 +34,7 @@ export interface Exchange {
|
|
|
39
34
|
initCodeHash: string;
|
|
40
35
|
baseTokens: readonly StaticToken[];
|
|
41
36
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated
|
|
48
|
-
* Available exchanges should be queried from the API
|
|
49
|
-
*/
|
|
50
|
-
export declare const getExchangeByKey: (key: string) => Exchange;
|
|
37
|
+
export interface ExchangeDefinition {
|
|
38
|
+
tool: ExchangeTools;
|
|
39
|
+
chains: number[];
|
|
40
|
+
}
|