@rougechain/sdk 1.1.0 → 1.2.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 +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1328,6 +1328,15 @@ var SocialClient = class {
|
|
|
1328
1328
|
return [];
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
+
// ── Hidden Tracks ─────────────────────────────────────
|
|
1332
|
+
async hideTrack(wallet, trackId, hidden = true) {
|
|
1333
|
+
const signed = signRequest(wallet, { trackId, hidden });
|
|
1334
|
+
return this.rc.submitTx("/v2/social/hide-track", signed);
|
|
1335
|
+
}
|
|
1336
|
+
async getHiddenTracks(pubkey) {
|
|
1337
|
+
const data = await this.rc.get(`/social/hidden-tracks/${encodeURIComponent(pubkey)}`);
|
|
1338
|
+
return data.trackIds ?? [];
|
|
1339
|
+
}
|
|
1331
1340
|
};
|
|
1332
1341
|
|
|
1333
1342
|
// src/address.ts
|