@rougechain/sdk 1.1.0 → 1.3.0

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.js CHANGED
@@ -190,7 +190,12 @@ function createSignedNftCreateCollection(wallet, symbol, name, opts = {}) {
190
190
  maxSupply: opts.maxSupply,
191
191
  royaltyBps: opts.royaltyBps,
192
192
  image: opts.image,
193
- description: opts.description
193
+ description: opts.description,
194
+ publicMint: opts.publicMint,
195
+ mintPrice: opts.mintPrice,
196
+ tokenGateSymbol: opts.tokenGateSymbol,
197
+ tokenGateAmount: opts.tokenGateAmount,
198
+ discountPct: opts.discountPct
194
199
  });
195
200
  }
196
201
  function createSignedNftMint(wallet, collectionId, name, opts = {}) {
@@ -681,7 +686,12 @@ var NftClient = class {
681
686
  maxSupply: params.maxSupply,
682
687
  royaltyBps: params.royaltyBps,
683
688
  image: params.image,
684
- description: params.description
689
+ description: params.description,
690
+ publicMint: params.publicMint,
691
+ mintPrice: params.mintPrice,
692
+ tokenGateSymbol: params.tokenGateSymbol,
693
+ tokenGateAmount: params.tokenGateAmount,
694
+ discountPct: params.discountPct
685
695
  });
686
696
  return this.rc.submitTx("/v2/nft/collection/create", tx);
687
697
  }
@@ -1326,6 +1336,15 @@ var SocialClient = class {
1326
1336
  return [];
1327
1337
  }
1328
1338
  }
1339
+ // ── Hidden Tracks ─────────────────────────────────────
1340
+ async hideTrack(wallet, trackId, hidden = true) {
1341
+ const signed = signRequest(wallet, { trackId, hidden });
1342
+ return this.rc.submitTx("/v2/social/hide-track", signed);
1343
+ }
1344
+ async getHiddenTracks(pubkey) {
1345
+ const data = await this.rc.get(`/social/hidden-tracks/${encodeURIComponent(pubkey)}`);
1346
+ return data.trackIds ?? [];
1347
+ }
1329
1348
  };
1330
1349
 
1331
1350
  // src/address.ts