@medialane/sdk 0.7.2 → 0.7.4
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.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -423,6 +423,8 @@ interface ApiToken {
|
|
|
423
423
|
owner: string | null;
|
|
424
424
|
tokenUri: string | null;
|
|
425
425
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
426
|
+
/** Token standard derived from the parent collection. Use this to determine ERC-721 vs ERC-1155 behavior. */
|
|
427
|
+
standard: "ERC721" | "ERC1155" | "UNKNOWN";
|
|
426
428
|
metadata: ApiTokenMetadata;
|
|
427
429
|
/** Current holders with amounts. Only present on single-token fetches; null on list responses. */
|
|
428
430
|
balances: ApiTokenBalance[] | null;
|
|
@@ -568,10 +570,14 @@ interface MakeOfferIntentParams {
|
|
|
568
570
|
interface FulfillOrderIntentParams {
|
|
569
571
|
fulfiller: string;
|
|
570
572
|
orderHash: string;
|
|
573
|
+
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
574
|
+
tokenStandard?: string;
|
|
571
575
|
}
|
|
572
576
|
interface CancelOrderIntentParams {
|
|
573
577
|
offerer: string;
|
|
574
578
|
orderHash: string;
|
|
579
|
+
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
580
|
+
tokenStandard?: string;
|
|
575
581
|
}
|
|
576
582
|
interface CreateMintIntentParams {
|
|
577
583
|
/** Collection owner wallet address — must be the collection owner on-chain */
|
|
@@ -771,8 +777,6 @@ interface ApiCreatorProfile {
|
|
|
771
777
|
bio: string | null;
|
|
772
778
|
avatarImage: string | null;
|
|
773
779
|
bannerImage: string | null;
|
|
774
|
-
/** First collection image for creators without avatarImage/bannerImage. Populated by the API, null otherwise. */
|
|
775
|
-
collectionImage: string | null;
|
|
776
780
|
websiteUrl: string | null;
|
|
777
781
|
twitterUrl: string | null;
|
|
778
782
|
discordUrl: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -423,6 +423,8 @@ interface ApiToken {
|
|
|
423
423
|
owner: string | null;
|
|
424
424
|
tokenUri: string | null;
|
|
425
425
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
426
|
+
/** Token standard derived from the parent collection. Use this to determine ERC-721 vs ERC-1155 behavior. */
|
|
427
|
+
standard: "ERC721" | "ERC1155" | "UNKNOWN";
|
|
426
428
|
metadata: ApiTokenMetadata;
|
|
427
429
|
/** Current holders with amounts. Only present on single-token fetches; null on list responses. */
|
|
428
430
|
balances: ApiTokenBalance[] | null;
|
|
@@ -568,10 +570,14 @@ interface MakeOfferIntentParams {
|
|
|
568
570
|
interface FulfillOrderIntentParams {
|
|
569
571
|
fulfiller: string;
|
|
570
572
|
orderHash: string;
|
|
573
|
+
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
574
|
+
tokenStandard?: string;
|
|
571
575
|
}
|
|
572
576
|
interface CancelOrderIntentParams {
|
|
573
577
|
offerer: string;
|
|
574
578
|
orderHash: string;
|
|
579
|
+
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
580
|
+
tokenStandard?: string;
|
|
575
581
|
}
|
|
576
582
|
interface CreateMintIntentParams {
|
|
577
583
|
/** Collection owner wallet address — must be the collection owner on-chain */
|
|
@@ -771,8 +777,6 @@ interface ApiCreatorProfile {
|
|
|
771
777
|
bio: string | null;
|
|
772
778
|
avatarImage: string | null;
|
|
773
779
|
bannerImage: string | null;
|
|
774
|
-
/** First collection image for creators without avatarImage/bannerImage. Populated by the API, null otherwise. */
|
|
775
|
-
collectionImage: string | null;
|
|
776
780
|
websiteUrl: string | null;
|
|
777
781
|
twitterUrl: string | null;
|
|
778
782
|
discordUrl: string | null;
|