@artblocks/abx-sdk 0.1.0-alpha.20 → 0.1.0-alpha.22
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 +2222 -0
- package/dist/anchors.d.ts +54 -1
- package/dist/anchors.d.ts.map +1 -1
- package/dist/anchors.js +106 -56
- package/dist/anchors.js.map +1 -1
- package/dist/deployments.d.ts +51 -0
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +51 -4
- package/dist/deployments.js.map +1 -1
- package/dist/execute.d.ts +8 -5
- package/dist/execute.d.ts.map +1 -1
- package/dist/execute.js +23 -6
- package/dist/execute.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/migrate.d.ts.map +1 -1
- package/dist/migrate.js +3 -1
- package/dist/migrate.js.map +1 -1
- package/dist/onchain-uri.d.ts.map +1 -1
- package/dist/onchain-uri.js +5 -1
- package/dist/onchain-uri.js.map +1 -1
- package/dist/policy.d.ts +58 -0
- package/dist/policy.d.ts.map +1 -0
- package/dist/policy.js +36 -0
- package/dist/policy.js.map +1 -0
- package/dist/reconstruct.d.ts +2 -0
- package/dist/reconstruct.d.ts.map +1 -1
- package/dist/reconstruct.js +58 -8
- package/dist/reconstruct.js.map +1 -1
- package/dist/service.d.ts +18 -0
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js.map +1 -1
- package/dist/spine.d.ts +16 -0
- package/dist/spine.d.ts.map +1 -1
- package/dist/spine.js +0 -0
- package/dist/spine.js.map +1 -1
- package/dist/tokens.d.ts +33 -7
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +24 -3
- package/dist/tokens.js.map +1 -1
- package/dist/types.d.ts +55 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,2222 @@
|
|
|
1
|
+
# @artblocks/abx-sdk
|
|
2
|
+
|
|
3
|
+
## 0.1.0-alpha.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 993e095: Hot-lane sends take `max(pending, latest)` as the nonce, so a node whose pending view has fallen behind
|
|
8
|
+
its own head can't poison a transaction.
|
|
9
|
+
|
|
10
|
+
`sepolia.base.org` was measured returning a _pending_ transaction count **lower** than its own
|
|
11
|
+
latest-block count for a wallet that had just written — a strictly incoherent answer, and one the
|
|
12
|
+
fallback endpoint never gave. The sender already handled the read-after-write lag _within_ one sequence
|
|
13
|
+
by incrementing locally; it could not see the cross-invocation case, because each `abx` command is a
|
|
14
|
+
fresh process that re-reads the nonce. The result was a second command whose broadcast was rejected as a
|
|
15
|
+
duplicate — silently, since a failed simulation means the transaction is never sent at all.
|
|
16
|
+
|
|
17
|
+
Reading both views and flooring at `latest` is correct-or-better in every case: with real pending
|
|
18
|
+
transactions `pending` is higher and wins.
|
|
19
|
+
|
|
20
|
+
Reported in the 2026-08-24 field notes (hit independently on three of four projects).
|
|
21
|
+
|
|
22
|
+
## 0.1.0-alpha.21
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- c9f7aeb: Fold the burn, and make "canonically ABX v2" sayable — from abx-services' 2026-08-20 reply
|
|
27
|
+
(`reviews/2026-08/services-reply-docs-23.md`). All off-chain: no contract changed, no address moved.
|
|
28
|
+
|
|
29
|
+
**SDK — `foldSpine` now folds an ERC-721 burn, and `TokenState.minted` is replaced by `lifecycle`
|
|
30
|
+
(BREAKING).** A burn wrote the zero address into `TokenState.owner` — where nothing downstream could
|
|
31
|
+
tell it from a holder — and `minted` latched `true` at mint and was never recomputed, so a burned
|
|
32
|
+
token reconstructed as live. `lifecycle: 'unminted' | 'live' | 'burned' | 'no-live-copies'` replaces it,
|
|
33
|
+
and `owner` is `null` for a burned id rather than a sentinel. An enum rather than the `minted` +
|
|
34
|
+
`burned` pair the report asked for: a boolean whose `false` has two meanings leaves the burn case one
|
|
35
|
+
forgotten field away from rendering as "not yet minted", which is exactly what our own CLI did.
|
|
36
|
+
|
|
37
|
+
**`'burned'` is terminal and ERC-721-only; an edition at zero live copies is `'no-live-copies'`.** The
|
|
38
|
+
first cut of this enum shared `'burned'` across both standards, on the grounds that "one vocabulary on
|
|
39
|
+
both lanes" was the honest shape. It wasn't: the correct _response_ to destruction differs by standard
|
|
40
|
+
(a 721 id is gone forever and must `410`; an edition id can mint again and must not), so a shared word
|
|
41
|
+
put every consumer one forgotten `contractType` branch away from serving `410 Gone` for a token the
|
|
42
|
+
contract still resolves — and our own migration note told the first consumer to map the shared word
|
|
43
|
+
straight onto their `410` sites. abx-services caught it in review before it published. Splitting the
|
|
44
|
+
word moves the rule out of prose and into the type: **`lifecycle === 'burned'` is safe to treat as
|
|
45
|
+
permanent on either standard, with no carve-out**, which let the reference resolver's `isEditionState`
|
|
46
|
+
guard go away entirely. Pinned from both ends — no edition history can fold to `'burned'`, and the
|
|
47
|
+
route asserts its own standard-blindness.
|
|
48
|
+
|
|
49
|
+
**The two lanes now agree id-for-id.** The same review found `TokenRow.lifecycle` (head reads) reporting
|
|
50
|
+
`'unknown'` for a fully-burned edition id while the fold reported `'burned'` for that same id — under a
|
|
51
|
+
docstring claiming the two lanes used the same words. That is the sibling-drift class this repo treats
|
|
52
|
+
as a bug (see `TokenState.maxSupply`'s note, the last time one field name carried two meanings). Both
|
|
53
|
+
lanes now answer `'no-live-copies'` there: the fold _could_ distinguish never-minted from fully-burned
|
|
54
|
+
and deliberately does not, because the distinction has no consumer. `'unknown'` survives for the one
|
|
55
|
+
case where a head read genuinely cannot say — a 1/1 has no mint frontier, so a reverting `ownerOf`
|
|
56
|
+
there is evidence of nothing.
|
|
57
|
+
|
|
58
|
+
What the latched boolean was costing, all in our own tree: the effects harness re-rendered destroyed
|
|
59
|
+
tokens on every sweep, forever; `onchain-uri`'s probe reads the LOWEST live id, so burning token 0 made
|
|
60
|
+
a healthy collection's on-chain-URI lane report as **broken**; the resolver served metadata — and the
|
|
61
|
+
pre-mint _warming placeholder_, i.e. "still loading" forever — for ids the contract disowns; `mintedCount`
|
|
62
|
+
never went down; and `abx state` printed "not yet minted" for a token that had been destroyed.
|
|
63
|
+
|
|
64
|
+
**SDK — `BurnConfigured` and `MaxRoyaltyBpsUpdated` fold into `ProjectState.burnable` /
|
|
65
|
+
`.maxRoyaltyBps`.** Both events shipped in the ABI and in `SPINE_EVENT_DOC` and reached no field of
|
|
66
|
+
state; the upgrade memo then told consumers the doc entry _was_ the fold, which it has never been (it
|
|
67
|
+
supplies `register`/`what` on the event record, full stop). Both are tri-state: `null` means the spine
|
|
68
|
+
never stated it — an implementation with no `burn` entrypoint and an unpublished ceiling — which is not
|
|
69
|
+
`false`, and not 10%. The ceiling is deliberately not nested inside `royalty`, since clearing a royalty
|
|
70
|
+
nulls that field while the ceiling stays binding on chain.
|
|
71
|
+
|
|
72
|
+
**SDK — a fold-coverage guard, because this was the second instance in four days.** `DefaultMaxSupplySet`
|
|
73
|
+
did the same thing on 2026-08-17. `SPINE_EVENT_NO_FOLD` now lists the events that deliberately reach no
|
|
74
|
+
state _and why_ (a ping whose value is a head read, a factory's own log, a minter sibling, an allowance),
|
|
75
|
+
and `spine-fold-coverage.test.ts` asserts every decodable event is either folded or excused. A new event
|
|
76
|
+
is unfolded and unexcused until someone decides which.
|
|
77
|
+
|
|
78
|
+
**SDK — a burned 1/1 no longer vanishes from `listTokens`.** The id range fell back to `totalSupply`
|
|
79
|
+
(live: mints − burns) when a token type exposes no `nextTokenId`, so burning a 1/1's only token made the
|
|
80
|
+
listing enumerate ZERO ids — `abx tokens` printed nothing at all, indistinguishable from a collection
|
|
81
|
+
with no tokens. A 1/1's id space is `{0}` forever regardless of what is live. Found by burning a real
|
|
82
|
+
token on Sepolia rather than by any fixture, which is the only way this one surfaces.
|
|
83
|
+
|
|
84
|
+
**SDK — head reads can now say `burned`.** `nextTokenId` is a mint frontier that only rises, so an id
|
|
85
|
+
below it whose `ownerOf` reverts was minted and destroyed. `TokenRow.lifecycle` (`'live'` / `'burned'` /
|
|
86
|
+
`'unminted'` / `'unknown'`) and `TokenListing.burnedCount` (`nextTokenId − totalSupply`) drop out of that,
|
|
87
|
+
with no event log. `'unknown'` stays a real member where the chain declines to say: a 1/1 has no frontier,
|
|
88
|
+
and an edition's `supply == 0` cannot distinguish never-minted from fully-burned.
|
|
89
|
+
|
|
90
|
+
**SDK — `burned` joins `ServiceErrorCode`, paired with `410 Gone`.** A remote token API had nothing
|
|
91
|
+
honest to say about a destroyed id and was sending `410` with `code: 'not_registered'` — a statement
|
|
92
|
+
about the _contract_. The rule behind the pairing is the general one: **a resolver answers what the
|
|
93
|
+
contract's own URI getter answers.** A burned 721's `tokenURI` reverts `NonexistentToken`, so serving a
|
|
94
|
+
document would contradict the contract; an ERC-1155's `uri(id)` has no existence gate and a zero-supply
|
|
95
|
+
id can mint again, so **an edition never 410s** — it serves, with `supply: 0`.
|
|
96
|
+
|
|
97
|
+
**SDK — `readCollectionPolicy`, `canonicalFactories`, `verifyProvenance`: protocol knowledge moves out
|
|
98
|
+
of the CLI.** The CLI was declaring its own ABI fragments for `burnable`/`maxRoyaltyBps` and reading
|
|
99
|
+
them itself in two places, so no other integrator could reach either fact. `canonicalFactories(chainId)`
|
|
100
|
+
replaces two copies of the six-anchor enumeration inside `anchors.ts` — the list whose completeness _is_
|
|
101
|
+
the trust model. `verifyCanonical` gains `opts.factories`, which **replaces** the manifest set rather
|
|
102
|
+
than appending to it, so a multi-tenant operator's pinned allowlist can drive the gate without silently
|
|
103
|
+
widening it.
|
|
104
|
+
|
|
105
|
+
**SDK — anchor generations: "canonically ABX v2", not a bare `false`.** `verifyCanonical` reported
|
|
106
|
+
"deployed by an ABX factory since replaced" and "deployed outside the toolkit entirely" identically —
|
|
107
|
+
its own docstring admitted it — and the first is a perfectly good collection. `ANCHOR_GENERATIONS` keys
|
|
108
|
+
each generation of the six trust anchors by the **on-chain core version** its clones report, and
|
|
109
|
+
`verifyProvenance` returns `{canonical, generation: 'current' | 'prior' | null, coreVersion, factory,
|
|
110
|
+
anchorsAnswered}`. The version is on the clone itself, so the answer is chain-verified rather than a
|
|
111
|
+
manifest claim, and it keeps working after a factory retires. Retired generations never feed
|
|
112
|
+
`verifyCanonical`: provenance is not trust — a superseded generation can predate a security remediation.
|
|
113
|
+
Pre-launch testnet generations are deliberately not backfilled.
|
|
114
|
+
|
|
115
|
+
**Redeploy process — a token-layer runtime change is a new anchor generation.** It bumps
|
|
116
|
+
`AbxVersion.CORE_VERSION` and moves the SDK's `isCurrent*` probes in lockstep. That is now a checklist
|
|
117
|
+
step (`contracts/README.md`, `CLAUDE.md`) _enforced by_ `deployments.test.ts`: recorded generations must
|
|
118
|
+
have unique, increasing core versions and the newest must match the constant in `AbxVersion.sol`, so a
|
|
119
|
+
batch cannot record a generation without bumping or bump without recording. The gap that prompted it: the
|
|
120
|
+
2026-08-20 batch added `burn()`, `burnable()`, `maxRoyaltyBps()` and `reduceMaxRoyaltyBps()` to the CORE
|
|
121
|
+
base — burn is not an extension, so no extension version moved either — and left the constant at 2, so
|
|
122
|
+
`abxVersion() == 2` cannot tell a burn-capable token from a pre-burn one.
|
|
123
|
+
|
|
124
|
+
**CLI — the royalty ceiling is shown with its rate, and headroom is named.** A ceiling above the live
|
|
125
|
+
rate is royalty the owner can add unilaterally, and a listing page never shows it. `abx state` prints the
|
|
126
|
+
pair and, when there is headroom, says the useful thing: reducing the cap **to** the current rate is what
|
|
127
|
+
turns "5% today" into "5%, provably, forever". (Named by abx-services as their `royalty-headroom` flag —
|
|
128
|
+
a marketplace can compute it, so a creator should hear it from us first.)
|
|
129
|
+
|
|
130
|
+
**Reference stack — the same fixes, so the reference is exemplary rather than the counter-example.**
|
|
131
|
+
`mintedCount` keeps its name and counts LIVE ids, with `burnedCount` added only when non-zero (so a
|
|
132
|
+
project with no burns serves byte-identical JSON, and a consumer's fixtures keep telling the truth);
|
|
133
|
+
the indexer projection carries `lifecycle`; the effects status route and the render sweep skip destroyed
|
|
134
|
+
ids; the dashboard badges a burned token instead of calling it minted; and `abx verify` / the migrate and
|
|
135
|
+
re-point probes never choose a burned token as their subject.
|
|
136
|
+
|
|
137
|
+
**CLI — `--send` is accepted on the deploy paths, and two lane flags is refused.** Every deploy's help
|
|
138
|
+
advertises the signing lanes as `--send hot/env key · --sign wallet page · --unsigned print tx`, in 25
|
|
139
|
+
places, and `--send` was the one of the three the deploy allowlist rejected: typing what the help showed
|
|
140
|
+
produced `unrecognized flag(s): --send` from the guard whose whole purpose is catching flags that would
|
|
141
|
+
be silently ignored — the guard firing on the tool's own documentation. Found by using the CLI as a cold
|
|
142
|
+
reader of its own `--help` while setting up an on-chain test. While there, lane resolution moved from
|
|
143
|
+
truthiness to **presence** (`--sign=` parses to `''`, which is falsy, so a caller who explicitly named
|
|
144
|
+
the wallet lane was routed to the unattended env key — the one direction of that bug that costs
|
|
145
|
+
something), and naming two lanes at once now refuses instead of resolving by an undocumented precedence.
|
|
146
|
+
|
|
147
|
+
**Packaging — every published tarball ships its CHANGELOG.** `files` was `['dist', 'LICENSE']` on the
|
|
148
|
+
SDK, indexer, storage, effects and token-api, so the only package whose release notes reached consumers
|
|
149
|
+
was the CLI. A downstream team upgrading the SDK had no CHANGELOG in the tarball and diffed two `dist/`
|
|
150
|
+
trees to find out what moved — then reported the release notes as missing, which cost a whole exchange
|
|
151
|
+
to adjudicate. One line each.
|
|
152
|
+
|
|
153
|
+
**Docs + spec.** The event spine gains a Burn section and the `MaxRoyaltyBpsUpdated` row, both with the
|
|
154
|
+
fold rules an indexer relies on; three stale deploy-event-order lists are corrected; the remote-services
|
|
155
|
+
error taxonomy gains the `410 burned` row and the edition carve-out; `owner-powers` explains headroom and
|
|
156
|
+
burn permanence; and `indexing-notes` states plainly that documenting an event is not folding it.
|
|
157
|
+
|
|
158
|
+
## 0.1.0-alpha.20
|
|
159
|
+
|
|
160
|
+
### Patch Changes
|
|
161
|
+
|
|
162
|
+
- 84ca9dd: Off-chain fixes from the 2026-08-19 production-readiness audit
|
|
163
|
+
(`reviews/2026-08/production-readiness-audit.md`). All are off-chain — no contract changed and no
|
|
164
|
+
address moved; the three NatSpec-precision items the audit also raised ride the next redeploy batch
|
|
165
|
+
instead (`docs/10-backlog.md` → _Contracts — the next redeploy batch_, B47).
|
|
166
|
+
|
|
167
|
+
**SDK — `HexColor` decode now masks to 24 bits, matching the chain (L-1).** `decodeScalarParam` for a
|
|
168
|
+
`HexColor` value greater than `0xFFFFFF` returned `#1ffffff` (7+ hex digits); the on-chain
|
|
169
|
+
`TokenDataLib.decodeScalar` masks with `& 0xffffff` and returns `#ffffff`. The governed write validates
|
|
170
|
+
`v <= 0xFFFFFF`, but the raw owner setter does not, so an out-of-domain value can be stored and later
|
|
171
|
+
governed by a `HexColor` schema — and the two serving planes would then decode it differently, splitting
|
|
172
|
+
`inputsHash`. The SDK now masks identically. Pinned on both sides so it cannot drift again:
|
|
173
|
+
`decodeScalarParam('HexColor', 0x1ffffffn) === '#ffffff'` (SDK) and the twin `test_DecodeScalars`
|
|
174
|
+
assertion in `contracts/test/FieldRenderer.t.sol`.
|
|
175
|
+
|
|
176
|
+
**SDK — gateway-prefix projection no longer trims (L-7).** `projectGatewayPrefix` dropped the `.trim()`
|
|
177
|
+
on the on-chain `abx_gateway_*` value: the deployed `_gatewayPrefix` returns the stored bytes verbatim,
|
|
178
|
+
so trimming here made the two planes disagree on a whitespace-padded prefix. The field store rejects an
|
|
179
|
+
empty value, so a set field is always non-empty. Clean prefixes (every real one) are unaffected.
|
|
180
|
+
|
|
181
|
+
**SDK — `permissionlessSalt` docstring hardened (L-3).** Now states explicitly: never use it for a
|
|
182
|
+
pre-published or pre-funded address — a third party can occupy the predicted address first with their own
|
|
183
|
+
`InitParams`. For any reserved address, use `saltFor` (its deployer-bound prefix is front-run-proof). No
|
|
184
|
+
behavior change; the shipped CLI/skill already deploy through `saltFor`.
|
|
185
|
+
|
|
186
|
+
**CLI — the edition schema advisory calls out a holder-writable `seed` by name (L-2).**
|
|
187
|
+
`editionSchemaAdvisory` already warned that a `TokenOwner` param on an edition is shared per-id
|
|
188
|
+
(last-writer-wins); it now adds a sharper note when that param is `seed`, because the normally-immutable
|
|
189
|
+
generative seed becomes re-rollable by _any_ holder of the id — changing the artwork for every
|
|
190
|
+
co-holder. The on-chain behavior is deliberately unchanged (the reassignable-seed feature is
|
|
191
|
+
buyer-verifiable via `paramSchema("seed")`); the guardrail is this warning, not a contract restriction.
|
|
192
|
+
A controller contract on the `Address` leg remains the way to govern it.
|
|
193
|
+
|
|
194
|
+
- 84ca9dd: Finish the burn + royalty-cap surfacing, from the 2026-08-20 w6 agent sandbox sweep. All off-chain —
|
|
195
|
+
no contract changed, no address moved; the on-chain features were verified working end to end (a cold
|
|
196
|
+
agent deployed `--burnable --royalty-cap 42`, minted, burned, and proved the cap enforced on Sepolia).
|
|
197
|
+
The sweep's convergent finding was that the two new **permanent** deploy-time decisions were invisible
|
|
198
|
+
after you set them; this makes them visible everywhere they're decided or read, and adds the owner's
|
|
199
|
+
missing reduce lever.
|
|
200
|
+
|
|
201
|
+
- **New: `abx set-royalty-cap <address> --cap <0-10000>`** — the owner's reduce-only royalty-ceiling
|
|
202
|
+
lever (`RoyaltyExtension.reduceMaxRoyaltyBps`), the "after" the deploy-time "reduce-only after"
|
|
203
|
+
promise never had. Both ways the chain refuses are checked locally before signing: a value that
|
|
204
|
+
wouldn't decrease (`RoyaltyCapNotReduced`) or that would drop below the live royalty rate
|
|
205
|
+
(`RoyaltyCapBelowRoyalty`). SDK: `prepareReduceMaxRoyaltyBps`.
|
|
206
|
+
- **The deploy readout now shows `royalty cap` and `burnable` on every lane** (1/1, series, code, and
|
|
207
|
+
all three edition twins), whenever set. Critically it flags an **auto-raised** cap
|
|
208
|
+
(`royalty cap 25% (auto-raised to fit the royalty)`): omitting `--royalty-cap` while setting a
|
|
209
|
+
royalty above 10% silently raises the permanent ceiling to match, which was previously invisible.
|
|
210
|
+
- **`abx state` now surfaces `royaltyCap` and `burnable`** (human + `--json`), the post-deploy
|
|
211
|
+
verification surface, for both the 721 and edition readouts.
|
|
212
|
+
- **The skill documents the royalty cap** — the identity decision (`decisions.md`), the confirm-
|
|
213
|
+
identity step (`SKILL.md`), and a new `set-royalty-cap` owner-op row (`operating.md`); previously the
|
|
214
|
+
reduce-only ceiling feature had zero skill coverage.
|
|
215
|
+
- **Help/doc corrections:** `set-royalty --help` range `0-1000`→`0-10000` (stale from the hard-cap
|
|
216
|
+
era); `deploy-series --help` now lists `--royalty-cap`/`--burnable`; `deploy --help` states the cap
|
|
217
|
+
auto-raises; `abx inspect`'s trait-feasibility deep-dive points at public docs, not a repo path.
|
|
218
|
+
|
|
219
|
+
## 0.1.0-alpha.19
|
|
220
|
+
|
|
221
|
+
### Patch Changes
|
|
222
|
+
|
|
223
|
+
- b1c333d: **Asking for a 15% royalty built a transaction that reverted on chain.** `RoyaltyExtension` caps every
|
|
224
|
+
ABX token at **1000 bps (10%)** and reverts `RoyaltyTooHigh()` above it, and no token type overrides that.
|
|
225
|
+
But client-side validation allowed the full ERC-2981 `0–10000` range — and the CLI's own error text
|
|
226
|
+
offered `10000 = 100%` as a worked example. So a creator asking for an ordinary 15% got a fully built,
|
|
227
|
+
fully signed transaction that failed on chain; on the wallet lane they approved it in their own wallet
|
|
228
|
+
and paid the gas to find out. Both usage strings said `<0-10000>`, and so did two public docs.
|
|
229
|
+
|
|
230
|
+
Now `MAX_ROYALTY_BPS` (SDK) mirrors the contract ceiling and both `prepareSetRoyalty` and the CLI's
|
|
231
|
+
`parseRoyaltyBps` validate against it, so the refusal is instant, local and free, and it names the cap
|
|
232
|
+
and the revert. Regression tests cover it from both sides — including `1500`, the value that used to
|
|
233
|
+
sail through. Two existing tests had to be corrected: they asserted the 0–10000 bound, which is how this
|
|
234
|
+
survived.
|
|
235
|
+
|
|
236
|
+
Three more surfaces that contradicted themselves or the chain:
|
|
237
|
+
|
|
238
|
+
- **`abx ping-uri --help` claimed "Permissionless by design … ANY signer may call it (no owner check)"
|
|
239
|
+
four lines below its own `OWNER-ONLY` header** — and `Uri1155.pingURI` is `onlyOwner`. A non-owner
|
|
240
|
+
following the paragraph built a reverting tx.
|
|
241
|
+
- **`site/content/docs/reference/contracts.mdx`** described the pre-audit library architecture: it omitted
|
|
242
|
+
`AbxMetadataLib` (the fourth delegatecalled library, and the one linked by **all six** token types, not
|
|
243
|
+
three) and still said `SeriesCode` "rides the ceiling", where `deployments.mdx` — written after the same
|
|
244
|
+
redeploy — says both code types now sit under EIP-170 with room to spare.
|
|
245
|
+
- **`deployments.mdx`'s own `specVersion()` example printed `# → 10`** under a table declaring the renderer
|
|
246
|
+
spec v11. And **`operate.mdx`'s self-correction had rotted**: it warned that `abx refresh`'s advisory was
|
|
247
|
+
stale about editions and ERC-4906, but that advisory was fixed — the doc was now the stale one.
|
|
248
|
+
|
|
249
|
+
Found by two read-only audits (29 doc files, 19 spec files) that verified every claim against contracts,
|
|
250
|
+
compiled ABIs, SDK and live `--help` output before reporting. Both independently re-confirmed the
|
|
251
|
+
no-burn property, the v11 gateway design, all ~26 canonical addresses, and the on-chain storage
|
|
252
|
+
thresholds.
|
|
253
|
+
|
|
254
|
+
- b1c333d: An agent using this skill built its own smart-contract system, and neither it nor the creator noticed
|
|
255
|
+
that the collection had stopped being a canonical ABX clone. Canonicity is decided by which contract
|
|
256
|
+
deployed a token and can never be added afterwards, so the fix is a gate before the first send plus a
|
|
257
|
+
readout that makes the loss discoverable.
|
|
258
|
+
|
|
259
|
+
**`abx state` now reports canonicity first.** It read owner, supply, royalty and renderer off any
|
|
260
|
+
ERC-721-shaped address and said nothing about whether it was a factory clone — so a hand-rolled contract
|
|
261
|
+
was described exactly as confidently as a canonical one, and the tool whose whole job is "what IS this
|
|
262
|
+
contract?" left nothing behind for the creator to find. `verifyCanonical` (SDK) probes all six trust
|
|
263
|
+
anchors' `isAbxClone` in one multicall and returns a true tri-state; a `false` prints what was lost, that
|
|
264
|
+
marketplaces and the App Store recognize collections by that signal, and that the only remedy is a fresh
|
|
265
|
+
deploy through the factory plus moving holders. `null` (no anchors on this chain, or an RPC failure) is
|
|
266
|
+
never shown as a "no".
|
|
267
|
+
|
|
268
|
+
**The skill gained the boundary rule it never had.** Its trust material lived on the _last line_ of the
|
|
269
|
+
file, written for someone verifying a clone from outside, and the "don't hand-roll" rules that existed
|
|
270
|
+
were narrow — preview pages, ABI writes, token queries, nothing about contracts. There is now a
|
|
271
|
+
Read-first gate: if the ask seems to need something the deploy commands don't do, stop and put it to the
|
|
272
|
+
creator in words, because building your own contracts is a legitimate choice a creator can make and
|
|
273
|
+
making it _for_ them silently is not. Alongside it, the list of what the toolkit does **not** do — no
|
|
274
|
+
burn (verified: zero `burn` entrypoints in `contracts/src`, previously a parenthetical clause inside a
|
|
275
|
+
sentence about hooks), no secondary listings, no mainnet, fixed-price sales only, no post-deploy script
|
|
276
|
+
replace — and the two extension points that keep a collection canonical (`set-minter`, param hooks), with
|
|
277
|
+
the caveat that a `--transfer` hook is a **veto, not a trigger**: it can refuse a transfer but never cause
|
|
278
|
+
a mint or a burn, so it cannot implement "combine two into one".
|
|
279
|
+
|
|
280
|
+
Verified by two trap rooms — a creator asking for a burn-to-combine mechanic with "you've got my
|
|
281
|
+
go-ahead, I don't need the technical parts". Both Sonnet and Haiku refused to build a contract, cited the
|
|
282
|
+
canonicity loss, and returned options. The Sonnet room found the route that _preserves_ canonicity and
|
|
283
|
+
offered it first.
|
|
284
|
+
|
|
285
|
+
**SKILL.md was restructured** against its own "lean decision-tree router" norm, which it had drifted
|
|
286
|
+
~40% past: **68,449 → 55,392 characters (−20%)**, longest bullet 2,876 → 1,465, bullets over 600 chars
|
|
287
|
+
27 → 14, with depth moved into the reference files that already owned it (locks → `decisions.md`;
|
|
288
|
+
install/`.env` → `setup.md`, which was a 44-line stub; data plane, App Store and deploy mechanics →
|
|
289
|
+
`operating.md`). Also repaired: a **markdown table split in two** by a blockquote sitting between its
|
|
290
|
+
rows, and **four dangling anchor links** (three pre-existing) — all 96 internal links now resolve.
|
|
291
|
+
`setup.md` was retitled and reordered after a control room found the required install steps buried under
|
|
292
|
+
a title that promised RPC troubleshooting.
|
|
293
|
+
|
|
294
|
+
**Two contradictions the verification sweep caught**, both the same class as the rest of this week's
|
|
295
|
+
fixes. `deploy-code --dry-run` printed `render/storage ✓ fs + --image-base` a few lines below
|
|
296
|
+
`⚠ render storage home is fs … placeholder forever`, for the identical setup; the ✓ is legitimately
|
|
297
|
+
scoped to whether the `--image-base` target is a valid mutable bucket (two tests pin that), so the row now
|
|
298
|
+
states what it covers and points at the other line rather than appearing to overrule it. And **"not
|
|
299
|
+
backfillable" was overstated** in three places — the truth, which `code-projects.md` had right all along,
|
|
300
|
+
is that fixing a surface after deploy costs an owner-signed re-point plus a re-render on a collection that
|
|
301
|
+
showed a placeholder in between. Expensive and worth avoiding; not impossible.
|
|
302
|
+
|
|
303
|
+
## 0.1.0-alpha.18
|
|
304
|
+
|
|
305
|
+
### Patch Changes
|
|
306
|
+
|
|
307
|
+
- 77a6248: `abx deploy --bootstrap-factory` failed on the first run against any chain that did not already have
|
|
308
|
+
a factory — and succeeded on the second.
|
|
309
|
+
|
|
310
|
+
Every ABX singleton is deployed by CREATE2 through the keyless proxy, so the transaction is a **call
|
|
311
|
+
to that proxy**, not a contract creation, and `receipt.contractAddress` is null by protocol. Two of
|
|
312
|
+
the six factory bootstraps — the two oldest, the ERC-721 image ones — still read the address off the
|
|
313
|
+
receipt, so they threw `Factory deploy produced no contract address` _after_ the factory had actually
|
|
314
|
+
landed. Re-running then found the factory on chain and skipped the bootstrap entirely, which is why
|
|
315
|
+
this read as flakiness rather than a bug. `deployRenderer`, the library legs, and every newer factory
|
|
316
|
+
already computed the address; these two now do the same (`predictFactory()` / `predictSeriesFactory()`).
|
|
317
|
+
|
|
318
|
+
The blast radius was every fresh chain: a private chain, a local anvil, a sandbox — and the mock
|
|
319
|
+
provider fixture the hosted-services eval rooms are built on, which is how this surfaced. On a real
|
|
320
|
+
testnet the factories already exist, so nothing that ships today was affected.
|
|
321
|
+
|
|
322
|
+
Pinned by a regression test that fails on the old code two ways: behaviourally (a `send` that returns
|
|
323
|
+
a receipt with no `contractAddress`, exactly like the proxy does, must still yield the deterministic
|
|
324
|
+
address) and statically (no bootstrap in `deploy.ts` may derive an address from
|
|
325
|
+
`receipt.contractAddress`, so a seventh factory cannot reintroduce it).
|
|
326
|
+
|
|
327
|
+
- 77a6248: Fixes from the 2026-08-18 eight-room agent sweep of the content-addressed lanes (ipfs · arweave ·
|
|
328
|
+
preferred gateways). The v11 gateway projection worked end to end on a live testnet round trip — bare
|
|
329
|
+
CID on chain, one `set-gateway` tx, byte-identical content id before and after — but the surfaces
|
|
330
|
+
around it lied, hid, or degraded in five ways that cold agents hit immediately.
|
|
331
|
+
|
|
332
|
+
**Both `AbxGenerator` addresses in the manifest had a broken EIP-55 checksum.** The addresses were
|
|
333
|
+
right; the casing was mangled in transcription. viem validates checksums, so
|
|
334
|
+
`readContract`/`writeContract` against the recorded value threw `Address "0x2c1b7Cf6…" is invalid` —
|
|
335
|
+
`abx verify` could not run its on-chain-URI check on **either** testnet. Corrected in
|
|
336
|
+
`deployments.ts` and the docs mirror, with the code at both fixed addresses re-confirmed on chain
|
|
337
|
+
(identical bytecode, as CREATE2 requires). The per-entry equality tests stayed green through all of
|
|
338
|
+
it because they compared against the same mangled string, so the manifest now carries a **property
|
|
339
|
+
test**: every recorded address must be a valid checksum.
|
|
340
|
+
|
|
341
|
+
**A deploy narrated the upload gateway as if it were the served URL.** With
|
|
342
|
+
`--onchain-uri --backend ipfs`, the progress line printed the backend's own locator
|
|
343
|
+
(`https://gateway.pinata.cloud/ipfs/<cid>/0.png`) while the chain got a bare CID served from
|
|
344
|
+
somewhere else entirely — in one run, from `ipfs.io`, because that is the floor and no preference was
|
|
345
|
+
written. The line now shows the URL the token will actually carry, resolved through the same
|
|
346
|
+
precedence that decides what gets written (`--ipfs-gateway`/`--arweave-gateway` → `--gateway` for the
|
|
347
|
+
backend in use → env → floor), and says whether that prefix is the project's choice or the public
|
|
348
|
+
default filling a silence.
|
|
349
|
+
|
|
350
|
+
**`--ipfs-gateway` / `--arweave-gateway` were absent from every deploy command's `--help`.** They
|
|
351
|
+
appeared only in `set-gateway --help` and the skill's reference pages, so an agent reading the CLI
|
|
352
|
+
alone could not find the flags the CLI itself tells you to use. All three deploy commands now name
|
|
353
|
+
them, with the floors (`https://ipfs.io/ipfs/`, `https://arweave.net/`) and the upload-vs-serving
|
|
354
|
+
distinction stated where the decision is made.
|
|
355
|
+
|
|
356
|
+
**`abx storage upload` handed `abx attach` a locator that silently downgraded the attachment.** It
|
|
357
|
+
printed `abx attach <address> <key> https://gateway.pinata.cloud/ipfs/<cid>/file.png` — and `attach`
|
|
358
|
+
picks the on-chain representation from the scheme, so an `https://` locator stores a plain `url` with
|
|
359
|
+
the gateway host welded into the value: no `set-gateway` repoint, exactly the coupling the
|
|
360
|
+
content-addressed representations exist to remove. Following the command's own printed next step was
|
|
361
|
+
the wrong move — and the skill had promised the scheme form all along, so the doc was right and the
|
|
362
|
+
command was wrong. It now hands back `ipfs://<cid>/file.png` / `ar://<txid>/file.png` (both in the prose
|
|
363
|
+
hint and as `attachLocator` in `--json`), keeps the https URL as the browsable one, and says why they
|
|
364
|
+
differ.
|
|
365
|
+
|
|
366
|
+
**`.abx-self-host/` is now self-ignoring.** It holds this node's projection and, for the Arweave
|
|
367
|
+
backend, a signing-capable key that carries prepaid upload credits. This repo gitignores that
|
|
368
|
+
directory and the skill said so — but a _creator's_ repo does not, so a first `--backend arweave` run
|
|
369
|
+
could leave a key staged for commit with nothing having said a word. The CLI writes a `.gitignore`
|
|
370
|
+
containing `*` inside the directory before anything sensitive lands there: it ignores the whole tree
|
|
371
|
+
regardless of the enclosing repo's config, needs no edit to a file we don't own, and never overwrites
|
|
372
|
+
one that already exists.
|
|
373
|
+
|
|
374
|
+
The **local-gateway warning** also stopped over-claiming. It said a `127.0.0.1` gateway means "the
|
|
375
|
+
served image URL resolves only on THIS machine" — true when the gateway host was welded into the
|
|
376
|
+
field, false now that the field holds a bare CID, and it aimed the creator at the wrong repair. It now
|
|
377
|
+
names the damage that is still real: bytes pinned only to a local node cannot be retrieved by anyone,
|
|
378
|
+
and no gateway can serve content that was never pinned publicly.
|
|
379
|
+
|
|
380
|
+
Also: `abx storage status --json` no longer warns `unrecognized flag(s), ignored: --json` about a flag
|
|
381
|
+
its own usage documents and that visibly works (a readout contradicting itself is worse than no
|
|
382
|
+
readout), and the `--unsigned` epilogue names `abx add <address>` rather than `abx index <address>`,
|
|
383
|
+
which fails on a node that never registered the project — the common case for a tx handed to someone
|
|
384
|
+
else's signer.
|
|
385
|
+
|
|
386
|
+
## 0.1.0-alpha.17
|
|
387
|
+
|
|
388
|
+
### Minor Changes
|
|
389
|
+
|
|
390
|
+
- c5b8ec3: `ipfs` and `arweave` metadata fields now resolve on both planes, through a gateway the collection
|
|
391
|
+
chooses — renderer **spec v11**.
|
|
392
|
+
|
|
393
|
+
These are the two representations that are content-addressed, the two where the locator IS the
|
|
394
|
+
integrity hash, and the two this protocol tells creators to prefer. They were also the two the
|
|
395
|
+
on-chain renderer could not serve. So `abx deploy --onchain-uri --backend ipfs|arweave` worked around
|
|
396
|
+
it by baking a gateway HOST into a `url` field, which welded a hostname the creator could never
|
|
397
|
+
migrate and made `abx_provenance` report `source: url` for bytes that live on IPFS.
|
|
398
|
+
|
|
399
|
+
The fix separates the two facts that the baked URL had fused. The CID/txid stays in the field, as
|
|
400
|
+
identity, under that field's own lock. The HTTPS prefix becomes a project-wide preference in two
|
|
401
|
+
reserved collection-scope fields, `abx_gateway_ipfs` / `abx_gateway_arweave`, with `https://ipfs.io/ipfs/`
|
|
402
|
+
and `https://arweave.net/` as floors. The renderer, the canonical generator, and the off-chain
|
|
403
|
+
resolver all read those two fields and apply the same wrap, so a token served from the chain and from
|
|
404
|
+
a resolver produces the same URL.
|
|
405
|
+
|
|
406
|
+
A dead or slow gateway is now a **repoint**, not a rewrite:
|
|
407
|
+
|
|
408
|
+
```bash
|
|
409
|
+
abx set-gateway 0xYourContract --ipfs https://your-dedicated.mypinata.cloud/ipfs/
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
One transaction, every token, no re-upload — and it works on fields you have already locked, because
|
|
413
|
+
the locked value is the CID and the gateway was never in it.
|
|
414
|
+
|
|
415
|
+
**What changes for you**
|
|
416
|
+
|
|
417
|
+
- `--onchain-uri --backend ipfs|arweave` writes the bare CID (or `cid/{id}.ext` for the O(1) directory)
|
|
418
|
+
as an `ipfs`/`arweave` field instead of a gateway URL as `url`/`url-template`. `--backend cloud` is
|
|
419
|
+
unchanged — an HTTPS CDN locator _is_ the address.
|
|
420
|
+
- New `abx set-gateway <addr> [--ipfs <prefix>] [--arweave <prefix>]` (`none` clears to the public
|
|
421
|
+
default). Two flags, so a project can pay for a dedicated IPFS gateway and leave Arweave public.
|
|
422
|
+
- New `--ipfs-gateway` / `--arweave-gateway` on every deploy command. Plain `--gateway` (the
|
|
423
|
+
storage/upload gateway) seeds the preference for the backend in use, so passing it still does what
|
|
424
|
+
you meant. Nothing is written when no gateway is named — silence keeps the floor live.
|
|
425
|
+
- `abx set-field` refuses the two gateway keys and points at `set-gateway`, which validates the
|
|
426
|
+
prefix, the scope and the representation. Every way to set them by hand fails silently.
|
|
427
|
+
- The `display.gateway` contract param is **superseded and no longer read**. It could name only one
|
|
428
|
+
prefix for both schemes and existed only on code projects.
|
|
429
|
+
- SDK: `projectGatewayPrefix`, `projectGatewayUrl`, `gatewayPrefixFrom`, `contentIdFromLocator`,
|
|
430
|
+
`GATEWAY_FIELD`, `GATEWAY_FLOOR`. For a host running its own resolver, `ABX_IPFS_GATEWAY` /
|
|
431
|
+
`ABX_ARWEAVE_GATEWAY` are now a **floor**: a project that stated a preference on chain gets that
|
|
432
|
+
preference from every conforming resolver, and host config only fills a silence.
|
|
433
|
+
|
|
434
|
+
**New canonical addresses** (both testnets; nothing else moved — no token implementation, factory, or
|
|
435
|
+
`initialize` ABI changed):
|
|
436
|
+
|
|
437
|
+
| Contract | Address |
|
|
438
|
+
| -------------------------------- | -------------------------------------------- |
|
|
439
|
+
| `AbxMetadataRenderer` (spec v11) | `0x85C1aE1F076d808fF7c1729F21B85038Fa16105E` |
|
|
440
|
+
| `AbxGenerator` (Sepolia) | `0xb7104AdFa6Fb5615e46E2a681A2Ff043B08fADB5` |
|
|
441
|
+
| `AbxGenerator` (Base Sepolia) | `0x2c1b7Cf6C54E4acBcB54FCc395f7Af88eB4fC8Ce` |
|
|
442
|
+
|
|
443
|
+
Also fixes a crash on `abx deploy-code --copies`: an undefined `bytes` reference threw a
|
|
444
|
+
`ReferenceError` at the end of the dry-run plan and, worse, at the confirmation prompt of a real
|
|
445
|
+
deploy.
|
|
446
|
+
|
|
447
|
+
- 5b29f53: Drop-in for every reconstruct caller; new exports for hosted/self-host watch loops so they stop
|
|
448
|
+
reimplementing `eth_getLogs` chunking and a second per-project fetch.
|
|
449
|
+
|
|
450
|
+
**`getLogsAdaptive` is public and accepts `Address | Address[]`.** Address-list chunking defaults to
|
|
451
|
+
1000 (ordinary RPC tier cap) via `addressBatch` — an RPC opinion, not a protocol constant; `0`
|
|
452
|
+
disables splitting. Per-tick block windows stay with the watcher (the reference one still uses 5000).
|
|
453
|
+
|
|
454
|
+
**`reconstructFromLogs(client, prior, logs, {toBlock})`** is the fold / head-read half of
|
|
455
|
+
`reconstructIncremental` given logs the caller already holds. `toBlock` is the inclusive scan head
|
|
456
|
+
those logs cover, so a capped window cannot stamp past the last block actually scanned.
|
|
457
|
+
`reconstructIncremental` is now a getLogs + that function.
|
|
458
|
+
|
|
459
|
+
**A Transfer no longer re-downloads every on-chain script chunk.** Chunk content has no log;
|
|
460
|
+
`ScriptUpdated` is the ping. `applyHeadReads` keeps the prior digest unless that ping is in `fresh`
|
|
461
|
+
(or the prior digest is missing). Same change helps the single-address path.
|
|
462
|
+
|
|
463
|
+
The reference token-api watcher now calls `getLogsAdaptive` for the registered set and hands each
|
|
464
|
+
touched project's logs to `reindex({logs, toBlock})`, so the watch tick is the only getLogs.
|
|
465
|
+
|
|
466
|
+
## 0.1.0-alpha.16
|
|
467
|
+
|
|
468
|
+
### Minor Changes
|
|
469
|
+
|
|
470
|
+
- b5744a1: An RPC that has pruned its log history is now detected, named, and routed around
|
|
471
|
+
|
|
472
|
+
A public endpoint that no longer holds old logs does not fail your scan — it answers `eth_getLogs`
|
|
473
|
+
with `[]` and HTTP 200, which is a success. Everything downstream believed it:
|
|
474
|
+
|
|
475
|
+
- **`abx doctor` graded it `best`.** The archive probe was
|
|
476
|
+
`getLogs({address: zeroAddress, fromBlock: old, toBlock: old})` and counted any non-throw as archive
|
|
477
|
+
access — but `zeroAddress` never emits logs, so an empty result is exactly what a _perfect_ archive
|
|
478
|
+
node returns too. The assertion could not fail; it only ever caught endpoints that _error_ on old
|
|
479
|
+
blocks. `ARCHIVE_DEPTH` was also 100k blocks, which on a 2-second chain is inside the retained window
|
|
480
|
+
of the very endpoints that prune.
|
|
481
|
+
- **The client never failed over.** The read transport is a viem `fallback` across every configured
|
|
482
|
+
endpoint, and `fallback` rotates on an _error_. So every retry asked the same endpoint the same
|
|
483
|
+
question, and a project whose logs sit ready on the SECOND configured endpoint reconstructed as
|
|
484
|
+
empty.
|
|
485
|
+
- **`abx add` then registered the project with no state at all**, after grinding half a million blocks,
|
|
486
|
+
and suggested re-running `--full` "in a minute" — advice that can never work for a pruned index.
|
|
487
|
+
|
|
488
|
+
Measured on the two default Base Sepolia endpoints, same address and same window: one returns zero
|
|
489
|
+
logs for the project's entire history, the other returns them instantly. Ethereum Sepolia's keyless
|
|
490
|
+
default endpoint shows the same shape past a few hundred thousand blocks.
|
|
491
|
+
|
|
492
|
+
- **The probe asserts on something that must come back.** Blocks are retained by everyone; receipts
|
|
493
|
+
and the log index are what get pruned. `probeHistoryAt` (new SDK export) reads the probe block, asks
|
|
494
|
+
for one of its transactions' receipts, and — when that receipt carries a log — requires `getLogs` to
|
|
495
|
+
return that same log. No hardcoded address, no fixture block. `ARCHIVE_DEPTH` is now 500k.
|
|
496
|
+
It fails **safe**: a probe block with no transactions, or whose transactions logged nothing, keeps the
|
|
497
|
+
old lenient verdict rather than inventing a failure.
|
|
498
|
+
- **`abx doctor` names a reachable endpoint that can't serve history**, with the fault and the fix
|
|
499
|
+
("history pruned ~500000 blocks back … list a full-archive endpoint FIRST in `ABX_RPC_URLS_<CHAIN>`").
|
|
500
|
+
Collapsing to the best endpoint hid this, and ordering is what decides who answers the scan.
|
|
501
|
+
- **An empty scan now retries each endpoint on its own** before giving up, and says which one served
|
|
502
|
+
the logs. Cheap by construction: each endpoint is first asked whether it holds history at _this
|
|
503
|
+
project's_ deploy block — three calls — and only one that passes gets a scan.
|
|
504
|
+
- **`SelfHostIndexer.reindex(address, {rpcUrl})`** pins a single endpoint instead of the pool, which is
|
|
505
|
+
what makes that rotation expressible. Clients are pooled per (chain, endpoint), so the default path
|
|
506
|
+
is unchanged.
|
|
507
|
+
- The final failure message now separates the two cases it had merged: a project you _just_ deployed
|
|
508
|
+
(transient, retry) from one that is not new (retention — check `abx doctor`).
|
|
509
|
+
|
|
510
|
+
Found by direct probing during the 2026-08-17 agent sweep, after an `abx add` of a 12-day-old Base
|
|
511
|
+
Sepolia edition reconstructed zero of its 18 events.
|
|
512
|
+
|
|
513
|
+
### Patch Changes
|
|
514
|
+
|
|
515
|
+
- 9c287c0: `abx inspect` no longer lists trait keys when there is no real `abx.traits(` call.
|
|
516
|
+
|
|
517
|
+
A string that _mentioned_ `abx.traits({foo: 1})` used to fill the Traits section while Runtime said
|
|
518
|
+
"no abx.traits call". The key extractor now runs only when the call survives in the code view
|
|
519
|
+
(comments stripped, strings blanked). Quoted keys inside a real call (`'Plant Count':`) still
|
|
520
|
+
work. Terser `window.abx&&(abx.traits({…}),abx.done())` and an accessor at the end of a large file
|
|
521
|
+
are pinned by tests.
|
|
522
|
+
|
|
523
|
+
Reported in the 2026-08-18 tester batch (feedback 0a0f8f9c, 1253c563).
|
|
524
|
+
|
|
525
|
+
- 9c287c0: On-chain script chunks no longer insert a newline in the middle of a token.
|
|
526
|
+
|
|
527
|
+
The generator joins chunks with `'\n'`. A fixed 22 kB slice could split `mass` into `ma` + `ss`,
|
|
528
|
+
producing a SyntaxError on chain while `abx verify` still went green. Template-mode deploys now
|
|
529
|
+
split at an existing newline so that join is byte-identical to the source, refuse a 22 kB+ span
|
|
530
|
+
with no newline, and parse the program before any gas.
|
|
531
|
+
|
|
532
|
+
Reported in the 2026-08-18 tester batch (feedback 38455765, 038d7ed2, 8c256d9d, 50e53193).
|
|
533
|
+
|
|
534
|
+
## 0.1.0-alpha.15
|
|
535
|
+
|
|
536
|
+
### Minor Changes
|
|
537
|
+
|
|
538
|
+
- 7fec2d7: An edition's per-id cap now folds from the log, so a capped edition stops reporting itself as open
|
|
539
|
+
|
|
540
|
+
`DefaultMaxSupplySet` — added in the contract-audit release precisely so the log could tell an open
|
|
541
|
+
edition from a capped one — reached the ABI and stopped there. `reconstruct.ts` had no fold case, so
|
|
542
|
+
the collection-wide default never landed in `ProjectState`, and **the common shape was the broken
|
|
543
|
+
one**: `--copies N` sets the cap at `initialize` and never calls `setMaxSupply`, so no id has a
|
|
544
|
+
`MaxSupplyUpdated` of its own and every capped edition ever deployed folded as _uncapped_. The
|
|
545
|
+
head-read lane (`listTokens`, which calls `maxSupply(id)`) said `N` the whole time — one field name,
|
|
546
|
+
two answers, on the value that decides whether a buy button renders. Found by the abx-services team
|
|
547
|
+
while upgrading their resolver/indexer to this release.
|
|
548
|
+
|
|
549
|
+
- **`ProjectState.defaultMaxSupply`** — the collection-wide per-id default (`'0'` = open; `null` ⇒ not
|
|
550
|
+
an edition). The 1155 analogue of `maxInvocations`.
|
|
551
|
+
- **`TokenState.maxSupply` is now the _effective_ cap** — an id's own override, else that default —
|
|
552
|
+
and so equals `maxSupply(id)` on chain and its head-read twin `TokenRow.maxSupply`. Previously it
|
|
553
|
+
was the override alone, and absent otherwise.
|
|
554
|
+
- **`TokenState.maxSupplyOverridden`** — whether this id has ever been explicitly overridden. The
|
|
555
|
+
distinction the on-chain getter cannot express (`maxSupply(id)` returns `0` for both "never capped"
|
|
556
|
+
and "deliberately closed") and the log now can, plus a signal that the monotonic never-increase rule
|
|
557
|
+
is in force for that id.
|
|
558
|
+
- **`editionCapOf(token)`** — new SDK export returning `{kind:'open'} | {kind:'capped', cap} |
|
|
559
|
+
{kind:'closed'}`, so nothing re-derives the rule. Used by the dashboard and `abx tokens`; pass a
|
|
560
|
+
head-read row and a `'0'` cap reads `open`, which is all a state read can honestly say.
|
|
561
|
+
- **The dashboard stops lying twice.** It tested `maxSupply` for truthiness: a `--copies 10` id read
|
|
562
|
+
"(open)", and — because `'0'` is a non-empty string — an id deliberately closed would have read
|
|
563
|
+
"12 / 0". It now reads "12 / 10" and "12 (closed — no more can be minted)".
|
|
564
|
+
- **Projection columns**: `projects.default_max_supply`, `tokens.max_supply_overridden` (migration-added,
|
|
565
|
+
so an existing store keeps working; NULL stays NULL rather than becoming a fabricated `0`).
|
|
566
|
+
|
|
567
|
+
Also in this pass, from the same review:
|
|
568
|
+
|
|
569
|
+
- **`SPINE_EVENT_DOC` had drifted to 41 of 52 events**, so eleven folded events carried an empty
|
|
570
|
+
human description and defaulted to Register 2 — including `TransferValidatorUpdated`, which belongs
|
|
571
|
+
to Register 1, and the factory's `Deployed`. All eleven are described, and a new
|
|
572
|
+
`spine-doc-coverage.test.ts` fails the build if the table and the spine ABI drift apart again in
|
|
573
|
+
either direction.
|
|
574
|
+
- **One provenance body in the resolver's `renderer` branch.** The `text/uri-list` arm hand-built an
|
|
575
|
+
object byte-identical to `onChainProv(field, 'renderer', …)` — same keys, same order, the note string
|
|
576
|
+
typed a second time — so the only thing that branch could do was drift from `sourceNote`.
|
|
577
|
+
- **Dead `abx_params`-era test scaffolding deleted** (a `paramsOf(json) => json.abx_params` reader, an
|
|
578
|
+
RPC stub, a schema factory), including an import of a `ParamMember` type that no longer exists —
|
|
579
|
+
which nothing caught, because `tsconfig` includes only `src`, so test files are never typechecked.
|
|
580
|
+
|
|
581
|
+
## 0.1.0-alpha.14
|
|
582
|
+
|
|
583
|
+
### Minor Changes
|
|
584
|
+
|
|
585
|
+
- 1b6b741: Rename "artist" to "creator" throughout, including the protocol vocabulary
|
|
586
|
+
|
|
587
|
+
ABX is a tool for creators generally. Art remains a first-class use case, but it should not be baked
|
|
588
|
+
into the product's framing — and it was, down to the on-chain identifiers.
|
|
589
|
+
|
|
590
|
+
**Breaking, and deliberately a clean break** (pre-launch, folded into the one redeploy that four
|
|
591
|
+
rounds of security remediation already required — deferring would have meant either living with the
|
|
592
|
+
old vocabulary permanently or spending a second deployment on a word):
|
|
593
|
+
|
|
594
|
+
- `AuthOption` is now `Creator`, `TokenOwner`, `Address`, `CreatorOrTokenOwner`, `CreatorOrAddress`,
|
|
595
|
+
`TokenOwnerOrAddress`, `CreatorOrTokenOwnerOrAddress`. Order is unchanged, so the `uint8` values
|
|
596
|
+
are identical — only the names moved. Users type these: `--schema key:Type:Creator`.
|
|
597
|
+
- The on-chain collection metadata field keys `artist` / `artist_links` are now `creator` /
|
|
598
|
+
`creator_links`. These are `bytes32` keys written on-chain and emitted verbatim into every
|
|
599
|
+
collection's `contractURI` JSON.
|
|
600
|
+
- CLI flags `--artist` / `--artist-links` are now `--creator` / `--creator-links`. No aliases.
|
|
601
|
+
- `@artblocks/abx-token-api` renames its `art` module to `content`: `generateArt` →
|
|
602
|
+
`generateContent`, `artContentHash` → `contentHash`.
|
|
603
|
+
- `AbxMetadataRenderer.SPEC_VERSION` is **7**, and `isCurrentRenderer` gates on it. A v6 renderer
|
|
604
|
+
emits a different member key, so it is genuinely behind, not cosmetically so.
|
|
605
|
+
|
|
606
|
+
Package CHANGELOGs are left alone on purpose: they record what past alpha versions actually shipped,
|
|
607
|
+
and rewriting them would make the release history lie about flag names that really were `--artist`.
|
|
608
|
+
|
|
609
|
+
- 1b6b741: A purchase now carries the terms the buyer accepted — closing the one path by which a project owner
|
|
610
|
+
could take more than the buyer agreed to.
|
|
611
|
+
|
|
612
|
+
Both shared fixed-price minters take a mandatory **terms guard** — not a slippage allowance; see the note
|
|
613
|
+
below — and revert a new `SaleTermsChanged()` when the live sale doesn't match:
|
|
614
|
+
|
|
615
|
+
```solidity
|
|
616
|
+
purchase(address token, address expectedPaymentToken, uint256 maxPrice)
|
|
617
|
+
purchaseTo(address token, address to, address expectedPaymentToken, uint256 maxPrice)
|
|
618
|
+
// 1155 — the bound is the TOTAL, since qty multiplies it
|
|
619
|
+
purchase(address token, uint256 id, uint256 qty, address expectedPaymentToken, uint256 maxTotalPrice)
|
|
620
|
+
purchaseTo(address token, uint256 id, uint256 qty, address to, address expectedPaymentToken, uint256 maxTotalPrice)
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
`configure` takes effect immediately and has no timelock. On the ETH lane that was largely contained
|
|
624
|
+
(`msg.value` must equal `price`), but an ERC-20 sale settles `safeTransferFrom(buyer, payee, price)`
|
|
625
|
+
against a standing allowance — so an owner who front-ran a pending purchase with a huge price spent the
|
|
626
|
+
buyer's whole approval, and one who switched the sale to a different ERC-20 reached an allowance granted
|
|
627
|
+
somewhere else. `address(0)` as `expectedPaymentToken` means ETH. There is deliberately no "no maximum"
|
|
628
|
+
sentinel: a bound that can be defaulted away is the bug being fixed.
|
|
629
|
+
|
|
630
|
+
SDK (breaking): `preparePurchase` / `preparePurchase1155` take the live terms — `sale`, exactly what
|
|
631
|
+
`readSaleConfig` / `readSaleConfig1155` returns — instead of a hand-computed `value`. They derive the
|
|
632
|
+
ETH to attach (`price`, or `price × quantity`) and the bound from those terms, so the payment and the
|
|
633
|
+
guard cannot desync. Pass `maxPrice` / `maxTotalPrice` to state a wider ceiling (a UI that tolerates a
|
|
634
|
+
small move rather than making the buyer re-sign); it widens the guard only, never the payment. New
|
|
635
|
+
exported type `PurchaseTerms`.
|
|
636
|
+
|
|
637
|
+
**`maxPrice` is not slippage tolerance on the ETH lane, and the docs no longer imply it is.** The minter
|
|
638
|
+
requires `msg.value == price` (an equality) and V1 has no refund path, so an in-flight ETH purchase
|
|
639
|
+
reverts if the price moves in _either_ direction, however wide the ceiling. Real tolerance exists only on
|
|
640
|
+
the ERC-20 lane, where the live `price` is pulled from the buyer's allowance and anything at or below the
|
|
641
|
+
ceiling settles.
|
|
642
|
+
|
|
643
|
+
CLI: `abx minter buy` hands the terms it just read to the SDK (the price × quantity math now lives in
|
|
644
|
+
one place), and the scaffolded `abx mint-page` binds each mint to the terms the page is displaying —
|
|
645
|
+
if the owner re-prices mid-click the mint reverts, nothing is charged, and the page tells the buyer to
|
|
646
|
+
review the new price. Re-pricing a live sale therefore fails the buys already in flight, by design:
|
|
647
|
+
pause first if you want a clean cutover.
|
|
648
|
+
|
|
649
|
+
**Deploy note:** this is a runtime change to two shared singletons, so both need a redeploy on every
|
|
650
|
+
supported chain (CREATE2 + canonical salts, so the new addresses are identical cross-chain) and the new
|
|
651
|
+
addresses recorded in `packages/sdk/src/deployments.ts` +
|
|
652
|
+
`site/content/docs/reference/deployments.mdx`. Until then the CREATE2-prediction-vs-manifest tests fail
|
|
653
|
+
on purpose — that is the drift detector doing its job, not a broken test.
|
|
654
|
+
|
|
655
|
+
- 1b6b741: The configure hook can see a blob's size and contents — so creators can police it instead of the protocol
|
|
656
|
+
|
|
657
|
+
`IAbxConfigureHook.onParamConfigured` gains two arguments:
|
|
658
|
+
|
|
659
|
+
```solidity
|
|
660
|
+
function onParamConfigured(
|
|
661
|
+
uint256 tokenId,
|
|
662
|
+
bytes32 key,
|
|
663
|
+
bytes32 value, // the literal on the scalar path; keccak256(data) on the blob path
|
|
664
|
+
address updatedBy,
|
|
665
|
+
uint256 dataLength, // 0 on the scalar path; data.length on the blob path (never 0 there)
|
|
666
|
+
address dataBlobAddress // address(0) on the scalar path; the live SSTORE2 pointer otherwise
|
|
667
|
+
) external;
|
|
668
|
+
```
|
|
669
|
+
|
|
670
|
+
**Why.** On a multi-copy edition params belong to the id, so a holder-writable `String`/`Bytes` key is
|
|
671
|
+
shared: one holder could store large values and make the shared id's document expensive for every
|
|
672
|
+
co-holder. An independent audit asked for a protocol byte ceiling. A ceiling would cap every project
|
|
673
|
+
to police a configuration almost nobody wants — but the alternative we had documented, "the creator
|
|
674
|
+
constrains it in their own hook", was not actually possible: the hook only ever saw `keccak256(data)`.
|
|
675
|
+
It could not learn the length, could not read the content, and could not read the new value from
|
|
676
|
+
storage either, because nothing had persisted yet. Now it can, and no protocol limit is imposed.
|
|
677
|
+
|
|
678
|
+
**The bytes are not forwarded** — a blob can be nearly a full contract's worth of data, and putting it
|
|
679
|
+
in calldata would make every configure call pay for it whether the hook looks or not. A hook enforcing
|
|
680
|
+
a size ceiling reads `dataLength`; a hook that needs content calls `SSTORE2.read(dataBlobAddress)` and
|
|
681
|
+
pays for exactly what it asked for. Guaranteed: `keccak256(SSTORE2.read(dataBlobAddress)) == value`.
|
|
682
|
+
|
|
683
|
+
**Two things to know when writing one.** `tokenParamData(tokenId, key)` still returns the OLD value
|
|
684
|
+
inside the hook (that is what "before the value persists" means — and it lets you veto a regression).
|
|
685
|
+
And the blob is written _before_ the hook, because an address is meaningless until the contract behind
|
|
686
|
+
it exists; so a veto happens after the writer paid to store the bytes. The accepted path costs the
|
|
687
|
+
same as before, only rejection wastes, and it wastes only the rejecting writer's own gas.
|
|
688
|
+
|
|
689
|
+
`ConfigurableParams` is extension **v3** — the beacon's `extensionVersion` is how an integrator tells
|
|
690
|
+
which calling convention a deployed token uses. A hook written for the 4-argument form will revert
|
|
691
|
+
against a v3 token, and vice versa.
|
|
692
|
+
|
|
693
|
+
Addresses: `AbxParamsLib` moved, `AbxEditionLib` with it (it links it), and the four token types that
|
|
694
|
+
compose `ConfigurableParams` moved with their factories — `SeriesCode`, `EditionCode`,
|
|
695
|
+
`OneOfOneEdition`, `EditionImage`. The two ERC-721 image types and their factory, `AbxMetadataLib`,
|
|
696
|
+
`AbxCodeLib`, the renderer, chunk store, seed source and both minters keep their addresses.
|
|
697
|
+
|
|
698
|
+
- 1b6b741: Renderer spec v10 projects four long-reserved keys; edition trust anchors move
|
|
699
|
+
|
|
700
|
+
**Renderer spec v10.** Four keys the spec reserved from the start were projected on chain by nothing:
|
|
701
|
+
`background_color` and `youtube_url` (token), `banner_image` and `featured_image` (collection). A
|
|
702
|
+
documented reserved key that no surface emits is a hole rather than a saved byte — a creator sets it,
|
|
703
|
+
observes nothing, and cannot tell whether the tool or the marketplace is at fault. All four now project
|
|
704
|
+
when their representation is chain-reachable, and are omitted when unset. `isCurrentRenderer` gates on
|
|
705
|
+
10; a v9 renderer silently drops them.
|
|
706
|
+
|
|
707
|
+
**`collaborators` is no longer a reserved key.** It was in the registry, projected by neither plane, and
|
|
708
|
+
because reserved keys are excluded from the resolver's `artifacts` listing, setting it on chain did
|
|
709
|
+
nothing observable anywhere. It is now an ordinary creator key — which means it **does** list in
|
|
710
|
+
`artifacts`. Put a collaborator list in a named artifact (`abx attach`) or in `description`.
|
|
711
|
+
|
|
712
|
+
**The resolver's two collection image keys are now symmetric with the renderer.** `featured_image` is a
|
|
713
|
+
top-level `contractURI` key instead of artifacts-only, and `banner_image` projects for every
|
|
714
|
+
chain-reachable representation instead of only `url` (an `inline` or `reader` banner used to vanish).
|
|
715
|
+
|
|
716
|
+
**Docs now carry the three-list split** — which keys both planes project, which are the off-chain
|
|
717
|
+
resolver's alone by design (`abx_provenance.status`, operator overlay, effects/live-view, the
|
|
718
|
+
`artifacts` listing, collection `image` courtesy, `image_data`, off-chain-decode values), and which are
|
|
719
|
+
not reserved at all. That split is the thing to read before adding a key to either surface: drift on a
|
|
720
|
+
key both planes _can_ emit is what produced three earlier remediations.
|
|
721
|
+
|
|
722
|
+
**Addresses.** The three edition factories move (trust anchors) along with their implementations, and
|
|
723
|
+
the renderer moves. `AbxEditionLib`, `AbxMetadataLib`, `AbxCodeLib`, `AbxParamsLib`, all three ERC-721
|
|
724
|
+
factories, the chunk store, the seed source, both minters and both generators keep their addresses.
|
|
725
|
+
Existing clones keep running their frozen implementations; re-point a live collection at the new
|
|
726
|
+
renderer with `abx set-renderer` rather than redeploying it.
|
|
727
|
+
|
|
728
|
+
- f64a31f: Expose `lockScript` above the contract layer — the lock that actually freezes a code project's work.
|
|
729
|
+
|
|
730
|
+
`SeriesCode`/`EditionCode` have always had `lockScript()` (and `scriptLocked()`), but nothing above
|
|
731
|
+
the ABI surfaced it: the SDK had no `prepareLockScript`, the CLI had no `lock-script` command, and the
|
|
732
|
+
skill's immutability guidance told creators that `lock-field` + `lock-uri` made a project "provably
|
|
733
|
+
immutable". For a generative/code drop that is false — those freeze only the _metadata_; the owner can
|
|
734
|
+
keep rewriting the on-chain program (`setScriptChunk`/`removeLastScriptChunk`) until the script is
|
|
735
|
+
locked. Agents building on ABX repeatedly missed that the program could be frozen at all.
|
|
736
|
+
|
|
737
|
+
- **SDK:** new `prepareLockScript({contract, chainId})` (mirrors `prepareLockDependencies`).
|
|
738
|
+
- **CLI:** new `abx lock-script <address>` command (any signing lane), plus `abx verify` now reports
|
|
739
|
+
the script and dependency lock state for code projects (`script: locked/UNLOCKED`, with a nudge to
|
|
740
|
+
`lock-script` when the program is still mutable) — read from the already-indexed state, no extra RPC.
|
|
741
|
+
- **Skill:** the immutability guidance now names the full freeze for a code drop
|
|
742
|
+
(`lock-script` + `lock-dependencies` + `lock-field`/`lock-uri`, plus `set-schema … lock=now` for a
|
|
743
|
+
param value), corrects the "provably immutable" claim, and surfaces PostParams as a first-class
|
|
744
|
+
`deploy-code` capability (not only a generative feature) in the `SKILL.md` description and decision
|
|
745
|
+
tree so collector-settable on-chain parameters are discoverable.
|
|
746
|
+
|
|
747
|
+
- 1b6b741: Independent-audit remediation: `abx_provenance` reshaped, `abx_params` removed, hook ABI widened
|
|
748
|
+
|
|
749
|
+
An independent adversarial audit of the contracts found no Critical or High issue, no theft path and
|
|
750
|
+
no cross-project reach — but four Mediums, eight Lows and five architectural notes. Everything is
|
|
751
|
+
addressed. Consumer-visible changes:
|
|
752
|
+
|
|
753
|
+
**`abx_provenance` entries are now `{field, source, note}`.** They lost `onChain`, which was wrong in
|
|
754
|
+
both directions — a `url` reported `false` although the URL string is stored on chain, while an
|
|
755
|
+
`inline` value of `"https://…"` reported `true` for a pure pointer — and `verifiedAgainstChain`,
|
|
756
|
+
which was hardcoded `null` on every entry. `source` says where the bytes came from; whether a value
|
|
757
|
+
resolves on chain is visible in the value, and that judgment belongs to the reader. The off-chain
|
|
758
|
+
resolver drops `onChain` for the same reason (it was exactly `status === 'on-chain'`) and keeps
|
|
759
|
+
`status`, which it can genuinely compute.
|
|
760
|
+
|
|
761
|
+
**`abx_params` no longer appears in `tokenURI`.** It was emitted by the on-chain renderer AND the
|
|
762
|
+
resolver and parsed back by nobody. Params enumerate directly from the contract — `tokenParamKeys`,
|
|
763
|
+
`tokenParam`, `paramSchemaKeys` — which is canonical, needs no indexer, and is what a chain-only
|
|
764
|
+
reader should use; a code project's script still receives them through `tokenData`. Traits for
|
|
765
|
+
marketplaces belong in `attributes`, unchanged.
|
|
766
|
+
|
|
767
|
+
**A computed `image` locator now lands verbatim.** A field renderer returning
|
|
768
|
+
`("text/uri-list", "ipfs://…")` was being data-wrapped into `data:text/uri-list;base64,…`, which no
|
|
769
|
+
marketplace dereferences. `image` and `animation_url` now share one implementation of the rule.
|
|
770
|
+
|
|
771
|
+
**`IAbxTransferHook.onTokenTransfer` gains `operator` and `amount`.** Without them a hook on a
|
|
772
|
+
shared-supply ERC-1155 cannot tell a real transfer from a zero-amount no-op — which let any address
|
|
773
|
+
fire the param lifecycle for an id it held no copy of. The token also refuses to notify on
|
|
774
|
+
zero-amount and self-transfers.
|
|
775
|
+
|
|
776
|
+
**`pingURI` is owner-only**, and `paramSchemaHead` / `selectOption` are new: resolving one selected
|
|
777
|
+
option no longer copies the whole option table on every render.
|
|
778
|
+
|
|
779
|
+
`AbxMetadataRenderer.SPEC_VERSION` is 8. Every canonical address moves — every token type is now
|
|
780
|
+
library-linked, including the two ERC-721 image factories, because the metadata field store was
|
|
781
|
+
externalized into the new `AbxMetadataLib` to restore EIP-170 headroom before any fix was stacked on
|
|
782
|
+
top of 187 bytes of margin.
|
|
783
|
+
|
|
784
|
+
The CLI now warns when `--copies` meets a holder-writable `--schema`: on an edition, params belong to
|
|
785
|
+
the id, so every holder shares one value and the last writer wins.
|
|
786
|
+
|
|
787
|
+
- 1b6b741: The custom seed source is now a real choice, not a documented one
|
|
788
|
+
|
|
789
|
+
We tell creators — in the docs, in `AbxSeedSource`'s own NatSpec, and in `deploy-code --help` — that the
|
|
790
|
+
canonical mint seed is pseudorandom and that the answer for anything lottery-like is to point
|
|
791
|
+
`seedSource` at their own `IAbxSeedSource` over commit-reveal or a VRF oracle. On-chain that was always
|
|
792
|
+
true. In the toolkit it was not: there was no flag, no owner command, and the only route was an
|
|
793
|
+
`ABX_SEED_SOURCE` env var validated as nothing more than "has code at this address". A doc/code
|
|
794
|
+
contradiction of our own making, now closed at both ends.
|
|
795
|
+
|
|
796
|
+
**Deploy:** `abx deploy-code --seed-source <0x…|canonical>` (and the `--copies` edition lane). Omitting
|
|
797
|
+
it is unchanged — the canonical `AbxSeedSource` from the manifest, bootstrapped on a chain that lacks
|
|
798
|
+
one — and `--no-seed` still means no mint-time seed at all. Passing both is refused rather than resolved
|
|
799
|
+
in someone's favour. `ABX_SEED_SOURCE` keeps working and is no longer the unchecked lane.
|
|
800
|
+
|
|
801
|
+
**After deploy:** `abx set-seed-source <address> <0x…|canonical|none>` — owner-only, same positional
|
|
802
|
+
grammar as `abx set-transfer-validator`. It surfaces the on-chain `setSeedSource(address)` that nothing
|
|
803
|
+
reached before. **Future mints only**: a seed settles the instant it is assigned, so nothing already
|
|
804
|
+
minted changes. The command says so, names the count of tokens already carrying a seed from the old
|
|
805
|
+
source, and points out that a part-sold drop then spans two sources — public on the spine
|
|
806
|
+
(`SeedSourceSet`) but not something an early buyer is told, so pause and say so.
|
|
807
|
+
|
|
808
|
+
**`abx state` now prints the seed source**, labelled: `none`, the canonical singleton, or `CUSTOM`. It is
|
|
809
|
+
the one setting an owner can re-point mid-sale that changes what a later buyer receives, and it was
|
|
810
|
+
readable nowhere.
|
|
811
|
+
|
|
812
|
+
**Both writes probe the address first, and `code.length > 0` is not the check.** The SDK gained
|
|
813
|
+
`probeSeedSource` — one `eth_call` to `seed(uint256,address)`, which must return 32 bytes — plus
|
|
814
|
+
`readSeedSource`, `prepareSetSeedSource`, `assertSeedSourceUsable`, and a `SeedSourceUnusableError`
|
|
815
|
+
carrying a structured verdict. Four shapes are refused, each with its own message: **no code**;
|
|
816
|
+
**empty return** (the permissive-fallback shape — a Safe, an uninitialised proxy, an EIP-7702-delegated
|
|
817
|
+
EOA; pasting your own wallet is the common way in); **a return under 32 bytes**; and **a revert** (either
|
|
818
|
+
the wrong address entirely, or a real source not yet armed — `seed()` is called synchronously inside the
|
|
819
|
+
mint and its revert bubbles, so a source that cannot answer now cannot answer at mint either). The
|
|
820
|
+
interface is non-`view` on purpose, but an `eth_call` simulates a state-keeping source fine, so
|
|
821
|
+
commit-reveal and oracle-fed sources probe without sending anything. This matters because a
|
|
822
|
+
misconfigured seed source is **completely silent**: the write succeeds, `seedSource()` reads back what
|
|
823
|
+
you set, the event fires, `abx state` shows it — and then every mint of the collection reverts in the
|
|
824
|
+
token's `bytes32` decode. Same spirit as `CreatorToken._requireHasCode`.
|
|
825
|
+
|
|
826
|
+
**Naming fix: a `seed` param schema is not a "re-roll", and no longer described as one.** The governed
|
|
827
|
+
path is `configureTokenParam(tokenId, "seed", value)` — **the caller supplies the value**. Nothing is
|
|
828
|
+
re-randomized and the seed source is never consulted again; with an unbounded `Uint256Range` the
|
|
829
|
+
authorized party may set any 32-byte value, repeatedly, until they like the output. "Re-roll" promises a
|
|
830
|
+
buyer a fresh random draw they could reasonably expect to be fair, which is not what they get. It is a
|
|
831
|
+
collector-chosen (or creator-chosen) seed, and the docs, the specs, and the skill now say that. The
|
|
832
|
+
substance that was correct is unchanged: the schema is a pre-sale commitment (declarable only before the
|
|
833
|
+
collection's first seed exists), `paramSchema("seed")` is the buyer's read, and the type must be a
|
|
834
|
+
literal/scalar one.
|
|
835
|
+
|
|
836
|
+
**Dropped a stale warning** in the skill about a `seed` schema changing how the seed decodes off-chain
|
|
837
|
+
while the on-chain generator injects raw hex — `tokendata.ts` returns the raw hex for `seed`
|
|
838
|
+
unconditionally, ahead of the schema branch, so the wire format is invariant across both surfaces and
|
|
839
|
+
there is nothing left to warn about.
|
|
840
|
+
|
|
841
|
+
**Also corrected: `maxPrice` is a terms assertion, not slippage tolerance.** On the ETH lane the minter
|
|
842
|
+
requires `msg.value == price` (an equality) and V1 has no refund path, so an in-flight ETH purchase
|
|
843
|
+
reverts if the price moves in _either_ direction, however wide the ceiling — widening `maxPrice` on an
|
|
844
|
+
ETH sale buys the buyer nothing. Real tolerance exists only on the ERC-20 lane, where the live price is
|
|
845
|
+
pulled from the buyer's allowance. `specs/protocol/minter-spine.md` and
|
|
846
|
+
`site/content/docs/protocol/minting.mdx` said "a price cut still settles" without that distinction.
|
|
847
|
+
|
|
848
|
+
- 1b6b741: Renderer spec v9: a computed image is carried once, not twice
|
|
849
|
+
|
|
850
|
+
A field-renderer-produced image was emitted as the reserved `image` key **and again** inside the
|
|
851
|
+
`artifacts` manifest, then the whole document was base64-encoded around both copies. On the
|
|
852
|
+
on-chain-SVG lane that roughly doubled the inner payload of `tokenURI` — the one read this protocol
|
|
853
|
+
most wants to stay within ordinary RPC limits.
|
|
854
|
+
|
|
855
|
+
The data-plane spec always allowed an on-chain renderer to omit entries duplicating reserved keys it
|
|
856
|
+
already emits ("an EVM-efficiency reduction, never a semantic one"). The renderer now takes that for
|
|
857
|
+
every reserved key, so on a fully-on-chain project `artifacts` is absent rather than empty. Nothing is
|
|
858
|
+
lost, because the entry's only unique contribution was a `mimeType` and a `data:` URI states its own.
|
|
859
|
+
The off-chain resolver still emits the complete listing, duplicates included — that asymmetry is the
|
|
860
|
+
spec's, and it is now documented on both surfaces.
|
|
861
|
+
|
|
862
|
+
Also removed: three orphaned param getters on the renderer (`paramKeysOf`, `paramSchemaOf`,
|
|
863
|
+
`paramDataOf`), stranded when v8 took params out of `tokenURI`, whose NatSpec still claimed `tokenURI`
|
|
864
|
+
called them.
|
|
865
|
+
|
|
866
|
+
`AbxMetadataRenderer.SPEC_VERSION` is **9** and `isCurrentRenderer` gates on 9. Only the renderer
|
|
867
|
+
moves — nothing links it, so no factory or implementation address changes. Existing on-chain-URI
|
|
868
|
+
projects keep resolving through the v8 renderer until re-pointed with `abx set-renderer`.
|
|
869
|
+
|
|
870
|
+
- 1b6b741: Upgrading from alpha.12/alpha.13 — what breaks, in one place
|
|
871
|
+
|
|
872
|
+
This release lands the contract-audit branch. It is a **compatibility break with earlier alphas**, which
|
|
873
|
+
is fine at this stage (greenfield alpha, no backwards-compatibility promise) but is worth having in one
|
|
874
|
+
list rather than spread across a dozen changesets. Nothing here is a deprecation with a migration
|
|
875
|
+
window; the old shapes are gone.
|
|
876
|
+
|
|
877
|
+
**Every canonical address moved**, and four manifest fields are new (`metadataLib`, `paramsLib`,
|
|
878
|
+
`codeLib`, `editionLib` — the delegatecalled write-path libraries). Resolve through `getDeployment` and
|
|
879
|
+
the upgrade is transparent; anything you have _stored_ keyed by a factory address is not. A project
|
|
880
|
+
indexed from a superseded anchor reads `isCanonical: false` against the new manifest — correct, since it
|
|
881
|
+
is what a creator sees if they don't redeploy, but it is a data question, not a version bump.
|
|
882
|
+
|
|
883
|
+
**The metadata document changed: renderer spec v4 → v9.** If you assemble or assert on it:
|
|
884
|
+
|
|
885
|
+
- `abx_provenance` entries lost `onChain` (it was exactly `status === 'on-chain'`, and wrong in both
|
|
886
|
+
directions) and `verifiedAgainstChain` (hardcoded `null` on every entry). `source` and `status` stay.
|
|
887
|
+
- The `abx_params` block is gone from **both** lanes. Params enumerate from the contract —
|
|
888
|
+
`tokenParamKeys` / `tokenParam` / `paramSchemaKeys` — which is canonical and needs no indexer; a code
|
|
889
|
+
project's script still receives them through `tokenData`.
|
|
890
|
+
- `artist` / `artist_links` are now `creator` / `creator_links` (reserved on-chain collection field
|
|
891
|
+
keys), and `AuthOption.Artist*` is `AuthOption.Creator*` (numeric values unchanged).
|
|
892
|
+
- A computed `image` locator (`text/uri-list`) lands **verbatim** instead of being wrapped into a
|
|
893
|
+
`data:` URI no marketplace dereferences.
|
|
894
|
+
- The on-chain renderer no longer duplicates a computed image into `artifacts`. The off-chain resolver
|
|
895
|
+
still emits the complete listing — that asymmetry is specified, not a bug.
|
|
896
|
+
- Four long-reserved keys now project on chain: `background_color`, `youtube_url` (token) and
|
|
897
|
+
`banner_image`, `featured_image` (collection). `featured_image` also becomes a top-level resolver key
|
|
898
|
+
instead of artifacts-only, and `banner_image` projects for every chain-reachable representation
|
|
899
|
+
rather than `url` alone.
|
|
900
|
+
- `collaborators` is **no longer reserved** — projected by neither plane and excluded from `artifacts`
|
|
901
|
+
by its own reserved-ness, so it did nothing. It is now an ordinary creator key that does list.
|
|
902
|
+
|
|
903
|
+
**`tokenData` divergences fixed, so rendered output can change:** a contract-scope `seed` no longer
|
|
904
|
+
leaks into a token's `tokenData` (the on-chain generator never read one), `seed`'s wire format is always
|
|
905
|
+
raw 32-byte hex regardless of schema, and `</script` escaping is case-insensitive to match the on-chain
|
|
906
|
+
generator. Cached renders for affected code projects should be re-derived.
|
|
907
|
+
|
|
908
|
+
**Removed:** `paramKeysOf`, `paramSchemaOf`, `paramDataOf` on `AbxMetadataRenderer` — orphaned when
|
|
909
|
+
params left `tokenURI`. Read the token directly instead.
|
|
910
|
+
|
|
911
|
+
**Two hook interfaces widened** (`ConfigurableParams` is extension **v3**; a hook built for the old
|
|
912
|
+
signature reverts against a v3 token): `IAbxTransferHook.onTokenTransfer` gained `operator` + `amount`;
|
|
913
|
+
`IAbxConfigureHook.onParamConfigured` gained `dataLength` + `dataBlobAddress`.
|
|
914
|
+
|
|
915
|
+
**Additive:** `ParamHooksFrozen` folds into `ParamHooks.locked`; `paramSchemaHead` + `selectOption`
|
|
916
|
+
replace pulling a whole option table to resolve one index; `readParamHooks`; `abxJs()` / `gunzipScript()`
|
|
917
|
+
on the generator for piecewise document assembly; and the three ERC-1155 ABIs now carry
|
|
918
|
+
`MetadataUpdate` / `BatchMetadataUpdate` / `DefaultMaxSupplySet`, which were emitted but not decodable.
|
|
919
|
+
|
|
920
|
+
- 1b6b741: Transfer-validator authorization has one home, and the five affected trust anchors move
|
|
921
|
+
|
|
922
|
+
`CreatorToken1155.setTransferValidator` performed no authorization at all, and the library it
|
|
923
|
+
delegates to performed none either. What protected the three edition token types was that each one
|
|
924
|
+
_overrode_ the setter to run the caller check first — one guard in three copies, sitting in front of
|
|
925
|
+
an unguarded mixin whose own comment claimed the tokens carried no override. Nothing deployed was
|
|
926
|
+
vulnerable, but a fourth edition type that simply inherited the mixin would have shipped an
|
|
927
|
+
unauthenticated `setTransferValidator`, which decides whether collectors' tokens can move at all.
|
|
928
|
+
|
|
929
|
+
The guard now runs in the mixin, the overrides are gone, and the function is no longer `virtual` —
|
|
930
|
+
so the arrangement is enforced by the compiler rather than by a comment. A dead
|
|
931
|
+
`_requireMinterOrOwner` in `ExternalMinter`, whose NatSpec wrongly advertised it as the mint-time auth
|
|
932
|
+
check (the real one also enforces `paused()`), is deleted in the same pass.
|
|
933
|
+
|
|
934
|
+
**Both changes are source-only** — the compiled runtime bodies are byte-identical before and after,
|
|
935
|
+
measured across all ten affected artifacts. Only the metadata hash differs, and since that is part of
|
|
936
|
+
the initcode, the CREATE2 addresses move. Five factories and their implementations are redeployed and
|
|
937
|
+
re-verified on Sepolia and Base Sepolia: `SeriesImageFactory`, `SeriesCodeFactory`,
|
|
938
|
+
`OneOfOneEditionFactory`, `EditionImageFactory`, `EditionCodeFactory`. Everything else — the 1/1 image
|
|
939
|
+
factory, all four libraries, the renderer, chunk store, seed source, both minters, both generators —
|
|
940
|
+
keeps its address.
|
|
941
|
+
|
|
942
|
+
Projects deployed from the superseded factories keep working, but `abx` will report their anchor as
|
|
943
|
+
an older version. Redeploy from the anchors in the refreshed manifest.
|
|
944
|
+
|
|
945
|
+
### Patch Changes
|
|
946
|
+
|
|
947
|
+
- 1b6b741: Externalize the code-custody READ surfaces into `AbxCodeLib` — B22 step 2, buying back the bytes the ERC-4906 audit fix spent
|
|
948
|
+
|
|
949
|
+
The audit remediation that made `OnChainMetadata`'s field writes emit ERC-4906 (closing a real finding:
|
|
950
|
+
that surface mutated `tokenURI` silently, so a correct indexer served the pre-edit document forever) cost
|
|
951
|
+
~96 B per token, and `SeriesCode` and `EditionCode` had no room for it — both fell under the 150 B EIP-170
|
|
952
|
+
floor `contracts/test/CodeSize.t.sol` guards. That is precisely the trigger condition `docs/10-backlog.md`
|
|
953
|
+
B22 was written for, and step 2 was the prescribed answer.
|
|
954
|
+
|
|
955
|
+
The `IAbxOnChainScript` and `IAbxDependencies` view bodies now live in `AbxCodeLib`, next to the write
|
|
956
|
+
paths that were already there — `scriptChunkCount`/`scriptChunk`/`scriptLocked` and
|
|
957
|
+
`dependencyCount`/`dependencyByIndex`/`dependencyRegistry`/`dependenciesLocked`. The mixins keep the
|
|
958
|
+
functions (same signatures, same ABI, same ERC-165 ids) as **raw-calldata passthroughs** through a new
|
|
959
|
+
shared `AbxCodeDelegate` base, which forwards the call's exact calldata to the library and returns the
|
|
960
|
+
return data untouched. Storage still resolves in the token's own ERC-7201 namespaces and events still log
|
|
961
|
+
from the token — that is what `delegatecall` buys.
|
|
962
|
+
|
|
963
|
+
Raw, not typed, on purpose: B22 step 1 measured a _typed_ shell (`return AbxCodeLib.f(...)`) **growing**
|
|
964
|
+
the token by ~855 B, because decoding the library's return value and re-encoding it at the call site costs
|
|
965
|
+
more than the extracted body saves. The same mistake was made again during this remediation, on
|
|
966
|
+
`setTokenField`/`setContractField`, and reverted. The price of the raw form is that `AbxCodeLib`'s read
|
|
967
|
+
signatures are now part of every composing token's external ABI — same signature ⇒ same selector is the
|
|
968
|
+
whole mechanism — so they must track the interfaces verbatim; both the library and the mixins now say so.
|
|
969
|
+
|
|
970
|
+
EIP-170 margins, before → after:
|
|
971
|
+
|
|
972
|
+
| contract | before | after | floor |
|
|
973
|
+
| ------------- | ------ | ------- | ----- |
|
|
974
|
+
| `SeriesCode` | 125 | **529** | 150 |
|
|
975
|
+
| `EditionCode` | 132 | **507** | 150 |
|
|
976
|
+
|
|
977
|
+
`AbxCodeLib` grew 3,905 → 4,961 B and still has ~19.6 KB to spare. Nothing else moved: `OnChainScript` and
|
|
978
|
+
`Dependencies` are composed **only** by `SeriesCode` and `EditionCode`, and both already linked
|
|
979
|
+
`AbxCodeLib`, so no contract gained a library dependency and the other four tokens are byte-identical.
|
|
980
|
+
|
|
981
|
+
No behavior change and no ABI change — the read signatures, return types, mutability, ERC-165 ids and the
|
|
982
|
+
`ScriptIndexOutOfRange`/`DependencyIndexOutOfRange` error selectors are all preserved (the errors stay
|
|
983
|
+
declared on the mixins so they remain in each token's ABI, and now revert from the library's
|
|
984
|
+
identically-named, identically-selectored twin). This does move the implementation bytecode, so it rides
|
|
985
|
+
the redeploy this remediation already requires: `AbxCodeLib`, both code tokens, and their factories (and
|
|
986
|
+
therefore the factory trust anchors) all get new addresses.
|
|
987
|
+
|
|
988
|
+
- 1b6b741: CREATE2 for library deployments, as the standard process — and delete the false belief that said it was impossible
|
|
989
|
+
|
|
990
|
+
An audit found that two ERC-1155 token types were held library-free, and an EIP-170 size floor relaxed, on
|
|
991
|
+
the recorded belief that linking a delegatecalled library costs a factory its CREATE2-deterministic address.
|
|
992
|
+
That belief is false, and the committed broadcast artifacts always refuted it: every recorded library deploy
|
|
993
|
+
went through the keyless CREATE2 proxy, `AbxParamsLib` landed at ONE address on Sepolia and Base Sepolia
|
|
994
|
+
from deployer nonces **215 apart** (a nonce is not an input to a CREATE2 address), and both library-linked
|
|
995
|
+
factories have held chain-identical addresses across four deploy generations.
|
|
996
|
+
|
|
997
|
+
What was true was narrower and self-inflicted: `deploy.ts` deployed its libraries with `send({to: null})` —
|
|
998
|
+
a plain EOA `CREATE` — **by its own choice**, so _it_ could not predict them. `create2.ts` and both code
|
|
999
|
+
factory deploy functions then wrote that local limitation up as a property of libraries in general, and the
|
|
1000
|
+
repo proceeded to contradict itself (`deployments.ts` and `reference/deployments.mdx` describe the correct
|
|
1001
|
+
mechanism a few files away).
|
|
1002
|
+
|
|
1003
|
+
The SDK now does what the docs already claimed:
|
|
1004
|
+
|
|
1005
|
+
- Both bootstraps (`deploySeriesCodeFactory`, `deployEditionCodeFactory`) deploy every write-path library
|
|
1006
|
+
through the keyless proxy at the canonical `AbxSalts` salts — `abx.lib.params.v1`, `abx.lib.code.v1`,
|
|
1007
|
+
`abx.lib.edition.v1`, mirrored in `ABX_SALT` and pinned against `AbxSalts.sol` by a new test — and then
|
|
1008
|
+
CREATE2 the linked factory at its own salt. **An SDK-bootstrapped chain and a forge-bootstrapped chain now
|
|
1009
|
+
produce identical addresses** (verified: the SDK's predictions equal what
|
|
1010
|
+
`DeployLibraries.s.sol --sig 'predict()'` prints).
|
|
1011
|
+
- Idempotent, out of necessity rather than politeness: the proxy _reverts_ on an occupied address, so a
|
|
1012
|
+
library already on-chain is linked against instead of redeployed — which is also what makes a partially
|
|
1013
|
+
bootstrapped chain recoverable by re-running.
|
|
1014
|
+
- New: `predictParamsLib`, `predictCodeLib`, `predictEditionLib`, `predictSeriesCodeFactory`,
|
|
1015
|
+
`predictEditionCodeFactory`, plus exported `libPlaceholder` / `linkLibraries` / `LIB_FQN`. Both code
|
|
1016
|
+
factories therefore gained the CREATE2 self-heal every other canonical anchor has — and need no version
|
|
1017
|
+
probe for it, because code at a CREATE2 address is bytecode-bound to the build that predicted it.
|
|
1018
|
+
|
|
1019
|
+
**Fixes a real crash on the way past.** `deployEditionCodeFactory` could not succeed at all: it deployed
|
|
1020
|
+
`abxEditionLibBytecode` raw, but `AbxEditionLib` itself delegatecalls `AbxParamsLib`, so its shipped
|
|
1021
|
+
bytecode carries an unlinked `__$…$__` placeholder — not hex, so the RPC rejected it with an opaque
|
|
1022
|
+
`Invalid byte sequence`. The old guard only checked the _factory's_ bytecode, never the library's. The
|
|
1023
|
+
library is now linked before it is deployed, and `linkLibraries` throws with the offending placeholder named.
|
|
1024
|
+
|
|
1025
|
+
**The trap that IS real, now written down** (`create2.ts`, `reference/deployments.mdx`): a library's address
|
|
1026
|
+
is a function of its creation bytecode, so build settings move it. Linking _after_ compilation — substituting
|
|
1027
|
+
into solc's placeholder, what forge's automatic linking and the SDK both do — cannot change that bytecode.
|
|
1028
|
+
Handing solc the addresses at build time (`--libraries src/…:Lib:0x…`) writes the map into
|
|
1029
|
+
`settings.libraries` in every artifact's metadata, and the metadata hash is appended to the creation
|
|
1030
|
+
bytecode: measured here, that moves the library's own address and the linked factory's initcode. Optimizer
|
|
1031
|
+
profile does the same (the code tokens compile at 200 runs). Both failures are invisible until two chains
|
|
1032
|
+
disagree, so the docs now say to compare `predict()` against the SDK's predictions rather than assume.
|
|
1033
|
+
|
|
1034
|
+
Docs and specs swept for the old claim: `reference/deployments.mdx` (the salts, and a "libraries go first"
|
|
1035
|
+
bootstrap step naming `DeployLibraries.s.sol` and its `predict()` dry run), `reference/contracts.mdx`
|
|
1036
|
+
(`AbxEditionLib` was missing from the library taxonomy entirely), `reference/sdk.mdx`,
|
|
1037
|
+
`specs/self-host-toolkit/deployment.md`, and the `abx-self-host` skill's code-projects reference. No
|
|
1038
|
+
addresses were invented: nothing is redeployed yet, and the two manifest-drift tests still stand as the
|
|
1039
|
+
detectors waiting on it.
|
|
1040
|
+
|
|
1041
|
+
- 1b6b741: Stop promising immutability the locks don't deliver — and name the residual owner powers in one place
|
|
1042
|
+
|
|
1043
|
+
**The claim that was wrong.** With the field lock, URI lock, contract-URI lock, script lock and
|
|
1044
|
+
dependency lock _all_ engaged, the rendered output can still change, two ways. **Params have no lock at
|
|
1045
|
+
all** — they aren't fields, so no field lock reaches them, and the renderer projects the whole enumerated
|
|
1046
|
+
set into `tokenURI` as `abx_params` (a program reads the same set as `tokenData`). And a
|
|
1047
|
+
**`Resolution.Registry` dependency is re-fetched from the registry contract on every read** —
|
|
1048
|
+
`lockDependencies` freezes the ref and the registry pointer, not another contract's storage. `abx verify`
|
|
1049
|
+
reported `chain-complete` on both sides of a registry swapping its library bytes, and the CLI was telling
|
|
1050
|
+
people "a fully immutable code drop is lock-script + lock-dependencies + lock-field/lock-uri".
|
|
1051
|
+
|
|
1052
|
+
Every unqualified verdict is now qualified rather than deleted, because locking a pointer _is_ part of the
|
|
1053
|
+
story: `lock-uri`, `lock-script` and `lock-dependencies` narration, their `--help` entries, `abx verify`'s
|
|
1054
|
+
chain-complete pass (which now says the flag describes **where** bytes come from, not that they're frozen),
|
|
1055
|
+
`GeneratorStatus.chainComplete`'s doc comment, the `lockScript` SDK docs, `protocol/metadata`,
|
|
1056
|
+
`protocol/params`, `protocol/code-projects`, `reference/cli`, the operate guide, `specs/protocol/*`, and the
|
|
1057
|
+
skill's SKILL.md · `reference/decisions.md` · `reference/code-projects.md` · `reference/operating.md`. The
|
|
1058
|
+
line the toolkit now gives a creator is **"your metadata is locked"**, with the stronger claim reserved for
|
|
1059
|
+
a project whose graph is on-chain `0x…` deps plus locked fields. Stated once per place the decision is made,
|
|
1060
|
+
not restated everywhere.
|
|
1061
|
+
|
|
1062
|
+
Framed as a capability as well as a caveat: a token that _deliberately_ live-adapts to on-chain conditions
|
|
1063
|
+
is a legitimate and interesting thing to build, and it's the same mechanism that makes it possible.
|
|
1064
|
+
|
|
1065
|
+
**New page: [What a project owner can do](https://abx.docs.artblocks.io/protocol/owner-powers/).** There was
|
|
1066
|
+
nowhere a collector could read what powers the creator retains. It states both halves plainly, with the read
|
|
1067
|
+
for each. What an owner **can** do: re-point or suspend an enrolled 721C/1155C transfer validator (and block
|
|
1068
|
+
transfers entirely with one that reverts — though if they renounce ownership, anyone may suspend it and
|
|
1069
|
+
nobody can re-arm it); change price, payee, allocation and pause on a live sale with no timelock; keep
|
|
1070
|
+
receiving primary-sale proceeds after selling the project, because `primaryPayee` doesn't move on
|
|
1071
|
+
`transferOwnership`; mint reserves outside the minter's allocation, since assigning a minter grants the whole
|
|
1072
|
+
remaining cap rather than a slice; change royalty receiver and bps forever; re-point metadata subject to the
|
|
1073
|
+
locks above; swap the seed source; reassign a token's seed _iff_ a `seed` schema was declared before the
|
|
1074
|
+
collection's first seed existed; and walk away. What they provably **cannot** do: take a buyer's funds beyond
|
|
1075
|
+
the terms that buyer signed for (`purchase`/`purchaseTo` require `expectedPaymentToken` and a maximum, and
|
|
1076
|
+
revert `SaleTermsChanged`); exceed a supply or per-id edition cap; rewrite or clear a settled seed; reach
|
|
1077
|
+
another project through any shared singleton (the renderer and chunk store hold no storage, the generator's
|
|
1078
|
+
wiring is `immutable` with no setters, the seed source is a stateless view namespaced by caller, and the
|
|
1079
|
+
minters key everything per token and hold no funds); or take a token out of a collector's wallet — there is no
|
|
1080
|
+
owner-only transfer, burn, or clawback anywhere in the protocol.
|
|
1081
|
+
|
|
1082
|
+
Framing, deliberately: ABX is self-serve, the creator is a privileged role, the protocol's job is to keep
|
|
1083
|
+
that role away from a collector's funds and tokens, and the residual powers are disclosed so a collector can
|
|
1084
|
+
price them. Not an accusation — a creator who destroys their own collection has destroyed what they were paid
|
|
1085
|
+
for. The point is that "trust me" should be optional.
|
|
1086
|
+
|
|
1087
|
+
- 1b6b741: Gate on-chain content by what a node will READ, not by what it costs to write
|
|
1088
|
+
|
|
1089
|
+
The documented on-chain envelope — ≲24 KB/file, ≲256 KB/project — was a _storage-cost_ figure sold as a
|
|
1090
|
+
support envelope, and the CLI's only loud warning fired on the project total. Measurement says the
|
|
1091
|
+
binding constraint is somewhere else entirely: **`tokenURI` reassembles the whole document on every
|
|
1092
|
+
call**, and that cost is **superlinear** — EVM memory expansion is quadratic, so the per-KB rate climbs
|
|
1093
|
+
with size. Across the 10–100 KB range that decides most projects it measures **~360,000–405,000 gas per
|
|
1094
|
+
KB**, rising to ~460,000/KB at 187 KB and ~510,000/KB at 256 KB. `inline` and `reader` land within ~1% of
|
|
1095
|
+
each other up to 75 KB (the cost is the renderer's string building, not the storage mechanism) and
|
|
1096
|
+
diverge above it (~5% at 187 KB, ~10% at 256 KB, as the chunk store's quadratic read loop takes over), so
|
|
1097
|
+
`--compress fastlz` makes a field cheaper to write and not one gas cheaper to read.
|
|
1098
|
+
|
|
1099
|
+
Measured with `forge` (`OneOfOneImage` + `AbxMetadataRenderer`, callee execution gas for one `tokenURI`
|
|
1100
|
+
call, `reader` staging at 22,000-byte chunks):
|
|
1101
|
+
|
|
1102
|
+
| on-chain content | `tokenURI` gas | per KB | | on-chain content | `tokenURI` gas | per KB |
|
|
1103
|
+
| ---------------- | -------------- | ------- | --- | ---------------- | -------------- | ------- |
|
|
1104
|
+
| 3 KB | 1,123,327 | 374,000 | | 100 KB | 40,254,159 | 403,000 |
|
|
1105
|
+
| 10 KB | 3,588,993 | 359,000 | | 128 KB | 53,559,735 | 418,000 |
|
|
1106
|
+
| 23 KB | 8,346,220 | 363,000 | | 187 KB | 86,021,071 | 460,000 |
|
|
1107
|
+
| 40 KB | 14,740,366 | 369,000 | | 256 KB | 131,269,134 | 513,000 |
|
|
1108
|
+
| 50 KB | 18,759,333 | 375,000 | | | | |
|
|
1109
|
+
| 75 KB | 29,137,215 | 388,000 | | | | |
|
|
1110
|
+
| 90 KB | 35,868,124 | 399,000 | | | | |
|
|
1111
|
+
|
|
1112
|
+
geth's `--rpc.gascap` defaults to 50M, hosted providers commonly cap lower, and L1 block limits sit in
|
|
1113
|
+
the mid-30-millions — so a project at the _documented_ ceiling could not be read by a normal node, and
|
|
1114
|
+
from ~90 KB (~36M gas) up no contract can read it inside a transaction at all. Note what the 100 KB
|
|
1115
|
+
refusal is: a **margin**, not the wall. 100 KB reads at ~40M, and geth's own 50M default is not
|
|
1116
|
+
exhausted until ~120 KB; the refusal sits early because hosted providers cap well below geth.
|
|
1117
|
+
|
|
1118
|
+
The gate now sits on that axis, per token (each `tokenURI` assembles only its own content, so a
|
|
1119
|
+
300-piece collection of 5 KB works is fine while one 256 KB work is not):
|
|
1120
|
+
|
|
1121
|
+
- **from ~40 KB — warn.** Reads need a deliberately high-gas RPC.
|
|
1122
|
+
- **past ~100 KB — refuse**, with `--allow-unreadable-onchain` as the override. The refusal names the
|
|
1123
|
+
three ways forward and says plainly what the override accepts: rendering needs a high-gas endpoint and
|
|
1124
|
+
most marketplaces and indexers will show nothing. It fires on the **dry run** too, so a creator meets it
|
|
1125
|
+
before spending gas rather than after the first staging transaction.
|
|
1126
|
+
|
|
1127
|
+
Live on every path that puts bytes on-chain: `deploy --onchain-image`, `deploy-series --onchain-image`,
|
|
1128
|
+
both `--copies` edition twins, and `set-field --file`. New in the SDK: `classifyOnchainReadSize`,
|
|
1129
|
+
`tokenUriGasEstimate` (fitted to the measurements, so it tracks the superlinearity instead of
|
|
1130
|
+
multiplying by a flat rate), `TOKEN_URI_GAS_PER_KB_LOW` / `TOKEN_URI_GAS_PER_KB_HIGH` (the measured
|
|
1131
|
+
10–100 KB envelope — there is deliberately no single flat `TOKEN_URI_GAS_PER_KB`, because there is no
|
|
1132
|
+
single rate), `ONCHAIN_READ_WARN_BYTES`, `ONCHAIN_READ_REFUSE_BYTES`, `ONCHAIN_READ_GETH_CAP_BYTES`
|
|
1133
|
+
(where geth's 50M default actually runs out, so the refusal can be described as the margin it is)
|
|
1134
|
+
(`exceedsOnchainSoftLimit` stays, now documented as the _write_-cost predicate it always was). The
|
|
1135
|
+
whole-collection 256 KB warning stays as well, relabelled as write cost only, since it never said
|
|
1136
|
+
anything about readability.
|
|
1137
|
+
|
|
1138
|
+
Two things deliberately not done. **No on-chain guard and no gas check** — a read happens off-chain, a
|
|
1139
|
+
read too large for one node is an RPC-capability problem, and bricking a contract is worse than needing a
|
|
1140
|
+
capable endpoint. And the **code lane still only warns**, at the same 40 KB threshold and now quoting the
|
|
1141
|
+
gas figure: `abx inspect`'s document size is an estimate that undercounts unknown dependencies, and a
|
|
1142
|
+
registry-hosted library like p5 is legitimately ~200 KB, so the honest move there is to name the cost and
|
|
1143
|
+
point at the generator's piecewise getters (`document`, `tokenDataJson`, `dependencyTag`, `abxJs`,
|
|
1144
|
+
`gunzipScript`, `registryScriptChunk`) rather than block a shipped lane on a heuristic. Those getters are
|
|
1145
|
+
now in the SDK's generator ABI, which claimed to carry "the piecewise reads" while omitting three of them.
|
|
1146
|
+
|
|
1147
|
+
The docs and the `abx-self-host` skill were swept in the same pass: `protocol/onchain-storage` carries the
|
|
1148
|
+
measured table and the corrected envelope, `protocol/code-projects` gains a piecewise-read section, and
|
|
1149
|
+
the skill's Quick start and `reference/decisions.md` lead with "40 KB is the number, not 256 KB" plus the
|
|
1150
|
+
rule that the override is a creator's deliberate choice and never a way to clear a warning.
|
|
1151
|
+
|
|
1152
|
+
- 1b6b741: Round-3 audit remediation: link the two ERC-1155 image anchors, and stop guarding by name
|
|
1153
|
+
|
|
1154
|
+
`EditionImage` and `OneOfOneEdition` became library-linked in the previous round, but neither the
|
|
1155
|
+
SDK nor the forge scripts were updated. `predictEditionFactory()` and
|
|
1156
|
+
`predictOneOfOneEditionFactory()` hashed **unlinked** bytecode — and viem does not reject a
|
|
1157
|
+
`__$…$__` placeholder, it UTF-8-encodes it, so both returned a confident hash of ASCII garbage for
|
|
1158
|
+
a trust anchor, and `ops.ts` would have broadcast that bytecode as initcode. Both now link
|
|
1159
|
+
`AbxEditionLib` (itself linked against `AbxParamsLib`) and ensure the libraries exist first.
|
|
1160
|
+
|
|
1161
|
+
Two addresses move as a result: `EditionImageFactory` and `OneOfOneEditionFactory`. Both are
|
|
1162
|
+
pre-launch and pending the redeploy gate.
|
|
1163
|
+
|
|
1164
|
+
This was the third instance of one bug class, and the existing guard missed it because it checked
|
|
1165
|
+
two factories **by name**. The replacement is exhaustive by construction: it reverse-looks-up which
|
|
1166
|
+
initcode each `predict*` actually hashed, drives every `prepareDeploy*` and every `deploy*`
|
|
1167
|
+
orchestrator against a stub chain, and asserts no `__$` placeholder survives anywhere — so the next
|
|
1168
|
+
library-linked contract is covered without anyone remembering to add it.
|
|
1169
|
+
|
|
1170
|
+
Also: every SDK deploy now goes through CREATE2 at a canonical salt (the 1/1 and Series anchors were
|
|
1171
|
+
still plain `CREATE`, landing at nonce-dependent addresses that could never match the manifest), and
|
|
1172
|
+
the CLI no longer tells creators an ERC-1155 edition emits no ERC-4906 — both lanes emit it now.
|
|
1173
|
+
|
|
1174
|
+
- 1b6b741: The param transfer hook is a veto, not best-effort — say so everywhere, and ship the lock that answers it
|
|
1175
|
+
|
|
1176
|
+
The transfer hook used to swallow its own revert, and every surface promised that the parameter
|
|
1177
|
+
lifecycle "must never block a transfer". That promise could not be kept, so it is withdrawn rather than
|
|
1178
|
+
restated: Solady runs the ERC-721/1155 **receiver acceptance check after the hook**, so on the `safe*`
|
|
1179
|
+
variants — which marketplace fills wrap — a hook that is cheap when a wallet estimates gas and expensive
|
|
1180
|
+
when the transfer lands starves the work that comes after it, with or without a gas cap. Swallowing
|
|
1181
|
+
bought a guarantee that was false in exactly the cases people use, while making an honest hook's failure
|
|
1182
|
+
invisible.
|
|
1183
|
+
|
|
1184
|
+
So the contract now calls the hook plainly (no swallow, no gas budget, no assembly), **its revert fails
|
|
1185
|
+
the transfer**, and — because a mint and a burn are transfers from/to `0x0` — a reverting hook also stops
|
|
1186
|
+
minting for that project, including through the shared minter. That is deliberate: a hook is always the
|
|
1187
|
+
creator's own contract, which is why it may block issuance while the transfer _validator_, usually a
|
|
1188
|
+
third party's, never sees mint or burn.
|
|
1189
|
+
|
|
1190
|
+
The mitigation is a lock, and it is now reachable end to end:
|
|
1191
|
+
|
|
1192
|
+
- **SDK** — `prepareLockParamHooks({contract, chainId})`, the sibling of `prepareLockScript` /
|
|
1193
|
+
`prepareLockDependencies`. Plus two reads: `readParamHooks` (the trio) and `readParamHooksLocked`,
|
|
1194
|
+
which establishes the freeze without a getter by simulating `setParamHooks` with the current trio and
|
|
1195
|
+
watching for `ParamHooksLocked` — and returns `undefined`, never a cheerful `false`, when a node won't
|
|
1196
|
+
answer.
|
|
1197
|
+
- **CLI** — `abx lock-param-hooks <address>`. Owner-only, one-way, every signing lane, `--dry-run`
|
|
1198
|
+
guarded. It prints the exact three addresses it will freeze, states what is given up (arming a
|
|
1199
|
+
transfer veto, arming a configure veto, re-pointing or clearing the augment hook) and that there is no
|
|
1200
|
+
way back, and distinguishes the two cases: freezing an **empty** set is how a project _proves_ it can
|
|
1201
|
+
never arm a transfer veto, while freezing a set that already contains a hook pins which contracts can
|
|
1202
|
+
run — it does not disarm them.
|
|
1203
|
+
- **`abx state`** now prints the three hooks and whether they are frozen, next to the transfer validator,
|
|
1204
|
+
because that pair is the read a buyer performs. `abx verify` warns on an armed-but-unfrozen transfer
|
|
1205
|
+
hook. `abx set-param-hooks` states the veto at the moment a transfer hook is armed.
|
|
1206
|
+
- **Reconstruction** — `ParamHooksFrozen` folds into `ProjectState.paramHooks.locked`. The event is
|
|
1207
|
+
declared only by `AbxParamsLib`, so `spineEventAbi` now unions that ABI (its other events dedup away):
|
|
1208
|
+
without it the one-way lock on a hook that can veto a transfer was invisible to every consumer that
|
|
1209
|
+
folds the spine.
|
|
1210
|
+
|
|
1211
|
+
Swept for the withdrawn promise: `protocol/params` (which gained a section on why it died),
|
|
1212
|
+
`protocol/owner-powers` (the hook is now on **both** lists — an unlocked hook set as a live power, a
|
|
1213
|
+
frozen one as a guarantee), `specs/protocol/event-spine`, `specs/protocol/user-stories`, the spine event
|
|
1214
|
+
doc strings, and the `abx-self-host` skill (`SKILL.md`'s lock bullet plus the operating and code-project
|
|
1215
|
+
references). No surface still says "best-effort", "reverts are swallowed", or "never blocks a transfer",
|
|
1216
|
+
and a CLI test now fails if one comes back.
|
|
1217
|
+
|
|
1218
|
+
- 1b6b741: Transfer validator: preflight what the chain actually refuses, and stop calling `setTransferValidator` owner-only
|
|
1219
|
+
|
|
1220
|
+
Two corrections, both in the direction that was costing someone something.
|
|
1221
|
+
|
|
1222
|
+
**The preflight was a bare `getCode`, and the chain's check is not.** `validateTransfer` returns nothing,
|
|
1223
|
+
so there is no ABI decode to fail — which means any address whose fallback succeeds for an unknown
|
|
1224
|
+
selector passes a has-code check and then waves **every** transfer through, while ERC-165,
|
|
1225
|
+
`getTransferValidator()` and the extension beacon all report enforcement as ON. A Safe does exactly this
|
|
1226
|
+
(`FallbackManager.fallback()` returns empty when no handler is set), as do an uninitialised proxy and a
|
|
1227
|
+
7702-delegated EOA, and a creator pasting their own Safe is the likely real case. The contract's guard was
|
|
1228
|
+
rewritten to probe with a selector no validator implements and require it to **fail**; the toolkit now
|
|
1229
|
+
asks the same question, with the same selector, through the new SDK `probeTransferValidator` (verdicts:
|
|
1230
|
+
`ok` · `no-code` · `permissive-fallback` · `unreachable`). Both call sites use it — `abx
|
|
1231
|
+
set-transfer-validator` and `deploy --721c` — so a creator gets a refusal that names what is actually
|
|
1232
|
+
wrong instead of passing the CLI and reverting on chain against an error whose documented meaning ("no
|
|
1233
|
+
code on this chain") was false for their address.
|
|
1234
|
+
|
|
1235
|
+
**`setTransferValidator` is owner-only only while there is an owner.** Once `owner() == address(0)`
|
|
1236
|
+
**anyone** may suspend enforcement by passing `address(0)`, and nobody may ever arm a validator again —
|
|
1237
|
+
the dead-man release for a validator that reverts every transfer on a collection with nobody left to
|
|
1238
|
+
re-point it, which would otherwise strand every collector's token permanently. Four surfaces still said
|
|
1239
|
+
owner-only, and the SDK's was wrong in the direction that matters: an integrator reading it would refuse
|
|
1240
|
+
to build the suspension a stranded holder needs. Corrected in `creator-token.ts` (module header plus
|
|
1241
|
+
`prepareSetTransferValidator`), `protocol/royalty-enforcement`, `protocol/interfaces`, and
|
|
1242
|
+
`specs/protocol/interfaces`, each stating the asymmetry: an ownerless collection can only ever be moved
|
|
1243
|
+
_toward_ transferability, so this hands a stranger no power over a live project.
|
|
1244
|
+
|
|
1245
|
+
## 0.1.0-alpha.13
|
|
1246
|
+
|
|
1247
|
+
### Patch Changes
|
|
1248
|
+
|
|
1249
|
+
- 528c6c6: ERC-1155 editions: the trust-anchor and on-chain-URI checks told the truth about 721s only, and four
|
|
1250
|
+
membrane gaps around them (2026-08-05 wave-4 agent sweep — 12 cold agents, one funded end-to-end run
|
|
1251
|
+
on Base Sepolia).
|
|
1252
|
+
|
|
1253
|
+
The 1155 contracts themselves were fine: a funded run took an edition from deploy through
|
|
1254
|
+
`tokenuri` → mint more copies → transfer one copy → lower the per-id cap, verifying every step
|
|
1255
|
+
against the chain. What shipped wrong was everything that _describes_ an edition.
|
|
1256
|
+
|
|
1257
|
+
- **`abx verify` reported EVERY canonical edition as `canonical: NO`.** `detectCanonicalFactory`
|
|
1258
|
+
probed only the three 721 anchors and, on no match, fell back to the 721 1/1 factory — whose
|
|
1259
|
+
`isAbxClone` answers **false**, not "unknown". So the one signal platforms allowlist against was
|
|
1260
|
+
confidently inverted for the entire edition line (the function's own docstring promised
|
|
1261
|
+
"canonicity just shows unverified, never wrong"). All six anchors are now probed. **Editions
|
|
1262
|
+
registered before this fix keep the wrong factory in the local projection** — `abx forget <addr>`
|
|
1263
|
+
then `abx add <addr>` re-detects it.
|
|
1264
|
+
- **`abx verify`'s on-chain-URI probe called the ERC-721 `tokenURI` selector on editions**, which
|
|
1265
|
+
exposes `uri(id)`. It reverted for every edition, so verify could never confirm that a
|
|
1266
|
+
fully-on-chain edition resolves — and it printed the raw multi-line viem dump (Contract Call /
|
|
1267
|
+
args / Docs / Version) into a creator-facing readout. The probe now switches on `contractType`
|
|
1268
|
+
(matching `reconstruct.ts`, which already did), reports which accessor it read so an edition is
|
|
1269
|
+
never described in 721 terms, and readout errors are trimmed to their first line.
|
|
1270
|
+
- **An address with no contract was reported as a specific type: `OneOfOneImage`.**
|
|
1271
|
+
`detectTokenKind`'s three probes are each `try/catch → false`, so nothing-deployed and
|
|
1272
|
+
no-extensions-composed were indistinguishable and the ladder fell through to its `1of1` default.
|
|
1273
|
+
`abx set-max-supply` and `abx minter buy` then told edition owners _"…is a OneOfOneImage (721) —
|
|
1274
|
+
drop your edition flags"_ for a mistyped address or, far more often, the wrong `ABX_CHAIN` (the
|
|
1275
|
+
default is base-sepolia, so any Sepolia contract hit this immediately) — advice that removes the
|
|
1276
|
+
_correct_ flags. The existence check now lives inside `detectTokenKind`, so all 13 call sites
|
|
1277
|
+
inherit it; it fails **open** on an unreadable `getCode`, so an RPC blip never becomes a
|
|
1278
|
+
"no contract" claim.
|
|
1279
|
+
- **`abx transfer --token-id <n>` silently transferred id 0.** `transfer` spells the id `--token`
|
|
1280
|
+
while every sibling command (`mint`, `set-max-supply`, `minter …`) spells it `--token-id`, and an
|
|
1281
|
+
unrecognized flag was simply ignored — so an agent that learned the name from `mint` moved the
|
|
1282
|
+
**wrong artwork** with no warning. `--token-id` is now an accepted alias; disagreeing values are
|
|
1283
|
+
refused rather than silently preferring one.
|
|
1284
|
+
- **The edition deploy previews dropped lines their 721 twins print.** All three edition lanes
|
|
1285
|
+
omitted `approvals N wallet approval(s)` from the dry-run readout — which the skill promises "every
|
|
1286
|
+
preview" prints and tells the agent to state up front, so on an edition the agent had nothing to
|
|
1287
|
+
tell the creator about how many wallet prompts were coming (`deploy-code --copies` had it only in
|
|
1288
|
+
the `--confirm` sentence, which is off by default). `deploy --copies` and `deploy-series --copies`
|
|
1289
|
+
also omitted the "resolves ON-CHAIN via the renderer — no resolver, no server" line, which is
|
|
1290
|
+
precisely the guarantee an edition creator is asking about, and `deploy-series --copies` never
|
|
1291
|
+
showed `paused`. All six lanes now print the approval count; the 1155 paths say `uri()`.
|
|
1292
|
+
- **Owner-op writes now surface a stray flag instead of swallowing it.** `mint`, `transfer`,
|
|
1293
|
+
`set-max-supply`, and `minter configure|show|buy` warn on an unrecognized flag (warn, not refuse —
|
|
1294
|
+
per `unknownFlags`' contract, a false warning must never break a script). These are the commands
|
|
1295
|
+
where the 1155 semantics live in _optional_ flags that default rather than fail: a typo'd
|
|
1296
|
+
`--amount 50` minted 1 copy and a typo'd `--quantity 5` bought 1 and paid 1×, both in total
|
|
1297
|
+
silence. The broader gap — ~35 commands with no unknown-flag notice at all — is filed as B30.
|
|
1298
|
+
|
|
1299
|
+
A second verification sweep (six more cold agents, one funded) confirmed each fix above from a fresh
|
|
1300
|
+
start and turned up four more, all fixed here:
|
|
1301
|
+
|
|
1302
|
+
- **A supply cap could be raised in `--dry-run` and only revert on send.** Both twins —
|
|
1303
|
+
`set-max-invocations` (721) and `set-max-supply` (1155) — printed the new cap as fact for a value
|
|
1304
|
+
the chain forbids, then reverted for real. A clean dry run is read as permission to send. Both now
|
|
1305
|
+
read the current cap first and refuse up front; the 1155 side also refuses a cap **below** live
|
|
1306
|
+
supply (the second way it reverted). Both guards fail **open** on an unreadable getter, since the
|
|
1307
|
+
chain enforces the invariant anyway. (The 721 guard needed the Series ABI — reading `maxInvocations`
|
|
1308
|
+
through the 1/1 ABI that `read()` uses throws, which would have made the guard silently never fire.)
|
|
1309
|
+
- **`abx refresh` told edition owners ERC-4906 had already pinged marketplaces.** An ERC-1155 edition
|
|
1310
|
+
emits no ERC-4906 at all — that is precisely why `ping-uri` exists — so the one sentence a creator
|
|
1311
|
+
reads after editing metadata said "already handled" when nothing had been, and `ping-uri --help`
|
|
1312
|
+
said the opposite. Two commands contradicting each other on the new lane. `refresh` is now
|
|
1313
|
+
kind-aware and names `ping-uri` for editions.
|
|
1314
|
+
- **`abx verify` ended in two ⚠ on a perfectly healthy fully-on-chain image drop** — "generator
|
|
1315
|
+
reports NO code" and "no animation_url" — because the code-project lane runs whenever a tokenURI
|
|
1316
|
+
renderer is set, which is true for every on-chain project, image or code. A static image has no
|
|
1317
|
+
program and no `animation_url` by design. Three separate agents named this as the worst thing about
|
|
1318
|
+
`verify`, and one said plainly it would make a creator distrust future real warnings. The code-lane
|
|
1319
|
+
checks are now scoped to the code twins; a static drop gets one informational line instead. (This
|
|
1320
|
+
was pre-existing on the 721 path too, not an editions regression.)
|
|
1321
|
+
- **`EditionImage`'s SVG-only refusal was a thinner copy of its 721 twin's** — the Series version names
|
|
1322
|
+
three routes (`--onchain-image`, `--backend ipfs|arweave`, or host off-chain); the edition version
|
|
1323
|
+
said only "drop `--onchain-uri`". A cold agent asked for "3 artworks × 25 copies each" read that,
|
|
1324
|
+
concluded there was no no-server option for one contract, and **fanned the collection out into three
|
|
1325
|
+
separate single-artwork contracts**. The refusal now states the real options for the lane and says
|
|
1326
|
+
explicitly that the off-chain-image-URL-in-on-chain-JSON route exists only per-artwork via
|
|
1327
|
+
`abx deploy --copies` — one contract per artwork, not one collection. The underlying capability gap
|
|
1328
|
+
is recorded in B28.
|
|
1329
|
+
|
|
1330
|
+
One knock-on from the first fix: the `false` branch of the canonical readout said _"not a clone of the
|
|
1331
|
+
**configured** factory"_ (singular), which now understates the check and misdirects the reader — six
|
|
1332
|
+
anchors are probed, so a `false` means no trust anchor the CLI knows deployed this contract, and the
|
|
1333
|
+
usual real cause is a **superseded** factory or a hand-deployed contract, not a misconfiguration. It
|
|
1334
|
+
now says so, and points at `abx doctor` for the current anchors.
|
|
1335
|
+
|
|
1336
|
+
Also: `deploy --help` no longer calls the edition sale stack (`--minter`/`--primary-payee`/
|
|
1337
|
+
`--unpaused`) "required" — it is optional, and an agent handed a creator hardcoded addresses as
|
|
1338
|
+
mandatory because of it; `set-field --help` now lists all eleven `--representation` values (it showed
|
|
1339
|
+
seven, omitting `url-template`, `renderer`, `sha256`, `inline-gzip`); and `abx doctor`'s label column
|
|
1340
|
+
widened so `edition factory` no longer runs into its address.
|
|
1341
|
+
|
|
1342
|
+
The skill-drift ✗ now names **which** copy is stale and prescribes the command that actually clears
|
|
1343
|
+
it — `abx skill install` writes the project-local copy only, so a stale **global** copy produced a ✗
|
|
1344
|
+
whose own remedy could not fix it. Six agents hit it in one sweep; several re-ran the install
|
|
1345
|
+
repeatedly and one left its sandbox to read `~/.claude/skills` to work out what the tool meant.
|
|
1346
|
+
|
|
1347
|
+
## 0.1.0-alpha.12
|
|
1348
|
+
|
|
1349
|
+
### Minor Changes
|
|
1350
|
+
|
|
1351
|
+
- afa9dd4: ERC-1155 editions ship with full parity: a Series is many unique tokens (721); an **Edition** is
|
|
1352
|
+
many copies of a token (1155). The creator's word is **copies** — `abx deploy img.png --copies 100`
|
|
1353
|
+
(a single-artwork edition, `open` = uncapped), `abx deploy-series ./art --copies 50` (each image an
|
|
1354
|
+
edition), `abx deploy-code sketch.js --copies 25` (code editions). Without `--copies`, the 721
|
|
1355
|
+
lanes are unchanged.
|
|
1356
|
+
|
|
1357
|
+
Three new canonical contracts twin the 721 lineup — `OneOfOneEdition`, `EditionImage`,
|
|
1358
|
+
`EditionCode` — plus `AbxFixedPriceMinter1155`, a per-id fixed-price sale singleton
|
|
1359
|
+
(`minter configure/buy --token-id [--quantity]`). New owner ops: `mint --token-id --amount`,
|
|
1360
|
+
`transfer --amount`, `set-max-supply` (per-id cap, only ever decreases), `ping-uri` (re-emit the
|
|
1361
|
+
native `URI` event after a re-point). ERC-1155C creator-token enforcement is the same `--721c`
|
|
1362
|
+
opt-in (same validator registry and ERC-165 ids as 721C). Editions announce one new extension
|
|
1363
|
+
(`abx.extension.edition-supply`, per-id supply/cap); everything else — metadata fields, params,
|
|
1364
|
+
royalties, renderer, storage, effects — is the same protocol surface on both standards.
|
|
1365
|
+
|
|
1366
|
+
**Integrator surface (audience line):** additive only. `ProjectState.contractType` gains
|
|
1367
|
+
`'1of1-edition' | 'edition' | 'edition-code'`; `TokenState` gains `supply`/`maxSupply`/`holders`
|
|
1368
|
+
(editions only; `minted` means supply > 0 there); the spine ABI now decodes
|
|
1369
|
+
`TransferSingle`/`TransferBatch`/`URI`/`MaxSupplyUpdated`; `ChainDeployment` gains the four
|
|
1370
|
+
edition anchors (recorded for Sepolia + Base Sepolia, CREATE2-identical); token-api summaries gain
|
|
1371
|
+
an optional `copies` field. No existing export, route, column, or event shape changed.
|
|
1372
|
+
|
|
1373
|
+
- 8c254d5: The self-host projection no longer stores or pre-fetches composed URI documents, and the event log
|
|
1374
|
+
is append-only (from the abx-services 2026-08-05 projection memo, `docs/11`).
|
|
1375
|
+
|
|
1376
|
+
- **`contractURI`/`tokenURI` are live reads, never projected.** `reconstructProject`/
|
|
1377
|
+
`reconstructIncremental` gain `readUriDocuments` (default **false**) — with it off, the whole
|
|
1378
|
+
`contractURI`/`tokenURI` head-read batch is skipped entirely, not fetched-and-discarded. These
|
|
1379
|
+
fields have no settled value (a renderer can change the composed document with no log at all) and,
|
|
1380
|
+
on the on-chain lane, can run hundreds of KB per token — a real 32-token project measured 13.4 MB
|
|
1381
|
+
serialized, 99.8% of it `tokenURI`. A stale-but-rendering `data:` URI is worse than a missing one,
|
|
1382
|
+
because nothing about it looks wrong. `abx demo` is the one caller that passes `readUriDocuments:
|
|
1383
|
+
true`, for its read-back teaching step; `abx deploy`/`deploy-series`/`deploy-code` don't, and
|
|
1384
|
+
`abx verify`/`tokenuri`/`contracturi` were already doing independent live reads. **For
|
|
1385
|
+
integrators:** `ProjectState.contractURI` / `TokenState.tokenURI` are now `null` unless you opt in
|
|
1386
|
+
— including in a self-host node's `/api/project/:addr` responses (shape unchanged, values now
|
|
1387
|
+
null). Nothing that composes served metadata reads either field (the settled `fields`/
|
|
1388
|
+
`collectionFields` do); the settled scalars — `tokenURIRenderer`/`tokenURILocked`/
|
|
1389
|
+
`contractURIRenderer`/`contractURILocked` — are unaffected and still projected.
|
|
1390
|
+
- **The events table is append-only.** `seq` is now chain-derived (`(blockNumber << 32) |
|
|
1391
|
+
logIndex`, BigInt-safe) instead of the array index at write time, so it's stable across re-folds —
|
|
1392
|
+
a re-index appends via `ON CONFLICT DO NOTHING` instead of deleting and reinserting the whole
|
|
1393
|
+
history on every delta. `putProject` upserts the project and token rows in place (a token whose id
|
|
1394
|
+
vanishes from state is still removed) rather than delete-and-reinsert. `deregister` still deletes
|
|
1395
|
+
a forgotten project's events in full; a routine re-fold does not. **A full replay (`abx index
|
|
1396
|
+
--full`) purges the project's event log before rebuilding it** — append-only must not let a
|
|
1397
|
+
reorg-replaced event survive as a stale row, so the documented repair path stays a real repair.
|
|
1398
|
+
Existing stores migrate their positional `seq` values to the chain-derived form once, automatically
|
|
1399
|
+
(`PRAGMA user_version`-gated, transactional).
|
|
1400
|
+
- **Self-healing eventCount guard.** An incremental fold that would reduce `eventCount` below what's
|
|
1401
|
+
already stored is discarded rather than written, with one automatic full-reconstruct fallback (the
|
|
1402
|
+
memo's own war story: a bad fold once silently zeroed a live projection with nothing to catch it).
|
|
1403
|
+
- **New self-host stores open with `auto_vacuum = INCREMENTAL`.** Existing stores are unaffected
|
|
1404
|
+
(the pragma only takes on a database with no tables yet) — recorded as backlog B29.
|
|
1405
|
+
|
|
1406
|
+
## 0.1.0-alpha.11
|
|
1407
|
+
|
|
1408
|
+
### Minor Changes
|
|
1409
|
+
|
|
1410
|
+
- d40caf4: Requested by an integrator (abx-services) — the conformance surface now lives in the neutral
|
|
1411
|
+
layer. Five pieces that only token-api or storage exposed before, and that any third-party
|
|
1412
|
+
resolver needs to reproduce the reference behavior byte-for-byte, move into `@artblocks/abx-sdk`:
|
|
1413
|
+
|
|
1414
|
+
- **The generator-document family** (`ABX_JS`, `escapeInlineScript`/`escapeInlineJson`,
|
|
1415
|
+
`buildGeneratorDocument`, `injectTokenDataIntoHtml` — new `src/generator-document.ts`): pure
|
|
1416
|
+
string operations with no resolver-specific behavior, so the SDK, `abx preview`, and any
|
|
1417
|
+
third-party provider now share one definition instead of the CLI importing token-api just for
|
|
1418
|
+
this.
|
|
1419
|
+
- **The registry-dependency family** (`DEPENDENCY_REGISTRY_ABI`, `activeRegistry`,
|
|
1420
|
+
`resolveRegistryDep`, `registryDepUrl`, `dependencyScriptTags`, `URL_BUDGET_BYTES`), merged into
|
|
1421
|
+
the SDK's existing `deps.ts` alongside its registry-pointer logic. `node:zlib` can't come along
|
|
1422
|
+
— SDK core has to stay reachable from a browser bundle — so decompression is now an INJECTED
|
|
1423
|
+
`inflate?: (bytes: Uint8Array) => Uint8Array` threaded through `resolveRegistryDep`/
|
|
1424
|
+
`dependencyScriptTags`; omitting it when a resolved dep actually needs decompressing throws a
|
|
1425
|
+
new typed `InflateRequiredError` naming the fix, rather than crashing opaquely or silently
|
|
1426
|
+
degrading. `@artblocks/abx-sdk/node` gains `nodeInflate` (a one-line `gunzipSync` wrapper) so a
|
|
1427
|
+
Node host wires it in one line; a browser host passes a `DecompressionStream`-based
|
|
1428
|
+
implementation instead. (Merge note: the prior `dependencyRegistryReadAbi` and token-api's
|
|
1429
|
+
`DEPENDENCY_REGISTRY_ABI` declared the identical `getDependencyDetails` entry twice — deduped
|
|
1430
|
+
into one array that also carries `getDependencyScript`.)
|
|
1431
|
+
- **`contentTypeFromPath`** (new `src/mime.ts`): the MIME extension-map lookup, verbatim.
|
|
1432
|
+
- **Gateway resolution, split pure/env** (new `src/gateways.ts`): `resolveGatewayBase` is now PURE
|
|
1433
|
+
(no env read — takes resolved `{ipfs?, arweave?}` overrides) and `gatewayUrlFor` moves alongside
|
|
1434
|
+
it; `gatewayConfigFromEnv()` is the one place that reads `ABX_IPFS_GATEWAY`/
|
|
1435
|
+
`ABX_ARWEAVE_GATEWAY`, kept separate so a host with its own gateway config never has to touch
|
|
1436
|
+
`process.env` through this module at all.
|
|
1437
|
+
- **`exponentialBackoffDelay(attempt, baseMs, capMs)`** (`util.ts`): `min(baseMs * 2^(attempt-1),
|
|
1438
|
+
capMs)`, 1-indexed like the existing `linearBackoffDelay`. Prefer it for a sustained rate limit
|
|
1439
|
+
or an overloaded upstream; `linearBackoffDelay` stays right for a one-off transient failure.
|
|
1440
|
+
`service.ts`'s own retry ladder is unchanged (still linear — its rationale comment stands).
|
|
1441
|
+
|
|
1442
|
+
Token-api and storage keep every existing export working, re-exported from the SDK where the
|
|
1443
|
+
implementation moved — no removals, and token-api's own `nodeInflate`-pre-wired wrappers mean its
|
|
1444
|
+
internal call sites (`code.ts`'s document assembly, `deps.ts`'s `depStatusReport`) needed no
|
|
1445
|
+
signature changes at all. The browser-bundle test (`packages/sdk/test/browser-bundle.test.ts`)
|
|
1446
|
+
stays green with all of this now exported from the core index — proof that the injected-`inflate`
|
|
1447
|
+
design actually keeps `node:zlib` out of the bundle.
|
|
1448
|
+
|
|
1449
|
+
### Patch Changes
|
|
1450
|
+
|
|
1451
|
+
- d40caf4: Drop-in for every consumer of `reconstructProject` / `applyHeadReads`; no signature changed.
|
|
1452
|
+
|
|
1453
|
+
**Fix `multicallChunked`'s per-leg retry so it actually recovers on a chain with no multicall3
|
|
1454
|
+
deployment, not just on an over-budget aggregate.** When the aggregate `client.multicall` throws,
|
|
1455
|
+
the retry re-asked each leg one at a time — but through the _same_ `client.multicall` call. That
|
|
1456
|
+
recovers a batch that failed for being too big (retrying smaller aggregates works fine), but not one
|
|
1457
|
+
that failed because this chain has no multicall3 contract at all: every multicall, at any width,
|
|
1458
|
+
fails identically, so the retry reproduced the exact same failure and the caller got all-null,
|
|
1459
|
+
indistinguishable from "the contract answered nothing." `reconstructProject`'s head-read
|
|
1460
|
+
(`applyHeadReads`) runs every identity field — `name`, `symbol`, `owner`, the URI-lane renderer/lock
|
|
1461
|
+
flags, `contractURI`, every `tokenURI` — through this helper, so on any chain lacking multicall3 a
|
|
1462
|
+
reconstruct silently blanked those fields instead of reading them.
|
|
1463
|
+
|
|
1464
|
+
The per-leg fallback now goes through `client.readContract` instead, which has no multicall3
|
|
1465
|
+
dependency, and is also used for a chunk that lands at width 1 on its own (e.g. the last chunk of an
|
|
1466
|
+
odd-length list) — previously that lone leg never retried at all. `readContract` throws on revert
|
|
1467
|
+
where multicall's `allowFailure` returns a `status: 'failure'` result instead; the fallback catches
|
|
1468
|
+
that per leg and maps it back to `null`, so a genuine revert still reads as "no answer," matching the
|
|
1469
|
+
aggregate's own contract. The over-budget recovery path is unchanged in outcome, only in which call
|
|
1470
|
+
answers the retry.
|
|
1471
|
+
|
|
1472
|
+
## 0.1.0-alpha.10
|
|
1473
|
+
|
|
1474
|
+
### Minor Changes
|
|
1475
|
+
|
|
1476
|
+
- 11fa933: The extraction phase of the simplification refactor: business logic that lived only inside the CLI
|
|
1477
|
+
is now importable — the CLI calls the same functions you can.
|
|
1478
|
+
|
|
1479
|
+
**Into the SDK:** the five trust-anchor bootstraps (`ensureFactory`, `ensureSeriesFactory`,
|
|
1480
|
+
`ensureSeriesCodeFactory`, `ensureRenderer`, `ensureSeedSource` — `anchors.ts`, on the same
|
|
1481
|
+
injected-`send` + `onEvent` pattern as `ensureChunkStore`, with a typed `AnchorUnavailableError`),
|
|
1482
|
+
`detectCanonicalFactory`/`resolveScanFloor`, the on-chain-URI setup composer (`onchain-uri.ts`),
|
|
1483
|
+
interrupted-deploy resume planning (`resume.ts`), migration plan/parity reconciliation
|
|
1484
|
+
(`migrate.ts`), the `abx.js` static analyzer (`inspect.ts`), dependency setup legs (`deps.ts`),
|
|
1485
|
+
content-staging plans (`staging.ts` — `planStagedContent`, `stageFieldContent` with `StagingEvent`),
|
|
1486
|
+
`mintedTokenIds`, and a typed `readSaleConfig` for the fixed-price minter.
|
|
1487
|
+
|
|
1488
|
+
**Into storage:** `uploadAndLocate`, `repinNodeCustody` (the byte-custody half of migration),
|
|
1489
|
+
`decideImageContentLane`, `assessStorageReadiness`/`assessTurboFunds` (the Arweave/Turbo funding
|
|
1490
|
+
math), and `awaitLocatorReady` (poll a locator until it serves).
|
|
1491
|
+
|
|
1492
|
+
**CLI hardening that fell out of the dedup:** one risk gate (`gatedSend`) now guards every write —
|
|
1493
|
+
`--dry-run` and `--confirm` mean the same thing on every command, all owner-ops gain `--confirm`,
|
|
1494
|
+
and a write reaching the send lane under `--dry-run` is structurally impossible (grep-enforced by
|
|
1495
|
+
test). One `CHAIN` source of truth; one memoized local-indexer accessor.
|
|
1496
|
+
|
|
1497
|
+
- 11fa933: Phase 1 of the simplification refactor: one transaction shape with one send-injection point, and an SDK that never touches `.env` or a Node-only global on its own. Two related passes, same release.
|
|
1498
|
+
|
|
1499
|
+
**One transaction shape, one executor.** `StagingTx`/`SendStagingTx` are gone — everything is a `PreparedTx` sent through a single `SendTx`. New `execute.ts` carries `makeHotSender` (pins the nonce once, detects an under-estimated gas limit against a just-deployed target, throws a typed `TxRevertedError` instead of reporting a reverted tx as confirmed) plus `pinGas`/`waitForCodeAt`, moved from the CLI (`gas.ts` is gone) with their design comments intact. Every `deployX` is now `prepareDeployX` (pure) + `deployX(send, ...)`; the CLI's hot lane and `abx deploy-code --resume` both delegate to the same sender instead of hand-rolling their own nonce/gas loop — the class of bug that reported a burned, reverted transaction as a successful deploy can't recur in a second call site because there is no longer a second implementation.
|
|
1500
|
+
|
|
1501
|
+
**The SDK never loads `.env` implicitly.** `loadDotEnv`/`parseEnvContent` moved to a new `@artblocks/abx-sdk/node` subpath — the only module that touches `node:fs`/`node:path`. The package's main entry is now browser-bundle-safe (a permanent esbuild smoke test guards it); a host calls `loadDotEnv()` once at startup (the CLI's `main()`, the effects runner's `main()`) and the SDK core reads whatever's already in `process.env` through a tiny `readEnv` that no-ops outside Node. `ClientOptions` gained `rpcUrls?: string[]` and `makeWalletClient`/`envSigningKey` gained a `privateKey`/`override` escape — explicit config now wins outright over env resolution, following the same override → env → manifest precedence `deployments.ts` already used for contract addresses.
|
|
1502
|
+
|
|
1503
|
+
**Single signing-key name.** `ABX_DEPLOYER_PK` is the only env var the SDK reads for a hot key — `SEPOLIA_FUNDED_PK` and `SEPOLIA_WALLET_PK` (earlier-alpha names) are no longer consulted. A caller with one of the old names set now gets a `MissingSigningKeyError` that names the new one explicitly and says the old ones are retired, rather than a plain "no key found" that leaves an upgrader hunting for why a key that's clearly _there_ isn't being read. Sandbox/e2e scripts and test fixtures move to the new name too.
|
|
1504
|
+
|
|
1505
|
+
**Shared, environment-neutral utilities.** New `sdk/src/util.ts`: `sleep`, a `linearBackoffDelay` helper (service.ts's retry ladder and the effects runner's resolver poll both use it now instead of hand-rolled backoff math), `parseDataUri` (replaces three near-identical `data:` URI regexes across the CLI and the tokenURI probe with one permissive parser), and `tryReadContract` (replaces three near-identical try/read-return-undefined helpers; the CLI's "no contract at this address" diagnostic still wraps it where that mattered). `Buffer` is gone from the SDK core (chunk hex-encoding and param base64-encoding now use viem's `bytesToHex` and a ~12-line dependency-free base64 codec) — nothing in the SDK's main import graph is Node-only any more.
|
|
1506
|
+
|
|
1507
|
+
### Patch Changes
|
|
1508
|
+
|
|
1509
|
+
- 11fa933: The remaining phases of the simplification refactor that hadn't yet gotten a changeset: the CLI's
|
|
1510
|
+
internal module split, the token-api/effects/mint-page convergence on the SDK, the shipped skill's
|
|
1511
|
+
rewrite for the simplified surface, and a new SDK README.
|
|
1512
|
+
|
|
1513
|
+
- **`abx`'s `main.ts` split into domain command modules** (`commands/{deploy,project,reads,service,
|
|
1514
|
+
scaffold,storage}.ts`, shared `output.ts`/`errors.ts`), with one exit-discipline rule
|
|
1515
|
+
(`process.exitCode` + return, or a typed `CliError`, everywhere — bare `process.exit` only at the
|
|
1516
|
+
entry guard, the top-level catch, and the keep-alive SIGINT handler). Purely internal: a 207-fixture
|
|
1517
|
+
byte-diff matrix (every help text, dry-run, error path, and exit code) confirmed identical output
|
|
1518
|
+
before and after.
|
|
1519
|
+
- **token-api / effects / mint-page converge on the SDK**: `@artblocks/abx-storage` gains one
|
|
1520
|
+
`resolveGatewayBase` (`readiness.ts`), replacing three near-identical copies (two in token-api, one
|
|
1521
|
+
inline in storage itself); token-api exports `buildGeneratorDocument` so the CLI's `abx preview`
|
|
1522
|
+
consumes the real generator-document assembler instead of a hand-kept duplicate; the effects runner
|
|
1523
|
+
now resolves its config via the SDK's `readEnv` and gets a `makePublicClient` fallback transport, so
|
|
1524
|
+
`ABX_RPC_URL` accepts a comma-separated failover list like every other RPC var; the scaffolded
|
|
1525
|
+
mint-page app now imports ABIs from `@artblocks/abx-sdk/abi` and a browser-safe `makePublicClient` +
|
|
1526
|
+
typed `readSaleConfig` instead of hand-rolled fetch/decode, and pins its generated `package.json` to
|
|
1527
|
+
the SDK's _resolved_ version via a new `@artblocks/abx-sdk/package.json` export (alpha version
|
|
1528
|
+
counters diverge per package under changesets, so pinning the CLI's own number could produce an
|
|
1529
|
+
unsatisfiable range).
|
|
1530
|
+
- **The shipped skill (`.claude/skills/abx-self-host/`) is rewritten for the surface phases 0–5
|
|
1531
|
+
actually shipped**: every warning made obsolete by an enforcement is deleted rather than softened —
|
|
1532
|
+
predict-only deploy-preview addresses, the `approvals N` line, the single `ABX_REMOTE_SELF_*`
|
|
1533
|
+
credential grammar, `doctor`'s version/provenance ladder, `storage show --check`, the render/storage
|
|
1534
|
+
combo validator's dry-run row, and `ABX_DEPLOYER_PK` as the only key name. Retired names swept from
|
|
1535
|
+
`dev-loop-test`, the agent-eval scenarios, and spec prose. The skill ships bundled inside this CLI
|
|
1536
|
+
package (co-versioned via `SKILL.md` frontmatter), so it rides this same patch.
|
|
1537
|
+
- **New `packages/sdk/README.md`**: what the SDK is, the send-injection model (`PreparedTx` +
|
|
1538
|
+
`SendTx`, `makeHotSender` for a hot key, bring-your-own for a wallet/multisig), a complete
|
|
1539
|
+
deploy → upload → mint → read walkthrough against real exports, and browser-use notes (explicit
|
|
1540
|
+
`rpcUrls`, no env, the `/node` subpath is Node-only). Included in the npm tarball automatically
|
|
1541
|
+
(README is one of the files npm always packs, regardless of the `files` allowlist).
|
|
1542
|
+
|
|
1543
|
+
## 0.1.0-alpha.9
|
|
1544
|
+
|
|
1545
|
+
### Patch Changes
|
|
1546
|
+
|
|
1547
|
+
- df298d8: Fix three ways the reference resolver misreported on-chain state — and the head-read bug underneath one of them
|
|
1548
|
+
|
|
1549
|
+
From an engineering audit by the abx-services team (2026-08-04), who run the same protocol on a
|
|
1550
|
+
hosted node against real testers and so reach long-tail states a single-node run rarely does. All
|
|
1551
|
+
three findings reproduced. Verifying the second one turned up a fourth defect that was its actual
|
|
1552
|
+
cause, and that one is the most consequential of the set.
|
|
1553
|
+
|
|
1554
|
+
**1 · A renderer-computed TEXT field was dropped entirely.** `resolveImage` had an `R.renderer`
|
|
1555
|
+
branch; `resolveText` did not. So a `renderer`-represented `description`, `external_url`,
|
|
1556
|
+
`animation_url`, `background_color`, `youtube_url`, or `name` matched no branch and resolved **as if
|
|
1557
|
+
unset** — silently replaced by the operator's off-chain value with provenance reporting `off-chain`,
|
|
1558
|
+
or omitted from the metadata altogether. A creator who committed a computed field on-chain got the
|
|
1559
|
+
operator's version served instead, and nothing errored anywhere.
|
|
1560
|
+
|
|
1561
|
+
`resolveText` now mirrors `AbxMetadataRenderer._appendText`'s `R_RENDERER` arm exactly, because the
|
|
1562
|
+
two must agree: with `tokenURIRenderer` set the chain assembles this JSON and the resolver merely
|
|
1563
|
+
re-serves it, so any difference is a resolver contradicting the token's own `tokenURI`. That means
|
|
1564
|
+
the **declared** contentType is used verbatim (`renderer` is the one representation that types itself
|
|
1565
|
+
on-chain) rather than an assumed `text/html`, and a `text/uri-list` result (RFC 2483 — the canonical
|
|
1566
|
+
generator's directory branch) lands as the locator it is, never data-wrapped. This is a deliberate
|
|
1567
|
+
divergence from the shape the audit recommended (pointing at the node's own `/data/{field}` route):
|
|
1568
|
+
parity with the on-chain renderer is the stronger constraint here. A field renderer that reverts now
|
|
1569
|
+
degrades that one field — with provenance saying the on-chain attempt failed, not a clean
|
|
1570
|
+
`off-chain` — instead of being indistinguishable from an unset field.
|
|
1571
|
+
|
|
1572
|
+
**2 · The `name` fallback asserted an ERC-721 `name()` read it had not performed.** When
|
|
1573
|
+
`state.name` is null the served value is the raw contract address, and the note still said
|
|
1574
|
+
`on-chain (ERC-721 name() + #id)`. A hosted node served `"name": "0xb844…c35e56 #0"` beside that note
|
|
1575
|
+
while the contract's `name()` was `"ABXdoku"`. The wrong name is cosmetic; provenance is the surface
|
|
1576
|
+
you would point an artist at to audit their own metadata, so a false positive there costs more. The
|
|
1577
|
+
note is now conditional, and deliberately does not adjudicate _why_ the value was empty — the
|
|
1578
|
+
projection cannot tell an unnamed contract from a failed read, and guessing is how the original note
|
|
1579
|
+
came to lie.
|
|
1580
|
+
|
|
1581
|
+
**3 · The live view answered "not a code project" for a code project that was merely mid-index.**
|
|
1582
|
+
`/a/` collapsed every `resolveLiveView` null into one confident verdict about the **contract**, when
|
|
1583
|
+
at least one is a statement about the **index**: `chunkCount` is a head read, so a template-mode
|
|
1584
|
+
project whose chunks have not been folded in yet reads as zero. A tester got
|
|
1585
|
+
`live · caught up · 127 events · 32 tokens` from the node and this 404, concluded the resolver did
|
|
1586
|
+
not recognise the SeriesCode factory, and a `--full` re-index did not clear it — the confident
|
|
1587
|
+
wording sent them looking in the wrong place. The route now consults `contractType` (folded from the
|
|
1588
|
+
deployed extensions, so it knows before any code lands) and answers **503 + Retry-After** for "not
|
|
1589
|
+
yet" versus 404 for "not ever". Both verdicts are answered before the chain client is touched, since
|
|
1590
|
+
neither needs an RPC. The three-way decision is extracted as `liveViewAvailability(state)` so it has
|
|
1591
|
+
a test seam at all.
|
|
1592
|
+
|
|
1593
|
+
**4 · The head-read multicall failed _whole_ on the flagship lane, and took identity, trust, and the
|
|
1594
|
+
URI lane with it.** This was not in the audit — it is why finding 2 fires, found by reproducing it
|
|
1595
|
+
instead of accepting "an RPC hiccup". `applyHeadReads` batched `name`, `symbol`, `owner`,
|
|
1596
|
+
`contractURI`, `isAbxClone`, `implementation`, the four URI-config getters, and **one `tokenURI` per
|
|
1597
|
+
token** into a single multicall. A multicall is one `eth_call`: on a fully-on-chain project
|
|
1598
|
+
`tokenURI(id)` assembles the entire metadata document on-chain, so a handful of those legs exceeds a
|
|
1599
|
+
public node's budget and _every_ leg in the aggregate reports failure — including legs that answer
|
|
1600
|
+
fine alone.
|
|
1601
|
+
|
|
1602
|
+
Measured on Base Sepolia `0xB844F4D2137a8Ce785Cbc80D281A36DBD1c35E56` (32 tokens, chain-complete):
|
|
1603
|
+
1 tokenURI leg → 5/5 succeeded; **4 legs → 0/8 succeeded**, while `name()` on its own returned
|
|
1604
|
+
`"ABXdoku"`. Every resolver indexing that collection therefore believed it had no name, no symbol,
|
|
1605
|
+
no `contractURI`, no canonical proof — and **no `tokenURIRenderer`, i.e. that it was not in the
|
|
1606
|
+
on-chain-URI lane at all.** Deterministic for any sizable on-chain collection, not a hiccup.
|
|
1607
|
+
|
|
1608
|
+
Reads are now split by cost class: the cheap fixed-size ones that decide a project's identity and
|
|
1609
|
+
lane go in a batch of their own and can never be collateral damage, while the unbounded ones
|
|
1610
|
+
(`contractURI`, per-token `tokenURI`, script chunks) read in small chunks through a helper that
|
|
1611
|
+
re-asks a failed chunk one leg at a time before believing it. After the fix, that same contract
|
|
1612
|
+
reconstructs with its name, symbol, both URI renderers, and all 32 token URIs intact.
|
|
1613
|
+
|
|
1614
|
+
12 regression tests across the four, including the null-name case both surfaces missed because every
|
|
1615
|
+
parity fixture on both sides hardcoded a non-null name.
|
|
1616
|
+
|
|
1617
|
+
- df298d8: `abx tokens <address>` — every token's owner, seed, and params, from chain alone
|
|
1618
|
+
|
|
1619
|
+
The most obvious post-deploy question about a generative collection — _what did the seeds actually
|
|
1620
|
+
deal?_ — had no command. `abx verify` reports per-token minted/render status but no seed; `abx
|
|
1621
|
+
tokenuri` prints one token and the seed lives inside its base64 `animation_url`; `abx inspect` is
|
|
1622
|
+
pre-deploy and static. An agent's workaround was to start `abx serve`, `GET /api/project/<addr>`,
|
|
1623
|
+
base64-decode each `tokenURI`, base64-decode the `animation_url` inside it, then regex
|
|
1624
|
+
`0x[0-9a-f]{64}` out of the resulting HTML — 32 times. Every input to that was already a plain
|
|
1625
|
+
contract read.
|
|
1626
|
+
|
|
1627
|
+
`abx tokens <address> [--json] [--from <id>] [--limit <n>]` is chain-only: no indexer projection, no
|
|
1628
|
+
running resolver, no event scan. The params store maintains its own key lists inside its write paths
|
|
1629
|
+
(`tokenParamKeys` / `contractParamKeys`) and `seed` is a reserved param read by name, so the whole
|
|
1630
|
+
listing is `eth_call`s — available to anyone with an RPC URL, including before any indexing has
|
|
1631
|
+
happened. Seeds print in full (truncating the one value the command exists for would repeat the
|
|
1632
|
+
`tokenuri` bug); `--json` emits `{tokenId, owner, seed, params}` per token, contract-scope params
|
|
1633
|
+
once on the parent rather than copied into every row.
|
|
1634
|
+
|
|
1635
|
+
It reports honestly across all three token types rather than failing: a 1/1 has no params extension
|
|
1636
|
+
and says so (owners still list), a pre-enumeration project still yields seeds and flags that params
|
|
1637
|
+
can't be enumerated, and an id whose `ownerOf` reverts is `null` — not "not minted", because a
|
|
1638
|
+
burned id and an unminted id revert identically and a chain-only read can't tell them apart.
|
|
1639
|
+
|
|
1640
|
+
Two things it deliberately is not. It is not a trait spread: a trait comes from running the script
|
|
1641
|
+
against the seed, which is `abx render`'s job — the token-scope _param_ spread it does print is
|
|
1642
|
+
labelled as such. And the reader is in the **SDK** (`listTokens`), not just the CLI, so a
|
|
1643
|
+
programmatic integrator gets it without reimplementing it.
|
|
1644
|
+
|
|
1645
|
+
Backlog B25 (from the 2026-08-04 tester batch, feedback `dcfdc6f4`).
|
|
1646
|
+
|
|
1647
|
+
## 0.1.0-alpha.8
|
|
1648
|
+
|
|
1649
|
+
### Minor Changes
|
|
1650
|
+
|
|
1651
|
+
- e325b46: Opt-in ERC-721C support across the toolkit — plain ERC-721 stays the transparent default.
|
|
1652
|
+
|
|
1653
|
+
SDK: `OneOfOneInitParams`/`SeriesInitParams` (and `SeriesCodeInitParams` by inheritance) gain
|
|
1654
|
+
`transferValidator` immediately after `royaltyBps` — `zeroAddress` = plain ERC-721 forever (the
|
|
1655
|
+
default), non-zero = permanent 721C enrollment with that validator. A new `creator-token` module
|
|
1656
|
+
ships the per-chain `RECOMMENDED_TRANSFER_VALIDATOR` (OpenSea's
|
|
1657
|
+
StrictAuthorizedTransferSecurityRegistry, verified live on Sepolia + Base Sepolia), the two
|
|
1658
|
+
creator-token ERC-165 ids + the ABX extension id, `readCreatorTokenStatus()` (`{enrolled,
|
|
1659
|
+
validator}`), and a `prepareSetTransferValidator()` write wrapper.
|
|
1660
|
+
|
|
1661
|
+
CLI: the deploy commands take `--721c [recommended|0x…]` — absent means zero behavior/output
|
|
1662
|
+
change; `recommended` resolves the per-chain constant (refused, naming the chains that have one,
|
|
1663
|
+
where none is known); an explicit address is EIP-55-validated and pre-checked for code before any
|
|
1664
|
+
gas. Enrolling prints one plain statement of what enforcement means. A new owner op
|
|
1665
|
+
`abx set-transfer-validator <address> <0x…|none|recommended>` re-points or suspends an ENROLLED
|
|
1666
|
+
collection's validator (guards `--dry-run`; refuses plain ERC-721s up front — enrollment is a
|
|
1667
|
+
deploy-time decision). `abx state` shows the validator for enrolled collections only.
|
|
1668
|
+
|
|
1669
|
+
## 0.1.0-alpha.7
|
|
1670
|
+
|
|
1671
|
+
### Minor Changes
|
|
1672
|
+
|
|
1673
|
+
- 1b50f9d: Fixes from an integrator batch: a machine-readable `tokenuri`, one Arweave identity across CLI and SDK, a correct OpenSea refresh, and attach telling the truth.
|
|
1674
|
+
|
|
1675
|
+
**`abx tokenuri --json`.** The command abbreviated long values (`… (382 chars)`) with no way to turn it
|
|
1676
|
+
off, so for a token whose whole point is on-chain content it returned something that _looked_ like the
|
|
1677
|
+
metadata and wasn't. An integrator scraped it, stored a `data:` URI cut to 96 characters, and only
|
|
1678
|
+
found out in production; they abandoned the CLI as a read path and reimplemented `eth_call`. `--json`
|
|
1679
|
+
now emits the verbatim decoded document — no banner, no ANSI, no truncation — so
|
|
1680
|
+
`abx tokenuri <addr> --json | jq` is a supported read path. The human view still abbreviates, and now
|
|
1681
|
+
says `[--json for the full value]`.
|
|
1682
|
+
|
|
1683
|
+
**One Arweave identity, resolved in one place.** `arweaveConfigFromEnv()` read `ARWEAVE_JWK` and
|
|
1684
|
+
nothing else, while the CLI mints and manages `.abx-self-host/arweave-key.json`. Porting a working CLI
|
|
1685
|
+
flow to the SDK — same machine, minutes later — failed every upload with "Arweave via Turbo needs an
|
|
1686
|
+
identity", a message that says storage was never configured when the truth was that two layers
|
|
1687
|
+
disagreed about where the identity lives. `@artblocks/abx-storage` now exports `resolveArweaveJwk()`
|
|
1688
|
+
(env → managed key file) and the CLI delegates to it. Its diagnostics come with it: an empty key file
|
|
1689
|
+
now reports the **path** and the remedy instead of `Unexpected end of JSON input`, and a corrupt one
|
|
1690
|
+
says the same.
|
|
1691
|
+
|
|
1692
|
+
**`abx refresh` on the default chain.** The OpenSea slug map held only `sepolia` and `mainnet`, so
|
|
1693
|
+
`base-sepolia` — the CLI's own default — fell through to the raw key: the refresh POST went to a slug
|
|
1694
|
+
OpenSea doesn't know, and the printed link pointed at **mainnet** `opensea.io` for a testnet token.
|
|
1695
|
+
Slugs are now correct (`base_sepolia`), `testnet` comes from the chain registry rather than a second
|
|
1696
|
+
hand-maintained set, and a chain with no known slug produces **no link** instead of a wrong one. Same
|
|
1697
|
+
shape as the hardcoded explorer table that once sent every Base Sepolia link to Etherscan.
|
|
1698
|
+
|
|
1699
|
+
**`abx attach` names its dependency.** Attaching artifacts to a project that resolves on-chain now
|
|
1700
|
+
warns, before the send, that they will **not** appear in `tokenURI` — the on-chain renderer carries
|
|
1701
|
+
reserved fields only, and the artifacts manifest comes from a resolver. A team attached five audio
|
|
1702
|
+
stems to a fully-on-chain token and found them "paid for, stored on-chain, and invisible"; the note
|
|
1703
|
+
that existed was one dim line that read as a footnote rather than as a missing service.
|
|
1704
|
+
|
|
1705
|
+
**`ensureChunkStore` moved to the SDK.** The bootstrap every on-chain-content path needs existed only
|
|
1706
|
+
inside the CLI, so an SDK integrator got `resolveChunkStore()` (may return undefined) plus a separate
|
|
1707
|
+
`storeSupportsWriteContent()` they had to remember — forget it and an incapable store fails _deep
|
|
1708
|
+
inside a mint, after transactions have landed_. One team hand-rolled the guard for exactly that reason.
|
|
1709
|
+
`ensureChunkStore(publicClient, send, {chainId, override, onEvent})` is now exported; the SDK reports
|
|
1710
|
+
progress through `onEvent` instead of printing, and the CLI keeps its narration.
|
|
1711
|
+
|
|
1712
|
+
**`abx storage upload --json`.** The locator as data. They scraped this line, captured its ANSI colour
|
|
1713
|
+
codes along with the URL, wrote the result into a _stored_ player URL, and found out when it 404'd in
|
|
1714
|
+
production. In `--json` mode stdout carries the JSON and nothing else; progress moves to stderr.
|
|
1715
|
+
|
|
1716
|
+
**`--backend ipfs` no longer hides a missing credential.** Without `PINATA_JWT` the backend resolves to
|
|
1717
|
+
**kubo against a local node**, so a dry run looked fine and the real upload failed for anyone not running
|
|
1718
|
+
one. The preview now says so. Related correction: the skill claimed "a backend missing its secret falls
|
|
1719
|
+
back to `fs`" — it does not. `cloud` refuses up front naming the missing values, and `ipfs` goes to the
|
|
1720
|
+
local node; nothing silently degrades to local disk. Both sides now say the same thing.
|
|
1721
|
+
|
|
1722
|
+
Reported in the 2026-08-03 MXRR integration batch (feedback 869f27b1, a256217f, 119d7e8e, 975c363e,
|
|
1723
|
+
e38216db, e267078b).
|
|
1724
|
+
|
|
1725
|
+
- 1b50f9d: On-chain param enumeration: a project's parameters are now readable from the chain that holds them, and the `params.keys` convention is retired.
|
|
1726
|
+
|
|
1727
|
+
The params store was unenumerable by design, so anything that wanted to know _which_ parameters a
|
|
1728
|
+
project has had to be told. The answer was a convention: a `params.keys` contract param holding a
|
|
1729
|
+
comma-separated list, composed by `deploy-code` from the `--schema` flags and hand-maintained
|
|
1730
|
+
thereafter. It worked, and it had the defect every hand-maintained index has — a key configured but
|
|
1731
|
+
not listed was **silently omitted from every render**. The schema existed, a collector could set it,
|
|
1732
|
+
the art never saw the value, and nothing anywhere reported a problem. The CLI grew a nudge, then a
|
|
1733
|
+
same-transaction companion write, and both were treatments for a design that should not have needed
|
|
1734
|
+
them.
|
|
1735
|
+
|
|
1736
|
+
**The token now maintains its own key lists.** `SeriesCode` gains `tokenParamKeys(tokenId)`,
|
|
1737
|
+
`contractParamKeys()`, and `paramSchemaKeys()` (plus `…Paged` variants for surfaces past an RPC's
|
|
1738
|
+
return cap). The lists are updated inside the write paths themselves, so `key ∈ list ⟺ the param is
|
|
1739
|
+
set` holds for every writer — raw owner writes, governed `configure-param` writes, hook-driven writes,
|
|
1740
|
+
all of them. No caller can forget, because no caller is involved. (`seed` is deliberately never listed:
|
|
1741
|
+
every consumer reads it as a tokenData coordinate, and indexing it would charge every seeded mint for
|
|
1742
|
+
nothing.) `paramSchemaKeys()` closes the other half — a chain-only frontend can now build a configure
|
|
1743
|
+
UI, including for keys declared but never yet written, which nothing off-chain could previously
|
|
1744
|
+
discover.
|
|
1745
|
+
|
|
1746
|
+
**The canonical `AbxGenerator` reads that surface instead of the CSV.** It no longer looks at
|
|
1747
|
+
`params.keys` at all, and a `params.keys` value set on a new project is simply an ordinary parameter —
|
|
1748
|
+
enumerated and emitted like any other, by both the generator and the SDK. A latent parity bug dies with
|
|
1749
|
+
the convention: the generator's no-CSV path emitted tokenData in insertion order while the canonical
|
|
1750
|
+
serializer sorts, so the two byte-forms could disagree; there is now one form.
|
|
1751
|
+
|
|
1752
|
+
**`AbxMetadataRenderer` is spec v4.** `tokenURI` gains a computed `abx_params` object — every set
|
|
1753
|
+
parameter, contract and token scope merged, token wins, sorted, decoded by the same rules the generator
|
|
1754
|
+
and the SDK use. A data-backed value over 2048 bytes is emitted as `{"keccak256":"0x…"}` — its on-chain
|
|
1755
|
+
commitment — rather than inline, so a large `Bytes` parameter cannot bloat `tokenURI` past a single
|
|
1756
|
+
`eth_call`; every key still appears, and an oversized one degrades self-describingly. Parameters are
|
|
1757
|
+
_not_ folded into `attributes`: that stays the creator's surface. Also in v4: an `animation_url` carried
|
|
1758
|
+
by the `inline` or `reader` representation is now wrapped as `data:text/html;base64,…`, exactly as
|
|
1759
|
+
`image` already was — the asymmetry was an oversight, and it meant a fully on-chain animation was
|
|
1760
|
+
handed to wallets as bare text.
|
|
1761
|
+
|
|
1762
|
+
Both changes are additive on the read side: pointed at a token that predates enumeration, a v4 renderer
|
|
1763
|
+
simply emits no params block. **Repointing the metadata renderer is safe anywhere.** Repointing the
|
|
1764
|
+
_generator_ is not, and `abx set-field` now refuses it: a legacy implementation plus the current
|
|
1765
|
+
generator means every parameter silently vanishes behind a `tokenURI` that still looks healthy, so the
|
|
1766
|
+
CLI stops you rather than warning you, and names both ways out (stay on the project's existing
|
|
1767
|
+
generator, or redeploy).
|
|
1768
|
+
|
|
1769
|
+
Everywhere else in the toolkit, the convention is simply gone:
|
|
1770
|
+
|
|
1771
|
+
- `deploy-code --onchain-uri` sets up in **three** legs, not four (animation field → generator, plus
|
|
1772
|
+
the two URI renderers). There is no key list to compose, report, or keep in sync, and the help text
|
|
1773
|
+
no longer teaches one.
|
|
1774
|
+
- `abx set-schema` is a single op again — no companion write, no multicall. This **supersedes**
|
|
1775
|
+
alpha.13, which shipped `set-schema` writing `params.keys` in the same transaction to stop a governed
|
|
1776
|
+
key going unlisted: the contract now maintains its own key list, so there is nothing to keep in step
|
|
1777
|
+
and the drift that fix guarded against is gone rather than mitigated. Same for that release's note
|
|
1778
|
+
that "there is no on-chain enumeration of schema keys" — `paramSchemaKeys()` is exactly that.
|
|
1779
|
+
- `abx state` reads the governed surface from `paramSchemaKeys()` and the collection-scope values from
|
|
1780
|
+
`contractParamKeys()`. A project deployed before enumeration falls back to reading its old
|
|
1781
|
+
`params.keys` list, read-only, so live testnet drops still describe themselves.
|
|
1782
|
+
- `abx verify` notes when a project's enumerated surface exceeds ~64 keys — the documented design
|
|
1783
|
+
envelope. The write side is unbounded; the read side is what grows, since `tokenURI` and `tokenData`
|
|
1784
|
+
assemble every parameter per call.
|
|
1785
|
+
- `abx configure-param <addr> - params.keys <csv>` no longer has a special path. Writing that key is
|
|
1786
|
+
now an ordinary schema-less contract param, and it shows up in tokenData as one — honest, and
|
|
1787
|
+
documented.
|
|
1788
|
+
- `abx_params` joins `artifacts` and `abx_provenance` as a computed key `set-field` and `attach` refuse.
|
|
1789
|
+
|
|
1790
|
+
The SDK needed no semantic change: `buildTokenData` has always been event-derived (coordinates + seed +
|
|
1791
|
+
every set param, both scopes, token wins, augment entries), and the contract enumeration implements
|
|
1792
|
+
exactly that rule. Its `deployments` manifest carries the new addresses.
|
|
1793
|
+
|
|
1794
|
+
## 0.1.0-alpha.6
|
|
1795
|
+
|
|
1796
|
+
### Minor Changes
|
|
1797
|
+
|
|
1798
|
+
- 1158420: Expose the PostParam schema lifecycle: `abx set-schema`, `abx retire-param`, Address legs, and `lock=`.
|
|
1799
|
+
|
|
1800
|
+
Three capabilities the contracts have always had, that the toolkit could not reach — so they read to
|
|
1801
|
+
creators as protocol limitations. All three were reported in the 2026-08-03 tester batch.
|
|
1802
|
+
|
|
1803
|
+
**A project's param surface was never frozen at deploy.** `setParamSchema` is owner-gated with no
|
|
1804
|
+
deploy-time restriction and no `exists` check, so it is an upsert usable for the life of a project.
|
|
1805
|
+
There was just no command for it, and the CLI said so out loud ("Adding a param to an already-deployed
|
|
1806
|
+
contract isn't a CLI command yet"), which pushed designers toward guessing their full param surface up
|
|
1807
|
+
front or redeploying — losing the address, the mints, and the collectors. `abx set-schema <addr>
|
|
1808
|
+
--schema key:Type:Auth` attaches or replaces one key.
|
|
1809
|
+
|
|
1810
|
+
Because it is a **full-row upsert on a contract that never re-validates stored values**, the command
|
|
1811
|
+
carries a guard rather than a warning: it prints before/after, and _refuses_ a change that could strand
|
|
1812
|
+
values already written under the key — a narrowed bound, a dropped `Select` option, a changed type —
|
|
1813
|
+
unless you pass `--force`. It also flags an existing `lock=` you are about to drop by not restating it.
|
|
1814
|
+
|
|
1815
|
+
**A parameter can be retired.** There is no delete in the contract (`exists` is only ever set true), but
|
|
1816
|
+
a `lockAfter` in the past makes every later write revert `ParamLockExpired`, permanently. `abx
|
|
1817
|
+
retire-param <addr> <key>` does exactly that, reading the current schema and changing _only_ the lock so
|
|
1818
|
+
type/auth/bounds/options carry forward untouched. It does not remove the key and does not erase a stored
|
|
1819
|
+
value — a value written under a `TokenOwner`/`Address` leg came from a collector, and the artist
|
|
1820
|
+
deliberately cannot delete it.
|
|
1821
|
+
|
|
1822
|
+
**An `Address` auth leg is now expressible.** `--schema` previously rejected every Address-bearing leg
|
|
1823
|
+
with "set that schema post-deploy via the contract" — advice pointing at a command that did not exist.
|
|
1824
|
+
The auth token now names its holder inline (`board:Bytes:Address(0xabc…)`), and the error for a bare
|
|
1825
|
+
`Address` says what the leg is for: a **contract** may hold it, which is how open and multi-party
|
|
1826
|
+
participation is built today. `authAddress` and `lockAfter` were also hardcoded to zero at the
|
|
1827
|
+
deploy-time call site, so neither was reachable there either; both now flow through `--schema`.
|
|
1828
|
+
|
|
1829
|
+
`--schema` gains an optional 4th field, `lock=<when>` (ISO date, unix seconds, or `now`), sharing the
|
|
1830
|
+
Timestamp grammar the bounds already use. A 4th field that is not `lock=` now reports the spec-shape
|
|
1831
|
+
error instead of a mangled "malformed type", which is what a `:` inside a `Select` label used to produce.
|
|
1832
|
+
|
|
1833
|
+
New in the SDK: `prepareSetParamSchema`, `prepareRetireParam`, `readParamSchema`, `OnChainParamSchema`.
|
|
1834
|
+
|
|
1835
|
+
(feedback 4a0c213a, 5d530681, 381bdcbe)
|
|
1836
|
+
|
|
1837
|
+
> [Superseded 2026-08-03: params now enumerate **on-chain** (renderer spec v4, `abx_params`) and
|
|
1838
|
+
>
|
|
1839
|
+
> > `params.keys` is retired — the contract maintains its own key list, so nothing off-chain has to keep
|
|
1840
|
+
> > it in step and `abx state` reads the chain directly. See the on-chain param enumeration entry.]
|
|
1841
|
+
|
|
1842
|
+
`set-schema` also keeps **`params.keys` in step, in the same transaction**. On the on-chain URI lane
|
|
1843
|
+
the canonical generator builds tokenData from that CSV, so a key that is governed but not listed is
|
|
1844
|
+
silently omitted from every render — the schema exists, a collector can set it, and the art never sees
|
|
1845
|
+
the value. `deploy-code` composes the list from `--schema` for exactly this reason; without the
|
|
1846
|
+
companion write, a schema added later would have quietly half-worked. Projects not on that lane (where
|
|
1847
|
+
`params.keys` is unset) get no extra write.
|
|
1848
|
+
|
|
1849
|
+
> [Superseded 2026-08-03: params now enumerate **on-chain** (renderer spec v4, `abx_params`) and
|
|
1850
|
+
>
|
|
1851
|
+
> > `params.keys` is retired — the contract maintains its own key list, so nothing off-chain has to keep
|
|
1852
|
+
> > it in step and `abx state` reads the chain directly. See the on-chain param enumeration entry.]
|
|
1853
|
+
|
|
1854
|
+
And `abx state` now prints the governed PostParam surface — each key's type, auth, bounds/options, an
|
|
1855
|
+
upcoming lock date, and a `retired` marker for one whose lock has passed. There is no on-chain
|
|
1856
|
+
enumeration of schema keys, so it reads the project's own `params.keys` list, which is also what the
|
|
1857
|
+
generator reads; anything missing from it is invisible to renders anyway. It also names keys listed
|
|
1858
|
+
there with no schema. This is what makes `set-schema`'s upsert safe to use: you can see a key's current
|
|
1859
|
+
shape before overwriting it.
|
|
1860
|
+
|
|
1861
|
+
### Patch Changes
|
|
1862
|
+
|
|
1863
|
+
- 1158420: Fix `deploy-code` reverting `DeploymentFailed()` — the setup transaction was sent with a gas limit estimated against a contract that did not exist yet.
|
|
1864
|
+
|
|
1865
|
+
Every `deploy-code` attempt in a reporter's Base Sepolia session reverted with Solady's
|
|
1866
|
+
`DeploymentFailed()` (`0x30116425`), in both the on-chain and hosted-resolver lanes, with a minimal
|
|
1867
|
+
case of storing a single 3,563-byte script chunk. It was not a defect in the chunk path: the two
|
|
1868
|
+
transactions simply **ran out of gas**.
|
|
1869
|
+
|
|
1870
|
+
```
|
|
1871
|
+
0xcad74d07… gasLimit 201,616 gasUsed 198,870 (98.6%)
|
|
1872
|
+
0xf4350724… gasLimit 169,301 gasUsed 166,810 (98.5%)
|
|
1873
|
+
```
|
|
1874
|
+
|
|
1875
|
+
A code project deploys in two transactions: create the clone, then one setup `multicall`. The second
|
|
1876
|
+
targets the contract the first just created — and `eth_estimateGas` for that call, taken while the
|
|
1877
|
+
answering node has not yet seen the deploy block, returns the **calldata cost alone**. Replaying both
|
|
1878
|
+
payloads against a codeless address reproduces the sent limits _to the gas_ (201,616 and 169,301);
|
|
1879
|
+
against the real contract the same calls need 941,331. A setup multicall's cost is dominated by
|
|
1880
|
+
CREATE code deposit (~200 gas per stored byte), so the underfunded CREATE inside `SSTORE2.write`
|
|
1881
|
+
returned 0 and reverted. The 1/1 lane was unaffected because its setup fits inside a calldata-sized
|
|
1882
|
+
budget.
|
|
1883
|
+
|
|
1884
|
+
This is the same read-after-write lag the deploy loop already pins the **nonce** against, one field
|
|
1885
|
+
over. The fix has two halves, and deliberately does not include a third:
|
|
1886
|
+
|
|
1887
|
+
- **Every leg after the first waits for the target's code to be visible** to the client doing the
|
|
1888
|
+
estimating, so a lagging node cannot produce a meaningless estimate in the first place. This is the
|
|
1889
|
+
actual repair.
|
|
1890
|
+
- **An impossible estimate is detected and refused, not replaced.** `PreparedTx` gained an optional
|
|
1891
|
+
`gasFloor` carrying only the _provable_ part of a payload's cost — EVM code deposit at exactly 200
|
|
1892
|
+
gas per stored byte. An estimate below that is not "low", it is proof the node is on stale state, so
|
|
1893
|
+
the sender retries and then errors out with what it saw.
|
|
1894
|
+
- **What we did NOT do: substitute a computed gas limit.** Only the deposit is derivable; the same
|
|
1895
|
+
setup multicall also carries schema writes, dependency legs, URI legs and mints whose cost cannot be
|
|
1896
|
+
known without simulating them. A "probably enough" constant is tuned to whoever's example was in
|
|
1897
|
+
front of its author — it would have covered the reported single-chunk case and then under-funded a
|
|
1898
|
+
three-schema deploy by ~200k, reproducing the identical `DeploymentFailed()` with a fresh mystery
|
|
1899
|
+
attached. Refusing to send is strictly better than sending a transaction we can prove is
|
|
1900
|
+
under-funded, which would burn the gas and orphan the contract.
|
|
1901
|
+
|
|
1902
|
+
All three signing lanes carry this, not just the hot one: the env-key lane pins the limit before
|
|
1903
|
+
`sendTransaction`, the wallet lane waits for code and hands the browser an explicit `gas` (a wallet
|
|
1904
|
+
estimates against its own RPC, which we don't control and which lags the same way), and the cold lane
|
|
1905
|
+
prints `gasMustExceed` — labelled a floor, not a limit — plus a note telling an external signer to
|
|
1906
|
+
re-estimate rather than send if their own number comes back below it. The rule lives in one place
|
|
1907
|
+
(`packages/cli/src/gas.ts`) so the lanes cannot drift apart on it.
|
|
1908
|
+
|
|
1909
|
+
Reported in the 2026-08-03 tester batch (feedback 156ea0fb, 172111ae), root-caused from the full
|
|
1910
|
+
transaction hashes supplied in the follow-up addendum.
|
|
1911
|
+
|
|
1912
|
+
- 1158420: Fixes from a parallel cold-agent sweep: a chain typo no longer crashes every command, and `inspect` stops over-promising on hand-written PRNGs.
|
|
1913
|
+
|
|
1914
|
+
**An unknown `ABX_CHAIN` printed a raw Node stack trace — from every command.** Chain-derived values
|
|
1915
|
+
were resolved at module scope, in `token-api` (which the CLI imports) and in the CLI itself, so the
|
|
1916
|
+
throw happened during module evaluation, before `main()` existed to catch it. `ABX_CHAIN=mainnet abx
|
|
1917
|
+
doctor` dumped an internal source path and exited 1 — including from the one command whose job is to
|
|
1918
|
+
tell you what is wrong with your environment. Those resolutions are lazy now, and the CLI validates
|
|
1919
|
+
the variable up front with an answer rather than a crash: unknown values list the shipped chains, and
|
|
1920
|
+
a mainnet-shaped value says plainly that ABX is testnet-only today.
|
|
1921
|
+
|
|
1922
|
+
**`abx inspect` reported "(no PRNG)" for a hand-written seeded generator — with the _stronger_
|
|
1923
|
+
reproducibility verdict attached.** The `seeded` check only recognized p5's `randomSeed(`, so a
|
|
1924
|
+
vanilla LCG or xorshift matched no branch and fell through to "traits look derived from the
|
|
1925
|
+
seed/params directly". That is the common case, not an edge one — the skill's own canonical
|
|
1926
|
+
dependency-free example hand-rolls an LCG, and all three sketches written by agents in the sweep hit
|
|
1927
|
+
it. A hand-rolled generator now gets the `careful` verdict and is told the truth: deterministic and
|
|
1928
|
+
reproducible on-chain, but only by porting that exact generator and call order into Solidity.
|
|
1929
|
+
|
|
1930
|
+
Also: `--yes` is now documented in `deploy-code --help` (its own placeholder-identity refusal already
|
|
1931
|
+
told you to pass it), and the `--onchain-uri` raster warning now names the two routes that actually
|
|
1932
|
+
deliver a no-server image instead of only one.
|
|
1933
|
+
|
|
1934
|
+
Found by the 2026-08-03 parallel sweep (8 cold Sonnet/Haiku agents, isolated sandboxes).
|
|
1935
|
+
|
|
1936
|
+
## 0.1.0-alpha.5
|
|
1937
|
+
|
|
1938
|
+
### Minor Changes
|
|
1939
|
+
|
|
1940
|
+
- feba8c2: A resolver is no longer an object store: effect outputs split into **bound** and **referenced**
|
|
1941
|
+
(`specs/protocol/effects.md → Bound vs referenced`), and the artifact registry enforces the split.
|
|
1942
|
+
|
|
1943
|
+
An output is **bound** iff a binding stitches its _content_ into the metadata JSON (today exactly
|
|
1944
|
+
`render/traits` → `attributes`); everything else is **referenced** — the projection carries its URL,
|
|
1945
|
+
or it only appears in the `artifacts` manifest. That one distinction decides who holds the bytes, and
|
|
1946
|
+
it is now the wire rule rather than a runner constant.
|
|
1947
|
+
|
|
1948
|
+
- **`POST /v1/effect-artifacts` derives the mode from the binding, and refuses both mismatches.**
|
|
1949
|
+
Bytes for a referenced output → `400` (the resolver redirects either way, so the bytes buy no
|
|
1950
|
+
capability and cost it storage, retention and egress). A locator for a bound output → `400` (its
|
|
1951
|
+
content is assembled into `tokenURI`; a pointer there used to be recorded and then silently never
|
|
1952
|
+
stitch — a wrong answer served confidently). Bound content is capped at **64 KB**, and a locator
|
|
1953
|
+
that only the producer could resolve (loopback/private host, presigned expiring URL) is rejected.
|
|
1954
|
+
The resolver never fetches a locator while handling the write, and serves registered locators by
|
|
1955
|
+
`302` — never by proxying.
|
|
1956
|
+
- **Bound content moved out of byte custody** into the artifact row (`effect_artifacts.bytes`). Two
|
|
1957
|
+
distinct rules, deliberately not one: a node **MUST** serve and stitch bound content only at the
|
|
1958
|
+
token's current settled `inputsHash`, and it **MAY** drop superseded content whenever it likes
|
|
1959
|
+
(nothing may read it, and it is re-creatable). The reference drops eagerly, on each bound
|
|
1960
|
+
registration, so it holds at most `64 KB × minted × bound outputs` — but retention is a service
|
|
1961
|
+
policy, not an obligation. Either way "conforming means holding a bounded amount of JSON in the
|
|
1962
|
+
database you already run" is now literally true: a resolver in the publish topology needs no object
|
|
1963
|
+
storage at all.
|
|
1964
|
+
- **`abx-effects-publish/v1` is gone** (not deprecated): the two routes ride `abx-control-plane/v1`.
|
|
1965
|
+
Once referenced output is locator-only, accepting a registration is a database insert, so the
|
|
1966
|
+
capability flag described a distinction that no longer exists. A service that won't take a caller's
|
|
1967
|
+
artifacts refuses on the credential (`403`) — interfaces describe wire grammar, tokens describe
|
|
1968
|
+
permission. The interface ids are also explicitly **all-or-nothing**, and the conformance fixture
|
|
1969
|
+
now checks that every route a declared interface names actually answers.
|
|
1970
|
+
- **The runner declares bound outputs** (`EffectOutputDecl.bound`), refuses to start when it has a
|
|
1971
|
+
publish token but a backend that can't name a locator, preflights the descriptor + credential
|
|
1972
|
+
before spending a render, and **latches** on a permanent (4xx) publish failure instead of
|
|
1973
|
+
re-rendering every sweep forever. Skips now re-register rows, so a transient publish failure heals
|
|
1974
|
+
without a re-render.
|
|
1975
|
+
- **The CLI refuses the impossible combination up front**: `abx render --remote`, `abx effects`
|
|
1976
|
+
against a remote resolver, and `abx deploy-effects` all require a backend that can name a reachable
|
|
1977
|
+
URL — `cloud` (S3/R2 + public base), `ipfs`, or `arweave`, named as **peers**. Derived output is
|
|
1978
|
+
re-creatable, so the protocol has no preference among schemes: a chosen `https://` gateway or
|
|
1979
|
+
bucket URL is exactly as legitimate as `ipfs://`/`ar://`, and reachability — not durability — is
|
|
1980
|
+
the requirement. Rendering **co-located** with the resolver remains fully supported on any backend,
|
|
1981
|
+
including `fs`.
|
|
1982
|
+
|
|
1983
|
+
Breaking for producers that relied on pushing media bytes to a resolver: publish a locator instead,
|
|
1984
|
+
or co-locate. Breaking for clients that read `abx-effects-publish/v1` from a descriptor.
|
|
1985
|
+
|
|
1986
|
+
## 0.1.0-alpha.4
|
|
1987
|
+
|
|
1988
|
+
### Minor Changes
|
|
1989
|
+
|
|
1990
|
+
- 67b686b: `abx contracturi`, and the read plane stops answering a bare 404 to three different problems.
|
|
1991
|
+
|
|
1992
|
+
Both halves come from one real failure: an agent driving a hosted resolver wanted collection
|
|
1993
|
+
metadata, pattern-matched off `/t/{chainId}/{address}/{id}`, dropped the token id, got a bare `404`,
|
|
1994
|
+
and reported the service as broken. The documented route (`/c/{chainId}/{address}`) was right there —
|
|
1995
|
+
but there was also no command to just _ask_, and the 404 gave it nothing to correct.
|
|
1996
|
+
|
|
1997
|
+
- **New `abx contracturi <address>`** — the collection-level counterpart of `tokenuri`. Reads
|
|
1998
|
+
`contractURI()` (ERC-7572) from the contract, **follows it**, and decodes: a `data:` URI inline
|
|
1999
|
+
(the on-chain lane), an `https://` URL by fetching it (the off-chain lane). A contract commits its
|
|
2000
|
+
own metadata base on-chain (`contractURIBase`), so the chain — not a doc, not a service
|
|
2001
|
+
descriptor — is the authoritative answer to where a project's metadata lives. Nobody needs to
|
|
2002
|
+
hand-build a resolver URL. When the fetch fails, the message says so plainly: the URL came from
|
|
2003
|
+
the chain, so a bad status is about the _service_ (unregistered project · wrong chain · down),
|
|
2004
|
+
never a mistyped path.
|
|
2005
|
+
- **Read-plane responses now carry a machine `code`**, so the three causes of "no metadata came
|
|
2006
|
+
back" are distinguishable — they were one indistinguishable `{"error": "…"}` `404`:
|
|
2007
|
+
- `400 invalid_request` — a real route, wrong shape. Names the correct template, and carries
|
|
2008
|
+
`didYouMean` when the fix is obvious (a `/t/…` missing its token id → `/c/{chainId}/{address}`).
|
|
2009
|
+
- `404 unknown_route` — this node serves nothing at that path; the body lists what it does serve.
|
|
2010
|
+
- `404 not_registered` — the path and chain were fine; this node doesn't index that contract.
|
|
2011
|
+
- `400 unsupported_chain` — wrong chain, plus the `chains` this node does serve. Was a bare `404`;
|
|
2012
|
+
now matches what the control plane already answered for the same condition.
|
|
2013
|
+
- `ServiceErrorCode` gains `unknown_route`. The spec's Errors section now covers the read plane too,
|
|
2014
|
+
with a **MUST** on distinguishing the three misses — and an explicit **MUST NOT** on treating
|
|
2015
|
+
route templates as per-node discoverable configuration. The route grammar is fixed by the
|
|
2016
|
+
`abx-token-api/v1` interface; these responses are diagnostics, not a discovery mechanism.
|
|
2017
|
+
- **The conformance fixture checks all of it** (`pnpm conformance <base-url>`), so any provider can
|
|
2018
|
+
self-verify in one command. Also fixed: the documented `pnpm conformance -- <base-url>` form
|
|
2019
|
+
parsed `--` as a flag and swallowed the base URL, printing usage instead of running.
|
|
2020
|
+
|
|
2021
|
+
## 0.1.0-alpha.3
|
|
2022
|
+
|
|
2023
|
+
### Minor Changes
|
|
2024
|
+
|
|
2025
|
+
- a72723d: A standard indexing lifecycle, and registration that no longer blocks on a slow chain RPC
|
|
2026
|
+
(specs/self-host-toolkit/remote-services.md → The indexing lifecycle).
|
|
2027
|
+
|
|
2028
|
+
- **Fixed: a slow register triggered a retry storm.** The SDK's per-attempt timeout (30s) plus its
|
|
2029
|
+
retry ladder meant a cold reconstruct that outran one request was **re-POSTed up to four times**,
|
|
2030
|
+
each starting another full replay against the RPC that was already too slow to answer — and the
|
|
2031
|
+
caller then saw "nothing responded" even though the registration was durable and indexing was
|
|
2032
|
+
underway. A timed-out register now asks whether it landed (a status read) instead of re-POSTing, and
|
|
2033
|
+
the resolver coalesces concurrent catch-ups for one project into a single run.
|
|
2034
|
+
- **`POST /v1/projects` answers in two conformant shapes, discriminated by HTTP status:** `200` with
|
|
2035
|
+
the completed summary, or `202` + `{accepted, project: {status}}` when catch-up is deferred. The
|
|
2036
|
+
registration is normatively **durable before catch-up** and visible on the list immediately, so a
|
|
2037
|
+
flaky RPC makes for a slower backfill rather than a lost add. No `?wait=`/`Prefer:` negotiation — the
|
|
2038
|
+
status code is the discriminator, and clients handle both. The reference resolver answers _by
|
|
2039
|
+
deadline_ (`ABX_REGISTER_DEADLINE_MS`, default 8s): the common case (a fresh deploy) stays
|
|
2040
|
+
synchronous with real counts; only the pathological case defers.
|
|
2041
|
+
- **Closed lifecycle enum + error classes, on the status and list routes:**
|
|
2042
|
+
`queued | backfilling | live | stale | failed`, plus credential-free
|
|
2043
|
+
`error.class ∈ {rpc_unavailable, rpc_rate_limited, not_abx_contract, internal}` (fixed per-class
|
|
2044
|
+
messages, never a scrubbed upstream string). Status gains top-level `headBlock` (so lag / % complete
|
|
2045
|
+
is computable without knowing a service has a watcher) and `attempts`; the list carries `status` +
|
|
2046
|
+
the error class, so a client renders "3 live, 1 backfilling, 1 failed (rpc_rate_limited)" in one
|
|
2047
|
+
request. SDK: `IndexStatus`, `IndexErrorClass`, `isAccepted()`, `indexProgress()`,
|
|
2048
|
+
`classifyIndexError()`, and `AbxServiceClient.awaitIndexed()` — one wait loop for the CLI, the
|
|
2049
|
+
effects runner, and any hosted agent.
|
|
2050
|
+
- **The same five words on your own node.** `abx status [address] [--remote [name|url]] [--watch]`:
|
|
2051
|
+
bare is the node summary (now with each project's state), an address gives lifecycle + scan floor +
|
|
2052
|
+
blocks-indexed-vs-head + cause, and `--remote` asks a service. (`status` = who is serving it and how
|
|
2053
|
+
fresh; `state` = what the chain says. Both `--help` texts now say so.)
|
|
2054
|
+
- **New observability the self-hosted node never had:** the chain watcher marks projects `stale` when
|
|
2055
|
+
it falls far behind head or its ticks keep failing (previously visible only in the node's log),
|
|
2056
|
+
re-queues a backfill interrupted by a restart (previously left registered-but-empty until a manual
|
|
2057
|
+
`abx index`), and retries a `failed` catch-up on exponential backoff instead of hammering a
|
|
2058
|
+
rate-limited RPC every tick. Lifecycle rows live in their own table: they survive a projection wipe
|
|
2059
|
+
and are never clobbered by a re-add.
|
|
2060
|
+
- **CLI:** `abx add|index --remote` prints `registered — backfilling…`, polls to `live`, then prints
|
|
2061
|
+
the same summary a synchronous service would have given; `--no-wait` returns at the 202 and names
|
|
2062
|
+
the command to check later. A post-op nudge (`ownerops`) never blocks on someone else's backfill.
|
|
2063
|
+
A caught-up project with **0 events** now warns instead of printing ✓ (a real ABX clone always emits
|
|
2064
|
+
a spine, so zero means wrong chain/floor or an RPC that didn't serve the logs).
|
|
2065
|
+
- **Conformance fixture** accepts either register shape, asserts durable-before-catch-up, lifecycle
|
|
2066
|
+
membership, `headBlock`, that a deferred catch-up actually reaches `live`, and that no error message
|
|
2067
|
+
carries a URL.
|
|
2068
|
+
- Fixed `scripts/mock-remote-service.mts`, which imported the token API by a path that resolved
|
|
2069
|
+
against `scripts/` and could silently fall back to a _published_ build outside the repo — the
|
|
2070
|
+
fixture was testing the last release instead of the working tree. The fixture also re-points
|
|
2071
|
+
scenarios by their fixture header now, so a new one can't keep a dead contract address.
|
|
2072
|
+
|
|
2073
|
+
Found by a cold-agent sweep over the above (10 parallel clean rooms, haiku + sonnet) and fixed here:
|
|
2074
|
+
|
|
2075
|
+
- **`abx status --remote <name>` with no address** parsed the flag itself as the address and sent it
|
|
2076
|
+
as a URL path segment.
|
|
2077
|
+
- **A register whose catch-up already failed** was announced as "registered — failed (…is catching
|
|
2078
|
+
up…)", and with `--no-wait` it exited 0 and then claimed the provider "now serves" the project. A
|
|
2079
|
+
known failure is now an error in both lanes — there is nothing left to wait for.
|
|
2080
|
+
- **A `failed` status said what broke but not whose problem it was.** Both the failure error and
|
|
2081
|
+
`abx status` now carry a per-class action line ("the SERVICE can't reach its chain RPC — not your
|
|
2082
|
+
key, address, or chain…"), plus a `follow` line naming `--watch`, so a red word isn't a dead end.
|
|
2083
|
+
- **A `live` project showed a misleading completion percentage.** `toBlock` only advances when a
|
|
2084
|
+
project has _events_, so a fully current project on a busy chain read as `2/202 (0%)`.
|
|
2085
|
+
`indexProgress()` now returns a ratio only while `backfilling`; `live` reads "caught up", `stale`
|
|
2086
|
+
reads "not tracking head right now".
|
|
2087
|
+
- **`--remote-token` was misattributed on a 401** — the error blamed `ABX_REMOTE_<NAME>_TOKEN` even
|
|
2088
|
+
when the caller passed an override, making the override look ignored at exactly the moment someone
|
|
2089
|
+
is testing a replacement key.
|
|
2090
|
+
- **`not_registered` on a read** (status/reindex) now names the register command instead of echoing a
|
|
2091
|
+
404, and a 5xx carrying a failure `class` becomes a wait-vs-broken error.
|
|
2092
|
+
- **`abx verify`'s summary** read `✓ 0/1 up to date` for a project with no off-chain renders at all —
|
|
2093
|
+
"zero of one succeeded" to two independent reviewers. It now says "nothing to render for this
|
|
2094
|
+
project", and otherwise leads with polarity ("N of M token(s) current").
|
|
2095
|
+
- **`abx doctor` now reports named remotes** and flags a credential stored under a name the CLI does
|
|
2096
|
+
not read (`ABX_REMOTE_<NAME>_KEY`). That fault presents as "it acts like I never gave it a key" and
|
|
2097
|
+
previously only surfaced from `abx remote <name>` — which a creator reaches _after_ doctor.
|
|
2098
|
+
- **Skill: the `npx --no-install abx version` probe was documented as failing cleanly.** It doesn't —
|
|
2099
|
+
npm will run any `abx` binary already in the npx cache, which in a real sweep reported a months-old
|
|
2100
|
+
build as the project's CLI (and if a plain `npx abx` ever ran on that machine, the bare name is a
|
|
2101
|
+
squatted package). The skill now probes `./node_modules/.bin/abx` directly.
|
|
2102
|
+
- Also documented: how a multi-word provider name folds into `ABX_REMOTE_<NAME>_*`, and what
|
|
2103
|
+
`watching: no` means on a status readout.
|
|
2104
|
+
|
|
2105
|
+
A second sweep round over those fixes caught three more, including one the first round's fix created:
|
|
2106
|
+
|
|
2107
|
+
- **`abx verify --remote` never checked byte integrity at all** — both of its lanes only ask "is there
|
|
2108
|
+
a current render / is this a placeholder", and a green ✓ from that was standing in for "the served
|
|
2109
|
+
bytes match the on-chain commitment". A reviewer hit the worst version of this: `--remote` (the form
|
|
2110
|
+
the skill tells you to use for a hosted project) reported ✓ on a token whose bytes genuinely did NOT
|
|
2111
|
+
hash-match, while bare `abx verify` on the same project reported `✗ keccak256 MISMATCH`. It now calls
|
|
2112
|
+
the service's own purpose-built `GET /api/project/:addr/verify` (which holds both the bytes and the
|
|
2113
|
+
chain) and reports that verdict separately from the render summary — and when it _can't_ run that
|
|
2114
|
+
check (no credential, older node) it says "byte integrity NOT checked" instead of leaving a ✓ to
|
|
2115
|
+
imply it passed. The remedy names both real causes (an unbridged durable locator vs. bytes that only
|
|
2116
|
+
exist on the creator's machine, which a hosted resolver can never serve).
|
|
2117
|
+
- **`abx verify` exited 0 while printing a byte MISMATCH**, in both lanes — nothing could gate on it.
|
|
2118
|
+
An integrity mismatch now fails the command; a missing render or placeholder is a normal state and
|
|
2119
|
+
still exits 0.
|
|
2120
|
+
- **`abx add --dry-run` silently ignored the flag and performed the registration**, local or remote.
|
|
2121
|
+
It now refuses and names the read-only commands (`abx state`, `abx status`) instead. Silently doing
|
|
2122
|
+
the thing when the caller asked to preview is the one outcome that must never happen.
|
|
2123
|
+
- **`PRAGMA busy_timeout` was set third in the store schema**, after the WAL switch it needs to
|
|
2124
|
+
protect — so two processes opening the same store at once (parallel CLI runs, or a co-located
|
|
2125
|
+
effects runner starting alongside the resolver) could fail outright with `database is locked`
|
|
2126
|
+
instead of waiting the moment out. It is now the first statement.
|
|
2127
|
+
|
|
2128
|
+
A third round, re-running the scenario that found the verify bug (it now catches it) turned up:
|
|
2129
|
+
|
|
2130
|
+
- **`abx add --remote` ended on "it now serves <url>"** — true about indexing, silent about whether
|
|
2131
|
+
the bytes are right, and two reviewers stopped there and reported a blank page as fixed. It now names
|
|
2132
|
+
the byte check (`abx verify <addr> --remote <name>`) in the same breath.
|
|
2133
|
+
- **`canonical:` collapsed a tri-state.** `isCanonical` is `true | false | null`, and both readouts
|
|
2134
|
+
printed "unverified" for the last two — so "the chain says this is NOT a clone of the configured
|
|
2135
|
+
factory" (a trust finding) looked identical to "the check never ran" (no factory on this chain, normal
|
|
2136
|
+
on a dev chain). Two reviewers read the collapsed word as a second failure sitting next to a real one.
|
|
2137
|
+
- **`abx verify --remote` gave a bare `fetch failed`** for an endpoint that was down, where
|
|
2138
|
+
`abx status --remote` names the host and asks whether it's running. Two commands, one condition, two
|
|
2139
|
+
error qualities — now consistent.
|
|
2140
|
+
- `abx status <addr>` printed the address twice when the project has no name.
|
|
2141
|
+
- Skill: registering with a provider on **their** hostname vs. a domain you control decides whether
|
|
2142
|
+
leaving later costs a transaction — now stated in the managed-provider section, before you bake it.
|
|
2143
|
+
|
|
2144
|
+
## 0.1.0-alpha.2
|
|
2145
|
+
|
|
2146
|
+
### Minor Changes
|
|
2147
|
+
|
|
2148
|
+
- 3745bd3: Remote services are first-class: a provider-neutral control plane, named remotes, and a service
|
|
2149
|
+
descriptor (specs/self-host-toolkit/remote-services.md).
|
|
2150
|
+
|
|
2151
|
+
- **Control plane moves to `/v1`** (hard cutover; `/admin/*` is gone — redeploy self-hosted nodes):
|
|
2152
|
+
`POST/GET /v1/projects`, `DELETE|reindex|status /v1/projects/{chainId}/{address}`,
|
|
2153
|
+
`POST /v1/effect-artifacts|effect-status`. `chainId` is explicit and validated everywhere; every
|
|
2154
|
+
error carries a machine `code` (`unauthorized` 401 · `forbidden` 403 · `unsupported_chain` ·
|
|
2155
|
+
`not_registered` · `disabled`) replacing the old prose-sniffed 404. One bearer guard replaces the
|
|
2156
|
+
four inline copies; OPTIONS preflight now answers so browser clients can send `Authorization`.
|
|
2157
|
+
- **`GET /.well-known/abx-service`** — the public service descriptor: `interfaces` (present iff
|
|
2158
|
+
actually enabled), `chains`, `auth` (with optional provider-set `signupUrl`/`docsUrl` via
|
|
2159
|
+
`ABX_SERVICE_*` env), and `render.attached` (managed rendering, probed from the runner's
|
|
2160
|
+
`/health`) — so an agent can match a project to a provider before registering.
|
|
2161
|
+
- **Named remotes in the CLI**: `--remote <name>` reads `ABX_REMOTE_<NAME>_URL`/`_TOKEN`
|
|
2162
|
+
(a managed provider's per-account key — never falls back to `ABX_RESOLVER_ADMIN_TOKEN`);
|
|
2163
|
+
`--remote <url> [--remote-token <t>]` for ad-hoc targets; bare `--remote` stays the self-host
|
|
2164
|
+
default. New `abx remote [name|url]` inspects a service's descriptor and the projects a token
|
|
2165
|
+
sees. `migrate --from/--to` accept names; only the destination needs a credential.
|
|
2166
|
+
- **The SDK gains its first HTTP surface**: `AbxServiceClient` (endpoint + injected bearer, retry
|
|
2167
|
+
on 5xx/network, immediate typed `AbxServiceError` on 4xx) — shared by the CLI and the effects
|
|
2168
|
+
runner's publish lane. `envSuffix()` is the shared env-name normalization.
|
|
2169
|
+
- **Conformance fixture**: `pnpm conformance -- <base-url> [--token …]` self-verifies any
|
|
2170
|
+
implementation; the e2e suite runs it against the reference container.
|
|
2171
|
+
|
|
2172
|
+
### Patch Changes
|
|
2173
|
+
|
|
2174
|
+
- 3745bd3: Membrane fixes found by a 20-run cold-agent regression sweep (sonnet + haiku, black-box clean rooms).
|
|
2175
|
+
|
|
2176
|
+
- **A 500 no longer leaks the node's own credentials.** An upstream RPC failure surfaced viem's
|
|
2177
|
+
message, which embeds the endpoint URL — and a keyed RPC URL _is_ a credential, so on a
|
|
2178
|
+
multi-tenant provider any tenant who could provoke a 500 got the operator's RPC key. The cause now
|
|
2179
|
+
goes to the node's log; the wire gets a generic message, an `internal_error` code, and a
|
|
2180
|
+
credential-free hint about the failure class. Normative in the remote-services spec.
|
|
2181
|
+
- **The service client no longer discards a 5xx body.** The service's own words survive the retry
|
|
2182
|
+
ladder, and an exhausted ladder says "failed — last response …" rather than mislabelling a
|
|
2183
|
+
server that answered as "unreachable". The descriptor probe drops to 2 attempts, so a typo'd
|
|
2184
|
+
provider URL fails in ~1s instead of grinding 5s, with distinct "nothing responded" vs
|
|
2185
|
+
"answered, but serves no descriptor" messages.
|
|
2186
|
+
- **Conflicting duplicate `.env` keys are reported.** First-wins is unchanged, but a stale second
|
|
2187
|
+
`ABX_RPC_URLS_<CHAIN>` line silently pointed the CLI at another network while every check read
|
|
2188
|
+
green — the symptom surfaced far away as "no contract at that address". Only genuinely
|
|
2189
|
+
_conflicting_ duplicates warn (identical repeats stay quiet).
|
|
2190
|
+
- **"No contract at …" errors now name the endpoint they asked** (redacted), because a chain key
|
|
2191
|
+
can't distinguish two RPCs that both claim it.
|
|
2192
|
+
- **A misnamed remote credential is called out.** `ABX_REMOTE_<NAME>_KEY` (or `_API_KEY`, `_SECRET`)
|
|
2193
|
+
is not read, so it previously reported as "no token" while the value sat in `.env`; both
|
|
2194
|
+
`abx remote` and the register path now name the near-miss and the correct `_TOKEN` name.
|
|
2195
|
+
- **`--dry-run` explains a missing trust anchor instead of crashing.** On a chain where the
|
|
2196
|
+
configured factory has no code, `deploy`/`deploy-series` previews died inside
|
|
2197
|
+
`predictDeterministicAddress` with a raw `returned no data ("0x")`; they now report it the way
|
|
2198
|
+
`abx predict` and a real deploy already did, and name the two ways forward. The keyless
|
|
2199
|
+
`--for` requirement also fails fast instead of after several steps of output.
|
|
2200
|
+
- **The placeholder-identity guard is one shared predicate** across all three deploy commands
|
|
2201
|
+
(it was copy-pasted, and one copy's comment claimed coverage it didn't have), pinned by a new
|
|
2202
|
+
regression test: a real send refuses tool defaults, a preview only warns.
|
|
2203
|
+
- **The served dashboard's empty state no longer prints `pnpm abx demo`** — a contributor-only
|
|
2204
|
+
invocation on a page a published user sees.
|
|
2205
|
+
|
|
2206
|
+
## 0.1.0-alpha.1
|
|
2207
|
+
|
|
2208
|
+
### Patch Changes
|
|
2209
|
+
|
|
2210
|
+
- 4074766: Fix the dashboard's block-explorer links, which were hardcoded to `https://sepolia.etherscan.io`. Every
|
|
2211
|
+
link on the page — contract, owner, implementation, each event's tx — pointed at Ethereum Sepolia no
|
|
2212
|
+
matter which chain was being served, so a dashboard for a normal `abx demo` (Base Sepolia by default)
|
|
2213
|
+
sent you to an explorer where the contract does not exist. The SDK now derives the explorer from viem's
|
|
2214
|
+
own chain metadata (`explorerUrl`/`chainById`), so adding a chain brings its explorer along and no
|
|
2215
|
+
hand-maintained table can drift. The CLI's separate copy of that table is collapsed into the same
|
|
2216
|
+
helper; `signer.ts` was already doing it correctly.
|
|
2217
|
+
|
|
2218
|
+
Drop the demo's opening "trust anchor" step. It asserted that only the canonical factory can make a
|
|
2219
|
+
token that _is_ an ABX token, which is false — anything following the protocol's event spine is an ABX
|
|
2220
|
+
token, and the factory is one route to that, not the definition. The same overclaim in the index step
|
|
2221
|
+
("verified real") now reports the fact instead: made by the canonical factory, or not. The demo opens
|
|
2222
|
+
on the renderer step, and resolving the factory no longer prints a line of its own there.
|