@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/legacy.js CHANGED
@@ -34490,9 +34490,9 @@ var EthWeb3Manager = /*#__PURE__*/function () {
34490
34490
  }();
34491
34491
 
34492
34492
  var name = "@audius/sdk";
34493
- var version = "3.0.7-beta.0";
34493
+ var version = "3.0.7-beta.1";
34494
34494
  var audius = {
34495
- releaseSHA: "0c49737f4aa1ec24e2c2496348566ca6379ea104"
34495
+ releaseSHA: "9653fb334c1cdbf24f0cab42ccde8dc7dcf7f729"
34496
34496
  };
34497
34497
  var description = "Audius SDK";
34498
34498
  var keywords = [
@@ -54345,6 +54345,53 @@ var SolanaWeb3Manager = /*#__PURE__*/function () {
54345
54345
 
54346
54346
  return deriveEthWalletFromAddress;
54347
54347
  }()
54348
+ }, {
54349
+ key: "createTransferInstructionsFromCurrentUser",
54350
+ value: function () {
54351
+ var _createTransferInstructionsFromCurrentUser = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25(_ref11) {
54352
+ var _this$web3Manager;
54353
+
54354
+ var amount, feePayerKey, senderSolanaAddress, recipientSolanaAddress, _ref11$mint, mint, _ref11$instructionInd, instructionIndex, instructions;
54355
+
54356
+ return regeneratorRuntime.wrap(function _callee25$(_context25) {
54357
+ while (1) {
54358
+ switch (_context25.prev = _context25.next) {
54359
+ case 0:
54360
+ 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;
54361
+ _context25.next = 3;
54362
+ return createTransferInstructions({
54363
+ amount: amount,
54364
+ feePayerKey: feePayerKey,
54365
+ senderEthAddress: (_this$web3Manager = this.web3Manager) === null || _this$web3Manager === void 0 ? void 0 : _this$web3Manager.getWalletAddress(),
54366
+ senderEthPrivateKey: this.web3Manager.getOwnerWalletPrivateKey(),
54367
+ senderSolanaAddress: senderSolanaAddress,
54368
+ recipientSolanaAddress: recipientSolanaAddress,
54369
+ claimableTokenPDA: this.claimableTokenPDAs[mint],
54370
+ solanaTokenProgramKey: this.solanaTokenKey,
54371
+ claimableTokenProgramKey: this.claimableTokenProgramKey,
54372
+ connection: this.connection,
54373
+ mintKey: this.mints[mint],
54374
+ instructionIndex: instructionIndex
54375
+ });
54376
+
54377
+ case 3:
54378
+ instructions = _context25.sent;
54379
+ return _context25.abrupt("return", instructions);
54380
+
54381
+ case 5:
54382
+ case "end":
54383
+ return _context25.stop();
54384
+ }
54385
+ }
54386
+ }, _callee25, this);
54387
+ }));
54388
+
54389
+ function createTransferInstructionsFromCurrentUser(_x26) {
54390
+ return _createTransferInstructionsFromCurrentUser.apply(this, arguments);
54391
+ }
54392
+
54393
+ return createTransferInstructionsFromCurrentUser;
54394
+ }()
54348
54395
  }]);
54349
54396
 
54350
54397
  return SolanaWeb3Manager;