@audius/sdk 3.0.8-beta.7 → 3.0.8-beta.8

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/index.cjs.js CHANGED
@@ -36180,9 +36180,9 @@ var EthWeb3Manager = /*#__PURE__*/function () {
36180
36180
  }();
36181
36181
 
36182
36182
  var name = "@audius/sdk";
36183
- var version = "3.0.8-beta.7";
36183
+ var version = "3.0.8-beta.8";
36184
36184
  var audius = {
36185
- releaseSHA: "72c223f61d61e353356d3b0f33e8db6a17e5b7a9"
36185
+ releaseSHA: "a4c4a74b40fe6089348aed0d7ccf545de988e506"
36186
36186
  };
36187
36187
  var description = "Audius SDK";
36188
36188
  var keywords = [
@@ -53531,15 +53531,17 @@ var TransactionHandler = /*#__PURE__*/function () {
53531
53531
  feePayerAccount,
53532
53532
  tx,
53533
53533
  rawTransaction,
53534
- sendRawTransaction,
53535
- txid,
53536
53534
  errorCode,
53537
53535
  error,
53536
+ sendRawTransaction,
53537
+ txid,
53538
+ _errorCode,
53539
+ _error,
53538
53540
  done,
53539
53541
  sendCount,
53540
53542
  startTime,
53541
- _errorCode,
53542
- _error,
53543
+ _errorCode2,
53544
+ _error2,
53543
53545
  _args5 = arguments;
53544
53546
 
53545
53547
  return regeneratorRuntime.wrap(function _callee5$(_context5) {
@@ -53612,8 +53614,31 @@ var TransactionHandler = /*#__PURE__*/function () {
53612
53614
  });
53613
53615
  }
53614
53616
 
53615
- rawTransaction = tx.serialize(); // Send the txn
53617
+ _context5.prev = 21;
53618
+ rawTransaction = tx.serialize();
53619
+ _context5.next = 32;
53620
+ break;
53621
+
53622
+ case 25:
53623
+ _context5.prev = 25;
53624
+ _context5.t1 = _context5["catch"](21);
53625
+ logger.warn("transactionHandler: transaction serialization failed: ".concat(_context5.t1));
53626
+ errorCode = null;
53627
+ error = null;
53616
53628
 
53629
+ if (_context5.t1 instanceof Error) {
53630
+ error = _context5.t1.message;
53631
+ errorCode = this._parseSolanaErrorCode(error);
53632
+ }
53633
+
53634
+ return _context5.abrupt("return", {
53635
+ res: null,
53636
+ error: error,
53637
+ errorCode: errorCode
53638
+ });
53639
+
53640
+ case 32:
53641
+ // Send the txn
53617
53642
  sendRawTransaction = /*#__PURE__*/function () {
53618
53643
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
53619
53644
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
@@ -53643,35 +53668,35 @@ var TransactionHandler = /*#__PURE__*/function () {
53643
53668
  };
53644
53669
  }();
53645
53670
 
53646
- _context5.prev = 23;
53647
- _context5.next = 26;
53671
+ _context5.prev = 33;
53672
+ _context5.next = 36;
53648
53673
  return sendRawTransaction();
53649
53674
 
53650
- case 26:
53675
+ case 36:
53651
53676
  txid = _context5.sent;
53652
- _context5.next = 36;
53677
+ _context5.next = 46;
53653
53678
  break;
53654
53679
 
53655
- case 29:
53656
- _context5.prev = 29;
53657
- _context5.t1 = _context5["catch"](23);
53680
+ case 39:
53681
+ _context5.prev = 39;
53682
+ _context5.t2 = _context5["catch"](33);
53658
53683
  // Rarely, this intiial send will fail
53659
- logger.warn("transactionHandler: Initial send failed: ".concat(_context5.t1));
53660
- errorCode = null;
53661
- error = null;
53684
+ logger.warn("transactionHandler: Initial send failed: ".concat(_context5.t2));
53685
+ _errorCode = null;
53686
+ _error = null;
53662
53687
 
53663
- if (_context5.t1 instanceof Error) {
53664
- error = _context5.t1.message;
53665
- errorCode = this._parseSolanaErrorCode(error);
53688
+ if (_context5.t2 instanceof Error) {
53689
+ _error = _context5.t2.message;
53690
+ _errorCode = this._parseSolanaErrorCode(_error);
53666
53691
  }
53667
53692
 
53668
53693
  return _context5.abrupt("return", {
53669
53694
  res: null,
53670
- error: error,
53671
- errorCode: errorCode
53695
+ error: _error,
53696
+ errorCode: _errorCode
53672
53697
  });
53673
53698
 
53674
- case 36:
53699
+ case 46:
53675
53700
  done = false; // Start up resubmission loop
53676
53701
 
53677
53702
  sendCount = 0;
@@ -53718,11 +53743,11 @@ var TransactionHandler = /*#__PURE__*/function () {
53718
53743
  } // Await for tx confirmation
53719
53744
 
53720
53745
 
53721
- _context5.prev = 40;
53722
- _context5.next = 43;
53746
+ _context5.prev = 50;
53747
+ _context5.next = 53;
53723
53748
  return this._awaitTransactionSignatureConfirmation(txid, logger);
53724
53749
 
53725
- case 43:
53750
+ case 53:
53726
53751
  done = true;
53727
53752
  logger.info("transactionHandler: finished for txid ".concat(txid, " with ").concat(sendCount, " retries"));
53728
53753
  return _context5.abrupt("return", {
@@ -53731,31 +53756,31 @@ var TransactionHandler = /*#__PURE__*/function () {
53731
53756
  errorCode: null
53732
53757
  });
53733
53758
 
53734
- case 48:
53735
- _context5.prev = 48;
53736
- _context5.t2 = _context5["catch"](40);
53737
- logger.warn("transactionHandler: error in awaitTransactionSignature: ".concat(JSON.stringify(_context5.t2), ", ").concat(txid));
53759
+ case 58:
53760
+ _context5.prev = 58;
53761
+ _context5.t3 = _context5["catch"](50);
53762
+ logger.warn("transactionHandler: error in awaitTransactionSignature: ".concat(JSON.stringify(_context5.t3), ", ").concat(txid));
53738
53763
  done = true;
53739
- _errorCode = null;
53740
- _error = null;
53764
+ _errorCode2 = null;
53765
+ _error2 = null;
53741
53766
 
53742
- if (_context5.t2 instanceof Error) {
53743
- _error = _context5.t2.message;
53744
- _errorCode = this._parseSolanaErrorCode(_error);
53767
+ if (_context5.t3 instanceof Error) {
53768
+ _error2 = _context5.t3.message;
53769
+ _errorCode2 = this._parseSolanaErrorCode(_error2);
53745
53770
  }
53746
53771
 
53747
53772
  return _context5.abrupt("return", {
53748
53773
  res: null,
53749
- error: _error,
53750
- errorCode: _errorCode
53774
+ error: _error2,
53775
+ errorCode: _errorCode2
53751
53776
  });
53752
53777
 
53753
- case 56:
53778
+ case 66:
53754
53779
  case "end":
53755
53780
  return _context5.stop();
53756
53781
  }
53757
53782
  }
53758
- }, _callee5, this, [[23, 29], [40, 48]]);
53783
+ }, _callee5, this, [[21, 25], [33, 39], [50, 58]]);
53759
53784
  }));
53760
53785
 
53761
53786
  function _locallyConfirmTransaction(_x5, _x6, _x7, _x8) {