@misofm/platform 0.28.0 → 0.28.1
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/catalog.js +2 -2
- package/dist/vault.js +2 -2
- package/package.json +4 -4
- package/src/catalog.ts +2 -2
- package/src/vault.ts +2 -2
package/dist/catalog.js
CHANGED
|
@@ -61,8 +61,8 @@ export const getTrackCreditsByRecordingIds = Effect.fn("getTrackCreditsByRecordi
|
|
|
61
61
|
getRecordingCreditsByIds(recordingIds, options.recordingCreditsPackageId),
|
|
62
62
|
// A hard read: every id must resolve, same as the predecessor's
|
|
63
63
|
// `object instanceof Error) throw object` — a typed BatchItemError now,
|
|
64
|
-
// not a defect (sui-effect's `
|
|
65
|
-
sui.
|
|
64
|
+
// not a defect (sui-effect's `getObjectsStrict`).
|
|
65
|
+
sui.getObjectsStrict(recordingIds.map((id) => ObjectId.make(id))),
|
|
66
66
|
]);
|
|
67
67
|
const recordingReads = recordingObjects.map((object) => {
|
|
68
68
|
const [, compositionShareType] = extractTypeParams2(object.type);
|
package/dist/vault.js
CHANGED
|
@@ -515,12 +515,12 @@ export const getVaultAdminCap = Effect.fn("getVaultAdminCap")(function* (vaultAd
|
|
|
515
515
|
/** Resolve owned coins to the exact references required by a Receiving input. */
|
|
516
516
|
export const resolveReceivingCoins = Effect.fn("resolveReceivingCoins")(function* (coinIds) {
|
|
517
517
|
const sui = yield* Sui;
|
|
518
|
-
// `
|
|
518
|
+
// `getObjectsStrict`: every id must resolve, same "hard read" idiom
|
|
519
519
|
// `getSale` uses — a coin the caller named to receive but that the node
|
|
520
520
|
// cannot produce is a typed `BatchItemError`, not a hand-rolled defect
|
|
521
521
|
// from a raw `sui.core.getObjects` per-item `Error | null` check (B9,
|
|
522
522
|
// misofm/sdks#35 verification).
|
|
523
|
-
const objects = yield* sui.
|
|
523
|
+
const objects = yield* sui.getObjectsStrict(coinIds.map((id) => ObjectId.make(id)));
|
|
524
524
|
return objects.map((object) => ({ objectId: object.id, version: String(object.version), digest: object.digest }));
|
|
525
525
|
});
|
|
526
526
|
export function receivingCoins(tx, currencyType, coins) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@misofm/platform",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"packageManager": "bun@1.4.0",
|
|
5
5
|
"description": "Complete client SDK for the Miso platform on Sui — high-level reads, pressings, listings, records, work publishing, Party extensions, and the first-party extensions built on top of the @misofm/musicos object model and the @misofm/partyos Party identity model.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
"dependencies": {
|
|
154
154
|
"@misofm/streaming": "0.3.0",
|
|
155
155
|
"@mysten/bcs": "^2.1.1",
|
|
156
|
-
"@misofm/musicos": "0.4.
|
|
157
|
-
"@misofm/partyos": "0.4.
|
|
156
|
+
"@misofm/musicos": "0.4.1",
|
|
157
|
+
"@misofm/partyos": "0.4.1"
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
160
|
"@mysten/move-bytecode-template": "^0.4.0",
|
|
161
161
|
"@mysten/sui": "2.29.0",
|
|
162
162
|
"@types/bun": "^1.3.14",
|
|
163
|
-
"@unconfirmed/sui-effect": "0.1.
|
|
163
|
+
"@unconfirmed/sui-effect": "0.1.2",
|
|
164
164
|
"effect": "4.0.0-rc.112",
|
|
165
165
|
"typescript": "^7.0.2"
|
|
166
166
|
},
|
package/src/catalog.ts
CHANGED
|
@@ -116,8 +116,8 @@ export const getTrackCreditsByRecordingIds = Effect.fn("getTrackCreditsByRecordi
|
|
|
116
116
|
getRecordingCreditsByIds(recordingIds, options.recordingCreditsPackageId),
|
|
117
117
|
// A hard read: every id must resolve, same as the predecessor's
|
|
118
118
|
// `object instanceof Error) throw object` — a typed BatchItemError now,
|
|
119
|
-
// not a defect (sui-effect's `
|
|
120
|
-
sui.
|
|
119
|
+
// not a defect (sui-effect's `getObjectsStrict`).
|
|
120
|
+
sui.getObjectsStrict(recordingIds.map((id) => ObjectId.make(id))),
|
|
121
121
|
]);
|
|
122
122
|
const recordingReads = recordingObjects.map((object) => {
|
|
123
123
|
const [, compositionShareType] = extractTypeParams2(object.type);
|
package/src/vault.ts
CHANGED
|
@@ -1002,12 +1002,12 @@ export const resolveReceivingCoins = Effect.fn("resolveReceivingCoins")(function
|
|
|
1002
1002
|
coinIds: readonly string[],
|
|
1003
1003
|
): Effect.fn.Return<ReceivingObjectRef[], BatchItemError | TransportError, Sui> {
|
|
1004
1004
|
const sui = yield* Sui;
|
|
1005
|
-
// `
|
|
1005
|
+
// `getObjectsStrict`: every id must resolve, same "hard read" idiom
|
|
1006
1006
|
// `getSale` uses — a coin the caller named to receive but that the node
|
|
1007
1007
|
// cannot produce is a typed `BatchItemError`, not a hand-rolled defect
|
|
1008
1008
|
// from a raw `sui.core.getObjects` per-item `Error | null` check (B9,
|
|
1009
1009
|
// misofm/sdks#35 verification).
|
|
1010
|
-
const objects = yield* sui.
|
|
1010
|
+
const objects = yield* sui.getObjectsStrict(coinIds.map((id) => ObjectId.make(id)));
|
|
1011
1011
|
return objects.map((object) => ({ objectId: object.id, version: String(object.version), digest: object.digest }));
|
|
1012
1012
|
});
|
|
1013
1013
|
|