@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 CHANGED
@@ -101,6 +101,7 @@ interface SwapStatus {
101
101
  depositAddress: string;
102
102
  depositMemo?: string;
103
103
  swaps?: any[];
104
+ deadline?: string;
104
105
  }
105
106
  interface Withdrawal {
106
107
  id: string;
package/dist/index.d.ts CHANGED
@@ -101,6 +101,7 @@ interface SwapStatus {
101
101
  depositAddress: string;
102
102
  depositMemo?: string;
103
103
  swaps?: any[];
104
+ deadline?: string;
104
105
  }
105
106
  interface Withdrawal {
106
107
  id: string;
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 data;
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 data;
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zucchinifi/dapp-sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "TypeScript SDK for Zcash self-custody browser wallet Zucchini",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",