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