@agoric/vats 0.15.2-dev-b4286a6.0.b4286a6 → 0.15.2-dev-b95c1c8.0.b95c1c8

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-b4286a6.0.b4286a6",
3
+ "version": "0.15.2-dev-b95c1c8.0.b95c1c8",
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-b4286a6.0.b4286a6",
26
- "@agoric/ertp": "0.16.3-dev-b4286a6.0.b4286a6",
27
- "@agoric/governance": "0.10.4-dev-b4286a6.0.b4286a6",
28
- "@agoric/internal": "0.3.3-dev-b4286a6.0.b4286a6",
29
- "@agoric/network": "0.1.1-dev-b4286a6.0.b4286a6",
30
- "@agoric/notifier": "0.6.3-dev-b4286a6.0.b4286a6",
31
- "@agoric/store": "0.9.3-dev-b4286a6.0.b4286a6",
32
- "@agoric/swingset-vat": "0.32.3-dev-b4286a6.0.b4286a6",
33
- "@agoric/time": "0.3.3-dev-b4286a6.0.b4286a6",
34
- "@agoric/vat-data": "0.5.3-dev-b4286a6.0.b4286a6",
35
- "@agoric/vow": "0.1.1-dev-b4286a6.0.b4286a6",
36
- "@agoric/zoe": "0.26.3-dev-b4286a6.0.b4286a6",
37
- "@agoric/zone": "0.2.3-dev-b4286a6.0.b4286a6",
25
+ "@agoric/cosmic-proto": "0.4.1-dev-b95c1c8.0.b95c1c8",
26
+ "@agoric/ertp": "0.16.3-dev-b95c1c8.0.b95c1c8",
27
+ "@agoric/governance": "0.10.4-dev-b95c1c8.0.b95c1c8",
28
+ "@agoric/internal": "0.3.3-dev-b95c1c8.0.b95c1c8",
29
+ "@agoric/network": "0.1.1-dev-b95c1c8.0.b95c1c8",
30
+ "@agoric/notifier": "0.6.3-dev-b95c1c8.0.b95c1c8",
31
+ "@agoric/store": "0.9.3-dev-b95c1c8.0.b95c1c8",
32
+ "@agoric/swingset-vat": "0.32.3-dev-b95c1c8.0.b95c1c8",
33
+ "@agoric/time": "0.3.3-dev-b95c1c8.0.b95c1c8",
34
+ "@agoric/vat-data": "0.5.3-dev-b95c1c8.0.b95c1c8",
35
+ "@agoric/vow": "0.1.1-dev-b95c1c8.0.b95c1c8",
36
+ "@agoric/zoe": "0.26.3-dev-b95c1c8.0.b95c1c8",
37
+ "@agoric/zone": "0.2.3-dev-b95c1c8.0.b95c1c8",
38
38
  "@endo/errors": "^1.2.13",
39
39
  "@endo/far": "^1.1.14",
40
40
  "@endo/import-bundle": "^1.5.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-b4286a6.0.b4286a6",
50
+ "@agoric/swingset-liveslots": "0.10.3-dev-b95c1c8.0.b95c1c8",
51
51
  "@endo/bundle-source": "^4.1.2",
52
52
  "@endo/init": "^1.1.12",
53
53
  "ava": "^5.3.0",
@@ -79,5 +79,5 @@
79
79
  "typeCoverage": {
80
80
  "atLeast": 90.22
81
81
  },
82
- "gitHead": "b4286a66bf43d6be6880e04c213153dc06275ee8"
82
+ "gitHead": "b95c1c8ea955b25f16fa2582bd9878d99f73fed1"
83
83
  }
@@ -164,7 +164,6 @@ type WellKnownName = {
164
164
  | 'mintHolder'
165
165
  | 'walletFactory'
166
166
  | 'provisionPool'
167
- | 'auctioneer'
168
167
  | 'feeDistributor'
169
168
  | 'contractGovernor'
170
169
  | 'committee'
@@ -183,7 +182,6 @@ type WellKnownName = {
183
182
  instance:
184
183
  | 'economicCommittee'
185
184
  | 'feeDistributor'
186
- | 'auctioneer'
187
185
  | 'VaultFactory'
188
186
  | 'VaultFactoryGovernor'
189
187
  | 'econCommitteeCharter'
@@ -219,7 +217,6 @@ type ContractInstancePromises<
219
217
  };
220
218
 
221
219
  type WellKnownContracts = {
222
- auctioneer: typeof import('@agoric/inter-protocol/src/auction/auctioneer.js').start;
223
220
  centralSupply: typeof import('@agoric/vats/src/centralSupply.js').start;
224
221
  committee: typeof import('@agoric/governance/src/committee.js').start;
225
222
  contractGovernor: typeof import('@agoric/governance/src/contractGovernor.js').start;
@@ -1,25 +0,0 @@
1
- export function upgradeVaultFactory(powers: any, options: any): Promise<void>;
2
- export function getManifestForVaultFactoryUpgrade({ restoreRef }: {
3
- restoreRef: any;
4
- }, { contractRef }: {
5
- contractRef: any;
6
- }): {
7
- manifest: {
8
- [upgradeVaultFactory.name]: {
9
- consume: {
10
- zoe: boolean;
11
- vaultFactoryKit: boolean;
12
- reserveKit: boolean;
13
- auctioneerKit: boolean;
14
- economicCommitteeCreatorFacet: boolean;
15
- };
16
- };
17
- };
18
- installations: {
19
- vaultFactory: any;
20
- };
21
- options: {
22
- contractRef: any;
23
- };
24
- };
25
- //# sourceMappingURL=upgrade-vaultFactory-proposal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upgrade-vaultFactory-proposal.d.ts","sourceRoot":"","sources":["upgrade-vaultFactory-proposal.js"],"names":[],"mappings":"AAYO,8EA4FN;AAEM;;;;;;QAKH,CAAC,mBAAmB,CAAC,IAAI,CAAC;;;;;;;;UAQzB;;;;;;;;EAIH"}
@@ -1,124 +0,0 @@
1
- /**
2
- * @file this core-eval proposal is a generic and reusable script for executing
3
- * a Vault Factory upgrade. In contrast, upgrade-vaults.js is a specific
4
- * implementation tailored to the upgrade-18.
5
- */
6
-
7
- import { E } from '@endo/far';
8
- import { makeTracer } from '@agoric/internal/src/index.js';
9
- import { makeNotifierFromAsyncIterable } from '@agoric/notifier';
10
-
11
- const trace = makeTracer('upgrade Vaults proposal');
12
-
13
- export const upgradeVaultFactory = async (powers, options) => {
14
- trace('Initiate VaultFactory contract upgrade');
15
-
16
- const {
17
- consume: {
18
- zoe,
19
- vaultFactoryKit,
20
- reserveKit,
21
- auctioneerKit,
22
- economicCommitteeCreatorFacet,
23
- },
24
- } = powers;
25
-
26
- const {
27
- options: { contractRef },
28
- } = options;
29
-
30
- const { adminFacet, privateArgs, publicFacet, instance } =
31
- await vaultFactoryKit;
32
-
33
- const allBrands = await E(zoe).getBrands(instance);
34
- const { Minted: _istBrand, ...vaultBrands } = allBrands;
35
-
36
- const initialPoserInvitation = await E(
37
- economicCommitteeCreatorFacet,
38
- ).getPoserInvitation();
39
-
40
- const initialShortfallInvitation = await E(
41
- E.get(reserveKit).creatorFacet,
42
- ).makeShortfallReportingInvitation();
43
-
44
- const auctioneerInstance = await E.get(auctioneerKit).instance;
45
-
46
- const readCurrentDirectorParams = async () => {
47
- await null;
48
-
49
- const subscription = E(publicFacet).getElectorateSubscription();
50
- const notifier = makeNotifierFromAsyncIterable(subscription);
51
- const { updateCount } = await notifier.getUpdateSince();
52
-
53
- // subscribeAfter(<some known state>) retrieves the latest value.
54
- const after = await E(subscription).subscribeAfter(updateCount);
55
- const { current } = after.head.value;
56
- return harden({
57
- MinInitialDebt: current.MinInitialDebt.value,
58
- ReferencedUI: current.ReferencedUI.value,
59
- RecordingPeriod: current.RecordingPeriod.value,
60
- ChargingPeriod: current.ChargingPeriod.value,
61
- });
62
- };
63
-
64
- const directorParamOverrides = await readCurrentDirectorParams();
65
- trace({ directorParamOverrides });
66
-
67
- const readManagerParams = async () => {
68
- await null;
69
-
70
- const params = {};
71
- for (const kwd of Object.keys(vaultBrands)) {
72
- const collateralBrand = vaultBrands[kwd];
73
-
74
- /** @type {any} */
75
- const governedParams = await E(publicFacet).getGovernedParams({
76
- collateralBrand,
77
- });
78
- params[kwd] = harden({
79
- brand: collateralBrand,
80
- debtLimit: governedParams.DebtLimit.value,
81
- interestRate: governedParams.InterestRate.value,
82
- liquidationMargin: governedParams.LiquidationMargin.value,
83
- liquidationPadding: governedParams.LiquidationPadding.value,
84
- liquidationPenalty: governedParams.LiquidationPenalty.value,
85
- mintFee: governedParams.MintFee.value,
86
- });
87
- trace(kwd, params[kwd]);
88
- }
89
- return params;
90
- };
91
- const managerParams = await readManagerParams();
92
-
93
- const newPrivateArgs = harden({
94
- ...privateArgs,
95
- auctioneerInstance,
96
- initialPoserInvitation,
97
- initialShortfallInvitation,
98
- managerParams,
99
- directorParamOverrides,
100
- });
101
-
102
- await E(adminFacet).upgradeContract(contractRef.bundleID, newPrivateArgs);
103
-
104
- trace('VaultFactory contract upgraded!');
105
- };
106
-
107
- export const getManifestForVaultFactoryUpgrade = (
108
- { restoreRef },
109
- { contractRef },
110
- ) => ({
111
- manifest: {
112
- [upgradeVaultFactory.name]: {
113
- consume: {
114
- zoe: true,
115
- vaultFactoryKit: true,
116
- reserveKit: true,
117
- auctioneerKit: true,
118
- economicCommitteeCreatorFacet: true,
119
- },
120
- },
121
- },
122
- installations: { vaultFactory: restoreRef(contractRef) },
123
- options: { contractRef },
124
- });