@agoric/cosmic-swingset 0.41.4-dev-d6bb564.0 → 0.41.4-dev-fed2b5e.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.
Files changed (2) hide show
  1. package/package.json +11 -11
  2. package/src/chain-main.js +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/cosmic-swingset",
3
- "version": "0.41.4-dev-d6bb564.0+d6bb564",
3
+ "version": "0.41.4-dev-fed2b5e.0+fed2b5e",
4
4
  "description": "Agoric's Cosmos blockchain integration",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,15 +22,15 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/assert": "0.6.1-dev-d6bb564.0+d6bb564",
26
- "@agoric/cosmos": "0.34.2-dev-d6bb564.0+d6bb564",
27
- "@agoric/deploy-script-support": "0.10.4-dev-d6bb564.0+d6bb564",
28
- "@agoric/internal": "0.3.3-dev-d6bb564.0+d6bb564",
29
- "@agoric/store": "0.9.3-dev-d6bb564.0+d6bb564",
30
- "@agoric/swing-store": "0.9.2-dev-d6bb564.0+d6bb564",
31
- "@agoric/swingset-vat": "0.32.3-dev-d6bb564.0+d6bb564",
32
- "@agoric/telemetry": "0.6.3-dev-d6bb564.0+d6bb564",
33
- "@agoric/vm-config": "0.1.1-dev-d6bb564.0+d6bb564",
25
+ "@agoric/assert": "0.6.1-dev-fed2b5e.0+fed2b5e",
26
+ "@agoric/cosmos": "0.34.2-dev-fed2b5e.0+fed2b5e",
27
+ "@agoric/deploy-script-support": "0.10.4-dev-fed2b5e.0+fed2b5e",
28
+ "@agoric/internal": "0.3.3-dev-fed2b5e.0+fed2b5e",
29
+ "@agoric/store": "0.9.3-dev-fed2b5e.0+fed2b5e",
30
+ "@agoric/swing-store": "0.9.2-dev-fed2b5e.0+fed2b5e",
31
+ "@agoric/swingset-vat": "0.32.3-dev-fed2b5e.0+fed2b5e",
32
+ "@agoric/telemetry": "0.6.3-dev-fed2b5e.0+fed2b5e",
33
+ "@agoric/vm-config": "0.1.1-dev-fed2b5e.0+fed2b5e",
34
34
  "@endo/far": "^0.2.19",
35
35
  "@endo/import-bundle": "^0.3.5",
36
36
  "@endo/init": "^0.5.57",
@@ -61,5 +61,5 @@
61
61
  ],
62
62
  "timeout": "20m"
63
63
  },
64
- "gitHead": "d6bb5643dc6d4973217c86597cf00f9c2ab71e73"
64
+ "gitHead": "fed2b5e4658fc5b55c794622aa1684a8093f1604"
65
65
  }
package/src/chain-main.js CHANGED
@@ -298,20 +298,20 @@ export default async function main(progname, args, { env, homedir, agcc }) {
298
298
  if (typeof key !== 'string') {
299
299
  throw Fail`Unexpected swingStore exported key ${q(key)}`;
300
300
  }
301
- const path = `${STORAGE_PATH.SWING_STORE}.${key}`;
302
301
  if (value == null) {
303
- return [path];
302
+ return [key];
304
303
  }
305
304
  if (typeof value !== 'string') {
306
305
  throw Fail`Unexpected ${typeof value} value for swingStore exported key ${q(
307
306
  key,
308
307
  )}`;
309
308
  }
310
- return [path, value];
309
+ return [key, value];
311
310
  });
312
- sendToChainStorage(
311
+ chainSend(
312
+ portNums.swingset,
313
313
  stringify({
314
- method: 'setWithoutNotify',
314
+ method: 'swingStoreUpdateExportData',
315
315
  args: entries,
316
316
  }),
317
317
  );
@@ -652,6 +652,10 @@ export default async function main(progname, args, { env, homedir, agcc }) {
652
652
 
653
653
  !blockingSend || Fail`Swingset already initialized`;
654
654
 
655
+ if (action.swingsetPort) {
656
+ portNums.swingset = action.swingsetPort;
657
+ }
658
+
655
659
  if (action.vibcPort) {
656
660
  portNums.dibc = action.vibcPort;
657
661
  }