@pyxisjs/core 0.2.2 → 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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -253,17 +253,18 @@ interface PyxisWithdrawalRequest {
|
|
|
253
253
|
/** Amount being offered */
|
|
254
254
|
offerAmount: string;
|
|
255
255
|
/** Token being offered */
|
|
256
|
-
offerToken:
|
|
256
|
+
offerToken: string;
|
|
257
257
|
/** User address making the withdrawal request */
|
|
258
258
|
userAddress: string;
|
|
259
259
|
/** Amount wanted in return */
|
|
260
260
|
wantAmount: string;
|
|
261
261
|
/** Token wanted in return */
|
|
262
|
-
wantToken:
|
|
262
|
+
wantToken: string;
|
|
263
263
|
/** Timestamp when the withdrawal request was last updated */
|
|
264
264
|
updatedAt: string;
|
|
265
265
|
}
|
|
266
266
|
interface BuildWithdrawTxArgs {
|
|
267
|
+
user: string;
|
|
267
268
|
vault: string;
|
|
268
269
|
offerAsset: string;
|
|
269
270
|
wantAsset: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -253,17 +253,18 @@ interface PyxisWithdrawalRequest {
|
|
|
253
253
|
/** Amount being offered */
|
|
254
254
|
offerAmount: string;
|
|
255
255
|
/** Token being offered */
|
|
256
|
-
offerToken:
|
|
256
|
+
offerToken: string;
|
|
257
257
|
/** User address making the withdrawal request */
|
|
258
258
|
userAddress: string;
|
|
259
259
|
/** Amount wanted in return */
|
|
260
260
|
wantAmount: string;
|
|
261
261
|
/** Token wanted in return */
|
|
262
|
-
wantToken:
|
|
262
|
+
wantToken: string;
|
|
263
263
|
/** Timestamp when the withdrawal request was last updated */
|
|
264
264
|
updatedAt: string;
|
|
265
265
|
}
|
|
266
266
|
interface BuildWithdrawTxArgs {
|
|
267
|
+
user: string;
|
|
267
268
|
vault: string;
|
|
268
269
|
offerAsset: string;
|
|
269
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
|
}
|