@medialane/ui 0.366.0 → 0.367.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/approve-mint-dialog.d.cts +0 -1
- package/dist/components/approve-mint-dialog.d.ts +0 -1
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/fast-mint/asset-form-parts.cjs +25 -51
- package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.d.cts +11 -14
- package/dist/components/fast-mint/asset-form-parts.d.ts +11 -14
- package/dist/components/fast-mint/asset-form-parts.js +27 -52
- package/dist/components/fast-mint/asset-form-parts.js.map +1 -1
- package/dist/components/fast-mint/collection-section.cjs +11 -21
- package/dist/components/fast-mint/collection-section.cjs.map +1 -1
- package/dist/components/fast-mint/collection-section.d.cts +5 -7
- package/dist/components/fast-mint/collection-section.d.ts +5 -7
- package/dist/components/fast-mint/collection-section.js +11 -21
- package/dist/components/fast-mint/collection-section.js.map +1 -1
- package/dist/components/fast-mint/create-then-add.cjs +55 -0
- package/dist/components/fast-mint/create-then-add.cjs.map +1 -0
- package/dist/components/fast-mint/create-then-add.d.cts +24 -0
- package/dist/components/fast-mint/create-then-add.d.ts +24 -0
- package/dist/components/fast-mint/create-then-add.js +30 -0
- package/dist/components/fast-mint/create-then-add.js.map +1 -0
- package/dist/components/fast-mint/dropzone.d.cts +0 -1
- package/dist/components/fast-mint/dropzone.d.ts +0 -1
- package/dist/components/fast-mint/fast-mint.cjs +95 -167
- package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
- package/dist/components/fast-mint/fast-mint.js +97 -169
- package/dist/components/fast-mint/fast-mint.js.map +1 -1
- package/dist/components/fast-mint/formats/nft.cjs +233 -0
- package/dist/components/fast-mint/formats/nft.cjs.map +1 -0
- package/dist/components/fast-mint/formats/nft.d.cts +19 -0
- package/dist/components/fast-mint/formats/nft.d.ts +19 -0
- package/dist/components/fast-mint/formats/nft.js +214 -0
- package/dist/components/fast-mint/formats/nft.js.map +1 -0
- package/dist/components/fast-mint/formats/pop.cjs +160 -0
- package/dist/components/fast-mint/formats/pop.cjs.map +1 -0
- package/dist/components/fast-mint/formats/pop.d.cts +18 -0
- package/dist/components/fast-mint/formats/pop.d.ts +18 -0
- package/dist/components/fast-mint/formats/pop.js +136 -0
- package/dist/components/fast-mint/formats/pop.js.map +1 -0
- package/dist/components/fast-mint/formats/registry.cjs +42 -0
- package/dist/components/fast-mint/formats/registry.cjs.map +1 -0
- package/dist/components/fast-mint/formats/registry.d.cts +20 -0
- package/dist/components/fast-mint/formats/registry.d.ts +20 -0
- package/dist/components/fast-mint/formats/registry.js +16 -0
- package/dist/components/fast-mint/formats/registry.js.map +1 -0
- package/dist/components/fast-mint/formats/tiers.cjs +206 -0
- package/dist/components/fast-mint/formats/tiers.cjs.map +1 -0
- package/dist/components/fast-mint/formats/tiers.d.cts +19 -0
- package/dist/components/fast-mint/formats/tiers.d.ts +19 -0
- package/dist/components/fast-mint/formats/tiers.js +181 -0
- package/dist/components/fast-mint/formats/tiers.js.map +1 -0
- package/dist/components/fast-mint/formats/types.cjs +31 -0
- package/dist/components/fast-mint/formats/types.cjs.map +1 -0
- package/dist/components/fast-mint/formats/types.d.cts +71 -0
- package/dist/components/fast-mint/formats/types.d.ts +71 -0
- package/dist/components/fast-mint/formats/types.js +7 -0
- package/dist/components/fast-mint/formats/types.js.map +1 -0
- package/dist/components/fast-mint/media-kind.d.cts +0 -1
- package/dist/components/fast-mint/media-kind.d.ts +0 -1
- package/dist/components/fast-mint/success-view.cjs +18 -59
- package/dist/components/fast-mint/success-view.cjs.map +1 -1
- package/dist/components/fast-mint/success-view.d.cts +13 -8
- package/dist/components/fast-mint/success-view.d.ts +13 -8
- package/dist/components/fast-mint/success-view.js +19 -60
- package/dist/components/fast-mint/success-view.js.map +1 -1
- package/dist/components/fast-mint/types.cjs.map +1 -1
- package/dist/components/fast-mint/types.d.cts +0 -3
- package/dist/components/fast-mint/types.d.ts +0 -3
- package/dist/components/launchpad/collection-create-form.cjs +6 -14
- package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-form.js +6 -14
- package/dist/components/launchpad/collection-create-form.js.map +1 -1
- package/dist/components/launchpad/edition-mint-schema.d.cts +4 -4
- package/dist/components/launchpad/edition-mint-schema.d.ts +4 -4
- package/dist/components/launchpad/pop-create-fields.cjs +5 -3
- package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-fields.d.cts +8 -2
- package/dist/components/launchpad/pop-create-fields.d.ts +8 -2
- package/dist/components/launchpad/pop-create-fields.js +4 -3
- package/dist/components/launchpad/pop-create-fields.js.map +1 -1
- package/dist/components/launchpad/pop-create.cjs +9 -22
- package/dist/components/launchpad/pop-create.cjs.map +1 -1
- package/dist/components/launchpad/pop-create.js +9 -22
- package/dist/components/launchpad/pop-create.js.map +1 -1
- package/dist/components/launchpad/tier-mint-form.cjs +8 -25
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-form.js +6 -23
- package/dist/components/launchpad/tier-mint-form.js.map +1 -1
- package/dist/components/transfer-dialog.d.cts +0 -1
- package/dist/components/transfer-dialog.d.ts +0 -1
- package/dist/data/launchpad-services.cjs +12 -12
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.js +12 -12
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/utils/drop/actions.d.cts +0 -1
- package/dist/utils/drop/actions.d.ts +0 -1
- package/dist/utils/drop/types.d.cts +0 -1
- package/dist/utils/drop/types.d.ts +0 -1
- package/dist/utils/launchpad-actions.cjs +90 -0
- package/dist/utils/launchpad-actions.cjs.map +1 -0
- package/dist/utils/launchpad-actions.d.cts +39 -0
- package/dist/utils/launchpad-actions.d.ts +39 -0
- package/dist/utils/launchpad-actions.js +60 -0
- package/dist/utils/launchpad-actions.js.map +1 -0
- 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/use-transaction.d.cts +0 -1
- package/dist/utils/use-transaction.d.ts +0 -1
- package/package.json +1 -1
- package/dist/components/fast-mint/mint-asset.cjs +0 -124
- package/dist/components/fast-mint/mint-asset.cjs.map +0 -1
- package/dist/components/fast-mint/mint-asset.d.cts +0 -41
- package/dist/components/fast-mint/mint-asset.d.ts +0 -41
- package/dist/components/fast-mint/mint-asset.js +0 -100
- package/dist/components/fast-mint/mint-asset.js.map +0 -1
- package/dist/utils/launchpad-handoff.cjs +0 -62
- package/dist/utils/launchpad-handoff.cjs.map +0 -1
- package/dist/utils/launchpad-handoff.d.cts +0 -11
- package/dist/utils/launchpad-handoff.d.ts +0 -11
- package/dist/utils/launchpad-handoff.js +0 -35
- package/dist/utils/launchpad-handoff.js.map +0 -1
|
@@ -21,32 +21,32 @@ const LAUNCHPAD_SERVICE_GROUPS = [
|
|
|
21
21
|
{
|
|
22
22
|
key: "single-nfts",
|
|
23
23
|
title: "Single NFTs",
|
|
24
|
-
tagline: "Singular works,
|
|
24
|
+
tagline: "Singular works, collections, timed drops, and remixes."
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
key: "limited-editions",
|
|
28
28
|
title: "Limited Editions",
|
|
29
|
-
tagline: "Numbered copies of
|
|
29
|
+
tagline: "Numbered copies of a work."
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
key: "coins",
|
|
33
33
|
title: "Coins",
|
|
34
|
-
tagline: "Launch
|
|
34
|
+
tagline: "Launch a coin, or bring one already made."
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
key: "membership",
|
|
38
38
|
title: "Membership",
|
|
39
|
-
tagline: "
|
|
39
|
+
tagline: "Immutable certificates, tickets, and club cards."
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
key: "licensing",
|
|
43
43
|
title: "Licensing",
|
|
44
|
-
tagline: "
|
|
44
|
+
tagline: "Sponsors back work in return for a license."
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
key: "claims",
|
|
48
48
|
title: "Claims",
|
|
49
|
-
tagline: "Reserve
|
|
49
|
+
tagline: "Reserve a username, or bring in an existing collection."
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
key: "coming-soon",
|
|
@@ -123,14 +123,14 @@ const LAUNCHPAD_SERVICE_DEFINITIONS = [
|
|
|
123
123
|
{
|
|
124
124
|
key: "pop-protocol",
|
|
125
125
|
cta: "Create",
|
|
126
|
-
blurb: "
|
|
126
|
+
blurb: "Digital asset certificates for authenticity.",
|
|
127
127
|
title: "POP Protocol",
|
|
128
|
-
subtitle: "
|
|
129
|
-
description: "
|
|
130
|
-
features: ["Free
|
|
131
|
-
example: "Hackathon attendance
|
|
128
|
+
subtitle: "Immutable certificates for authenticity",
|
|
129
|
+
description: "Permanent certificates that cannot be changed or transferred.",
|
|
130
|
+
features: ["Free to claim", "Invite-list gating optional", "Branded claim page to share"],
|
|
131
|
+
example: "Hackathon attendance, course completion, conference pass",
|
|
132
132
|
icon: Award,
|
|
133
|
-
browseLinkLabel: "Browse
|
|
133
|
+
browseLinkLabel: "Browse certificates",
|
|
134
134
|
status: "live",
|
|
135
135
|
group: "membership"
|
|
136
136
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/data/launchpad-services.ts"],"sourcesContent":["import type { LucideIcon } from \"lucide-react\";\nimport {\n ImagePlus, Layers, GitBranch,\n Award, Package,\n Ticket, Users, Handshake,\n Coins, TrendingUp,\n AtSign, FolderInput, Link2,\n LayoutGrid, Boxes,\n} from \"lucide-react\";\nimport { hasCapability } from \"@medialane/sdk\";\n\nconst TICKETS_TRANSFERABLE_FEATURE = hasCapability(\"ip-tickets\", \"transfer\")\n ? \"Freely transferable\"\n : \"Stays with the original holder\";\n\nexport type ServiceStatus = \"live\" | \"building\" | \"soon\";\n\nexport type ServiceGroup =\n | \"single-nfts\"\n | \"limited-editions\"\n | \"coins\"\n | \"membership\"\n | \"licensing\"\n | \"claims\"\n | \"coming-soon\";\n\nexport interface ServiceGroupDefinition {\n key: ServiceGroup;\n title: string;\n\n tagline: string;\n\n badge?: string;\n}\n\nexport const LAUNCHPAD_SERVICE_GROUPS: ServiceGroupDefinition[] = [\n {\n key: \"single-nfts\",\n title: \"Single NFTs\",\n tagline: \"Singular works, your own collections, timed drops, and remixes.\",\n },\n {\n key: \"limited-editions\",\n title: \"Limited Editions\",\n tagline: \"Numbered copies of your work.\",\n },\n {\n key: \"coins\",\n title: \"Coins\",\n tagline: \"Launch your own coin, or bring one you already made.\",\n },\n {\n key: \"membership\",\n title: \"Membership\",\n tagline: \"Badges, tickets, and club cards your audience holds.\",\n },\n {\n key: \"licensing\",\n title: \"Licensing\",\n tagline: \"Let sponsors back your work in return for a license.\",\n },\n {\n key: \"claims\",\n title: \"Claims\",\n tagline: \"Reserve your username, or bring in a collection you already made.\",\n },\n {\n key: \"coming-soon\",\n title: \"Coming soon\",\n tagline: \"More ways to earn are on the way.\",\n },\n];\n\nexport interface ServiceDefinition {\n key: string;\n title: string;\n subtitle: string;\n description: string;\n features: string[];\n icon: LucideIcon;\n status: ServiceStatus;\n group: ServiceGroup;\n\n blurb: string;\n\n cta: string;\n\n example?: string;\n\n browseLinkLabel?: string;\n}\n\nexport const LAUNCHPAD_SERVICE_DEFINITIONS: ServiceDefinition[] = [\n\n {\n key: \"nfts\",\n cta: \"Create\",\n blurb: \"Publish each work as a single copy in a collection you own.\",\n title: \"Single Edition NFT\",\n subtitle: \"Each work is minted once\",\n description:\n \"Publish any photo, video, audio, or document, minted once inside your collection. Licensing, provenance, and ownership live on-chain.\",\n features: [\"One mint per work\", \"Collections with their own page and name\", \"You set the license terms\"],\n example: \"A song, a photo, an ebook, a short film\",\n icon: ImagePlus,\n status: \"live\",\n group: \"single-nfts\",\n },\n {\n key: \"limited-editions\",\n cta: \"Mint\",\n blurb: \"Release your work in numbered copies that can be collected and traded.\",\n title: \"Limited Editions NFT\",\n subtitle: \"Numbered copies from a collection you own\",\n description:\n \"Create an editions collection and release each work in as many numbered copies as you choose.\",\n features: [\"Numbered copies, set by you\", \"Fans collect and trade\", \"One home for every release\"],\n example: \"50 copies of a limited print, a music EP in 100 editions\",\n icon: Layers,\n status: \"live\",\n group: \"limited-editions\",\n },\n {\n key: \"create-collection\",\n cta: \"Create\",\n blurb: \"Deploy your own collection to mint single-edition works into.\",\n title: \"NFT Collection\",\n subtitle: \"Your own ERC-721 collection, ready to mint into\",\n description:\n \"Deploy a collection you own and control, with its own name, symbol, and page. Mint single-edition works into it whenever you're ready.\",\n features: [\"Your own collection contract\", \"Set the name and symbol\", \"Mint into it anytime\"],\n example: \"A photography collection, an album of singles\",\n icon: LayoutGrid,\n status: \"live\",\n group: \"single-nfts\",\n },\n {\n key: \"remix-asset\",\n cta: \"Browse\",\n blurb: \"Create from another work. Credit and royalties are handled automatically.\",\n title: \"Remix Asset\",\n subtitle: \"Derivative works with on-chain attribution\",\n description:\n \"Create a licensed derivative of another work. Attribution and provenance flow back to the original creator.\",\n features: [\"Credit handled automatically\", \"Royalties flow to the original\", \"License respected at mint\"],\n example: \"A remix of a song, an artwork inspired by an original\",\n icon: GitBranch,\n status: \"live\",\n group: \"single-nfts\",\n },\n\n {\n key: \"create-1155\",\n cta: \"Create\",\n blurb: \"Deploy your own collection to release numbered editions from.\",\n title: \"Limited Editions Collection\",\n subtitle: \"Your own ERC-1155 collection, ready for editions\",\n description:\n \"Deploy an editions collection you own and control. Release each work in as many numbered copies as you choose.\",\n features: [\"Your own collection contract\", \"Set the name and symbol\", \"Release editions anytime\"],\n example: \"A print series, a music EP with numbered editions\",\n icon: Boxes,\n status: \"live\",\n group: \"limited-editions\",\n },\n {\n key: \"pop-protocol\",\n cta: \"Create\",\n blurb: \"Badges your community claims and keeps forever.\",\n title: \"POP Protocol\",\n subtitle: \"Proof-of-participation badges for your community\",\n description:\n \"Give out permanent badges. Each person can claim one, and it cannot be transferred or faked.\",\n features: [\"Free for your community to claim\", \"Invite-list gating optional\", \"Branded claim page to share\"],\n example: \"Hackathon attendance badge, community membership, conference pass\",\n icon: Award,\n browseLinkLabel: \"Browse badges\",\n status: \"live\",\n group: \"membership\",\n },\n {\n key: \"collection-drop\",\n cta: \"Launch\",\n blurb: \"Release a limited run at a set price and time window.\",\n title: \"Collection Drop\",\n subtitle: \"Timed NFT releases with mint windows\",\n description:\n \"Set a price, a supply, and a start and end time. Collectors mint directly from your drop page.\",\n features: [\"You set price and supply\", \"Opens and closes on your schedule\", \"Branded drop page to share\"],\n example: \"A 48-hour drop of 200 pieces at 5 USDC each\",\n icon: Package,\n browseLinkLabel: \"Browse drops\",\n status: \"live\",\n group: \"single-nfts\",\n },\n {\n key: \"ip-tickets\",\n cta: \"Create\",\n blurb: \"Create on-chain tickets your audience can hold and trade.\",\n title: \"IP Tickets\",\n subtitle: \"Verifiable tickets, held in the wallet\",\n description:\n \"Create tickets with their own supply and validity window, then mint them to attendees. Every ticket is verifiable on-chain.\",\n features: [\"Verifiable at the door\", \"Supply and validity you set\", TICKETS_TRANSFERABLE_FEATURE],\n icon: Ticket,\n browseLinkLabel: \"Browse tickets\",\n\n status: \"live\",\n group: \"membership\",\n },\n {\n key: \"ip-club\",\n cta: \"Create\",\n blurb: \"Membership cards for your community.\",\n title: \"IP Club\",\n subtitle: \"Membership tiers, minted as cards\",\n description:\n \"Create a club with membership tiers — fans, supporters, press, season passes. Mint the cards and sell them like any collection.\",\n features: [\"Membership tiers\", \"Optional validity window\", \"Trade like any collection\"],\n icon: Users,\n browseLinkLabel: \"Browse clubs\",\n\n status: \"live\",\n group: \"membership\",\n },\n {\n key: \"ip-sponsorship\",\n cta: \"Browse\",\n blurb: \"Let a sponsor back your work directly, for a license in return.\",\n title: \"IP Sponsorship\",\n subtitle: \"Direct sponsorship offers, settled asset-to-asset\",\n description:\n \"Create a sponsorship offer on an asset you own. Sponsors bid, you accept, and they receive a license. Payment settles directly between sponsor and author.\",\n features: [\"Direct settlement\", \"Owner-verified on-chain\", \"Open bidding or one invited sponsor\"],\n example: \"Sponsor a song or an artwork for a license\",\n icon: Handshake,\n browseLinkLabel: \"Browse offers\",\n\n status: \"live\",\n group: \"licensing\",\n },\n\n {\n key: \"creator-coins\",\n cta: \"Launch\",\n blurb: \"Launch your coin in a few clicks and stay in control of it.\",\n title: \"Creator Coin\",\n subtitle: \"Your own coin, your liquidity\",\n description:\n \"Launch your own coin with a public trading pool. You set the supply and allocation and stay in control of the liquidity.\",\n features: [\"Launch in a few clicks\", \"You keep control of the liquidity\", \"Traded on a public pool\"],\n example: \"A fan coin for your channel, a coin for your music project\",\n icon: TrendingUp,\n status: \"live\",\n group: \"coins\",\n },\n\n {\n key: \"claim-memecoin\",\n cta: \"Claim\",\n blurb: \"Add a coin you already launched to your profile.\",\n title: \"Claim Memecoin\",\n subtitle: \"Bring a coin you already launched\",\n description:\n \"Claim a coin you already launched to list it on the Coins page and your profile. Claims are reviewed before going live.\",\n features: [\"Bring a coin you already launched\", \"Reviewed by our team\", \"Featured on the Coins page\"],\n example: \"Your unrug memecoin, listed on your creator profile\",\n icon: Coins,\n status: \"live\",\n group: \"coins\",\n },\n {\n key: \"claim-username\",\n cta: \"Claim\",\n blurb: \"Reserve your name and get your own creator page.\",\n title: \"Claim Username\",\n subtitle: \"Reserve your creator page URL\",\n description:\n \"Claim your username to get a shareable creator page, your public portfolio at a clean, memorable URL.\",\n features: [\"Free claim\", \"Shareable creator page\", \"Your public portfolio\"],\n example: \"medialane.io/creator/your-name — your portfolio at your own name\",\n icon: AtSign,\n status: \"live\",\n group: \"claims\",\n },\n {\n key: \"claim-collection\",\n cta: \"Claim\",\n blurb: \"Made a collection somewhere else? Bring it to your profile.\",\n title: \"Claim Collection\",\n subtitle: \"Bring a collection you already made\",\n description:\n \"Claim a collection you made elsewhere to link it to your profile and give it a branded collection page.\",\n features: [\"Bring an existing collection\", \"Linked to your profile\", \"Branded collection page\"],\n example: \"A collection you made elsewhere joins your profile\",\n icon: FolderInput,\n status: \"live\",\n group: \"claims\",\n },\n {\n key: \"claim-collection-name\",\n cta: \"Claim\",\n blurb: \"Give your collection a clean, memorable web address of its own.\",\n title: \"Claim Collection Name\",\n subtitle: \"Reserve your collection page URL\",\n description:\n \"Claim a custom name for your collection page and get a clean, shareable URL instead of a long technical address.\",\n features: [\"Free claim\", \"Clean shareable URL\", \"Easy to remember and share\"],\n example: \"medialane.io/collection/your-collection\",\n icon: Link2,\n status: \"live\",\n group: \"claims\",\n },\n];\n"],"mappings":"AACA;AAAA,EACE;AAAA,EAAW;AAAA,EAAQ;AAAA,EACnB;AAAA,EAAO;AAAA,EACP;AAAA,EAAQ;AAAA,EAAO;AAAA,EACf;AAAA,EAAO;AAAA,EACP;AAAA,EAAQ;AAAA,EAAa;AAAA,EACrB;AAAA,EAAY;AAAA,OACP;AACP,SAAS,qBAAqB;AAE9B,MAAM,+BAA+B,cAAc,cAAc,UAAU,IACvE,wBACA;AAsBG,MAAM,2BAAqD;AAAA,EAChE;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,I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IACR,OAAO;AAAA,EACT;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/data/launchpad-services.ts"],"sourcesContent":["import type { LucideIcon } from \"lucide-react\";\nimport {\n ImagePlus, Layers, GitBranch,\n Award, Package,\n Ticket, Users, Handshake,\n Coins, TrendingUp,\n AtSign, FolderInput, Link2,\n LayoutGrid, Boxes,\n} from \"lucide-react\";\nimport { hasCapability } from \"@medialane/sdk\";\n\nconst TICKETS_TRANSFERABLE_FEATURE = hasCapability(\"ip-tickets\", \"transfer\")\n ? \"Freely transferable\"\n : \"Stays with the original holder\";\n\nexport type ServiceStatus = \"live\" | \"building\" | \"soon\";\n\nexport type ServiceGroup =\n | \"single-nfts\"\n | \"limited-editions\"\n | \"coins\"\n | \"membership\"\n | \"licensing\"\n | \"claims\"\n | \"coming-soon\";\n\nexport interface ServiceGroupDefinition {\n key: ServiceGroup;\n title: string;\n\n tagline: string;\n\n badge?: string;\n}\n\nexport const LAUNCHPAD_SERVICE_GROUPS: ServiceGroupDefinition[] = [\n {\n key: \"single-nfts\",\n title: \"Single NFTs\",\n tagline: \"Singular works, collections, timed drops, and remixes.\",\n },\n {\n key: \"limited-editions\",\n title: \"Limited Editions\",\n tagline: \"Numbered copies of a work.\",\n },\n {\n key: \"coins\",\n title: \"Coins\",\n tagline: \"Launch a coin, or bring one already made.\",\n },\n {\n key: \"membership\",\n title: \"Membership\",\n tagline: \"Immutable certificates, tickets, and club cards.\",\n },\n {\n key: \"licensing\",\n title: \"Licensing\",\n tagline: \"Sponsors back work in return for a license.\",\n },\n {\n key: \"claims\",\n title: \"Claims\",\n tagline: \"Reserve a username, or bring in an existing collection.\",\n },\n {\n key: \"coming-soon\",\n title: \"Coming soon\",\n tagline: \"More ways to earn are on the way.\",\n },\n];\n\nexport interface ServiceDefinition {\n key: string;\n title: string;\n subtitle: string;\n description: string;\n features: string[];\n icon: LucideIcon;\n status: ServiceStatus;\n group: ServiceGroup;\n\n blurb: string;\n\n cta: string;\n\n example?: string;\n\n browseLinkLabel?: string;\n}\n\nexport const LAUNCHPAD_SERVICE_DEFINITIONS: ServiceDefinition[] = [\n\n {\n key: \"nfts\",\n cta: \"Create\",\n blurb: \"Publish each work as a single copy in a collection you own.\",\n title: \"Single Edition NFT\",\n subtitle: \"Each work is minted once\",\n description:\n \"Publish any photo, video, audio, or document, minted once inside your collection. Licensing, provenance, and ownership live on-chain.\",\n features: [\"One mint per work\", \"Collections with their own page and name\", \"You set the license terms\"],\n example: \"A song, a photo, an ebook, a short film\",\n icon: ImagePlus,\n status: \"live\",\n group: \"single-nfts\",\n },\n {\n key: \"limited-editions\",\n cta: \"Mint\",\n blurb: \"Release your work in numbered copies that can be collected and traded.\",\n title: \"Limited Editions NFT\",\n subtitle: \"Numbered copies from a collection you own\",\n description:\n \"Create an editions collection and release each work in as many numbered copies as you choose.\",\n features: [\"Numbered copies, set by you\", \"Fans collect and trade\", \"One home for every release\"],\n example: \"50 copies of a limited print, a music EP in 100 editions\",\n icon: Layers,\n status: \"live\",\n group: \"limited-editions\",\n },\n {\n key: \"create-collection\",\n cta: \"Create\",\n blurb: \"Deploy your own collection to mint single-edition works into.\",\n title: \"NFT Collection\",\n subtitle: \"Your own ERC-721 collection, ready to mint into\",\n description:\n \"Deploy a collection you own and control, with its own name, symbol, and page. Mint single-edition works into it whenever you're ready.\",\n features: [\"Your own collection contract\", \"Set the name and symbol\", \"Mint into it anytime\"],\n example: \"A photography collection, an album of singles\",\n icon: LayoutGrid,\n status: \"live\",\n group: \"single-nfts\",\n },\n {\n key: \"remix-asset\",\n cta: \"Browse\",\n blurb: \"Create from another work. Credit and royalties are handled automatically.\",\n title: \"Remix Asset\",\n subtitle: \"Derivative works with on-chain attribution\",\n description:\n \"Create a licensed derivative of another work. Attribution and provenance flow back to the original creator.\",\n features: [\"Credit handled automatically\", \"Royalties flow to the original\", \"License respected at mint\"],\n example: \"A remix of a song, an artwork inspired by an original\",\n icon: GitBranch,\n status: \"live\",\n group: \"single-nfts\",\n },\n\n {\n key: \"create-1155\",\n cta: \"Create\",\n blurb: \"Deploy your own collection to release numbered editions from.\",\n title: \"Limited Editions Collection\",\n subtitle: \"Your own ERC-1155 collection, ready for editions\",\n description:\n \"Deploy an editions collection you own and control. Release each work in as many numbered copies as you choose.\",\n features: [\"Your own collection contract\", \"Set the name and symbol\", \"Release editions anytime\"],\n example: \"A print series, a music EP with numbered editions\",\n icon: Boxes,\n status: \"live\",\n group: \"limited-editions\",\n },\n {\n key: \"pop-protocol\",\n cta: \"Create\",\n blurb: \"Digital asset certificates for authenticity.\",\n title: \"POP Protocol\",\n subtitle: \"Immutable certificates for authenticity\",\n description:\n \"Permanent certificates that cannot be changed or transferred.\",\n features: [\"Free to claim\", \"Invite-list gating optional\", \"Branded claim page to share\"],\n example: \"Hackathon attendance, course completion, conference pass\",\n icon: Award,\n browseLinkLabel: \"Browse certificates\",\n status: \"live\",\n group: \"membership\",\n },\n {\n key: \"collection-drop\",\n cta: \"Launch\",\n blurb: \"Release a limited run at a set price and time window.\",\n title: \"Collection Drop\",\n subtitle: \"Timed NFT releases with mint windows\",\n description:\n \"Set a price, a supply, and a start and end time. Collectors mint directly from your drop page.\",\n features: [\"You set price and supply\", \"Opens and closes on your schedule\", \"Branded drop page to share\"],\n example: \"A 48-hour drop of 200 pieces at 5 USDC each\",\n icon: Package,\n browseLinkLabel: \"Browse drops\",\n status: \"live\",\n group: \"single-nfts\",\n },\n {\n key: \"ip-tickets\",\n cta: \"Create\",\n blurb: \"Create on-chain tickets your audience can hold and trade.\",\n title: \"IP Tickets\",\n subtitle: \"Verifiable tickets, held in the wallet\",\n description:\n \"Create tickets with their own supply and validity window, then mint them to attendees. Every ticket is verifiable on-chain.\",\n features: [\"Verifiable at the door\", \"Supply and validity you set\", TICKETS_TRANSFERABLE_FEATURE],\n icon: Ticket,\n browseLinkLabel: \"Browse tickets\",\n\n status: \"live\",\n group: \"membership\",\n },\n {\n key: \"ip-club\",\n cta: \"Create\",\n blurb: \"Membership cards for your community.\",\n title: \"IP Club\",\n subtitle: \"Membership tiers, minted as cards\",\n description:\n \"Create a club with membership tiers — fans, supporters, press, season passes. Mint the cards and sell them like any collection.\",\n features: [\"Membership tiers\", \"Optional validity window\", \"Trade like any collection\"],\n icon: Users,\n browseLinkLabel: \"Browse clubs\",\n\n status: \"live\",\n group: \"membership\",\n },\n {\n key: \"ip-sponsorship\",\n cta: \"Browse\",\n blurb: \"Let a sponsor back your work directly, for a license in return.\",\n title: \"IP Sponsorship\",\n subtitle: \"Direct sponsorship offers, settled asset-to-asset\",\n description:\n \"Create a sponsorship offer on an asset you own. Sponsors bid, you accept, and they receive a license. Payment settles directly between sponsor and author.\",\n features: [\"Direct settlement\", \"Owner-verified on-chain\", \"Open bidding or one invited sponsor\"],\n example: \"Sponsor a song or an artwork for a license\",\n icon: Handshake,\n browseLinkLabel: \"Browse offers\",\n\n status: \"live\",\n group: \"licensing\",\n },\n\n {\n key: \"creator-coins\",\n cta: \"Launch\",\n blurb: \"Launch your coin in a few clicks and stay in control of it.\",\n title: \"Creator Coin\",\n subtitle: \"Your own coin, your liquidity\",\n description:\n \"Launch your own coin with a public trading pool. You set the supply and allocation and stay in control of the liquidity.\",\n features: [\"Launch in a few clicks\", \"You keep control of the liquidity\", \"Traded on a public pool\"],\n example: \"A fan coin for your channel, a coin for your music project\",\n icon: TrendingUp,\n status: \"live\",\n group: \"coins\",\n },\n\n {\n key: \"claim-memecoin\",\n cta: \"Claim\",\n blurb: \"Add a coin you already launched to your profile.\",\n title: \"Claim Memecoin\",\n subtitle: \"Bring a coin you already launched\",\n description:\n \"Claim a coin you already launched to list it on the Coins page and your profile. Claims are reviewed before going live.\",\n features: [\"Bring a coin you already launched\", \"Reviewed by our team\", \"Featured on the Coins page\"],\n example: \"Your unrug memecoin, listed on your creator profile\",\n icon: Coins,\n status: \"live\",\n group: \"coins\",\n },\n {\n key: \"claim-username\",\n cta: \"Claim\",\n blurb: \"Reserve your name and get your own creator page.\",\n title: \"Claim Username\",\n subtitle: \"Reserve your creator page URL\",\n description:\n \"Claim your username to get a shareable creator page, your public portfolio at a clean, memorable URL.\",\n features: [\"Free claim\", \"Shareable creator page\", \"Your public portfolio\"],\n example: \"medialane.io/creator/your-name — your portfolio at your own name\",\n icon: AtSign,\n status: \"live\",\n group: \"claims\",\n },\n {\n key: \"claim-collection\",\n cta: \"Claim\",\n blurb: \"Made a collection somewhere else? Bring it to your profile.\",\n title: \"Claim Collection\",\n subtitle: \"Bring a collection you already made\",\n description:\n \"Claim a collection you made elsewhere to link it to your profile and give it a branded collection page.\",\n features: [\"Bring an existing collection\", \"Linked to your profile\", \"Branded collection page\"],\n example: \"A collection you made elsewhere joins your profile\",\n icon: FolderInput,\n status: \"live\",\n group: \"claims\",\n },\n {\n key: \"claim-collection-name\",\n cta: \"Claim\",\n blurb: \"Give your collection a clean, memorable web address of its own.\",\n title: \"Claim Collection Name\",\n subtitle: \"Reserve your collection page URL\",\n description:\n \"Claim a custom name for your collection page and get a clean, shareable URL instead of a long technical address.\",\n features: [\"Free claim\", \"Clean shareable URL\", \"Easy to remember and share\"],\n example: \"medialane.io/collection/your-collection\",\n icon: Link2,\n status: \"live\",\n group: \"claims\",\n },\n];\n"],"mappings":"AACA;AAAA,EACE;AAAA,EAAW;AAAA,EAAQ;AAAA,EACnB;AAAA,EAAO;AAAA,EACP;AAAA,EAAQ;AAAA,EAAO;AAAA,EACf;AAAA,EAAO;AAAA,EACP;AAAA,EAAQ;AAAA,EAAa;AAAA,EACrB;AAAA,EAAY;AAAA,OACP;AACP,SAAS,qBAAqB;AAE9B,MAAM,+BAA+B,cAAc,cAAc,UAAU,IACvE,wBACA;AAsBG,MAAM,2BAAqD;AAAA,EAChE;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,OAAO;AA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IAC9F,SAAS;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,IACP,OAAO;AAAA,IACP,UAAU;AAAA,IACV,aACE;AAAA,IACF,UAAU,CAAC,cAAc,uBAAuB,4BAA4B;AAAA,IAC5E,SAAS;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -335,6 +335,10 @@ import '@radix-ui/react-collapsible';
|
|
|
335
335
|
import '@radix-ui/react-popover';
|
|
336
336
|
import '@radix-ui/react-select';
|
|
337
337
|
import '@radix-ui/react-dialog';
|
|
338
|
+
import './components/fast-mint/formats/types.cjs';
|
|
339
|
+
import './components/fast-mint/form.cjs';
|
|
340
|
+
import './components/fast-mint/use-new-collection-draft.cjs';
|
|
341
|
+
import './components/fast-mint/create-then-add.cjs';
|
|
338
342
|
import 'swr';
|
|
339
343
|
import './utils/media-wallet/wallet-tokens.cjs';
|
|
340
344
|
import 'swr/infinite';
|
package/dist/index.d.ts
CHANGED
|
@@ -335,6 +335,10 @@ import '@radix-ui/react-collapsible';
|
|
|
335
335
|
import '@radix-ui/react-popover';
|
|
336
336
|
import '@radix-ui/react-select';
|
|
337
337
|
import '@radix-ui/react-dialog';
|
|
338
|
+
import './components/fast-mint/formats/types.js';
|
|
339
|
+
import './components/fast-mint/form.js';
|
|
340
|
+
import './components/fast-mint/use-new-collection-draft.js';
|
|
341
|
+
import './components/fast-mint/create-then-add.js';
|
|
338
342
|
import 'swr';
|
|
339
343
|
import './utils/media-wallet/wallet-tokens.js';
|
|
340
344
|
import 'swr/infinite';
|
|
@@ -2,7 +2,6 @@ import { DropTermsBody, CreateDropManageIntentParams } from '@medialane/sdk';
|
|
|
2
2
|
import { MedialaneClient } from '@medialane/sdk/starknet';
|
|
3
3
|
import { DropSigner } from './types.cjs';
|
|
4
4
|
import '../../components/fast-mint/types.cjs';
|
|
5
|
-
import 'react';
|
|
6
5
|
import 'starknet';
|
|
7
6
|
|
|
8
7
|
interface DropDeps {
|
|
@@ -2,7 +2,6 @@ import { DropTermsBody, CreateDropManageIntentParams } from '@medialane/sdk';
|
|
|
2
2
|
import { MedialaneClient } from '@medialane/sdk/starknet';
|
|
3
3
|
import { DropSigner } from './types.js';
|
|
4
4
|
import '../../components/fast-mint/types.js';
|
|
5
|
-
import 'react';
|
|
6
5
|
import 'starknet';
|
|
7
6
|
|
|
8
7
|
interface DropDeps {
|
|
@@ -0,0 +1,90 @@
|
|
|
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 launchpad_actions_exports = {};
|
|
20
|
+
__export(launchpad_actions_exports, {
|
|
21
|
+
claimEndTimestamp: () => claimEndTimestamp,
|
|
22
|
+
dateToUnixTimestamp: () => dateToUnixTimestamp,
|
|
23
|
+
popEventAttributes: () => popEventAttributes,
|
|
24
|
+
popEventIntent: () => popEventIntent,
|
|
25
|
+
serviceCollectionIntent: () => serviceCollectionIntent,
|
|
26
|
+
tierIntents: () => tierIntents,
|
|
27
|
+
tierTraits: () => tierTraits
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(launchpad_actions_exports);
|
|
30
|
+
function claimEndTimestamp(date, time) {
|
|
31
|
+
return Math.floor((/* @__PURE__ */ new Date(`${date}T${time}:00`)).getTime() / 1e3);
|
|
32
|
+
}
|
|
33
|
+
function dateToUnixTimestamp(dateStr) {
|
|
34
|
+
if (!dateStr) return void 0;
|
|
35
|
+
const d = new Date(dateStr);
|
|
36
|
+
if (Number.isNaN(d.getTime())) return void 0;
|
|
37
|
+
return Math.floor(d.getTime() / 1e3);
|
|
38
|
+
}
|
|
39
|
+
function popEventAttributes(eventType, isPublic) {
|
|
40
|
+
return [
|
|
41
|
+
{ trait_type: "Visibility", value: isPublic ? "Public" : "Private" },
|
|
42
|
+
{ trait_type: "Event Type", value: eventType }
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
function popEventIntent(api, p) {
|
|
46
|
+
return api.intents.create("create-collection", { ...p, service: "pop-protocol" });
|
|
47
|
+
}
|
|
48
|
+
function serviceCollectionIntent(api, p) {
|
|
49
|
+
const { service, ...rest } = p;
|
|
50
|
+
return api.intents.create("create-collection", { ...rest, ...service ? { service } : {} });
|
|
51
|
+
}
|
|
52
|
+
function tierTraits(traitType, maxSupply, contract) {
|
|
53
|
+
return [
|
|
54
|
+
{ traitType: "Type", value: traitType },
|
|
55
|
+
{ traitType: "Token Standard", value: "ERC-1155" },
|
|
56
|
+
{ traitType: "Max Supply", value: maxSupply },
|
|
57
|
+
{ traitType: "Collection Contract", value: contract }
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
async function tierIntents(api, p) {
|
|
61
|
+
const tier = await api.intents.create("create-tier", {
|
|
62
|
+
owner: p.owner,
|
|
63
|
+
collection: p.contract,
|
|
64
|
+
service: p.service,
|
|
65
|
+
maxSupply: p.maxSupply,
|
|
66
|
+
startTime: p.startTime,
|
|
67
|
+
endTime: p.endTime,
|
|
68
|
+
royaltyBps: p.royaltyBps,
|
|
69
|
+
metadataUri: p.metadataUri
|
|
70
|
+
});
|
|
71
|
+
const mint = await api.intents.create("mint", {
|
|
72
|
+
owner: p.owner,
|
|
73
|
+
recipient: p.owner,
|
|
74
|
+
collectionContract: p.contract,
|
|
75
|
+
tokenId: String(p.tierId),
|
|
76
|
+
amount: p.maxSupply
|
|
77
|
+
});
|
|
78
|
+
return [tier, mint];
|
|
79
|
+
}
|
|
80
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
81
|
+
0 && (module.exports = {
|
|
82
|
+
claimEndTimestamp,
|
|
83
|
+
dateToUnixTimestamp,
|
|
84
|
+
popEventAttributes,
|
|
85
|
+
popEventIntent,
|
|
86
|
+
serviceCollectionIntent,
|
|
87
|
+
tierIntents,
|
|
88
|
+
tierTraits
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=launchpad-actions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/launchpad-actions.ts"],"sourcesContent":["import type { ApiClient, ApiIntentCreated } from \"@medialane/sdk\";\n\nexport function claimEndTimestamp(date: string, time: string): number {\n return Math.floor(new Date(`${date}T${time}:00`).getTime() / 1000);\n}\n\nexport function dateToUnixTimestamp(dateStr: string | undefined): number | undefined {\n if (!dateStr) return undefined;\n const d = new Date(dateStr);\n if (Number.isNaN(d.getTime())) return undefined;\n return Math.floor(d.getTime() / 1000);\n}\n\nexport function popEventAttributes(eventType: string, isPublic: boolean) {\n return [\n { trait_type: \"Visibility\", value: isPublic ? \"Public\" : \"Private\" },\n { trait_type: \"Event Type\", value: eventType },\n ];\n}\n\nexport function popEventIntent(\n api: ApiClient,\n p: { owner: string; name: string; symbol: string; baseUri: string; claimEndTimestamp: number },\n): Promise<ApiIntentCreated> {\n return api.intents.create(\"create-collection\", { ...p, service: \"pop-protocol\" });\n}\n\nexport function serviceCollectionIntent(\n api: ApiClient,\n p: { owner: string; name: string; symbol: string; baseUri: string; service?: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" },\n): Promise<ApiIntentCreated> {\n const { service, ...rest } = p;\n return api.intents.create(\"create-collection\", { ...rest, ...(service ? { service } : {}) });\n}\n\nexport function tierTraits(traitType: string, maxSupply: string, contract: string) {\n return [\n { traitType: \"Type\", value: traitType },\n { traitType: \"Token Standard\", value: \"ERC-1155\" },\n { traitType: \"Max Supply\", value: maxSupply },\n { traitType: \"Collection Contract\", value: contract },\n ];\n}\n\nexport async function tierIntents(\n api: ApiClient,\n p: {\n owner: string;\n contract: string;\n service: \"ip-club\" | \"ip-tickets\";\n tierId: number;\n maxSupply: string;\n startTime?: number;\n endTime?: number;\n royaltyBps: number;\n metadataUri: string;\n },\n): Promise<ApiIntentCreated[]> {\n const tier = await api.intents.create(\"create-tier\", {\n owner: p.owner,\n collection: p.contract,\n service: p.service,\n maxSupply: p.maxSupply,\n startTime: p.startTime,\n endTime: p.endTime,\n royaltyBps: p.royaltyBps,\n metadataUri: p.metadataUri,\n });\n const mint = await api.intents.create(\"mint\", {\n owner: p.owner,\n recipient: p.owner,\n collectionContract: p.contract,\n tokenId: String(p.tierId),\n amount: p.maxSupply,\n });\n return [tier, mint];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,SAAS,kBAAkB,MAAc,MAAsB;AACpE,SAAO,KAAK,OAAM,oBAAI,KAAK,GAAG,IAAI,IAAI,IAAI,KAAK,GAAE,QAAQ,IAAI,GAAI;AACnE;AAEO,SAAS,oBAAoB,SAAiD;AACnF,MAAI,CAAC,QAAS,QAAO;AACrB,QAAM,IAAI,IAAI,KAAK,OAAO;AAC1B,MAAI,OAAO,MAAM,EAAE,QAAQ,CAAC,EAAG,QAAO;AACtC,SAAO,KAAK,MAAM,EAAE,QAAQ,I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AI;AACpB;","names":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ApiClient, ApiIntentCreated } from '@medialane/sdk';
|
|
2
|
+
|
|
3
|
+
declare function claimEndTimestamp(date: string, time: string): number;
|
|
4
|
+
declare function dateToUnixTimestamp(dateStr: string | undefined): number | undefined;
|
|
5
|
+
declare function popEventAttributes(eventType: string, isPublic: boolean): {
|
|
6
|
+
trait_type: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
declare function popEventIntent(api: ApiClient, p: {
|
|
10
|
+
owner: string;
|
|
11
|
+
name: string;
|
|
12
|
+
symbol: string;
|
|
13
|
+
baseUri: string;
|
|
14
|
+
claimEndTimestamp: number;
|
|
15
|
+
}): Promise<ApiIntentCreated>;
|
|
16
|
+
declare function serviceCollectionIntent(api: ApiClient, p: {
|
|
17
|
+
owner: string;
|
|
18
|
+
name: string;
|
|
19
|
+
symbol: string;
|
|
20
|
+
baseUri: string;
|
|
21
|
+
service?: "ip-club" | "ip-tickets" | "mip-erc1155";
|
|
22
|
+
}): Promise<ApiIntentCreated>;
|
|
23
|
+
declare function tierTraits(traitType: string, maxSupply: string, contract: string): {
|
|
24
|
+
traitType: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
declare function tierIntents(api: ApiClient, p: {
|
|
28
|
+
owner: string;
|
|
29
|
+
contract: string;
|
|
30
|
+
service: "ip-club" | "ip-tickets";
|
|
31
|
+
tierId: number;
|
|
32
|
+
maxSupply: string;
|
|
33
|
+
startTime?: number;
|
|
34
|
+
endTime?: number;
|
|
35
|
+
royaltyBps: number;
|
|
36
|
+
metadataUri: string;
|
|
37
|
+
}): Promise<ApiIntentCreated[]>;
|
|
38
|
+
|
|
39
|
+
export { claimEndTimestamp, dateToUnixTimestamp, popEventAttributes, popEventIntent, serviceCollectionIntent, tierIntents, tierTraits };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ApiClient, ApiIntentCreated } from '@medialane/sdk';
|
|
2
|
+
|
|
3
|
+
declare function claimEndTimestamp(date: string, time: string): number;
|
|
4
|
+
declare function dateToUnixTimestamp(dateStr: string | undefined): number | undefined;
|
|
5
|
+
declare function popEventAttributes(eventType: string, isPublic: boolean): {
|
|
6
|
+
trait_type: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
declare function popEventIntent(api: ApiClient, p: {
|
|
10
|
+
owner: string;
|
|
11
|
+
name: string;
|
|
12
|
+
symbol: string;
|
|
13
|
+
baseUri: string;
|
|
14
|
+
claimEndTimestamp: number;
|
|
15
|
+
}): Promise<ApiIntentCreated>;
|
|
16
|
+
declare function serviceCollectionIntent(api: ApiClient, p: {
|
|
17
|
+
owner: string;
|
|
18
|
+
name: string;
|
|
19
|
+
symbol: string;
|
|
20
|
+
baseUri: string;
|
|
21
|
+
service?: "ip-club" | "ip-tickets" | "mip-erc1155";
|
|
22
|
+
}): Promise<ApiIntentCreated>;
|
|
23
|
+
declare function tierTraits(traitType: string, maxSupply: string, contract: string): {
|
|
24
|
+
traitType: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
declare function tierIntents(api: ApiClient, p: {
|
|
28
|
+
owner: string;
|
|
29
|
+
contract: string;
|
|
30
|
+
service: "ip-club" | "ip-tickets";
|
|
31
|
+
tierId: number;
|
|
32
|
+
maxSupply: string;
|
|
33
|
+
startTime?: number;
|
|
34
|
+
endTime?: number;
|
|
35
|
+
royaltyBps: number;
|
|
36
|
+
metadataUri: string;
|
|
37
|
+
}): Promise<ApiIntentCreated[]>;
|
|
38
|
+
|
|
39
|
+
export { claimEndTimestamp, dateToUnixTimestamp, popEventAttributes, popEventIntent, serviceCollectionIntent, tierIntents, tierTraits };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
function claimEndTimestamp(date, time) {
|
|
2
|
+
return Math.floor((/* @__PURE__ */ new Date(`${date}T${time}:00`)).getTime() / 1e3);
|
|
3
|
+
}
|
|
4
|
+
function dateToUnixTimestamp(dateStr) {
|
|
5
|
+
if (!dateStr) return void 0;
|
|
6
|
+
const d = new Date(dateStr);
|
|
7
|
+
if (Number.isNaN(d.getTime())) return void 0;
|
|
8
|
+
return Math.floor(d.getTime() / 1e3);
|
|
9
|
+
}
|
|
10
|
+
function popEventAttributes(eventType, isPublic) {
|
|
11
|
+
return [
|
|
12
|
+
{ trait_type: "Visibility", value: isPublic ? "Public" : "Private" },
|
|
13
|
+
{ trait_type: "Event Type", value: eventType }
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
function popEventIntent(api, p) {
|
|
17
|
+
return api.intents.create("create-collection", { ...p, service: "pop-protocol" });
|
|
18
|
+
}
|
|
19
|
+
function serviceCollectionIntent(api, p) {
|
|
20
|
+
const { service, ...rest } = p;
|
|
21
|
+
return api.intents.create("create-collection", { ...rest, ...service ? { service } : {} });
|
|
22
|
+
}
|
|
23
|
+
function tierTraits(traitType, maxSupply, contract) {
|
|
24
|
+
return [
|
|
25
|
+
{ traitType: "Type", value: traitType },
|
|
26
|
+
{ traitType: "Token Standard", value: "ERC-1155" },
|
|
27
|
+
{ traitType: "Max Supply", value: maxSupply },
|
|
28
|
+
{ traitType: "Collection Contract", value: contract }
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
async function tierIntents(api, p) {
|
|
32
|
+
const tier = await api.intents.create("create-tier", {
|
|
33
|
+
owner: p.owner,
|
|
34
|
+
collection: p.contract,
|
|
35
|
+
service: p.service,
|
|
36
|
+
maxSupply: p.maxSupply,
|
|
37
|
+
startTime: p.startTime,
|
|
38
|
+
endTime: p.endTime,
|
|
39
|
+
royaltyBps: p.royaltyBps,
|
|
40
|
+
metadataUri: p.metadataUri
|
|
41
|
+
});
|
|
42
|
+
const mint = await api.intents.create("mint", {
|
|
43
|
+
owner: p.owner,
|
|
44
|
+
recipient: p.owner,
|
|
45
|
+
collectionContract: p.contract,
|
|
46
|
+
tokenId: String(p.tierId),
|
|
47
|
+
amount: p.maxSupply
|
|
48
|
+
});
|
|
49
|
+
return [tier, mint];
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
claimEndTimestamp,
|
|
53
|
+
dateToUnixTimestamp,
|
|
54
|
+
popEventAttributes,
|
|
55
|
+
popEventIntent,
|
|
56
|
+
serviceCollectionIntent,
|
|
57
|
+
tierIntents,
|
|
58
|
+
tierTraits
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=launchpad-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/launchpad-actions.ts"],"sourcesContent":["import type { ApiClient, ApiIntentCreated } from \"@medialane/sdk\";\n\nexport function claimEndTimestamp(date: string, time: string): number {\n return Math.floor(new Date(`${date}T${time}:00`).getTime() / 1000);\n}\n\nexport function dateToUnixTimestamp(dateStr: string | undefined): number | undefined {\n if (!dateStr) return undefined;\n const d = new Date(dateStr);\n if (Number.isNaN(d.getTime())) return undefined;\n return Math.floor(d.getTime() / 1000);\n}\n\nexport function popEventAttributes(eventType: string, isPublic: boolean) {\n return [\n { trait_type: \"Visibility\", value: isPublic ? \"Public\" : \"Private\" },\n { trait_type: \"Event Type\", value: eventType },\n ];\n}\n\nexport function popEventIntent(\n api: ApiClient,\n p: { owner: string; name: string; symbol: string; baseUri: string; claimEndTimestamp: number },\n): Promise<ApiIntentCreated> {\n return api.intents.create(\"create-collection\", { ...p, service: \"pop-protocol\" });\n}\n\nexport function serviceCollectionIntent(\n api: ApiClient,\n p: { owner: string; name: string; symbol: string; baseUri: string; service?: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" },\n): Promise<ApiIntentCreated> {\n const { service, ...rest } = p;\n return api.intents.create(\"create-collection\", { ...rest, ...(service ? { service } : {}) });\n}\n\nexport function tierTraits(traitType: string, maxSupply: string, contract: string) {\n return [\n { traitType: \"Type\", value: traitType },\n { traitType: \"Token Standard\", value: \"ERC-1155\" },\n { traitType: \"Max Supply\", value: maxSupply },\n { traitType: \"Collection Contract\", value: contract },\n ];\n}\n\nexport async function tierIntents(\n api: ApiClient,\n p: {\n owner: string;\n contract: string;\n service: \"ip-club\" | \"ip-tickets\";\n tierId: number;\n maxSupply: string;\n startTime?: number;\n endTime?: number;\n royaltyBps: number;\n metadataUri: string;\n },\n): Promise<ApiIntentCreated[]> {\n const tier = await api.intents.create(\"create-tier\", {\n owner: p.owner,\n collection: p.contract,\n service: p.service,\n maxSupply: p.maxSupply,\n startTime: p.startTime,\n endTime: p.endTime,\n royaltyBps: p.royaltyBps,\n metadataUri: p.metadataUri,\n });\n const mint = await api.intents.create(\"mint\", {\n owner: p.owner,\n recipient: p.owner,\n collectionContract: p.contract,\n tokenId: String(p.tierId),\n amount: p.maxSupply,\n });\n return [tier, mint];\n}\n"],"mappings":"AAEO,SAAS,kBAAkB,MAAc,MAAsB;AACpE,SAAO,KAAK,OAAM,oBAAI,KAAK,GAAG,IAAI,IAAI,IAAI,KAAK,GAAE,QAAQ,IAAI,GAAI;AACnE;AAEO,SAAS,oBAAoB,SAAiD;AACnF,MAAI,CAAC,QAAS,QAAO;AACrB,QAAM,IAAI,IAAI,KAAK,OAAO;AAC1B,MAAI,OAAO,MAAM,EAAE,QAAQ,CAAC,EAAG,QAAO;AACtC,SAAO,KAAK,MAAM,EAAE,QAAQ,IAAI,GAAI;AACtC;AAEO,SAAS,mBAAmB,WAAmB,UAAmB;AACvE,SAAO;AAAA,IACL,EAAE,YAAY,cAAc,OAAO,WAAW,WAAW,UAAU;AAAA,IACnE,EAAE,YAAY,cAAc,OAAO,UAAU;AAAA,EAC/C;AACF;AAEO,SAAS,eACd,KACA,GAC2B;AAC3B,SAAO,IAAI,QAAQ,OAAO,qBAAqB,EAAE,GAAG,GAAG,SAAS,eAAe,CAAC;AAClF;AAEO,SAAS,wBACd,KACA,GAC2B;AAC3B,QAAM,EAAE,SAAS,GAAG,KAAK,IAAI;AAC7B,SAAO,IAAI,QAAQ,OAAO,qBAAqB,EAAE,GAAG,MAAM,GAAI,UAAU,EAAE,QAAQ,IAAI,CAAC,EAAG,CAAC;AAC7F;AAEO,SAAS,WAAW,WAAmB,WAAmB,UAAkB;AACjF,SAAO;AAAA,IACL,EAAE,WAAW,QAAQ,OAAO,UAAU;AAAA,IACtC,EAAE,WAAW,kBAAkB,OAAO,WAAW;AAAA,IACjD,EAAE,WAAW,cAAc,OAAO,UAAU;AAAA,IAC5C,EAAE,WAAW,uBAAuB,OAAO,SAAS;AAAA,EACtD;AACF;AAEA,eAAsB,YACpB,KACA,GAW6B;AAC7B,QAAM,OAAO,MAAM,IAAI,QAAQ,OAAO,eAAe;AAAA,IACnD,OAAO,EAAE;AAAA,IACT,YAAY,EAAE;AAAA,IACd,SAAS,EAAE;AAAA,IACX,WAAW,EAAE;AAAA,IACb,WAAW,EAAE;AAAA,IACb,SAAS,EAAE;AAAA,IACX,YAAY,EAAE;AAAA,IACd,aAAa,EAAE;AAAA,EACjB,CAAC;AACD,QAAM,OAAO,MAAM,IAAI,QAAQ,OAAO,QAAQ;AAAA,IAC5C,OAAO,EAAE;AAAA,IACT,WAAW,EAAE;AAAA,IACb,oBAAoB,EAAE;AAAA,IACtB,SAAS,OAAO,EAAE,MAAM;AAAA,IACxB,QAAQ,EAAE;AAAA,EACZ,CAAC;AACD,SAAO,CAAC,MAAM,IAAI;AACpB;","names":[]}
|
|
@@ -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: 6 | 8 | 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: 6 | 8 | 18;
|
|
11
11
|
};
|
|
12
12
|
declare function hasSufficientBalance(rawBalance: bigint | null, requiredHuman: string, decimals: number): boolean | null;
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,124 +0,0 @@
|
|
|
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 mint_asset_exports = {};
|
|
20
|
-
__export(mint_asset_exports, {
|
|
21
|
-
mintAsset: () => mintAsset
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(mint_asset_exports);
|
|
24
|
-
var import_sdk = require("@medialane/sdk");
|
|
25
|
-
var import_starknet = require("@medialane/sdk/starknet");
|
|
26
|
-
var import_ipfs_upload = require("../../utils/ipfs-upload.js");
|
|
27
|
-
async function pollForNewCollection(refetchCollections, name, symbol) {
|
|
28
|
-
for (let attempt = 0; attempt < 8; attempt++) {
|
|
29
|
-
const list = await refetchCollections();
|
|
30
|
-
const match = list.find((c) => c.name === name && c.symbol === symbol);
|
|
31
|
-
if (match?.collectionId) return match;
|
|
32
|
-
await new Promise((r) => setTimeout(r, 1500));
|
|
33
|
-
}
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
async function mintAsset(input) {
|
|
37
|
-
const { client, signer, walletAddress, values, destination } = input;
|
|
38
|
-
const image = input.mediaKind === "image" ? input.mediaUri : input.featureUri;
|
|
39
|
-
const built = (0, import_sdk.buildAssetMetadata)({
|
|
40
|
-
name: values.name,
|
|
41
|
-
description: values.description || "",
|
|
42
|
-
externalUrl: values.external_url || "",
|
|
43
|
-
imageUri: image,
|
|
44
|
-
creator: walletAddress,
|
|
45
|
-
ipType: input.ipType,
|
|
46
|
-
licenseType: values.licenseType,
|
|
47
|
-
commercialUse: values.commercialUse,
|
|
48
|
-
derivatives: values.derivatives,
|
|
49
|
-
attribution: values.attribution,
|
|
50
|
-
geographicScope: values.geographicScope,
|
|
51
|
-
aiPolicy: values.aiPolicy,
|
|
52
|
-
royalty: String(values.royalty),
|
|
53
|
-
templateTraits: input.templateFields.filter(({ traitType, value }) => traitType.trim() && value.trim()).map(({ traitType, value }) => ({ traitType, value }))
|
|
54
|
-
});
|
|
55
|
-
const metadata = { ...built };
|
|
56
|
-
if (input.mediaKind !== "image") metadata.animation_url = input.mediaUri;
|
|
57
|
-
const uploadToken = await input.getUploadToken();
|
|
58
|
-
if (!uploadToken) throw new Error("Sign in first");
|
|
59
|
-
const tokenUri = await (0, import_ipfs_upload.uploadJsonToIpfs)(client.api, metadata);
|
|
60
|
-
const royaltyBps = Math.round(values.royalty * 100);
|
|
61
|
-
let contractAddress;
|
|
62
|
-
let tokenId;
|
|
63
|
-
if (input.assetType === "single") {
|
|
64
|
-
let collectionId = destination.mode === "existing" ? destination.collectionId : "";
|
|
65
|
-
contractAddress = destination.mode === "existing" ? input.singleCollections.find((c) => c.collectionId === destination.collectionId)?.contractAddress ?? null : null;
|
|
66
|
-
if (destination.mode === "new") {
|
|
67
|
-
const created = await client.api.intents.create("create-collection", {
|
|
68
|
-
owner: walletAddress,
|
|
69
|
-
name: destination.name,
|
|
70
|
-
symbol: destination.symbol,
|
|
71
|
-
description: destination.description || void 0,
|
|
72
|
-
image
|
|
73
|
-
});
|
|
74
|
-
await (0, import_starknet.executeIntent)(signer, client, created);
|
|
75
|
-
const found = await pollForNewCollection(input.refetchCollections, destination.name, destination.symbol);
|
|
76
|
-
if (!found) throw new Error("Collection created, but it's still indexing \u2014 try minting again in a moment from My Collections.");
|
|
77
|
-
collectionId = found.collectionId;
|
|
78
|
-
contractAddress = found.contractAddress ?? null;
|
|
79
|
-
}
|
|
80
|
-
const minted = await client.api.intents.create("mint", {
|
|
81
|
-
owner: walletAddress,
|
|
82
|
-
collectionId,
|
|
83
|
-
recipient: walletAddress,
|
|
84
|
-
tokenUri,
|
|
85
|
-
royaltyBps
|
|
86
|
-
});
|
|
87
|
-
const result = await (0, import_starknet.executeIntent)(signer, client, minted);
|
|
88
|
-
tokenId = contractAddress ? (0, import_starknet.mintedTokenIdFromReceipt)(result.receipt, contractAddress) : null;
|
|
89
|
-
} else {
|
|
90
|
-
let collectionContract = destination.mode === "existing" ? destination.collectionContract : "";
|
|
91
|
-
if (destination.mode === "new") {
|
|
92
|
-
const created = await client.api.intents.create("create-collection", {
|
|
93
|
-
owner: walletAddress,
|
|
94
|
-
name: destination.name,
|
|
95
|
-
symbol: destination.symbol,
|
|
96
|
-
description: destination.description || void 0,
|
|
97
|
-
image,
|
|
98
|
-
baseUri: "",
|
|
99
|
-
service: "mip-erc1155"
|
|
100
|
-
});
|
|
101
|
-
const deployResult = await (0, import_starknet.executeIntent)(signer, client, created);
|
|
102
|
-
const deployed = (0, import_starknet.deployedCollectionFromReceipt)(deployResult.receipt, "mip-erc1155");
|
|
103
|
-
if (!deployed) throw new Error("Collection deployed, but its address couldn't be read \u2014 check My Collections to mint into it.");
|
|
104
|
-
collectionContract = deployed;
|
|
105
|
-
}
|
|
106
|
-
const minted = await client.api.intents.create("mint", {
|
|
107
|
-
owner: walletAddress,
|
|
108
|
-
recipient: walletAddress,
|
|
109
|
-
collectionContract,
|
|
110
|
-
tokenUri,
|
|
111
|
-
value: input.editionCount,
|
|
112
|
-
royaltyBps
|
|
113
|
-
});
|
|
114
|
-
const result = await (0, import_starknet.executeIntent)(signer, client, minted);
|
|
115
|
-
contractAddress = collectionContract;
|
|
116
|
-
tokenId = (0, import_starknet.mintedTokenIdFromReceipt)(result.receipt, collectionContract);
|
|
117
|
-
}
|
|
118
|
-
return contractAddress && tokenId ? { contract: contractAddress, tokenId, image } : null;
|
|
119
|
-
}
|
|
120
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
121
|
-
0 && (module.exports = {
|
|
122
|
-
mintAsset
|
|
123
|
-
});
|
|
124
|
-
//# sourceMappingURL=mint-asset.cjs.map
|