@artblocks/abx-cli 0.1.0-alpha.2 → 0.1.0-alpha.20

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 (133) hide show
  1. package/CHANGELOG.md +1762 -0
  2. package/assets/renderer-scaffold/src/interfaces/IAbxParams.sol +17 -0
  3. package/assets/renderer-scaffold/test/MyRenderer.t.sol +51 -2
  4. package/dist/commands/deploy.d.ts +206 -0
  5. package/dist/commands/deploy.d.ts.map +1 -0
  6. package/dist/commands/deploy.js +4004 -0
  7. package/dist/commands/deploy.js.map +1 -0
  8. package/dist/commands/project.d.ts +241 -0
  9. package/dist/commands/project.d.ts.map +1 -0
  10. package/dist/commands/project.js +1044 -0
  11. package/dist/commands/project.js.map +1 -0
  12. package/dist/commands/reads.d.ts +64 -0
  13. package/dist/commands/reads.d.ts.map +1 -0
  14. package/dist/commands/reads.js +667 -0
  15. package/dist/commands/reads.js.map +1 -0
  16. package/dist/commands/scaffold.d.ts +71 -0
  17. package/dist/commands/scaffold.d.ts.map +1 -0
  18. package/dist/commands/scaffold.js +544 -0
  19. package/dist/commands/scaffold.js.map +1 -0
  20. package/dist/commands/service.d.ts +41 -0
  21. package/dist/commands/service.d.ts.map +1 -0
  22. package/dist/commands/service.js +618 -0
  23. package/dist/commands/service.js.map +1 -0
  24. package/dist/commands/storage.d.ts +37 -0
  25. package/dist/commands/storage.d.ts.map +1 -0
  26. package/dist/commands/storage.js +335 -0
  27. package/dist/commands/storage.js.map +1 -0
  28. package/dist/config.d.ts +91 -2
  29. package/dist/config.d.ts.map +1 -1
  30. package/dist/config.js +244 -11
  31. package/dist/config.js.map +1 -1
  32. package/dist/conformance.d.ts +31 -0
  33. package/dist/conformance.d.ts.map +1 -0
  34. package/dist/conformance.js +371 -0
  35. package/dist/conformance.js.map +1 -0
  36. package/dist/deps.d.ts +6 -39
  37. package/dist/deps.d.ts.map +1 -1
  38. package/dist/deps.js +4 -68
  39. package/dist/deps.js.map +1 -1
  40. package/dist/errors.d.ts +20 -0
  41. package/dist/errors.d.ts.map +1 -0
  42. package/dist/errors.js +25 -0
  43. package/dist/errors.js.map +1 -0
  44. package/dist/flags.d.ts +41 -0
  45. package/dist/flags.d.ts.map +1 -1
  46. package/dist/flags.js +94 -1
  47. package/dist/flags.js.map +1 -1
  48. package/dist/jsonout.d.ts +37 -0
  49. package/dist/jsonout.d.ts.map +1 -0
  50. package/dist/jsonout.js +68 -0
  51. package/dist/jsonout.js.map +1 -0
  52. package/dist/kind.d.ts +48 -0
  53. package/dist/kind.d.ts.map +1 -0
  54. package/dist/kind.js +69 -0
  55. package/dist/kind.js.map +1 -0
  56. package/dist/main.js +509 -4708
  57. package/dist/main.js.map +1 -1
  58. package/dist/mintpage.d.ts +17 -2
  59. package/dist/mintpage.d.ts.map +1 -1
  60. package/dist/mintpage.js +214 -52
  61. package/dist/mintpage.js.map +1 -1
  62. package/dist/output.d.ts +148 -0
  63. package/dist/output.d.ts.map +1 -0
  64. package/dist/output.js +634 -0
  65. package/dist/output.js.map +1 -0
  66. package/dist/ownerops.d.ts +132 -44
  67. package/dist/ownerops.d.ts.map +1 -1
  68. package/dist/ownerops.js +1067 -327
  69. package/dist/ownerops.js.map +1 -1
  70. package/dist/preview.d.ts +81 -0
  71. package/dist/preview.d.ts.map +1 -0
  72. package/dist/preview.js +535 -0
  73. package/dist/preview.js.map +1 -0
  74. package/dist/prompt.d.ts +17 -0
  75. package/dist/prompt.d.ts.map +1 -0
  76. package/dist/prompt.js +19 -0
  77. package/dist/prompt.js.map +1 -0
  78. package/dist/provision.d.ts.map +1 -1
  79. package/dist/provision.js +10 -7
  80. package/dist/provision.js.map +1 -1
  81. package/dist/remote.d.ts +134 -53
  82. package/dist/remote.d.ts.map +1 -1
  83. package/dist/remote.js +352 -46
  84. package/dist/remote.js.map +1 -1
  85. package/dist/riskgate.d.ts +29 -0
  86. package/dist/riskgate.d.ts.map +1 -0
  87. package/dist/riskgate.js +91 -0
  88. package/dist/riskgate.js.map +1 -0
  89. package/dist/scaffold.d.ts +10 -0
  90. package/dist/scaffold.d.ts.map +1 -0
  91. package/dist/scaffold.js +52 -0
  92. package/dist/scaffold.js.map +1 -0
  93. package/dist/schema.d.ts +18 -1
  94. package/dist/schema.d.ts.map +1 -1
  95. package/dist/schema.js +74 -23
  96. package/dist/schema.js.map +1 -1
  97. package/dist/served.d.ts +30 -0
  98. package/dist/served.d.ts.map +1 -0
  99. package/dist/served.js +112 -0
  100. package/dist/served.js.map +1 -0
  101. package/dist/signer.d.ts +13 -0
  102. package/dist/signer.d.ts.map +1 -1
  103. package/dist/signer.js +80 -14
  104. package/dist/signer.js.map +1 -1
  105. package/dist/update-check.d.ts +58 -4
  106. package/dist/update-check.d.ts.map +1 -1
  107. package/dist/update-check.js +92 -11
  108. package/dist/update-check.js.map +1 -1
  109. package/package.json +10 -6
  110. package/skill/SKILL.md +104 -60
  111. package/skill/reference/code-projects.md +87 -13
  112. package/skill/reference/creator-token.md +86 -0
  113. package/skill/reference/decisions.md +61 -0
  114. package/skill/reference/hosting.md +48 -15
  115. package/skill/reference/operating.md +29 -8
  116. package/skill/reference/setup.md +10 -3
  117. package/skill/reference/troubleshooting.md +31 -4
  118. package/dist/inspect.d.ts +0 -48
  119. package/dist/inspect.d.ts.map +0 -1
  120. package/dist/inspect.js +0 -184
  121. package/dist/inspect.js.map +0 -1
  122. package/dist/migrate.d.ts +0 -65
  123. package/dist/migrate.d.ts.map +0 -1
  124. package/dist/migrate.js +0 -180
  125. package/dist/migrate.js.map +0 -1
  126. package/dist/onchain-uri.d.ts +0 -97
  127. package/dist/onchain-uri.d.ts.map +0 -1
  128. package/dist/onchain-uri.js +0 -243
  129. package/dist/onchain-uri.js.map +0 -1
  130. package/dist/upload.d.ts +0 -28
  131. package/dist/upload.d.ts.map +0 -1
  132. package/dist/upload.js +0 -41
  133. package/dist/upload.js.map +0 -1
package/dist/config.js CHANGED
@@ -1,7 +1,9 @@
1
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
1
+ import { mkdirSync, writeFileSync } from 'node:fs';
2
2
  import { dirname, resolve } from 'node:path';
3
- import { arweaveAddress, generateArweaveJwk, } from '@artblocks/abx-storage';
4
- import { resolveChain, DEFAULT_CHAIN_KEY, resolveFactory, resolveSeriesFactory, resolveRenderer, resolveChunkStore, resolveFixedPriceMinter, envSigningKey, } from '@artblocks/abx-sdk';
3
+ import { arweaveAddress, generateArweaveJwk, resolveArweaveJwk, assessStorageReadiness, assessTurboFunds, isTurboArweave, planTurboUpload, resolveBackend, } from '@artblocks/abx-storage';
4
+ import { resolveChain, DEFAULT_CHAIN_KEY, resolveFactory, resolveSeriesFactory, resolveRenderer, resolveChunkStore, resolveFixedPriceMinter, resolveOneOfOneEditionFactory, resolveEditionFactory, resolveEditionCodeFactory, resolveFixedPriceMinter1155, envSigningKey, explorerUrl, METADATA_REPRESENTATION as R, } from '@artblocks/abx-sdk';
5
+ import { SelfHostIndexer } from '@artblocks/abx-indexer';
6
+ import { bold, dim, g, info, warn } from './output.js';
5
7
  /**
6
8
  * Runtime resolution for the CLI — deliberately **stateless about decisions**. There is no
7
9
  * tool-written config file: every choice is resolved fresh per invocation from explicit flags,
@@ -16,11 +18,43 @@ import { resolveChain, DEFAULT_CHAIN_KEY, resolveFactory, resolveSeriesFactory,
16
18
  * The only thing that persists on disk is the project-local, chain-rebuildable projection
17
19
  * (the indexer's SQLite store under the data dir) — that's DATA, not config.
18
20
  */
19
- const CHAIN = process.env.ABX_CHAIN ?? DEFAULT_CHAIN_KEY;
20
- const chainId = () => resolveChain(CHAIN).id;
21
+ /**
22
+ * The active chain key — the ONE place it's derived (`ABX_CHAIN` the shipped default). main.ts
23
+ * and ownerops.ts each used to carry their own identical `process.env.ABX_CHAIN ?? DEFAULT_CHAIN_KEY`
24
+ * (one flagged "MUST match main.ts/config.ts" in its own comment) — two copies whose only job was
25
+ * to agree with each other, which is exactly the setup a future edit drifts out of. Both import it
26
+ * from here now.
27
+ */
28
+ export const CHAIN = process.env.ABX_CHAIN ?? DEFAULT_CHAIN_KEY;
29
+ export const chainId = () => resolveChain(CHAIN).id;
30
+ // Block explorer base for the tx/address links the CLI prints. Derived from viem's chain metadata via
31
+ // the SDK (see explorerUrl) rather than a local table — this used to be a hand-maintained map, which is
32
+ // the same shape of bug that had the token-api dashboard sending every Base Sepolia link to Etherscan.
33
+ //
34
+ // LAZY (a function, not a top-level const): main.ts's `assertKnownChainEnv` has to run BEFORE any
35
+ // chain-derived value is computed, so an unknown ABX_CHAIN gets its graceful "not a chain this
36
+ // toolkit ships" message instead of a raw `resolveChain` stack trace. That guard runs at module
37
+ // load, before main.ts's own body — but config.ts is imported (and fully evaluated) even earlier,
38
+ // as part of loading main.ts's imports. An eager `const EXPLORER = explorerUrl(resolveChain(CHAIN).id)`
39
+ // here would evaluate on a bad ABX_CHAIN before the guard ever gets a turn, exactly the crash it
40
+ // exists to prevent (see that function's doc comment) — so this is a getter, resolved lazily on
41
+ // each read, the same pattern `chainId()` above already uses.
42
+ export const explorerBase = () => explorerUrl(resolveChain(CHAIN).id);
21
43
  export function dataDir() {
22
44
  return process.env.ABX_DATA_DIR ?? resolve(process.cwd(), '.abx-self-host');
23
45
  }
46
+ // ── the local indexer: one instance per process ───────────────────────────────
47
+ // `new SelfHostIndexer()` opens (and premigrate/schema-execs) the SAME on-disk SQLite db every
48
+ // time — a dozen call sites across main.ts/ownerops.ts each constructed their own, so a single CLI
49
+ // invocation that touches several of them (e.g. a deploy that also registers + reindexes) paid that
50
+ // open/migrate cost repeatedly for what is, within one process, always the same store. Memoized here
51
+ // so every call site shares one instance instead.
52
+ let _localIndexer;
53
+ /** The process-lifetime local indexer (this node's own SQLite-backed projection). Never pass a
54
+ * chain-varying argument through here — it's a bare singleton, constructed once on first use. */
55
+ export function localIndexer() {
56
+ return (_localIndexer ??= new SelfHostIndexer());
57
+ }
24
58
  /**
25
59
  * Whether `baseUrl` is a localhost/loopback address — a URL that, once baked into an on-chain
26
60
  * `tokenURI`/`contractURI`, resolves for NO ONE off this machine. The single source of truth for
@@ -30,6 +64,25 @@ export function dataDir() {
30
64
  export function loopbackBaseUrl(baseUrl) {
31
65
  return /^https?:\/\/(localhost|127\.0\.0\.1|0\.0\.0\.0|\[::1\])(?:[:/]|$)/i.test(baseUrl);
32
66
  }
67
+ /**
68
+ * A short faucet pointer for a testnet — a 0-balance signer's #1 next step. A known URL plus a
69
+ * search hint (URLs rot; the search always works), so "fund it" is never a dead end.
70
+ *
71
+ * Lives here rather than in main.ts because the browser-wallet signing prompt needs it too, and
72
+ * importing main.ts would execute the CLI. That prompt is the one funding surface `warnUnfunded`
73
+ * can't cover: on the `--sign` lane without `--for` we don't learn the address until the wallet
74
+ * connects, so the up-front balance check never runs and the only warning a creator would get is
75
+ * a failed transaction.
76
+ */
77
+ export function faucetHint(chainKey) {
78
+ const url = {
79
+ 'base-sepolia': 'https://portal.cdp.coinbase.com/products/faucet',
80
+ sepolia: 'https://www.alchemy.com/faucets/ethereum-sepolia',
81
+ };
82
+ return url[chainKey]
83
+ ? `get free test ETH from a ${chainKey} faucet (${url[chainKey]} — or search "${chainKey} faucet"), usually ≤1 min`
84
+ : `get test ETH from a "${chainKey}" faucet`;
85
+ }
33
86
  // ── canonical infrastructure (shipped manifest → env → flag) ─────────────────
34
87
  // Thin CLI wrappers over the SDK resolvers, pinned to the active chain. Return null (not
35
88
  // undefined) to read cleanly at call sites (`factoryAddress() ?? 'none'`). `null` means the
@@ -54,6 +107,23 @@ export function chunkStoreAddress(override) {
54
107
  export function fixedPriceMinterAddress(override) {
55
108
  return resolveFixedPriceMinter(chainId(), override) ?? null;
56
109
  }
110
+ // ── ERC-1155 editions — the same override → env → manifest resolution, one rung finer ────────────
111
+ /** Canonical 1/1-edition clone factory — flag override → `ABX_ONE_OF_ONE_EDITION_FACTORY` → manifest. */
112
+ export function oneOfOneEditionFactoryAddress(override) {
113
+ return resolveOneOfOneEditionFactory(chainId(), override) ?? null;
114
+ }
115
+ /** Canonical multi-artwork edition clone factory — flag override → `ABX_EDITION_FACTORY` → manifest. */
116
+ export function editionFactoryAddress(override) {
117
+ return resolveEditionFactory(chainId(), override) ?? null;
118
+ }
119
+ /** Canonical code-project edition clone factory — flag override → `ABX_EDITION_CODE_FACTORY` → manifest. */
120
+ export function editionCodeFactoryAddress(override) {
121
+ return resolveEditionCodeFactory(chainId(), override) ?? null;
122
+ }
123
+ /** Canonical shared fixed-price EDITION minter — flag override → `ABX_FIXED_PRICE_MINTER_1155` → manifest. */
124
+ export function fixedPriceMinter1155Address(override) {
125
+ return resolveFixedPriceMinter1155(chainId(), override) ?? null;
126
+ }
57
127
  /** Resolve the storage-signer lane: flag → `ABX_STORAGE_SIGNER` → default `arweave`. */
58
128
  export function storageSignerChoice(ov = {}) {
59
129
  const v = ov.storageSigner ?? process.env.ABX_STORAGE_SIGNER;
@@ -149,12 +219,12 @@ function parseJwk(raw) {
149
219
  * and **never silently replaces** a corrupt key (that would strand its credits) — a bad key throws.
150
220
  */
151
221
  export function loadArweaveJwk() {
152
- if (process.env.ARWEAVE_JWK)
153
- return parseJwk(process.env.ARWEAVE_JWK);
154
- const p = arweaveKeyFile();
155
- if (existsSync(p))
156
- return JSON.parse(readFileSync(p, 'utf8'));
157
- return undefined;
222
+ // Delegate to the storage package's resolver so the CLI and the SDK cannot disagree about where
223
+ // the identity lives — they did, and porting a working CLI flow to the SDK broke every upload with
224
+ // "Arweave via Turbo needs an identity". It also owns the diagnostics: a bare `JSON.parse` here
225
+ // reported an empty key file as "Unexpected end of JSON input", naming a parser instead of the
226
+ // file or the remedy.
227
+ return resolveArweaveJwk();
158
228
  }
159
229
  /** Load or CREATE the managed Turbo identity, persisting a fresh key (0600) to the data dir. */
160
230
  export function ensureArweaveJwk() {
@@ -181,4 +251,167 @@ function ensureManagedArweaveJwk() {
181
251
  }
182
252
  return r.jwk;
183
253
  }
254
+ /** Per-invocation storage overrides parsed from deploy flags (the hybrid: config, overridable). */
255
+ export function storageOverrides(flags) {
256
+ return {
257
+ backend: flags.backend,
258
+ endpoint: flags.endpoint,
259
+ bucket: flags.bucket,
260
+ region: flags.region,
261
+ prefix: flags.prefix,
262
+ publicBase: flags['public-base'],
263
+ gateway: flags.gateway,
264
+ mode: flags.mode,
265
+ apiUrl: flags['api-url'],
266
+ uploadUrl: flags['upload-url'],
267
+ provider: flags.provider,
268
+ storageSigner: flags['storage-signer'],
269
+ };
270
+ }
271
+ /** Surface the free-vs-credit decision for a Turbo upload from the LOCAL byte size — no network,
272
+ * so it works in `--dry-run` too. Under 100 KiB is free; above, it draws on prepaid credits. The
273
+ * decision itself (`isTurboArweave` + the size threshold) is the storage package's
274
+ * {@link planTurboUpload}; this is just its narration. */
275
+ export function noteArweavePlan(opts, size) {
276
+ const plan = planTurboUpload(opts, size);
277
+ if (!plan)
278
+ return;
279
+ if (!plan.chargeable) {
280
+ info(`Turbo: ${plan.sizeKb} KB is under the 100 KB free tier → permanent upload is FREE — no credits, no setup.`);
281
+ }
282
+ else {
283
+ info(`Turbo: ${plan.sizeKb} KB exceeds the 100 KB free tier → draws on prepaid credits. Check \`abx storage balance\`; top up with \`abx storage topup --usd <n>\` if short.`);
284
+ }
285
+ }
286
+ /**
287
+ * Dry-run storage-readiness: surface what a REAL off-chain deploy needs, from local info only, so
288
+ * "dry-run passes → deploy fails at upload" can't happen. Covers Arweave credit needs, a missing
289
+ * Pinata JWT, and a missing cloud public base. `sizes` are the per-file byte sizes. The readiness
290
+ * FACTS (chargeable-bytes accounting, the USD estimate, the missing-JWT/public-base checks) are the
291
+ * storage package's {@link assessStorageReadiness}; this is just its narration.
292
+ */
293
+ export async function noteStorageReadiness(opts, sizes) {
294
+ const report = await assessStorageReadiness(opts, sizes);
295
+ if (report.backend === 'arweave') {
296
+ if (report.overCount === 0) {
297
+ info(`Turbo: all ${report.totalCount} file(s) under the 100 KB free tier → FREE permanent upload, no setup.`);
298
+ }
299
+ else {
300
+ // Best-effort real-rate USD estimate; silently omitted if the price API isn't reachable.
301
+ const cost = report.usd === null ? '' : ` ≈ ${report.usd < 0.01 ? '<$0.01' : '$' + report.usd.toFixed(2)} at current Turbo rates`;
302
+ info(`Turbo: ${report.overCount}/${report.totalCount} file(s) exceed the 100 KB free tier (~${report.totalKb} KB total)${cost} → draw on prepaid credits. Check \`abx storage balance --backend arweave\`; top up with \`abx storage topup --usd <n> --backend arweave\` if short.`);
303
+ }
304
+ }
305
+ else if (report.backend === 'ipfs' && report.pinataMissingJwt) {
306
+ warn('IPFS pinata mode but PINATA_JWT is not set — a real deploy will FAIL at upload. Set PINATA_JWT in .env (or --mode kubo with a local node).');
307
+ }
308
+ else if (report.backend === 'cloud' && report.missingPublicBase) {
309
+ warn('cloud/S3 has no public read base — a real deploy will FAIL. Set ABX_S3_PUBLIC_BASE or pass --public-base <bucket-or-cdn-url> (it is baked on-chain).');
310
+ }
311
+ }
312
+ /** Create + announce the managed Turbo identity right before the first upload that needs it.
313
+ * Mutates `opts.arweave.jwk` so the resolved backend can sign. No-op for non-Turbo custody, or
314
+ * when an ETH identity (`.env` key or a wallet-session remote signer) is already selected — that
315
+ * identity pays, so we don't mint an unused managed key. */
316
+ export function ensureArweaveIdentityForUpload(opts) {
317
+ if (!isTurboArweave(opts))
318
+ return;
319
+ if (opts.arweave?.jwk || opts.arweave?.ethSignerKey || opts.arweave?.remoteEth)
320
+ return; // identity already chosen
321
+ const { jwk, address, created, path } = ensureArweaveJwk();
322
+ opts.arweave.jwk = jwk;
323
+ if (created) {
324
+ warn(`created an Arweave identity for Turbo uploads → ${dim(path)}`);
325
+ info(` address ${g(address)} — BACK THIS UP (\`abx storage backup-key --out <path>\`). It signs uploads and holds any credits you buy; lose it and leftover credits are stranded.`);
326
+ }
327
+ }
328
+ /**
329
+ * Pre-upload FUNDS guard for Turbo (arweave). Runs before a real off-chain deploy so a credit
330
+ * shortfall stops *here* — with the exact address + fund options — instead of failing mid-deploy
331
+ * after some txs already landed. Only fires for chargeable files (≥100 KB); free-tier uploads skip
332
+ * it. Best-effort: if the price/balance APIs are unreachable it degrades to a warning, never a false
333
+ * block. `sizes` are per-file byte sizes. The funds decision itself is the storage package's
334
+ * {@link assessTurboFunds}; this is the narration + the throw messages built from its report.
335
+ */
336
+ export async function assertTurboFundsForUpload(opts, sizes, walletAddr) {
337
+ if (!isTurboArweave(opts))
338
+ return;
339
+ ensureArweaveIdentityForUpload(opts); // so there's an address to check
340
+ const check = await assessTurboFunds(opts.arweave, sizes, walletAddr);
341
+ if (!check || !check.short)
342
+ return;
343
+ const { address, isEth, haveWinc, needWinc, walletCredits } = check;
344
+ // Managed-key lane is short → BEFORE proposing a top-up, check whether the creator's OWN wallet
345
+ // already holds Turbo credits (public balance-by-address, no key). If so, spending those via
346
+ // `--storage-signer eth` beats paying again. This is the "check my wallet too" the flow needs.
347
+ if (!isEth && walletAddr && walletCredits && walletCredits.winc > 0 && (needWinc ? walletCredits.winc >= needWinc : true)) {
348
+ throw new Error([
349
+ `The managed Arweave key has no credits — but your wallet ${g(walletAddr)} already holds ${bold(walletCredits.credits)} Turbo credits.`,
350
+ ` Use those instead of paying again — re-run with:`,
351
+ ` • ${bold('--storage-signer eth --sign')} ${dim('(your browser wallet signs the uploads; its credits pay — no key in .env)')}`,
352
+ ` • or ${bold('--storage-signer eth')} ${dim('(if that wallet’s key is already in .env)')}`,
353
+ ` ${dim('No top-up needed.')}`,
354
+ ].join('\n'));
355
+ }
356
+ const lines = [
357
+ `Turbo credits look insufficient for this upload (${check.chargeableCount} file(s) over the 100 KB free tier).`,
358
+ ` identity ${g(address)} ${dim(isEth ? '(your EVM wallet — an ETH Turbo identity)' : '(the CLI-managed Arweave key, NOT your ETH wallet)')}`,
359
+ ` balance ${(haveWinc / 1e12).toFixed(4)} credits${needWinc ? dim(` · need ~${(needWinc / 1e12).toFixed(4)}`) : ''}`,
360
+ ...(walletAddr && !isEth ? [` ${dim(`(checked your wallet ${walletAddr} too — no Turbo credits there either.)`)}`] : []),
361
+ ...(isEth ? [] : [` ${dim('First back up the managed key — `abx storage backup-key --out <path>` — it will hold the credits you buy.')}`]),
362
+ ` Then fund + re-run:`,
363
+ ` • ${bold('abx storage topup --usd <n> --backend arweave')} ${dim('(card checkout, credits the address above)')}`,
364
+ ` • or paste ${g(address)} at ${bold('https://turbo-topup.com')} ${dim('— fund THIS address; do NOT connect a different wallet')}`,
365
+ isEth
366
+ ? ` • already funded a different identity? that's a different address — fund the one above`
367
+ : ` • funded your ETH wallet's Turbo balance instead? re-run with ${bold('--storage-signer eth')} (key in .env) or ${bold('--storage-signer eth --sign')} (browser wallet)`,
368
+ ];
369
+ throw new Error(lines.join('\n'));
370
+ }
371
+ /**
372
+ * Resolve durable locators (`ipfs://<cid>` / `ar://<txid>`) for a project's off-chain-by-hash
373
+ * fields, from THIS machine's content index via the backend. This is the bridge a remote resolver
374
+ * needs: the on-chain commitment is a keccak256, but the CID/txid that addresses the bytes lives in
375
+ * the deployer's local index — ship it so the resolver can point `image` at IPFS without the bytes.
376
+ * Returns `{ "0x<hash>": "ipfs://<cid>" }` (lowercased), empty when nothing is locatable here.
377
+ */
378
+ export async function collectContentLocators(state, backend) {
379
+ if (!backend.locator)
380
+ return {};
381
+ const out = {};
382
+ const hashFields = [...state.tokens.flatMap((t) => t.fields), ...state.collectionFields].filter((f) => f.representation === R.keccak256 || f.representation === R.sha256);
383
+ for (const f of hashFields) {
384
+ const key = f.value.toLowerCase();
385
+ if (out[key])
386
+ continue;
387
+ try {
388
+ const loc = await backend.locator(f.value);
389
+ if (loc)
390
+ out[key] = loc;
391
+ }
392
+ catch {
393
+ /* backend can't locate this hash — skip; the resolver falls back to its own image route */
394
+ }
395
+ }
396
+ return out;
397
+ }
398
+ /** Locators to bridge to a remote resolver: the ones the local deploy already stored, else freshly
399
+ * resolved from this machine's local projection + content index (e.g. `abx add <addr> --remote`
400
+ * for a contract deployed elsewhere on this same machine). */
401
+ export async function remoteLocators(address, stored, flags) {
402
+ if (stored) {
403
+ try {
404
+ const obj = JSON.parse(stored);
405
+ if (Object.keys(obj).length)
406
+ return obj;
407
+ }
408
+ catch {
409
+ /* fall through to recompute */
410
+ }
411
+ }
412
+ const local = localIndexer().getProject(address);
413
+ if (!local)
414
+ return {};
415
+ return collectContentLocators(local, resolveBackend(storageOptions(storageOverrides(flags))));
416
+ }
184
417
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,kBAAkB,GAGnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAEd,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AAEH,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,iBAAiB,CAAC;AACzD,MAAM,OAAO,GAAG,GAAW,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;AAErD,MAAM,UAAU,OAAO;IACrB,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC;AAC9E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,OAAO,oEAAoE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC5F,CAAC;AAED,gFAAgF;AAChF,yFAAyF;AACzF,4FAA4F;AAC5F,iGAAiG;AAEjG,+FAA+F;AAC/F,MAAM,UAAU,cAAc,CAAC,QAAiB;IAC9C,OAAO,cAAc,CAAC,OAAO,EAAE,EAA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AAE,cAAc,CAAC,cAAc,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC"}
@@ -0,0 +1,31 @@
1
+ export type AssertionStatus = 'pass' | 'fail' | 'note';
2
+ export interface Assertion {
3
+ status: AssertionStatus;
4
+ message: string;
5
+ }
6
+ export interface ConformanceOptions {
7
+ baseUrl: string;
8
+ /** Omit to run only the unauthenticated (always) tier. */
9
+ token?: string;
10
+ /** Which chain to probe when the descriptor doesn't pin one down. Required (with `address`) to
11
+ * unlock the register→deregister loop. */
12
+ chainId?: number;
13
+ /** A contract THIS token may register/deregister — unlocks the full write loop. Needs `chainId` too. */
14
+ address?: string;
15
+ fromBlock?: string;
16
+ /** The register-loop's poll-to-`live` budget (default 120s/2s) — tests shrink both. */
17
+ awaitTimeoutMs?: number;
18
+ awaitIntervalMs?: number;
19
+ }
20
+ export interface ConformanceReport {
21
+ baseUrl: string;
22
+ assertions: Assertion[];
23
+ failures: number;
24
+ }
25
+ /** One ✓/✗/· line. Nested sub-bullets carry their own leading spaces in `message` (unchanged from
26
+ * the original script), so the indentation is intentional, not a formatting bug. */
27
+ export declare function formatAssertion(a: Assertion): string;
28
+ /** The final line — kept byte-stable: `scripts/e2e-remote-resolver.sh` greps for '✓ conformant'. */
29
+ export declare function verdictLine(report: ConformanceReport): string;
30
+ export declare function runConformance(opts: ConformanceOptions): Promise<ConformanceReport>;
31
+ //# sourceMappingURL=conformance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../src/conformance.ts"],"names":[],"mappings":"AAiCA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;+CAC2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wGAAwG;IACxG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAYD;qFACqF;AACrF,wBAAgB,eAAe,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAGpD;AAED,oGAAoG;AACpG,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAE7D;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA+SzF"}