@artblocks/abx-cli 0.1.0-alpha.3 → 0.1.0-alpha.30

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.
Files changed (148) hide show
  1. package/CHANGELOG.md +3663 -0
  2. package/assets/renderer-scaffold/README.md +2 -2
  3. package/assets/renderer-scaffold/src/MyRenderer.sol +2 -2
  4. package/assets/renderer-scaffold/src/interfaces/IAbxFieldRenderer.sol +1 -1
  5. package/assets/renderer-scaffold/src/interfaces/IAbxParams.sol +17 -0
  6. package/assets/renderer-scaffold/test/MyRenderer.t.sol +51 -2
  7. package/dist/commands/deploy.d.ts +242 -0
  8. package/dist/commands/deploy.d.ts.map +1 -0
  9. package/dist/commands/deploy.js +4764 -0
  10. package/dist/commands/deploy.js.map +1 -0
  11. package/dist/commands/project.d.ts +257 -0
  12. package/dist/commands/project.d.ts.map +1 -0
  13. package/dist/commands/project.js +1299 -0
  14. package/dist/commands/project.js.map +1 -0
  15. package/dist/commands/reads.d.ts +64 -0
  16. package/dist/commands/reads.d.ts.map +1 -0
  17. package/dist/commands/reads.js +701 -0
  18. package/dist/commands/reads.js.map +1 -0
  19. package/dist/commands/scaffold.d.ts +73 -0
  20. package/dist/commands/scaffold.d.ts.map +1 -0
  21. package/dist/commands/scaffold.js +674 -0
  22. package/dist/commands/scaffold.js.map +1 -0
  23. package/dist/commands/service.d.ts +41 -0
  24. package/dist/commands/service.d.ts.map +1 -0
  25. package/dist/commands/service.js +618 -0
  26. package/dist/commands/service.js.map +1 -0
  27. package/dist/commands/storage.d.ts +51 -0
  28. package/dist/commands/storage.d.ts.map +1 -0
  29. package/dist/commands/storage.js +370 -0
  30. package/dist/commands/storage.js.map +1 -0
  31. package/dist/commands/submit-app.d.ts +58 -0
  32. package/dist/commands/submit-app.d.ts.map +1 -0
  33. package/dist/commands/submit-app.js +512 -0
  34. package/dist/commands/submit-app.js.map +1 -0
  35. package/dist/config.d.ts +90 -2
  36. package/dist/config.d.ts.map +1 -1
  37. package/dist/config.js +285 -11
  38. package/dist/config.js.map +1 -1
  39. package/dist/conformance.d.ts +31 -0
  40. package/dist/conformance.d.ts.map +1 -0
  41. package/dist/conformance.js +393 -0
  42. package/dist/conformance.js.map +1 -0
  43. package/dist/deps.d.ts +6 -39
  44. package/dist/deps.d.ts.map +1 -1
  45. package/dist/deps.js +4 -68
  46. package/dist/deps.js.map +1 -1
  47. package/dist/errors.d.ts +20 -0
  48. package/dist/errors.d.ts.map +1 -0
  49. package/dist/errors.js +25 -0
  50. package/dist/errors.js.map +1 -0
  51. package/dist/flag-allowlists.d.ts +53 -0
  52. package/dist/flag-allowlists.d.ts.map +1 -0
  53. package/dist/flag-allowlists.js +157 -0
  54. package/dist/flag-allowlists.js.map +1 -0
  55. package/dist/flags.d.ts +45 -0
  56. package/dist/flags.d.ts.map +1 -1
  57. package/dist/flags.js +117 -1
  58. package/dist/flags.js.map +1 -1
  59. package/dist/jsonout.d.ts +37 -0
  60. package/dist/jsonout.d.ts.map +1 -0
  61. package/dist/jsonout.js +68 -0
  62. package/dist/jsonout.js.map +1 -0
  63. package/dist/kind.d.ts +61 -0
  64. package/dist/kind.d.ts.map +1 -0
  65. package/dist/kind.js +111 -0
  66. package/dist/kind.js.map +1 -0
  67. package/dist/main.js +699 -4736
  68. package/dist/main.js.map +1 -1
  69. package/dist/mintpage.d.ts +17 -2
  70. package/dist/mintpage.d.ts.map +1 -1
  71. package/dist/mintpage.js +241 -54
  72. package/dist/mintpage.js.map +1 -1
  73. package/dist/output.d.ts +179 -0
  74. package/dist/output.d.ts.map +1 -0
  75. package/dist/output.js +756 -0
  76. package/dist/output.js.map +1 -0
  77. package/dist/ownerops.d.ts +302 -51
  78. package/dist/ownerops.d.ts.map +1 -1
  79. package/dist/ownerops.js +1780 -357
  80. package/dist/ownerops.js.map +1 -1
  81. package/dist/preview.d.ts +81 -0
  82. package/dist/preview.d.ts.map +1 -0
  83. package/dist/preview.js +535 -0
  84. package/dist/preview.js.map +1 -0
  85. package/dist/prompt.d.ts +17 -0
  86. package/dist/prompt.d.ts.map +1 -0
  87. package/dist/prompt.js +19 -0
  88. package/dist/prompt.js.map +1 -0
  89. package/dist/provision.d.ts.map +1 -1
  90. package/dist/provision.js +16 -8
  91. package/dist/provision.js.map +1 -1
  92. package/dist/remote.d.ts +153 -52
  93. package/dist/remote.d.ts.map +1 -1
  94. package/dist/remote.js +406 -46
  95. package/dist/remote.js.map +1 -1
  96. package/dist/riskgate.d.ts +58 -0
  97. package/dist/riskgate.d.ts.map +1 -0
  98. package/dist/riskgate.js +212 -0
  99. package/dist/riskgate.js.map +1 -0
  100. package/dist/scaffold.d.ts +10 -0
  101. package/dist/scaffold.d.ts.map +1 -0
  102. package/dist/scaffold.js +52 -0
  103. package/dist/scaffold.js.map +1 -0
  104. package/dist/schema.d.ts +36 -1
  105. package/dist/schema.d.ts.map +1 -1
  106. package/dist/schema.js +121 -26
  107. package/dist/schema.js.map +1 -1
  108. package/dist/script-chunks.d.ts +8 -0
  109. package/dist/script-chunks.d.ts.map +1 -0
  110. package/dist/script-chunks.js +35 -0
  111. package/dist/script-chunks.js.map +1 -0
  112. package/dist/served.d.ts +30 -0
  113. package/dist/served.d.ts.map +1 -0
  114. package/dist/served.js +112 -0
  115. package/dist/served.js.map +1 -0
  116. package/dist/signer.d.ts +13 -0
  117. package/dist/signer.d.ts.map +1 -1
  118. package/dist/signer.js +84 -15
  119. package/dist/signer.js.map +1 -1
  120. package/dist/update-check.d.ts +83 -4
  121. package/dist/update-check.d.ts.map +1 -1
  122. package/dist/update-check.js +140 -19
  123. package/dist/update-check.js.map +1 -1
  124. package/package.json +10 -6
  125. package/skill/SKILL.md +350 -150
  126. package/skill/reference/code-projects.md +183 -26
  127. package/skill/reference/creator-token.md +99 -0
  128. package/skill/reference/decisions.md +174 -0
  129. package/skill/reference/hosting.md +63 -19
  130. package/skill/reference/operating.md +116 -12
  131. package/skill/reference/setup.md +55 -6
  132. package/skill/reference/troubleshooting.md +42 -5
  133. package/dist/inspect.d.ts +0 -48
  134. package/dist/inspect.d.ts.map +0 -1
  135. package/dist/inspect.js +0 -184
  136. package/dist/inspect.js.map +0 -1
  137. package/dist/migrate.d.ts +0 -65
  138. package/dist/migrate.d.ts.map +0 -1
  139. package/dist/migrate.js +0 -180
  140. package/dist/migrate.js.map +0 -1
  141. package/dist/onchain-uri.d.ts +0 -97
  142. package/dist/onchain-uri.d.ts.map +0 -1
  143. package/dist/onchain-uri.js +0 -243
  144. package/dist/onchain-uri.js.map +0 -1
  145. package/dist/upload.d.ts +0 -28
  146. package/dist/upload.d.ts.map +0 -1
  147. package/dist/upload.js +0 -41
  148. package/dist/upload.js.map +0 -1
package/dist/kind.d.ts ADDED
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Centralized token-kind detection — one shared probe for the six concrete ABX token types, from
3
+ * three plain `eth_call`s (no events, no local index). Before this existed, the same "is this a
4
+ * 721 or an edition, and which concrete type" question was answered by ad-hoc, slightly different
5
+ * probes scattered across `commands/project.ts` (`state`), `commands/scaffold.ts`
6
+ * (`assertMintableSeries`), and `ownerops.ts` (the `set-param-hooks` guard) — this gives it one
7
+ * name and one place to live, so a new call site (mint/transfer/minter kind-awareness) doesn't
8
+ * grow a fourth copy.
9
+ *
10
+ * The discriminator mirrors the SDK's `ProjectState.contractType` union (reconstruct.ts) exactly,
11
+ * but this is a LIVE probe, not an event fold: `state`, `mint-page`, and the owner-op guards need a
12
+ * snapshot with no local index and no getLogs scan.
13
+ *
14
+ * ERC-165 0xd9b67a26 (ERC-1155) → the edition family (OneOfOneEdition / EditionImage / EditionCode)
15
+ * maxInvocations() → present on the multi-id twins (Series/SeriesCode, EditionImage/Code)
16
+ * the Params/ConfigurableParams surface (`paramHooks()`) → present only on the two code twins
17
+ *
18
+ * Every probe is defensive (try/catch → false) — a getter absent because the extension isn't
19
+ * composed and a getter absent because there's no contract at that address read identically here.
20
+ * That made the three negative probes collapse to the SAME answer for an address with no code at
21
+ * all: all three fail, so the ladder fell through to its `1of1` default and every empty address was
22
+ * reported as a confident "OneOfOneImage". Callers were supposed to rule that out first (`state`
23
+ * does), but `set-max-supply` and `minter buy` did not, and told edition owners "…is a OneOfOneImage
24
+ * (721) — drop your edition flags" whenever the address was mistyped or the chain was wrong (the
25
+ * default is base-sepolia, so a Sepolia contract hits this immediately). So the existence check now
26
+ * lives HERE, once, ahead of the probes — every call site inherits it and cannot forget it.
27
+ */
28
+ import type { Address, PublicClient } from 'viem';
29
+ /** Mirrors the SDK's `ProjectState.contractType` (reconstruct.ts) — the 721 ladder and its
30
+ * ERC-1155 edition twin, one rung apart. */
31
+ export type TokenKind = '1of1' | 'series' | 'code' | '1of1-edition' | 'edition' | 'edition-code';
32
+ export interface TokenKindInfo {
33
+ kind: TokenKind;
34
+ /** The single fact most call sites actually branch on — true for the three ERC-1155 twins. */
35
+ isEdition: boolean;
36
+ /** The concrete contract name, for a readout ("EditionImage (edition) state"). */
37
+ label: string;
38
+ }
39
+ /**
40
+ * Which of the six concrete ABX token types `address` is — the shared discriminator every command
41
+ * that branches on kind should call instead of re-deriving its own probe. Three live `eth_call`s,
42
+ * in the order that lets each short-circuit the next: ERC-165 first (edition family or not), then
43
+ * `maxInvocations()` (multi-id or not), then the Params surface (code or not).
44
+ */
45
+ export declare function detectTokenKind(client: PublicClient, address: Address): Promise<TokenKindInfo>;
46
+ /** Convenience for a call site that only needs the one boolean (is this an ERC-1155 edition, at
47
+ * all) — the cheapest single probe, so a guard that doesn't need the full breakdown doesn't pay
48
+ * for the other two calls. */
49
+ export declare function isEditionContract(client: PublicClient, address: Address): Promise<boolean>;
50
+ /** Human, one-line description of a kind — `"EditionImage (edition)"`, `"SeriesImage (series)"` —
51
+ * the shared phrasing for a readout header (`state`, `tokens`). */
52
+ export declare function describeKind(info: TokenKindInfo): string;
53
+ /** The ConfigurableParams / PostParams surface — SeriesCode and EditionCode only. */
54
+ export declare function hasParamsSurface(info: TokenKindInfo): boolean;
55
+ /**
56
+ * Refuse a PostParams command (set-schema / configure-param / retire-param) against a contract
57
+ * that does not compose ConfigurableParams — before any signing prompt, and as a capability
58
+ * mismatch rather than a raw viem revert. Same probe `set-param-hooks` already ran.
59
+ */
60
+ export declare function assertHasParamsSurface(client: PublicClient, address: Address, what: string): Promise<TokenKindInfo>;
61
+ //# sourceMappingURL=kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kind.d.ts","sourceRoot":"","sources":["../src/kind.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAAK,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAEhD;6CAC6C;AAC7C,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,GAAG,SAAS,GAAG,cAAc,CAAC;AAEjG,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,8FAA8F;IAC9F,SAAS,EAAE,OAAO,CAAC;IACnB,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;CACf;AAkED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CAYpG;AAED;;+BAE+B;AAC/B,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAEhG;AAED;oEACoE;AACpE,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAExD;AAED,qFAAqF;AACrF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAE7D;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,aAAa,CAAC,CASxB"}
package/dist/kind.js ADDED
@@ -0,0 +1,111 @@
1
+ /** ERC-165 id of ERC-1155 itself — what sorts a clone into the edition family (anchors.ts's
2
+ * `ERC1155_INTERFACE_ID`, restated here rather than imported: it's a fixed standard id, not SDK
3
+ * surface). */
4
+ const ERC1155_INTERFACE_ID = '0xd9b67a26';
5
+ const KIND_PROBE_ABI = [
6
+ { type: 'function', name: 'supportsInterface', stateMutability: 'view', inputs: [{ type: 'bytes4' }], outputs: [{ type: 'bool' }] },
7
+ { type: 'function', name: 'maxInvocations', stateMutability: 'view', inputs: [], outputs: [{ type: 'uint256' }] },
8
+ { type: 'function', name: 'paramHooks', stateMutability: 'view', inputs: [], outputs: [{ type: 'address' }, { type: 'address' }, { type: 'address' }] },
9
+ ];
10
+ /**
11
+ * Refuse to infer a kind for an address that holds no contract. Without this the three negative
12
+ * probes below are indistinguishable from "nothing deployed here", and the ladder's `1of1` default
13
+ * becomes a confident lie about a specific contract type (see the file docstring).
14
+ *
15
+ * Deliberately silent when the check itself can't run (an RPC hiccup → `getCode` throws): a network
16
+ * blip must not become a "no contract" claim, so we fall through to the probes exactly as before and
17
+ * let whatever the caller was doing surface its own error. Same stance as `assertContractExists`.
18
+ */
19
+ async function assertHasCode(client, address) {
20
+ let code;
21
+ try {
22
+ code = await client.getCode({ address });
23
+ }
24
+ catch {
25
+ return; // can't tell — don't manufacture a verdict
26
+ }
27
+ if (code && code !== '0x')
28
+ return;
29
+ const chain = client.chain?.name ?? 'the active chain';
30
+ throw new Error(`no contract at ${address} on ${chain} — so there is no token type to read. ` +
31
+ `Check the address, and check the network: a contract that lives on another chain reads as empty here ` +
32
+ `(the chain is picked with ABX_CHAIN; base-sepolia is the default). Owner ops run AFTER deploy.`);
33
+ }
34
+ async function supportsErc1155(client, address) {
35
+ try {
36
+ return (await client.readContract({ address, abi: KIND_PROBE_ABI, functionName: 'supportsInterface', args: [ERC1155_INTERFACE_ID] }));
37
+ }
38
+ catch {
39
+ return false;
40
+ }
41
+ }
42
+ async function hasMaxInvocations(client, address) {
43
+ try {
44
+ await client.readContract({ address, abi: KIND_PROBE_ABI, functionName: 'maxInvocations' });
45
+ return true;
46
+ }
47
+ catch {
48
+ return false;
49
+ }
50
+ }
51
+ /** The Params/ConfigurableParams surface probe — `paramHooks()` exists only on SeriesCode/
52
+ * EditionCode (mirrors the exact check `ownerops.ts`'s `cmdSetParamHooks` already ran ad-hoc). */
53
+ async function hasConfigurableParams(client, address) {
54
+ try {
55
+ await client.readContract({ address, abi: KIND_PROBE_ABI, functionName: 'paramHooks' });
56
+ return true;
57
+ }
58
+ catch {
59
+ return false;
60
+ }
61
+ }
62
+ /**
63
+ * Which of the six concrete ABX token types `address` is — the shared discriminator every command
64
+ * that branches on kind should call instead of re-deriving its own probe. Three live `eth_call`s,
65
+ * in the order that lets each short-circuit the next: ERC-165 first (edition family or not), then
66
+ * `maxInvocations()` (multi-id or not), then the Params surface (code or not).
67
+ */
68
+ export async function detectTokenKind(client, address) {
69
+ await assertHasCode(client, address);
70
+ const isEdition = await supportsErc1155(client, address);
71
+ const capped = await hasMaxInvocations(client, address);
72
+ if (isEdition) {
73
+ if (!capped)
74
+ return { kind: '1of1-edition', isEdition: true, label: 'OneOfOneEdition' };
75
+ const code = await hasConfigurableParams(client, address);
76
+ return code ? { kind: 'edition-code', isEdition: true, label: 'EditionCode' } : { kind: 'edition', isEdition: true, label: 'EditionImage' };
77
+ }
78
+ if (!capped)
79
+ return { kind: '1of1', isEdition: false, label: 'OneOfOneImage' };
80
+ const code = await hasConfigurableParams(client, address);
81
+ return code ? { kind: 'code', isEdition: false, label: 'SeriesCode' } : { kind: 'series', isEdition: false, label: 'SeriesImage' };
82
+ }
83
+ /** Convenience for a call site that only needs the one boolean (is this an ERC-1155 edition, at
84
+ * all) — the cheapest single probe, so a guard that doesn't need the full breakdown doesn't pay
85
+ * for the other two calls. */
86
+ export async function isEditionContract(client, address) {
87
+ return supportsErc1155(client, address);
88
+ }
89
+ /** Human, one-line description of a kind — `"EditionImage (edition)"`, `"SeriesImage (series)"` —
90
+ * the shared phrasing for a readout header (`state`, `tokens`). */
91
+ export function describeKind(info) {
92
+ return `${info.label} (${info.kind === '1of1' ? '1/1' : info.kind === '1of1-edition' ? 'edition' : info.kind})`;
93
+ }
94
+ /** The ConfigurableParams / PostParams surface — SeriesCode and EditionCode only. */
95
+ export function hasParamsSurface(info) {
96
+ return info.kind === 'code' || info.kind === 'edition-code';
97
+ }
98
+ /**
99
+ * Refuse a PostParams command (set-schema / configure-param / retire-param) against a contract
100
+ * that does not compose ConfigurableParams — before any signing prompt, and as a capability
101
+ * mismatch rather than a raw viem revert. Same probe `set-param-hooks` already ran.
102
+ */
103
+ export async function assertHasParamsSurface(client, address, what) {
104
+ const kind = await detectTokenKind(client, address);
105
+ if (!hasParamsSurface(kind)) {
106
+ throw new Error(`${address} exposes no PostParams — ${what} is a SeriesCode/EditionCode feature. ` +
107
+ `${kind.label} has no configurable params.`);
108
+ }
109
+ return kind;
110
+ }
111
+ //# sourceMappingURL=kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kind.js","sourceRoot":"","sources":["../src/kind.ts"],"names":[],"mappings":"AAyCA;;gBAEgB;AAChB,MAAM,oBAAoB,GAAG,YAAqB,CAAC;AAEnD,MAAM,cAAc,GAAG;IACrB,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,EAAC;IAC7H,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAC,IAAI,EAAE,SAAS,EAAC,CAAC,EAAC;IAC7G,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,eAAe,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