Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

refactor(drops): drop the two store helpers nothing calls, and say so in the docs

nirholas28a893be8352
diff --git a/api/_lib/drop-store.js b/api/_lib/drop-store.js
index 93c0da6f2..1a41498ef 100644
--- a/api/_lib/drop-store.js
+++ b/api/_lib/drop-store.js
@@ -308,26 +308,6 @@ export async function releaseClaim(dropId, idx) {
where drop_id = ${dropId} and idx = ${idx} and status = 'revealing'
`;
}
-
-export async function setCollectionAddress(dropId, ownerId, address) {
- const rows = await sql`
- update drops set collection_address = ${address}
- where id = ${dropId} and owner_id = ${ownerId} and collection_address is null and deleted_at is null
- returning *
- `;
- return rows[0] ? publicDrop(rows[0], { includeSeed: true, isOwner: true }) : null;
-}
-
-export async function markMinted(dropId, idx, { mintAddress, ownerWallet }) {
- const rows = await sql`
- update drop_items
- set mint_address = ${mintAddress}, owner_wallet = ${ownerWallet}, minted_at = now()
- where drop_id = ${dropId} and idx = ${idx} and mint_address is null
- returning *
- `;
- return rows[0] ? publicItem(rows[0]) : null;
-}
-
/* ────────────────────────────────────────────────────────────────────────── *
* Shapes
* ────────────────────────────────────────────────────────────────────────── */
diff --git a/docs/drops.md b/docs/drops.md
index b26245ab7..a8aea8ac4 100644
--- a/docs/drops.md
+++ b/docs/drops.md
@@ -169,6 +169,17 @@ keyed by the layer's slug, adding a layer to a draft does not perturb the values
already rolled on the layers beside it, and reordering the layer array changes
nothing at all.
+## Not yet wired: minting a drop on-chain
+
+The schema carries `drops.collection_address` and the per-item `mint_address` /
+`owner_wallet` / `minted_at` columns, but nothing writes them yet: there is no
+endpoint that anchors a collection as a Metaplex Core collection or mints an
+item into it. Revealed items are real, exportable GLBs that a creator can mint
+one at a time through the existing [Minted 3D Assets](minted.md) path today.
+Wiring a drop-native mint (one Core collection per drop, each revealed item
+minted into it) is the next step, and the columns are there so it does not need
+a schema change.
+
## API reference
All routes live under `/api/drops/`. Reads are public and rate-limited by IP;