@zucchinifi/dapp-sdk 0.1.5 → 0.1.6
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -740,7 +740,10 @@ var ZucchiniSDK = class {
|
|
|
740
740
|
const res = await fetch(`${this.apiUrl}/swap/status?${params.toString()}`);
|
|
741
741
|
const data = await res.json();
|
|
742
742
|
if (data.error) throw new Error(data.error);
|
|
743
|
-
return
|
|
743
|
+
return {
|
|
744
|
+
...data,
|
|
745
|
+
deadline: data.deadline || data.quoteResponse?.quote?.deadline
|
|
746
|
+
};
|
|
744
747
|
},
|
|
745
748
|
getWithdrawals: async (depositAddress, options = {}) => {
|
|
746
749
|
const params = new URLSearchParams({ depositAddress });
|
package/dist/index.mjs
CHANGED
|
@@ -691,7 +691,10 @@ var ZucchiniSDK = class {
|
|
|
691
691
|
const res = await fetch(`${this.apiUrl}/swap/status?${params.toString()}`);
|
|
692
692
|
const data = await res.json();
|
|
693
693
|
if (data.error) throw new Error(data.error);
|
|
694
|
-
return
|
|
694
|
+
return {
|
|
695
|
+
...data,
|
|
696
|
+
deadline: data.deadline || data.quoteResponse?.quote?.deadline
|
|
697
|
+
};
|
|
695
698
|
},
|
|
696
699
|
getWithdrawals: async (depositAddress, options = {}) => {
|
|
697
700
|
const params = new URLSearchParams({ depositAddress });
|