@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.esm.js CHANGED
@@ -34439,9 +34439,9 @@ var EthWeb3Manager = /*#__PURE__*/function () {
34439
34439
  }();
34440
34440
 
34441
34441
  var name = "@audius/sdk";
34442
- var version = "3.0.7-beta.0";
34442
+ var version = "3.0.7-beta.1";
34443
34443
  var audius = {
34444
- releaseSHA: "0c49737f4aa1ec24e2c2496348566ca6379ea104"
34444
+ releaseSHA: "9653fb334c1cdbf24f0cab42ccde8dc7dcf7f729"
34445
34445
  };
34446
34446
  var description = "Audius SDK";
34447
34447
  var keywords = [
@@ -54294,6 +54294,53 @@ var SolanaWeb3Manager = /*#__PURE__*/function () {
54294
54294
 
54295
54295
  return deriveEthWalletFromAddress;
54296
54296
  }()
54297
+ }, {
54298
+ key: "createTransferInstructionsFromCurrentUser",
54299
+ value: function () {
54300
+ var _createTransferInstructionsFromCurrentUser = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25(_ref11) {
54301
+ var _this$web3Manager;
54302
+
54303
+ var amount, feePayerKey, senderSolanaAddress, recipientSolanaAddress, _ref11$mint, mint, _ref11$instructionInd, instructionIndex, instructions;
54304
+
54305
+ return regeneratorRuntime.wrap(function _callee25$(_context25) {
54306
+ while (1) {
54307
+ switch (_context25.prev = _context25.next) {
54308
+ case 0:
54309
+ 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;
54310
+ _context25.next = 3;
54311
+ return createTransferInstructions({
54312
+ amount: amount,
54313
+ feePayerKey: feePayerKey,
54314
+ senderEthAddress: (_this$web3Manager = this.web3Manager) === null || _this$web3Manager === void 0 ? void 0 : _this$web3Manager.getWalletAddress(),
54315
+ senderEthPrivateKey: this.web3Manager.getOwnerWalletPrivateKey(),
54316
+ senderSolanaAddress: senderSolanaAddress,
54317
+ recipientSolanaAddress: recipientSolanaAddress,
54318
+ claimableTokenPDA: this.claimableTokenPDAs[mint],
54319
+ solanaTokenProgramKey: this.solanaTokenKey,
54320
+ claimableTokenProgramKey: this.claimableTokenProgramKey,
54321
+ connection: this.connection,
54322
+ mintKey: this.mints[mint],
54323
+ instructionIndex: instructionIndex
54324
+ });
54325
+
54326
+ case 3:
54327
+ instructions = _context25.sent;
54328
+ return _context25.abrupt("return", instructions);
54329
+
54330
+ case 5:
54331
+ case "end":
54332
+ return _context25.stop();
54333
+ }
54334
+ }
54335
+ }, _callee25, this);
54336
+ }));
54337
+
54338
+ function createTransferInstructionsFromCurrentUser(_x26) {
54339
+ return _createTransferInstructionsFromCurrentUser.apply(this, arguments);
54340
+ }
54341
+
54342
+ return createTransferInstructionsFromCurrentUser;
54343
+ }()
54297
54344
  }]);
54298
54345
 
54299
54346
  return SolanaWeb3Manager;