@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.
@@ -22664,7 +22664,7 @@ var SelectWalletDialog = (function (props) {
22664
22664
  }, {
22665
22665
  label: "Wallet missing?",
22666
22666
  action: function action() {
22667
- window.open('mailto:support@depay.com?subject=Add wallet&body=Can you please add the following wallet: [ENTER YOUR WALLET HERE]?', '_blank');
22667
+ window.open('mailto:support@depay.com?subject=Add wallet&body=Please enter the name of the wallet you want us to add:', '_blank');
22668
22668
  }
22669
22669
  }]
22670
22670
  })),
@@ -25780,7 +25780,8 @@ var PaymentProvider = (function (props) {
25780
25780
  };
25781
25781
  var pay = /*#__PURE__*/function () {
25782
25782
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
25783
- var transaction, stop, currentBlock;
25783
+ var _transaction$params;
25784
+ var transaction, stop, currentBlock, deadline;
25784
25785
  return regenerator.wrap(function _callee2$(_context2) {
25785
25786
  while (1) switch (_context2.prev = _context2.next) {
25786
25787
  case 0:
@@ -25819,25 +25820,26 @@ var PaymentProvider = (function (props) {
25819
25820
  });
25820
25821
  case 18:
25821
25822
  currentBlock = _context2.sent;
25822
- _context2.next = 21;
25823
- return trace(currentBlock, payment.route, transaction).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
25823
+ 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);
25824
+ _context2.next = 22;
25825
+ return trace(currentBlock, payment.route, transaction, deadline).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
25824
25826
  return regenerator.wrap(function _callee$(_context) {
25825
25827
  while (1) switch (_context.prev = _context.next) {
25826
25828
  case 0:
25827
25829
  setClosable(false);
25828
25830
  _context.next = 3;
25829
25831
  return wallet.sendTransaction(Object.assign({}, transaction, {
25830
- sent: function sent(transaction) {
25831
- initializeTransactionTracking(transaction, currentBlock);
25832
+ sent: function sent(sentTransaction) {
25833
+ initializeTransactionTracking(sentTransaction, currentBlock, deadline);
25832
25834
  if (_sent) {
25833
- _sent(transaction);
25835
+ _sent(sentTransaction);
25834
25836
  }
25835
25837
  },
25836
25838
  succeeded: paymentSucceeded,
25837
25839
  failed: paymentFailed
25838
25840
  })).then(function (sentTransaction) {
25839
25841
  setTransaction(sentTransaction);
25840
- initializePaymentTracking(sentTransaction, currentBlock, payment.route);
25842
+ initializePaymentTracking(sentTransaction, currentBlock, payment.route, deadline);
25841
25843
  })["catch"](function (error) {
25842
25844
  console.log('error', error);
25843
25845
  setPaymentState('initialized');
@@ -25859,7 +25861,7 @@ var PaymentProvider = (function (props) {
25859
25861
  setUpdatable(true);
25860
25862
  navigate('TracingFailed');
25861
25863
  });
25862
- case 21:
25864
+ case 22:
25863
25865
  case "end":
25864
25866
  return _context2.stop();
25865
25867
  }
@@ -26660,7 +26662,7 @@ var Footer = (function () {
26660
26662
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
26661
26663
  className: "Card transparent small",
26662
26664
  title: "DePay has validated the payment",
26663
- href: "https://depay.com/docs/payments/validation",
26665
+ href: "https://status.depay.com/tx/".concat(transaction.blockchain, "/").concat(transaction.id),
26664
26666
  target: "_blank",
26665
26667
  rel: "noopener noreferrer"
26666
26668
  }, /*#__PURE__*/React.createElement("div", {
@@ -26679,8 +26681,8 @@ var Footer = (function () {
26679
26681
  } else {
26680
26682
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
26681
26683
  className: "Card transparent small",
26682
- title: "DePay is validating payment",
26683
- href: "https://depay.com/docs/payments/validation",
26684
+ title: "DePay is validating the payment",
26685
+ href: "https://status.depay.com/tx/".concat(transaction.blockchain, "/").concat(transaction.id),
26684
26686
  target: "_blank",
26685
26687
  rel: "noopener noreferrer"
26686
26688
  }, /*#__PURE__*/React.createElement("div", {
@@ -27302,53 +27304,59 @@ var PaymentTrackingProvider = (function (props) {
27302
27304
  wallet = _useContext3.wallet;
27303
27305
  var _useState = useState(),
27304
27306
  _useState2 = _slicedToArray(_useState, 2),
27305
- transaction = _useState2[0],
27306
- setTransaction = _useState2[1];
27307
+ deadline = _useState2[0],
27308
+ setDeadline = _useState2[1];
27307
27309
  var _useState3 = useState(),
27308
27310
  _useState4 = _slicedToArray(_useState3, 2),
27309
- confirmationsRequired = _useState4[0],
27310
- setConfirmationsRequired = _useState4[1];
27311
+ transaction = _useState4[0],
27312
+ setTransaction = _useState4[1];
27311
27313
  var _useState5 = useState(),
27312
27314
  _useState6 = _slicedToArray(_useState5, 2),
27313
- confirmationsPassed = _useState6[0],
27314
- setConfirmationsPassed = _useState6[1];
27315
+ confirmationsRequired = _useState6[0],
27316
+ setConfirmationsRequired = _useState6[1];
27315
27317
  var _useState7 = useState(),
27316
27318
  _useState8 = _slicedToArray(_useState7, 2),
27317
- afterBlock = _useState8[0],
27318
- setAfterBlock = _useState8[1];
27319
+ confirmationsPassed = _useState8[0],
27320
+ setConfirmationsPassed = _useState8[1];
27319
27321
  var _useState9 = useState(),
27320
- _useState10 = _slicedToArray(_useState9, 2);
27321
- _useState10[0];
27322
- _useState10[1];
27322
+ _useState10 = _slicedToArray(_useState9, 2),
27323
+ afterBlock = _useState10[0],
27324
+ setAfterBlock = _useState10[1];
27323
27325
  var _useState11 = useState(),
27324
- _useState12 = _slicedToArray(_useState11, 2),
27325
- paymentRoute = _useState12[0],
27326
- setPaymentRoute = _useState12[1];
27326
+ _useState12 = _slicedToArray(_useState11, 2);
27327
+ _useState12[0];
27328
+ _useState12[1];
27327
27329
  var _useState13 = useState(),
27328
27330
  _useState14 = _slicedToArray(_useState13, 2),
27329
- attemptId = _useState14[0],
27330
- setAttemptId = _useState14[1];
27331
- var _useState15 = useState(false),
27331
+ paymentRoute = _useState14[0],
27332
+ setPaymentRoute = _useState14[1];
27333
+ var _useState15 = useState(),
27332
27334
  _useState16 = _slicedToArray(_useState15, 2),
27333
- trackingInitialized = _useState16[0],
27334
- setTrackingInitialized = _useState16[1];
27335
- var _useState17 = useState(!!configurationId || !!(track && (track.endpoint || typeof track.method == 'function') && track.async != true)),
27336
- _useState18 = _slicedToArray(_useState17, 1),
27337
- synchronousTracking = _useState18[0];
27338
- var _useState19 = useState(!configurationId && !!(track && track.async == true)),
27335
+ attemptId = _useState16[0],
27336
+ setAttemptId = _useState16[1];
27337
+ var attemptIdRef = useRef(attemptId);
27338
+ attemptIdRef.current = attemptId;
27339
+ var _useState17 = useState(false),
27340
+ _useState18 = _slicedToArray(_useState17, 2),
27341
+ trackingInitialized = _useState18[0],
27342
+ setTrackingInitialized = _useState18[1];
27343
+ var _useState19 = useState(!!configurationId || !!(track && (track.endpoint || typeof track.method == 'function') && track.async != true)),
27339
27344
  _useState20 = _slicedToArray(_useState19, 1),
27340
- asynchronousTracking = _useState20[0];
27341
- var _useState21 = useState(!!configurationId || !!(track && track.poll && (track.poll.endpoint || typeof track.poll.method == 'function') && track.async != true)),
27345
+ synchronousTracking = _useState20[0];
27346
+ var _useState21 = useState(!configurationId && !!(track && track.async == true)),
27342
27347
  _useState22 = _slicedToArray(_useState21, 1),
27343
- polling = _useState22[0];
27344
- var _useState23 = useState(false),
27345
- _useState24 = _slicedToArray(_useState23, 2),
27346
- release = _useState24[0],
27347
- setRelease = _useState24[1];
27348
- var _useState25 = useState(),
27348
+ asynchronousTracking = _useState22[0];
27349
+ var _useState23 = useState(!!configurationId || !!(track && track.poll && (track.poll.endpoint || typeof track.poll.method == 'function') && track.async != true)),
27350
+ _useState24 = _slicedToArray(_useState23, 1),
27351
+ polling = _useState24[0];
27352
+ var _useState25 = useState(false),
27349
27353
  _useState26 = _slicedToArray(_useState25, 2),
27350
- forwardTo = _useState26[0],
27351
- setForwardTo = _useState26[1];
27354
+ release = _useState26[0],
27355
+ setRelease = _useState26[1];
27356
+ var _useState27 = useState(),
27357
+ _useState28 = _slicedToArray(_useState27, 2),
27358
+ forwardTo = _useState28[0],
27359
+ setForwardTo = _useState28[1];
27352
27360
  var _useContext4 = useContext(ClosableContext),
27353
27361
  setClosable = _useContext4.setClosable;
27354
27362
  var _useContext5 = useContext(NavigateContext),
@@ -27432,18 +27440,18 @@ var PaymentTrackingProvider = (function (props) {
27432
27440
  console.log('WebSocket Error: ', error);
27433
27441
  };
27434
27442
  };
27435
- var retryStartTracking = function retryStartTracking(transaction, afterBlock, paymentRoute, attempt) {
27443
+ var retryStartTracking = function retryStartTracking(transaction, afterBlock, paymentRoute, deadline, attempt) {
27436
27444
  attempt = parseInt(attempt || 1, 10);
27437
27445
  if (attempt < ((track === null || track === void 0 ? void 0 : track.attempts) || 40)) {
27438
27446
  setTimeout(function () {
27439
- startTracking(transaction, afterBlock, paymentRoute, attempt + 1);
27447
+ startTracking(transaction, afterBlock, paymentRoute, deadline, attempt + 1);
27440
27448
  }, 3000);
27441
27449
  } else {
27442
27450
  navigate('TrackingFailed');
27443
27451
  }
27444
27452
  };
27445
27453
  var continueTryTracking = function continueTryTracking() {
27446
- retryStartTracking(transaction, afterBlock, paymentRoute, 1);
27454
+ retryStartTracking(transaction, afterBlock, paymentRoute, deadline, 1);
27447
27455
  };
27448
27456
  var callTracking = function callTracking(payment) {
27449
27457
  if (configurationId) {
@@ -27484,7 +27492,7 @@ var PaymentTrackingProvider = (function (props) {
27484
27492
  }
27485
27493
  };
27486
27494
  var startTracking = /*#__PURE__*/function () {
27487
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(transaction, afterBlock, paymentRoute, attempt) {
27495
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(transaction, afterBlock, paymentRoute, deadline, attempt) {
27488
27496
  var _paymentRoute$feeAmou;
27489
27497
  return regenerator.wrap(function _callee2$(_context2) {
27490
27498
  while (1) switch (_context2.prev = _context2.next) {
@@ -27509,8 +27517,9 @@ var PaymentTrackingProvider = (function (props) {
27509
27517
  _context2.t10 = paymentRoute.toAmount.toString();
27510
27518
  _context2.t11 = paymentRoute.toDecimals;
27511
27519
  _context2.t12 = paymentRoute === null || paymentRoute === void 0 || (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString();
27512
- _context2.t13 = transaction.deadline;
27513
- _context2.t14 = {
27520
+ _context2.t13 = attemptIdRef.current;
27521
+ _context2.t14 = deadline;
27522
+ _context2.t15 = {
27514
27523
  blockchain: _context2.t1,
27515
27524
  transaction: _context2.t2,
27516
27525
  sender: _context2.t3,
@@ -27523,25 +27532,26 @@ var PaymentTrackingProvider = (function (props) {
27523
27532
  to_amount: _context2.t10,
27524
27533
  to_decimals: _context2.t11,
27525
27534
  fee_amount: _context2.t12,
27526
- deadline: _context2.t13
27535
+ trace_attempt_id: _context2.t13,
27536
+ deadline: _context2.t14
27527
27537
  };
27528
- (0, _context2.t0)(_context2.t14).then(function (response) {
27538
+ (0, _context2.t0)(_context2.t15).then(function (response) {
27529
27539
  setTrackingInitialized(true);
27530
27540
  })["catch"](function (error) {
27531
- retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
27541
+ retryStartTracking(transaction, afterBlock, paymentRoute, deadline, attempt);
27532
27542
  });
27533
- case 18:
27543
+ case 19:
27534
27544
  case "end":
27535
27545
  return _context2.stop();
27536
27546
  }
27537
27547
  }, _callee2);
27538
27548
  }));
27539
- return function startTracking(_x2, _x3, _x4, _x5) {
27549
+ return function startTracking(_x2, _x3, _x4, _x5, _x6) {
27540
27550
  return _ref2.apply(this, arguments);
27541
27551
  };
27542
27552
  }();
27543
27553
  var pollStatus = /*#__PURE__*/function () {
27544
- var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(polling, transaction, afterBlock, paymentRoute, pollingInterval) {
27554
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(polling, transaction, afterBlock, paymentRoute, pollingInterval, attemptId) {
27545
27555
  var payment, handlePollingResponse;
27546
27556
  return regenerator.wrap(function _callee3$(_context3) {
27547
27557
  while (1) switch (_context3.prev = _context3.next) {
@@ -27628,7 +27638,7 @@ var PaymentTrackingProvider = (function (props) {
27628
27638
  }
27629
27639
  }, _callee3);
27630
27640
  }));
27631
- return function pollStatus(_x6, _x7, _x8, _x9, _x10) {
27641
+ return function pollStatus(_x7, _x8, _x9, _x10, _x11, _x12) {
27632
27642
  return _ref3.apply(this, arguments);
27633
27643
  };
27634
27644
  }();
@@ -27645,14 +27655,14 @@ var PaymentTrackingProvider = (function (props) {
27645
27655
  return;
27646
27656
  }
27647
27657
  var pollingInterval = setInterval(function () {
27648
- return pollStatus(polling, transaction, afterBlock, paymentRoute, pollingInterval);
27658
+ return pollStatus(polling, transaction, afterBlock, paymentRoute, pollingInterval, attemptId);
27649
27659
  }, 5000);
27650
27660
  return function () {
27651
27661
  clearInterval(pollingInterval);
27652
27662
  };
27653
- }, [polling, transaction, afterBlock, paymentRoute]);
27663
+ }, [polling, transaction, afterBlock, attemptId, paymentRoute]);
27654
27664
  var storePayment = /*#__PURE__*/function () {
27655
- var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(transaction, afterBlock, paymentRoute) {
27665
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(transaction, afterBlock, paymentRoute, deadline) {
27656
27666
  return regenerator.wrap(function _callee4$(_context4) {
27657
27667
  while (1) switch (_context4.prev = _context4.next) {
27658
27668
  case 0:
@@ -27687,7 +27697,7 @@ var PaymentTrackingProvider = (function (props) {
27687
27697
  };
27688
27698
  _context4.t13 = paymentRoute.fee ? ethers.utils.formatUnits(paymentRoute.feeAmount, paymentRoute.toDecimals) : null;
27689
27699
  _context4.t14 = paymentRoute.fee ? paymentRoute.fee.receiver : null;
27690
- _context4.t15 = transaction.deadline;
27700
+ _context4.t15 = deadline;
27691
27701
  _context4.t16 = {
27692
27702
  blockchain: _context4.t3,
27693
27703
  transaction: _context4.t4,
@@ -27713,12 +27723,12 @@ var PaymentTrackingProvider = (function (props) {
27713
27723
  (0, _context4.t0)('https://public.depay.com/payments', _context4.t18).then(function (response) {
27714
27724
  if (response.status == 200 || response.status == 201) ; else {
27715
27725
  setTimeout(function () {
27716
- storePayment(transaction, afterBlock, paymentRoute);
27726
+ storePayment(transaction, afterBlock, paymentRoute, deadline);
27717
27727
  }, 3000);
27718
27728
  }
27719
27729
  })["catch"](function (error) {
27720
27730
  setTimeout(function () {
27721
- storePayment(transaction, afterBlock, paymentRoute);
27731
+ storePayment(transaction, afterBlock, paymentRoute, deadline);
27722
27732
  }, 3000);
27723
27733
  });
27724
27734
  case 22:
@@ -27727,24 +27737,26 @@ var PaymentTrackingProvider = (function (props) {
27727
27737
  }
27728
27738
  }, _callee4);
27729
27739
  }));
27730
- return function storePayment(_x11, _x12, _x13) {
27740
+ return function storePayment(_x13, _x14, _x15, _x16) {
27731
27741
  return _ref4.apply(this, arguments);
27732
27742
  };
27733
27743
  }();
27734
- var initializeTracking = function initializeTracking(transaction, afterBlock, paymentRoute) {
27735
- storePayment(transaction, afterBlock, paymentRoute);
27744
+ var initializeTracking = function initializeTracking(transaction, afterBlock, paymentRoute, deadline) {
27745
+ storePayment(transaction, afterBlock, paymentRoute, deadline);
27736
27746
  if (synchronousTracking || track && track.async == true) {
27737
- startTracking(transaction, afterBlock, paymentRoute);
27747
+ startTracking(transaction, afterBlock, paymentRoute, deadline);
27738
27748
  }
27739
27749
  if (synchronousTracking == false) {
27740
27750
  return;
27741
27751
  }
27752
+ setDeadline(deadline);
27742
27753
  setTransaction(transaction);
27743
27754
  setAfterBlock(afterBlock);
27744
27755
  setPaymentRoute(paymentRoute);
27745
27756
  openSocket(transaction);
27746
27757
  };
27747
- var trace = function trace(afterBlock, paymentRoute, transaction) {
27758
+ var trace = function trace(afterBlock, paymentRoute, transaction, deadline) {
27759
+ setAttemptId(); // reset attemptId in case payment is retried
27748
27760
  if (!synchronousTracking && !asynchronousTracking) {
27749
27761
  return Promise.resolve();
27750
27762
  }
@@ -27773,7 +27785,7 @@ var PaymentTrackingProvider = (function (props) {
27773
27785
  _context5.t8 = paymentRoute.toAmount.toString();
27774
27786
  _context5.t9 = paymentRoute.toDecimals;
27775
27787
  _context5.t10 = paymentRoute === null || paymentRoute === void 0 || (_paymentRoute$feeAmou2 = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou2 === void 0 ? void 0 : _paymentRoute$feeAmou2.toString();
27776
- _context5.t11 = transaction.deadline;
27788
+ _context5.t11 = deadline;
27777
27789
  payment = {
27778
27790
  blockchain: _context5.t0,
27779
27791
  sender: _context5.t1,
@@ -27838,7 +27850,7 @@ var PaymentTrackingProvider = (function (props) {
27838
27850
  }
27839
27851
  }, _callee5);
27840
27852
  }));
27841
- return function (_x14, _x15) {
27853
+ return function (_x17, _x18) {
27842
27854
  return _ref5.apply(this, arguments);
27843
27855
  };
27844
27856
  }());
@@ -28117,17 +28129,16 @@ var TransactionTrackingProvider = (function (props) {
28117
28129
  }
28118
28130
  }, [polling]);
28119
28131
  var createTracking = /*#__PURE__*/function () {
28120
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(transaction, afterBlock, attempt) {
28132
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(transaction, afterBlock, deadline, attempt) {
28121
28133
  return regenerator.wrap(function _callee$(_context) {
28122
28134
  while (1) switch (_context.prev = _context.next) {
28123
28135
  case 0:
28124
28136
  if (!(attempt > 3)) {
28125
- _context.next = 3;
28137
+ _context.next = 2;
28126
28138
  break;
28127
28139
  }
28128
- console.log('TRANSACTION TRACKING FAILED AFTER 3 ATTEMPTS!');
28129
28140
  return _context.abrupt("return");
28130
- case 3:
28141
+ case 2:
28131
28142
  _context.t0 = fetch;
28132
28143
  _context.t1 = {
28133
28144
  'Content-Type': 'application/json'
@@ -28137,40 +28148,38 @@ var TransactionTrackingProvider = (function (props) {
28137
28148
  _context.t4 = afterBlock.toString();
28138
28149
  _context.t5 = transaction.blockchain;
28139
28150
  _context.t6 = transaction.from;
28140
- _context.next = 12;
28151
+ _context.next = 11;
28141
28152
  return getNonce({
28142
28153
  transaction: transaction,
28143
28154
  wallet: wallet,
28144
28155
  account: account
28145
28156
  });
28146
- case 12:
28157
+ case 11:
28147
28158
  _context.t7 = _context.sent;
28148
- _context.t8 = {
28159
+ _context.t8 = deadline;
28160
+ _context.t9 = {
28149
28161
  id: _context.t3,
28150
28162
  after_block: _context.t4,
28151
28163
  blockchain: _context.t5,
28152
28164
  sender: _context.t6,
28153
- nonce: _context.t7
28165
+ nonce: _context.t7,
28166
+ deadline: _context.t8
28154
28167
  };
28155
- _context.t9 = _context.t2.stringify.call(_context.t2, _context.t8);
28156
- _context.t10 = {
28168
+ _context.t10 = _context.t2.stringify.call(_context.t2, _context.t9);
28169
+ _context.t11 = {
28157
28170
  method: 'POST',
28158
28171
  headers: _context.t1,
28159
- body: _context.t9
28172
+ body: _context.t10
28160
28173
  };
28161
- (0, _context.t0)('https://public.depay.com/transactions', _context.t10).then(function (response) {
28162
- if (response.status == 200 || response.status == 201) {
28163
- console.log('TRANSACTION TRACKING INITIALIZED');
28164
- } else {
28165
- console.log('TRANSACTION TRACKING FAILED', response);
28174
+ (0, _context.t0)('https://public.depay.com/transactions', _context.t11).then(function (response) {
28175
+ if (response.status == 200 || response.status == 201) ; else {
28166
28176
  setTimeout(function () {
28167
- createTracking(transaction, afterBlock, attempt + 1);
28177
+ createTracking(transaction, afterBlock, deadline, attempt + 1);
28168
28178
  }, 3000);
28169
28179
  }
28170
28180
  })["catch"](function (error) {
28171
- console.log('TRANSACTION TRACKING FAILED', error);
28172
28181
  setTimeout(function () {
28173
- createTracking(transaction, afterBlock, attempt + 1);
28182
+ createTracking(transaction, afterBlock, deadline, attempt + 1);
28174
28183
  }, 3000);
28175
28184
  });
28176
28185
  case 17:
@@ -28179,7 +28188,7 @@ var TransactionTrackingProvider = (function (props) {
28179
28188
  }
28180
28189
  }, _callee);
28181
28190
  }));
28182
- return function createTracking(_x, _x2, _x3) {
28191
+ return function createTracking(_x, _x2, _x3, _x4) {
28183
28192
  return _ref.apply(this, arguments);
28184
28193
  };
28185
28194
  }();
@@ -28220,7 +28229,7 @@ var TransactionTrackingProvider = (function (props) {
28220
28229
  }
28221
28230
  }, _callee2);
28222
28231
  }));
28223
- return function (_x4) {
28232
+ return function (_x5) {
28224
28233
  return _ref2.apply(this, arguments);
28225
28234
  };
28226
28235
  }();
@@ -28245,13 +28254,13 @@ var TransactionTrackingProvider = (function (props) {
28245
28254
  console.log('WebSocket Error: ', error);
28246
28255
  };
28247
28256
  };
28248
- var initializeTracking = function initializeTracking(transaction, afterBlock) {
28257
+ var initializeTracking = function initializeTracking(transaction, afterBlock, deadline) {
28249
28258
  if (!supported.evm.includes(transaction.blockchain)) {
28250
28259
  return;
28251
28260
  }
28252
28261
  setGivenTransaction(transaction);
28253
28262
  if (recover == undefined) {
28254
- createTracking(transaction, afterBlock, 1);
28263
+ createTracking(transaction, afterBlock, deadline, 1);
28255
28264
  }
28256
28265
  openSocket(transaction);
28257
28266
  setPolling(true);