@lifi/sdk 1.3.0 → 1.3.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 +7 -0
- package/dist/cjs/services/ApiService.js +6 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/services/ApiService.js +6 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
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.3.1](https://github.com/lifinance/sdk/compare/v1.3.0...v1.3.1) (2022-09-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* pass default options right for quote requests ([#109](https://github.com/lifinance/sdk/issues/109)) ([776c5a3](https://github.com/lifinance/sdk/commit/776c5a33f0ac7e6525659878cf7323244f055e77))
|
|
11
|
+
|
|
5
12
|
## [1.3.0](https://github.com/lifinance/sdk/compare/v1.2.2...v1.3.0) (2022-09-05)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -92,11 +92,11 @@ const getQuote = (request, options) => __awaiter(void 0, void 0, void 0, functio
|
|
|
92
92
|
request.preferBridges =
|
|
93
93
|
request.preferBridges || ((_c = config.defaultRouteOptions.bridges) === null || _c === void 0 ? void 0 : _c.prefer);
|
|
94
94
|
request.allowExchanges =
|
|
95
|
-
request.allowExchanges || ((_d = config.defaultRouteOptions.
|
|
95
|
+
request.allowExchanges || ((_d = config.defaultRouteOptions.exchanges) === null || _d === void 0 ? void 0 : _d.allow);
|
|
96
96
|
request.denyExchanges =
|
|
97
|
-
request.denyExchanges || ((_e = config.defaultRouteOptions.
|
|
97
|
+
request.denyExchanges || ((_e = config.defaultRouteOptions.exchanges) === null || _e === void 0 ? void 0 : _e.deny);
|
|
98
98
|
request.preferExchanges =
|
|
99
|
-
request.preferExchanges || ((_f = config.defaultRouteOptions.
|
|
99
|
+
request.preferExchanges || ((_f = config.defaultRouteOptions.exchanges) === null || _f === void 0 ? void 0 : _f.prefer);
|
|
100
100
|
try {
|
|
101
101
|
const result = yield axios_1.default.get(config.apiUrl + 'quote', {
|
|
102
102
|
params: request,
|
|
@@ -143,11 +143,11 @@ const getContractCallQuote = (request, options) => __awaiter(void 0, void 0, voi
|
|
|
143
143
|
request.preferBridges =
|
|
144
144
|
request.preferBridges || ((_j = config.defaultRouteOptions.bridges) === null || _j === void 0 ? void 0 : _j.prefer);
|
|
145
145
|
request.allowExchanges =
|
|
146
|
-
request.allowExchanges || ((_k = config.defaultRouteOptions.
|
|
146
|
+
request.allowExchanges || ((_k = config.defaultRouteOptions.exchanges) === null || _k === void 0 ? void 0 : _k.allow);
|
|
147
147
|
request.denyExchanges =
|
|
148
|
-
request.denyExchanges || ((_l = config.defaultRouteOptions.
|
|
148
|
+
request.denyExchanges || ((_l = config.defaultRouteOptions.exchanges) === null || _l === void 0 ? void 0 : _l.deny);
|
|
149
149
|
request.preferExchanges =
|
|
150
|
-
request.preferExchanges || ((_m = config.defaultRouteOptions.
|
|
150
|
+
request.preferExchanges || ((_m = config.defaultRouteOptions.exchanges) === null || _m === void 0 ? void 0 : _m.prefer);
|
|
151
151
|
// send request
|
|
152
152
|
try {
|
|
153
153
|
const result = yield axios_1.default.post(config.apiUrl + 'quote/contractCall', request, {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/sdk";
|
|
2
|
-
export declare const version = "1.3.
|
|
2
|
+
export declare const version = "1.3.1";
|
package/dist/cjs/version.js
CHANGED
|
@@ -87,11 +87,11 @@ const getQuote = (request, options) => __awaiter(void 0, void 0, void 0, functio
|
|
|
87
87
|
request.preferBridges =
|
|
88
88
|
request.preferBridges || ((_c = config.defaultRouteOptions.bridges) === null || _c === void 0 ? void 0 : _c.prefer);
|
|
89
89
|
request.allowExchanges =
|
|
90
|
-
request.allowExchanges || ((_d = config.defaultRouteOptions.
|
|
90
|
+
request.allowExchanges || ((_d = config.defaultRouteOptions.exchanges) === null || _d === void 0 ? void 0 : _d.allow);
|
|
91
91
|
request.denyExchanges =
|
|
92
|
-
request.denyExchanges || ((_e = config.defaultRouteOptions.
|
|
92
|
+
request.denyExchanges || ((_e = config.defaultRouteOptions.exchanges) === null || _e === void 0 ? void 0 : _e.deny);
|
|
93
93
|
request.preferExchanges =
|
|
94
|
-
request.preferExchanges || ((_f = config.defaultRouteOptions.
|
|
94
|
+
request.preferExchanges || ((_f = config.defaultRouteOptions.exchanges) === null || _f === void 0 ? void 0 : _f.prefer);
|
|
95
95
|
try {
|
|
96
96
|
const result = yield axios.get(config.apiUrl + 'quote', {
|
|
97
97
|
params: request,
|
|
@@ -138,11 +138,11 @@ const getContractCallQuote = (request, options) => __awaiter(void 0, void 0, voi
|
|
|
138
138
|
request.preferBridges =
|
|
139
139
|
request.preferBridges || ((_j = config.defaultRouteOptions.bridges) === null || _j === void 0 ? void 0 : _j.prefer);
|
|
140
140
|
request.allowExchanges =
|
|
141
|
-
request.allowExchanges || ((_k = config.defaultRouteOptions.
|
|
141
|
+
request.allowExchanges || ((_k = config.defaultRouteOptions.exchanges) === null || _k === void 0 ? void 0 : _k.allow);
|
|
142
142
|
request.denyExchanges =
|
|
143
|
-
request.denyExchanges || ((_l = config.defaultRouteOptions.
|
|
143
|
+
request.denyExchanges || ((_l = config.defaultRouteOptions.exchanges) === null || _l === void 0 ? void 0 : _l.deny);
|
|
144
144
|
request.preferExchanges =
|
|
145
|
-
request.preferExchanges || ((_m = config.defaultRouteOptions.
|
|
145
|
+
request.preferExchanges || ((_m = config.defaultRouteOptions.exchanges) === null || _m === void 0 ? void 0 : _m.prefer);
|
|
146
146
|
// send request
|
|
147
147
|
try {
|
|
148
148
|
const result = yield axios.post(config.apiUrl + 'quote/contractCall', request, {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/sdk";
|
|
2
|
-
export declare const version = "1.3.
|
|
2
|
+
export declare const version = "1.3.1";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/sdk';
|
|
2
|
-
export const version = '1.3.
|
|
2
|
+
export const version = '1.3.1';
|