bulletin-deploy 0.16.0 → 0.16.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/auth-config.js +3 -3
- package/dist/bug-report.js +4 -4
- package/dist/chain-health.js +3 -3
- package/dist/{chunk-CI3SDMS5.js → chunk-4FIJGSCK.js} +1 -1
- package/dist/{chunk-CWN3AISD.js → chunk-4HUEHLSW.js} +3 -3
- package/dist/{chunk-7THFMRL4.js → chunk-AREGYTFD.js} +15 -15
- package/dist/{chunk-FYRDIYAS.js → chunk-C7CZK4IE.js} +1 -1
- package/dist/{chunk-3P3EVKUH.js → chunk-DB5U6SLK.js} +3 -3
- package/dist/{chunk-KYO2QBAO.js → chunk-HLU2BVBP.js} +145 -24
- package/dist/{chunk-Y5CLGNWO.js → chunk-IFZCCNIV.js} +3 -3
- package/dist/{chunk-367SWF2F.js → chunk-KZKU7RSW.js} +1 -1
- package/dist/{chunk-5AIPL53U.js → chunk-PPC5SPAP.js} +1 -1
- package/dist/{chunk-AV4MFZ3A.js → chunk-TZYNQJ7P.js} +1 -1
- package/dist/{chunk-ICLASM7T.js → chunk-UUZ7BYG3.js} +4 -4
- package/dist/chunk-UX3XZNVO.js +112 -0
- package/dist/{chunk-C7OZ7REN.js → chunk-ZYICAJKW.js} +1 -1
- package/dist/chunk-probe.js +3 -3
- package/dist/commands/login.js +14 -13
- package/dist/commands/logout.js +4 -4
- package/dist/commands/transfer.js +8 -7
- package/dist/commands/whoami.js +3 -3
- package/dist/deploy-actors.js +8 -7
- package/dist/deploy.d.ts +1 -0
- package/dist/deploy.js +13 -12
- package/dist/dotns-protocol.d.ts +325 -0
- package/dist/dotns-protocol.js +16 -0
- package/dist/dotns.d.ts +54 -1
- package/dist/dotns.js +5 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -13
- package/dist/manifest/publish.d.ts +1 -0
- package/dist/manifest/publish.js +14 -13
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +13 -12
- package/dist/personhood/bootstrap.js +5 -4
- package/dist/personhood/people-client.js +5 -4
- package/dist/run-state.js +1 -1
- package/dist/sss-allowance-cache.js +4 -4
- package/dist/storage-signer.js +13 -12
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/package.json +3 -3
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// src/dotns-protocol.ts
|
|
2
|
+
function classifyProtocolVersion(probe) {
|
|
3
|
+
const { hasCode, pricingVersionOk, startingPriceOk } = probe;
|
|
4
|
+
if (!hasCode) {
|
|
5
|
+
return { version: null, reason: "No contract code at POP_RULES \u2014 cannot determine the DotNS protocol version." };
|
|
6
|
+
}
|
|
7
|
+
if (pricingVersionOk) return { version: "v2" };
|
|
8
|
+
if (startingPriceOk) return { version: "v1" };
|
|
9
|
+
return {
|
|
10
|
+
version: null,
|
|
11
|
+
reason: "Could not determine the DotNS protocol version: contract code is present at POP_RULES, but neither pricingVersion() (v2) nor startingPrice() (v1) answered."
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
var REGISTRATION_COMPONENTS_V1 = [
|
|
15
|
+
{ name: "label", type: "string" },
|
|
16
|
+
{ name: "owner", type: "address" },
|
|
17
|
+
{ name: "secret", type: "bytes32" },
|
|
18
|
+
{ name: "reserved", type: "bool" }
|
|
19
|
+
];
|
|
20
|
+
var REGISTRATION_COMPONENTS_V2 = [
|
|
21
|
+
...REGISTRATION_COMPONENTS_V1,
|
|
22
|
+
{ name: "maxPrice", type: "uint256" },
|
|
23
|
+
{ name: "pricingVersion", type: "uint256" }
|
|
24
|
+
];
|
|
25
|
+
var V1_CONTROLLER_ABI = [
|
|
26
|
+
{ inputs: [{ name: "registration", type: "tuple", components: REGISTRATION_COMPONENTS_V1 }], name: "makeCommitment", outputs: [{ name: "", type: "bytes32" }], stateMutability: "view", type: "function" },
|
|
27
|
+
{ inputs: [{ name: "commitment", type: "bytes32" }], name: "commit", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
28
|
+
{ inputs: [], name: "minCommitmentAge", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
29
|
+
{ inputs: [], name: "maxCommitmentAge", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
30
|
+
{ inputs: [{ name: "commitment", type: "bytes32" }], name: "commitments", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
31
|
+
{ inputs: [{ name: "registration", type: "tuple", components: REGISTRATION_COMPONENTS_V1 }], name: "register", outputs: [], stateMutability: "payable", type: "function" }
|
|
32
|
+
];
|
|
33
|
+
var V2_CONTROLLER_ABI = [
|
|
34
|
+
{ inputs: [{ name: "registration", type: "tuple", components: REGISTRATION_COMPONENTS_V2 }], name: "makeCommitment", outputs: [{ name: "", type: "bytes32" }], stateMutability: "pure", type: "function" },
|
|
35
|
+
{ inputs: [{ name: "commitment", type: "bytes32" }], name: "commit", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
36
|
+
{ inputs: [], name: "minCommitmentAge", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
37
|
+
{ inputs: [], name: "maxCommitmentAge", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
38
|
+
{ inputs: [{ name: "commitment", type: "bytes32" }], name: "commitments", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
39
|
+
{ inputs: [{ name: "registration", type: "tuple", components: REGISTRATION_COMPONENTS_V2 }], name: "register", outputs: [], stateMutability: "payable", type: "function" }
|
|
40
|
+
];
|
|
41
|
+
var PRICE_WITH_CHECK_METADATA_OUTPUT = {
|
|
42
|
+
name: "metadata",
|
|
43
|
+
type: "tuple",
|
|
44
|
+
components: [
|
|
45
|
+
{ name: "price", type: "uint256" },
|
|
46
|
+
{ name: "status", type: "uint8" },
|
|
47
|
+
{ name: "userStatus", type: "uint8" },
|
|
48
|
+
{ name: "message", type: "string" }
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
var V1_POP_RULES_ABI = [
|
|
52
|
+
{ inputs: [], name: "startingPrice", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" }
|
|
53
|
+
];
|
|
54
|
+
var V2_POP_RULES_ABI = [
|
|
55
|
+
{ inputs: [{ name: "name", type: "string" }], name: "price", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
56
|
+
{ inputs: [], name: "pricingVersion", outputs: [{ name: "", type: "uint256" }], stateMutability: "view", type: "function" },
|
|
57
|
+
{ 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" }
|
|
58
|
+
];
|
|
59
|
+
function withTenPercentBuffer(priceWei) {
|
|
60
|
+
return priceWei * 110n / 100n;
|
|
61
|
+
}
|
|
62
|
+
var v1Adapter = {
|
|
63
|
+
version: "v1",
|
|
64
|
+
needsPricingBeforeCommit: false,
|
|
65
|
+
controllerAbi: V1_CONTROLLER_ABI,
|
|
66
|
+
popRulesAbi: V1_POP_RULES_ABI,
|
|
67
|
+
buildRegistration(base) {
|
|
68
|
+
return { label: base.label, owner: base.owner, secret: base.secret, reserved: base.reserved };
|
|
69
|
+
},
|
|
70
|
+
depositCall() {
|
|
71
|
+
return { functionName: "startingPrice", args: [] };
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var v2Adapter = {
|
|
75
|
+
version: "v2",
|
|
76
|
+
needsPricingBeforeCommit: true,
|
|
77
|
+
controllerAbi: V2_CONTROLLER_ABI,
|
|
78
|
+
popRulesAbi: V2_POP_RULES_ABI,
|
|
79
|
+
buildRegistration(base, pricing) {
|
|
80
|
+
if (pricing.pricingVersion === void 0) {
|
|
81
|
+
throw new Error(
|
|
82
|
+
"DotNS v2 registration requires pricing.pricingVersion (read PopRules.pricingVersion() before committing \u2014 it must be known before makeCommitment since it is part of the committed tuple)."
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
if (pricing.priceWei === void 0) {
|
|
86
|
+
throw new Error("DotNS v2 registration requires pricing.priceWei to compute maxPrice.");
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
label: base.label,
|
|
90
|
+
owner: base.owner,
|
|
91
|
+
secret: base.secret,
|
|
92
|
+
reserved: base.reserved,
|
|
93
|
+
maxPrice: withTenPercentBuffer(pricing.priceWei),
|
|
94
|
+
pricingVersion: pricing.pricingVersion
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
depositCall(label) {
|
|
98
|
+
return { functionName: "price", args: [label] };
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
function getAdapter(version) {
|
|
102
|
+
return version === "v2" ? v2Adapter : v1Adapter;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export {
|
|
106
|
+
classifyProtocolVersion,
|
|
107
|
+
V1_CONTROLLER_ABI,
|
|
108
|
+
V2_CONTROLLER_ABI,
|
|
109
|
+
V1_POP_RULES_ABI,
|
|
110
|
+
V2_POP_RULES_ABI,
|
|
111
|
+
getAdapter
|
|
112
|
+
};
|
package/dist/chunk-probe.js
CHANGED
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
getBestBlockNumber,
|
|
9
9
|
probeChunks,
|
|
10
10
|
probeFinalityGap
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-TZYNQJ7P.js";
|
|
12
|
+
import "./chunk-PPC5SPAP.js";
|
|
13
|
+
import "./chunk-IFZCCNIV.js";
|
|
14
14
|
export {
|
|
15
15
|
ChainProbeCrossValidationError,
|
|
16
16
|
ChainProbeMetadataError,
|
package/dist/commands/login.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
isBenignTeardownError,
|
|
6
6
|
waitForBulletinAuthorization
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-AREGYTFD.js";
|
|
8
8
|
import {
|
|
9
9
|
preflightSssAllowance
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-C7CZK4IE.js";
|
|
11
11
|
import {
|
|
12
12
|
statementSigningAccount
|
|
13
13
|
} from "../chunk-GRPLHUYC.js";
|
|
@@ -15,11 +15,11 @@ import "../chunk-IW3X2MJF.js";
|
|
|
15
15
|
import "../chunk-KOSF5FDO.js";
|
|
16
16
|
import "../chunk-J3NIXHZZ.js";
|
|
17
17
|
import "../chunk-S7EM5VMW.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-DB5U6SLK.js";
|
|
19
|
+
import "../chunk-KZKU7RSW.js";
|
|
20
|
+
import "../chunk-TZYNQJ7P.js";
|
|
21
21
|
import "../chunk-C2TS5MER.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-UUZ7BYG3.js";
|
|
23
23
|
import "../chunk-JQKKMUCT.js";
|
|
24
24
|
import {
|
|
25
25
|
BULLETIN_RESOURCE,
|
|
@@ -31,25 +31,26 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
renderLoginStatus
|
|
33
33
|
} from "../chunk-RIRDBSBG.js";
|
|
34
|
+
import "../chunk-HLU2BVBP.js";
|
|
35
|
+
import "../chunk-SI2ZUOYD.js";
|
|
36
|
+
import "../chunk-KJVRJOKC.js";
|
|
34
37
|
import {
|
|
35
38
|
DOT_PRODUCT_ID,
|
|
36
39
|
getAuthClient,
|
|
37
40
|
getPeopleChainEndpoints,
|
|
38
41
|
resolveBulletinEndpoints
|
|
39
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-4FIJGSCK.js";
|
|
40
43
|
import {
|
|
41
44
|
CLI_NAME
|
|
42
45
|
} from "../chunk-TSPERKUS.js";
|
|
43
|
-
import "../chunk-KYO2QBAO.js";
|
|
44
|
-
import "../chunk-SI2ZUOYD.js";
|
|
45
|
-
import "../chunk-KJVRJOKC.js";
|
|
46
46
|
import {
|
|
47
47
|
loadEnvironments
|
|
48
48
|
} from "../chunk-7CHUI4JX.js";
|
|
49
49
|
import "../chunk-ZOC4GITL.js";
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-ZYICAJKW.js";
|
|
51
|
+
import "../chunk-PPC5SPAP.js";
|
|
52
|
+
import "../chunk-IFZCCNIV.js";
|
|
53
|
+
import "../chunk-UX3XZNVO.js";
|
|
53
54
|
|
|
54
55
|
// src/commands/login.ts
|
|
55
56
|
import { ss58Encode } from "@parity/product-sdk-address";
|
package/dist/commands/logout.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearSssAllowanceCache
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-C7CZK4IE.js";
|
|
4
4
|
import "../chunk-GRPLHUYC.js";
|
|
5
5
|
import "../chunk-JQKKMUCT.js";
|
|
6
6
|
import "../chunk-5FLTDWWP.js";
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
} from "../chunk-RIRDBSBG.js";
|
|
10
10
|
import {
|
|
11
11
|
getAuthClient
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-4FIJGSCK.js";
|
|
13
13
|
import "../chunk-TSPERKUS.js";
|
|
14
14
|
import "../chunk-7CHUI4JX.js";
|
|
15
15
|
import "../chunk-ZOC4GITL.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-PPC5SPAP.js";
|
|
17
|
+
import "../chunk-IFZCCNIV.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/logout.ts
|
|
20
20
|
function formatLogout(status) {
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CLI_NAME
|
|
3
|
-
} from "../chunk-TSPERKUS.js";
|
|
4
1
|
import {
|
|
5
2
|
DEFAULT_MNEMONIC,
|
|
6
3
|
DEFAULT_TLD,
|
|
7
4
|
DotNS,
|
|
8
5
|
parseDomainName
|
|
9
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-HLU2BVBP.js";
|
|
10
7
|
import "../chunk-SI2ZUOYD.js";
|
|
11
8
|
import "../chunk-KJVRJOKC.js";
|
|
9
|
+
import {
|
|
10
|
+
CLI_NAME
|
|
11
|
+
} from "../chunk-TSPERKUS.js";
|
|
12
12
|
import {
|
|
13
13
|
getPopSelfServeConfig,
|
|
14
14
|
loadEnvironments,
|
|
15
15
|
resolveEndpoints
|
|
16
16
|
} from "../chunk-7CHUI4JX.js";
|
|
17
17
|
import "../chunk-ZOC4GITL.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-ZYICAJKW.js";
|
|
19
|
+
import "../chunk-PPC5SPAP.js";
|
|
20
|
+
import "../chunk-IFZCCNIV.js";
|
|
21
|
+
import "../chunk-UX3XZNVO.js";
|
|
21
22
|
|
|
22
23
|
// src/commands/transfer.ts
|
|
23
24
|
import { zeroAddress } from "viem";
|
package/dist/commands/whoami.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
STALE_SESSION_MESSAGE,
|
|
3
3
|
getAuthClient,
|
|
4
4
|
hasPersistedSession
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-4FIJGSCK.js";
|
|
6
6
|
import {
|
|
7
7
|
CLI_NAME
|
|
8
8
|
} from "../chunk-TSPERKUS.js";
|
|
9
9
|
import "../chunk-7CHUI4JX.js";
|
|
10
10
|
import "../chunk-ZOC4GITL.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-PPC5SPAP.js";
|
|
12
|
+
import "../chunk-IFZCCNIV.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/whoami.ts
|
|
15
15
|
function formatWhoami(addresses) {
|
package/dist/deploy-actors.js
CHANGED
|
@@ -2,20 +2,21 @@ import {
|
|
|
2
2
|
MainnetDefaultWorkerError,
|
|
3
3
|
resolveDeployActors,
|
|
4
4
|
resolveStorageSigner
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UUZ7BYG3.js";
|
|
6
6
|
import "./chunk-JQKKMUCT.js";
|
|
7
7
|
import "./chunk-5FLTDWWP.js";
|
|
8
8
|
import "./chunk-RIRDBSBG.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-TSPERKUS.js";
|
|
11
|
-
import "./chunk-KYO2QBAO.js";
|
|
9
|
+
import "./chunk-HLU2BVBP.js";
|
|
12
10
|
import "./chunk-SI2ZUOYD.js";
|
|
13
11
|
import "./chunk-KJVRJOKC.js";
|
|
12
|
+
import "./chunk-4FIJGSCK.js";
|
|
13
|
+
import "./chunk-TSPERKUS.js";
|
|
14
14
|
import "./chunk-7CHUI4JX.js";
|
|
15
15
|
import "./chunk-ZOC4GITL.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-ZYICAJKW.js";
|
|
17
|
+
import "./chunk-PPC5SPAP.js";
|
|
18
|
+
import "./chunk-IFZCCNIV.js";
|
|
19
|
+
import "./chunk-UX3XZNVO.js";
|
|
19
20
|
export {
|
|
20
21
|
MainnetDefaultWorkerError,
|
|
21
22
|
resolveDeployActors,
|
package/dist/deploy.d.ts
CHANGED
package/dist/deploy.js
CHANGED
|
@@ -62,34 +62,35 @@ import {
|
|
|
62
62
|
storeFile,
|
|
63
63
|
unpublish,
|
|
64
64
|
validateNoManifestFlags
|
|
65
|
-
} from "./chunk-
|
|
66
|
-
import "./chunk-
|
|
65
|
+
} from "./chunk-AREGYTFD.js";
|
|
66
|
+
import "./chunk-C7CZK4IE.js";
|
|
67
67
|
import "./chunk-GRPLHUYC.js";
|
|
68
68
|
import "./chunk-IW3X2MJF.js";
|
|
69
69
|
import "./chunk-KOSF5FDO.js";
|
|
70
70
|
import "./chunk-J3NIXHZZ.js";
|
|
71
71
|
import "./chunk-S7EM5VMW.js";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-DB5U6SLK.js";
|
|
73
|
+
import "./chunk-KZKU7RSW.js";
|
|
74
|
+
import "./chunk-TZYNQJ7P.js";
|
|
75
75
|
import "./chunk-C2TS5MER.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-UUZ7BYG3.js";
|
|
77
77
|
import "./chunk-JQKKMUCT.js";
|
|
78
78
|
import "./chunk-5FLTDWWP.js";
|
|
79
79
|
import "./chunk-RIRDBSBG.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-TSPERKUS.js";
|
|
82
|
-
import "./chunk-KYO2QBAO.js";
|
|
80
|
+
import "./chunk-HLU2BVBP.js";
|
|
83
81
|
import "./chunk-SI2ZUOYD.js";
|
|
84
82
|
import "./chunk-KJVRJOKC.js";
|
|
83
|
+
import "./chunk-4FIJGSCK.js";
|
|
84
|
+
import "./chunk-TSPERKUS.js";
|
|
85
85
|
import "./chunk-7CHUI4JX.js";
|
|
86
86
|
import {
|
|
87
87
|
EXIT_CODE_NO_RETRY,
|
|
88
88
|
NonRetryableError
|
|
89
89
|
} from "./chunk-ZOC4GITL.js";
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-ZYICAJKW.js";
|
|
91
|
+
import "./chunk-PPC5SPAP.js";
|
|
92
|
+
import "./chunk-IFZCCNIV.js";
|
|
93
|
+
import "./chunk-UX3XZNVO.js";
|
|
93
94
|
export {
|
|
94
95
|
BLAKE2B_256_MULTIHASH_CODE,
|
|
95
96
|
BULLETIN_ENDPOINTS,
|