@lifi/types 2.4.1 → 2.5.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/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.1](https://github.com/lifinance/types/compare/v2.5.0...v2.5.1) (2023-03-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * update insurance feeAmountUsd type to string ([#141](https://github.com/lifinance/types/issues/141)) ([e1ec826](https://github.com/lifinance/types/commit/e1ec8267eefa77d1e0cd8e25ae6f888dffc99b4b))
11
+
12
+ ## [2.5.0](https://github.com/lifinance/types/compare/v2.4.1...v2.5.0) (2023-03-14)
13
+
14
+
15
+ ### Features
16
+
17
+ * add insurance to route ([#140](https://github.com/lifinance/types/issues/140)) ([f909c51](https://github.com/lifinance/types/commit/f909c510a3448826aa4125ed5792107eae4a7b46))
18
+
5
19
  ### [2.4.1](https://github.com/lifinance/types/compare/v2.4.0...v2.4.1) (2023-03-10)
6
20
 
7
21
 
package/dist/api.d.ts CHANGED
@@ -50,8 +50,18 @@ export interface AllowDenyPrefer {
50
50
  deny?: string[];
51
51
  prefer?: string[];
52
52
  }
53
+ export declare enum InsuranceState {
54
+ INSURED = "INSURED",
55
+ INSURABLE = "INSURABLE",
56
+ NOT_INSURABLE = "NOT_INSURABLE"
57
+ }
58
+ export interface Insurance {
59
+ state: InsuranceState;
60
+ feeAmountUsd: string;
61
+ }
53
62
  export interface Route {
54
63
  id: string;
64
+ insurance: Insurance;
55
65
  fromChainId: number;
56
66
  fromAmountUSD: string;
57
67
  fromAmount: string;
package/dist/api.js CHANGED
@@ -1,4 +1,10 @@
1
1
  export const Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'];
2
+ export var InsuranceState;
3
+ (function (InsuranceState) {
4
+ InsuranceState["INSURED"] = "INSURED";
5
+ InsuranceState["INSURABLE"] = "INSURABLE";
6
+ InsuranceState["NOT_INSURABLE"] = "NOT_INSURABLE";
7
+ })(InsuranceState || (InsuranceState = {}));
2
8
  const _StatusMessage = [
3
9
  // The transaction was not found -- likely not mined yet
4
10
  'NOT_FOUND',
package/dist/cjs/api.d.ts CHANGED
@@ -50,8 +50,18 @@ export interface AllowDenyPrefer {
50
50
  deny?: string[];
51
51
  prefer?: string[];
52
52
  }
53
+ export declare enum InsuranceState {
54
+ INSURED = "INSURED",
55
+ INSURABLE = "INSURABLE",
56
+ NOT_INSURABLE = "NOT_INSURABLE"
57
+ }
58
+ export interface Insurance {
59
+ state: InsuranceState;
60
+ feeAmountUsd: string;
61
+ }
53
62
  export interface Route {
54
63
  id: string;
64
+ insurance: Insurance;
55
65
  fromChainId: number;
56
66
  fromAmountUSD: string;
57
67
  fromAmount: string;
package/dist/cjs/api.js CHANGED
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSubstatusFailed = exports.isSubstatusDone = exports.isSubstatusPending = exports.Orders = void 0;
3
+ exports.isSubstatusFailed = exports.isSubstatusDone = exports.isSubstatusPending = exports.InsuranceState = exports.Orders = void 0;
4
4
  exports.Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'];
5
+ var InsuranceState;
6
+ (function (InsuranceState) {
7
+ InsuranceState["INSURED"] = "INSURED";
8
+ InsuranceState["INSURABLE"] = "INSURABLE";
9
+ InsuranceState["NOT_INSURABLE"] = "NOT_INSURABLE";
10
+ })(InsuranceState = exports.InsuranceState || (exports.InsuranceState = {}));
5
11
  const _StatusMessage = [
6
12
  // The transaction was not found -- likely not mined yet
7
13
  'NOT_FOUND',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "2.4.1",
3
+ "version": "2.5.1",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",