@audius/sdk 3.0.7-beta.0 → 3.0.7-beta.1

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
@@ -34682,9 +34682,9 @@ var EthWeb3Manager = /*#__PURE__*/function () {
34682
34682
  }();
34683
34683
 
34684
34684
  var name = "@audius/sdk";
34685
- var version = "3.0.7-beta.0";
34685
+ var version = "3.0.7-beta.1";
34686
34686
  var audius = {
34687
- releaseSHA: "0c49737f4aa1ec24e2c2496348566ca6379ea104"
34687
+ releaseSHA: "9653fb334c1cdbf24f0cab42ccde8dc7dcf7f729"
34688
34688
  };
34689
34689
  var description = "Audius SDK";
34690
34690
  var keywords = [
@@ -54537,6 +54537,53 @@ var SolanaWeb3Manager = /*#__PURE__*/function () {
54537
54537
 
54538
54538
  return deriveEthWalletFromAddress;
54539
54539
  }()
54540
+ }, {
54541
+ key: "createTransferInstructionsFromCurrentUser",
54542
+ value: function () {
54543
+ var _createTransferInstructionsFromCurrentUser = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25(_ref11) {
54544
+ var _this$web3Manager;
54545
+
54546
+ var amount, feePayerKey, senderSolanaAddress, recipientSolanaAddress, _ref11$mint, mint, _ref11$instructionInd, instructionIndex, instructions;
54547
+
54548
+ return regeneratorRuntime.wrap(function _callee25$(_context25) {
54549
+ while (1) {
54550
+ switch (_context25.prev = _context25.next) {
54551
+ case 0:
54552
+ amount = _ref11.amount, feePayerKey = _ref11.feePayerKey, senderSolanaAddress = _ref11.senderSolanaAddress, recipientSolanaAddress = _ref11.recipientSolanaAddress, _ref11$mint = _ref11.mint, mint = _ref11$mint === void 0 ? DEFAULT_MINT : _ref11$mint, _ref11$instructionInd = _ref11.instructionIndex, instructionIndex = _ref11$instructionInd === void 0 ? 0 : _ref11$instructionInd;
54553
+ _context25.next = 3;
54554
+ return createTransferInstructions({
54555
+ amount: amount,
54556
+ feePayerKey: feePayerKey,
54557
+ senderEthAddress: (_this$web3Manager = this.web3Manager) === null || _this$web3Manager === void 0 ? void 0 : _this$web3Manager.getWalletAddress(),
54558
+ senderEthPrivateKey: this.web3Manager.getOwnerWalletPrivateKey(),
54559
+ senderSolanaAddress: senderSolanaAddress,
54560
+ recipientSolanaAddress: recipientSolanaAddress,
54561
+ claimableTokenPDA: this.claimableTokenPDAs[mint],
54562
+ solanaTokenProgramKey: this.solanaTokenKey,
54563
+ claimableTokenProgramKey: this.claimableTokenProgramKey,
54564
+ connection: this.connection,
54565
+ mintKey: this.mints[mint],
54566
+ instructionIndex: instructionIndex
54567
+ });
54568
+
54569
+ case 3:
54570
+ instructions = _context25.sent;
54571
+ return _context25.abrupt("return", instructions);
54572
+
54573
+ case 5:
54574
+ case "end":
54575
+ return _context25.stop();
54576
+ }
54577
+ }
54578
+ }, _callee25, this);
54579
+ }));
54580
+
54581
+ function createTransferInstructionsFromCurrentUser(_x26) {
54582
+ return _createTransferInstructionsFromCurrentUser.apply(this, arguments);
54583
+ }
54584
+
54585
+ return createTransferInstructionsFromCurrentUser;
54586
+ }()
54540
54587
  }]);
54541
54588
 
54542
54589
  return SolanaWeb3Manager;