@medialane/sdk 0.22.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -23,7 +23,7 @@ declare const COLLECTION_721_START_BLOCK_MAINNET = 10046166;
|
|
|
23
23
|
declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
|
|
24
24
|
declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
|
|
25
25
|
/** NFTComments on-chain comment system — immutable, no admin key. */
|
|
26
|
-
declare const NFTCOMMENTS_CONTRACT_MAINNET = "
|
|
26
|
+
declare const NFTCOMMENTS_CONTRACT_MAINNET = "0x02cdac70c94447189af0389dfea63f4d5e4154ea8a563de288a5ab1c39e37843";
|
|
27
27
|
declare const SUPPORTED_TOKENS: readonly [{
|
|
28
28
|
readonly symbol: "USDC";
|
|
29
29
|
readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
|
|
@@ -496,7 +496,15 @@ interface ApiCollectionsQuery {
|
|
|
496
496
|
/** Filter by service id. */
|
|
497
497
|
service?: string;
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
/**
|
|
500
|
+
* Order lifecycle states. **Four canonical values** per `01-core-model §V`.
|
|
501
|
+
*
|
|
502
|
+
* The legacy `"COUNTER_OFFERED"` value was removed in 0.23.0 (audit P0-1
|
|
503
|
+
* Phase D). Counter-offers are linked orders via `parentOrderHash`, not a
|
|
504
|
+
* third lifecycle state on the parent bid. Use `ApiOrder.hasActiveCounterOffer`
|
|
505
|
+
* (added in 0.22.0) for the "this bid has been countered" affordance.
|
|
506
|
+
*/
|
|
507
|
+
type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
|
|
500
508
|
type SortOrder = "price_asc" | "price_desc" | "recent";
|
|
501
509
|
type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
502
510
|
type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
|
|
@@ -681,6 +689,12 @@ interface ApiCollection {
|
|
|
681
689
|
/** Token standard detected via ERC-165. */
|
|
682
690
|
standard: "ERC721" | "ERC1155" | "UNKNOWN";
|
|
683
691
|
isKnown: boolean;
|
|
692
|
+
/** Hidden by ops/admin (content moderation). When true, list endpoints
|
|
693
|
+
* already filter the row out; single-collection fetches still return
|
|
694
|
+
* it so the UI can render a "hidden" banner instead of a 404. */
|
|
695
|
+
isHidden: boolean;
|
|
696
|
+
/** Promoted on homepage / browse surfaces. */
|
|
697
|
+
isFeatured: boolean;
|
|
684
698
|
/** Stable Medialane service ID, or null for external collections.
|
|
685
699
|
* Resolve via getService() (05-service-model). Primary field. */
|
|
686
700
|
service: string | null;
|
|
@@ -1042,6 +1056,12 @@ interface ApiCreatorProfile {
|
|
|
1042
1056
|
bio: string | null;
|
|
1043
1057
|
avatarImage: string | null;
|
|
1044
1058
|
bannerImage: string | null;
|
|
1059
|
+
/** Computed fallback used by the creator-list / creator-page endpoints
|
|
1060
|
+
* ONLY when both `avatarImage` and `bannerImage` are null: image of
|
|
1061
|
+
* any collection owned by this creator. Undefined on profile-detail
|
|
1062
|
+
* endpoints where this lookup isn't performed. UI may use this to
|
|
1063
|
+
* populate hero banners without an extra fetch. */
|
|
1064
|
+
collectionImage?: string | null;
|
|
1045
1065
|
websiteUrl: string | null;
|
|
1046
1066
|
twitterUrl: string | null;
|
|
1047
1067
|
discordUrl: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare const COLLECTION_721_START_BLOCK_MAINNET = 10046166;
|
|
|
23
23
|
declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
|
|
24
24
|
declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
|
|
25
25
|
/** NFTComments on-chain comment system — immutable, no admin key. */
|
|
26
|
-
declare const NFTCOMMENTS_CONTRACT_MAINNET = "
|
|
26
|
+
declare const NFTCOMMENTS_CONTRACT_MAINNET = "0x02cdac70c94447189af0389dfea63f4d5e4154ea8a563de288a5ab1c39e37843";
|
|
27
27
|
declare const SUPPORTED_TOKENS: readonly [{
|
|
28
28
|
readonly symbol: "USDC";
|
|
29
29
|
readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
|
|
@@ -496,7 +496,15 @@ interface ApiCollectionsQuery {
|
|
|
496
496
|
/** Filter by service id. */
|
|
497
497
|
service?: string;
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
/**
|
|
500
|
+
* Order lifecycle states. **Four canonical values** per `01-core-model §V`.
|
|
501
|
+
*
|
|
502
|
+
* The legacy `"COUNTER_OFFERED"` value was removed in 0.23.0 (audit P0-1
|
|
503
|
+
* Phase D). Counter-offers are linked orders via `parentOrderHash`, not a
|
|
504
|
+
* third lifecycle state on the parent bid. Use `ApiOrder.hasActiveCounterOffer`
|
|
505
|
+
* (added in 0.22.0) for the "this bid has been countered" affordance.
|
|
506
|
+
*/
|
|
507
|
+
type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
|
|
500
508
|
type SortOrder = "price_asc" | "price_desc" | "recent";
|
|
501
509
|
type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
502
510
|
type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
|
|
@@ -681,6 +689,12 @@ interface ApiCollection {
|
|
|
681
689
|
/** Token standard detected via ERC-165. */
|
|
682
690
|
standard: "ERC721" | "ERC1155" | "UNKNOWN";
|
|
683
691
|
isKnown: boolean;
|
|
692
|
+
/** Hidden by ops/admin (content moderation). When true, list endpoints
|
|
693
|
+
* already filter the row out; single-collection fetches still return
|
|
694
|
+
* it so the UI can render a "hidden" banner instead of a 404. */
|
|
695
|
+
isHidden: boolean;
|
|
696
|
+
/** Promoted on homepage / browse surfaces. */
|
|
697
|
+
isFeatured: boolean;
|
|
684
698
|
/** Stable Medialane service ID, or null for external collections.
|
|
685
699
|
* Resolve via getService() (05-service-model). Primary field. */
|
|
686
700
|
service: string | null;
|
|
@@ -1042,6 +1056,12 @@ interface ApiCreatorProfile {
|
|
|
1042
1056
|
bio: string | null;
|
|
1043
1057
|
avatarImage: string | null;
|
|
1044
1058
|
bannerImage: string | null;
|
|
1059
|
+
/** Computed fallback used by the creator-list / creator-page endpoints
|
|
1060
|
+
* ONLY when both `avatarImage` and `bannerImage` are null: image of
|
|
1061
|
+
* any collection owned by this creator. Undefined on profile-detail
|
|
1062
|
+
* endpoints where this lookup isn't performed. UI may use this to
|
|
1063
|
+
* populate hero banners without an extra fetch. */
|
|
1064
|
+
collectionImage?: string | null;
|
|
1045
1065
|
websiteUrl: string | null;
|
|
1046
1066
|
twitterUrl: string | null;
|
|
1047
1067
|
discordUrl: string | null;
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var IPCOLLECTION_CLASS_HASH_MAINNET = "0x287ccdff8b6655a2248cfe170d82eae3a35303c
|
|
|
16
16
|
var COLLECTION_721_START_BLOCK_MAINNET = 10046166;
|
|
17
17
|
var DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
|
|
18
18
|
var POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
|
|
19
|
-
var NFTCOMMENTS_CONTRACT_MAINNET = "
|
|
19
|
+
var NFTCOMMENTS_CONTRACT_MAINNET = "0x02cdac70c94447189af0389dfea63f4d5e4154ea8a563de288a5ab1c39e37843";
|
|
20
20
|
var SUPPORTED_TOKENS = [
|
|
21
21
|
{
|
|
22
22
|
// Circle-native USDC on Starknet (canonical)
|