@pyxisjs/core 0.2.1 → 0.2.3

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
@@ -106,6 +106,10 @@ interface WalletAccount {
106
106
  }
107
107
 
108
108
  interface WalletAdapter {
109
+ /**
110
+ * Account address of the wallet
111
+ */
112
+ accountAddress?: string;
109
113
  /**
110
114
  * Get allowance of a token
111
115
  * @param tokenAddress token address
@@ -249,17 +253,18 @@ interface PyxisWithdrawalRequest {
249
253
  /** Amount being offered */
250
254
  offerAmount: string;
251
255
  /** Token being offered */
252
- offerToken: PyxisToken;
256
+ offerToken: string;
253
257
  /** User address making the withdrawal request */
254
258
  userAddress: string;
255
259
  /** Amount wanted in return */
256
260
  wantAmount: string;
257
261
  /** Token wanted in return */
258
- wantToken: PyxisToken;
262
+ wantToken: string;
259
263
  /** Timestamp when the withdrawal request was last updated */
260
264
  updatedAt: string;
261
265
  }
262
266
  interface BuildWithdrawTxArgs {
267
+ user: string;
263
268
  vault: string;
264
269
  offerAsset: string;
265
270
  wantAsset: string;
package/dist/index.d.ts CHANGED
@@ -106,6 +106,10 @@ interface WalletAccount {
106
106
  }
107
107
 
108
108
  interface WalletAdapter {
109
+ /**
110
+ * Account address of the wallet
111
+ */
112
+ accountAddress?: string;
109
113
  /**
110
114
  * Get allowance of a token
111
115
  * @param tokenAddress token address
@@ -249,17 +253,18 @@ interface PyxisWithdrawalRequest {
249
253
  /** Amount being offered */
250
254
  offerAmount: string;
251
255
  /** Token being offered */
252
- offerToken: PyxisToken;
256
+ offerToken: string;
253
257
  /** User address making the withdrawal request */
254
258
  userAddress: string;
255
259
  /** Amount wanted in return */
256
260
  wantAmount: string;
257
261
  /** Token wanted in return */
258
- wantToken: PyxisToken;
262
+ wantToken: string;
259
263
  /** Timestamp when the withdrawal request was last updated */
260
264
  updatedAt: string;
261
265
  }
262
266
  interface BuildWithdrawTxArgs {
267
+ user: string;
263
268
  vault: string;
264
269
  offerAsset: string;
265
270
  wantAsset: string;
package/dist/index.js CHANGED
@@ -3003,10 +3003,10 @@ function mapOnchainToWithdrawalRequest(onchainRequest, updatedAt) {
3003
3003
  deadline: onchainRequest.deadline,
3004
3004
  flags: parseRequestFlags(onchainRequest.flags?.flag ?? 0),
3005
3005
  offerAmount: onchainRequest.offer_amount,
3006
- offerToken: onchainRequest.offer_token,
3006
+ offerToken: onchainRequest.offer_token.inner,
3007
3007
  userAddress: onchainRequest.user_address,
3008
3008
  wantAmount: onchainRequest.want_amount,
3009
- wantToken: onchainRequest.want_token,
3009
+ wantToken: onchainRequest.want_token.inner,
3010
3010
  updatedAt: updatedAt ?? ""
3011
3011
  };
3012
3012
  }