rubic-sdk 4.48.0 → 4.48.2

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.
@@ -170548,7 +170548,7 @@ exports.nativeTokensList = {
170548
170548
  blockchain: blockchain_name_1.BLOCKCHAIN_NAME.MANTA_PACIFIC,
170549
170549
  address: evm_web3_pure_1.EvmWeb3Pure.nativeTokenAddress,
170550
170550
  name: 'ETH',
170551
- symbol: 'MNT',
170551
+ symbol: 'ETH',
170552
170552
  decimals: 18
170553
170553
  }),
170554
170554
  [blockchain_name_1.BLOCKCHAIN_NAME.SCROLL]: new token_1.Token({
@@ -184380,6 +184380,90 @@ exports.evmCommonCrossChainAbi = [
184380
184380
  outputs: [],
184381
184381
  stateMutability: 'payable',
184382
184382
  type: 'function'
184383
+ },
184384
+ {
184385
+ inputs: [
184386
+ {
184387
+ components: [
184388
+ { internalType: 'bytes32', name: 'transactionId', type: 'bytes32' },
184389
+ { internalType: 'string', name: 'bridge', type: 'string' },
184390
+ { internalType: 'address', name: 'integrator', type: 'address' },
184391
+ { internalType: 'address', name: 'referrer', type: 'address' },
184392
+ { internalType: 'address', name: 'sendingAssetId', type: 'address' },
184393
+ { internalType: 'address', name: 'receivingAssetId', type: 'address' },
184394
+ { internalType: 'address', name: 'receiver', type: 'address' },
184395
+ { internalType: 'address', name: 'refundee', type: 'address' },
184396
+ { internalType: 'uint256', name: 'minAmount', type: 'uint256' },
184397
+ { internalType: 'uint256', name: 'destinationChainId', type: 'uint256' },
184398
+ { internalType: 'bool', name: 'hasSourceSwaps', type: 'bool' },
184399
+ { internalType: 'bool', name: 'hasDestinationCall', type: 'bool' }
184400
+ ],
184401
+ internalType: 'struct IRubic.BridgeData',
184402
+ name: '_bridgeData',
184403
+ type: 'tuple'
184404
+ },
184405
+ {
184406
+ components: [
184407
+ { internalType: 'address payable', name: 'destination', type: 'address' }
184408
+ ],
184409
+ internalType: 'struct TransferFacet.TransferData',
184410
+ name: '_transferData',
184411
+ type: 'tuple'
184412
+ }
184413
+ ],
184414
+ name: 'startBridgeTokensViaTransfer',
184415
+ outputs: [],
184416
+ stateMutability: 'payable',
184417
+ type: 'function'
184418
+ },
184419
+ {
184420
+ inputs: [
184421
+ {
184422
+ components: [
184423
+ { internalType: 'bytes32', name: 'transactionId', type: 'bytes32' },
184424
+ { internalType: 'string', name: 'bridge', type: 'string' },
184425
+ { internalType: 'address', name: 'integrator', type: 'address' },
184426
+ { internalType: 'address', name: 'referrer', type: 'address' },
184427
+ { internalType: 'address', name: 'sendingAssetId', type: 'address' },
184428
+ { internalType: 'address', name: 'receivingAssetId', type: 'address' },
184429
+ { internalType: 'address', name: 'receiver', type: 'address' },
184430
+ { internalType: 'address', name: 'refundee', type: 'address' },
184431
+ { internalType: 'uint256', name: 'minAmount', type: 'uint256' },
184432
+ { internalType: 'uint256', name: 'destinationChainId', type: 'uint256' },
184433
+ { internalType: 'bool', name: 'hasSourceSwaps', type: 'bool' },
184434
+ { internalType: 'bool', name: 'hasDestinationCall', type: 'bool' }
184435
+ ],
184436
+ internalType: 'struct IRubic.BridgeData',
184437
+ name: '_bridgeData',
184438
+ type: 'tuple'
184439
+ },
184440
+ {
184441
+ components: [
184442
+ { internalType: 'address', name: 'callTo', type: 'address' },
184443
+ { internalType: 'address', name: 'approveTo', type: 'address' },
184444
+ { internalType: 'address', name: 'sendingAssetId', type: 'address' },
184445
+ { internalType: 'address', name: 'receivingAssetId', type: 'address' },
184446
+ { internalType: 'uint256', name: 'fromAmount', type: 'uint256' },
184447
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
184448
+ { internalType: 'bool', name: 'requiresDeposit', type: 'bool' }
184449
+ ],
184450
+ internalType: 'struct LibSwap.SwapData[]',
184451
+ name: '_swapData',
184452
+ type: 'tuple[]'
184453
+ },
184454
+ {
184455
+ components: [
184456
+ { internalType: 'address payable', name: 'destination', type: 'address' }
184457
+ ],
184458
+ internalType: 'struct TransferFacet.TransferData',
184459
+ name: '_transferData',
184460
+ type: 'tuple'
184461
+ }
184462
+ ],
184463
+ name: 'swapAndStartBridgeTokensViaTransfer',
184464
+ outputs: [],
184465
+ stateMutability: 'payable',
184466
+ type: 'function'
184383
184467
  }
184384
184468
  ];
184385
184469
 
@@ -194338,7 +194422,7 @@ class CrossChainStatusManager {
194338
194422
  }
194339
194423
  async getXyDstSwapStatus(data) {
194340
194424
  try {
194341
- const { isSuccess, status, txHash } = await this.httpClient.get(`${xy_api_params_1.XY_API_ENDPOINT}/crossChainStatus?srcChainId=${blockchain_id_1.blockchainId[data.fromBlockchain]}&transactionHash=${data.srcTxHash}`);
194425
+ const { isSuccess, status, txHash } = await this.httpClient.get(`${xy_api_params_1.XY_API_ENDPOINT}/crossChainStatus?srcChainId=${blockchain_id_1.blockchainId[data.fromBlockchain]}&srcTxHash=${data.srcTxHash}`);
194342
194426
  if (isSuccess && status === 'Done') {
194343
194427
  return { status: tx_status_1.TX_STATUS.SUCCESS, hash: txHash };
194344
194428
  }