@depay/widgets 12.3.15 → 12.3.17

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/esm/index.js CHANGED
@@ -22666,7 +22666,7 @@ var SelectWalletDialog = (function (props) {
22666
22666
  }, {
22667
22667
  label: "Wallet missing?",
22668
22668
  action: function action() {
22669
- window.open('mailto:support@depay.com?subject=Add wallet&body=Can you please add the following wallet: [ENTER YOUR WALLET HERE]?', '_blank');
22669
+ window.open('mailto:support@depay.com?subject=Add wallet&body=Please enter the name of the wallet you want us to add:', '_blank');
22670
22670
  }
22671
22671
  }]
22672
22672
  })),
@@ -25727,7 +25727,8 @@ var PaymentProvider = (function (props) {
25727
25727
  };
25728
25728
  var pay = /*#__PURE__*/function () {
25729
25729
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
25730
- var transaction, stop, currentBlock;
25730
+ var _transaction$params;
25731
+ var transaction, stop, currentBlock, deadline;
25731
25732
  return regenerator.wrap(function _callee2$(_context2) {
25732
25733
  while (1) switch (_context2.prev = _context2.next) {
25733
25734
  case 0:
@@ -25766,25 +25767,26 @@ var PaymentProvider = (function (props) {
25766
25767
  });
25767
25768
  case 18:
25768
25769
  currentBlock = _context2.sent;
25769
- _context2.next = 21;
25770
- return trace(currentBlock, payment.route, transaction).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
25770
+ deadline = transaction.deadline || (transaction === null || transaction === void 0 || (_transaction$params = transaction.params) === null || _transaction$params === void 0 || (_transaction$params = _transaction$params.payment) === null || _transaction$params === void 0 ? void 0 : _transaction$params.deadline);
25771
+ _context2.next = 22;
25772
+ return trace(currentBlock, payment.route, transaction, deadline).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
25771
25773
  return regenerator.wrap(function _callee$(_context) {
25772
25774
  while (1) switch (_context.prev = _context.next) {
25773
25775
  case 0:
25774
25776
  setClosable(false);
25775
25777
  _context.next = 3;
25776
25778
  return wallet.sendTransaction(Object.assign({}, transaction, {
25777
- sent: function sent(transaction) {
25778
- initializeTransactionTracking(transaction, currentBlock);
25779
+ sent: function sent(sentTransaction) {
25780
+ initializeTransactionTracking(sentTransaction, currentBlock, deadline);
25779
25781
  if (_sent) {
25780
- _sent(transaction);
25782
+ _sent(sentTransaction);
25781
25783
  }
25782
25784
  },
25783
25785
  succeeded: paymentSucceeded,
25784
25786
  failed: paymentFailed
25785
25787
  })).then(function (sentTransaction) {
25786
25788
  setTransaction(sentTransaction);
25787
- initializePaymentTracking(sentTransaction, currentBlock, payment.route);
25789
+ initializePaymentTracking(sentTransaction, currentBlock, payment.route, deadline);
25788
25790
  })["catch"](function (error) {
25789
25791
  console.log('error', error);
25790
25792
  setPaymentState('initialized');
@@ -25806,7 +25808,7 @@ var PaymentProvider = (function (props) {
25806
25808
  setUpdatable(true);
25807
25809
  navigate('TracingFailed');
25808
25810
  });
25809
- case 21:
25811
+ case 22:
25810
25812
  case "end":
25811
25813
  return _context2.stop();
25812
25814
  }
@@ -26607,7 +26609,7 @@ var Footer = (function () {
26607
26609
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
26608
26610
  className: "Card transparent small",
26609
26611
  title: "DePay has validated the payment",
26610
- href: "https://depay.com/docs/payments/validation",
26612
+ href: "https://status.depay.com/tx/".concat(transaction.blockchain, "/").concat(transaction.id),
26611
26613
  target: "_blank",
26612
26614
  rel: "noopener noreferrer"
26613
26615
  }, /*#__PURE__*/React.createElement("div", {
@@ -26626,8 +26628,8 @@ var Footer = (function () {
26626
26628
  } else {
26627
26629
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
26628
26630
  className: "Card transparent small",
26629
- title: "DePay is validating payment",
26630
- href: "https://depay.com/docs/payments/validation",
26631
+ title: "DePay is validating the payment",
26632
+ href: "https://status.depay.com/tx/".concat(transaction.blockchain, "/").concat(transaction.id),
26631
26633
  target: "_blank",
26632
26634
  rel: "noopener noreferrer"
26633
26635
  }, /*#__PURE__*/React.createElement("div", {
@@ -27289,53 +27291,59 @@ var PaymentTrackingProvider = (function (props) {
27289
27291
  wallet = _useContext3.wallet;
27290
27292
  var _useState = useState(),
27291
27293
  _useState2 = _slicedToArray(_useState, 2),
27292
- transaction = _useState2[0],
27293
- setTransaction = _useState2[1];
27294
+ deadline = _useState2[0],
27295
+ setDeadline = _useState2[1];
27294
27296
  var _useState3 = useState(),
27295
27297
  _useState4 = _slicedToArray(_useState3, 2),
27296
- confirmationsRequired = _useState4[0],
27297
- setConfirmationsRequired = _useState4[1];
27298
+ transaction = _useState4[0],
27299
+ setTransaction = _useState4[1];
27298
27300
  var _useState5 = useState(),
27299
27301
  _useState6 = _slicedToArray(_useState5, 2),
27300
- confirmationsPassed = _useState6[0],
27301
- setConfirmationsPassed = _useState6[1];
27302
+ confirmationsRequired = _useState6[0],
27303
+ setConfirmationsRequired = _useState6[1];
27302
27304
  var _useState7 = useState(),
27303
27305
  _useState8 = _slicedToArray(_useState7, 2),
27304
- afterBlock = _useState8[0],
27305
- setAfterBlock = _useState8[1];
27306
+ confirmationsPassed = _useState8[0],
27307
+ setConfirmationsPassed = _useState8[1];
27306
27308
  var _useState9 = useState(),
27307
- _useState10 = _slicedToArray(_useState9, 2);
27308
- _useState10[0];
27309
- _useState10[1];
27309
+ _useState10 = _slicedToArray(_useState9, 2),
27310
+ afterBlock = _useState10[0],
27311
+ setAfterBlock = _useState10[1];
27310
27312
  var _useState11 = useState(),
27311
- _useState12 = _slicedToArray(_useState11, 2),
27312
- paymentRoute = _useState12[0],
27313
- setPaymentRoute = _useState12[1];
27313
+ _useState12 = _slicedToArray(_useState11, 2);
27314
+ _useState12[0];
27315
+ _useState12[1];
27314
27316
  var _useState13 = useState(),
27315
27317
  _useState14 = _slicedToArray(_useState13, 2),
27316
- attemptId = _useState14[0],
27317
- setAttemptId = _useState14[1];
27318
- var _useState15 = useState(false),
27318
+ paymentRoute = _useState14[0],
27319
+ setPaymentRoute = _useState14[1];
27320
+ var _useState15 = useState(),
27319
27321
  _useState16 = _slicedToArray(_useState15, 2),
27320
- trackingInitialized = _useState16[0],
27321
- setTrackingInitialized = _useState16[1];
27322
- var _useState17 = useState(!!configurationId || !!(track && (track.endpoint || typeof track.method == 'function') && track.async != true)),
27323
- _useState18 = _slicedToArray(_useState17, 1),
27324
- synchronousTracking = _useState18[0];
27325
- var _useState19 = useState(!configurationId && !!(track && track.async == true)),
27322
+ attemptId = _useState16[0],
27323
+ setAttemptId = _useState16[1];
27324
+ var attemptIdRef = useRef(attemptId);
27325
+ attemptIdRef.current = attemptId;
27326
+ var _useState17 = useState(false),
27327
+ _useState18 = _slicedToArray(_useState17, 2),
27328
+ trackingInitialized = _useState18[0],
27329
+ setTrackingInitialized = _useState18[1];
27330
+ var _useState19 = useState(!!configurationId || !!(track && (track.endpoint || typeof track.method == 'function') && track.async != true)),
27326
27331
  _useState20 = _slicedToArray(_useState19, 1),
27327
- asynchronousTracking = _useState20[0];
27328
- var _useState21 = useState(!!configurationId || !!(track && track.poll && (track.poll.endpoint || typeof track.poll.method == 'function') && track.async != true)),
27332
+ synchronousTracking = _useState20[0];
27333
+ var _useState21 = useState(!configurationId && !!(track && track.async == true)),
27329
27334
  _useState22 = _slicedToArray(_useState21, 1),
27330
- polling = _useState22[0];
27331
- var _useState23 = useState(false),
27332
- _useState24 = _slicedToArray(_useState23, 2),
27333
- release = _useState24[0],
27334
- setRelease = _useState24[1];
27335
- var _useState25 = useState(),
27335
+ asynchronousTracking = _useState22[0];
27336
+ var _useState23 = useState(!!configurationId || !!(track && track.poll && (track.poll.endpoint || typeof track.poll.method == 'function') && track.async != true)),
27337
+ _useState24 = _slicedToArray(_useState23, 1),
27338
+ polling = _useState24[0];
27339
+ var _useState25 = useState(false),
27336
27340
  _useState26 = _slicedToArray(_useState25, 2),
27337
- forwardTo = _useState26[0],
27338
- setForwardTo = _useState26[1];
27341
+ release = _useState26[0],
27342
+ setRelease = _useState26[1];
27343
+ var _useState27 = useState(),
27344
+ _useState28 = _slicedToArray(_useState27, 2),
27345
+ forwardTo = _useState28[0],
27346
+ setForwardTo = _useState28[1];
27339
27347
  var _useContext4 = useContext(ClosableContext),
27340
27348
  setClosable = _useContext4.setClosable;
27341
27349
  var _useContext5 = useContext(NavigateContext),
@@ -27419,18 +27427,18 @@ var PaymentTrackingProvider = (function (props) {
27419
27427
  console.log('WebSocket Error: ', error);
27420
27428
  };
27421
27429
  };
27422
- var retryStartTracking = function retryStartTracking(transaction, afterBlock, paymentRoute, attempt) {
27430
+ var retryStartTracking = function retryStartTracking(transaction, afterBlock, paymentRoute, deadline, attempt) {
27423
27431
  attempt = parseInt(attempt || 1, 10);
27424
27432
  if (attempt < ((track === null || track === void 0 ? void 0 : track.attempts) || 40)) {
27425
27433
  setTimeout(function () {
27426
- startTracking(transaction, afterBlock, paymentRoute, attempt + 1);
27434
+ startTracking(transaction, afterBlock, paymentRoute, deadline, attempt + 1);
27427
27435
  }, 3000);
27428
27436
  } else {
27429
27437
  navigate('TrackingFailed');
27430
27438
  }
27431
27439
  };
27432
27440
  var continueTryTracking = function continueTryTracking() {
27433
- retryStartTracking(transaction, afterBlock, paymentRoute, 1);
27441
+ retryStartTracking(transaction, afterBlock, paymentRoute, deadline, 1);
27434
27442
  };
27435
27443
  var callTracking = function callTracking(payment) {
27436
27444
  if (configurationId) {
@@ -27471,7 +27479,7 @@ var PaymentTrackingProvider = (function (props) {
27471
27479
  }
27472
27480
  };
27473
27481
  var startTracking = /*#__PURE__*/function () {
27474
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(transaction, afterBlock, paymentRoute, attempt) {
27482
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(transaction, afterBlock, paymentRoute, deadline, attempt) {
27475
27483
  var _paymentRoute$feeAmou;
27476
27484
  return regenerator.wrap(function _callee2$(_context2) {
27477
27485
  while (1) switch (_context2.prev = _context2.next) {
@@ -27496,8 +27504,9 @@ var PaymentTrackingProvider = (function (props) {
27496
27504
  _context2.t10 = paymentRoute.toAmount.toString();
27497
27505
  _context2.t11 = paymentRoute.toDecimals;
27498
27506
  _context2.t12 = paymentRoute === null || paymentRoute === void 0 || (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString();
27499
- _context2.t13 = transaction.deadline;
27500
- _context2.t14 = {
27507
+ _context2.t13 = attemptIdRef.current;
27508
+ _context2.t14 = deadline;
27509
+ _context2.t15 = {
27501
27510
  blockchain: _context2.t1,
27502
27511
  transaction: _context2.t2,
27503
27512
  sender: _context2.t3,
@@ -27510,25 +27519,26 @@ var PaymentTrackingProvider = (function (props) {
27510
27519
  to_amount: _context2.t10,
27511
27520
  to_decimals: _context2.t11,
27512
27521
  fee_amount: _context2.t12,
27513
- deadline: _context2.t13
27522
+ trace_attempt_id: _context2.t13,
27523
+ deadline: _context2.t14
27514
27524
  };
27515
- (0, _context2.t0)(_context2.t14).then(function (response) {
27525
+ (0, _context2.t0)(_context2.t15).then(function (response) {
27516
27526
  setTrackingInitialized(true);
27517
27527
  })["catch"](function (error) {
27518
- retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
27528
+ retryStartTracking(transaction, afterBlock, paymentRoute, deadline, attempt);
27519
27529
  });
27520
- case 18:
27530
+ case 19:
27521
27531
  case "end":
27522
27532
  return _context2.stop();
27523
27533
  }
27524
27534
  }, _callee2);
27525
27535
  }));
27526
- return function startTracking(_x2, _x3, _x4, _x5) {
27536
+ return function startTracking(_x2, _x3, _x4, _x5, _x6) {
27527
27537
  return _ref2.apply(this, arguments);
27528
27538
  };
27529
27539
  }();
27530
27540
  var pollStatus = /*#__PURE__*/function () {
27531
- var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(polling, transaction, afterBlock, paymentRoute, pollingInterval) {
27541
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(polling, transaction, afterBlock, paymentRoute, pollingInterval, attemptId) {
27532
27542
  var payment, handlePollingResponse;
27533
27543
  return regenerator.wrap(function _callee3$(_context3) {
27534
27544
  while (1) switch (_context3.prev = _context3.next) {
@@ -27615,7 +27625,7 @@ var PaymentTrackingProvider = (function (props) {
27615
27625
  }
27616
27626
  }, _callee3);
27617
27627
  }));
27618
- return function pollStatus(_x6, _x7, _x8, _x9, _x10) {
27628
+ return function pollStatus(_x7, _x8, _x9, _x10, _x11, _x12) {
27619
27629
  return _ref3.apply(this, arguments);
27620
27630
  };
27621
27631
  }();
@@ -27632,14 +27642,14 @@ var PaymentTrackingProvider = (function (props) {
27632
27642
  return;
27633
27643
  }
27634
27644
  var pollingInterval = setInterval(function () {
27635
- return pollStatus(polling, transaction, afterBlock, paymentRoute, pollingInterval);
27645
+ return pollStatus(polling, transaction, afterBlock, paymentRoute, pollingInterval, attemptId);
27636
27646
  }, 5000);
27637
27647
  return function () {
27638
27648
  clearInterval(pollingInterval);
27639
27649
  };
27640
- }, [polling, transaction, afterBlock, paymentRoute]);
27650
+ }, [polling, transaction, afterBlock, attemptId, paymentRoute]);
27641
27651
  var storePayment = /*#__PURE__*/function () {
27642
- var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(transaction, afterBlock, paymentRoute) {
27652
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(transaction, afterBlock, paymentRoute, deadline) {
27643
27653
  return regenerator.wrap(function _callee4$(_context4) {
27644
27654
  while (1) switch (_context4.prev = _context4.next) {
27645
27655
  case 0:
@@ -27674,7 +27684,7 @@ var PaymentTrackingProvider = (function (props) {
27674
27684
  };
27675
27685
  _context4.t13 = paymentRoute.fee ? ethers.utils.formatUnits(paymentRoute.feeAmount, paymentRoute.toDecimals) : null;
27676
27686
  _context4.t14 = paymentRoute.fee ? paymentRoute.fee.receiver : null;
27677
- _context4.t15 = transaction.deadline;
27687
+ _context4.t15 = deadline;
27678
27688
  _context4.t16 = {
27679
27689
  blockchain: _context4.t3,
27680
27690
  transaction: _context4.t4,
@@ -27700,12 +27710,12 @@ var PaymentTrackingProvider = (function (props) {
27700
27710
  (0, _context4.t0)('https://public.depay.com/payments', _context4.t18).then(function (response) {
27701
27711
  if (response.status == 200 || response.status == 201) ; else {
27702
27712
  setTimeout(function () {
27703
- storePayment(transaction, afterBlock, paymentRoute);
27713
+ storePayment(transaction, afterBlock, paymentRoute, deadline);
27704
27714
  }, 3000);
27705
27715
  }
27706
27716
  })["catch"](function (error) {
27707
27717
  setTimeout(function () {
27708
- storePayment(transaction, afterBlock, paymentRoute);
27718
+ storePayment(transaction, afterBlock, paymentRoute, deadline);
27709
27719
  }, 3000);
27710
27720
  });
27711
27721
  case 22:
@@ -27714,24 +27724,26 @@ var PaymentTrackingProvider = (function (props) {
27714
27724
  }
27715
27725
  }, _callee4);
27716
27726
  }));
27717
- return function storePayment(_x11, _x12, _x13) {
27727
+ return function storePayment(_x13, _x14, _x15, _x16) {
27718
27728
  return _ref4.apply(this, arguments);
27719
27729
  };
27720
27730
  }();
27721
- var initializeTracking = function initializeTracking(transaction, afterBlock, paymentRoute) {
27722
- storePayment(transaction, afterBlock, paymentRoute);
27731
+ var initializeTracking = function initializeTracking(transaction, afterBlock, paymentRoute, deadline) {
27732
+ storePayment(transaction, afterBlock, paymentRoute, deadline);
27723
27733
  if (synchronousTracking || track && track.async == true) {
27724
- startTracking(transaction, afterBlock, paymentRoute);
27734
+ startTracking(transaction, afterBlock, paymentRoute, deadline);
27725
27735
  }
27726
27736
  if (synchronousTracking == false) {
27727
27737
  return;
27728
27738
  }
27739
+ setDeadline(deadline);
27729
27740
  setTransaction(transaction);
27730
27741
  setAfterBlock(afterBlock);
27731
27742
  setPaymentRoute(paymentRoute);
27732
27743
  openSocket(transaction);
27733
27744
  };
27734
- var trace = function trace(afterBlock, paymentRoute, transaction) {
27745
+ var trace = function trace(afterBlock, paymentRoute, transaction, deadline) {
27746
+ setAttemptId(); // reset attemptId in case payment is retried
27735
27747
  if (!synchronousTracking && !asynchronousTracking) {
27736
27748
  return Promise.resolve();
27737
27749
  }
@@ -27760,7 +27772,7 @@ var PaymentTrackingProvider = (function (props) {
27760
27772
  _context5.t8 = paymentRoute.toAmount.toString();
27761
27773
  _context5.t9 = paymentRoute.toDecimals;
27762
27774
  _context5.t10 = paymentRoute === null || paymentRoute === void 0 || (_paymentRoute$feeAmou2 = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou2 === void 0 ? void 0 : _paymentRoute$feeAmou2.toString();
27763
- _context5.t11 = transaction.deadline;
27775
+ _context5.t11 = deadline;
27764
27776
  payment = {
27765
27777
  blockchain: _context5.t0,
27766
27778
  sender: _context5.t1,
@@ -27825,7 +27837,7 @@ var PaymentTrackingProvider = (function (props) {
27825
27837
  }
27826
27838
  }, _callee5);
27827
27839
  }));
27828
- return function (_x14, _x15) {
27840
+ return function (_x17, _x18) {
27829
27841
  return _ref5.apply(this, arguments);
27830
27842
  };
27831
27843
  }());
@@ -29335,17 +29347,16 @@ var TransactionTrackingProvider = (function (props) {
29335
29347
  }
29336
29348
  }, [polling]);
29337
29349
  var createTracking = /*#__PURE__*/function () {
29338
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(transaction, afterBlock, attempt) {
29350
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(transaction, afterBlock, deadline, attempt) {
29339
29351
  return regenerator.wrap(function _callee$(_context) {
29340
29352
  while (1) switch (_context.prev = _context.next) {
29341
29353
  case 0:
29342
29354
  if (!(attempt > 3)) {
29343
- _context.next = 3;
29355
+ _context.next = 2;
29344
29356
  break;
29345
29357
  }
29346
- console.log('TRANSACTION TRACKING FAILED AFTER 3 ATTEMPTS!');
29347
29358
  return _context.abrupt("return");
29348
- case 3:
29359
+ case 2:
29349
29360
  _context.t0 = fetch;
29350
29361
  _context.t1 = {
29351
29362
  'Content-Type': 'application/json'
@@ -29355,40 +29366,38 @@ var TransactionTrackingProvider = (function (props) {
29355
29366
  _context.t4 = afterBlock.toString();
29356
29367
  _context.t5 = transaction.blockchain;
29357
29368
  _context.t6 = transaction.from;
29358
- _context.next = 12;
29369
+ _context.next = 11;
29359
29370
  return getNonce({
29360
29371
  transaction: transaction,
29361
29372
  wallet: wallet,
29362
29373
  account: account
29363
29374
  });
29364
- case 12:
29375
+ case 11:
29365
29376
  _context.t7 = _context.sent;
29366
- _context.t8 = {
29377
+ _context.t8 = deadline;
29378
+ _context.t9 = {
29367
29379
  id: _context.t3,
29368
29380
  after_block: _context.t4,
29369
29381
  blockchain: _context.t5,
29370
29382
  sender: _context.t6,
29371
- nonce: _context.t7
29383
+ nonce: _context.t7,
29384
+ deadline: _context.t8
29372
29385
  };
29373
- _context.t9 = _context.t2.stringify.call(_context.t2, _context.t8);
29374
- _context.t10 = {
29386
+ _context.t10 = _context.t2.stringify.call(_context.t2, _context.t9);
29387
+ _context.t11 = {
29375
29388
  method: 'POST',
29376
29389
  headers: _context.t1,
29377
- body: _context.t9
29390
+ body: _context.t10
29378
29391
  };
29379
- (0, _context.t0)('https://public.depay.com/transactions', _context.t10).then(function (response) {
29380
- if (response.status == 200 || response.status == 201) {
29381
- console.log('TRANSACTION TRACKING INITIALIZED');
29382
- } else {
29383
- console.log('TRANSACTION TRACKING FAILED', response);
29392
+ (0, _context.t0)('https://public.depay.com/transactions', _context.t11).then(function (response) {
29393
+ if (response.status == 200 || response.status == 201) ; else {
29384
29394
  setTimeout(function () {
29385
- createTracking(transaction, afterBlock, attempt + 1);
29395
+ createTracking(transaction, afterBlock, deadline, attempt + 1);
29386
29396
  }, 3000);
29387
29397
  }
29388
29398
  })["catch"](function (error) {
29389
- console.log('TRANSACTION TRACKING FAILED', error);
29390
29399
  setTimeout(function () {
29391
- createTracking(transaction, afterBlock, attempt + 1);
29400
+ createTracking(transaction, afterBlock, deadline, attempt + 1);
29392
29401
  }, 3000);
29393
29402
  });
29394
29403
  case 17:
@@ -29397,7 +29406,7 @@ var TransactionTrackingProvider = (function (props) {
29397
29406
  }
29398
29407
  }, _callee);
29399
29408
  }));
29400
- return function createTracking(_x, _x2, _x3) {
29409
+ return function createTracking(_x, _x2, _x3, _x4) {
29401
29410
  return _ref.apply(this, arguments);
29402
29411
  };
29403
29412
  }();
@@ -29438,7 +29447,7 @@ var TransactionTrackingProvider = (function (props) {
29438
29447
  }
29439
29448
  }, _callee2);
29440
29449
  }));
29441
- return function (_x4) {
29450
+ return function (_x5) {
29442
29451
  return _ref2.apply(this, arguments);
29443
29452
  };
29444
29453
  }();
@@ -29463,13 +29472,13 @@ var TransactionTrackingProvider = (function (props) {
29463
29472
  console.log('WebSocket Error: ', error);
29464
29473
  };
29465
29474
  };
29466
- var initializeTracking = function initializeTracking(transaction, afterBlock) {
29475
+ var initializeTracking = function initializeTracking(transaction, afterBlock, deadline) {
29467
29476
  if (!supported.evm.includes(transaction.blockchain)) {
29468
29477
  return;
29469
29478
  }
29470
29479
  setGivenTransaction(transaction);
29471
29480
  if (recover == undefined) {
29472
- createTracking(transaction, afterBlock, 1);
29481
+ createTracking(transaction, afterBlock, deadline, 1);
29473
29482
  }
29474
29483
  openSocket(transaction);
29475
29484
  setPolling(true);