@medialane/sdk 0.201.0 → 0.202.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/starknet/index.cjs
CHANGED
|
@@ -11155,6 +11155,16 @@ function deployedCollectionFromReceipt(receipt, service) {
|
|
|
11155
11155
|
}
|
|
11156
11156
|
return null;
|
|
11157
11157
|
}
|
|
11158
|
+
function createdCollectionFromReceipt(receipt, registry) {
|
|
11159
|
+
const selector = BigInt(starknet.hash.getSelectorFromName("CollectionCreated"));
|
|
11160
|
+
for (const e of receipt.events ?? []) {
|
|
11161
|
+
if (!sameFelt(e.from_address, registry)) continue;
|
|
11162
|
+
const keys = e.keys ?? [];
|
|
11163
|
+
if (!sameFelt(keys[0], selector) || keys.length < 3) continue;
|
|
11164
|
+
return { collectionId: u256(keys[1], keys[2]) };
|
|
11165
|
+
}
|
|
11166
|
+
return null;
|
|
11167
|
+
}
|
|
11158
11168
|
function mintedTokenIdFromReceipt(receipt, contract) {
|
|
11159
11169
|
for (const e of receipt.events ?? []) {
|
|
11160
11170
|
if (!sameFelt(e.from_address, contract)) continue;
|
|
@@ -12007,6 +12017,7 @@ exports.clubCalls = clubCalls;
|
|
|
12007
12017
|
exports.coinToRaw = toRaw;
|
|
12008
12018
|
exports.confirmIntentBestEffort = confirmIntentBestEffort;
|
|
12009
12019
|
exports.createChainProvider = createChainProvider;
|
|
12020
|
+
exports.createdCollectionFromReceipt = createdCollectionFromReceipt;
|
|
12010
12021
|
exports.decodePopClaimFragment = decodePopClaimFragment;
|
|
12011
12022
|
exports.deployedCollectionFromReceipt = deployedCollectionFromReceipt;
|
|
12012
12023
|
exports.dropCalls = dropCalls;
|