@dhedge/v2-sdk 2.1.0 → 2.1.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/dist/v2-sdk.cjs.development.js +9 -2
- package/dist/v2-sdk.cjs.development.js.map +1 -1
- package/dist/v2-sdk.cjs.production.min.js +1 -1
- package/dist/v2-sdk.cjs.production.min.js.map +1 -1
- package/dist/v2-sdk.esm.js +9 -2
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/services/kyberSwap/index.ts +10 -2
- package/src/test/kyberSwap.test.ts +45 -39
|
@@ -27905,7 +27905,10 @@ function _getKyberSwapTxData() {
|
|
|
27905
27905
|
_context.prev = 1;
|
|
27906
27906
|
_context.next = 4;
|
|
27907
27907
|
return axios.get(kyberBaseUrl + "/" + pool.network + "/api/v1/routes", {
|
|
27908
|
-
params: params
|
|
27908
|
+
params: params,
|
|
27909
|
+
headers: {
|
|
27910
|
+
"x-client-id": "dHEDGE"
|
|
27911
|
+
}
|
|
27909
27912
|
});
|
|
27910
27913
|
|
|
27911
27914
|
case 4:
|
|
@@ -27918,7 +27921,11 @@ function _getKyberSwapTxData() {
|
|
|
27918
27921
|
|
|
27919
27922
|
};
|
|
27920
27923
|
_context.next = 8;
|
|
27921
|
-
return axios.post(kyberBaseUrl + "/" + pool.network + "/api/v1/route/build", buildParams
|
|
27924
|
+
return axios.post(kyberBaseUrl + "/" + pool.network + "/api/v1/route/build", buildParams, {
|
|
27925
|
+
headers: {
|
|
27926
|
+
"x-client-id": "dHEDGE"
|
|
27927
|
+
}
|
|
27928
|
+
});
|
|
27922
27929
|
|
|
27923
27930
|
case 8:
|
|
27924
27931
|
buildResult = _context.sent;
|