@lifi/types 2.5.0 → 2.5.2
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 +14 -0
- package/dist/api.d.ts +3 -6
- package/dist/api.js +5 -6
- package/dist/cjs/api.d.ts +3 -6
- package/dist/cjs/api.js +6 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
### [2.5.2](https://github.com/lifinance/types/compare/v2.5.1...v2.5.2) (2023-03-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* set to two decimals ([#142](https://github.com/lifinance/types/issues/142)) ([ef2fe3f](https://github.com/lifinance/types/commit/ef2fe3f41f0258d1358908b10bc8ef0d40c36f80))
|
|
11
|
+
|
|
12
|
+
### [2.5.1](https://github.com/lifinance/types/compare/v2.5.0...v2.5.1) (2023-03-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* update insurance feeAmountUsd type to string ([#141](https://github.com/lifinance/types/issues/141)) ([e1ec826](https://github.com/lifinance/types/commit/e1ec8267eefa77d1e0cd8e25ae6f888dffc99b4b))
|
|
18
|
+
|
|
5
19
|
## [2.5.0](https://github.com/lifinance/types/compare/v2.4.1...v2.5.0) (2023-03-14)
|
|
6
20
|
|
|
7
21
|
|
package/dist/api.d.ts
CHANGED
|
@@ -50,14 +50,11 @@ export interface AllowDenyPrefer {
|
|
|
50
50
|
deny?: string[];
|
|
51
51
|
prefer?: string[];
|
|
52
52
|
}
|
|
53
|
-
export declare
|
|
54
|
-
|
|
55
|
-
INSURABLE = "INSURABLE",
|
|
56
|
-
NOT_INSURABLE = "NOT_INSURABLE"
|
|
57
|
-
}
|
|
53
|
+
export declare const _InsuranceState: readonly ["INSURED", "INSURABLE", "NOT_INSURABLE"];
|
|
54
|
+
export type InsuranceState = (typeof _InsuranceState)[number];
|
|
58
55
|
export interface Insurance {
|
|
59
56
|
state: InsuranceState;
|
|
60
|
-
feeAmountUsd:
|
|
57
|
+
feeAmountUsd: string;
|
|
61
58
|
}
|
|
62
59
|
export interface Route {
|
|
63
60
|
id: string;
|
package/dist/api.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'];
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})(InsuranceState || (InsuranceState = {}));
|
|
2
|
+
export const _InsuranceState = [
|
|
3
|
+
'INSURED',
|
|
4
|
+
'INSURABLE',
|
|
5
|
+
'NOT_INSURABLE',
|
|
6
|
+
];
|
|
8
7
|
const _StatusMessage = [
|
|
9
8
|
// The transaction was not found -- likely not mined yet
|
|
10
9
|
'NOT_FOUND',
|
package/dist/cjs/api.d.ts
CHANGED
|
@@ -50,14 +50,11 @@ export interface AllowDenyPrefer {
|
|
|
50
50
|
deny?: string[];
|
|
51
51
|
prefer?: string[];
|
|
52
52
|
}
|
|
53
|
-
export declare
|
|
54
|
-
|
|
55
|
-
INSURABLE = "INSURABLE",
|
|
56
|
-
NOT_INSURABLE = "NOT_INSURABLE"
|
|
57
|
-
}
|
|
53
|
+
export declare const _InsuranceState: readonly ["INSURED", "INSURABLE", "NOT_INSURABLE"];
|
|
54
|
+
export type InsuranceState = (typeof _InsuranceState)[number];
|
|
58
55
|
export interface Insurance {
|
|
59
56
|
state: InsuranceState;
|
|
60
|
-
feeAmountUsd:
|
|
57
|
+
feeAmountUsd: string;
|
|
61
58
|
}
|
|
62
59
|
export interface Route {
|
|
63
60
|
id: string;
|
package/dist/cjs/api.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSubstatusFailed = exports.isSubstatusDone = exports.isSubstatusPending = exports.
|
|
3
|
+
exports.isSubstatusFailed = exports.isSubstatusDone = exports.isSubstatusPending = exports._InsuranceState = exports.Orders = void 0;
|
|
4
4
|
exports.Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'];
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(InsuranceState = exports.InsuranceState || (exports.InsuranceState = {}));
|
|
5
|
+
exports._InsuranceState = [
|
|
6
|
+
'INSURED',
|
|
7
|
+
'INSURABLE',
|
|
8
|
+
'NOT_INSURABLE',
|
|
9
|
+
];
|
|
11
10
|
const _StatusMessage = [
|
|
12
11
|
// The transaction was not found -- likely not mined yet
|
|
13
12
|
'NOT_FOUND',
|