@agoric/cosmic-swingset 0.41.4-dev-440d7a8.0 → 0.41.4-dev-6c8bf5c.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 +12 -12
- package/src/export-kernel-db.js +3 -6
- package/src/import-kernel-db.js +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmic-swingset",
|
|
3
|
-
"version": "0.41.4-dev-
|
|
3
|
+
"version": "0.41.4-dev-6c8bf5c.0+6c8bf5c",
|
|
4
4
|
"description": "Agoric's Cosmos blockchain integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/assert": "0.6.1-dev-
|
|
26
|
-
"@agoric/builders": "0.1.1-dev-
|
|
27
|
-
"@agoric/cosmos": "0.34.2-dev-
|
|
28
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
29
|
-
"@agoric/internal": "0.3.3-dev-
|
|
30
|
-
"@agoric/store": "0.9.3-dev-
|
|
31
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
32
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
33
|
-
"@agoric/telemetry": "0.6.3-dev-
|
|
34
|
-
"@agoric/vm-config": "0.1.1-dev-
|
|
25
|
+
"@agoric/assert": "0.6.1-dev-6c8bf5c.0+6c8bf5c",
|
|
26
|
+
"@agoric/builders": "0.1.1-dev-6c8bf5c.0+6c8bf5c",
|
|
27
|
+
"@agoric/cosmos": "0.34.2-dev-6c8bf5c.0+6c8bf5c",
|
|
28
|
+
"@agoric/deploy-script-support": "0.10.4-dev-6c8bf5c.0+6c8bf5c",
|
|
29
|
+
"@agoric/internal": "0.3.3-dev-6c8bf5c.0+6c8bf5c",
|
|
30
|
+
"@agoric/store": "0.9.3-dev-6c8bf5c.0+6c8bf5c",
|
|
31
|
+
"@agoric/swing-store": "0.9.2-dev-6c8bf5c.0+6c8bf5c",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-6c8bf5c.0+6c8bf5c",
|
|
33
|
+
"@agoric/telemetry": "0.6.3-dev-6c8bf5c.0+6c8bf5c",
|
|
34
|
+
"@agoric/vm-config": "0.1.1-dev-6c8bf5c.0+6c8bf5c",
|
|
35
35
|
"@endo/bundle-source": "^3.2.3",
|
|
36
36
|
"@endo/env-options": "^1.1.4",
|
|
37
37
|
"@endo/far": "^1.1.2",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"typeCoverage": {
|
|
71
71
|
"atLeast": 80.48
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "6c8bf5c1a42dca67dd1739e06eb642c2362eb52a"
|
|
74
74
|
}
|
package/src/export-kernel-db.js
CHANGED
|
@@ -42,10 +42,10 @@ export const ExportManifestFileName = 'export-manifest.json';
|
|
|
42
42
|
*/
|
|
43
43
|
export const getEffectiveArtifactMode = artifactMode => {
|
|
44
44
|
switch (artifactMode) {
|
|
45
|
+
case undefined:
|
|
45
46
|
case 'none':
|
|
46
47
|
case 'operational':
|
|
47
48
|
return 'operational';
|
|
48
|
-
case undefined:
|
|
49
49
|
case 'replay':
|
|
50
50
|
return 'replay';
|
|
51
51
|
case 'archival':
|
|
@@ -296,11 +296,8 @@ export const main = async (
|
|
|
296
296
|
|
|
297
297
|
const stateDir =
|
|
298
298
|
processValue.getFlag('state-dir') ||
|
|
299
|
-
// We try to find the actual cosmos state directory (default=~/.
|
|
300
|
-
`${processValue.getFlag(
|
|
301
|
-
'home',
|
|
302
|
-
`${homedir}/.ag-chain-cosmos`,
|
|
303
|
-
)}/data/agoric`;
|
|
299
|
+
// We try to find the actual cosmos state directory (default=~/.agoric)
|
|
300
|
+
`${processValue.getFlag('home', `${homedir}/.agoric`)}/data/agoric`;
|
|
304
301
|
|
|
305
302
|
const stateDirStat = await fs.stat(stateDir);
|
|
306
303
|
if (!stateDirStat.isDirectory()) {
|
package/src/import-kernel-db.js
CHANGED
|
@@ -62,7 +62,7 @@ const checkAndGetImportSwingStoreOptions = (options, manifest) => {
|
|
|
62
62
|
|
|
63
63
|
manifest.data || Fail`State-sync manifest missing export data`;
|
|
64
64
|
|
|
65
|
-
const { artifactMode = manifest.artifactMode || '
|
|
65
|
+
const { artifactMode = manifest.artifactMode || 'operational' } = options;
|
|
66
66
|
|
|
67
67
|
if (artifactMode === 'none') {
|
|
68
68
|
throw Fail`Cannot import "export data" without at least "operational" artifacts`;
|
|
@@ -247,11 +247,8 @@ export const main = async (
|
|
|
247
247
|
|
|
248
248
|
const stateDir =
|
|
249
249
|
processValue.getFlag('state-dir') ||
|
|
250
|
-
// We try to find the actual cosmos state directory (default=~/.
|
|
251
|
-
`${processValue.getFlag(
|
|
252
|
-
'home',
|
|
253
|
-
`${homedir}/.ag-chain-cosmos`,
|
|
254
|
-
)}/data/agoric`;
|
|
250
|
+
// We try to find the actual cosmos state directory (default=~/.agoric)
|
|
251
|
+
`${processValue.getFlag('home', `${homedir}/.agoric`)}/data/agoric`;
|
|
255
252
|
|
|
256
253
|
const stateDirStat = await fs.stat(stateDir);
|
|
257
254
|
if (!stateDirStat.isDirectory()) {
|