@medialane/sdk 0.93.0 → 0.94.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 +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +6 -3
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +1 -1
- package/dist/starknet/index.d.ts +1 -1
- package/dist/starknet/index.js +6 -3
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/starknet/index.cjs
CHANGED
|
@@ -10339,10 +10339,13 @@ function u256(parts, offset = 0) {
|
|
|
10339
10339
|
}
|
|
10340
10340
|
async function getCreatorCoinGuarantees(coinAddress, provider) {
|
|
10341
10341
|
const call = (entrypoint) => provider.callContract({ contractAddress: coinAddress, entrypoint, calldata: [] });
|
|
10342
|
-
const [launchedRes,
|
|
10343
|
-
call("is_launched"),
|
|
10342
|
+
const [launchedRes, allocRes] = await Promise.all([
|
|
10343
|
+
call("is_launched").catch(() => null),
|
|
10344
|
+
call("get_team_allocation").catch(() => null)
|
|
10345
|
+
]);
|
|
10346
|
+
if (!launchedRes || !allocRes) return null;
|
|
10347
|
+
const [supplyRes, blockRes, liquidityRes] = await Promise.all([
|
|
10344
10348
|
call("total_supply"),
|
|
10345
|
-
call("get_team_allocation"),
|
|
10346
10349
|
call("launched_at_block_number").catch(() => null),
|
|
10347
10350
|
call("liquidity_type").catch(() => null)
|
|
10348
10351
|
]);
|