@medialane/sdk 0.40.0 → 0.41.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 +29 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -105
- package/dist/index.d.ts +4 -105
- package/dist/index.js +29 -92
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1118,7 +1118,6 @@ interface ApiCreatorListResult {
|
|
|
1118
1118
|
page: number;
|
|
1119
1119
|
limit: number;
|
|
1120
1120
|
}
|
|
1121
|
-
type ApiWalletType = "ARGENT" | "BRAAVOS" | "CARTRIDGE" | "PRIVY" | "CHIPIPAY" | "INJECTED" | "UNKNOWN";
|
|
1122
1121
|
type ApiAppSource = "MEDIALANE_STARKNET" | "MEDIALANE_IO" | "MEDIALANE_PORTAL" | "MEDIALANE_SDK" | "MEDIALANE_DAPP";
|
|
1123
1122
|
type ApiChain = "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "BITCOIN";
|
|
1124
1123
|
interface ApiUserWallet {
|
|
@@ -1415,7 +1414,7 @@ interface CreateDropParams {
|
|
|
1415
1414
|
|
|
1416
1415
|
declare class PopService {
|
|
1417
1416
|
private readonly factoryAddress;
|
|
1418
|
-
constructor(
|
|
1417
|
+
constructor(config: ResolvedConfig);
|
|
1419
1418
|
private _collection;
|
|
1420
1419
|
claim(account: AccountInterface, collectionAddress: string): Promise<TxResult>;
|
|
1421
1420
|
adminMint(account: AccountInterface, params: {
|
|
@@ -1858,29 +1857,6 @@ interface ParsedAdminHeaders {
|
|
|
1858
1857
|
/** Parse + shape-check the headers on the backend. Returns null if malformed. */
|
|
1859
1858
|
declare function parseAdminHeaders(get: (name: string) => string | null | undefined): ParsedAdminHeaders | null;
|
|
1860
1859
|
|
|
1861
|
-
/** Medialane721 marketplace venue — immutable, ownerless (redesign, deployed 2026-05-31). */
|
|
1862
|
-
declare const MARKETPLACE_721_CONTRACT_MAINNET: string;
|
|
1863
|
-
/** Class hash of the Medialane721 venue. */
|
|
1864
|
-
declare const MARKETPLACE_721_CLASS_HASH_MAINNET: string;
|
|
1865
|
-
/** First mainnet block for the Medialane721 venue deployment. */
|
|
1866
|
-
declare const MARKETPLACE_721_START_BLOCK_MAINNET: number;
|
|
1867
|
-
/** Medialane1155 marketplace venue — immutable, ownerless (redesign, deployed 2026-05-31). */
|
|
1868
|
-
declare const MARKETPLACE_1155_CONTRACT_MAINNET: string;
|
|
1869
|
-
/** Class hash of the Medialane1155 venue. */
|
|
1870
|
-
declare const MARKETPLACE_1155_CLASS_HASH_MAINNET: string;
|
|
1871
|
-
/** First mainnet block for the Medialane1155 venue deployment. */
|
|
1872
|
-
declare const MARKETPLACE_1155_START_BLOCK_MAINNET: number;
|
|
1873
|
-
declare const COLLECTION_721_CONTRACT_MAINNET: string;
|
|
1874
|
-
/** Class hash of the IPNft (per-collection ERC-721) implementation. */
|
|
1875
|
-
declare const IPNFT_CLASS_HASH_MAINNET: string;
|
|
1876
|
-
/** Class hash of the IPCollection registry. */
|
|
1877
|
-
declare const IPCOLLECTION_CLASS_HASH_MAINNET: string;
|
|
1878
|
-
/** First mainnet block for the current MIP IPCollection registry deployment. */
|
|
1879
|
-
declare const COLLECTION_721_START_BLOCK_MAINNET: number;
|
|
1880
|
-
declare const DROP_FACTORY_CONTRACT_MAINNET: string;
|
|
1881
|
-
declare const POP_FACTORY_CONTRACT_MAINNET: string;
|
|
1882
|
-
/** NFTComments on-chain comment system — immutable, no admin key. */
|
|
1883
|
-
declare const NFTCOMMENTS_CONTRACT_MAINNET: string;
|
|
1884
1860
|
declare const SUPPORTED_TOKENS: readonly [{
|
|
1885
1861
|
readonly symbol: "USDC";
|
|
1886
1862
|
readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
|
|
@@ -1908,29 +1884,8 @@ declare const SUPPORTED_TOKENS: readonly [{
|
|
|
1908
1884
|
readonly listable: true;
|
|
1909
1885
|
}];
|
|
1910
1886
|
type SupportedTokenSymbol = (typeof SUPPORTED_TOKENS)[number]["symbol"];
|
|
1911
|
-
|
|
1912
|
-
declare const
|
|
1913
|
-
/** IPCollectionFactory v0.3.0 (deployed mainnet 2026-06-10): sequential on-chain
|
|
1914
|
-
* edition ids, ownerless/immutable. New collections deploy from here. */
|
|
1915
|
-
declare const COLLECTION_1155_CONTRACT_MAINNET: string;
|
|
1916
|
-
/** Class hash of the IPCollectionFactory v0.3.0 implementation. */
|
|
1917
|
-
declare const COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET: string;
|
|
1918
|
-
/** Class hash of the IPCollection ERC-1155 v0.3.0 implementation. */
|
|
1919
|
-
declare const COLLECTION_1155_CLASS_HASH_MAINNET: string;
|
|
1920
|
-
/** First mainnet block of the v0.3.0 ERC-1155 factory deployment. */
|
|
1921
|
-
declare const COLLECTION_1155_START_BLOCK_MAINNET: number;
|
|
1922
|
-
/** Creator Coin Factory — entrypoint: create_creator_coin + launch_on_ekubo. */
|
|
1923
|
-
declare const CREATOR_COIN_FACTORY_CONTRACT_MAINNET: string;
|
|
1924
|
-
/** EkuboLauncher — permanently holds (locks) each Creator Coin's LP position. */
|
|
1925
|
-
declare const CREATOR_COIN_EKUBO_LAUNCHER_MAINNET: string;
|
|
1926
|
-
/** Class hash of the per-coin CreatorCoin ERC-20 the Factory deploys. */
|
|
1927
|
-
declare const CREATOR_COIN_CLASS_HASH_MAINNET: string;
|
|
1928
|
-
/** Class hash of the Creator Coin Factory. */
|
|
1929
|
-
declare const CREATOR_COIN_FACTORY_CLASS_HASH_MAINNET: string;
|
|
1930
|
-
/** First mainnet block of the Factory deployment. */
|
|
1931
|
-
declare const CREATOR_COIN_START_BLOCK_MAINNET: number;
|
|
1932
|
-
/** Ekubo Core (Starknet mainnet) — Creator Coin pools live here; read spot price via `get_pool_price`. */
|
|
1933
|
-
declare const EKUBO_CORE_MAINNET: string;
|
|
1887
|
+
/** Default currency for listings and offers — Circle-native USDC on Starknet. */
|
|
1888
|
+
declare const DEFAULT_CURRENCY: SupportedTokenSymbol;
|
|
1934
1889
|
|
|
1935
1890
|
declare const IPMarketplaceABI: readonly [{
|
|
1936
1891
|
readonly type: "impl";
|
|
@@ -2819,62 +2774,6 @@ declare const DropFactoryABI: readonly [{
|
|
|
2819
2774
|
readonly state_mutability: "external";
|
|
2820
2775
|
}];
|
|
2821
2776
|
|
|
2822
|
-
declare const CollectionRegistryABI: readonly [{
|
|
2823
|
-
readonly type: "struct";
|
|
2824
|
-
readonly name: "core::byte_array::ByteArray";
|
|
2825
|
-
readonly members: readonly [{
|
|
2826
|
-
readonly name: "data";
|
|
2827
|
-
readonly type: "core::array::Array::<core::felt252>";
|
|
2828
|
-
}, {
|
|
2829
|
-
readonly name: "pending_word";
|
|
2830
|
-
readonly type: "core::felt252";
|
|
2831
|
-
}, {
|
|
2832
|
-
readonly name: "pending_word_len";
|
|
2833
|
-
readonly type: "core::integer::u32";
|
|
2834
|
-
}];
|
|
2835
|
-
}, {
|
|
2836
|
-
readonly type: "struct";
|
|
2837
|
-
readonly name: "ip_collection_erc_721::types::Collection";
|
|
2838
|
-
readonly members: readonly [{
|
|
2839
|
-
readonly name: "name";
|
|
2840
|
-
readonly type: "core::byte_array::ByteArray";
|
|
2841
|
-
}, {
|
|
2842
|
-
readonly name: "symbol";
|
|
2843
|
-
readonly type: "core::byte_array::ByteArray";
|
|
2844
|
-
}, {
|
|
2845
|
-
readonly name: "base_uri";
|
|
2846
|
-
readonly type: "core::byte_array::ByteArray";
|
|
2847
|
-
}, {
|
|
2848
|
-
readonly name: "owner";
|
|
2849
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2850
|
-
}, {
|
|
2851
|
-
readonly name: "ip_nft";
|
|
2852
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2853
|
-
}];
|
|
2854
|
-
}, {
|
|
2855
|
-
readonly type: "function";
|
|
2856
|
-
readonly name: "list_user_collections";
|
|
2857
|
-
readonly inputs: readonly [{
|
|
2858
|
-
readonly name: "user";
|
|
2859
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2860
|
-
}];
|
|
2861
|
-
readonly outputs: readonly [{
|
|
2862
|
-
readonly type: "core::array::Span::<core::integer::u256>";
|
|
2863
|
-
}];
|
|
2864
|
-
readonly state_mutability: "view";
|
|
2865
|
-
}, {
|
|
2866
|
-
readonly type: "function";
|
|
2867
|
-
readonly name: "get_collection";
|
|
2868
|
-
readonly inputs: readonly [{
|
|
2869
|
-
readonly name: "collection_id";
|
|
2870
|
-
readonly type: "core::integer::u256";
|
|
2871
|
-
}];
|
|
2872
|
-
readonly outputs: readonly [{
|
|
2873
|
-
readonly type: "ip_collection_erc_721::types::Collection";
|
|
2874
|
-
}];
|
|
2875
|
-
readonly state_mutability: "view";
|
|
2876
|
-
}];
|
|
2877
|
-
|
|
2878
2777
|
declare const Medialane1155ABI: readonly [{
|
|
2879
2778
|
readonly type: "impl";
|
|
2880
2779
|
readonly name: "Medialane1155Impl";
|
|
@@ -6237,4 +6136,4 @@ declare function build1155OrderTypedData(message: Record<string, unknown>, chain
|
|
|
6237
6136
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
6238
6137
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
6239
6138
|
|
|
6240
|
-
export { ADMIN_HEADERS, ADMIN_SCOPE, type ActivityType, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, type ApiChain, ApiClient, type ApiCoin, type ApiCoinsQuery, 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
|
|
6139
|
+
export { ADMIN_HEADERS, ADMIN_SCOPE, type ActivityType, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, type ApiChain, ApiClient, type ApiCoin, type ApiCoinsQuery, 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 ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintEditionParams, type BuildFeeCallParams, CHAINS, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type Chain, type ChainCoordinates, type ClaimConditions, type CollectionSort, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateCreatorCoinParams, type CreateDropParams, type CreateGrantOpts, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, CreatorCoinFactoryABI, type CreatorCoinPrice, type CreatorCoinReceiptLike, CreatorCoinService, DEFAULT_CHAIN, DEFAULT_CURRENCY, 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, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, type IPType, type IntentCall, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, LAUNCH_PRICE_QUOTE_PER_COIN, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintEditionParams, type MintParams, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, PUBLIC_RPC_FALLBACKS, type ParsedAdminHeaders, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type ResolvedFeeConfig, type RetryOptions, 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, adminRequestDigest, build1155CancellationTypedData, build1155OrderTypedData, buildAdminSessionTypedData, buildCancellationTypedData, buildCreateCreatorCoinCall, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buybackQuoteRaw, toRaw as coinToRaw, createAdminSessionGrant, createFailoverFetch, encodeAdminHeaders, encodeByteArray, fdvHuman, formatAmount, getCoordinates, getCreatorCoinPrice, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAdminHeaders, parseAmount, parseCreatorCoinCreated, randomNonce, resolveConfig, resolveFeeConfig, sessionKeyHashOf, shortenAddress, signAdminRequest, stringifyBigInts, teamCoinsRaw, u256ToBigInt, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, verifyAdminRequestSig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1118,7 +1118,6 @@ interface ApiCreatorListResult {
|
|
|
1118
1118
|
page: number;
|
|
1119
1119
|
limit: number;
|
|
1120
1120
|
}
|
|
1121
|
-
type ApiWalletType = "ARGENT" | "BRAAVOS" | "CARTRIDGE" | "PRIVY" | "CHIPIPAY" | "INJECTED" | "UNKNOWN";
|
|
1122
1121
|
type ApiAppSource = "MEDIALANE_STARKNET" | "MEDIALANE_IO" | "MEDIALANE_PORTAL" | "MEDIALANE_SDK" | "MEDIALANE_DAPP";
|
|
1123
1122
|
type ApiChain = "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "BITCOIN";
|
|
1124
1123
|
interface ApiUserWallet {
|
|
@@ -1415,7 +1414,7 @@ interface CreateDropParams {
|
|
|
1415
1414
|
|
|
1416
1415
|
declare class PopService {
|
|
1417
1416
|
private readonly factoryAddress;
|
|
1418
|
-
constructor(
|
|
1417
|
+
constructor(config: ResolvedConfig);
|
|
1419
1418
|
private _collection;
|
|
1420
1419
|
claim(account: AccountInterface, collectionAddress: string): Promise<TxResult>;
|
|
1421
1420
|
adminMint(account: AccountInterface, params: {
|
|
@@ -1858,29 +1857,6 @@ interface ParsedAdminHeaders {
|
|
|
1858
1857
|
/** Parse + shape-check the headers on the backend. Returns null if malformed. */
|
|
1859
1858
|
declare function parseAdminHeaders(get: (name: string) => string | null | undefined): ParsedAdminHeaders | null;
|
|
1860
1859
|
|
|
1861
|
-
/** Medialane721 marketplace venue — immutable, ownerless (redesign, deployed 2026-05-31). */
|
|
1862
|
-
declare const MARKETPLACE_721_CONTRACT_MAINNET: string;
|
|
1863
|
-
/** Class hash of the Medialane721 venue. */
|
|
1864
|
-
declare const MARKETPLACE_721_CLASS_HASH_MAINNET: string;
|
|
1865
|
-
/** First mainnet block for the Medialane721 venue deployment. */
|
|
1866
|
-
declare const MARKETPLACE_721_START_BLOCK_MAINNET: number;
|
|
1867
|
-
/** Medialane1155 marketplace venue — immutable, ownerless (redesign, deployed 2026-05-31). */
|
|
1868
|
-
declare const MARKETPLACE_1155_CONTRACT_MAINNET: string;
|
|
1869
|
-
/** Class hash of the Medialane1155 venue. */
|
|
1870
|
-
declare const MARKETPLACE_1155_CLASS_HASH_MAINNET: string;
|
|
1871
|
-
/** First mainnet block for the Medialane1155 venue deployment. */
|
|
1872
|
-
declare const MARKETPLACE_1155_START_BLOCK_MAINNET: number;
|
|
1873
|
-
declare const COLLECTION_721_CONTRACT_MAINNET: string;
|
|
1874
|
-
/** Class hash of the IPNft (per-collection ERC-721) implementation. */
|
|
1875
|
-
declare const IPNFT_CLASS_HASH_MAINNET: string;
|
|
1876
|
-
/** Class hash of the IPCollection registry. */
|
|
1877
|
-
declare const IPCOLLECTION_CLASS_HASH_MAINNET: string;
|
|
1878
|
-
/** First mainnet block for the current MIP IPCollection registry deployment. */
|
|
1879
|
-
declare const COLLECTION_721_START_BLOCK_MAINNET: number;
|
|
1880
|
-
declare const DROP_FACTORY_CONTRACT_MAINNET: string;
|
|
1881
|
-
declare const POP_FACTORY_CONTRACT_MAINNET: string;
|
|
1882
|
-
/** NFTComments on-chain comment system — immutable, no admin key. */
|
|
1883
|
-
declare const NFTCOMMENTS_CONTRACT_MAINNET: string;
|
|
1884
1860
|
declare const SUPPORTED_TOKENS: readonly [{
|
|
1885
1861
|
readonly symbol: "USDC";
|
|
1886
1862
|
readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
|
|
@@ -1908,29 +1884,8 @@ declare const SUPPORTED_TOKENS: readonly [{
|
|
|
1908
1884
|
readonly listable: true;
|
|
1909
1885
|
}];
|
|
1910
1886
|
type SupportedTokenSymbol = (typeof SUPPORTED_TOKENS)[number]["symbol"];
|
|
1911
|
-
|
|
1912
|
-
declare const
|
|
1913
|
-
/** IPCollectionFactory v0.3.0 (deployed mainnet 2026-06-10): sequential on-chain
|
|
1914
|
-
* edition ids, ownerless/immutable. New collections deploy from here. */
|
|
1915
|
-
declare const COLLECTION_1155_CONTRACT_MAINNET: string;
|
|
1916
|
-
/** Class hash of the IPCollectionFactory v0.3.0 implementation. */
|
|
1917
|
-
declare const COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET: string;
|
|
1918
|
-
/** Class hash of the IPCollection ERC-1155 v0.3.0 implementation. */
|
|
1919
|
-
declare const COLLECTION_1155_CLASS_HASH_MAINNET: string;
|
|
1920
|
-
/** First mainnet block of the v0.3.0 ERC-1155 factory deployment. */
|
|
1921
|
-
declare const COLLECTION_1155_START_BLOCK_MAINNET: number;
|
|
1922
|
-
/** Creator Coin Factory — entrypoint: create_creator_coin + launch_on_ekubo. */
|
|
1923
|
-
declare const CREATOR_COIN_FACTORY_CONTRACT_MAINNET: string;
|
|
1924
|
-
/** EkuboLauncher — permanently holds (locks) each Creator Coin's LP position. */
|
|
1925
|
-
declare const CREATOR_COIN_EKUBO_LAUNCHER_MAINNET: string;
|
|
1926
|
-
/** Class hash of the per-coin CreatorCoin ERC-20 the Factory deploys. */
|
|
1927
|
-
declare const CREATOR_COIN_CLASS_HASH_MAINNET: string;
|
|
1928
|
-
/** Class hash of the Creator Coin Factory. */
|
|
1929
|
-
declare const CREATOR_COIN_FACTORY_CLASS_HASH_MAINNET: string;
|
|
1930
|
-
/** First mainnet block of the Factory deployment. */
|
|
1931
|
-
declare const CREATOR_COIN_START_BLOCK_MAINNET: number;
|
|
1932
|
-
/** Ekubo Core (Starknet mainnet) — Creator Coin pools live here; read spot price via `get_pool_price`. */
|
|
1933
|
-
declare const EKUBO_CORE_MAINNET: string;
|
|
1887
|
+
/** Default currency for listings and offers — Circle-native USDC on Starknet. */
|
|
1888
|
+
declare const DEFAULT_CURRENCY: SupportedTokenSymbol;
|
|
1934
1889
|
|
|
1935
1890
|
declare const IPMarketplaceABI: readonly [{
|
|
1936
1891
|
readonly type: "impl";
|
|
@@ -2819,62 +2774,6 @@ declare const DropFactoryABI: readonly [{
|
|
|
2819
2774
|
readonly state_mutability: "external";
|
|
2820
2775
|
}];
|
|
2821
2776
|
|
|
2822
|
-
declare const CollectionRegistryABI: readonly [{
|
|
2823
|
-
readonly type: "struct";
|
|
2824
|
-
readonly name: "core::byte_array::ByteArray";
|
|
2825
|
-
readonly members: readonly [{
|
|
2826
|
-
readonly name: "data";
|
|
2827
|
-
readonly type: "core::array::Array::<core::felt252>";
|
|
2828
|
-
}, {
|
|
2829
|
-
readonly name: "pending_word";
|
|
2830
|
-
readonly type: "core::felt252";
|
|
2831
|
-
}, {
|
|
2832
|
-
readonly name: "pending_word_len";
|
|
2833
|
-
readonly type: "core::integer::u32";
|
|
2834
|
-
}];
|
|
2835
|
-
}, {
|
|
2836
|
-
readonly type: "struct";
|
|
2837
|
-
readonly name: "ip_collection_erc_721::types::Collection";
|
|
2838
|
-
readonly members: readonly [{
|
|
2839
|
-
readonly name: "name";
|
|
2840
|
-
readonly type: "core::byte_array::ByteArray";
|
|
2841
|
-
}, {
|
|
2842
|
-
readonly name: "symbol";
|
|
2843
|
-
readonly type: "core::byte_array::ByteArray";
|
|
2844
|
-
}, {
|
|
2845
|
-
readonly name: "base_uri";
|
|
2846
|
-
readonly type: "core::byte_array::ByteArray";
|
|
2847
|
-
}, {
|
|
2848
|
-
readonly name: "owner";
|
|
2849
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2850
|
-
}, {
|
|
2851
|
-
readonly name: "ip_nft";
|
|
2852
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2853
|
-
}];
|
|
2854
|
-
}, {
|
|
2855
|
-
readonly type: "function";
|
|
2856
|
-
readonly name: "list_user_collections";
|
|
2857
|
-
readonly inputs: readonly [{
|
|
2858
|
-
readonly name: "user";
|
|
2859
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2860
|
-
}];
|
|
2861
|
-
readonly outputs: readonly [{
|
|
2862
|
-
readonly type: "core::array::Span::<core::integer::u256>";
|
|
2863
|
-
}];
|
|
2864
|
-
readonly state_mutability: "view";
|
|
2865
|
-
}, {
|
|
2866
|
-
readonly type: "function";
|
|
2867
|
-
readonly name: "get_collection";
|
|
2868
|
-
readonly inputs: readonly [{
|
|
2869
|
-
readonly name: "collection_id";
|
|
2870
|
-
readonly type: "core::integer::u256";
|
|
2871
|
-
}];
|
|
2872
|
-
readonly outputs: readonly [{
|
|
2873
|
-
readonly type: "ip_collection_erc_721::types::Collection";
|
|
2874
|
-
}];
|
|
2875
|
-
readonly state_mutability: "view";
|
|
2876
|
-
}];
|
|
2877
|
-
|
|
2878
2777
|
declare const Medialane1155ABI: readonly [{
|
|
2879
2778
|
readonly type: "impl";
|
|
2880
2779
|
readonly name: "Medialane1155Impl";
|
|
@@ -6237,4 +6136,4 @@ declare function build1155OrderTypedData(message: Record<string, unknown>, chain
|
|
|
6237
6136
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
6238
6137
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
6239
6138
|
|
|
6240
|
-
export { ADMIN_HEADERS, ADMIN_SCOPE, type ActivityType, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, type ApiChain, ApiClient, type ApiCoin, type ApiCoinsQuery, 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
|
|
6139
|
+
export { ADMIN_HEADERS, ADMIN_SCOPE, type ActivityType, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, type ApiChain, ApiClient, type ApiCoin, type ApiCoinsQuery, 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 ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintEditionParams, type BuildFeeCallParams, CHAINS, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type Chain, type ChainCoordinates, type ClaimConditions, type CollectionSort, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateCreatorCoinParams, type CreateDropParams, type CreateGrantOpts, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, CreatorCoinFactoryABI, type CreatorCoinPrice, type CreatorCoinReceiptLike, CreatorCoinService, DEFAULT_CHAIN, DEFAULT_CURRENCY, 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, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, type IPType, type IntentCall, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, LAUNCH_PRICE_QUOTE_PER_COIN, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintEditionParams, type MintParams, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, PUBLIC_RPC_FALLBACKS, type ParsedAdminHeaders, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type ResolvedFeeConfig, type RetryOptions, 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, adminRequestDigest, build1155CancellationTypedData, build1155OrderTypedData, buildAdminSessionTypedData, buildCancellationTypedData, buildCreateCreatorCoinCall, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buybackQuoteRaw, toRaw as coinToRaw, createAdminSessionGrant, createFailoverFetch, encodeAdminHeaders, encodeByteArray, fdvHuman, formatAmount, getCoordinates, getCreatorCoinPrice, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAdminHeaders, parseAmount, parseCreatorCoinCreated, randomNonce, resolveConfig, resolveFeeConfig, sessionKeyHashOf, shortenAddress, signAdminRequest, stringifyBigInts, teamCoinsRaw, u256ToBigInt, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, verifyAdminRequestSig };
|
package/dist/index.js
CHANGED
|
@@ -1107,44 +1107,6 @@ var DropFactoryABI = [
|
|
|
1107
1107
|
}
|
|
1108
1108
|
];
|
|
1109
1109
|
|
|
1110
|
-
// src/abis/collectionRegistry.ts
|
|
1111
|
-
var CollectionRegistryABI = [
|
|
1112
|
-
{
|
|
1113
|
-
type: "struct",
|
|
1114
|
-
name: "core::byte_array::ByteArray",
|
|
1115
|
-
members: [
|
|
1116
|
-
{ name: "data", type: "core::array::Array::<core::felt252>" },
|
|
1117
|
-
{ name: "pending_word", type: "core::felt252" },
|
|
1118
|
-
{ name: "pending_word_len", type: "core::integer::u32" }
|
|
1119
|
-
]
|
|
1120
|
-
},
|
|
1121
|
-
{
|
|
1122
|
-
type: "struct",
|
|
1123
|
-
name: "ip_collection_erc_721::types::Collection",
|
|
1124
|
-
members: [
|
|
1125
|
-
{ name: "name", type: "core::byte_array::ByteArray" },
|
|
1126
|
-
{ name: "symbol", type: "core::byte_array::ByteArray" },
|
|
1127
|
-
{ name: "base_uri", type: "core::byte_array::ByteArray" },
|
|
1128
|
-
{ name: "owner", type: "core::starknet::contract_address::ContractAddress" },
|
|
1129
|
-
{ name: "ip_nft", type: "core::starknet::contract_address::ContractAddress" }
|
|
1130
|
-
]
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
type: "function",
|
|
1134
|
-
name: "list_user_collections",
|
|
1135
|
-
inputs: [{ name: "user", type: "core::starknet::contract_address::ContractAddress" }],
|
|
1136
|
-
outputs: [{ type: "core::array::Span::<core::integer::u256>" }],
|
|
1137
|
-
state_mutability: "view"
|
|
1138
|
-
},
|
|
1139
|
-
{
|
|
1140
|
-
type: "function",
|
|
1141
|
-
name: "get_collection",
|
|
1142
|
-
inputs: [{ name: "collection_id", type: "core::integer::u256" }],
|
|
1143
|
-
outputs: [{ type: "ip_collection_erc_721::types::Collection" }],
|
|
1144
|
-
state_mutability: "view"
|
|
1145
|
-
}
|
|
1146
|
-
];
|
|
1147
|
-
|
|
1148
1110
|
// src/abis/medialane1155.ts
|
|
1149
1111
|
var Medialane1155ABI = [
|
|
1150
1112
|
{
|
|
@@ -4670,20 +4632,6 @@ var IPNftABI = [
|
|
|
4670
4632
|
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" }] }];
|
|
4671
4633
|
|
|
4672
4634
|
// src/constants.ts
|
|
4673
|
-
var SN = getCoordinates("STARKNET");
|
|
4674
|
-
var MARKETPLACE_721_CONTRACT_MAINNET = SN.marketplace721;
|
|
4675
|
-
var MARKETPLACE_721_CLASS_HASH_MAINNET = SN.marketplace721ClassHash;
|
|
4676
|
-
var MARKETPLACE_721_START_BLOCK_MAINNET = SN.marketplace721StartBlock;
|
|
4677
|
-
var MARKETPLACE_1155_CONTRACT_MAINNET = SN.marketplace1155;
|
|
4678
|
-
var MARKETPLACE_1155_CLASS_HASH_MAINNET = SN.marketplace1155ClassHash;
|
|
4679
|
-
var MARKETPLACE_1155_START_BLOCK_MAINNET = SN.marketplace1155StartBlock;
|
|
4680
|
-
var COLLECTION_721_CONTRACT_MAINNET = SN.collection721;
|
|
4681
|
-
var IPNFT_CLASS_HASH_MAINNET = SN.ipNftClassHash;
|
|
4682
|
-
var IPCOLLECTION_CLASS_HASH_MAINNET = SN.ipCollectionClassHash;
|
|
4683
|
-
var COLLECTION_721_START_BLOCK_MAINNET = SN.collection721StartBlock;
|
|
4684
|
-
var DROP_FACTORY_CONTRACT_MAINNET = SN.dropFactory;
|
|
4685
|
-
var POP_FACTORY_CONTRACT_MAINNET = SN.popFactory;
|
|
4686
|
-
var NFTCOMMENTS_CONTRACT_MAINNET = SN.nftComments;
|
|
4687
4635
|
var SUPPORTED_TOKENS = [
|
|
4688
4636
|
{
|
|
4689
4637
|
// Circle-native USDC on Starknet (canonical)
|
|
@@ -4718,18 +4666,6 @@ var SUPPORTED_TOKENS = [
|
|
|
4718
4666
|
}
|
|
4719
4667
|
];
|
|
4720
4668
|
var DEFAULT_CURRENCY = "USDC";
|
|
4721
|
-
var POP_COLLECTION_CLASS_HASH_MAINNET = SN.popCollectionClassHash;
|
|
4722
|
-
var DROP_COLLECTION_CLASS_HASH_MAINNET = SN.dropCollectionClassHash;
|
|
4723
|
-
var COLLECTION_1155_CONTRACT_MAINNET = SN.collection1155;
|
|
4724
|
-
var COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET = SN.collection1155FactoryClassHash;
|
|
4725
|
-
var COLLECTION_1155_CLASS_HASH_MAINNET = SN.collection1155ClassHash;
|
|
4726
|
-
var COLLECTION_1155_START_BLOCK_MAINNET = SN.collection1155StartBlock;
|
|
4727
|
-
var CREATOR_COIN_FACTORY_CONTRACT_MAINNET = SN.creatorCoinFactory;
|
|
4728
|
-
var CREATOR_COIN_EKUBO_LAUNCHER_MAINNET = SN.creatorCoinEkuboLauncher;
|
|
4729
|
-
var CREATOR_COIN_CLASS_HASH_MAINNET = SN.creatorCoinClassHash;
|
|
4730
|
-
var CREATOR_COIN_FACTORY_CLASS_HASH_MAINNET = SN.creatorCoinFactoryClassHash;
|
|
4731
|
-
var CREATOR_COIN_START_BLOCK_MAINNET = SN.creatorCoinStartBlock;
|
|
4732
|
-
var EKUBO_CORE_MAINNET = SN.ekuboCore;
|
|
4733
4669
|
|
|
4734
4670
|
// src/utils/bigint.ts
|
|
4735
4671
|
function stringifyBigInts(obj) {
|
|
@@ -6271,8 +6207,8 @@ var ApiClient = class {
|
|
|
6271
6207
|
}
|
|
6272
6208
|
};
|
|
6273
6209
|
var PopService = class {
|
|
6274
|
-
constructor(
|
|
6275
|
-
this.factoryAddress =
|
|
6210
|
+
constructor(config) {
|
|
6211
|
+
this.factoryAddress = getCoordinates(config.chain).popFactory;
|
|
6276
6212
|
}
|
|
6277
6213
|
_collection(address, account) {
|
|
6278
6214
|
return new Contract(POPCollectionABI, normalizeAddress("STARKNET", address), account);
|
|
@@ -6347,7 +6283,7 @@ function toContractConditions(c) {
|
|
|
6347
6283
|
}
|
|
6348
6284
|
var DropService = class {
|
|
6349
6285
|
constructor(config) {
|
|
6350
|
-
this.factoryAddress =
|
|
6286
|
+
this.factoryAddress = getCoordinates(config.chain).dropFactory;
|
|
6351
6287
|
this.config = config;
|
|
6352
6288
|
}
|
|
6353
6289
|
_collection(address, account) {
|
|
@@ -6429,7 +6365,7 @@ var DropService = class {
|
|
|
6429
6365
|
};
|
|
6430
6366
|
var ERC1155CollectionService = class {
|
|
6431
6367
|
constructor(config) {
|
|
6432
|
-
this.factoryAddress = config.collection1155Contract ??
|
|
6368
|
+
this.factoryAddress = config.collection1155Contract ?? getCoordinates(config.chain).collection1155;
|
|
6433
6369
|
}
|
|
6434
6370
|
_factory(account) {
|
|
6435
6371
|
return new Contract(
|
|
@@ -6571,7 +6507,7 @@ async function getCreatorCoinPrice(coinAddress, provider) {
|
|
|
6571
6507
|
const [t0, t1] = ci < qi ? [coinAddress, quoteToken] : [quoteToken, coinAddress];
|
|
6572
6508
|
const quoteIsToken0 = qi === BigInt(t0);
|
|
6573
6509
|
const pp = await provider.callContract({
|
|
6574
|
-
contractAddress:
|
|
6510
|
+
contractAddress: getCoordinates("STARKNET").ekuboCore,
|
|
6575
6511
|
entrypoint: "get_pool_price",
|
|
6576
6512
|
calldata: [t0, t1, fee, tickSpacing, "0x0"]
|
|
6577
6513
|
});
|
|
@@ -6586,7 +6522,7 @@ function factoryContract() {
|
|
|
6586
6522
|
if (!_factoryContract) {
|
|
6587
6523
|
_factoryContract = new Contract(
|
|
6588
6524
|
CreatorCoinFactoryABI,
|
|
6589
|
-
|
|
6525
|
+
getCoordinates("STARKNET").creatorCoinFactory
|
|
6590
6526
|
);
|
|
6591
6527
|
}
|
|
6592
6528
|
return _factoryContract;
|
|
@@ -6623,7 +6559,7 @@ function buildLaunchOnEkuboCalls(params) {
|
|
|
6623
6559
|
calls.push({
|
|
6624
6560
|
contractAddress: params.quoteToken,
|
|
6625
6561
|
entrypoint: "transfer",
|
|
6626
|
-
calldata: [
|
|
6562
|
+
calldata: [getCoordinates("STARKNET").creatorCoinFactory, amt.low, amt.high]
|
|
6627
6563
|
});
|
|
6628
6564
|
}
|
|
6629
6565
|
calls.push(factoryContract().populate("launch_on_ekubo", [launchParameters, ekuboParameters]));
|
|
@@ -6631,7 +6567,7 @@ function buildLaunchOnEkuboCalls(params) {
|
|
|
6631
6567
|
}
|
|
6632
6568
|
var CREATOR_COIN_CREATED_SELECTOR = hash.getSelectorFromName("CreatorCoinCreated");
|
|
6633
6569
|
function parseCreatorCoinCreated(receipt) {
|
|
6634
|
-
const factory = normalizeAddress("STARKNET",
|
|
6570
|
+
const factory = normalizeAddress("STARKNET", getCoordinates("STARKNET").creatorCoinFactory);
|
|
6635
6571
|
for (const ev of receipt?.events ?? []) {
|
|
6636
6572
|
let from;
|
|
6637
6573
|
try {
|
|
@@ -6650,7 +6586,7 @@ function parseCreatorCoinCreated(receipt) {
|
|
|
6650
6586
|
}
|
|
6651
6587
|
var CreatorCoinService = class {
|
|
6652
6588
|
constructor(config) {
|
|
6653
|
-
this.factoryAddress =
|
|
6589
|
+
this.factoryAddress = getCoordinates(config.chain).creatorCoinFactory;
|
|
6654
6590
|
this.config = config;
|
|
6655
6591
|
}
|
|
6656
6592
|
_factory(account) {
|
|
@@ -6901,6 +6837,7 @@ function fdvHuman(supplyHuman) {
|
|
|
6901
6837
|
}
|
|
6902
6838
|
|
|
6903
6839
|
// src/services/registry.ts
|
|
6840
|
+
var SN = getCoordinates("STARKNET");
|
|
6904
6841
|
var SERVICES = {
|
|
6905
6842
|
"mip-erc721": {
|
|
6906
6843
|
id: "mip-erc721",
|
|
@@ -6910,8 +6847,8 @@ var SERVICES = {
|
|
|
6910
6847
|
provenance: "MEDIALANE",
|
|
6911
6848
|
onchain: {
|
|
6912
6849
|
STARKNET: {
|
|
6913
|
-
factoryAddress:
|
|
6914
|
-
startBlock:
|
|
6850
|
+
factoryAddress: SN.collection721,
|
|
6851
|
+
startBlock: SN.collection721StartBlock
|
|
6915
6852
|
}
|
|
6916
6853
|
},
|
|
6917
6854
|
uiVariant: "standard",
|
|
@@ -6945,9 +6882,9 @@ var SERVICES = {
|
|
|
6945
6882
|
provenance: "MEDIALANE",
|
|
6946
6883
|
onchain: {
|
|
6947
6884
|
STARKNET: {
|
|
6948
|
-
factoryAddress:
|
|
6949
|
-
classHash:
|
|
6950
|
-
startBlock:
|
|
6885
|
+
factoryAddress: SN.collection1155,
|
|
6886
|
+
classHash: SN.collection1155ClassHash,
|
|
6887
|
+
startBlock: SN.collection1155StartBlock
|
|
6951
6888
|
}
|
|
6952
6889
|
},
|
|
6953
6890
|
uiVariant: "edition",
|
|
@@ -6965,8 +6902,8 @@ var SERVICES = {
|
|
|
6965
6902
|
provenance: "MEDIALANE",
|
|
6966
6903
|
onchain: {
|
|
6967
6904
|
STARKNET: {
|
|
6968
|
-
factoryAddress:
|
|
6969
|
-
classHash:
|
|
6905
|
+
factoryAddress: SN.popFactory,
|
|
6906
|
+
classHash: SN.popCollectionClassHash
|
|
6970
6907
|
}
|
|
6971
6908
|
},
|
|
6972
6909
|
uiVariant: "pop",
|
|
@@ -6985,8 +6922,8 @@ var SERVICES = {
|
|
|
6985
6922
|
provenance: "MEDIALANE",
|
|
6986
6923
|
onchain: {
|
|
6987
6924
|
STARKNET: {
|
|
6988
|
-
factoryAddress:
|
|
6989
|
-
classHash:
|
|
6925
|
+
factoryAddress: SN.dropFactory,
|
|
6926
|
+
classHash: SN.dropCollectionClassHash
|
|
6990
6927
|
}
|
|
6991
6928
|
},
|
|
6992
6929
|
uiVariant: "drop",
|
|
@@ -7005,9 +6942,9 @@ var SERVICES = {
|
|
|
7005
6942
|
provenance: "MEDIALANE",
|
|
7006
6943
|
onchain: {
|
|
7007
6944
|
STARKNET: {
|
|
7008
|
-
factoryAddress:
|
|
7009
|
-
classHash:
|
|
7010
|
-
startBlock:
|
|
6945
|
+
factoryAddress: SN.creatorCoinFactory,
|
|
6946
|
+
classHash: SN.creatorCoinFactoryClassHash,
|
|
6947
|
+
startBlock: SN.creatorCoinStartBlock
|
|
7011
6948
|
}
|
|
7012
6949
|
},
|
|
7013
6950
|
uiVariant: "coin",
|
|
@@ -7029,9 +6966,9 @@ var SERVICES = {
|
|
|
7029
6966
|
provenance: "MEDIALANE",
|
|
7030
6967
|
onchain: {
|
|
7031
6968
|
STARKNET: {
|
|
7032
|
-
factoryAddress:
|
|
7033
|
-
classHash:
|
|
7034
|
-
startBlock:
|
|
6969
|
+
factoryAddress: SN.marketplace721,
|
|
6970
|
+
classHash: SN.marketplace721ClassHash,
|
|
6971
|
+
startBlock: SN.marketplace721StartBlock
|
|
7035
6972
|
}
|
|
7036
6973
|
},
|
|
7037
6974
|
uiVariant: "standard",
|
|
@@ -7050,9 +6987,9 @@ var SERVICES = {
|
|
|
7050
6987
|
provenance: "MEDIALANE",
|
|
7051
6988
|
onchain: {
|
|
7052
6989
|
STARKNET: {
|
|
7053
|
-
factoryAddress:
|
|
7054
|
-
classHash:
|
|
7055
|
-
startBlock:
|
|
6990
|
+
factoryAddress: SN.marketplace1155,
|
|
6991
|
+
classHash: SN.marketplace1155ClassHash,
|
|
6992
|
+
startBlock: SN.marketplace1155StartBlock
|
|
7056
6993
|
}
|
|
7057
6994
|
},
|
|
7058
6995
|
uiVariant: "edition",
|
|
@@ -7106,6 +7043,6 @@ function getServicesByCapability(cap) {
|
|
|
7106
7043
|
);
|
|
7107
7044
|
}
|
|
7108
7045
|
|
|
7109
|
-
export { ADMIN_HEADERS, ADMIN_SCOPE, ApiClient, CHAINS, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY,
|
|
7046
|
+
export { ADMIN_HEADERS, ADMIN_SCOPE, ApiClient, CHAINS, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, CreatorCoinFactoryABI, CreatorCoinService, DEFAULT_CHAIN, DEFAULT_CURRENCY, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, FeeConfigSchema, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, LAUNCH_PRICE_QUOTE_PER_COIN, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, MedialaneError, OPEN_LICENSES, POPCollectionABI, POPFactoryABI, PUBLIC_RPC_FALLBACKS, PopService, SUPPORTED_TOKENS, VALIDATED_EKUBO_PARAMS, adminRequestDigest, build1155CancellationTypedData, build1155OrderTypedData, buildAdminSessionTypedData, buildCancellationTypedData, buildCreateCreatorCoinCall, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buybackQuoteRaw, toRaw as coinToRaw, createAdminSessionGrant, createFailoverFetch, encodeAdminHeaders, encodeByteArray, fdvHuman, formatAmount, getCoordinates, getCreatorCoinPrice, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAdminHeaders, parseAmount, parseCreatorCoinCreated, randomNonce, resolveConfig, resolveFeeConfig, sessionKeyHashOf, shortenAddress, signAdminRequest, stringifyBigInts, teamCoinsRaw, u256ToBigInt, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, verifyAdminRequestSig };
|
|
7110
7047
|
//# sourceMappingURL=index.js.map
|
|
7111
7048
|
//# sourceMappingURL=index.js.map
|