@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/legacy.js CHANGED
@@ -35988,9 +35988,9 @@ var EthWeb3Manager = /*#__PURE__*/function () {
35988
35988
  }();
35989
35989
 
35990
35990
  var name = "@audius/sdk";
35991
- var version = "3.0.8-beta.7";
35991
+ var version = "3.0.8-beta.8";
35992
35992
  var audius = {
35993
- releaseSHA: "72c223f61d61e353356d3b0f33e8db6a17e5b7a9"
35993
+ releaseSHA: "a4c4a74b40fe6089348aed0d7ccf545de988e506"
35994
35994
  };
35995
35995
  var description = "Audius SDK";
35996
35996
  var keywords = [
@@ -53339,15 +53339,17 @@ var TransactionHandler = /*#__PURE__*/function () {
53339
53339
  feePayerAccount,
53340
53340
  tx,
53341
53341
  rawTransaction,
53342
- sendRawTransaction,
53343
- txid,
53344
53342
  errorCode,
53345
53343
  error,
53344
+ sendRawTransaction,
53345
+ txid,
53346
+ _errorCode,
53347
+ _error,
53346
53348
  done,
53347
53349
  sendCount,
53348
53350
  startTime,
53349
- _errorCode,
53350
- _error,
53351
+ _errorCode2,
53352
+ _error2,
53351
53353
  _args5 = arguments;
53352
53354
 
53353
53355
  return regeneratorRuntime.wrap(function _callee5$(_context5) {
@@ -53420,8 +53422,31 @@ var TransactionHandler = /*#__PURE__*/function () {
53420
53422
  });
53421
53423
  }
53422
53424
 
53423
- rawTransaction = tx.serialize(); // Send the txn
53425
+ _context5.prev = 21;
53426
+ rawTransaction = tx.serialize();
53427
+ _context5.next = 32;
53428
+ break;
53429
+
53430
+ case 25:
53431
+ _context5.prev = 25;
53432
+ _context5.t1 = _context5["catch"](21);
53433
+ logger.warn("transactionHandler: transaction serialization failed: ".concat(_context5.t1));
53434
+ errorCode = null;
53435
+ error = null;
53424
53436
 
53437
+ if (_context5.t1 instanceof Error) {
53438
+ error = _context5.t1.message;
53439
+ errorCode = this._parseSolanaErrorCode(error);
53440
+ }
53441
+
53442
+ return _context5.abrupt("return", {
53443
+ res: null,
53444
+ error: error,
53445
+ errorCode: errorCode
53446
+ });
53447
+
53448
+ case 32:
53449
+ // Send the txn
53425
53450
  sendRawTransaction = /*#__PURE__*/function () {
53426
53451
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
53427
53452
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
@@ -53451,35 +53476,35 @@ var TransactionHandler = /*#__PURE__*/function () {
53451
53476
  };
53452
53477
  }();
53453
53478
 
53454
- _context5.prev = 23;
53455
- _context5.next = 26;
53479
+ _context5.prev = 33;
53480
+ _context5.next = 36;
53456
53481
  return sendRawTransaction();
53457
53482
 
53458
- case 26:
53483
+ case 36:
53459
53484
  txid = _context5.sent;
53460
- _context5.next = 36;
53485
+ _context5.next = 46;
53461
53486
  break;
53462
53487
 
53463
- case 29:
53464
- _context5.prev = 29;
53465
- _context5.t1 = _context5["catch"](23);
53488
+ case 39:
53489
+ _context5.prev = 39;
53490
+ _context5.t2 = _context5["catch"](33);
53466
53491
  // Rarely, this intiial send will fail
53467
- logger.warn("transactionHandler: Initial send failed: ".concat(_context5.t1));
53468
- errorCode = null;
53469
- error = null;
53492
+ logger.warn("transactionHandler: Initial send failed: ".concat(_context5.t2));
53493
+ _errorCode = null;
53494
+ _error = null;
53470
53495
 
53471
- if (_context5.t1 instanceof Error) {
53472
- error = _context5.t1.message;
53473
- errorCode = this._parseSolanaErrorCode(error);
53496
+ if (_context5.t2 instanceof Error) {
53497
+ _error = _context5.t2.message;
53498
+ _errorCode = this._parseSolanaErrorCode(_error);
53474
53499
  }
53475
53500
 
53476
53501
  return _context5.abrupt("return", {
53477
53502
  res: null,
53478
- error: error,
53479
- errorCode: errorCode
53503
+ error: _error,
53504
+ errorCode: _errorCode
53480
53505
  });
53481
53506
 
53482
- case 36:
53507
+ case 46:
53483
53508
  done = false; // Start up resubmission loop
53484
53509
 
53485
53510
  sendCount = 0;
@@ -53526,11 +53551,11 @@ var TransactionHandler = /*#__PURE__*/function () {
53526
53551
  } // Await for tx confirmation
53527
53552
 
53528
53553
 
53529
- _context5.prev = 40;
53530
- _context5.next = 43;
53554
+ _context5.prev = 50;
53555
+ _context5.next = 53;
53531
53556
  return this._awaitTransactionSignatureConfirmation(txid, logger);
53532
53557
 
53533
- case 43:
53558
+ case 53:
53534
53559
  done = true;
53535
53560
  logger.info("transactionHandler: finished for txid ".concat(txid, " with ").concat(sendCount, " retries"));
53536
53561
  return _context5.abrupt("return", {
@@ -53539,31 +53564,31 @@ var TransactionHandler = /*#__PURE__*/function () {
53539
53564
  errorCode: null
53540
53565
  });
53541
53566
 
53542
- case 48:
53543
- _context5.prev = 48;
53544
- _context5.t2 = _context5["catch"](40);
53545
- logger.warn("transactionHandler: error in awaitTransactionSignature: ".concat(JSON.stringify(_context5.t2), ", ").concat(txid));
53567
+ case 58:
53568
+ _context5.prev = 58;
53569
+ _context5.t3 = _context5["catch"](50);
53570
+ logger.warn("transactionHandler: error in awaitTransactionSignature: ".concat(JSON.stringify(_context5.t3), ", ").concat(txid));
53546
53571
  done = true;
53547
- _errorCode = null;
53548
- _error = null;
53572
+ _errorCode2 = null;
53573
+ _error2 = null;
53549
53574
 
53550
- if (_context5.t2 instanceof Error) {
53551
- _error = _context5.t2.message;
53552
- _errorCode = this._parseSolanaErrorCode(_error);
53575
+ if (_context5.t3 instanceof Error) {
53576
+ _error2 = _context5.t3.message;
53577
+ _errorCode2 = this._parseSolanaErrorCode(_error2);
53553
53578
  }
53554
53579
 
53555
53580
  return _context5.abrupt("return", {
53556
53581
  res: null,
53557
- error: _error,
53558
- errorCode: _errorCode
53582
+ error: _error2,
53583
+ errorCode: _errorCode2
53559
53584
  });
53560
53585
 
53561
- case 56:
53586
+ case 66:
53562
53587
  case "end":
53563
53588
  return _context5.stop();
53564
53589
  }
53565
53590
  }
53566
- }, _callee5, this, [[23, 29], [40, 48]]);
53591
+ }, _callee5, this, [[21, 25], [33, 39], [50, 58]]);
53567
53592
  }));
53568
53593
 
53569
53594
  function _locallyConfirmTransaction(_x5, _x6, _x7, _x8) {