bulletin-deploy 0.7.21 → 0.7.22-rc.1
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/dist/bug-report.js +4 -4
- package/dist/chunk-74ETPOKH.js +284 -0
- package/dist/chunk-A5IQ5MKO.js +207 -0
- package/dist/{chunk-VTTN4BX7.js → chunk-CIXT75OF.js} +151 -2
- package/dist/chunk-EJ5TNGAY.js +24 -0
- package/dist/{chunk-RJAFD4LO.js → chunk-FSSKFXTZ.js} +1 -1
- package/dist/{chunk-ZY6QLNKQ.js → chunk-KFHGT4A2.js} +1 -1
- package/dist/{chunk-MJTQOXBC.js → chunk-LEYQOOWC.js} +3 -2
- package/dist/chunk-QHOZEY5X.js +231 -0
- package/dist/{chunk-BFXHVC23.js → chunk-SPWQNU3F.js} +21 -17
- package/dist/chunk-T7EEVWNU.js +32 -0
- package/dist/chunk-UPWEOGLQ.js +37 -0
- package/dist/{chunk-SA37SLYF.js → chunk-V5NUBOEX.js} +2 -2
- package/dist/{chunk-2VNGK2MU.js → chunk-WNUWAA6F.js} +26 -3
- package/dist/{chunk-4TS6R26J.js → chunk-WVCIU6WM.js} +22 -9
- package/dist/{chunk-G2P5UIPX.js → chunk-XWA3NPMX.js} +4 -3
- package/dist/chunk-ZYVGHDMU.js +117 -0
- package/dist/chunk-probe.js +3 -3
- package/dist/deploy.d.ts +4 -2
- package/dist/deploy.js +9 -9
- package/dist/dotns.d.ts +74 -1
- package/dist/dotns.js +8 -4
- package/dist/incremental-stats.d.ts +3 -1
- package/dist/incremental-stats.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +9 -9
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +9 -9
- package/dist/personhood/bind-paid-alias.d.ts +43 -0
- package/dist/personhood/bind-paid-alias.js +10 -0
- package/dist/personhood/bind-personal-id.d.ts +55 -0
- package/dist/personhood/bind-personal-id.js +12 -0
- package/dist/personhood/bootstrap.d.ts +85 -0
- package/dist/personhood/bootstrap.js +245 -0
- package/dist/personhood/claim-pgas.d.ts +61 -0
- package/dist/personhood/claim-pgas.js +12 -0
- package/dist/personhood/constants.d.ts +23 -0
- package/dist/personhood/constants.js +22 -0
- package/dist/personhood/encoding.d.ts +49 -0
- package/dist/personhood/encoding.js +24 -0
- package/dist/personhood/hashing.d.ts +4 -0
- package/dist/personhood/hashing.js +8 -0
- package/dist/personhood/member-key.d.ts +12 -0
- package/dist/personhood/member-key.js +10 -0
- package/dist/personhood/people-client.d.ts +14 -0
- package/dist/personhood/people-client.js +48 -0
- package/dist/personhood/reprove.d.ts +43 -0
- package/dist/personhood/reprove.js +225 -0
- package/dist/pool.d.ts +7 -2
- package/dist/pool.js +3 -1
- package/dist/run-state.js +1 -1
- package/dist/telemetry.d.ts +7 -1
- package/dist/telemetry.js +8 -2
- package/dist/version-check.js +3 -3
- package/docs/e2e-bootstrap.md +36 -10
- package/package.json +4 -3
package/docs/e2e-bootstrap.md
CHANGED
|
@@ -41,7 +41,11 @@ Expected output: Bob's SS58, his H160 (`0x41dccbd49b26c50d34355ed86ff0fa9e489d1e
|
|
|
41
41
|
|
|
42
42
|
The S3 negative scenario asserts that `bulletin-deploy` refuses to deploy to a domain owned by a different account (exit 78 with transfer guidance). Have Bob register the label with a DotNS registration tool outside `bulletin-deploy` — no Alice intermediary, no Bulletin content needed (S3 never reads content).
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
```bash
|
|
45
|
+
node tools/register-test-fixture-paseo-next-v2.mjs e2eowned
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Expected: `e2eowned.dot` is owned by Bob's H160 `0x41dccbd49b26c50d34355ed86ff0fa9e489d1e01`. The `e2eowned.dot` label requires PoP Full status and a mature commitment (the tool waits 30s after the minimum commitment age). The tool is idempotent: it exits 0 immediately if Bob already owns it, and transfers the label from Alice back to Bob if fixture drift is detected.
|
|
45
49
|
|
|
46
50
|
If S3 ever fails because `e2eowned.dot` was transferred back to Alice by mistake, re-run this step to restore Bob's ownership.
|
|
47
51
|
|
|
@@ -51,7 +55,9 @@ If S3 ever fails because `e2eowned.dot` was transferred back to Alice by mistake
|
|
|
51
55
|
|
|
52
56
|
Paseo Next v2 uses a separate Asset Hub (`wss://paseo-asset-hub-next-rpc.polkadot.io`) and Bulletin chain (`wss://paseo-bulletin-next-rpc.polkadot.io`) with different contract addresses. The `map_account` extrinsic does not exist on this chain — account mapping is triggered automatically when an account submits its first on-chain transaction.
|
|
53
57
|
|
|
54
|
-
> **Note on PoP grants:** The paseo-next-v2 `POP_RULES` contract (`0x2002C1c15b88632Ad01c7770f6EbE1Ca05c8472E`) is **not permissionless** — `setUserPopStatus` can only be called by the contract owner (`0x4a519c30da0ec16aa9a73c26ea6ca6f701cce099`). CI
|
|
58
|
+
> **Note on PoP grants:** The paseo-next-v2 `POP_RULES` contract (`0x2002C1c15b88632Ad01c7770f6EbE1Ca05c8472E`) is **not permissionless** — `setUserPopStatus` can only be called by the contract owner (`0x4a519c30da0ec16aa9a73c26ea6ca6f701cce099`). `bulletin-deploy` itself cannot upgrade a signer; the chain team flips the Personhood precompile out of band. CI scenarios pick labels via `pickStableLabel`/`pickDirectLabel`/`pickIncLabel`/`pickRotLabel`, which auto-select between a PoP-Full base name (e.g. `e2epool.dot`) and a NoStatus fallback (e.g. `e2epoolns01.dot`) based on what `Personhood.personhoodStatus(<signer>)` returns at test start. The setup below covers both modes.
|
|
59
|
+
|
|
60
|
+
> **⚠ Testnet wipes reset everything.** When paseo-next-v2 is reset (which happens periodically), Alice's Personhood precompile status drops to NoStatus *and* every `e2e*.dot` registration is gone. Re-run the relevant steps below after each wipe — there is no on-chain self-recovery. Issue #381 traces back to exactly this: Alice's status came back as Full but `e2epool.dot` was unregistered, so `setContenthash` reverted with `ERC721NonexistentToken`. As long as ownership stays in lockstep with Alice's PoP grade (Full ↔ PoP-Full labels registered; NoStatus ↔ NoStatus labels auto-register on first deploy), the nightly stays green.
|
|
55
61
|
|
|
56
62
|
### Prerequisites
|
|
57
63
|
|
|
@@ -68,13 +74,23 @@ This grants each pool account `TransactionStorage` quota on Bulletin Next. Alice
|
|
|
68
74
|
|
|
69
75
|
### 2. Verify Alice PoP status
|
|
70
76
|
|
|
71
|
-
Alice does not need PoP Full for the current v2 CI labels. They are deliberately shaped as NoStatus labels, for example `e2epoolns01.dot` (base length >= 9 with exactly two trailing digits).
|
|
72
|
-
|
|
73
77
|
```bash
|
|
74
78
|
node tools/check-pop-status.mjs --env paseo-next-v2
|
|
75
79
|
```
|
|
76
80
|
|
|
77
|
-
|
|
81
|
+
What you see decides which labels need pre-registration:
|
|
82
|
+
|
|
83
|
+
- **`NoStatus (0)`** → no extra work. The tests pick the NoStatus fallback labels (`e2epoolns01`, `e2edirect01`, `e2eincpool01`, `e2erotpool01`) which auto-register on first deploy because their shape (base length ≥ 9 with two trailing digits) bypasses the `Requires Full personhood verification` gate.
|
|
84
|
+
- **`ProofOfPersonhoodFull (2)`** → the chain team has flipped Alice on the Personhood precompile. The tests will now pick the PoP-Full stable labels (`e2epool`, `e2edirect`, `e2einc`, `e2erot`), and those **must already be registered to Alice** before the matrix runs. Register them once:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# Pre-built fixture is fine — it's the contenthash, not the content, that the tests overwrite.
|
|
88
|
+
for label in e2epool e2edirect e2einc e2erot; do
|
|
89
|
+
node bin/bulletin-deploy test/fixtures/e2e-spa "${label}.dot" --env paseo-next-v2 --js-merkle
|
|
90
|
+
done
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Skipping this leaves `setContenthash` reverting with `ERC721NonexistentToken` on whichever PoP-Full label the scenario picks (issue #381).
|
|
78
94
|
|
|
79
95
|
### 3. Fund Bob and trigger his account mapping
|
|
80
96
|
|
|
@@ -91,18 +107,27 @@ Expected output: Bob's SS58, his H160 (`0x41dccbd49b26c50d34355ed86ff0fa9e489d1e
|
|
|
91
107
|
|
|
92
108
|
### 4. Verify Bob PoP status
|
|
93
109
|
|
|
94
|
-
Bob
|
|
110
|
+
Bob owns both `e2eownedns02.dot` (NoStatus, used by S3 when Alice is NoStatus) and `e2eowned.dot` (PoP-Full, used by S3 when the Personhood precompile has flipped Alice to Full). The NoStatus branch needs no admin help; the PoP-Full branch needed Bob to register it back when the chain team granted him Full status once. After that one-shot registration the label persists until expiry, so Bob can stay NoStatus going forward — ownership and PoP-grade are decoupled after registration.
|
|
95
111
|
|
|
96
112
|
### 5. Register `e2eownedns02.dot` directly as Bob
|
|
97
113
|
|
|
98
|
-
Register the domain using the dedicated tool
|
|
114
|
+
Register the domain using the dedicated tool:
|
|
99
115
|
|
|
100
116
|
```bash
|
|
101
|
-
node tools/register-
|
|
117
|
+
node tools/register-test-fixture-paseo-next-v2.mjs e2eownedns02
|
|
102
118
|
```
|
|
103
119
|
|
|
104
120
|
Expected: `e2eownedns02.dot` is owned by Bob (`0x41dccbd49b26c50d34355ed86ff0fa9e489d1e01`).
|
|
105
|
-
The
|
|
121
|
+
The tool is idempotent: it leaves Bob-owned state alone and transfers the label back to Bob if a failed S3 fixture run accidentally left it owned by Alice.
|
|
122
|
+
|
|
123
|
+
### 6. Ensure Bob owns `e2eowned.dot` on paseo-next-v2
|
|
124
|
+
|
|
125
|
+
S3 picks `e2eowned.dot` when Alice is PoP-Full at test start. If the label is unregistered, Alice's deploy gets routed through the full register flow and her own H160 lands as owner — at which point every subsequent S3 run on the Full path "succeeds" cleanly (`exit 0`) instead of being rejected (`exit 78`), and the test fails. Bob must own this label.
|
|
126
|
+
|
|
127
|
+
If Bob already owns it (`ownerOf` on `DOTNS_REGISTRAR` returns `0x41dccbd…`), skip. Otherwise:
|
|
128
|
+
|
|
129
|
+
- **If nobody owns it yet:** registration needs Bob to hold Full PoP. Coordinate with the chain team to flip Bob's Personhood precompile to Full, then run `node tools/register-e2eowned-paseo-next-v2.mjs` (the script targets Bob via `//Bob`). After registration Bob can drop back to NoStatus.
|
|
130
|
+
- **If Alice (or anyone other than Bob) is squatting:** the owner can call `transferFrom(<current>, Bob, tokenId)` on `DOTNS_REGISTRAR`. ERC721 transfer is unconditional on the recipient (no PoP check) and doesn't need Bob's signer. `tools/transfer-e2eowned-to-bob.mjs` does this for Alice → Bob in one shot (was added to recover from a botched PR-CI run on 2026-05-17, see issue #381 thread).
|
|
106
131
|
|
|
107
132
|
---
|
|
108
133
|
|
|
@@ -121,8 +146,9 @@ E2E=1 E2E_SIGNER=pool E2E_MERKLE=js E2E_SCENARIO=s1 \
|
|
|
121
146
|
# Paseo Next v2
|
|
122
147
|
E2E=1 E2E_SIGNER=pool E2E_MERKLE=js E2E_SCENARIO=s1 \
|
|
123
148
|
BULLETIN_RPC=wss://paseo-bulletin-next-rpc.polkadot.io \
|
|
124
|
-
|
|
149
|
+
BULLETIN_DEPLOY_ENV=paseo-next-v2 \
|
|
125
150
|
npm run test:e2e
|
|
151
|
+
# Previously named DOTNS_ENV; kept as deprecated alias for one release.
|
|
126
152
|
```
|
|
127
153
|
|
|
128
154
|
Vary `E2E_SCENARIO` (`s1`, `s2`, `s3`), `E2E_SIGNER` (`pool`, `direct`), and `E2E_MERKLE` (`js`, `kubo`) to cover the full CI matrix.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bulletin-deploy",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.22-rc.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"assets"
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "tsup src/index.ts src/deploy.ts src/dotns.ts src/pool.ts src/telemetry.ts src/memory-report.ts src/merkle.ts src/gh-pages-mirror.ts src/version-check.ts src/bug-report.ts src/run-state.ts src/environments.ts src/errors.ts src/manifest.ts src/chunk-probe.ts src/manifest-embed.ts src/manifest-fetch.ts src/manifest-roundtrip.ts src/incremental-stats.ts src/chunker.ts src/mirror.ts --format esm --dts --clean --target node22",
|
|
33
|
+
"build": "tsup src/index.ts src/deploy.ts src/dotns.ts src/pool.ts src/telemetry.ts src/memory-report.ts src/merkle.ts src/gh-pages-mirror.ts src/version-check.ts src/bug-report.ts src/run-state.ts src/environments.ts src/errors.ts src/manifest.ts src/chunk-probe.ts src/manifest-embed.ts src/manifest-fetch.ts src/manifest-roundtrip.ts src/incremental-stats.ts src/chunker.ts src/mirror.ts src/personhood/encoding.ts src/personhood/hashing.ts src/personhood/constants.ts src/personhood/member-key.ts src/personhood/people-client.ts src/personhood/reprove.ts src/personhood/bind-personal-id.ts src/personhood/claim-pgas.ts src/personhood/bind-paid-alias.ts src/personhood/bootstrap.ts --format esm --dts --clean --target node22",
|
|
34
34
|
"refresh-environments": "node scripts/refresh-environments.mjs",
|
|
35
35
|
"check:watched-dependencies": "node tools/check-watched-dependencies.mjs",
|
|
36
36
|
"prepare": "npm run build",
|
|
37
|
-
"test": "npm run build && node --test test/test.js test/cli-help.test.js test/helpers/e2e-helpers.test.js test/environments.test.js test/refresh-environments.test.js test/watched-dependencies.test.js",
|
|
37
|
+
"test": "npm run build && node --test test/test.js test/cli-help.test.js test/helpers/e2e-helpers.test.js test/environments.test.js test/refresh-environments.test.js test/watched-dependencies.test.js test/chunk-sharing-report.test.js",
|
|
38
38
|
"test:e2e": "npm run build && node --test test/e2e.test.js",
|
|
39
39
|
"test:e2e:smoke": "bash scripts/e2e-pass.sh smoke",
|
|
40
40
|
"test:e2e:pr": "bash scripts/e2e-pass.sh pr",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"ipfs-unixfs-importer": "^16.1.4",
|
|
57
57
|
"multiformats": "^13.4.1",
|
|
58
58
|
"polkadot-api": "^2.1.3",
|
|
59
|
+
"verifiablejs": "^1.2.0",
|
|
59
60
|
"viem": "^2.30.5"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|