bulletin-deploy 0.17.1 → 0.18.0
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/README.md +5 -6
- package/assets/environments.json +0 -3
- package/dist/auth-config.js +4 -4
- package/dist/bug-report.js +4 -4
- package/dist/chain-health.js +3 -3
- package/dist/{chunk-S7OW6CYF.js → chunk-3CES4RZG.js} +1 -1
- package/dist/{chunk-YVHS6WA3.js → chunk-3TDAKT7Y.js} +2 -2
- package/dist/{chunk-VRHVH6RM.js → chunk-6BIAW73W.js} +1 -1
- package/dist/{chunk-JB4OIM7X.js → chunk-6LR7OM7F.js} +13 -13
- package/dist/{chunk-6GLMR2T2.js → chunk-6WLVGBLQ.js} +2 -2
- package/dist/{chunk-X4IXDGEY.js → chunk-7I3MTGOR.js} +43 -15
- package/dist/{chunk-JQZDP2TS.js → chunk-A7GZZQ3Q.js} +2 -2
- package/dist/{chunk-63EPGOEW.js → chunk-F4OW5UVA.js} +1 -1
- package/dist/{chunk-6ZOTJHVI.js → chunk-HDGD5FYX.js} +0 -3
- package/dist/{chunk-T6HNSBZD.js → chunk-LZ7HCV4C.js} +1 -1
- package/dist/{chunk-5P2IARIJ.js → chunk-RSAEMNX4.js} +80 -37
- package/dist/{chunk-AVK74F4Y.js → chunk-TIQ3TCK4.js} +4 -4
- package/dist/{chunk-6FNOSDZU.js → chunk-UY2DR5V4.js} +3 -3
- package/dist/{chunk-SCLX3WSE.js → chunk-WYJX7OFF.js} +1 -1
- package/dist/chunk-probe.js +3 -3
- package/dist/commands/login.js +13 -13
- package/dist/commands/logout.js +5 -5
- package/dist/commands/transfer.js +6 -6
- package/dist/commands/whoami.js +4 -4
- package/dist/deploy-actors.js +8 -8
- package/dist/deploy.d.ts +2 -2
- package/dist/deploy.js +13 -13
- package/dist/dotns-protocol.d.ts +69 -4
- package/dist/dotns-protocol.js +5 -1
- package/dist/dotns.d.ts +18 -4
- package/dist/dotns.js +8 -6
- package/dist/environments.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -14
- package/dist/manifest/publish.js +14 -14
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +13 -13
- package/dist/personhood/bootstrap.js +6 -6
- package/dist/personhood/people-client.js +6 -6
- package/dist/run-state.js +1 -1
- package/dist/sss-allowance-cache.js +5 -5
- package/dist/storage-signer.js +13 -13
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -79,17 +79,16 @@ Subcommands: `login`, `logout`, `whoami` (session management, above) and `transf
|
|
|
79
79
|
|
|
80
80
|
## Naming
|
|
81
81
|
|
|
82
|
-
A DotNS label is 3-63 lowercase letters, digits, and hyphens, and it must satisfy the on-chain registration rules (PopRules) to be self-registrable
|
|
82
|
+
A DotNS label is 3-63 lowercase letters, digits, and hyphens, and it must satisfy the on-chain registration rules (PopRules) to be self-registrable. **The exact rules differ by DotNS generation** — trailing-digit handling and how the base length gets measured both vary — and bulletin-deploy detects which generation the connected chain is running and applies the right one automatically; a label that only satisfies one generation will break the moment it deploys to another.
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
- **Base length:** the label minus its trailing digit run must be **more than 5 characters**. Shorter base names are reserved for governance.
|
|
84
|
+
If a name violates the connected generation's rules, the deploy fails with a message that offers a compliant alternative derived from your own input — no name gets silently substituted.
|
|
86
85
|
|
|
87
|
-
|
|
86
|
+
**The one rule that's safe everywhere:** keep the label's trailing digit run to exactly 0 or 2 digits, and keep the base (measured with that trailing run stripped) at **9 characters or more**. `myapp-preview07` — base `myapp-preview` at 13 chars — is `NoStatus` (self-registrable by anyone) on every generation. A shorter base isn't: `myapp-pr07` has an 8-char base (`myapp-pr`) on older DotNS generations, so it lands in the 6-8 band that demands proof of personhood — most callers don't have it, so the deploy fails — even though the same label measures 10 characters as written and clears the newest generation outright.
|
|
88
87
|
|
|
89
|
-
**PR-preview labels** are the case this trips up most often: a bare PR number gives exactly one trailing digit for PRs 1-9 (`myapp-pr7`), which
|
|
88
|
+
**PR-preview labels** are the case this trips up most often: a bare PR number gives exactly one trailing digit for PRs 1-9 (`myapp-pr7`), which older DotNS generations reject outright. Zero-padding alone isn't enough — `myapp-pr07` still fails on those same generations for the reason above. Pad the number **and** use a prefix long enough to clear the 9-character base:
|
|
90
89
|
|
|
91
90
|
```sh
|
|
92
|
-
bulletin-deploy ./dist "myapp-
|
|
91
|
+
bulletin-deploy ./dist "myapp-preview$(printf '%02d' "$PR_NUMBER")"
|
|
93
92
|
```
|
|
94
93
|
|
|
95
94
|
## Environments
|
package/assets/environments.json
CHANGED
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"DOTNS_REGISTRAR_CONTROLLER": "0x35f8594c8e68a0ad079bca5f72bf6c9560ac22b0",
|
|
56
56
|
"DOTNS_REGISTRY": "0x64e619ea4d8a593c68533c0feaf3e36d3666495b",
|
|
57
57
|
"DOTNS_POP_CONTROLLER": "0xb0dd60b3da4a563cdc8aa78ec9d5b169f81046f1",
|
|
58
|
-
"ROOT_GATEWAY_DISPATCHER": "0x2cedd39924d216b4a49f4c532e03fe79d006e89e",
|
|
59
58
|
"DOTNS_RESOLVER": "0x5296344ed752c19cdee2bb3e5e5b015ba69982c7",
|
|
60
59
|
"DOTNS_CONTENT_RESOLVER": "0xa27c323a30c7ee1f0a7a35f48983d98d18c53445",
|
|
61
60
|
"DOTNS_REVERSE_RESOLVER": "0x099b539bf034c741404d393ab95946e4923bc7ab",
|
|
@@ -124,7 +123,6 @@
|
|
|
124
123
|
"DOTNS_REGISTRAR_CONTROLLER": "0xBdaA01bD1bA67d709F2b1fF286Da0d854977EA30",
|
|
125
124
|
"DOTNS_REGISTRY": "0xf34054fd76BbF85f216cf9908226D5f0A72E50CA",
|
|
126
125
|
"DOTNS_POP_CONTROLLER": "0xCC932348606cc1f3318cADeC5A5Cd2CA447f8a4b",
|
|
127
|
-
"ROOT_GATEWAY_DISPATCHER": "0xa889CCA3Fb4B07b98a11cc54C10f13dDA20bc3db",
|
|
128
126
|
"DOTNS_RESOLVER": "0xbd1165E549DF96F083c0A16f61590927bC187009",
|
|
129
127
|
"DOTNS_CONTENT_RESOLVER": "0x7F74D7CD50f5a834270E2ad395a01b01891AB37d",
|
|
130
128
|
"DOTNS_REVERSE_RESOLVER": "0xee3883d7eB60Ee9BCD7F3bcD8f2f05302A9Cc035",
|
|
@@ -154,7 +152,6 @@
|
|
|
154
152
|
"DOTNS_REGISTRAR_CONTROLLER": "0x45fDEa4Ad7b8607Fc22DBC3DBE3cD8b350F8bede",
|
|
155
153
|
"DOTNS_REGISTRY": "0x527b08a640b527a3dae0C4BE04D7344E430B6E50",
|
|
156
154
|
"DOTNS_POP_CONTROLLER": "0x1884819F6747576883805Cb2b7BB68d29484d1b0",
|
|
157
|
-
"ROOT_GATEWAY_DISPATCHER": "0x63d7F768e2B2Fa6A270E0fc7b93738a18cb8E73A",
|
|
158
155
|
"DOTNS_RESOLVER": "0xC28796526Bf3E9295f09655a1001F30f77AfCF0D",
|
|
159
156
|
"DOTNS_CONTENT_RESOLVER": "0x326bdE29315199c814B1c58b431D84D16EA5cE41",
|
|
160
157
|
"DOTNS_REVERSE_RESOLVER": "0xfd2594FcF920B38A970011C486e1E3041563147F",
|
package/dist/auth-config.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
getPeopleChainEndpoints,
|
|
10
10
|
hasPersistedSession,
|
|
11
11
|
resolveBulletinEndpoints
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6WLVGBLQ.js";
|
|
13
13
|
import "./chunk-TSPERKUS.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-HDGD5FYX.js";
|
|
15
15
|
import "./chunk-ZOC4GITL.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-3CES4RZG.js";
|
|
17
|
+
import "./chunk-3TDAKT7Y.js";
|
|
18
18
|
export {
|
|
19
19
|
DOT_DAPP_ID,
|
|
20
20
|
DOT_DERIVATION_INDEX,
|
package/dist/bug-report.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
offerBugReport,
|
|
11
11
|
scrubSecrets,
|
|
12
12
|
setDeployContext
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-UY2DR5V4.js";
|
|
14
|
+
import "./chunk-F4OW5UVA.js";
|
|
15
|
+
import "./chunk-3CES4RZG.js";
|
|
16
|
+
import "./chunk-3TDAKT7Y.js";
|
|
17
17
|
export {
|
|
18
18
|
buildCliFlagsSummary,
|
|
19
19
|
buildLabels,
|
package/dist/chain-health.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
DEFAULT_WINDOW_BLOCKS,
|
|
4
4
|
MAX_SPANS_PER_SAMPLER,
|
|
5
5
|
endpointHost
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-LZ7HCV4C.js";
|
|
7
|
+
import "./chunk-3CES4RZG.js";
|
|
8
|
+
import "./chunk-3TDAKT7Y.js";
|
|
9
9
|
export {
|
|
10
10
|
ChainHealthSampler,
|
|
11
11
|
DEFAULT_WINDOW_BLOCKS,
|
|
@@ -6,7 +6,7 @@ import * as path from "path";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "bulletin-deploy",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.18.0",
|
|
10
10
|
private: false,
|
|
11
11
|
repository: {
|
|
12
12
|
type: "git",
|
|
@@ -99,7 +99,7 @@ var package_default = {
|
|
|
99
99
|
overrides: {
|
|
100
100
|
"@polkadot-api/json-rpc-provider": "^0.2.0"
|
|
101
101
|
},
|
|
102
|
-
minimumVersion: "0.
|
|
102
|
+
minimumVersion: "0.16.1",
|
|
103
103
|
engines: {
|
|
104
104
|
node: ">=22"
|
|
105
105
|
},
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-M5AKL3FL.js";
|
|
4
4
|
import {
|
|
5
5
|
preflightSssAllowance
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6BIAW73W.js";
|
|
7
7
|
import {
|
|
8
8
|
statementSigningAccount
|
|
9
9
|
} from "./chunk-GRPLHUYC.js";
|
|
@@ -29,18 +29,18 @@ import {
|
|
|
29
29
|
} from "./chunk-WPC2PUCV.js";
|
|
30
30
|
import {
|
|
31
31
|
setDeployContext
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UY2DR5V4.js";
|
|
33
33
|
import {
|
|
34
34
|
getBestBlockNumber,
|
|
35
35
|
probeChunks,
|
|
36
36
|
probeFinalityGap
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WYJX7OFF.js";
|
|
38
38
|
import {
|
|
39
39
|
packSection
|
|
40
40
|
} from "./chunk-C2TS5MER.js";
|
|
41
41
|
import {
|
|
42
42
|
resolveStorageSigner
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-A7GZZQ3Q.js";
|
|
44
44
|
import {
|
|
45
45
|
createSlotAccountSigner,
|
|
46
46
|
requestResourceAllocation
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseDomainName,
|
|
56
56
|
popStatusName,
|
|
57
57
|
verifyNonceAdvanced
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-RSAEMNX4.js";
|
|
59
59
|
import {
|
|
60
60
|
derivePoolAccounts,
|
|
61
61
|
detectTestnet,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
STALE_SESSION_MESSAGE,
|
|
70
70
|
getPeopleChainEndpoints,
|
|
71
71
|
hasPersistedSession
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-6WLVGBLQ.js";
|
|
73
73
|
import {
|
|
74
74
|
CLI_NAME
|
|
75
75
|
} from "./chunk-TSPERKUS.js";
|
|
@@ -78,13 +78,13 @@ import {
|
|
|
78
78
|
getPopSelfServeConfig,
|
|
79
79
|
loadEnvironments,
|
|
80
80
|
resolveEndpoints
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-HDGD5FYX.js";
|
|
82
82
|
import {
|
|
83
83
|
NonRetryableError
|
|
84
84
|
} from "./chunk-ZOC4GITL.js";
|
|
85
85
|
import {
|
|
86
86
|
ChainHealthSampler
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-LZ7HCV4C.js";
|
|
88
88
|
import {
|
|
89
89
|
VERSION,
|
|
90
90
|
captureWarning,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
truncateAddress,
|
|
99
99
|
withDeploySpan,
|
|
100
100
|
withSpan
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-3CES4RZG.js";
|
|
102
102
|
|
|
103
103
|
// src/merkle.ts
|
|
104
104
|
import * as fs2 from "fs";
|
|
@@ -2024,7 +2024,7 @@ function assertSubdomainOwnerMatchesSigner(result, signerEvmAddress, sublabel, p
|
|
|
2024
2024
|
);
|
|
2025
2025
|
}
|
|
2026
2026
|
}
|
|
2027
|
-
function formatSubdomainParentError(fullName, parentLabel, parentOwner, selfAddress, tld = DEFAULT_TLD) {
|
|
2027
|
+
function formatSubdomainParentError(fullName, parentLabel, parentOwner, selfAddress, tld = DEFAULT_TLD, profile = "poprules-startingPrice") {
|
|
2028
2028
|
if (parentOwner !== null) {
|
|
2029
2029
|
const transferBullet = selfAddress ? ` - ask the ${parentOwner} account to hand the parent to this signer, run BY that account: ${CLI_NAME} transfer ${parentLabel}.${tld} --to ${selfAddress} --mnemonic <the ${parentOwner} account's key>
|
|
2030
2030
|
` : "";
|
|
@@ -2034,14 +2034,14 @@ function formatSubdomainParentError(fullName, parentLabel, parentOwner, selfAddr
|
|
|
2034
2034
|
` + (transferBullet ? `Either:
|
|
2035
2035
|
${transferBullet}${ownedParentBullet}` : ownedParentBullet);
|
|
2036
2036
|
}
|
|
2037
|
-
const registrability = classifyRegistrability(parentLabel);
|
|
2037
|
+
const registrability = classifyRegistrability(parentLabel, profile);
|
|
2038
2038
|
if (registrability.registrable) {
|
|
2039
2039
|
return `Cannot deploy ${fullName}: parent ${parentLabel}.${tld} is owned by no one, not by this signer.
|
|
2040
2040
|
|
|
2041
2041
|
Register the parent with this signer first, then redeploy the subdomain unchanged:
|
|
2042
2042
|
${CLI_NAME} <build-dir> ${parentLabel}.${tld}`;
|
|
2043
2043
|
}
|
|
2044
|
-
return `Cannot deploy ${fullName}: parent ${formatUnregistrableReason({ label: parentLabel, registrability, existingOwner: null, selfAddress, tld })}`;
|
|
2044
|
+
return `Cannot deploy ${fullName}: parent ${formatUnregistrableReason({ label: parentLabel, registrability, existingOwner: null, selfAddress, tld, profile })}`;
|
|
2045
2045
|
}
|
|
2046
2046
|
function browserUrlFor(name, envId, webGateway) {
|
|
2047
2047
|
const host = webGateway ?? "dot.li";
|
|
@@ -2299,7 +2299,7 @@ async function deploy(content, domainName = null, options = {}) {
|
|
|
2299
2299
|
const { owned: parentOwned, owner: parentOwner } = await preflight.checkOwnership(parsed.parentLabel);
|
|
2300
2300
|
if (!parentOwned) {
|
|
2301
2301
|
throw new NonRetryableError(
|
|
2302
|
-
formatSubdomainParentError(parsed.fullName, parsed.parentLabel, parentOwner ?? null, preflight.evmAddress ?? "", envTld)
|
|
2302
|
+
formatSubdomainParentError(parsed.fullName, parsed.parentLabel, parentOwner ?? null, preflight.evmAddress ?? "", envTld, preflight.protocolVersion)
|
|
2303
2303
|
);
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-TSPERKUS.js";
|
|
4
4
|
import {
|
|
5
5
|
loadEnvironments
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HDGD5FYX.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3CES4RZG.js";
|
|
10
10
|
|
|
11
11
|
// src/auth-config.ts
|
|
12
12
|
import { existsSync, readdirSync } from "fs";
|
|
@@ -9,17 +9,22 @@ var DOTNS_ABI_PROFILES = {
|
|
|
9
9
|
introducedAt: "v0.5.8-rc1",
|
|
10
10
|
abiPackage: "dotns-abis-v0.5.8-rc1.zip",
|
|
11
11
|
discriminator: "pricingVersion"
|
|
12
|
+
},
|
|
13
|
+
"v0.6.0": {
|
|
14
|
+
introducedAt: "v0.6.0",
|
|
15
|
+
abiPackage: "dotns-abis-v0.6.0.zip",
|
|
16
|
+
discriminator: "isPopIssued"
|
|
12
17
|
}
|
|
13
18
|
};
|
|
14
19
|
function classifyProtocolVersion(probe) {
|
|
15
|
-
const { hasCode, pricingVersionOk, startingPriceOk } = probe;
|
|
20
|
+
const { hasCode, pricingVersionOk, startingPriceOk, isPopIssuedOk } = probe;
|
|
16
21
|
if (hasCode === false) {
|
|
17
22
|
return {
|
|
18
23
|
profile: null,
|
|
19
24
|
reason: "No contract deployed at this address \u2014 could not detect the DotNS ABI profile because no contract code was found here. Check environments.json / --contract config for this network."
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
|
-
if (pricingVersionOk) return { profile: "v0.5.8-rc1" };
|
|
27
|
+
if (pricingVersionOk) return { profile: isPopIssuedOk === true ? "v0.6.0" : "v0.5.8-rc1" };
|
|
23
28
|
if (startingPriceOk) return { profile: "poprules-startingPrice" };
|
|
24
29
|
const reason = hasCode === true ? "Could not determine the DotNS ABI profile: contract code is present at POP_RULES, but neither pricingVersion() (v0.5.8-rc1) nor startingPrice() (poprules-startingPrice) answered." : "Could not determine the DotNS ABI profile: neither pricingVersion() (v0.5.8-rc1) nor startingPrice() (poprules-startingPrice) answered. Code presence at this address could not be verified either (the runtime code-presence query failed), so a wrong/undeployed POP_RULES address is also possible.";
|
|
25
30
|
return { profile: null, reason };
|
|
@@ -69,6 +74,10 @@ var V0_5_8_RC1_POP_RULES_ABI = [
|
|
|
69
74
|
{ inputs: [], name: "pricingVersion", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
70
75
|
{ inputs: [{ name: "name", type: "string" }, { name: "userAddress", type: "address" }, { name: "version", type: "uint256" }], name: "priceWithCheckAtVersion", outputs: [PRICE_WITH_CHECK_METADATA_OUTPUT], stateMutability: "view", type: "function" }
|
|
71
76
|
];
|
|
77
|
+
var POP_CONTROLLER_PROBE_ABI = [
|
|
78
|
+
{ inputs: [{ name: "label", type: "string" }], name: "isPopIssued", outputs: [{ name: "issued", type: "bool" }], stateMutability: "view", type: "function" }
|
|
79
|
+
];
|
|
80
|
+
var PROTOCOL_PROBE_LABEL = "probelabel";
|
|
72
81
|
function withTenPercentBuffer(priceWei) {
|
|
73
82
|
return priceWei * 110n / 100n;
|
|
74
83
|
}
|
|
@@ -84,19 +93,15 @@ var oldAdapter = {
|
|
|
84
93
|
return { functionName: "startingPrice", args: [] };
|
|
85
94
|
}
|
|
86
95
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
needsPricingBeforeCommit: true,
|
|
90
|
-
controllerAbi: V0_5_8_RC1_CONTROLLER_ABI,
|
|
91
|
-
popRulesAbi: V0_5_8_RC1_POP_RULES_ABI,
|
|
92
|
-
buildRegistration(base, pricing) {
|
|
96
|
+
function buildPricedRegistration(profileLabel) {
|
|
97
|
+
return (base, pricing) => {
|
|
93
98
|
if (pricing.pricingVersion === void 0) {
|
|
94
99
|
throw new Error(
|
|
95
|
-
|
|
100
|
+
`DotNS ${profileLabel} registration requires pricing.pricingVersion (read PopRules.pricingVersion() before committing \u2014 it must be known before makeCommitment since it is part of the committed tuple).`
|
|
96
101
|
);
|
|
97
102
|
}
|
|
98
103
|
if (pricing.priceWei === void 0) {
|
|
99
|
-
throw new Error(
|
|
104
|
+
throw new Error(`DotNS ${profileLabel} registration requires pricing.priceWei to compute maxPrice.`);
|
|
100
105
|
}
|
|
101
106
|
return {
|
|
102
107
|
label: base.label,
|
|
@@ -106,13 +111,34 @@ var v058rc1Adapter = {
|
|
|
106
111
|
maxPrice: withTenPercentBuffer(pricing.priceWei),
|
|
107
112
|
pricingVersion: pricing.pricingVersion
|
|
108
113
|
};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function pricedDepositCall(label) {
|
|
117
|
+
return { functionName: "price", args: [label] };
|
|
118
|
+
}
|
|
119
|
+
var v058rc1Adapter = {
|
|
120
|
+
profile: "v0.5.8-rc1",
|
|
121
|
+
needsPricingBeforeCommit: true,
|
|
122
|
+
controllerAbi: V0_5_8_RC1_CONTROLLER_ABI,
|
|
123
|
+
popRulesAbi: V0_5_8_RC1_POP_RULES_ABI,
|
|
124
|
+
buildRegistration: buildPricedRegistration("v0.5.8-rc1"),
|
|
125
|
+
depositCall: pricedDepositCall
|
|
126
|
+
};
|
|
127
|
+
var v060Adapter = {
|
|
128
|
+
profile: "v0.6.0",
|
|
129
|
+
needsPricingBeforeCommit: true,
|
|
130
|
+
controllerAbi: V0_5_8_RC1_CONTROLLER_ABI,
|
|
131
|
+
popRulesAbi: V0_5_8_RC1_POP_RULES_ABI,
|
|
132
|
+
buildRegistration: buildPricedRegistration("v0.6.0"),
|
|
133
|
+
depositCall: pricedDepositCall
|
|
134
|
+
};
|
|
135
|
+
var ADAPTERS = {
|
|
136
|
+
"poprules-startingPrice": oldAdapter,
|
|
137
|
+
"v0.5.8-rc1": v058rc1Adapter,
|
|
138
|
+
"v0.6.0": v060Adapter
|
|
113
139
|
};
|
|
114
140
|
function getAdapter(profile) {
|
|
115
|
-
return profile
|
|
141
|
+
return ADAPTERS[profile];
|
|
116
142
|
}
|
|
117
143
|
|
|
118
144
|
export {
|
|
@@ -122,6 +148,8 @@ export {
|
|
|
122
148
|
V0_5_8_RC1_CONTROLLER_ABI,
|
|
123
149
|
OLD_POP_RULES_ABI,
|
|
124
150
|
V0_5_8_RC1_POP_RULES_ABI,
|
|
151
|
+
POP_CONTROLLER_PROBE_ABI,
|
|
152
|
+
PROTOCOL_PROBE_LABEL,
|
|
125
153
|
withTenPercentBuffer,
|
|
126
154
|
getAdapter
|
|
127
155
|
};
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-5FLTDWWP.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_MNEMONIC
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RSAEMNX4.js";
|
|
8
8
|
import {
|
|
9
9
|
DOT_PRODUCT_ID
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6WLVGBLQ.js";
|
|
11
11
|
|
|
12
12
|
// src/deploy-actors.ts
|
|
13
13
|
var DEFAULT_WORKER_SURI = DEFAULT_MNEMONIC;
|
|
@@ -64,7 +64,6 @@ var environments_default = {
|
|
|
64
64
|
DOTNS_REGISTRAR_CONTROLLER: "0x35f8594c8e68a0ad079bca5f72bf6c9560ac22b0",
|
|
65
65
|
DOTNS_REGISTRY: "0x64e619ea4d8a593c68533c0feaf3e36d3666495b",
|
|
66
66
|
DOTNS_POP_CONTROLLER: "0xb0dd60b3da4a563cdc8aa78ec9d5b169f81046f1",
|
|
67
|
-
ROOT_GATEWAY_DISPATCHER: "0x2cedd39924d216b4a49f4c532e03fe79d006e89e",
|
|
68
67
|
DOTNS_RESOLVER: "0x5296344ed752c19cdee2bb3e5e5b015ba69982c7",
|
|
69
68
|
DOTNS_CONTENT_RESOLVER: "0xa27c323a30c7ee1f0a7a35f48983d98d18c53445",
|
|
70
69
|
DOTNS_REVERSE_RESOLVER: "0x099b539bf034c741404d393ab95946e4923bc7ab",
|
|
@@ -133,7 +132,6 @@ var environments_default = {
|
|
|
133
132
|
DOTNS_REGISTRAR_CONTROLLER: "0xBdaA01bD1bA67d709F2b1fF286Da0d854977EA30",
|
|
134
133
|
DOTNS_REGISTRY: "0xf34054fd76BbF85f216cf9908226D5f0A72E50CA",
|
|
135
134
|
DOTNS_POP_CONTROLLER: "0xCC932348606cc1f3318cADeC5A5Cd2CA447f8a4b",
|
|
136
|
-
ROOT_GATEWAY_DISPATCHER: "0xa889CCA3Fb4B07b98a11cc54C10f13dDA20bc3db",
|
|
137
135
|
DOTNS_RESOLVER: "0xbd1165E549DF96F083c0A16f61590927bC187009",
|
|
138
136
|
DOTNS_CONTENT_RESOLVER: "0x7F74D7CD50f5a834270E2ad395a01b01891AB37d",
|
|
139
137
|
DOTNS_REVERSE_RESOLVER: "0xee3883d7eB60Ee9BCD7F3bcD8f2f05302A9Cc035",
|
|
@@ -163,7 +161,6 @@ var environments_default = {
|
|
|
163
161
|
DOTNS_REGISTRAR_CONTROLLER: "0x45fDEa4Ad7b8607Fc22DBC3DBE3cD8b350F8bede",
|
|
164
162
|
DOTNS_REGISTRY: "0x527b08a640b527a3dae0C4BE04D7344E430B6E50",
|
|
165
163
|
DOTNS_POP_CONTROLLER: "0x1884819F6747576883805Cb2b7BB68d29484d1b0",
|
|
166
|
-
ROOT_GATEWAY_DISPATCHER: "0x63d7F768e2B2Fa6A270E0fc7b93738a18cb8E73A",
|
|
167
164
|
DOTNS_RESOLVER: "0xC28796526Bf3E9295f09655a1001F30f77AfCF0D",
|
|
168
165
|
DOTNS_CONTENT_RESOLVER: "0x326bdE29315199c814B1c58b431D84D16EA5cE41",
|
|
169
166
|
DOTNS_REVERSE_RESOLVER: "0xfd2594FcF920B38A970011C486e1E3041563147F",
|