@medialane/sdk 0.28.0 → 0.29.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 +109 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +483 -3
- package/dist/index.d.ts +483 -3
- package/dist/index.js +103 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -63,6 +63,16 @@ declare const COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET = "0x188321a7c9ca972cc6
|
|
|
63
63
|
declare const COLLECTION_1155_CLASS_HASH_MAINNET = "0x281e13803c906f20bbe158efb44b7a0273c56fdebbeeb55b2ba59530ddb1c80";
|
|
64
64
|
/** First mainnet block for the current ERC-1155 factory deployment. */
|
|
65
65
|
declare const COLLECTION_1155_START_BLOCK_MAINNET = 10045611;
|
|
66
|
+
/** Creator Coin Factory — entrypoint: create_creator_coin + launch_on_ekubo. */
|
|
67
|
+
declare const CREATOR_COIN_FACTORY_CONTRACT_MAINNET = "0x50fa807b5274079fb19374673d7bab6d2dc3af7e1032ea43eb6e44bcbde4c3c";
|
|
68
|
+
/** EkuboLauncher — permanently holds (locks) each Creator Coin's LP position. */
|
|
69
|
+
declare const CREATOR_COIN_EKUBO_LAUNCHER_MAINNET = "0x4f7fceb5ac10f12f9544a09580592e5bdf1b7f04f48765eecf12286d8ccb7b4";
|
|
70
|
+
/** Class hash of the per-coin CreatorCoin ERC-20 the Factory deploys. */
|
|
71
|
+
declare const CREATOR_COIN_CLASS_HASH_MAINNET = "0x743e4c8a5b96bb83bbf4af04edbbb482d5ece89eed9b729a79fb7df0cd0b6b6";
|
|
72
|
+
/** Class hash of the Creator Coin Factory. */
|
|
73
|
+
declare const CREATOR_COIN_FACTORY_CLASS_HASH_MAINNET = "0x51765926b1344c9a20b8cd4b5abe7b7d47375ae97cf6804db3ea5d4b05a9b55";
|
|
74
|
+
/** First mainnet block of the Factory deployment. */
|
|
75
|
+
declare const CREATOR_COIN_START_BLOCK_MAINNET = 10474544;
|
|
66
76
|
|
|
67
77
|
interface RetryOptions {
|
|
68
78
|
maxAttempts?: number;
|
|
@@ -423,7 +433,7 @@ type IPType = "Audio" | "Art" | "Documents" | "NFT" | "Video" | "Photography" |
|
|
|
423
433
|
type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name";
|
|
424
434
|
/** Bounded capability set (05-service-model §III). Expand the union when a
|
|
425
435
|
* service needs behavior outside it — never make it free-form. */
|
|
426
|
-
type ServiceCapability = "list" | "buy" | "make_offer" | "cancel" | "transfer" | "burn" | "mint" | "claim" | "airdrop" | "remix" | "license" | "subscribe" | "redeem";
|
|
436
|
+
type ServiceCapability = "list" | "buy" | "make_offer" | "cancel" | "transfer" | "burn" | "mint" | "claim" | "airdrop" | "remix" | "license" | "subscribe" | "redeem" | "launch" | "swap";
|
|
427
437
|
/** A service that bakes enforcement into its own contract declares it here
|
|
428
438
|
* (04-licensing-model §V, 05-service-model §IV). Absence/all-falsey =
|
|
429
439
|
* soft enforcement (the 00-principles §9 default). */
|
|
@@ -471,7 +481,7 @@ interface ServiceDefinition {
|
|
|
471
481
|
id: string;
|
|
472
482
|
displayName: string;
|
|
473
483
|
description: string;
|
|
474
|
-
standard: "ERC721" | "ERC1155" | "UNKNOWN";
|
|
484
|
+
standard: "ERC721" | "ERC1155" | "ERC20" | "UNKNOWN";
|
|
475
485
|
provenance: "MEDIALANE" | "EXTERNAL";
|
|
476
486
|
onchain?: {
|
|
477
487
|
factoryAddress?: string;
|
|
@@ -1557,6 +1567,76 @@ declare class ERC1155CollectionService {
|
|
|
1557
1567
|
}): Promise<TxResult>;
|
|
1558
1568
|
}
|
|
1559
1569
|
|
|
1570
|
+
interface CreateCreatorCoinParams {
|
|
1571
|
+
/** Owner of the new coin — the only address allowed to launch it. */
|
|
1572
|
+
owner: string;
|
|
1573
|
+
name: string;
|
|
1574
|
+
symbol: string;
|
|
1575
|
+
/** Full fixed supply (raw, 18 decimals). Minted to the Factory until launch. */
|
|
1576
|
+
initialSupply: bigint | string;
|
|
1577
|
+
/** Deterministic deploy salt. Defaults to a timestamp-derived value. */
|
|
1578
|
+
salt?: bigint | string;
|
|
1579
|
+
}
|
|
1580
|
+
/** Ekubo pool params (off-chain tick). The `startingPrice` is an Ekubo i129 tick. */
|
|
1581
|
+
interface EkuboPoolParams {
|
|
1582
|
+
fee: bigint | string;
|
|
1583
|
+
tickSpacing: bigint | string;
|
|
1584
|
+
startingPrice: {
|
|
1585
|
+
mag: bigint | string;
|
|
1586
|
+
sign: boolean;
|
|
1587
|
+
};
|
|
1588
|
+
bound: bigint | string;
|
|
1589
|
+
}
|
|
1590
|
+
interface EkuboLaunchParams {
|
|
1591
|
+
creatorCoin: string;
|
|
1592
|
+
/** Quote token (e.g. STRK). Must NOT itself be a Creator Coin. */
|
|
1593
|
+
quoteToken: string;
|
|
1594
|
+
/** Team-allocation recipients (≤10% of supply, summed). */
|
|
1595
|
+
initialHolders: string[];
|
|
1596
|
+
initialHoldersAmounts: (bigint | string)[];
|
|
1597
|
+
/** Anti-snipe window in seconds. 0 = none. */
|
|
1598
|
+
transferRestrictionDelay?: number;
|
|
1599
|
+
/** Max % of supply buyable per tx during the window, in bps (≥50 = 0.5%). */
|
|
1600
|
+
maxPercentageBuyLaunch?: number;
|
|
1601
|
+
/** Ekubo pool params. Defaults to {@link VALIDATED_EKUBO_PARAMS} (0.01 quote/coin). */
|
|
1602
|
+
ekubo?: EkuboPoolParams;
|
|
1603
|
+
/**
|
|
1604
|
+
* Quote (raw units) to transfer to the Factory in the same multicall, used to
|
|
1605
|
+
* buy the team allocation back out of the pool. Must cover
|
|
1606
|
+
* `sum(initialHoldersAmounts) × price` (leftover is returned to the caller).
|
|
1607
|
+
* If omitted, the Factory must already hold enough quote.
|
|
1608
|
+
*/
|
|
1609
|
+
quoteFundAmount?: bigint | string;
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Smoke-validated Ekubo params (mainnet 2026-06-04): 0.01 quote/coin for an
|
|
1613
|
+
* 18-decimal quote. `sign: true` yields 0.01 quote/coin regardless of token0/1
|
|
1614
|
+
* ordering — the launcher compensates internally.
|
|
1615
|
+
*
|
|
1616
|
+
* TODO: a `priceToEkuboParams(price, quoteDecimals, tickSpacing)` helper (port of
|
|
1617
|
+
* unrug's `ekubo/helpers.cairo` tick math) so callers can pick an arbitrary price.
|
|
1618
|
+
*/
|
|
1619
|
+
declare const VALIDATED_EKUBO_PARAMS: EkuboPoolParams;
|
|
1620
|
+
/**
|
|
1621
|
+
* On-chain Creator Coin interactions (Ekubo-only launchpad).
|
|
1622
|
+
* Faithful fork of unruggable.meme — permanent LP lock + team-allocation buyback.
|
|
1623
|
+
*/
|
|
1624
|
+
declare class CreatorCoinService {
|
|
1625
|
+
private readonly factoryAddress;
|
|
1626
|
+
constructor(_config: ResolvedConfig);
|
|
1627
|
+
private _factory;
|
|
1628
|
+
/** Deploy a fixed-supply CreatorCoin (full supply minted to the Factory). */
|
|
1629
|
+
createCreatorCoin(account: AccountInterface, params: CreateCreatorCoinParams): Promise<TxResult>;
|
|
1630
|
+
/**
|
|
1631
|
+
* Launch a coin on Ekubo (owner-only). Optionally pre-funds the Factory with
|
|
1632
|
+
* quote (for the buyback) in the same multicall. Liquidity is permanently
|
|
1633
|
+
* locked in the EkuboLauncher.
|
|
1634
|
+
*/
|
|
1635
|
+
launchOnEkubo(account: AccountInterface, params: EkuboLaunchParams): Promise<TxResult>;
|
|
1636
|
+
/** View: is this address a Factory-deployed Creator Coin? */
|
|
1637
|
+
isCreatorCoin(address: string, account: AccountInterface): Promise<boolean>;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1560
1640
|
declare class MedialaneClient {
|
|
1561
1641
|
/** On-chain marketplace interactions for ERC-721 assets (create listing, fulfill order, etc.) */
|
|
1562
1642
|
readonly marketplace: MarketplaceModule;
|
|
@@ -1571,6 +1651,7 @@ declare class MedialaneClient {
|
|
|
1571
1651
|
readonly pop: PopService;
|
|
1572
1652
|
readonly drop: DropService;
|
|
1573
1653
|
readonly erc1155Collection: ERC1155CollectionService;
|
|
1654
|
+
readonly creatorCoin: CreatorCoinService;
|
|
1574
1655
|
};
|
|
1575
1656
|
private readonly config;
|
|
1576
1657
|
constructor(rawConfig?: MedialaneConfig);
|
|
@@ -5074,6 +5155,384 @@ declare const IPNftABI: readonly [{
|
|
|
5074
5155
|
}];
|
|
5075
5156
|
}];
|
|
5076
5157
|
|
|
5158
|
+
declare const CreatorCoinFactoryABI: readonly [{
|
|
5159
|
+
readonly type: "impl";
|
|
5160
|
+
readonly name: "FactoryImpl";
|
|
5161
|
+
readonly interface_name: "creator_coin::factory::interface::IFactory";
|
|
5162
|
+
}, {
|
|
5163
|
+
readonly type: "struct";
|
|
5164
|
+
readonly name: "core::integer::u256";
|
|
5165
|
+
readonly members: readonly [{
|
|
5166
|
+
readonly name: "low";
|
|
5167
|
+
readonly type: "core::integer::u128";
|
|
5168
|
+
}, {
|
|
5169
|
+
readonly name: "high";
|
|
5170
|
+
readonly type: "core::integer::u128";
|
|
5171
|
+
}];
|
|
5172
|
+
}, {
|
|
5173
|
+
readonly type: "struct";
|
|
5174
|
+
readonly name: "core::array::Span::<core::starknet::contract_address::ContractAddress>";
|
|
5175
|
+
readonly members: readonly [{
|
|
5176
|
+
readonly name: "snapshot";
|
|
5177
|
+
readonly type: "@core::array::Array::<core::starknet::contract_address::ContractAddress>";
|
|
5178
|
+
}];
|
|
5179
|
+
}, {
|
|
5180
|
+
readonly type: "struct";
|
|
5181
|
+
readonly name: "core::array::Span::<core::integer::u256>";
|
|
5182
|
+
readonly members: readonly [{
|
|
5183
|
+
readonly name: "snapshot";
|
|
5184
|
+
readonly type: "@core::array::Array::<core::integer::u256>";
|
|
5185
|
+
}];
|
|
5186
|
+
}, {
|
|
5187
|
+
readonly type: "struct";
|
|
5188
|
+
readonly name: "creator_coin::factory::LaunchParameters";
|
|
5189
|
+
readonly members: readonly [{
|
|
5190
|
+
readonly name: "creator_coin_address";
|
|
5191
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5192
|
+
}, {
|
|
5193
|
+
readonly name: "transfer_restriction_delay";
|
|
5194
|
+
readonly type: "core::integer::u64";
|
|
5195
|
+
}, {
|
|
5196
|
+
readonly name: "max_percentage_buy_launch";
|
|
5197
|
+
readonly type: "core::integer::u16";
|
|
5198
|
+
}, {
|
|
5199
|
+
readonly name: "quote_address";
|
|
5200
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5201
|
+
}, {
|
|
5202
|
+
readonly name: "initial_holders";
|
|
5203
|
+
readonly type: "core::array::Span::<core::starknet::contract_address::ContractAddress>";
|
|
5204
|
+
}, {
|
|
5205
|
+
readonly name: "initial_holders_amounts";
|
|
5206
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
5207
|
+
}];
|
|
5208
|
+
}, {
|
|
5209
|
+
readonly type: "enum";
|
|
5210
|
+
readonly name: "core::bool";
|
|
5211
|
+
readonly variants: readonly [{
|
|
5212
|
+
readonly name: "False";
|
|
5213
|
+
readonly type: "()";
|
|
5214
|
+
}, {
|
|
5215
|
+
readonly name: "True";
|
|
5216
|
+
readonly type: "()";
|
|
5217
|
+
}];
|
|
5218
|
+
}, {
|
|
5219
|
+
readonly type: "struct";
|
|
5220
|
+
readonly name: "ekubo::types::i129::i129";
|
|
5221
|
+
readonly members: readonly [{
|
|
5222
|
+
readonly name: "mag";
|
|
5223
|
+
readonly type: "core::integer::u128";
|
|
5224
|
+
}, {
|
|
5225
|
+
readonly name: "sign";
|
|
5226
|
+
readonly type: "core::bool";
|
|
5227
|
+
}];
|
|
5228
|
+
}, {
|
|
5229
|
+
readonly type: "struct";
|
|
5230
|
+
readonly name: "creator_coin::exchanges::ekubo::ekubo_adapter::EkuboPoolParameters";
|
|
5231
|
+
readonly members: readonly [{
|
|
5232
|
+
readonly name: "fee";
|
|
5233
|
+
readonly type: "core::integer::u128";
|
|
5234
|
+
}, {
|
|
5235
|
+
readonly name: "tick_spacing";
|
|
5236
|
+
readonly type: "core::integer::u128";
|
|
5237
|
+
}, {
|
|
5238
|
+
readonly name: "starting_price";
|
|
5239
|
+
readonly type: "ekubo::types::i129::i129";
|
|
5240
|
+
}, {
|
|
5241
|
+
readonly name: "bound";
|
|
5242
|
+
readonly type: "core::integer::u128";
|
|
5243
|
+
}];
|
|
5244
|
+
}, {
|
|
5245
|
+
readonly type: "struct";
|
|
5246
|
+
readonly name: "ekubo::types::keys::PoolKey";
|
|
5247
|
+
readonly members: readonly [{
|
|
5248
|
+
readonly name: "token0";
|
|
5249
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5250
|
+
}, {
|
|
5251
|
+
readonly name: "token1";
|
|
5252
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5253
|
+
}, {
|
|
5254
|
+
readonly name: "fee";
|
|
5255
|
+
readonly type: "core::integer::u128";
|
|
5256
|
+
}, {
|
|
5257
|
+
readonly name: "tick_spacing";
|
|
5258
|
+
readonly type: "core::integer::u128";
|
|
5259
|
+
}, {
|
|
5260
|
+
readonly name: "extension";
|
|
5261
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5262
|
+
}];
|
|
5263
|
+
}, {
|
|
5264
|
+
readonly type: "struct";
|
|
5265
|
+
readonly name: "ekubo::types::bounds::Bounds";
|
|
5266
|
+
readonly members: readonly [{
|
|
5267
|
+
readonly name: "lower";
|
|
5268
|
+
readonly type: "ekubo::types::i129::i129";
|
|
5269
|
+
}, {
|
|
5270
|
+
readonly name: "upper";
|
|
5271
|
+
readonly type: "ekubo::types::i129::i129";
|
|
5272
|
+
}];
|
|
5273
|
+
}, {
|
|
5274
|
+
readonly type: "struct";
|
|
5275
|
+
readonly name: "creator_coin::exchanges::ekubo::launcher::EkuboLP";
|
|
5276
|
+
readonly members: readonly [{
|
|
5277
|
+
readonly name: "owner";
|
|
5278
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5279
|
+
}, {
|
|
5280
|
+
readonly name: "quote_address";
|
|
5281
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5282
|
+
}, {
|
|
5283
|
+
readonly name: "pool_key";
|
|
5284
|
+
readonly type: "ekubo::types::keys::PoolKey";
|
|
5285
|
+
}, {
|
|
5286
|
+
readonly name: "bounds";
|
|
5287
|
+
readonly type: "ekubo::types::bounds::Bounds";
|
|
5288
|
+
}];
|
|
5289
|
+
}, {
|
|
5290
|
+
readonly type: "enum";
|
|
5291
|
+
readonly name: "creator_coin::exchanges::SupportedExchanges";
|
|
5292
|
+
readonly variants: readonly [{
|
|
5293
|
+
readonly name: "Jediswap";
|
|
5294
|
+
readonly type: "()";
|
|
5295
|
+
}, {
|
|
5296
|
+
readonly name: "Ekubo";
|
|
5297
|
+
readonly type: "()";
|
|
5298
|
+
}, {
|
|
5299
|
+
readonly name: "Starkdefi";
|
|
5300
|
+
readonly type: "()";
|
|
5301
|
+
}];
|
|
5302
|
+
}, {
|
|
5303
|
+
readonly type: "enum";
|
|
5304
|
+
readonly name: "creator_coin::token::creator_coin::LiquidityType";
|
|
5305
|
+
readonly variants: readonly [{
|
|
5306
|
+
readonly name: "JediERC20";
|
|
5307
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5308
|
+
}, {
|
|
5309
|
+
readonly name: "StarkDeFiERC20";
|
|
5310
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5311
|
+
}, {
|
|
5312
|
+
readonly name: "EkuboNFT";
|
|
5313
|
+
readonly type: "core::integer::u64";
|
|
5314
|
+
}];
|
|
5315
|
+
}, {
|
|
5316
|
+
readonly type: "enum";
|
|
5317
|
+
readonly name: "core::option::Option::<(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)>";
|
|
5318
|
+
readonly variants: readonly [{
|
|
5319
|
+
readonly name: "Some";
|
|
5320
|
+
readonly type: "(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)";
|
|
5321
|
+
}, {
|
|
5322
|
+
readonly name: "None";
|
|
5323
|
+
readonly type: "()";
|
|
5324
|
+
}];
|
|
5325
|
+
}, {
|
|
5326
|
+
readonly type: "interface";
|
|
5327
|
+
readonly name: "creator_coin::factory::interface::IFactory";
|
|
5328
|
+
readonly items: readonly [{
|
|
5329
|
+
readonly type: "function";
|
|
5330
|
+
readonly name: "create_creator_coin";
|
|
5331
|
+
readonly inputs: readonly [{
|
|
5332
|
+
readonly name: "owner";
|
|
5333
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5334
|
+
}, {
|
|
5335
|
+
readonly name: "name";
|
|
5336
|
+
readonly type: "core::felt252";
|
|
5337
|
+
}, {
|
|
5338
|
+
readonly name: "symbol";
|
|
5339
|
+
readonly type: "core::felt252";
|
|
5340
|
+
}, {
|
|
5341
|
+
readonly name: "initial_supply";
|
|
5342
|
+
readonly type: "core::integer::u256";
|
|
5343
|
+
}, {
|
|
5344
|
+
readonly name: "contract_address_salt";
|
|
5345
|
+
readonly type: "core::felt252";
|
|
5346
|
+
}];
|
|
5347
|
+
readonly outputs: readonly [{
|
|
5348
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5349
|
+
}];
|
|
5350
|
+
readonly state_mutability: "external";
|
|
5351
|
+
}, {
|
|
5352
|
+
readonly type: "function";
|
|
5353
|
+
readonly name: "launch_on_jediswap";
|
|
5354
|
+
readonly inputs: readonly [{
|
|
5355
|
+
readonly name: "launch_parameters";
|
|
5356
|
+
readonly type: "creator_coin::factory::LaunchParameters";
|
|
5357
|
+
}, {
|
|
5358
|
+
readonly name: "quote_amount";
|
|
5359
|
+
readonly type: "core::integer::u256";
|
|
5360
|
+
}, {
|
|
5361
|
+
readonly name: "unlock_time";
|
|
5362
|
+
readonly type: "core::integer::u64";
|
|
5363
|
+
}];
|
|
5364
|
+
readonly outputs: readonly [{
|
|
5365
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5366
|
+
}];
|
|
5367
|
+
readonly state_mutability: "external";
|
|
5368
|
+
}, {
|
|
5369
|
+
readonly type: "function";
|
|
5370
|
+
readonly name: "launch_on_ekubo";
|
|
5371
|
+
readonly inputs: readonly [{
|
|
5372
|
+
readonly name: "launch_parameters";
|
|
5373
|
+
readonly type: "creator_coin::factory::LaunchParameters";
|
|
5374
|
+
}, {
|
|
5375
|
+
readonly name: "ekubo_parameters";
|
|
5376
|
+
readonly type: "creator_coin::exchanges::ekubo::ekubo_adapter::EkuboPoolParameters";
|
|
5377
|
+
}];
|
|
5378
|
+
readonly outputs: readonly [{
|
|
5379
|
+
readonly type: "(core::integer::u64, creator_coin::exchanges::ekubo::launcher::EkuboLP)";
|
|
5380
|
+
}];
|
|
5381
|
+
readonly state_mutability: "external";
|
|
5382
|
+
}, {
|
|
5383
|
+
readonly type: "function";
|
|
5384
|
+
readonly name: "launch_on_starkdefi";
|
|
5385
|
+
readonly inputs: readonly [{
|
|
5386
|
+
readonly name: "launch_parameters";
|
|
5387
|
+
readonly type: "creator_coin::factory::LaunchParameters";
|
|
5388
|
+
}, {
|
|
5389
|
+
readonly name: "quote_amount";
|
|
5390
|
+
readonly type: "core::integer::u256";
|
|
5391
|
+
}, {
|
|
5392
|
+
readonly name: "unlock_time";
|
|
5393
|
+
readonly type: "core::integer::u64";
|
|
5394
|
+
}];
|
|
5395
|
+
readonly outputs: readonly [{
|
|
5396
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5397
|
+
}];
|
|
5398
|
+
readonly state_mutability: "external";
|
|
5399
|
+
}, {
|
|
5400
|
+
readonly type: "function";
|
|
5401
|
+
readonly name: "exchange_address";
|
|
5402
|
+
readonly inputs: readonly [{
|
|
5403
|
+
readonly name: "exchange";
|
|
5404
|
+
readonly type: "creator_coin::exchanges::SupportedExchanges";
|
|
5405
|
+
}];
|
|
5406
|
+
readonly outputs: readonly [{
|
|
5407
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5408
|
+
}];
|
|
5409
|
+
readonly state_mutability: "view";
|
|
5410
|
+
}, {
|
|
5411
|
+
readonly type: "function";
|
|
5412
|
+
readonly name: "lock_manager_address";
|
|
5413
|
+
readonly inputs: readonly [];
|
|
5414
|
+
readonly outputs: readonly [{
|
|
5415
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5416
|
+
}];
|
|
5417
|
+
readonly state_mutability: "view";
|
|
5418
|
+
}, {
|
|
5419
|
+
readonly type: "function";
|
|
5420
|
+
readonly name: "locked_liquidity";
|
|
5421
|
+
readonly inputs: readonly [{
|
|
5422
|
+
readonly name: "token";
|
|
5423
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5424
|
+
}];
|
|
5425
|
+
readonly outputs: readonly [{
|
|
5426
|
+
readonly type: "core::option::Option::<(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)>";
|
|
5427
|
+
}];
|
|
5428
|
+
readonly state_mutability: "view";
|
|
5429
|
+
}, {
|
|
5430
|
+
readonly type: "function";
|
|
5431
|
+
readonly name: "is_creator_coin";
|
|
5432
|
+
readonly inputs: readonly [{
|
|
5433
|
+
readonly name: "address";
|
|
5434
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5435
|
+
}];
|
|
5436
|
+
readonly outputs: readonly [{
|
|
5437
|
+
readonly type: "core::bool";
|
|
5438
|
+
}];
|
|
5439
|
+
readonly state_mutability: "view";
|
|
5440
|
+
}, {
|
|
5441
|
+
readonly type: "function";
|
|
5442
|
+
readonly name: "ekubo_core_address";
|
|
5443
|
+
readonly inputs: readonly [];
|
|
5444
|
+
readonly outputs: readonly [{
|
|
5445
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5446
|
+
}];
|
|
5447
|
+
readonly state_mutability: "view";
|
|
5448
|
+
}];
|
|
5449
|
+
}, {
|
|
5450
|
+
readonly type: "struct";
|
|
5451
|
+
readonly name: "core::array::Span::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>";
|
|
5452
|
+
readonly members: readonly [{
|
|
5453
|
+
readonly name: "snapshot";
|
|
5454
|
+
readonly type: "@core::array::Array::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>";
|
|
5455
|
+
}];
|
|
5456
|
+
}, {
|
|
5457
|
+
readonly type: "struct";
|
|
5458
|
+
readonly name: "core::array::Span::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>";
|
|
5459
|
+
readonly members: readonly [{
|
|
5460
|
+
readonly name: "snapshot";
|
|
5461
|
+
readonly type: "@core::array::Array::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>";
|
|
5462
|
+
}];
|
|
5463
|
+
}, {
|
|
5464
|
+
readonly type: "constructor";
|
|
5465
|
+
readonly name: "constructor";
|
|
5466
|
+
readonly inputs: readonly [{
|
|
5467
|
+
readonly name: "creator_coin_class_hash";
|
|
5468
|
+
readonly type: "core::starknet::class_hash::ClassHash";
|
|
5469
|
+
}, {
|
|
5470
|
+
readonly name: "lock_manager_address";
|
|
5471
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5472
|
+
}, {
|
|
5473
|
+
readonly name: "exchanges";
|
|
5474
|
+
readonly type: "core::array::Span::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>";
|
|
5475
|
+
}, {
|
|
5476
|
+
readonly name: "migrated_tokens";
|
|
5477
|
+
readonly type: "core::array::Span::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>";
|
|
5478
|
+
}];
|
|
5479
|
+
}, {
|
|
5480
|
+
readonly type: "event";
|
|
5481
|
+
readonly name: "creator_coin::factory::factory::Factory::CreatorCoinCreated";
|
|
5482
|
+
readonly kind: "struct";
|
|
5483
|
+
readonly members: readonly [{
|
|
5484
|
+
readonly name: "owner";
|
|
5485
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5486
|
+
readonly kind: "data";
|
|
5487
|
+
}, {
|
|
5488
|
+
readonly name: "name";
|
|
5489
|
+
readonly type: "core::felt252";
|
|
5490
|
+
readonly kind: "data";
|
|
5491
|
+
}, {
|
|
5492
|
+
readonly name: "symbol";
|
|
5493
|
+
readonly type: "core::felt252";
|
|
5494
|
+
readonly kind: "data";
|
|
5495
|
+
}, {
|
|
5496
|
+
readonly name: "initial_supply";
|
|
5497
|
+
readonly type: "core::integer::u256";
|
|
5498
|
+
readonly kind: "data";
|
|
5499
|
+
}, {
|
|
5500
|
+
readonly name: "creator_coin_address";
|
|
5501
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5502
|
+
readonly kind: "data";
|
|
5503
|
+
}];
|
|
5504
|
+
}, {
|
|
5505
|
+
readonly type: "event";
|
|
5506
|
+
readonly name: "creator_coin::factory::factory::Factory::CreatorCoinLaunched";
|
|
5507
|
+
readonly kind: "struct";
|
|
5508
|
+
readonly members: readonly [{
|
|
5509
|
+
readonly name: "creator_coin_address";
|
|
5510
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5511
|
+
readonly kind: "data";
|
|
5512
|
+
}, {
|
|
5513
|
+
readonly name: "quote_token";
|
|
5514
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5515
|
+
readonly kind: "data";
|
|
5516
|
+
}, {
|
|
5517
|
+
readonly name: "exchange_name";
|
|
5518
|
+
readonly type: "core::felt252";
|
|
5519
|
+
readonly kind: "data";
|
|
5520
|
+
}];
|
|
5521
|
+
}, {
|
|
5522
|
+
readonly type: "event";
|
|
5523
|
+
readonly name: "creator_coin::factory::factory::Factory::Event";
|
|
5524
|
+
readonly kind: "enum";
|
|
5525
|
+
readonly variants: readonly [{
|
|
5526
|
+
readonly name: "CreatorCoinCreated";
|
|
5527
|
+
readonly type: "creator_coin::factory::factory::Factory::CreatorCoinCreated";
|
|
5528
|
+
readonly kind: "nested";
|
|
5529
|
+
}, {
|
|
5530
|
+
readonly name: "CreatorCoinLaunched";
|
|
5531
|
+
readonly type: "creator_coin::factory::factory::Factory::CreatorCoinLaunched";
|
|
5532
|
+
readonly kind: "nested";
|
|
5533
|
+
}];
|
|
5534
|
+
}];
|
|
5535
|
+
|
|
5077
5536
|
/**
|
|
5078
5537
|
* The Medialane service registry (05-service-model §II, §VI).
|
|
5079
5538
|
* Canonical long-form IDs (01-core-model §III). SDK-resident in v1;
|
|
@@ -5188,6 +5647,27 @@ declare const SERVICES: {
|
|
|
5188
5647
|
readonly licenseDefault: "CC BY-SA";
|
|
5189
5648
|
};
|
|
5190
5649
|
};
|
|
5650
|
+
readonly "creator-coin": {
|
|
5651
|
+
readonly id: "creator-coin";
|
|
5652
|
+
readonly displayName: "Creator Coin";
|
|
5653
|
+
readonly description: "Launch a fixed-supply social token with permanently-locked Ekubo liquidity.";
|
|
5654
|
+
readonly standard: "ERC20";
|
|
5655
|
+
readonly provenance: "MEDIALANE";
|
|
5656
|
+
readonly onchain: {
|
|
5657
|
+
readonly factoryAddress: "0x50fa807b5274079fb19374673d7bab6d2dc3af7e1032ea43eb6e44bcbde4c3c";
|
|
5658
|
+
readonly classHash: "0x51765926b1344c9a20b8cd4b5abe7b7d47375ae97cf6804db3ea5d4b05a9b55";
|
|
5659
|
+
readonly startBlock: 10474544;
|
|
5660
|
+
};
|
|
5661
|
+
readonly uiVariant: "coin";
|
|
5662
|
+
readonly capabilities: ["launch", "swap", "transfer"];
|
|
5663
|
+
readonly events: [{
|
|
5664
|
+
readonly name: "CreatorCoinCreated";
|
|
5665
|
+
readonly emittedBy: "factory";
|
|
5666
|
+
}, {
|
|
5667
|
+
readonly name: "CreatorCoinLaunched";
|
|
5668
|
+
readonly emittedBy: "factory";
|
|
5669
|
+
}];
|
|
5670
|
+
};
|
|
5191
5671
|
readonly "medialane-marketplace-erc721": {
|
|
5192
5672
|
readonly id: "medialane-marketplace-erc721";
|
|
5193
5673
|
readonly displayName: "Medialane Marketplace (ERC-721)";
|
|
@@ -5416,4 +5896,4 @@ declare function build1155OrderTypedData(message: Record<string, unknown>, chain
|
|
|
5416
5896
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5417
5897
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5418
5898
|
|
|
5419
|
-
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, type ApiChain, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWalletType, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, type BuildFeeCallParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET, COLLECTION_1155_START_BLOCK_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_721_START_BLOCK_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, type EnforcementDeclaration, type FailoverFetchOptions, type FeeConfig, FeeConfigSchema, type FeeSurface, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, type IPType, type IntentCall, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, PUBLIC_RPC_FALLBACKS, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type ResolvedFeeConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type ServiceEventDeclaration, type ServiceId, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildOrderTypedData, createFailoverFetch, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
|
5899
|
+
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, type ApiChain, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWalletType, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, type BuildFeeCallParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET, COLLECTION_1155_START_BLOCK_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_721_START_BLOCK_MAINNET, CREATOR_COIN_CLASS_HASH_MAINNET, CREATOR_COIN_EKUBO_LAUNCHER_MAINNET, CREATOR_COIN_FACTORY_CLASS_HASH_MAINNET, CREATOR_COIN_FACTORY_CONTRACT_MAINNET, CREATOR_COIN_START_BLOCK_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateCreatorCoinParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, CreatorCoinFactoryABI, CreatorCoinService, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EnforcementDeclaration, type FailoverFetchOptions, type FeeConfig, FeeConfigSchema, type FeeSurface, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, type IPType, type IntentCall, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, PUBLIC_RPC_FALLBACKS, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type ResolvedFeeConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type ServiceEventDeclaration, type ServiceId, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, VALIDATED_EKUBO_PARAMS, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildOrderTypedData, createFailoverFetch, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|