@artblocks/abx-cli 0.1.0 → 0.2.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/CHANGELOG.md +27 -0
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +35 -15
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/project.js +3 -3
- package/dist/ownerops.d.ts +13 -2
- package/dist/ownerops.d.ts.map +1 -1
- package/dist/ownerops.js +117 -15
- package/dist/ownerops.js.map +1 -1
- package/package.json +6 -6
- package/skill/SKILL.md +3 -1
- package/skill/reference/deploy.md +14 -0
package/skill/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
change an ABX collection, or to determine whether ABX supports a mechanic.
|
|
10
10
|
compatibility: Drives @artblocks/abx-cli on Node 22.13+. Co-versioned with the CLI; install or refresh with `abx skill install`.
|
|
11
11
|
metadata:
|
|
12
|
-
version: "0.
|
|
12
|
+
version: "0.2.0"
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
# ABX
|
|
@@ -136,6 +136,8 @@ Important boundaries:
|
|
|
136
136
|
`--mint-amount` if the original deploy premint ids).
|
|
137
137
|
- `--onchain-image` works for static 721s and editions in hot, wallet, or sponsored lanes. It cannot
|
|
138
138
|
be prepared as one cold `--unsigned` bundle because staged transactions depend on prior receipts.
|
|
139
|
+
It stores SVG, PNG, JPEG, GIF, WebP, and AVIF files, declaring each raster's type in
|
|
140
|
+
`abx_image_type`. See `reference/deploy.md` for repairing a raster that serves as SVG.
|
|
139
141
|
- Deploy tested custom hooks/renderers from exact compiled initcode with `abx deploy-contract`.
|
|
140
142
|
ABX sends the bytes; it does not compile, link, audit, or infer constructor types. Test on the
|
|
141
143
|
paired testnet and source-verify before wiring a production address. Under `--sponsor`, the
|
|
@@ -48,6 +48,20 @@ content directly in the deployment transaction. This can keep a tiny static proj
|
|
|
48
48
|
transaction, while the reader/chunk path is normally more economical for real files. Trust the dry
|
|
49
49
|
run's measured transaction count and plan rather than a memorized byte threshold.
|
|
50
50
|
|
|
51
|
+
Stored image bytes have no type of their own. The renderer labels them with the reserved field
|
|
52
|
+
`abx_image_type`, and uses `image/svg+xml` when it is unset. `--onchain-image` and
|
|
53
|
+
`abx set-field --field image --file` write the field from the file extension for PNG, JPEG, GIF,
|
|
54
|
+
WebP, and AVIF files, and the dry run says `declares image/<type>`. They refuse TIFF, PSD, video, and
|
|
55
|
+
files without an extension. Convert or rename those files; don't wrap a raster in an SVG.
|
|
56
|
+
|
|
57
|
+
Renderers before spec v12 ignore the field. If a stored raster serves as `data:image/svg+xml`, run
|
|
58
|
+
`abx verify <address>` and check whether the tokenURI renderer is current. To repair it, run
|
|
59
|
+
`abx set-renderer <address>` to point the token URI at the current renderer, and again with
|
|
60
|
+
`--collection` for the collection URI. If the type was
|
|
61
|
+
never declared, add it with `abx set-field <address> --field abx_image_type --text image/jpeg`
|
|
62
|
+
(`--collection` for a whole series). Both are owner transactions, so confirm before sending. A locked
|
|
63
|
+
URI configuration cannot be repointed.
|
|
64
|
+
|
|
51
65
|
### Media external, metadata JSON on-chain, no resolver
|
|
52
66
|
|
|
53
67
|
Use `--onchain-uri --backend arweave|ipfs|cloud`. The CLI uploads media, bakes its public locator into
|