@medialane/ui 0.311.0 → 0.312.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/components/account/input-otp.d.cts +2 -2
- package/dist/components/account/input-otp.d.ts +2 -2
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/launchpad/edition-mint-schema.d.cts +19 -19
- package/dist/components/launchpad/edition-mint-schema.d.ts +19 -19
- package/dist/components/launchpad/pop-create-schema.d.cts +10 -10
- package/dist/components/launchpad/pop-create-schema.d.ts +10 -10
- package/dist/components/media-wallet/media-wallet-send.cjs +2 -5
- package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.js +2 -5
- package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
- package/dist/components/transfer-collection-ownership.cjs +1 -1
- package/dist/components/transfer-collection-ownership.cjs.map +1 -1
- package/dist/components/transfer-collection-ownership.js +1 -1
- package/dist/components/transfer-collection-ownership.js.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.cts +1 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.ts +1 -1
- package/dist/utils/send-token.cjs +40 -0
- package/dist/utils/send-token.cjs.map +1 -0
- package/dist/utils/send-token.d.cts +19 -0
- package/dist/utils/send-token.d.ts +19 -0
- package/dist/utils/send-token.js +16 -0
- package/dist/utils/send-token.js.map +1 -0
- package/dist/utils/use-collection-settings.d.cts +19 -19
- package/dist/utils/use-collection-settings.d.ts +19 -19
- package/dist/utils/use-collections.d.cts +212 -205
- package/dist/utils/use-collections.d.ts +212 -205
- package/dist/utils/use-orders.d.cts +299 -299
- package/dist/utils/use-orders.d.ts +299 -299
- package/dist/utils/use-pop.d.cts +57 -55
- package/dist/utils/use-pop.d.ts +57 -55
- package/dist/utils/use-tiers.d.cts +76 -73
- package/dist/utils/use-tiers.d.ts +76 -73
- package/dist/utils/use-tokens-by-ip-type.d.cts +78 -77
- package/dist/utils/use-tokens-by-ip-type.d.ts +78 -77
- package/dist/utils/use-tokens.d.cts +234 -229
- package/dist/utils/use-tokens.d.ts +234 -229
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().
|
|
1
|
+
{"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected.</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel=\"Back\"\n onSecondary={() => setConfirming(false)}\n primaryLabel=\"Transfer ownership\"\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">Transfer collection ownership</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">New owner address</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">Not a valid Starknet address.</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">This is already the current owner.</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n Cancel\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n Continue\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title=\"Transfer ownership\" workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n {...successMessages.ownershipTransferred({ name: collectionName ?? \"the collection\", to: shortenAddress(trimmed) })}\n txHash={tx.txHash}\n actions={[{ label: \"Done\", onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":"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","names":[]}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare function useTokenBalance(symbol: string | null, holderAddress: string |
|
|
|
7
7
|
rawBalance: bigint | null;
|
|
8
8
|
isLoading: boolean;
|
|
9
9
|
error: any;
|
|
10
|
-
decimals:
|
|
10
|
+
decimals: 8 | 6 | 18;
|
|
11
11
|
};
|
|
12
12
|
declare function hasSufficientBalance(rawBalance: bigint | null, requiredHuman: string, decimals: number): boolean | null;
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ declare function useTokenBalance(symbol: string | null, holderAddress: string |
|
|
|
7
7
|
rawBalance: bigint | null;
|
|
8
8
|
isLoading: boolean;
|
|
9
9
|
error: any;
|
|
10
|
-
decimals:
|
|
10
|
+
decimals: 8 | 6 | 18;
|
|
11
11
|
};
|
|
12
12
|
declare function hasSufficientBalance(rawBalance: bigint | null, requiredHuman: string, decimals: number): boolean | null;
|
|
13
13
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var send_token_exports = {};
|
|
20
|
+
__export(send_token_exports, {
|
|
21
|
+
sendToken: () => sendToken
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(send_token_exports);
|
|
24
|
+
var import_run_intent_calls = require("./run-intent-calls.js");
|
|
25
|
+
function sendToken(signer, client, input) {
|
|
26
|
+
return (0, import_run_intent_calls.runIntentCalls)(
|
|
27
|
+
signer,
|
|
28
|
+
() => client.createIntent("transfer-token", {
|
|
29
|
+
owner: signer.address,
|
|
30
|
+
token: input.token,
|
|
31
|
+
recipient: input.recipient,
|
|
32
|
+
amount: input.amount.toString()
|
|
33
|
+
})
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
sendToken
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=send-token.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/send-token.ts"],"sourcesContent":["import type { Call } from \"starknet\";\nimport type { MedialaneClient } from \"@medialane/sdk/starknet\";\nimport { runIntentCalls } from \"./run-intent-calls.js\";\n\nexport function sendToken(\n signer: { address: string; execute(calls: Call[], opts?: { intentIds?: string[] }): Promise<{ txHash: string }> },\n client: Pick<MedialaneClient, \"createIntent\">,\n input: { token: string; recipient: string; amount: bigint },\n): Promise<{ txHash: string }> {\n return runIntentCalls(signer, () =>\n client.createIntent(\"transfer-token\", {\n owner: signer.address,\n token: input.token,\n recipient: input.recipient,\n amount: input.amount.toString(),\n }),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,8BAA+B;AAExB,SAAS,UACd,QACA,QACA,OAC6B;AAC7B,aAAO;AAAA,IAAe;AAAA,IAAQ,MAC5B,OAAO,aAAa,kBAAkB;AAAA,MACpC,OAAO,OAAO;AAAA,MACd,OAAO,MAAM;AAAA,MACb,WAAW,MAAM;AAAA,MACjB,QAAQ,MAAM,OAAO,SAAS;AAAA,IAChC,CAAC;AAAA,EACH;AACF;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Call } from 'starknet';
|
|
2
|
+
import { MedialaneClient } from '@medialane/sdk/starknet';
|
|
3
|
+
|
|
4
|
+
declare function sendToken(signer: {
|
|
5
|
+
address: string;
|
|
6
|
+
execute(calls: Call[], opts?: {
|
|
7
|
+
intentIds?: string[];
|
|
8
|
+
}): Promise<{
|
|
9
|
+
txHash: string;
|
|
10
|
+
}>;
|
|
11
|
+
}, client: Pick<MedialaneClient, "createIntent">, input: {
|
|
12
|
+
token: string;
|
|
13
|
+
recipient: string;
|
|
14
|
+
amount: bigint;
|
|
15
|
+
}): Promise<{
|
|
16
|
+
txHash: string;
|
|
17
|
+
}>;
|
|
18
|
+
|
|
19
|
+
export { sendToken };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Call } from 'starknet';
|
|
2
|
+
import { MedialaneClient } from '@medialane/sdk/starknet';
|
|
3
|
+
|
|
4
|
+
declare function sendToken(signer: {
|
|
5
|
+
address: string;
|
|
6
|
+
execute(calls: Call[], opts?: {
|
|
7
|
+
intentIds?: string[];
|
|
8
|
+
}): Promise<{
|
|
9
|
+
txHash: string;
|
|
10
|
+
}>;
|
|
11
|
+
}, client: Pick<MedialaneClient, "createIntent">, input: {
|
|
12
|
+
token: string;
|
|
13
|
+
recipient: string;
|
|
14
|
+
amount: bigint;
|
|
15
|
+
}): Promise<{
|
|
16
|
+
txHash: string;
|
|
17
|
+
}>;
|
|
18
|
+
|
|
19
|
+
export { sendToken };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { runIntentCalls } from "./run-intent-calls.js";
|
|
2
|
+
function sendToken(signer, client, input) {
|
|
3
|
+
return runIntentCalls(
|
|
4
|
+
signer,
|
|
5
|
+
() => client.createIntent("transfer-token", {
|
|
6
|
+
owner: signer.address,
|
|
7
|
+
token: input.token,
|
|
8
|
+
recipient: input.recipient,
|
|
9
|
+
amount: input.amount.toString()
|
|
10
|
+
})
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
sendToken
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=send-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/send-token.ts"],"sourcesContent":["import type { Call } from \"starknet\";\nimport type { MedialaneClient } from \"@medialane/sdk/starknet\";\nimport { runIntentCalls } from \"./run-intent-calls.js\";\n\nexport function sendToken(\n signer: { address: string; execute(calls: Call[], opts?: { intentIds?: string[] }): Promise<{ txHash: string }> },\n client: Pick<MedialaneClient, \"createIntent\">,\n input: { token: string; recipient: string; amount: bigint },\n): Promise<{ txHash: string }> {\n return runIntentCalls(signer, () =>\n client.createIntent(\"transfer-token\", {\n owner: signer.address,\n token: input.token,\n recipient: input.recipient,\n amount: input.amount.toString(),\n }),\n );\n}\n"],"mappings":"AAEA,SAAS,sBAAsB;AAExB,SAAS,UACd,QACA,QACA,OAC6B;AAC7B,SAAO;AAAA,IAAe;AAAA,IAAQ,MAC5B,OAAO,aAAa,kBAAkB;AAAA,MACpC,OAAO,OAAO;AAAA,MACd,OAAO,MAAM;AAAA,MACb,WAAW,MAAM;AAAA,MACjB,QAAQ,MAAM,OAAO,SAAS;AAAA,IAChC,CAAC;AAAA,EACH;AACF;","names":[]}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import * as _medialane_sdk from '@medialane/sdk';
|
|
2
|
-
import * as zod from 'zod';
|
|
3
2
|
import { ChangeEvent } from 'react';
|
|
4
3
|
import { CollectionSettingsForm } from './collection-settings-form.cjs';
|
|
5
4
|
|
|
6
5
|
type SaveStatus = "idle" | "saved" | "error";
|
|
7
6
|
declare function useCollectionSettings(contract: string): {
|
|
8
7
|
collection: {
|
|
9
|
-
|
|
8
|
+
id: string;
|
|
10
9
|
chain: string;
|
|
11
|
-
|
|
10
|
+
contractAddress: string;
|
|
12
11
|
collectionId: string | null;
|
|
13
12
|
name: string | null;
|
|
13
|
+
symbol: string | null;
|
|
14
14
|
description: string | null;
|
|
15
15
|
image: string | null;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
attributes: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
trait_type: string;
|
|
19
|
+
value: string | number | boolean;
|
|
20
|
+
display_type?: string | undefined;
|
|
21
|
+
}[] | null;
|
|
22
|
+
owner: string | null;
|
|
23
|
+
startBlock: string;
|
|
21
24
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
22
25
|
standard: "ERC721" | "ERC1155";
|
|
23
|
-
attributes: zod.objectOutputType<{
|
|
24
|
-
trait_type: zod.ZodString;
|
|
25
|
-
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
26
|
-
display_type: zod.ZodOptional<zod.ZodString>;
|
|
27
|
-
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
28
|
-
holderCount: number;
|
|
29
|
-
startBlock: string;
|
|
30
26
|
isFeatured: boolean;
|
|
31
27
|
isHidden: boolean;
|
|
28
|
+
service: string | null;
|
|
32
29
|
claimedBy: string | null;
|
|
33
30
|
floorPrice: string | null;
|
|
34
31
|
totalVolume: string | null;
|
|
32
|
+
holderCount: number;
|
|
35
33
|
totalSupply: number;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
36
|
profile: {
|
|
37
|
-
description: string | null;
|
|
38
|
-
image: string | null;
|
|
39
|
-
displayName: string | null;
|
|
40
|
-
gatedContentTitle: string | null;
|
|
41
37
|
hasGatedContent: boolean;
|
|
38
|
+
gatedContentTitle: string | null;
|
|
42
39
|
slug: string | null;
|
|
40
|
+
image: string | null;
|
|
41
|
+
displayName: string | null;
|
|
42
|
+
description: string | null;
|
|
43
43
|
} | null;
|
|
44
44
|
} | null;
|
|
45
45
|
profile: _medialane_sdk.ApiCollectionProfile | null;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import * as _medialane_sdk from '@medialane/sdk';
|
|
2
|
-
import * as zod from 'zod';
|
|
3
2
|
import { ChangeEvent } from 'react';
|
|
4
3
|
import { CollectionSettingsForm } from './collection-settings-form.js';
|
|
5
4
|
|
|
6
5
|
type SaveStatus = "idle" | "saved" | "error";
|
|
7
6
|
declare function useCollectionSettings(contract: string): {
|
|
8
7
|
collection: {
|
|
9
|
-
|
|
8
|
+
id: string;
|
|
10
9
|
chain: string;
|
|
11
|
-
|
|
10
|
+
contractAddress: string;
|
|
12
11
|
collectionId: string | null;
|
|
13
12
|
name: string | null;
|
|
13
|
+
symbol: string | null;
|
|
14
14
|
description: string | null;
|
|
15
15
|
image: string | null;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
attributes: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
trait_type: string;
|
|
19
|
+
value: string | number | boolean;
|
|
20
|
+
display_type?: string | undefined;
|
|
21
|
+
}[] | null;
|
|
22
|
+
owner: string | null;
|
|
23
|
+
startBlock: string;
|
|
21
24
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
22
25
|
standard: "ERC721" | "ERC1155";
|
|
23
|
-
attributes: zod.objectOutputType<{
|
|
24
|
-
trait_type: zod.ZodString;
|
|
25
|
-
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
26
|
-
display_type: zod.ZodOptional<zod.ZodString>;
|
|
27
|
-
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
28
|
-
holderCount: number;
|
|
29
|
-
startBlock: string;
|
|
30
26
|
isFeatured: boolean;
|
|
31
27
|
isHidden: boolean;
|
|
28
|
+
service: string | null;
|
|
32
29
|
claimedBy: string | null;
|
|
33
30
|
floorPrice: string | null;
|
|
34
31
|
totalVolume: string | null;
|
|
32
|
+
holderCount: number;
|
|
35
33
|
totalSupply: number;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
36
|
profile: {
|
|
37
|
-
description: string | null;
|
|
38
|
-
image: string | null;
|
|
39
|
-
displayName: string | null;
|
|
40
|
-
gatedContentTitle: string | null;
|
|
41
37
|
hasGatedContent: boolean;
|
|
38
|
+
gatedContentTitle: string | null;
|
|
42
39
|
slug: string | null;
|
|
40
|
+
image: string | null;
|
|
41
|
+
displayName: string | null;
|
|
42
|
+
description: string | null;
|
|
43
43
|
} | null;
|
|
44
44
|
} | null;
|
|
45
45
|
profile: _medialane_sdk.ApiCollectionProfile | null;
|