@medialane/sdk 0.35.0 → 0.35.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/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6319,13 +6319,19 @@ async function getCreatorCoinPrice(coinAddress, provider) {
|
|
|
6319
6319
|
const quotePerCoin = (quoteIsToken0 ? 1 / priceT1perT0 : priceT1perT0) * decAdj;
|
|
6320
6320
|
return { quotePerCoin, quoteToken, quoteSymbol: token?.symbol ?? null, quoteDecimals };
|
|
6321
6321
|
}
|
|
6322
|
-
var
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6322
|
+
var _factoryContract = null;
|
|
6323
|
+
function factoryContract() {
|
|
6324
|
+
if (!_factoryContract) {
|
|
6325
|
+
_factoryContract = new starknet.Contract(
|
|
6326
|
+
CreatorCoinFactoryABI,
|
|
6327
|
+
CREATOR_COIN_FACTORY_CONTRACT_MAINNET
|
|
6328
|
+
);
|
|
6329
|
+
}
|
|
6330
|
+
return _factoryContract;
|
|
6331
|
+
}
|
|
6326
6332
|
function buildCreateCreatorCoinCall(params) {
|
|
6327
6333
|
const salt = params.salt ?? BigInt("0x" + Date.now().toString(16));
|
|
6328
|
-
return factoryContract.populate("create_creator_coin", [
|
|
6334
|
+
return factoryContract().populate("create_creator_coin", [
|
|
6329
6335
|
params.owner,
|
|
6330
6336
|
params.name,
|
|
6331
6337
|
params.symbol,
|
|
@@ -6358,7 +6364,7 @@ function buildLaunchOnEkuboCalls(params) {
|
|
|
6358
6364
|
calldata: [CREATOR_COIN_FACTORY_CONTRACT_MAINNET, amt.low, amt.high]
|
|
6359
6365
|
});
|
|
6360
6366
|
}
|
|
6361
|
-
calls.push(factoryContract.populate("launch_on_ekubo", [launchParameters, ekuboParameters]));
|
|
6367
|
+
calls.push(factoryContract().populate("launch_on_ekubo", [launchParameters, ekuboParameters]));
|
|
6362
6368
|
return calls;
|
|
6363
6369
|
}
|
|
6364
6370
|
var CREATOR_COIN_CREATED_SELECTOR = starknet.hash.getSelectorFromName("CreatorCoinCreated");
|