@lifi/sdk 1.5.0 → 1.6.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.6.0](https://github.com/lifinance/sdk/compare/v1.5.0...v1.6.0) (2022-09-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * add bridgeExplorerLink to receiving chain process ([#110](https://github.com/lifinance/sdk/issues/110)) ([b9891a5](https://github.com/lifinance/sdk/commit/b9891a5b463412bbd29b88b91c2135bec9ef79fc))
11
+
5
12
  ## [1.5.0](https://github.com/lifinance/sdk/compare/v1.4.1...v1.5.0) (2022-09-06)
6
13
 
7
14
 
@@ -38,11 +38,10 @@ function waitForReceivingTransaction(txHash, statusManager, processType, step) {
38
38
  case 'DONE':
39
39
  return resolve(statusResponse);
40
40
  case 'PENDING':
41
- statusManager === null || statusManager === void 0 ? void 0 : statusManager.updateProcess(step, processType, 'PENDING', {
42
- substatus: statusResponse.substatus,
43
- substatusMessage: statusResponse.substatusMessage ||
44
- getSubstatusMessage(statusResponse.status, statusResponse.substatus),
45
- });
41
+ statusManager === null || statusManager === void 0 ? void 0 : statusManager.updateProcess(step, processType, 'PENDING', Object.assign({ substatus: statusResponse.substatus, substatusMessage: statusResponse.substatusMessage ||
42
+ getSubstatusMessage(statusResponse.status, statusResponse.substatus) }, (statusResponse.bridgeExplorerLink && {
43
+ txLink: statusResponse.bridgeExplorerLink,
44
+ })));
46
45
  return resolve(undefined);
47
46
  case 'NOT_FOUND':
48
47
  return resolve(undefined);
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/sdk";
2
- export declare const version = "1.5.0";
2
+ export declare const version = "1.6.0";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/sdk';
5
- exports.version = '1.5.0';
5
+ exports.version = '1.6.0';
@@ -32,11 +32,10 @@ export function waitForReceivingTransaction(txHash, statusManager, processType,
32
32
  case 'DONE':
33
33
  return resolve(statusResponse);
34
34
  case 'PENDING':
35
- statusManager === null || statusManager === void 0 ? void 0 : statusManager.updateProcess(step, processType, 'PENDING', {
36
- substatus: statusResponse.substatus,
37
- substatusMessage: statusResponse.substatusMessage ||
38
- getSubstatusMessage(statusResponse.status, statusResponse.substatus),
39
- });
35
+ statusManager === null || statusManager === void 0 ? void 0 : statusManager.updateProcess(step, processType, 'PENDING', Object.assign({ substatus: statusResponse.substatus, substatusMessage: statusResponse.substatusMessage ||
36
+ getSubstatusMessage(statusResponse.status, statusResponse.substatus) }, (statusResponse.bridgeExplorerLink && {
37
+ txLink: statusResponse.bridgeExplorerLink,
38
+ })));
40
39
  return resolve(undefined);
41
40
  case 'NOT_FOUND':
42
41
  return resolve(undefined);
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/sdk";
2
- export declare const version = "1.5.0";
2
+ export declare const version = "1.6.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/sdk';
2
- export const version = '1.5.0';
2
+ export const version = '1.6.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/sdk",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",
@@ -76,11 +76,11 @@
76
76
  "dependencies": {
77
77
  "@ethersproject/abi": "^5.7.0",
78
78
  "@ethersproject/contracts": "^5.7.0",
79
- "@lifi/types": "^1.6.0",
79
+ "@lifi/types": "^1.7.0",
80
80
  "axios": "^0.27.2",
81
81
  "bignumber.js": "^9.1.0",
82
82
  "eth-rpc-errors": "^4.0.3",
83
- "ethers": "^5.7.0"
83
+ "ethers": "^5.7.1"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@commitlint/cli": "^17.1.2",
@@ -88,23 +88,23 @@
88
88
  "@types/bip39": "^3.0.0",
89
89
  "@types/chai": "^4.3.3",
90
90
  "@types/hdkey": "^2.0.0",
91
- "@types/jest": "^29.0.0",
91
+ "@types/jest": "^29.0.2",
92
92
  "@types/websocket": "^1.0.4",
93
- "@typescript-eslint/eslint-plugin": "^5.36.1",
94
- "@typescript-eslint/parser": "^5.36.1",
95
- "eslint": "^8.23.0",
93
+ "@typescript-eslint/eslint-plugin": "^5.37.0",
94
+ "@typescript-eslint/parser": "^5.37.0",
95
+ "eslint": "^8.23.1",
96
96
  "eslint-config-prettier": "^8.3.0",
97
97
  "eslint-plugin-prettier": "^4.2.1",
98
98
  "husky": "^8.0.1",
99
- "jest": "^29.0.2",
99
+ "jest": "^29.0.3",
100
100
  "lint-staged": "^13.0.3",
101
101
  "npm-run-all": "^4.1.5",
102
102
  "pinst": "^3.0.0",
103
103
  "prettier": "^2.7.1",
104
104
  "standard-version": "^9.5.0",
105
- "ts-jest": "^28.0.8",
105
+ "ts-jest": "^29.0.1",
106
106
  "ts-loader": "^9.3.1",
107
- "typescript": "^4.8.2",
107
+ "typescript": "^4.8.3",
108
108
  "webpack": "^5.73.0",
109
109
  "webpack-cli": "^4.10.0"
110
110
  },