computers / README.md
ordlibrary's picture
Upload 4008 files
bbfd17b verified
|
Raw History Blame Contribute Delete
2.37 kB
# Clawd Computers v1: original pixel art, restored
This folder restores the original 1,000 pixel computers from commit `42ab598` as the collection source. The illustrated v2 art in `../collection/` is left as it was.
| Path | What |
|---|---|
| `images/` | the original v1 PNGs (byte-identical to 42ab598; tested) |
| `source/` | the original v1 trait metadata |
| `metadata/NNNN.json` | Core metadata: `image` = v1 PNG, `animation_url` = `/computers/3d/NNNN`, `properties.files` |
| `agents/NNNN.json` | EIP-8004 agent registration with a unique persona built from the v1 traits (role from Model, voice from Mood, skills from Software/Peripheral) |
| `3d/index.html` | redirect page: goes to `3d.musebook.trade/?nft=<asset>` once `minted.json` lists the asset, otherwise to the default 3D model |
| `minted.json` | id → asset map that the crank fills in (mainnet) |
Wallets: every computer's wallet is its **Metaplex Core asset-signer PDA**, derived from the asset address. No private keys are generated or stored. The crank records each one in `state/v1.<network>.json`.
## Commands
```sh
npm run v1:build # regenerate metadata/agents/3d (V1_BASE_URI / V1_SITE configurable)
npm run v1:cost -- --exclude <ids> # Irys upload + rent estimate, read-only
node scripts/v1.mjs plan --exclude 0794,0977 # config-line prefixes and items
# Rehearsal (test networks only): --clawd uses rpc.clawdchain.trade
KEYPAIR_PATH=.keys/test.json node scripts/v1.mjs collection --clawd
KEYPAIR_PATH=.keys/test.json node scripts/v1.mjs seed-old --clawd --ids 0794,0977
KEYPAIR_PATH=.keys/test.json node scripts/v1.mjs cm-create --clawd
KEYPAIR_PATH=.keys/test.json node scripts/v1.mjs mint-test --clawd --count 3
KEYPAIR_PATH=.keys/test.json node scripts/v1.mjs crank --clawd
KEYPAIR_PATH=.keys/test.json node scripts/v1.mjs update-existing --clawd --ids 0794,0977
node scripts/v1-verify.mjs clawd
# Mainnet plan only (no key, nothing sent):
node scripts/v1.mjs update-existing --mainnet --yes --dry-run --collection 2hyxEkY7ivziCGMhei7evmEzZBFt4MgaTKrGMJuof8Hk
```
Mainnet writes need `--mainnet --yes`, `KEYPAIR_PATH` set to the collection update authority, and `CONFIRM_MAINNET=<collection>`. Before running them, publish `metadata/`, `agents/`, `images/` and `3d/` at `V1_BASE_URI`, and the 3D route at `/computers/3d/<id>`.