@agoric/deploy-script-support 0.10.4-dev-513adc9.0 → 0.10.4-dev-7b30169.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/package.json +11 -11
- package/src/writeCoreEvalParts.js +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/deploy-script-support",
|
|
3
|
-
"version": "0.10.4-dev-
|
|
3
|
+
"version": "0.10.4-dev-7b30169.0+7b30169",
|
|
4
4
|
"description": "Helpers and other support for writing deploy scripts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/helpers.js",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@agoric/assert": "0.6.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/import-manager": "0.3.12-dev-
|
|
40
|
-
"@agoric/internal": "0.3.3-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
37
|
+
"@agoric/assert": "0.6.1-dev-7b30169.0+7b30169",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-7b30169.0+7b30169",
|
|
39
|
+
"@agoric/import-manager": "0.3.12-dev-7b30169.0+7b30169",
|
|
40
|
+
"@agoric/internal": "0.3.3-dev-7b30169.0+7b30169",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-7b30169.0+7b30169",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-7b30169.0+7b30169",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-7b30169.0+7b30169",
|
|
44
|
+
"@agoric/zoe": "0.26.3-dev-7b30169.0+7b30169",
|
|
45
45
|
"@endo/base64": "^1.0.5",
|
|
46
46
|
"@endo/bundle-source": "^3.2.3",
|
|
47
47
|
"@endo/far": "^1.1.2",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@endo/zip": "^1.0.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@agoric/vats": "0.15.2-dev-
|
|
54
|
+
"@agoric/vats": "0.15.2-dev-7b30169.0+7b30169",
|
|
55
55
|
"@endo/init": "^1.1.2",
|
|
56
56
|
"ava": "^5.3.0",
|
|
57
57
|
"import-meta-resolve": "^2.2.1"
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"typeCoverage": {
|
|
75
75
|
"atLeast": 81.63
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "7b30169f5f6d72aed50b4168d0406316da8e53a3"
|
|
78
78
|
}
|
|
@@ -14,13 +14,21 @@ import {
|
|
|
14
14
|
* @import {CoreEvalDescriptor} from './externalTypes.js';
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @typedef CoreEvalPlan
|
|
19
|
+
* @property {string} name
|
|
20
|
+
* @property {string} permit
|
|
21
|
+
* @property {string} script
|
|
22
|
+
* @property {{entrypoint: string, bundleID: string, fileName: string}[]} bundles
|
|
23
|
+
*/
|
|
24
|
+
|
|
17
25
|
/**
|
|
18
26
|
* @callback WriteCoreEval write to disk the files needed for a CoreEval (js code to`${filePrefix}.js`, permits to `${filePrefix}-permit.json`, an overall
|
|
19
27
|
* summary to `${filePrefix}-plan.json), plus whatever bundles bundles the code loads)
|
|
20
28
|
* see CoreEval in {@link '/golang/cosmos/x/swingset/types/swingset.pb.go'}
|
|
21
29
|
* @param {string} filePrefix name on disk
|
|
22
30
|
* @param {import('./externalTypes.js').CoreEvalBuilder} builder
|
|
23
|
-
* @returns {Promise<
|
|
31
|
+
* @returns {Promise<CoreEvalPlan>}
|
|
24
32
|
*/
|
|
25
33
|
|
|
26
34
|
/**
|
|
@@ -189,6 +197,7 @@ behavior;
|
|
|
189
197
|
log(`creating ${codeFile}`);
|
|
190
198
|
await writeFile(codeFile, trimmed);
|
|
191
199
|
|
|
200
|
+
/** @type {CoreEvalPlan} */
|
|
192
201
|
const plan = {
|
|
193
202
|
name: filePrefix,
|
|
194
203
|
script: codeFile,
|
|
@@ -209,6 +218,7 @@ You can now run a governance submission command like:
|
|
|
209
218
|
Remember to install bundles before submitting the proposal:
|
|
210
219
|
${cmds.join('\n ')}
|
|
211
220
|
`);
|
|
221
|
+
return plan;
|
|
212
222
|
};
|
|
213
223
|
|
|
214
224
|
return writeCoreEval;
|