@agoric/vats 0.15.2-dev-c7a005e.0 → 0.15.2-dev-d35659b.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/vats",
3
- "version": "0.15.2-dev-c7a005e.0+c7a005e",
3
+ "version": "0.15.2-dev-d35659b.0+d35659b",
4
4
  "description": "Agoric's Vat library",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -22,19 +22,19 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/cosmic-proto": "0.4.1-dev-c7a005e.0+c7a005e",
26
- "@agoric/ertp": "0.16.3-dev-c7a005e.0+c7a005e",
27
- "@agoric/governance": "0.10.4-dev-c7a005e.0+c7a005e",
28
- "@agoric/internal": "0.3.3-dev-c7a005e.0+c7a005e",
29
- "@agoric/network": "0.1.1-dev-c7a005e.0+c7a005e",
30
- "@agoric/notifier": "0.6.3-dev-c7a005e.0+c7a005e",
31
- "@agoric/store": "0.9.3-dev-c7a005e.0+c7a005e",
32
- "@agoric/swingset-vat": "0.32.3-dev-c7a005e.0+c7a005e",
33
- "@agoric/time": "0.3.3-dev-c7a005e.0+c7a005e",
34
- "@agoric/vat-data": "0.5.3-dev-c7a005e.0+c7a005e",
35
- "@agoric/vow": "0.1.1-dev-c7a005e.0+c7a005e",
36
- "@agoric/zoe": "0.26.3-dev-c7a005e.0+c7a005e",
37
- "@agoric/zone": "0.2.3-dev-c7a005e.0+c7a005e",
25
+ "@agoric/cosmic-proto": "0.4.1-dev-d35659b.0+d35659b",
26
+ "@agoric/ertp": "0.16.3-dev-d35659b.0+d35659b",
27
+ "@agoric/governance": "0.10.4-dev-d35659b.0+d35659b",
28
+ "@agoric/internal": "0.3.3-dev-d35659b.0+d35659b",
29
+ "@agoric/network": "0.1.1-dev-d35659b.0+d35659b",
30
+ "@agoric/notifier": "0.6.3-dev-d35659b.0+d35659b",
31
+ "@agoric/store": "0.9.3-dev-d35659b.0+d35659b",
32
+ "@agoric/swingset-vat": "0.32.3-dev-d35659b.0+d35659b",
33
+ "@agoric/time": "0.3.3-dev-d35659b.0+d35659b",
34
+ "@agoric/vat-data": "0.5.3-dev-d35659b.0+d35659b",
35
+ "@agoric/vow": "0.1.1-dev-d35659b.0+d35659b",
36
+ "@agoric/zoe": "0.26.3-dev-d35659b.0+d35659b",
37
+ "@agoric/zone": "0.2.3-dev-d35659b.0+d35659b",
38
38
  "@endo/errors": "^1.2.8",
39
39
  "@endo/far": "^1.1.9",
40
40
  "@endo/import-bundle": "^1.3.2",
@@ -47,7 +47,7 @@
47
47
  "jessie.js": "^0.3.4"
48
48
  },
49
49
  "devDependencies": {
50
- "@agoric/swingset-liveslots": "0.10.3-dev-c7a005e.0+c7a005e",
50
+ "@agoric/swingset-liveslots": "0.10.3-dev-d35659b.0+d35659b",
51
51
  "@endo/bundle-source": "^3.5.0",
52
52
  "@endo/init": "^1.1.7",
53
53
  "ava": "^5.3.0",
@@ -79,5 +79,5 @@
79
79
  "typeCoverage": {
80
80
  "atLeast": 91.21
81
81
  },
82
- "gitHead": "c7a005e773fc75fa7ce97fbc2b95d9df82593556"
82
+ "gitHead": "d35659b6ab227f11f952d864d38add58dd464825"
83
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-provisionPool-proposal.d.ts","sourceRoot":"","sources":["upgrade-provisionPool-proposal.js"],"names":[],"mappings":"AAeO,yXARI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,6BAA6B,EAAE,GAAG,CAAC;KACpC,CAAC;CACH,WAED;IAAoD,OAAO,EAAnD;QAAE,gBAAgB,EAAE,YAAY,CAAA;KAAE;CAC5C,iBA4EA;AAEM;;;;;;;;;;;;;;;;;;;;EAmBL"}
1
+ {"version":3,"file":"upgrade-provisionPool-proposal.d.ts","sourceRoot":"","sources":["upgrade-provisionPool-proposal.js"],"names":[],"mappings":"AAeO,yXARI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,6BAA6B,EAAE,GAAG,CAAC;KACpC,CAAC;CACH,WAED;IAAoD,OAAO,EAAnD;QAAE,gBAAgB,EAAE,YAAY,CAAA;KAAE;CAC5C,iBAoFA;AAEM;;;;;;;;;;;;;;;;;;;;EAmBL"}
@@ -2,7 +2,7 @@ import { E } from '@endo/far';
2
2
  import { deeplyFulfilled } from '@endo/marshal';
3
3
  import { makeTracer } from '@agoric/internal';
4
4
 
5
- const tracer = makeTracer('UpgradeProvisionPool');
5
+ const trace = makeTracer('UpgradeProvisionPool');
6
6
 
7
7
  /**
8
8
  * @param {BootstrapPowers & {
@@ -30,7 +30,7 @@ export const upgradeProvisionPool = async (
30
30
  const { provisionPoolRef } = options.options;
31
31
 
32
32
  assert(provisionPoolRef.bundleID);
33
- tracer(`PROVISION POOL BUNDLE ID: `, provisionPoolRef);
33
+ trace(`PROVISION POOL BUNDLE ID: `, provisionPoolRef);
34
34
 
35
35
  const [
36
36
  provisionPoolStartResult,
@@ -49,6 +49,7 @@ export const upgradeProvisionPool = async (
49
49
  adminFacet,
50
50
  instance,
51
51
  creatorFacet: ppCreatorFacet,
52
+ publicFacet: ppPublicFacet,
52
53
  } = provisionPoolStartResult;
53
54
  const { creatorFacet: wfCreatorFacet } = walletFactoryStartResult;
54
55
 
@@ -59,9 +60,16 @@ export const upgradeProvisionPool = async (
59
60
  E(electorateCreatorFacet).getPoserInvitation(),
60
61
  ]);
61
62
 
63
+ const params = await E(ppPublicFacet).getGovernedParams();
64
+ const governedParamOverrides = harden({
65
+ PerAccountInitialAmount: params.PerAccountInitialAmount.value,
66
+ });
67
+ trace('governedParamOverrides: ', { governedParamOverrides });
68
+
62
69
  const newPrivateArgs = harden({
63
70
  ...originalPrivateArgs,
64
71
  initialPoserInvitation: poserInvitation,
72
+ governedParamOverrides,
65
73
  });
66
74
 
67
75
  const upgradeResult = await E(adminFacet).upgradeContract(
@@ -69,7 +77,7 @@ export const upgradeProvisionPool = async (
69
77
  newPrivateArgs,
70
78
  );
71
79
 
72
- tracer('ProvisionPool upgraded: ', upgradeResult);
80
+ trace('ProvisionPool upgraded: ', upgradeResult);
73
81
 
74
82
  const references = {
75
83
  bankManager,
@@ -77,17 +85,17 @@ export const upgradeProvisionPool = async (
77
85
  walletFactory: wfCreatorFacet,
78
86
  };
79
87
 
80
- tracer('Calling setReferences with: ', references);
88
+ trace('Calling setReferences with: ', references);
81
89
  await E(ppCreatorFacet).setReferences(references);
82
90
 
83
- tracer('Creating bridgeHandler...');
91
+ trace('Creating bridgeHandler...');
84
92
  const bridgeHandler = await E(ppCreatorFacet).makeHandler();
85
93
 
86
- tracer('Setting new bridgeHandler...');
94
+ trace('Setting new bridgeHandler...');
87
95
  // @ts-expect-error casting
88
96
  await E(provisionWalletBridgeManager).setHandler(bridgeHandler);
89
97
 
90
- tracer('Done.');
98
+ trace('Done.');
91
99
  };
92
100
 
93
101
  export const getManifestForUpgradingProvisionPool = (