@medialane/sdk 0.206.0 → 0.207.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.
@@ -11165,6 +11165,12 @@ function createdCollectionFromReceipt(receipt, registry) {
11165
11165
  }
11166
11166
  return null;
11167
11167
  }
11168
+ async function createdCollectionAddress(provider, registry, collectionId) {
11169
+ const [low, high] = Object.values(starknet.uint256.bnToUint256(BigInt(collectionId)));
11170
+ const result = await provider.callContract({ contractAddress: registry, entrypoint: "get_collection", calldata: [low, high] });
11171
+ const ipNft = result[result.length - 1];
11172
+ return ipNft && !sameFelt(ipNft, 0n) ? chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", ipNft) : null;
11173
+ }
11168
11174
  function mintedTokenIdFromReceipt(receipt, contract) {
11169
11175
  for (const e of receipt.events ?? []) {
11170
11176
  if (!sameFelt(e.from_address, contract)) continue;
@@ -12017,6 +12023,7 @@ exports.clubCalls = clubCalls;
12017
12023
  exports.coinToRaw = toRaw;
12018
12024
  exports.confirmIntentBestEffort = confirmIntentBestEffort;
12019
12025
  exports.createChainProvider = createChainProvider;
12026
+ exports.createdCollectionAddress = createdCollectionAddress;
12020
12027
  exports.createdCollectionFromReceipt = createdCollectionFromReceipt;
12021
12028
  exports.decodePopClaimFragment = decodePopClaimFragment;
12022
12029
  exports.deployedCollectionFromReceipt = deployedCollectionFromReceipt;