@medialane/sdk 0.18.0 → 0.20.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 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +159 -1
- package/dist/index.d.ts +159 -1
- package/dist/index.js +29 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1848,6 +1848,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1848
1848
|
readonly kind: "nested";
|
|
1849
1849
|
}];
|
|
1850
1850
|
}];
|
|
1851
|
+
|
|
1851
1852
|
declare const POPCollectionABI: readonly [{
|
|
1852
1853
|
readonly type: "struct";
|
|
1853
1854
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -1958,6 +1959,7 @@ declare const POPCollectionABI: readonly [{
|
|
|
1958
1959
|
}];
|
|
1959
1960
|
readonly state_mutability: "view";
|
|
1960
1961
|
}];
|
|
1962
|
+
|
|
1961
1963
|
declare const POPFactoryABI: readonly [{
|
|
1962
1964
|
readonly type: "struct";
|
|
1963
1965
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -2044,6 +2046,7 @@ declare const POPFactoryABI: readonly [{
|
|
|
2044
2046
|
readonly outputs: readonly [];
|
|
2045
2047
|
readonly state_mutability: "external";
|
|
2046
2048
|
}];
|
|
2049
|
+
|
|
2047
2050
|
declare const DropCollectionABI: readonly [{
|
|
2048
2051
|
readonly type: "struct";
|
|
2049
2052
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -2260,6 +2263,7 @@ declare const DropCollectionABI: readonly [{
|
|
|
2260
2263
|
}];
|
|
2261
2264
|
readonly state_mutability: "view";
|
|
2262
2265
|
}];
|
|
2266
|
+
|
|
2263
2267
|
declare const DropFactoryABI: readonly [{
|
|
2264
2268
|
readonly type: "struct";
|
|
2265
2269
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -2387,6 +2391,7 @@ declare const DropFactoryABI: readonly [{
|
|
|
2387
2391
|
readonly outputs: readonly [];
|
|
2388
2392
|
readonly state_mutability: "external";
|
|
2389
2393
|
}];
|
|
2394
|
+
|
|
2390
2395
|
declare const CollectionRegistryABI: readonly [{
|
|
2391
2396
|
readonly type: "struct";
|
|
2392
2397
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -2442,6 +2447,7 @@ declare const CollectionRegistryABI: readonly [{
|
|
|
2442
2447
|
}];
|
|
2443
2448
|
readonly state_mutability: "view";
|
|
2444
2449
|
}];
|
|
2450
|
+
|
|
2445
2451
|
declare const Medialane1155ABI: readonly [{
|
|
2446
2452
|
readonly type: "impl";
|
|
2447
2453
|
readonly name: "Medialane1155V2Impl";
|
|
@@ -2805,6 +2811,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2805
2811
|
readonly kind: "flat";
|
|
2806
2812
|
}];
|
|
2807
2813
|
}];
|
|
2814
|
+
|
|
2808
2815
|
declare const IPCollection1155FactoryABI: readonly [{
|
|
2809
2816
|
readonly type: "impl";
|
|
2810
2817
|
readonly name: "IPCollectionFactoryImpl";
|
|
@@ -3019,6 +3026,7 @@ declare const IPCollection1155FactoryABI: readonly [{
|
|
|
3019
3026
|
readonly kind: "nested";
|
|
3020
3027
|
}];
|
|
3021
3028
|
}];
|
|
3029
|
+
|
|
3022
3030
|
declare const IPCollection1155ABI: readonly [{
|
|
3023
3031
|
readonly type: "impl";
|
|
3024
3032
|
readonly name: "ERC1155MetadataURIImpl";
|
|
@@ -3818,6 +3826,7 @@ declare const IPCollection1155ABI: readonly [{
|
|
|
3818
3826
|
readonly kind: "nested";
|
|
3819
3827
|
}];
|
|
3820
3828
|
}];
|
|
3829
|
+
|
|
3821
3830
|
declare const IPCollectionABI: readonly [{
|
|
3822
3831
|
readonly type: "impl";
|
|
3823
3832
|
readonly name: "IPCollectionImpl";
|
|
@@ -4382,6 +4391,7 @@ declare const IPCollectionABI: readonly [{
|
|
|
4382
4391
|
readonly kind: "nested";
|
|
4383
4392
|
}];
|
|
4384
4393
|
}];
|
|
4394
|
+
|
|
4385
4395
|
declare const IPNftABI: readonly [{
|
|
4386
4396
|
readonly type: "impl";
|
|
4387
4397
|
readonly name: "ERC721Metadata";
|
|
@@ -4996,6 +5006,154 @@ declare const IPNftABI: readonly [{
|
|
|
4996
5006
|
}];
|
|
4997
5007
|
}];
|
|
4998
5008
|
|
|
5009
|
+
/**
|
|
5010
|
+
* The Medialane service registry (05-service-model §II, §VI).
|
|
5011
|
+
* Canonical long-form IDs (01-core-model §III). SDK-resident in v1;
|
|
5012
|
+
* on-chain registry in year 2 (08-dao-governance §IV).
|
|
5013
|
+
*
|
|
5014
|
+
* Year-2 forward-compat: cross-account identity uses the future `AccountID`
|
|
5015
|
+
* contract (07-identity-model §IV) — no field here yet, intentionally.
|
|
5016
|
+
*
|
|
5017
|
+
* Phase 2B.2 of the service-model refactor. `ip-erc721` has no dedicated
|
|
5018
|
+
* on-chain constant in src/constants.ts, so its `onchain` is omitted rather
|
|
5019
|
+
* than invented (the genesis contract address ships with that service).
|
|
5020
|
+
*/
|
|
5021
|
+
declare const SERVICES: {
|
|
5022
|
+
readonly "mip-erc721": {
|
|
5023
|
+
readonly id: "mip-erc721";
|
|
5024
|
+
readonly displayName: "IP Collection";
|
|
5025
|
+
readonly description: "Tokenize intellectual property as a per-creator ERC-721 collection.";
|
|
5026
|
+
readonly standard: "ERC721";
|
|
5027
|
+
readonly provenance: "MEDIALANE";
|
|
5028
|
+
readonly onchain: {
|
|
5029
|
+
readonly factoryAddress: "0x0322cb7119955e01ac778d40976eb3ba50540bb0899f812d612f9c7e63e49fd2";
|
|
5030
|
+
readonly startBlock: 10046166;
|
|
5031
|
+
};
|
|
5032
|
+
readonly uiVariant: "standard";
|
|
5033
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"];
|
|
5034
|
+
readonly metadataSchema: {
|
|
5035
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5036
|
+
};
|
|
5037
|
+
};
|
|
5038
|
+
readonly "ip-erc721": {
|
|
5039
|
+
readonly id: "ip-erc721";
|
|
5040
|
+
readonly displayName: "Programmable IP (genesis)";
|
|
5041
|
+
readonly description: "One shared ERC-721 contract; many wallets mint genesis pieces.";
|
|
5042
|
+
readonly standard: "ERC721";
|
|
5043
|
+
readonly provenance: "MEDIALANE";
|
|
5044
|
+
readonly uiVariant: "standard";
|
|
5045
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"];
|
|
5046
|
+
readonly metadataSchema: {
|
|
5047
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5048
|
+
};
|
|
5049
|
+
};
|
|
5050
|
+
readonly "mip-erc1155": {
|
|
5051
|
+
readonly id: "mip-erc1155";
|
|
5052
|
+
readonly displayName: "NFT Editions";
|
|
5053
|
+
readonly description: "Per-creator ERC-1155 collection; creator mints editions.";
|
|
5054
|
+
readonly standard: "ERC1155";
|
|
5055
|
+
readonly provenance: "MEDIALANE";
|
|
5056
|
+
readonly onchain: {
|
|
5057
|
+
readonly factoryAddress: "0x067064adcaaed61e17bf50ea802ea6482336126aec5b4d032b4ff8fbb5009131";
|
|
5058
|
+
readonly classHash: "0x281e13803c906f20bbe158efb44b7a0273c56fdebbeeb55b2ba59530ddb1c80";
|
|
5059
|
+
readonly startBlock: 10045611;
|
|
5060
|
+
};
|
|
5061
|
+
readonly uiVariant: "edition";
|
|
5062
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"];
|
|
5063
|
+
readonly metadataSchema: {
|
|
5064
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5065
|
+
};
|
|
5066
|
+
};
|
|
5067
|
+
readonly "pop-protocol": {
|
|
5068
|
+
readonly id: "pop-protocol";
|
|
5069
|
+
readonly displayName: "POP Protocol";
|
|
5070
|
+
readonly description: "Soulbound proof-of-presence collectibles per event.";
|
|
5071
|
+
readonly standard: "ERC721";
|
|
5072
|
+
readonly provenance: "MEDIALANE";
|
|
5073
|
+
readonly onchain: {
|
|
5074
|
+
readonly factoryAddress: "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
|
|
5075
|
+
readonly classHash: "0x077c421686f10851872561953ea16898d933364b7f8937a5d7e2b1ba0a36263f";
|
|
5076
|
+
};
|
|
5077
|
+
readonly uiVariant: "pop";
|
|
5078
|
+
readonly capabilities: ["claim", "transfer"];
|
|
5079
|
+
readonly metadataSchema: {
|
|
5080
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5081
|
+
};
|
|
5082
|
+
};
|
|
5083
|
+
readonly "drop-collection": {
|
|
5084
|
+
readonly id: "drop-collection";
|
|
5085
|
+
readonly displayName: "Collection Drop";
|
|
5086
|
+
readonly description: "Sequential mint with claim windows + allowlist.";
|
|
5087
|
+
readonly standard: "ERC721";
|
|
5088
|
+
readonly provenance: "MEDIALANE";
|
|
5089
|
+
readonly onchain: {
|
|
5090
|
+
readonly factoryAddress: "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
|
|
5091
|
+
readonly classHash: "0x00092e72cdb63067521e803aaf7d4101c3e3ce026ae6bc045ec4228027e58282";
|
|
5092
|
+
};
|
|
5093
|
+
readonly uiVariant: "drop";
|
|
5094
|
+
readonly capabilities: ["claim", "list", "buy", "make_offer", "cancel", "transfer"];
|
|
5095
|
+
readonly metadataSchema: {
|
|
5096
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5097
|
+
};
|
|
5098
|
+
};
|
|
5099
|
+
readonly "medialane-marketplace-erc721": {
|
|
5100
|
+
readonly id: "medialane-marketplace-erc721";
|
|
5101
|
+
readonly displayName: "Medialane Marketplace (ERC-721)";
|
|
5102
|
+
readonly description: "ERC-721 order matching venue.";
|
|
5103
|
+
readonly standard: "ERC721";
|
|
5104
|
+
readonly provenance: "MEDIALANE";
|
|
5105
|
+
readonly onchain: {
|
|
5106
|
+
readonly factoryAddress: "0x00f8ccaae0bc811c79605974cc1dab769b9cea8877f033f8e3c17f30457caba6";
|
|
5107
|
+
readonly classHash: "0x03dff4f34b976207246207954263be9a28b51390321702443291088dcdf4b2e6";
|
|
5108
|
+
readonly startBlock: 9196722;
|
|
5109
|
+
};
|
|
5110
|
+
readonly uiVariant: "standard";
|
|
5111
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
5112
|
+
};
|
|
5113
|
+
readonly "medialane-marketplace-erc1155": {
|
|
5114
|
+
readonly id: "medialane-marketplace-erc1155";
|
|
5115
|
+
readonly displayName: "Medialane Marketplace (ERC-1155)";
|
|
5116
|
+
readonly description: "ERC-1155 order matching venue.";
|
|
5117
|
+
readonly standard: "ERC1155";
|
|
5118
|
+
readonly provenance: "MEDIALANE";
|
|
5119
|
+
readonly onchain: {
|
|
5120
|
+
readonly factoryAddress: "0x02bfa521c25461a09d735889b469418608d7d92f8b26e3d37ef174a4c2e22f99";
|
|
5121
|
+
readonly classHash: "0x01b674aad934be85abc7c1970265cbf7e9bc7d586a90f0a67112c201636dbdd3";
|
|
5122
|
+
readonly startBlock: 9260304;
|
|
5123
|
+
};
|
|
5124
|
+
readonly uiVariant: "edition";
|
|
5125
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
5126
|
+
};
|
|
5127
|
+
readonly "external-erc721": {
|
|
5128
|
+
readonly id: "external-erc721";
|
|
5129
|
+
readonly displayName: "External ERC-721";
|
|
5130
|
+
readonly description: "ERC-721 contract not deployed via a Medialane service.";
|
|
5131
|
+
readonly standard: "ERC721";
|
|
5132
|
+
readonly provenance: "EXTERNAL";
|
|
5133
|
+
readonly uiVariant: "standard";
|
|
5134
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer"];
|
|
5135
|
+
};
|
|
5136
|
+
readonly "external-erc1155": {
|
|
5137
|
+
readonly id: "external-erc1155";
|
|
5138
|
+
readonly displayName: "External ERC-1155";
|
|
5139
|
+
readonly description: "ERC-1155 contract not deployed via a Medialane service.";
|
|
5140
|
+
readonly standard: "ERC1155";
|
|
5141
|
+
readonly provenance: "EXTERNAL";
|
|
5142
|
+
readonly uiVariant: "edition";
|
|
5143
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer"];
|
|
5144
|
+
};
|
|
5145
|
+
};
|
|
5146
|
+
/**
|
|
5147
|
+
* Literal-union of every registered service ID. Use this as the type for
|
|
5148
|
+
* `Collection.service` write sites in consumers — typos like "pop_protocol"
|
|
5149
|
+
* (underscore instead of hyphen) become compile errors.
|
|
5150
|
+
*
|
|
5151
|
+
* `getService()` still accepts loose `string` for read-side lookups where the
|
|
5152
|
+
* value came from the DB and is trusted to already be valid.
|
|
5153
|
+
*/
|
|
5154
|
+
type ServiceId = keyof typeof SERVICES;
|
|
5155
|
+
/** Type guard: narrows a string to ServiceId if it's registered. */
|
|
5156
|
+
declare function isServiceId(id: string | null | undefined): id is ServiceId;
|
|
4999
5157
|
/** Lookup. Returns undefined for unregistered service IDs — callers should
|
|
5000
5158
|
* treat that as a data error, since every Collection.service value is
|
|
5001
5159
|
* expected to map to a registered ServiceDefinition. */
|
|
@@ -5081,4 +5239,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
|
|
|
5081
5239
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
5082
5240
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
5083
5241
|
|
|
5084
|
-
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, 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 FeeConfig, FeeConfigSchema, type FeeSurface, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, type IPType, 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, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type ResolvedFeeConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, listServices, normalizeAddress, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
|
5242
|
+
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, 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 FeeConfig, FeeConfigSchema, type FeeSurface, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, type IPType, 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, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type ResolvedFeeConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type ServiceId, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, listServices, normalizeAddress, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1848,6 +1848,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1848
1848
|
readonly kind: "nested";
|
|
1849
1849
|
}];
|
|
1850
1850
|
}];
|
|
1851
|
+
|
|
1851
1852
|
declare const POPCollectionABI: readonly [{
|
|
1852
1853
|
readonly type: "struct";
|
|
1853
1854
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -1958,6 +1959,7 @@ declare const POPCollectionABI: readonly [{
|
|
|
1958
1959
|
}];
|
|
1959
1960
|
readonly state_mutability: "view";
|
|
1960
1961
|
}];
|
|
1962
|
+
|
|
1961
1963
|
declare const POPFactoryABI: readonly [{
|
|
1962
1964
|
readonly type: "struct";
|
|
1963
1965
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -2044,6 +2046,7 @@ declare const POPFactoryABI: readonly [{
|
|
|
2044
2046
|
readonly outputs: readonly [];
|
|
2045
2047
|
readonly state_mutability: "external";
|
|
2046
2048
|
}];
|
|
2049
|
+
|
|
2047
2050
|
declare const DropCollectionABI: readonly [{
|
|
2048
2051
|
readonly type: "struct";
|
|
2049
2052
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -2260,6 +2263,7 @@ declare const DropCollectionABI: readonly [{
|
|
|
2260
2263
|
}];
|
|
2261
2264
|
readonly state_mutability: "view";
|
|
2262
2265
|
}];
|
|
2266
|
+
|
|
2263
2267
|
declare const DropFactoryABI: readonly [{
|
|
2264
2268
|
readonly type: "struct";
|
|
2265
2269
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -2387,6 +2391,7 @@ declare const DropFactoryABI: readonly [{
|
|
|
2387
2391
|
readonly outputs: readonly [];
|
|
2388
2392
|
readonly state_mutability: "external";
|
|
2389
2393
|
}];
|
|
2394
|
+
|
|
2390
2395
|
declare const CollectionRegistryABI: readonly [{
|
|
2391
2396
|
readonly type: "struct";
|
|
2392
2397
|
readonly name: "core::byte_array::ByteArray";
|
|
@@ -2442,6 +2447,7 @@ declare const CollectionRegistryABI: readonly [{
|
|
|
2442
2447
|
}];
|
|
2443
2448
|
readonly state_mutability: "view";
|
|
2444
2449
|
}];
|
|
2450
|
+
|
|
2445
2451
|
declare const Medialane1155ABI: readonly [{
|
|
2446
2452
|
readonly type: "impl";
|
|
2447
2453
|
readonly name: "Medialane1155V2Impl";
|
|
@@ -2805,6 +2811,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2805
2811
|
readonly kind: "flat";
|
|
2806
2812
|
}];
|
|
2807
2813
|
}];
|
|
2814
|
+
|
|
2808
2815
|
declare const IPCollection1155FactoryABI: readonly [{
|
|
2809
2816
|
readonly type: "impl";
|
|
2810
2817
|
readonly name: "IPCollectionFactoryImpl";
|
|
@@ -3019,6 +3026,7 @@ declare const IPCollection1155FactoryABI: readonly [{
|
|
|
3019
3026
|
readonly kind: "nested";
|
|
3020
3027
|
}];
|
|
3021
3028
|
}];
|
|
3029
|
+
|
|
3022
3030
|
declare const IPCollection1155ABI: readonly [{
|
|
3023
3031
|
readonly type: "impl";
|
|
3024
3032
|
readonly name: "ERC1155MetadataURIImpl";
|
|
@@ -3818,6 +3826,7 @@ declare const IPCollection1155ABI: readonly [{
|
|
|
3818
3826
|
readonly kind: "nested";
|
|
3819
3827
|
}];
|
|
3820
3828
|
}];
|
|
3829
|
+
|
|
3821
3830
|
declare const IPCollectionABI: readonly [{
|
|
3822
3831
|
readonly type: "impl";
|
|
3823
3832
|
readonly name: "IPCollectionImpl";
|
|
@@ -4382,6 +4391,7 @@ declare const IPCollectionABI: readonly [{
|
|
|
4382
4391
|
readonly kind: "nested";
|
|
4383
4392
|
}];
|
|
4384
4393
|
}];
|
|
4394
|
+
|
|
4385
4395
|
declare const IPNftABI: readonly [{
|
|
4386
4396
|
readonly type: "impl";
|
|
4387
4397
|
readonly name: "ERC721Metadata";
|
|
@@ -4996,6 +5006,154 @@ declare const IPNftABI: readonly [{
|
|
|
4996
5006
|
}];
|
|
4997
5007
|
}];
|
|
4998
5008
|
|
|
5009
|
+
/**
|
|
5010
|
+
* The Medialane service registry (05-service-model §II, §VI).
|
|
5011
|
+
* Canonical long-form IDs (01-core-model §III). SDK-resident in v1;
|
|
5012
|
+
* on-chain registry in year 2 (08-dao-governance §IV).
|
|
5013
|
+
*
|
|
5014
|
+
* Year-2 forward-compat: cross-account identity uses the future `AccountID`
|
|
5015
|
+
* contract (07-identity-model §IV) — no field here yet, intentionally.
|
|
5016
|
+
*
|
|
5017
|
+
* Phase 2B.2 of the service-model refactor. `ip-erc721` has no dedicated
|
|
5018
|
+
* on-chain constant in src/constants.ts, so its `onchain` is omitted rather
|
|
5019
|
+
* than invented (the genesis contract address ships with that service).
|
|
5020
|
+
*/
|
|
5021
|
+
declare const SERVICES: {
|
|
5022
|
+
readonly "mip-erc721": {
|
|
5023
|
+
readonly id: "mip-erc721";
|
|
5024
|
+
readonly displayName: "IP Collection";
|
|
5025
|
+
readonly description: "Tokenize intellectual property as a per-creator ERC-721 collection.";
|
|
5026
|
+
readonly standard: "ERC721";
|
|
5027
|
+
readonly provenance: "MEDIALANE";
|
|
5028
|
+
readonly onchain: {
|
|
5029
|
+
readonly factoryAddress: "0x0322cb7119955e01ac778d40976eb3ba50540bb0899f812d612f9c7e63e49fd2";
|
|
5030
|
+
readonly startBlock: 10046166;
|
|
5031
|
+
};
|
|
5032
|
+
readonly uiVariant: "standard";
|
|
5033
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"];
|
|
5034
|
+
readonly metadataSchema: {
|
|
5035
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5036
|
+
};
|
|
5037
|
+
};
|
|
5038
|
+
readonly "ip-erc721": {
|
|
5039
|
+
readonly id: "ip-erc721";
|
|
5040
|
+
readonly displayName: "Programmable IP (genesis)";
|
|
5041
|
+
readonly description: "One shared ERC-721 contract; many wallets mint genesis pieces.";
|
|
5042
|
+
readonly standard: "ERC721";
|
|
5043
|
+
readonly provenance: "MEDIALANE";
|
|
5044
|
+
readonly uiVariant: "standard";
|
|
5045
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"];
|
|
5046
|
+
readonly metadataSchema: {
|
|
5047
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5048
|
+
};
|
|
5049
|
+
};
|
|
5050
|
+
readonly "mip-erc1155": {
|
|
5051
|
+
readonly id: "mip-erc1155";
|
|
5052
|
+
readonly displayName: "NFT Editions";
|
|
5053
|
+
readonly description: "Per-creator ERC-1155 collection; creator mints editions.";
|
|
5054
|
+
readonly standard: "ERC1155";
|
|
5055
|
+
readonly provenance: "MEDIALANE";
|
|
5056
|
+
readonly onchain: {
|
|
5057
|
+
readonly factoryAddress: "0x067064adcaaed61e17bf50ea802ea6482336126aec5b4d032b4ff8fbb5009131";
|
|
5058
|
+
readonly classHash: "0x281e13803c906f20bbe158efb44b7a0273c56fdebbeeb55b2ba59530ddb1c80";
|
|
5059
|
+
readonly startBlock: 10045611;
|
|
5060
|
+
};
|
|
5061
|
+
readonly uiVariant: "edition";
|
|
5062
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"];
|
|
5063
|
+
readonly metadataSchema: {
|
|
5064
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5065
|
+
};
|
|
5066
|
+
};
|
|
5067
|
+
readonly "pop-protocol": {
|
|
5068
|
+
readonly id: "pop-protocol";
|
|
5069
|
+
readonly displayName: "POP Protocol";
|
|
5070
|
+
readonly description: "Soulbound proof-of-presence collectibles per event.";
|
|
5071
|
+
readonly standard: "ERC721";
|
|
5072
|
+
readonly provenance: "MEDIALANE";
|
|
5073
|
+
readonly onchain: {
|
|
5074
|
+
readonly factoryAddress: "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
|
|
5075
|
+
readonly classHash: "0x077c421686f10851872561953ea16898d933364b7f8937a5d7e2b1ba0a36263f";
|
|
5076
|
+
};
|
|
5077
|
+
readonly uiVariant: "pop";
|
|
5078
|
+
readonly capabilities: ["claim", "transfer"];
|
|
5079
|
+
readonly metadataSchema: {
|
|
5080
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5081
|
+
};
|
|
5082
|
+
};
|
|
5083
|
+
readonly "drop-collection": {
|
|
5084
|
+
readonly id: "drop-collection";
|
|
5085
|
+
readonly displayName: "Collection Drop";
|
|
5086
|
+
readonly description: "Sequential mint with claim windows + allowlist.";
|
|
5087
|
+
readonly standard: "ERC721";
|
|
5088
|
+
readonly provenance: "MEDIALANE";
|
|
5089
|
+
readonly onchain: {
|
|
5090
|
+
readonly factoryAddress: "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
|
|
5091
|
+
readonly classHash: "0x00092e72cdb63067521e803aaf7d4101c3e3ce026ae6bc045ec4228027e58282";
|
|
5092
|
+
};
|
|
5093
|
+
readonly uiVariant: "drop";
|
|
5094
|
+
readonly capabilities: ["claim", "list", "buy", "make_offer", "cancel", "transfer"];
|
|
5095
|
+
readonly metadataSchema: {
|
|
5096
|
+
readonly licenseDefault: "CC BY-SA";
|
|
5097
|
+
};
|
|
5098
|
+
};
|
|
5099
|
+
readonly "medialane-marketplace-erc721": {
|
|
5100
|
+
readonly id: "medialane-marketplace-erc721";
|
|
5101
|
+
readonly displayName: "Medialane Marketplace (ERC-721)";
|
|
5102
|
+
readonly description: "ERC-721 order matching venue.";
|
|
5103
|
+
readonly standard: "ERC721";
|
|
5104
|
+
readonly provenance: "MEDIALANE";
|
|
5105
|
+
readonly onchain: {
|
|
5106
|
+
readonly factoryAddress: "0x00f8ccaae0bc811c79605974cc1dab769b9cea8877f033f8e3c17f30457caba6";
|
|
5107
|
+
readonly classHash: "0x03dff4f34b976207246207954263be9a28b51390321702443291088dcdf4b2e6";
|
|
5108
|
+
readonly startBlock: 9196722;
|
|
5109
|
+
};
|
|
5110
|
+
readonly uiVariant: "standard";
|
|
5111
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
5112
|
+
};
|
|
5113
|
+
readonly "medialane-marketplace-erc1155": {
|
|
5114
|
+
readonly id: "medialane-marketplace-erc1155";
|
|
5115
|
+
readonly displayName: "Medialane Marketplace (ERC-1155)";
|
|
5116
|
+
readonly description: "ERC-1155 order matching venue.";
|
|
5117
|
+
readonly standard: "ERC1155";
|
|
5118
|
+
readonly provenance: "MEDIALANE";
|
|
5119
|
+
readonly onchain: {
|
|
5120
|
+
readonly factoryAddress: "0x02bfa521c25461a09d735889b469418608d7d92f8b26e3d37ef174a4c2e22f99";
|
|
5121
|
+
readonly classHash: "0x01b674aad934be85abc7c1970265cbf7e9bc7d586a90f0a67112c201636dbdd3";
|
|
5122
|
+
readonly startBlock: 9260304;
|
|
5123
|
+
};
|
|
5124
|
+
readonly uiVariant: "edition";
|
|
5125
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
5126
|
+
};
|
|
5127
|
+
readonly "external-erc721": {
|
|
5128
|
+
readonly id: "external-erc721";
|
|
5129
|
+
readonly displayName: "External ERC-721";
|
|
5130
|
+
readonly description: "ERC-721 contract not deployed via a Medialane service.";
|
|
5131
|
+
readonly standard: "ERC721";
|
|
5132
|
+
readonly provenance: "EXTERNAL";
|
|
5133
|
+
readonly uiVariant: "standard";
|
|
5134
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer"];
|
|
5135
|
+
};
|
|
5136
|
+
readonly "external-erc1155": {
|
|
5137
|
+
readonly id: "external-erc1155";
|
|
5138
|
+
readonly displayName: "External ERC-1155";
|
|
5139
|
+
readonly description: "ERC-1155 contract not deployed via a Medialane service.";
|
|
5140
|
+
readonly standard: "ERC1155";
|
|
5141
|
+
readonly provenance: "EXTERNAL";
|
|
5142
|
+
readonly uiVariant: "edition";
|
|
5143
|
+
readonly capabilities: ["list", "buy", "make_offer", "cancel", "transfer"];
|
|
5144
|
+
};
|
|
5145
|
+
};
|
|
5146
|
+
/**
|
|
5147
|
+
* Literal-union of every registered service ID. Use this as the type for
|
|
5148
|
+
* `Collection.service` write sites in consumers — typos like "pop_protocol"
|
|
5149
|
+
* (underscore instead of hyphen) become compile errors.
|
|
5150
|
+
*
|
|
5151
|
+
* `getService()` still accepts loose `string` for read-side lookups where the
|
|
5152
|
+
* value came from the DB and is trusted to already be valid.
|
|
5153
|
+
*/
|
|
5154
|
+
type ServiceId = keyof typeof SERVICES;
|
|
5155
|
+
/** Type guard: narrows a string to ServiceId if it's registered. */
|
|
5156
|
+
declare function isServiceId(id: string | null | undefined): id is ServiceId;
|
|
4999
5157
|
/** Lookup. Returns undefined for unregistered service IDs — callers should
|
|
5000
5158
|
* treat that as a data error, since every Collection.service value is
|
|
5001
5159
|
* expected to map to a registered ServiceDefinition. */
|
|
@@ -5081,4 +5239,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
|
|
|
5081
5239
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
5082
5240
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
5083
5241
|
|
|
5084
|
-
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, 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 FeeConfig, FeeConfigSchema, type FeeSurface, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, type IPType, 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, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type ResolvedFeeConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, listServices, normalizeAddress, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
|
5242
|
+
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, 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 FeeConfig, FeeConfigSchema, type FeeSurface, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, type IPType, 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, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type ResolvedFeeConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type ServiceId, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, listServices, normalizeAddress, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
package/dist/index.js
CHANGED
|
@@ -277,7 +277,7 @@ function encodeByteArray(str) {
|
|
|
277
277
|
];
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
// src/abis.ts
|
|
280
|
+
// src/abis/ipMarketplace.ts
|
|
281
281
|
var IPMarketplaceABI = [
|
|
282
282
|
{
|
|
283
283
|
type: "impl",
|
|
@@ -584,6 +584,8 @@ var IPMarketplaceABI = [
|
|
|
584
584
|
]
|
|
585
585
|
}
|
|
586
586
|
];
|
|
587
|
+
|
|
588
|
+
// src/abis/popCollection.ts
|
|
587
589
|
var POPCollectionABI = [
|
|
588
590
|
{
|
|
589
591
|
type: "struct",
|
|
@@ -671,6 +673,8 @@ var POPCollectionABI = [
|
|
|
671
673
|
state_mutability: "view"
|
|
672
674
|
}
|
|
673
675
|
];
|
|
676
|
+
|
|
677
|
+
// src/abis/popFactory.ts
|
|
674
678
|
var POPFactoryABI = [
|
|
675
679
|
{
|
|
676
680
|
type: "struct",
|
|
@@ -726,6 +730,8 @@ var POPFactoryABI = [
|
|
|
726
730
|
state_mutability: "external"
|
|
727
731
|
}
|
|
728
732
|
];
|
|
733
|
+
|
|
734
|
+
// src/abis/dropCollection.ts
|
|
729
735
|
var DropCollectionABI = [
|
|
730
736
|
{
|
|
731
737
|
type: "struct",
|
|
@@ -895,6 +901,8 @@ var DropCollectionABI = [
|
|
|
895
901
|
state_mutability: "view"
|
|
896
902
|
}
|
|
897
903
|
];
|
|
904
|
+
|
|
905
|
+
// src/abis/dropFactory.ts
|
|
898
906
|
var DropFactoryABI = [
|
|
899
907
|
{
|
|
900
908
|
type: "struct",
|
|
@@ -982,6 +990,8 @@ var DropFactoryABI = [
|
|
|
982
990
|
state_mutability: "external"
|
|
983
991
|
}
|
|
984
992
|
];
|
|
993
|
+
|
|
994
|
+
// src/abis/collectionRegistry.ts
|
|
985
995
|
var CollectionRegistryABI = [
|
|
986
996
|
{
|
|
987
997
|
type: "struct",
|
|
@@ -1018,6 +1028,8 @@ var CollectionRegistryABI = [
|
|
|
1018
1028
|
state_mutability: "view"
|
|
1019
1029
|
}
|
|
1020
1030
|
];
|
|
1031
|
+
|
|
1032
|
+
// src/abis/medialane1155.ts
|
|
1021
1033
|
var Medialane1155ABI = [
|
|
1022
1034
|
{
|
|
1023
1035
|
"type": "impl",
|
|
@@ -1511,6 +1523,8 @@ var Medialane1155ABI = [
|
|
|
1511
1523
|
]
|
|
1512
1524
|
}
|
|
1513
1525
|
];
|
|
1526
|
+
|
|
1527
|
+
// src/abis/ipCollection1155Factory.ts
|
|
1514
1528
|
var IPCollection1155FactoryABI = [
|
|
1515
1529
|
{
|
|
1516
1530
|
"type": "impl",
|
|
@@ -1796,6 +1810,8 @@ var IPCollection1155FactoryABI = [
|
|
|
1796
1810
|
]
|
|
1797
1811
|
}
|
|
1798
1812
|
];
|
|
1813
|
+
|
|
1814
|
+
// src/abis/ipCollection1155.ts
|
|
1799
1815
|
var IPCollection1155ABI = [
|
|
1800
1816
|
{
|
|
1801
1817
|
"type": "impl",
|
|
@@ -2877,6 +2893,8 @@ var IPCollection1155ABI = [
|
|
|
2877
2893
|
]
|
|
2878
2894
|
}
|
|
2879
2895
|
];
|
|
2896
|
+
|
|
2897
|
+
// src/abis/ipCollection.ts
|
|
2880
2898
|
var IPCollectionABI = [
|
|
2881
2899
|
{
|
|
2882
2900
|
"type": "impl",
|
|
@@ -3640,6 +3658,8 @@ var IPCollectionABI = [
|
|
|
3640
3658
|
]
|
|
3641
3659
|
}
|
|
3642
3660
|
];
|
|
3661
|
+
|
|
3662
|
+
// src/abis/ipNft.ts
|
|
3643
3663
|
var IPNftABI = [
|
|
3644
3664
|
{
|
|
3645
3665
|
"type": "impl",
|
|
@@ -6352,16 +6372,21 @@ var SERVICES = {
|
|
|
6352
6372
|
capabilities: ["list", "buy", "make_offer", "cancel", "transfer"]
|
|
6353
6373
|
}
|
|
6354
6374
|
};
|
|
6375
|
+
function isServiceId(id) {
|
|
6376
|
+
return typeof id === "string" && id in SERVICES;
|
|
6377
|
+
}
|
|
6355
6378
|
function getService(id) {
|
|
6356
|
-
return id ? SERVICES[id] : void 0;
|
|
6379
|
+
return id && id in SERVICES ? SERVICES[id] : void 0;
|
|
6357
6380
|
}
|
|
6358
6381
|
function listServices() {
|
|
6359
6382
|
return Object.values(SERVICES);
|
|
6360
6383
|
}
|
|
6361
6384
|
function getServicesByCapability(cap) {
|
|
6362
|
-
return Object.values(SERVICES).filter(
|
|
6385
|
+
return Object.values(SERVICES).filter(
|
|
6386
|
+
(s) => s.capabilities.includes(cap)
|
|
6387
|
+
);
|
|
6363
6388
|
}
|
|
6364
6389
|
|
|
6365
|
-
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, PopService, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, listServices, normalizeAddress, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
|
6390
|
+
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, PopService, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, listServices, normalizeAddress, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|
|
6366
6391
|
//# sourceMappingURL=index.js.map
|
|
6367
6392
|
//# sourceMappingURL=index.js.map
|