rubic-sdk 4.48.2 → 4.48.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/rubic-sdk.min.js +4 -4
- package/dist/rubic-sdk.min.js.map +1 -1
- package/lib/features/cross-chain/status-manager/cross-chain-status-manager.js +4 -4
- 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 +2 -2
- package/package.json +1 -1
package/dist/rubic-sdk.min.js
CHANGED
|
@@ -194422,11 +194422,11 @@ class CrossChainStatusManager {
|
|
|
194422
194422
|
}
|
|
194423
194423
|
async getXyDstSwapStatus(data) {
|
|
194424
194424
|
try {
|
|
194425
|
-
const {
|
|
194426
|
-
if (
|
|
194427
|
-
return { status: tx_status_1.TX_STATUS.SUCCESS, hash:
|
|
194425
|
+
const { success, status, tx } = await this.httpClient.get(`${xy_api_params_1.XY_API_ENDPOINT}/crossChainStatus?srcChainId=${blockchain_id_1.blockchainId[data.fromBlockchain]}&srcTxHash=${data.srcTxHash}`);
|
|
194426
|
+
if (success && status === 'Done') {
|
|
194427
|
+
return { status: tx_status_1.TX_STATUS.SUCCESS, hash: tx };
|
|
194428
194428
|
}
|
|
194429
|
-
if (!
|
|
194429
|
+
if (!success) {
|
|
194430
194430
|
return { status: tx_status_1.TX_STATUS.FAIL, hash: null };
|
|
194431
194431
|
}
|
|
194432
194432
|
return { status: tx_status_1.TX_STATUS.PENDING, hash: null };
|