@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.
@@ -601,9 +601,9 @@ if (typeof window !== 'undefined' && window && window.Web3) {
601
601
  var LibsWeb3 = Web3;
602
602
 
603
603
  var name = "@audius/sdk";
604
- var version$1 = "3.0.7-beta.0";
604
+ var version$1 = "3.0.7-beta.1";
605
605
  var audius = {
606
- releaseSHA: "0c49737f4aa1ec24e2c2496348566ca6379ea104"
606
+ releaseSHA: "9653fb334c1cdbf24f0cab42ccde8dc7dcf7f729"
607
607
  };
608
608
  var description = "Audius SDK";
609
609
  var keywords = [
@@ -36781,6 +36781,53 @@ var SolanaWeb3Manager = /*#__PURE__*/function () {
36781
36781
 
36782
36782
  return deriveEthWalletFromAddress;
36783
36783
  }()
36784
+ }, {
36785
+ key: "createTransferInstructionsFromCurrentUser",
36786
+ value: function () {
36787
+ var _createTransferInstructionsFromCurrentUser = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25(_ref11) {
36788
+ var _this$web3Manager;
36789
+
36790
+ var amount, feePayerKey, senderSolanaAddress, recipientSolanaAddress, _ref11$mint, mint, _ref11$instructionInd, instructionIndex, instructions;
36791
+
36792
+ return regeneratorRuntime.wrap(function _callee25$(_context25) {
36793
+ while (1) {
36794
+ switch (_context25.prev = _context25.next) {
36795
+ case 0:
36796
+ 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;
36797
+ _context25.next = 3;
36798
+ return createTransferInstructions({
36799
+ amount: amount,
36800
+ feePayerKey: feePayerKey,
36801
+ senderEthAddress: (_this$web3Manager = this.web3Manager) === null || _this$web3Manager === void 0 ? void 0 : _this$web3Manager.getWalletAddress(),
36802
+ senderEthPrivateKey: this.web3Manager.getOwnerWalletPrivateKey(),
36803
+ senderSolanaAddress: senderSolanaAddress,
36804
+ recipientSolanaAddress: recipientSolanaAddress,
36805
+ claimableTokenPDA: this.claimableTokenPDAs[mint],
36806
+ solanaTokenProgramKey: this.solanaTokenKey,
36807
+ claimableTokenProgramKey: this.claimableTokenProgramKey,
36808
+ connection: this.connection,
36809
+ mintKey: this.mints[mint],
36810
+ instructionIndex: instructionIndex
36811
+ });
36812
+
36813
+ case 3:
36814
+ instructions = _context25.sent;
36815
+ return _context25.abrupt("return", instructions);
36816
+
36817
+ case 5:
36818
+ case "end":
36819
+ return _context25.stop();
36820
+ }
36821
+ }
36822
+ }, _callee25, this);
36823
+ }));
36824
+
36825
+ function createTransferInstructionsFromCurrentUser(_x26) {
36826
+ return _createTransferInstructionsFromCurrentUser.apply(this, arguments);
36827
+ }
36828
+
36829
+ return createTransferInstructionsFromCurrentUser;
36830
+ }()
36784
36831
  }]);
36785
36832
 
36786
36833
  return SolanaWeb3Manager;