@lifi/types 1.17.1 → 1.18.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 CHANGED
@@ -2,6 +2,13 @@
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
+ ## [1.18.0](https://github.com/lifinance/types/compare/v1.17.1...v1.18.0) (2022-11-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * add execution gas info and substatus ([#115](https://github.com/lifinance/types/issues/115)) ([ac32647](https://github.com/lifinance/types/commit/ac326472ad25f28486ba0b901b747d0559707742))
11
+
5
12
  ### [1.17.1](https://github.com/lifinance/types/compare/v1.17.0...v1.17.1) (2022-11-22)
6
13
 
7
14
  ## [1.17.0](https://github.com/lifinance/types/compare/v1.16.0...v1.17.0) (2022-11-17)
@@ -1,4 +1,5 @@
1
1
  import { providers } from 'ethers';
2
+ import { Substatus } from '.';
2
3
  import { Token } from './base';
3
4
  import { Bridge } from './bridges';
4
5
  import { Exchange, ExchangeAggregator } from './exchanges';
@@ -49,6 +50,7 @@ export interface Process {
49
50
  failedAt?: number;
50
51
  type: ProcessType;
51
52
  status: Status;
53
+ substatus?: Substatus;
52
54
  message?: string;
53
55
  txHash?: string;
54
56
  txLink?: string;
@@ -65,8 +67,11 @@ export interface Execution {
65
67
  fromAmount?: string;
66
68
  toAmount?: string;
67
69
  toToken?: Token;
68
- gasUsed?: string;
69
70
  gasPrice?: string;
71
+ gasUsed?: string;
72
+ gasToken?: Token;
73
+ gasAmount?: string;
74
+ gasAmountUSD?: string;
70
75
  }
71
76
  export declare const emptyExecution: Execution;
72
77
  export type StepType = 'swap' | 'cross' | 'lifi' | 'custom';
package/dist/step.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { providers } from 'ethers';
2
+ import { Substatus } from '.';
2
3
  import { Token } from './base';
3
4
  import { Bridge } from './bridges';
4
5
  import { Exchange, ExchangeAggregator } from './exchanges';
@@ -49,6 +50,7 @@ export interface Process {
49
50
  failedAt?: number;
50
51
  type: ProcessType;
51
52
  status: Status;
53
+ substatus?: Substatus;
52
54
  message?: string;
53
55
  txHash?: string;
54
56
  txLink?: string;
@@ -65,8 +67,11 @@ export interface Execution {
65
67
  fromAmount?: string;
66
68
  toAmount?: string;
67
69
  toToken?: Token;
68
- gasUsed?: string;
69
70
  gasPrice?: string;
71
+ gasUsed?: string;
72
+ gasToken?: Token;
73
+ gasAmount?: string;
74
+ gasAmountUSD?: string;
70
75
  }
71
76
  export declare const emptyExecution: Execution;
72
77
  export type StepType = 'swap' | 'cross' | 'lifi' | 'custom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "1.17.1",
3
+ "version": "1.18.0",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",