@medialane/sdk 0.28.0 → 0.30.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 +153 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +518 -4
- package/dist/index.d.ts +518 -4
- package/dist/index.js +145 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { cairo, num, Contract, TypedDataRevision, shortString, constants
|
|
2
|
+
import { cairo, num, Contract, uint256, RpcProvider, TypedDataRevision, shortString, constants } from 'starknet';
|
|
3
3
|
|
|
4
4
|
// src/config.ts
|
|
5
5
|
|
|
@@ -59,6 +59,12 @@ var COLLECTION_1155_CONTRACT_MAINNET = "0x067064adcaaed61e17bf50ea802ea648233612
|
|
|
59
59
|
var COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET = "0x188321a7c9ca972cc63e352e3b3a4cdf33781852d957f4b4b62249310fe4c75";
|
|
60
60
|
var COLLECTION_1155_CLASS_HASH_MAINNET = "0x281e13803c906f20bbe158efb44b7a0273c56fdebbeeb55b2ba59530ddb1c80";
|
|
61
61
|
var COLLECTION_1155_START_BLOCK_MAINNET = 10045611;
|
|
62
|
+
var CREATOR_COIN_FACTORY_CONTRACT_MAINNET = "0x50fa807b5274079fb19374673d7bab6d2dc3af7e1032ea43eb6e44bcbde4c3c";
|
|
63
|
+
var CREATOR_COIN_EKUBO_LAUNCHER_MAINNET = "0x4f7fceb5ac10f12f9544a09580592e5bdf1b7f04f48765eecf12286d8ccb7b4";
|
|
64
|
+
var CREATOR_COIN_CLASS_HASH_MAINNET = "0x743e4c8a5b96bb83bbf4af04edbbb482d5ece89eed9b729a79fb7df0cd0b6b6";
|
|
65
|
+
var CREATOR_COIN_FACTORY_CLASS_HASH_MAINNET = "0x51765926b1344c9a20b8cd4b5abe7b7d47375ae97cf6804db3ea5d4b05a9b55";
|
|
66
|
+
var CREATOR_COIN_START_BLOCK_MAINNET = 10474544;
|
|
67
|
+
var EKUBO_CORE_MAINNET = "0x00000005dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b";
|
|
62
68
|
var FeeConfigSchema = z.object({
|
|
63
69
|
enabled: z.boolean().default(true),
|
|
64
70
|
fundAddress: z.string().min(1).optional(),
|
|
@@ -4627,6 +4633,9 @@ var IPNftABI = [
|
|
|
4627
4633
|
}
|
|
4628
4634
|
];
|
|
4629
4635
|
|
|
4636
|
+
// src/abis/creatorCoinFactory.ts
|
|
4637
|
+
var CreatorCoinFactoryABI = [{ "type": "impl", "name": "FactoryImpl", "interface_name": "creator_coin::factory::interface::IFactory" }, { "type": "struct", "name": "core::integer::u256", "members": [{ "name": "low", "type": "core::integer::u128" }, { "name": "high", "type": "core::integer::u128" }] }, { "type": "struct", "name": "core::array::Span::<core::starknet::contract_address::ContractAddress>", "members": [{ "name": "snapshot", "type": "@core::array::Array::<core::starknet::contract_address::ContractAddress>" }] }, { "type": "struct", "name": "core::array::Span::<core::integer::u256>", "members": [{ "name": "snapshot", "type": "@core::array::Array::<core::integer::u256>" }] }, { "type": "struct", "name": "creator_coin::factory::LaunchParameters", "members": [{ "name": "creator_coin_address", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "transfer_restriction_delay", "type": "core::integer::u64" }, { "name": "max_percentage_buy_launch", "type": "core::integer::u16" }, { "name": "quote_address", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "initial_holders", "type": "core::array::Span::<core::starknet::contract_address::ContractAddress>" }, { "name": "initial_holders_amounts", "type": "core::array::Span::<core::integer::u256>" }] }, { "type": "enum", "name": "core::bool", "variants": [{ "name": "False", "type": "()" }, { "name": "True", "type": "()" }] }, { "type": "struct", "name": "ekubo::types::i129::i129", "members": [{ "name": "mag", "type": "core::integer::u128" }, { "name": "sign", "type": "core::bool" }] }, { "type": "struct", "name": "creator_coin::exchanges::ekubo::ekubo_adapter::EkuboPoolParameters", "members": [{ "name": "fee", "type": "core::integer::u128" }, { "name": "tick_spacing", "type": "core::integer::u128" }, { "name": "starting_price", "type": "ekubo::types::i129::i129" }, { "name": "bound", "type": "core::integer::u128" }] }, { "type": "struct", "name": "ekubo::types::keys::PoolKey", "members": [{ "name": "token0", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "token1", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "fee", "type": "core::integer::u128" }, { "name": "tick_spacing", "type": "core::integer::u128" }, { "name": "extension", "type": "core::starknet::contract_address::ContractAddress" }] }, { "type": "struct", "name": "ekubo::types::bounds::Bounds", "members": [{ "name": "lower", "type": "ekubo::types::i129::i129" }, { "name": "upper", "type": "ekubo::types::i129::i129" }] }, { "type": "struct", "name": "creator_coin::exchanges::ekubo::launcher::EkuboLP", "members": [{ "name": "owner", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "quote_address", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "pool_key", "type": "ekubo::types::keys::PoolKey" }, { "name": "bounds", "type": "ekubo::types::bounds::Bounds" }] }, { "type": "enum", "name": "creator_coin::exchanges::SupportedExchanges", "variants": [{ "name": "Jediswap", "type": "()" }, { "name": "Ekubo", "type": "()" }, { "name": "Starkdefi", "type": "()" }] }, { "type": "enum", "name": "creator_coin::token::creator_coin::LiquidityType", "variants": [{ "name": "JediERC20", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "StarkDeFiERC20", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "EkuboNFT", "type": "core::integer::u64" }] }, { "type": "enum", "name": "core::option::Option::<(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)>", "variants": [{ "name": "Some", "type": "(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)" }, { "name": "None", "type": "()" }] }, { "type": "interface", "name": "creator_coin::factory::interface::IFactory", "items": [{ "type": "function", "name": "create_creator_coin", "inputs": [{ "name": "owner", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "name", "type": "core::felt252" }, { "name": "symbol", "type": "core::felt252" }, { "name": "initial_supply", "type": "core::integer::u256" }, { "name": "contract_address_salt", "type": "core::felt252" }], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "external" }, { "type": "function", "name": "launch_on_jediswap", "inputs": [{ "name": "launch_parameters", "type": "creator_coin::factory::LaunchParameters" }, { "name": "quote_amount", "type": "core::integer::u256" }, { "name": "unlock_time", "type": "core::integer::u64" }], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "external" }, { "type": "function", "name": "launch_on_ekubo", "inputs": [{ "name": "launch_parameters", "type": "creator_coin::factory::LaunchParameters" }, { "name": "ekubo_parameters", "type": "creator_coin::exchanges::ekubo::ekubo_adapter::EkuboPoolParameters" }], "outputs": [{ "type": "(core::integer::u64, creator_coin::exchanges::ekubo::launcher::EkuboLP)" }], "state_mutability": "external" }, { "type": "function", "name": "launch_on_starkdefi", "inputs": [{ "name": "launch_parameters", "type": "creator_coin::factory::LaunchParameters" }, { "name": "quote_amount", "type": "core::integer::u256" }, { "name": "unlock_time", "type": "core::integer::u64" }], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "external" }, { "type": "function", "name": "exchange_address", "inputs": [{ "name": "exchange", "type": "creator_coin::exchanges::SupportedExchanges" }], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "view" }, { "type": "function", "name": "lock_manager_address", "inputs": [], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "view" }, { "type": "function", "name": "locked_liquidity", "inputs": [{ "name": "token", "type": "core::starknet::contract_address::ContractAddress" }], "outputs": [{ "type": "core::option::Option::<(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)>" }], "state_mutability": "view" }, { "type": "function", "name": "is_creator_coin", "inputs": [{ "name": "address", "type": "core::starknet::contract_address::ContractAddress" }], "outputs": [{ "type": "core::bool" }], "state_mutability": "view" }, { "type": "function", "name": "ekubo_core_address", "inputs": [], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "view" }] }, { "type": "struct", "name": "core::array::Span::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>", "members": [{ "name": "snapshot", "type": "@core::array::Array::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>" }] }, { "type": "struct", "name": "core::array::Span::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>", "members": [{ "name": "snapshot", "type": "@core::array::Array::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>" }] }, { "type": "constructor", "name": "constructor", "inputs": [{ "name": "creator_coin_class_hash", "type": "core::starknet::class_hash::ClassHash" }, { "name": "lock_manager_address", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "exchanges", "type": "core::array::Span::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>" }, { "name": "migrated_tokens", "type": "core::array::Span::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>" }] }, { "type": "event", "name": "creator_coin::factory::factory::Factory::CreatorCoinCreated", "kind": "struct", "members": [{ "name": "owner", "type": "core::starknet::contract_address::ContractAddress", "kind": "data" }, { "name": "name", "type": "core::felt252", "kind": "data" }, { "name": "symbol", "type": "core::felt252", "kind": "data" }, { "name": "initial_supply", "type": "core::integer::u256", "kind": "data" }, { "name": "creator_coin_address", "type": "core::starknet::contract_address::ContractAddress", "kind": "data" }] }, { "type": "event", "name": "creator_coin::factory::factory::Factory::CreatorCoinLaunched", "kind": "struct", "members": [{ "name": "creator_coin_address", "type": "core::starknet::contract_address::ContractAddress", "kind": "data" }, { "name": "quote_token", "type": "core::starknet::contract_address::ContractAddress", "kind": "data" }, { "name": "exchange_name", "type": "core::felt252", "kind": "data" }] }, { "type": "event", "name": "creator_coin::factory::factory::Factory::Event", "kind": "enum", "variants": [{ "name": "CreatorCoinCreated", "type": "creator_coin::factory::factory::Factory::CreatorCoinCreated", "kind": "nested" }, { "name": "CreatorCoinLaunched", "type": "creator_coin::factory::factory::Factory::CreatorCoinLaunched", "kind": "nested" }] }];
|
|
4638
|
+
|
|
4630
4639
|
// src/utils/bigint.ts
|
|
4631
4640
|
function stringifyBigInts(obj) {
|
|
4632
4641
|
if (typeof obj === "bigint") {
|
|
@@ -6368,6 +6377,107 @@ var ERC1155CollectionService = class {
|
|
|
6368
6377
|
return { txHash: res.transaction_hash };
|
|
6369
6378
|
}
|
|
6370
6379
|
};
|
|
6380
|
+
var VALIDATED_EKUBO_PARAMS = {
|
|
6381
|
+
fee: "0xc49ba5e353f7d00000000000000000",
|
|
6382
|
+
tickSpacing: 5982n,
|
|
6383
|
+
startingPrice: { mag: 4600158n, sign: true },
|
|
6384
|
+
bound: 88719042n
|
|
6385
|
+
};
|
|
6386
|
+
var COIN_DECIMALS = 18;
|
|
6387
|
+
async function getCreatorCoinPrice(coinAddress, provider) {
|
|
6388
|
+
const r = await provider.callContract({
|
|
6389
|
+
contractAddress: coinAddress,
|
|
6390
|
+
entrypoint: "launched_with_liquidity_parameters",
|
|
6391
|
+
calldata: []
|
|
6392
|
+
});
|
|
6393
|
+
if (BigInt(r[0]) !== 0n || BigInt(r[1]) !== 0n) return null;
|
|
6394
|
+
const fee = r[2];
|
|
6395
|
+
const tickSpacing = r[3];
|
|
6396
|
+
const quoteToken = normalizeAddress("0x" + BigInt(r[7]).toString(16));
|
|
6397
|
+
const token = getTokenByAddress(quoteToken);
|
|
6398
|
+
const quoteDecimals = token?.decimals ?? 18;
|
|
6399
|
+
const ci = BigInt(coinAddress);
|
|
6400
|
+
const qi = BigInt(quoteToken);
|
|
6401
|
+
const [t0, t1] = ci < qi ? [coinAddress, quoteToken] : [quoteToken, coinAddress];
|
|
6402
|
+
const quoteIsToken0 = qi === BigInt(t0);
|
|
6403
|
+
const pp = await provider.callContract({
|
|
6404
|
+
contractAddress: EKUBO_CORE_MAINNET,
|
|
6405
|
+
entrypoint: "get_pool_price",
|
|
6406
|
+
calldata: [t0, t1, fee, tickSpacing, "0x0"]
|
|
6407
|
+
});
|
|
6408
|
+
const sqrt = BigInt(pp[0]) + (BigInt(pp[1] ?? "0x0") << 128n);
|
|
6409
|
+
const priceT1perT0 = (Number(sqrt) / 2 ** 128) ** 2;
|
|
6410
|
+
const decAdj = 10 ** (COIN_DECIMALS - quoteDecimals);
|
|
6411
|
+
const quotePerCoin = (quoteIsToken0 ? 1 / priceT1perT0 : priceT1perT0) * decAdj;
|
|
6412
|
+
return { quotePerCoin, quoteToken, quoteSymbol: token?.symbol ?? null, quoteDecimals };
|
|
6413
|
+
}
|
|
6414
|
+
var CreatorCoinService = class {
|
|
6415
|
+
constructor(config) {
|
|
6416
|
+
this.factoryAddress = CREATOR_COIN_FACTORY_CONTRACT_MAINNET;
|
|
6417
|
+
this.config = config;
|
|
6418
|
+
}
|
|
6419
|
+
_factory(account) {
|
|
6420
|
+
return new Contract(CreatorCoinFactoryABI, this.factoryAddress, account);
|
|
6421
|
+
}
|
|
6422
|
+
/** Deploy a fixed-supply CreatorCoin (full supply minted to the Factory). */
|
|
6423
|
+
async createCreatorCoin(account, params) {
|
|
6424
|
+
const salt = params.salt ?? BigInt("0x" + Date.now().toString(16));
|
|
6425
|
+
const call = this._factory(account).populate("create_creator_coin", [
|
|
6426
|
+
params.owner,
|
|
6427
|
+
params.name,
|
|
6428
|
+
params.symbol,
|
|
6429
|
+
BigInt(params.initialSupply),
|
|
6430
|
+
BigInt(salt)
|
|
6431
|
+
]);
|
|
6432
|
+
const res = await account.execute([call]);
|
|
6433
|
+
return { txHash: res.transaction_hash };
|
|
6434
|
+
}
|
|
6435
|
+
/**
|
|
6436
|
+
* Launch a coin on Ekubo (owner-only). Optionally pre-funds the Factory with
|
|
6437
|
+
* quote (for the buyback) in the same multicall. Liquidity is permanently
|
|
6438
|
+
* locked in the EkuboLauncher.
|
|
6439
|
+
*/
|
|
6440
|
+
async launchOnEkubo(account, params) {
|
|
6441
|
+
const ek = params.ekubo ?? VALIDATED_EKUBO_PARAMS;
|
|
6442
|
+
const factory = this._factory(account);
|
|
6443
|
+
const launchParameters = {
|
|
6444
|
+
creator_coin_address: params.creatorCoin,
|
|
6445
|
+
transfer_restriction_delay: params.transferRestrictionDelay ?? 0,
|
|
6446
|
+
max_percentage_buy_launch: params.maxPercentageBuyLaunch ?? 200,
|
|
6447
|
+
quote_address: params.quoteToken,
|
|
6448
|
+
initial_holders: params.initialHolders,
|
|
6449
|
+
initial_holders_amounts: params.initialHoldersAmounts.map((a) => BigInt(a))
|
|
6450
|
+
};
|
|
6451
|
+
const ekuboParameters = {
|
|
6452
|
+
fee: BigInt(ek.fee),
|
|
6453
|
+
tick_spacing: BigInt(ek.tickSpacing),
|
|
6454
|
+
starting_price: { mag: BigInt(ek.startingPrice.mag), sign: ek.startingPrice.sign },
|
|
6455
|
+
bound: BigInt(ek.bound)
|
|
6456
|
+
};
|
|
6457
|
+
const calls = [];
|
|
6458
|
+
if (params.quoteFundAmount !== void 0) {
|
|
6459
|
+
const amt = uint256.bnToUint256(BigInt(params.quoteFundAmount));
|
|
6460
|
+
calls.push({
|
|
6461
|
+
contractAddress: params.quoteToken,
|
|
6462
|
+
entrypoint: "transfer",
|
|
6463
|
+
calldata: [this.factoryAddress, amt.low, amt.high]
|
|
6464
|
+
});
|
|
6465
|
+
}
|
|
6466
|
+
calls.push(factory.populate("launch_on_ekubo", [launchParameters, ekuboParameters]));
|
|
6467
|
+
const res = await account.execute(calls);
|
|
6468
|
+
return { txHash: res.transaction_hash };
|
|
6469
|
+
}
|
|
6470
|
+
/** View: is this address a Factory-deployed Creator Coin? */
|
|
6471
|
+
async isCreatorCoin(address, account) {
|
|
6472
|
+
const r = await this._factory(account).is_creator_coin(address);
|
|
6473
|
+
return BigInt(r) === 1n;
|
|
6474
|
+
}
|
|
6475
|
+
/** Read a coin's live Ekubo spot price (quote-per-coin) via the configured RPC.
|
|
6476
|
+
* Read-only; returns null if the coin isn't launched on Ekubo. */
|
|
6477
|
+
async getPrice(coinAddress) {
|
|
6478
|
+
return getCreatorCoinPrice(coinAddress, new RpcProvider({ nodeUrl: this.config.rpcUrl }));
|
|
6479
|
+
}
|
|
6480
|
+
};
|
|
6371
6481
|
|
|
6372
6482
|
// src/client.ts
|
|
6373
6483
|
var MedialaneClient = class {
|
|
@@ -6378,7 +6488,8 @@ var MedialaneClient = class {
|
|
|
6378
6488
|
this.services = {
|
|
6379
6489
|
pop: new PopService(this.config),
|
|
6380
6490
|
drop: new DropService(this.config),
|
|
6381
|
-
erc1155Collection: new ERC1155CollectionService(this.config)
|
|
6491
|
+
erc1155Collection: new ERC1155CollectionService(this.config),
|
|
6492
|
+
creatorCoin: new CreatorCoinService(this.config)
|
|
6382
6493
|
};
|
|
6383
6494
|
if (!this.config.backendUrl) {
|
|
6384
6495
|
const sentinel = new ApiClient("https://medialane-sdk-no-backend.invalid", this.config.apiKey);
|
|
@@ -6506,6 +6617,28 @@ var SERVICES = {
|
|
|
6506
6617
|
],
|
|
6507
6618
|
metadataSchema: { licenseDefault: "CC BY-SA" }
|
|
6508
6619
|
},
|
|
6620
|
+
"creator-coin": {
|
|
6621
|
+
id: "creator-coin",
|
|
6622
|
+
displayName: "Creator Coin",
|
|
6623
|
+
description: "Launch a fixed-supply social token with permanently-locked Ekubo liquidity.",
|
|
6624
|
+
standard: "ERC20",
|
|
6625
|
+
provenance: "MEDIALANE",
|
|
6626
|
+
onchain: {
|
|
6627
|
+
factoryAddress: CREATOR_COIN_FACTORY_CONTRACT_MAINNET,
|
|
6628
|
+
classHash: CREATOR_COIN_FACTORY_CLASS_HASH_MAINNET,
|
|
6629
|
+
startBlock: CREATOR_COIN_START_BLOCK_MAINNET
|
|
6630
|
+
},
|
|
6631
|
+
uiVariant: "coin",
|
|
6632
|
+
// `swap` is a UI affordance (05 §III): the marketplace renders an embedded
|
|
6633
|
+
// Ekubo swap (via StarkZapp) for the coin. Settlement is Ekubo — Medialane
|
|
6634
|
+
// operates NO trading venue and custodies nothing. No venue service exists
|
|
6635
|
+
// for coins (unlike NFTs, whose Medialane marketplace contract settles them).
|
|
6636
|
+
capabilities: ["launch", "swap", "transfer"],
|
|
6637
|
+
events: [
|
|
6638
|
+
{ name: "CreatorCoinCreated", emittedBy: "factory" },
|
|
6639
|
+
{ name: "CreatorCoinLaunched", emittedBy: "factory" }
|
|
6640
|
+
]
|
|
6641
|
+
},
|
|
6509
6642
|
"medialane-marketplace-erc721": {
|
|
6510
6643
|
id: "medialane-marketplace-erc721",
|
|
6511
6644
|
displayName: "Medialane Marketplace (ERC-721)",
|
|
@@ -6544,6 +6677,15 @@ var SERVICES = {
|
|
|
6544
6677
|
{ name: "OrderCancelled", emittedBy: "factory" }
|
|
6545
6678
|
]
|
|
6546
6679
|
},
|
|
6680
|
+
"external-erc20": {
|
|
6681
|
+
id: "external-erc20",
|
|
6682
|
+
displayName: "External ERC-20",
|
|
6683
|
+
description: "An ERC-20 token (e.g. an unrug memecoin or a partner coin) not deployed via a Medialane service. Brought in by owner claim or admin/partnership \u2014 never bulk-indexed. Generalizes to future chains.",
|
|
6684
|
+
standard: "ERC20",
|
|
6685
|
+
provenance: "EXTERNAL",
|
|
6686
|
+
uiVariant: "coin",
|
|
6687
|
+
capabilities: ["swap", "transfer"]
|
|
6688
|
+
},
|
|
6547
6689
|
"external-erc721": {
|
|
6548
6690
|
id: "external-erc721",
|
|
6549
6691
|
displayName: "External ERC-721",
|
|
@@ -6578,6 +6720,6 @@ function getServicesByCapability(cap) {
|
|
|
6578
6720
|
);
|
|
6579
6721
|
}
|
|
6580
6722
|
|
|
6581
|
-
export { ApiClient, 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, CollectionRegistryABI, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, FeeConfigSchema, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, 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, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, MedialaneError, NFTCOMMENTS_CONTRACT_MAINNET, OPEN_LICENSES, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, PUBLIC_RPC_FALLBACKS, PopService, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildOrderTypedData, createFailoverFetch, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
|
6723
|
+
export { ApiClient, 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, CollectionRegistryABI, CreatorCoinFactoryABI, CreatorCoinService, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, DropCollectionABI, DropFactoryABI, DropService, EKUBO_CORE_MAINNET, ERC1155CollectionService, FeeConfigSchema, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, 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, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, MedialaneError, NFTCOMMENTS_CONTRACT_MAINNET, OPEN_LICENSES, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, PUBLIC_RPC_FALLBACKS, PopService, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, VALIDATED_EKUBO_PARAMS, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildOrderTypedData, createFailoverFetch, encodeByteArray, formatAmount, getCreatorCoinPrice, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
|
6582
6724
|
//# sourceMappingURL=index.js.map
|
|
6583
6725
|
//# sourceMappingURL=index.js.map
|