@lifi/types 5.3.0 → 6.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 +12 -0
- package/dist/api.d.ts +16 -1
- package/dist/cjs/api.d.ts +16 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [6.0.0](https://github.com/lifinance/types/compare/v5.3.0...v6.0.0) (2023-05-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **explainableFailures:** added supporting types
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* error reporting ([8120a4e](https://github.com/lifinance/types/commit/8120a4efe26c19d7fdc95ac9d72b91d1dc988fbc))
|
|
15
|
+
* **explainableFailures:** added supporting types ([50310b9](https://github.com/lifinance/types/commit/50310b93e3f55e3185b7234821fbf19efb5dd8d4))
|
|
16
|
+
|
|
5
17
|
## [5.3.0](https://github.com/lifinance/types/compare/v5.2.2...v5.3.0) (2023-05-05)
|
|
6
18
|
|
|
7
19
|
|
package/dist/api.d.ts
CHANGED
|
@@ -76,9 +76,24 @@ export interface Route {
|
|
|
76
76
|
steps: LifiStep[];
|
|
77
77
|
tags?: Order[];
|
|
78
78
|
}
|
|
79
|
+
export type ErroredPaths = {
|
|
80
|
+
[subpath: string]: ToolError[];
|
|
81
|
+
};
|
|
82
|
+
export type ErroredRoute = {
|
|
83
|
+
overallPath: string;
|
|
84
|
+
subpaths: ErroredPaths;
|
|
85
|
+
};
|
|
86
|
+
export type FilteredResult = {
|
|
87
|
+
overallPath: string;
|
|
88
|
+
reason: string;
|
|
89
|
+
};
|
|
90
|
+
export type UnavailableRoutes = {
|
|
91
|
+
filteredOut: FilteredResult[];
|
|
92
|
+
failed: ErroredRoute[];
|
|
93
|
+
};
|
|
79
94
|
export interface RoutesResponse {
|
|
80
95
|
routes: Route[];
|
|
81
|
-
|
|
96
|
+
unavailableRoutes: UnavailableRoutes;
|
|
82
97
|
}
|
|
83
98
|
export type PossibilityTopic = 'chains' | 'tokens' | 'bridges' | 'exchanges';
|
|
84
99
|
/**
|
package/dist/cjs/api.d.ts
CHANGED
|
@@ -76,9 +76,24 @@ export interface Route {
|
|
|
76
76
|
steps: LifiStep[];
|
|
77
77
|
tags?: Order[];
|
|
78
78
|
}
|
|
79
|
+
export type ErroredPaths = {
|
|
80
|
+
[subpath: string]: ToolError[];
|
|
81
|
+
};
|
|
82
|
+
export type ErroredRoute = {
|
|
83
|
+
overallPath: string;
|
|
84
|
+
subpaths: ErroredPaths;
|
|
85
|
+
};
|
|
86
|
+
export type FilteredResult = {
|
|
87
|
+
overallPath: string;
|
|
88
|
+
reason: string;
|
|
89
|
+
};
|
|
90
|
+
export type UnavailableRoutes = {
|
|
91
|
+
filteredOut: FilteredResult[];
|
|
92
|
+
failed: ErroredRoute[];
|
|
93
|
+
};
|
|
79
94
|
export interface RoutesResponse {
|
|
80
95
|
routes: Route[];
|
|
81
|
-
|
|
96
|
+
unavailableRoutes: UnavailableRoutes;
|
|
82
97
|
}
|
|
83
98
|
export type PossibilityTopic = 'chains' | 'tokens' | 'bridges' | 'exchanges';
|
|
84
99
|
/**
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -21,5 +21,6 @@ __exportStar(require("./coins"), exports);
|
|
|
21
21
|
__exportStar(require("./exchanges"), exports);
|
|
22
22
|
__exportStar(require("./step"), exports);
|
|
23
23
|
__exportStar(require("./api"), exports);
|
|
24
|
+
__exportStar(require("./apiErrors"), exports);
|
|
24
25
|
__exportStar(require("./multicall"), exports);
|
|
25
26
|
__exportStar(require("./quests"), exports);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED