@artblocks/abx-sdk 0.1.0-alpha.31 → 0.1.0-alpha.33
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 +3 -74
- package/dist/chunks.d.ts +39 -4
- package/dist/chunks.d.ts.map +1 -1
- package/dist/chunks.js +55 -5
- package/dist/chunks.js.map +1 -1
- package/dist/deployments.d.ts +2 -2
- package/dist/deployments.js +2 -2
- package/dist/node.d.ts +5 -5
- package/dist/node.js +5 -5
- package/dist/resume.d.ts +21 -14
- package/dist/resume.d.ts.map +1 -1
- package/dist/resume.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,79 +1,8 @@
|
|
|
1
1
|
# @artblocks/abx-sdk
|
|
2
2
|
|
|
3
|
-
## 0.1.0-alpha.
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- c068a0f: Add `probeChunkStore` — a fail-closed sibling to `ensureChunkStore` that resolves whether a usable
|
|
8
|
-
on-chain chunk store exists (configured address, has code, answers the current `writeContent` ABI)
|
|
9
|
-
without ever sending a transaction or deploying one. Returns a typed verdict (`ok` / `unconfigured` /
|
|
10
|
-
`no-code` / `incompatible` / `unreachable`) instead of throwing, so a request-scoped or read-only
|
|
11
|
-
service can call it at startup and branch on the reason.
|
|
12
|
-
- c068a0f: Local data-directory resolution (`.abx-self-host` / `ABX_DATA_DIR`) is now centralized in one SDK
|
|
13
|
-
resolver (`resolveDataDir` from `@artblocks/abx-sdk/node`) instead of five independent copies of the
|
|
14
|
-
same fallback across the CLI, indexer, and storage packages — the setup that could silently split a
|
|
15
|
-
project's SQLite projection from its managed Arweave key into two different directories.
|
|
16
|
-
|
|
17
|
-
A handful of READ commands (`status`, `state`, `verify`, `doctor`, `capabilities`, `tokens`,
|
|
18
|
-
`tokenuri`, `contracturi`, `inspect`, `minter show`) now search upward from the current directory,
|
|
19
|
-
git-style, for an already-existing `.abx-self-host` before falling back to creating one at cwd —
|
|
20
|
-
bounded at the home directory, a `.git` repository root, or the filesystem root, and never crossing
|
|
21
|
-
into an unrelated directory tree. Running one of these from a project subdirectory (e.g. a
|
|
22
|
-
`contracts/` folder) now finds the same node a run from the project root would, instead of quietly
|
|
23
|
-
reporting an empty one. `abx status`'s existing `data: <path>` line — and a new one-line notice —
|
|
24
|
-
name the directory whenever it was found this way. Every WRITE command is unaffected: it always
|
|
25
|
-
resolves strictly to the current directory, exactly as before, so nothing is ever created somewhere
|
|
26
|
-
you didn't `cd` into. `ABX_DATA_DIR`, when set, still always wins outright and disables the search
|
|
27
|
-
entirely.
|
|
28
|
-
|
|
29
|
-
- c068a0f: `deploy-code --resume <address>` now works against an EditionCode (`--copies`) target, not just
|
|
30
|
-
SeriesCode. The mint leg diffs per id against that id's own `totalSupply(id)` — pass the same
|
|
31
|
-
content flags the original deploy used, plus `--mint-count`/`--mint-amount` if it premint any ids.
|
|
32
|
-
- c068a0f: `reconstructProject()` and `reconstructIncremental()` accept `toBlock: 'safe' | 'finalized'` in
|
|
33
|
-
addition to a literal block number and the existing `'latest'` default. The tag is resolved to a
|
|
34
|
-
concrete inclusive block number (via the new `resolveBlockTag()`) before any `eth_getLogs` scan
|
|
35
|
-
starts, and that number — never the tag — is what lands in the persisted `ProjectState.toBlock`. An
|
|
36
|
-
RPC that doesn't support the requested tag throws the new `BlockTagUnavailableError` instead of
|
|
37
|
-
silently falling back to `latest`. `SelfHostIndexer#reindex` gained a matching `blockTag` option.
|
|
38
|
-
Existing callers (the `'latest'`/unset default) are unaffected.
|
|
39
|
-
|
|
40
|
-
`abx index --to-block safe|finalized` stops a re-index at a reorg-safe boundary.
|
|
41
|
-
|
|
42
|
-
- c068a0f: Add `abx replace-script <address> --script <file>` — a safe, first-class way to replace an UNLOCKED
|
|
43
|
-
code project's on-chain program (`SeriesCode`/`EditionCode`, before `abx lock-script`). It refuses
|
|
44
|
-
outright on a locked script or a non-code target, diffs the replacement by content against what's
|
|
45
|
-
on-chain (an index that already matches is never re-sent), handles a smaller replacement by queuing
|
|
46
|
-
the trailing `removeLastScriptChunk` calls it needs, folds every write and remove into ONE atomic
|
|
47
|
-
transaction (a revert can never leave a half-applied script), and reads the completed script back to
|
|
48
|
-
verify it reassembles exactly to the file before reporting success. Supports `--dry-run` and every
|
|
49
|
-
signing lane.
|
|
50
|
-
|
|
51
|
-
The SDK gains the primitives this is built on: `prepareSetScriptChunk`/`prepareRemoveLastScriptChunk`
|
|
52
|
-
(no `prepare*` wrapper existed for `OnChainScript.sol`'s writers before this — every caller hand-
|
|
53
|
-
encoded `encodeFunctionData`), plus `planScriptReplace`/`verifyScriptReplace`, which take a small
|
|
54
|
-
reader interface (mirroring `resume.ts`'s own reader seam) so the diff and post-write verification
|
|
55
|
-
are testable without a chain.
|
|
56
|
-
|
|
57
|
-
- c068a0f: Additive for SDK consumers — a new exported function, nothing existing changed shape or behavior.
|
|
58
|
-
|
|
59
|
-
`abx verify` now compares a collection's actual `tokenURIRenderer` and `animation_url` generator
|
|
60
|
-
pointers against the current canonical singletons for its chain, reporting each as current or
|
|
61
|
-
not-current (never treating an older-but-working deployment as broken). Adds the SDK helper
|
|
62
|
-
`isCurrentGenerator` alongside the existing `isCurrentRenderer` probe.
|
|
3
|
+
## 0.1.0-alpha.33
|
|
63
4
|
|
|
64
5
|
### Patch Changes
|
|
65
6
|
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
or double-encoded `reader` field values with an actionable error instead of silently
|
|
69
|
-
decoding a wrong address pair.
|
|
70
|
-
|
|
71
|
-
## 0.1.0-alpha.30
|
|
72
|
-
|
|
73
|
-
### Patch Changes
|
|
74
|
-
|
|
75
|
-
- 64248d9: Establish the public source baseline and refresh dependency constraints.
|
|
76
|
-
|
|
77
|
-
## Unreleased
|
|
78
|
-
|
|
79
|
-
Public release history begins here.
|
|
7
|
+
- 9242a05: Prepare package metadata, release notes, and public-facing source comments for the initial public
|
|
8
|
+
source release.
|
package/dist/chunks.d.ts
CHANGED
|
@@ -52,12 +52,47 @@ export declare const DEFAULT_TX_GAS_BUDGET = 8000000;
|
|
|
52
52
|
*/
|
|
53
53
|
export declare const MEASURED_ESTIMATE_GAS_ALLOWANCE = 16777216;
|
|
54
54
|
/**
|
|
55
|
-
* Rough gas for writing
|
|
56
|
-
* overhead plus the code-deposit cost (~200 gas/byte) and calldata. Deliberately an
|
|
57
|
-
*
|
|
58
|
-
*
|
|
55
|
+
* Rough gas for writing `byteLength` bytes as an SSTORE2 data contract: a fixed CREATE + base
|
|
56
|
+
* overhead plus the code-deposit cost (~200 gas/byte) and calldata. Deliberately an over-estimate so
|
|
57
|
+
* packed batches land safely inside {@link DEFAULT_TX_GAS_BUDGET}; the wallet still does the real
|
|
58
|
+
* `eth_estimateGas` before sending. Takes a byte length directly (not a {@link PlannedChunk}) for a
|
|
59
|
+
* caller that already knows the size and has no content to allocate just to ask — a code project's
|
|
60
|
+
* on-chain SCRIPT chunk (`OnChainScript.setScriptChunk`, `contracts/src/libraries/AbxCodeLib.sol`) is
|
|
61
|
+
* the same SSTORE2 write as a content chunk, so it reuses this estimate rather than inventing a
|
|
62
|
+
* second one — see `commands/deploy.ts`'s code-setup transaction splitting.
|
|
59
63
|
*/
|
|
64
|
+
export declare function estimateChunkGasForBytes(byteLength: number): number;
|
|
65
|
+
/** {@link estimateChunkGasForBytes}, from a {@link PlannedChunk} already in hand. */
|
|
60
66
|
export declare function estimateChunkGas(chunk: PlannedChunk): number;
|
|
67
|
+
/**
|
|
68
|
+
* Rough, deliberately-conservative gas for the code-project setup legs that are NOT raw content
|
|
69
|
+
* chunks — a `setParamSchema`, a `setDependency`/`setDependencyRegistry`, an on-chain-URI wiring
|
|
70
|
+
* call, a reserve `mint`. Unlike {@link estimateChunkGasForBytes} these are flat per-call estimates:
|
|
71
|
+
* none of them pays an EVM code-deposit, so their cost doesn't scale with a byte length. Shared by
|
|
72
|
+
* `commands/deploy.ts`'s fresh-deploy cost-guidance heuristic AND its setup-transaction gas-bounded
|
|
73
|
+
* batching, so the two can never disagree about what one of these calls costs.
|
|
74
|
+
*/
|
|
75
|
+
export declare const SETUP_LEG_GAS: {
|
|
76
|
+
readonly schema: 45000;
|
|
77
|
+
readonly dependency: 55000;
|
|
78
|
+
readonly onchainUri: 60000;
|
|
79
|
+
readonly mint: 65000;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Pack arbitrary gas-costed items into gas-bounded batches, preserving order — the call-level
|
|
83
|
+
* sibling of {@link planContentTxs}'s own greedy bin-packing loop, generalized so a caller whose
|
|
84
|
+
* "chunk" is a setup CALL (a schema declare, a dependency pointer, a mint) rather than a content byte
|
|
85
|
+
* range can reuse the identical algorithm and budget instead of inventing a second one. Splits only
|
|
86
|
+
* BETWEEN items — an item whose own `.gas` alone exceeds `gasBudget` still rides alone in its own
|
|
87
|
+
* batch (that batch is simply over-budget, not necessarily over the harder `eth_estimateGas` ceiling
|
|
88
|
+
* — a caller that must refuse an indivisible-too-large leg checks {@link MEASURED_ESTIMATE_GAS_ALLOWANCE}
|
|
89
|
+
* itself, separately, BEFORE calling this).
|
|
90
|
+
*/
|
|
91
|
+
export declare function packCallsByGas<T extends {
|
|
92
|
+
gas: number;
|
|
93
|
+
}>(items: readonly T[], opts?: {
|
|
94
|
+
gasBudget?: number;
|
|
95
|
+
}): T[][];
|
|
61
96
|
/** How content will be written on-chain — one atomic tx, or several batched ones. */
|
|
62
97
|
export type ContentTxPlan = {
|
|
63
98
|
mode: 'single';
|
package/dist/chunks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunks.d.ts","sourceRoot":"","sources":["../src/chunks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,KAAK,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,YAAY,EAAC,MAAM,MAAM,CAAC;AAM/G,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;GASG;AAEH;2FAC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AE,iBAAiB,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,eAAe,CACnC,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAC,GACzC,OAAO,CAAC,eAAe,CAAC,CAY1B"}
|
package/dist/chunks.js
CHANGED
|
@@ -64,13 +64,63 @@ export const DEFAULT_TX_GAS_BUDGET = 8_000_000;
|
|
|
64
64
|
*/
|
|
65
65
|
export const MEASURED_ESTIMATE_GAS_ALLOWANCE = 16_777_216;
|
|
66
66
|
/**
|
|
67
|
-
* Rough gas for writing
|
|
68
|
-
* overhead plus the code-deposit cost (~200 gas/byte) and calldata. Deliberately an
|
|
69
|
-
*
|
|
70
|
-
*
|
|
67
|
+
* Rough gas for writing `byteLength` bytes as an SSTORE2 data contract: a fixed CREATE + base
|
|
68
|
+
* overhead plus the code-deposit cost (~200 gas/byte) and calldata. Deliberately an over-estimate so
|
|
69
|
+
* packed batches land safely inside {@link DEFAULT_TX_GAS_BUDGET}; the wallet still does the real
|
|
70
|
+
* `eth_estimateGas` before sending. Takes a byte length directly (not a {@link PlannedChunk}) for a
|
|
71
|
+
* caller that already knows the size and has no content to allocate just to ask — a code project's
|
|
72
|
+
* on-chain SCRIPT chunk (`OnChainScript.setScriptChunk`, `contracts/src/libraries/AbxCodeLib.sol`) is
|
|
73
|
+
* the same SSTORE2 write as a content chunk, so it reuses this estimate rather than inventing a
|
|
74
|
+
* second one — see `commands/deploy.ts`'s code-setup transaction splitting.
|
|
71
75
|
*/
|
|
76
|
+
export function estimateChunkGasForBytes(byteLength) {
|
|
77
|
+
return 40_000 + byteLength * 240;
|
|
78
|
+
}
|
|
79
|
+
/** {@link estimateChunkGasForBytes}, from a {@link PlannedChunk} already in hand. */
|
|
72
80
|
export function estimateChunkGas(chunk) {
|
|
73
|
-
return
|
|
81
|
+
return estimateChunkGasForBytes(chunk.data.length);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Rough, deliberately-conservative gas for the code-project setup legs that are NOT raw content
|
|
85
|
+
* chunks — a `setParamSchema`, a `setDependency`/`setDependencyRegistry`, an on-chain-URI wiring
|
|
86
|
+
* call, a reserve `mint`. Unlike {@link estimateChunkGasForBytes} these are flat per-call estimates:
|
|
87
|
+
* none of them pays an EVM code-deposit, so their cost doesn't scale with a byte length. Shared by
|
|
88
|
+
* `commands/deploy.ts`'s fresh-deploy cost-guidance heuristic AND its setup-transaction gas-bounded
|
|
89
|
+
* batching, so the two can never disagree about what one of these calls costs.
|
|
90
|
+
*/
|
|
91
|
+
export const SETUP_LEG_GAS = {
|
|
92
|
+
schema: 45_000,
|
|
93
|
+
dependency: 55_000,
|
|
94
|
+
onchainUri: 60_000,
|
|
95
|
+
mint: 65_000,
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Pack arbitrary gas-costed items into gas-bounded batches, preserving order — the call-level
|
|
99
|
+
* sibling of {@link planContentTxs}'s own greedy bin-packing loop, generalized so a caller whose
|
|
100
|
+
* "chunk" is a setup CALL (a schema declare, a dependency pointer, a mint) rather than a content byte
|
|
101
|
+
* range can reuse the identical algorithm and budget instead of inventing a second one. Splits only
|
|
102
|
+
* BETWEEN items — an item whose own `.gas` alone exceeds `gasBudget` still rides alone in its own
|
|
103
|
+
* batch (that batch is simply over-budget, not necessarily over the harder `eth_estimateGas` ceiling
|
|
104
|
+
* — a caller that must refuse an indivisible-too-large leg checks {@link MEASURED_ESTIMATE_GAS_ALLOWANCE}
|
|
105
|
+
* itself, separately, BEFORE calling this).
|
|
106
|
+
*/
|
|
107
|
+
export function packCallsByGas(items, opts = {}) {
|
|
108
|
+
const budget = opts.gasBudget ?? DEFAULT_TX_GAS_BUDGET;
|
|
109
|
+
const batches = [];
|
|
110
|
+
let cur = [];
|
|
111
|
+
let curGas = 0;
|
|
112
|
+
for (const item of items) {
|
|
113
|
+
if (cur.length > 0 && curGas + item.gas > budget) {
|
|
114
|
+
batches.push(cur);
|
|
115
|
+
cur = [];
|
|
116
|
+
curGas = 0;
|
|
117
|
+
}
|
|
118
|
+
cur.push(item);
|
|
119
|
+
curGas += item.gas;
|
|
120
|
+
}
|
|
121
|
+
if (cur.length > 0)
|
|
122
|
+
batches.push(cur);
|
|
123
|
+
return batches;
|
|
74
124
|
}
|
|
75
125
|
/**
|
|
76
126
|
* Decide the transaction shape for a piece of content. When the whole thing fits one
|
package/dist/chunks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunks.js","sourceRoot":"","sources":["../src/chunks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAA4C,MAAM,MAAM,CAAC;AAC/G,OAAO,EAAC,gBAAgB,EAAE,qBAAqB,EAAC,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,qBAAqB,EAAC,MAAM,cAAc,CAAC;AAG7F;;;;;;;;;GASG;AAEH;2FAC2F;AAC3F,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAQzC;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,UAAU,UAAU,CACxB,OAAmB,EACnB,OAA+C,EAAE;IAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,IAAI,kBAAkB,CAAC;IAClD,MAAM,MAAM,GAAmB,EAAE,CAAC;IAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAA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GAAG,CAAC,EAAC,CAAC;IAClE,CAAC;IACD,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAC,CAAC;IACjE,IAAI,CAAC,CAAC,MAAM,yBAAyB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAAE,OAAO,EAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAC,CAAC;IACzG,OAAO,EAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC,CAAC;AAClC,CAAC;AAED,6FAA6F;AAC7F,SAAS,SAAS,CAAC,GAAY;IAC7B,OAAO,MAAM,CAAE,GAAa,EAAE,OAAO,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACtE,CAAC"}
|
package/dist/deployments.d.ts
CHANGED
|
@@ -115,13 +115,13 @@ export declare function resolveFixedPriceMinter1155(chainId: number, override?:
|
|
|
115
115
|
export declare function resolveGenerator(chainId: number, override?: string): Address | undefined;
|
|
116
116
|
/**
|
|
117
117
|
* Is `generator` the chain's CURRENT canonical generator — the per-collection pointer check
|
|
118
|
-
* `abx verify` runs for the singleton `generatorFor(state)` resolves (site/content/docs
|
|
118
|
+
* `abx verify` runs for the singleton `generatorFor(state)` resolves (see site/content/docs).
|
|
119
119
|
*
|
|
120
120
|
* Binary by construction, on purpose: it answers current / not-current and nothing finer. A
|
|
121
121
|
* mismatch can mean either "pinned to a prior canonical generation" or "a fully custom field
|
|
122
122
|
* renderer", and this file's own docstring is explicit that no superseded generator address is
|
|
123
123
|
* EVER kept as live state here — so there is nothing recorded to tell those two apart against.
|
|
124
|
-
* Building that historical registry is
|
|
124
|
+
* Building that historical registry is deliberately out of scope (the factory-generation
|
|
125
125
|
* ladder already has one, {@link ANCHOR_GENERATIONS}; the generator deliberately does not).
|
|
126
126
|
*
|
|
127
127
|
* `null` ⇒ this chain has no canonical generator recorded at all (unshipped) — a different fact
|
package/dist/deployments.js
CHANGED
|
@@ -175,13 +175,13 @@ export function resolveGenerator(chainId, override) {
|
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
177
|
* Is `generator` the chain's CURRENT canonical generator — the per-collection pointer check
|
|
178
|
-
* `abx verify` runs for the singleton `generatorFor(state)` resolves (site/content/docs
|
|
178
|
+
* `abx verify` runs for the singleton `generatorFor(state)` resolves (see site/content/docs).
|
|
179
179
|
*
|
|
180
180
|
* Binary by construction, on purpose: it answers current / not-current and nothing finer. A
|
|
181
181
|
* mismatch can mean either "pinned to a prior canonical generation" or "a fully custom field
|
|
182
182
|
* renderer", and this file's own docstring is explicit that no superseded generator address is
|
|
183
183
|
* EVER kept as live state here — so there is nothing recorded to tell those two apart against.
|
|
184
|
-
* Building that historical registry is
|
|
184
|
+
* Building that historical registry is deliberately out of scope (the factory-generation
|
|
185
185
|
* ladder already has one, {@link ANCHOR_GENERATIONS}; the generator deliberately does not).
|
|
186
186
|
*
|
|
187
187
|
* `null` ⇒ this chain has no canonical generator recorded at all (unshipped) — a different fact
|
package/dist/node.d.ts
CHANGED
|
@@ -35,9 +35,9 @@ export interface ResolveDataDirOptions {
|
|
|
35
35
|
* indexer's SQLite store, the storage package's local-disk backend, content index, and managed
|
|
36
36
|
* Arweave key — used to carry an INDEPENDENT copy of `ABX_DATA_DIR ?? cwd/.abx-self-host`, which is
|
|
37
37
|
* exactly the setup that silently splits one project's SQLite projection from its managed Arweave
|
|
38
|
-
* key into two different directories the moment any single copy drifts from the others
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* key into two different directories the moment any single copy drifts from the others. To keep
|
|
39
|
+
* managed Arweave key and projection locations coherent, every one of those call sites now
|
|
40
|
+
* resolves through here instead.
|
|
41
41
|
*
|
|
42
42
|
* `ABX_DATA_DIR` always wins outright — set it and discovery never runs, full stop. That isolation
|
|
43
43
|
* is load-bearing (tests rely on it to run concurrently against disposable temp dirs; an operator
|
|
@@ -48,13 +48,13 @@ export interface ResolveDataDirOptions {
|
|
|
48
48
|
* per-command allowlist in `config.ts`), and only when nothing already exists at cwd, this walks
|
|
49
49
|
* UP the directory tree looking for an EXISTING `.abx-self-host`, so (say) `abx status` run from a
|
|
50
50
|
* project subdirectory finds the same node a run from the project root would — instead of quietly
|
|
51
|
-
* opening a second, empty one
|
|
51
|
+
* opening a second, empty one.
|
|
52
52
|
*
|
|
53
53
|
* The search is BOUNDED, git-style — it stops at (but still checks) the user's home directory, a
|
|
54
54
|
* directory containing `.git` (a repository root), or the filesystem root, so it can never wander
|
|
55
55
|
* into an unrelated ancestor tree. And it never merges two directories: the first EXISTING
|
|
56
56
|
* `.abx-self-host` found wins outright, and `source: 'discovered'` tells the caller to say so — a
|
|
57
|
-
* discovered node is not the one a human just `cd`-ed into
|
|
57
|
+
* discovered node is not the one a human just `cd`-ed into; that distinction must stay visible
|
|
58
58
|
* rather than silently answering from the wrong place.
|
|
59
59
|
*/
|
|
60
60
|
export declare function resolveDataDir(options?: ResolveDataDirOptions): DataDirResolution;
|
package/dist/node.js
CHANGED
|
@@ -30,9 +30,9 @@ function isDirectory(path) {
|
|
|
30
30
|
* indexer's SQLite store, the storage package's local-disk backend, content index, and managed
|
|
31
31
|
* Arweave key — used to carry an INDEPENDENT copy of `ABX_DATA_DIR ?? cwd/.abx-self-host`, which is
|
|
32
32
|
* exactly the setup that silently splits one project's SQLite projection from its managed Arweave
|
|
33
|
-
* key into two different directories the moment any single copy drifts from the others
|
|
34
|
-
*
|
|
35
|
-
*
|
|
33
|
+
* key into two different directories the moment any single copy drifts from the others. To keep
|
|
34
|
+
* managed Arweave key and projection locations coherent, every one of those call sites now
|
|
35
|
+
* resolves through here instead.
|
|
36
36
|
*
|
|
37
37
|
* `ABX_DATA_DIR` always wins outright — set it and discovery never runs, full stop. That isolation
|
|
38
38
|
* is load-bearing (tests rely on it to run concurrently against disposable temp dirs; an operator
|
|
@@ -43,13 +43,13 @@ function isDirectory(path) {
|
|
|
43
43
|
* per-command allowlist in `config.ts`), and only when nothing already exists at cwd, this walks
|
|
44
44
|
* UP the directory tree looking for an EXISTING `.abx-self-host`, so (say) `abx status` run from a
|
|
45
45
|
* project subdirectory finds the same node a run from the project root would — instead of quietly
|
|
46
|
-
* opening a second, empty one
|
|
46
|
+
* opening a second, empty one.
|
|
47
47
|
*
|
|
48
48
|
* The search is BOUNDED, git-style — it stops at (but still checks) the user's home directory, a
|
|
49
49
|
* directory containing `.git` (a repository root), or the filesystem root, so it can never wander
|
|
50
50
|
* into an unrelated ancestor tree. And it never merges two directories: the first EXISTING
|
|
51
51
|
* `.abx-self-host` found wins outright, and `source: 'discovered'` tells the caller to say so — a
|
|
52
|
-
* discovered node is not the one a human just `cd`-ed into
|
|
52
|
+
* discovered node is not the one a human just `cd`-ed into; that distinction must stay visible
|
|
53
53
|
* rather than silently answering from the wrong place.
|
|
54
54
|
*/
|
|
55
55
|
export function resolveDataDir(options = {}) {
|
package/dist/resume.d.ts
CHANGED
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
import type { Address, Hex } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
* Finish a `deploy-code` whose **setup
|
|
3
|
+
* Finish a `deploy-code` whose **setup** never fully landed.
|
|
4
4
|
*
|
|
5
|
-
* A code project deploys in two transactions: create the clone, then one
|
|
6
|
-
* the script chunks, the PostParam schemas, the dependency declarations,
|
|
7
|
-
* any reserve mints
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* A code project deploys in two or more transactions: create the clone, then one or more gas-bounded
|
|
6
|
+
* setup transactions carrying the script chunks, the PostParam schemas, the dependency declarations,
|
|
7
|
+
* the on-chain-URI legs, and any reserve mints — split (`commands/deploy.ts`'s
|
|
8
|
+
* `planCodeSetupBatches`) whenever the whole setup can't fit the `eth_estimateGas` ceiling in one
|
|
9
|
+
* multicall (a single small project still gets exactly one setup tx, as before). There is no
|
|
10
|
+
* rollback for any of these. When one fails — or a wallet session / hot-key run is interrupted
|
|
11
|
+
* between them — you own a live-but-unusable contract, and the CREATE2 salt reserved for that
|
|
12
|
+
* address is spent — so the dry run's pinned-salt reproduce command can never be run again. One
|
|
13
|
+
* reporter session produced three orphaned contracts from three attempts; another produced five;
|
|
14
|
+
* a later funded sweep produced one by hitting the gas ceiling on a single oversized setup multicall.
|
|
11
15
|
*
|
|
12
16
|
* The useful half of that report is that those contracts were **recoverable, not lost**: resending the
|
|
13
17
|
* setup with an adequate gas limit completed one, after which `abx verify` reported chain-complete.
|
|
14
18
|
* The tester did it by hand with `cast`. We deliberately do not document that as a recipe — telling a
|
|
15
19
|
* creator to hand-assemble a multicall is worse than telling them nothing — so this is the verb.
|
|
16
20
|
*
|
|
17
|
-
* **Why it diffs instead of just re-sending everything.**
|
|
18
|
-
* common case every leg is absent and the diff finds nothing to
|
|
19
|
-
* earn its keep: a creator who already repaired part of it by
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* **Why it diffs instead of just re-sending everything.** Each setup transaction is atomic, so in the
|
|
22
|
+
* common case (a fresh deploy that never sent one) every leg is absent and the diff finds nothing to
|
|
23
|
+
* skip. But several cases make the diff earn its keep: a creator who already repaired part of it by
|
|
24
|
+
* hand, an interruption between two of several gas-bounded setup transactions (some landed, some
|
|
25
|
+
* didn't — this is exactly why chunk writes and config setters must be idempotent, so any such split
|
|
26
|
+
* point is safely resumable), and the gas cost of re-storing script chunks that already landed — EVM
|
|
27
|
+
* code deposit is 200 gas per byte, so blindly re-sending a large program is the most expensive way to
|
|
28
|
+
* be safe. Every leg is also idempotent by construction (index-addressed chunks and dependencies, an
|
|
29
|
+
* upsert for schemas), so the diff is an optimisation on top of a safe operation rather than the thing
|
|
30
|
+
* that makes it safe.
|
|
24
31
|
*
|
|
25
32
|
* The one leg that is NOT idempotent is `mint`, which is why it is computed as a **shortfall** against
|
|
26
33
|
* current supply rather than re-sent: minting again would mint more tokens, and a token cannot be
|
package/dist/resume.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume.d.ts","sourceRoot":"","sources":["../src/resume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAE,GAAG,EAAC,MAAM,MAAM,CAAC;AAEvC
|
|
1
|
+
{"version":3,"file":"resume.d.ts","sourceRoot":"","sources":["../src/resume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAE,GAAG,EAAC,MAAM,MAAM,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH;uDACuD;AACvD,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACpC,oEAAoE;IACpE,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC;IAChD,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACnC,kBAAkB,IAAI,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC9C,gBAAgB,IAAI,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC5C,mBAAmB,IAAI,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC/C,sEAAsE;IACtE,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACnD;AAED,gFAAgF;AAChF,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAChC;AAED;8EAC8E;AAC9E,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAA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;QACvB,mFAAmF;QACnF,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,IAAI,EAAE,OAAO,CAAC;QACd,GAAG,EAAE,OAAO,CAAC;QACb;yFACiF;QACjF,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAiFD,2EAA2E;AAC3E,wBAAsB,UAAU,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAsBzF;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,CAgC9G"}
|
package/dist/resume.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume.js","sourceRoot":"","sources":["../src/resume.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resume.js","sourceRoot":"","sources":["../src/resume.ts"],"names":[],"mappings":"AA4HA;;mDAEmD;AACnD,KAAK,UAAU,YAAY,CAAC,IAAsB,EAAE,IAAmB;IACrE,MAAM,KAAK,GAAU,EAAE,CAAC;IACxB,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,MAAM,OAAO,GAAyC,EAAC,YAAY,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,CAAC;IAElI,+EAA+E;IAC/E,mGAAmG;IACnG,iGAAiG;IACjG,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACvB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC5C,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,E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,cAAc,IAAI,CAAC,KAAK,CAAC,MAAM,qCAAqC,CAAC,CAAC;;YAC5F,IAAI,CAAC,IAAI,CAAC,UAAU,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,EAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,CAAC;AACtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artblocks/abx-sdk",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Typed SDK for ABX protocol reads, deployments, operations, reconstruction, and verification.",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"viem": "^2.56.
|
|
52
|
+
"viem": "^2.56.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"esbuild": "^0.28.2"
|