From 49c03e737186de3dba6692a29cb6ab53fde8f865 Mon Sep 17 00:00:00 2001 From: giuseppere Date: Mon, 31 Aug 2026 09:18:30 +0200 Subject: [PATCH 1/2] change previewnet TLD from `test` to `testnet` --- .github/workflows/publish-prerelease.yml | 2 +- .github/workflows/publish-release.yml | 2 +- DEPLOYMENTS.md | 2 +- scripts/deploy/BaseDeployer.s.sol | 2 +- scripts/genesis/build-genesis.sh | 4 ++-- scripts/genesis/extract-genesis.mjs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-prerelease.yml b/.github/workflows/publish-prerelease.yml index 3fe36756..3d7f3388 100644 --- a/.github/workflows/publish-prerelease.yml +++ b/.github/workflows/publish-prerelease.yml @@ -26,7 +26,7 @@ jobs: # Baked into the genesis registry, so it decides which networks the artifact suits. # Job-level: five steps name the file derived from it and must not disagree. env: - DOTNS_TLD: test + DOTNS_TLD: testnet steps: # On workflow_dispatch the tag does not exist yet; the release step creates it # from the branch this run was started on. Read through an env var rather than diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 265523df..a4682dc0 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -26,7 +26,7 @@ jobs: # Baked into the genesis registry, so it decides which networks the artifact suits. # Job-level: five steps name the file derived from it and must not disagree. env: - DOTNS_TLD: test + DOTNS_TLD: testnet steps: # On workflow_dispatch the tag does not exist yet; the release step creates it # from the branch this run was started on. Read through an env var rather than diff --git a/DEPLOYMENTS.md b/DEPLOYMENTS.md index 7bb07ad6..6d6c718a 100644 --- a/DEPLOYMENTS.md +++ b/DEPLOYMENTS.md @@ -449,7 +449,7 @@ Every network deployed through the shared CREATE3 factory lands on the same addr | Network | TLD | | --- | --- | -| Paseo Asset Hub Previewnet | `.test` | +| Paseo Asset Hub Previewnet | `.testnet` | | Paseo Asset Hub Next V2 | `.paseo` | Each release also publishes the same addresses as `deployments.json`, attached to the release and at the root of `dotns-abis-.zip`, for consumers outside this repository. See [`RELEASE_ARTIFACTS.md`](./RELEASE_ARTIFACTS.md). diff --git a/scripts/deploy/BaseDeployer.s.sol b/scripts/deploy/BaseDeployer.s.sol index b9e0c076..d4752719 100644 --- a/scripts/deploy/BaseDeployer.s.sol +++ b/scripts/deploy/BaseDeployer.s.sol @@ -64,7 +64,7 @@ abstract contract BaseDeployer is Script { /// @notice Resolves the bare TLD label to initialise the protocol registry with. /// @dev Read from `DOTNS_TLD` because distinct networks can share one `block.chainid`, so the - /// TLD cannot be keyed off the chain id. The operator sets `DOTNS_TLD=paseo` (or `test`, + /// TLD cannot be keyed off the chain id. The operator sets `DOTNS_TLD=paseo` (or `testnet`, /// `dot`) per deployment; it is required, with no default, so an unset or empty value /// aborts the deploy rather than silently landing the wrong TLD, which no setter can /// correct afterwards. The label is passed straight into diff --git a/scripts/genesis/build-genesis.sh b/scripts/genesis/build-genesis.sh index 8bde4c5c..0c8d3387 100755 --- a/scripts/genesis/build-genesis.sh +++ b/scripts/genesis/build-genesis.sh @@ -13,7 +13,7 @@ set -euo pipefail # dotns-genesis-.json pallet-revive GenesisConfig accounts # # The TLD is in the filename because it is baked into the registry initialiser: a genesis built -# with DOTNS_TLD=test suits a test network and nothing else, and a file called plainly +# with DOTNS_TLD=testnet suits a test network and nothing else, and a file called plainly # `dotns-genesis.json` is how a test registry ends up on a chain that wanted a real one. # # Addresses are NOT emitted here. `release-metadata.mjs build` already publishes deployments.json @@ -73,7 +73,7 @@ WHITELIST_OPERATOR="${WHITELIST_OPERATOR:-}" # forge stage. This does not affect any address — only registry storage — but it # does decide which networks the resulting genesis is fit for, so it ends up in # the output filename. -export DOTNS_TLD="${DOTNS_TLD:-test}" +export DOTNS_TLD="${DOTNS_TLD:-testnet}" if ! printf '%s' "$DOTNS_TLD" | grep -Eq '^[a-z]{2,63}$'; then echo "Error: DOTNS_TLD ('$DOTNS_TLD') must be 2 to 63 lowercase ASCII letters (a-z)" >&2 exit 1 diff --git a/scripts/genesis/extract-genesis.mjs b/scripts/genesis/extract-genesis.mjs index 23211f57..d36ec134 100644 --- a/scripts/genesis/extract-genesis.mjs +++ b/scripts/genesis/extract-genesis.mjs @@ -21,7 +21,7 @@ * node scripts/genesis/extract-genesis.mjs \ * --state ./release/anvil-state.json \ * --deployments ./deployments/localhost/31337.json \ - * --output ./release/dotns-genesis-test.json + * --output ./release/dotns-genesis-testnet.json */ import { readFileSync, writeFileSync } from "fs"; From eaf405af37bd2fef4452f7768f52f84365531e40 Mon Sep 17 00:00:00 2001 From: giuseppere Date: Mon, 31 Aug 2026 09:33:19 +0200 Subject: [PATCH 2/2] fmt fix --- scripts/deploy/BaseDeployer.s.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy/BaseDeployer.s.sol b/scripts/deploy/BaseDeployer.s.sol index d4752719..de6f2ff2 100644 --- a/scripts/deploy/BaseDeployer.s.sol +++ b/scripts/deploy/BaseDeployer.s.sol @@ -64,7 +64,7 @@ abstract contract BaseDeployer is Script { /// @notice Resolves the bare TLD label to initialise the protocol registry with. /// @dev Read from `DOTNS_TLD` because distinct networks can share one `block.chainid`, so the - /// TLD cannot be keyed off the chain id. The operator sets `DOTNS_TLD=paseo` (or `testnet`, + /// TLD cannot be keyed off the chain id. Operators set `DOTNS_TLD=paseo` (or `testnet`, /// `dot`) per deployment; it is required, with no default, so an unset or empty value /// aborts the deploy rather than silently landing the wrong TLD, which no setter can /// correct afterwards. The label is passed straight into