@audius/sdk 3.0.8-beta.1 → 3.0.8-beta.2

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.
@@ -21,7 +21,8 @@ declare type SubmitAttestationsConfig = Omit<SubmitAttestationsBaseConfig, 'rewa
21
21
  declare type CreateSenderParams = Omit<CreateSenderBaseParams, 'rewardManagerProgramId' | 'rewardManagerAccount' | 'feePayer' | 'transactionHandler' | 'identityService'> & {
22
22
  feePayerOverride: Nullable<string>;
23
23
  };
24
- declare type MintName = 'usdc' | 'audio';
24
+ export declare type MintName = 'usdc' | 'audio';
25
+ export declare const DEFAULT_MINT: MintName;
25
26
  export declare type SolanaWeb3Config = {
26
27
  solanaClusterEndpoint: string;
27
28
  mintAddress: string;
@@ -228,13 +229,17 @@ export declare class SolanaWeb3Manager {
228
229
  * @returns hex string of input bytes
229
230
  */
230
231
  deriveEthWalletFromAddress(accountEthAddress: Buffer): Promise<string>;
232
+ /**
233
+ * Creates transfer instructions from the current user's user bank to the provided solana address.
234
+ * Supports both $AUDIO or USDC user banks.
235
+ */
231
236
  createTransferInstructionsFromCurrentUser({ amount, feePayerKey, senderSolanaAddress, recipientSolanaAddress, mint, instructionIndex }: {
232
237
  amount: BN;
233
- feePayerKey: PublicKey;
234
238
  senderSolanaAddress: PublicKey;
235
239
  recipientSolanaAddress: string;
236
240
  mint: MintName;
237
- instructionIndex: number;
241
+ feePayerKey: PublicKey;
242
+ instructionIndex?: number;
238
243
  }): Promise<solanaWeb3.TransactionInstruction[]>;
239
244
  }
240
245
  export {};
package/dist/web-libs.js CHANGED
@@ -35682,9 +35682,9 @@ var EthWeb3Manager = /*#__PURE__*/function () {
35682
35682
  }();
35683
35683
 
35684
35684
  var name = "@audius/sdk";
35685
- var version = "3.0.8-beta.1";
35685
+ var version = "3.0.8-beta.2";
35686
35686
  var audius = {
35687
- releaseSHA: "7822b850e06a7b85434f932d803d0020b7d13b8d"
35687
+ releaseSHA: "06fa8b274489d59b098d7ce4be0cbed9cb3b6412"
35688
35688
  };
35689
35689
  var description = "Audius SDK";
35690
35690
  var keywords = [
@@ -55537,6 +55537,11 @@ var SolanaWeb3Manager = /*#__PURE__*/function () {
55537
55537
 
55538
55538
  return deriveEthWalletFromAddress;
55539
55539
  }()
55540
+ /**
55541
+ * Creates transfer instructions from the current user's user bank to the provided solana address.
55542
+ * Supports both $AUDIO or USDC user banks.
55543
+ */
55544
+
55540
55545
  }, {
55541
55546
  key: "createTransferInstructionsFromCurrentUser",
55542
55547
  value: function () {