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