rubic-sdk 4.48.6 → 4.48.7
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/rubic-sdk.min.js +2 -5
- package/dist/rubic-sdk.min.js.map +1 -1
- package/lib/features/cross-chain/status-manager/cross-chain-status-manager.js +2 -5
- package/lib/features/cross-chain/status-manager/cross-chain-status-manager.js.map +1 -1
- package/lib/features/cross-chain/status-manager/models/xy-api-response.d.ts +1 -1
- package/package.json +1 -1
package/dist/rubic-sdk.min.js
CHANGED
|
@@ -205270,13 +205270,10 @@ class CrossChainStatusManager {
|
|
|
205270
205270
|
}
|
|
205271
205271
|
async getXyDstSwapStatus(data) {
|
|
205272
205272
|
try {
|
|
205273
|
-
const { success,
|
|
205274
|
-
if (success &&
|
|
205273
|
+
const { success, tx } = await this.httpClient.get(`${xy_api_params_1.XY_API_ENDPOINT}/crossChainStatus?srcChainId=${blockchain_id_1.blockchainId[data.fromBlockchain]}&srcTxHash=${data.srcTxHash}`);
|
|
205274
|
+
if (success && tx) {
|
|
205275
205275
|
return { status: tx_status_1.TX_STATUS.SUCCESS, hash: tx };
|
|
205276
205276
|
}
|
|
205277
|
-
if (!success) {
|
|
205278
|
-
return { status: tx_status_1.TX_STATUS.FAIL, hash: null };
|
|
205279
|
-
}
|
|
205280
205277
|
return { status: tx_status_1.TX_STATUS.PENDING, hash: null };
|
|
205281
205278
|
}
|
|
205282
205279
|
catch {
|