@agoric/inter-protocol 0.16.2-dev-6415ef6.0 → 0.16.2-dev-da89a20.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 +15 -15
- package/src/econCommitteeCharter.d.ts +4 -3
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/econCommitteeCharter.js +1 -1
- package/src/price/fluxAggregatorContract.d.ts +1 -0
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +2 -0
- package/src/proposals/add-auction.d.ts +14 -15
- package/src/proposals/add-auction.d.ts.map +1 -1
- package/src/proposals/add-auction.js +58 -59
- package/src/proposals/addAssetToVault.d.ts +14 -1
- package/src/proposals/addAssetToVault.d.ts.map +1 -1
- package/src/proposals/addAssetToVault.js +20 -2
- package/src/proposals/deploy-price-feeds.d.ts +76 -0
- package/src/proposals/deploy-price-feeds.d.ts.map +1 -0
- package/src/proposals/deploy-price-feeds.js +312 -0
- package/src/proposals/price-feed-proposal.d.ts.map +1 -1
- package/src/proposals/price-feed-proposal.js +2 -1
- package/src/proposals/replace-scaledPriceAuthorities.d.ts +30 -0
- package/src/proposals/replace-scaledPriceAuthorities.d.ts.map +1 -0
- package/src/proposals/replace-scaledPriceAuthorities.js +124 -0
- package/src/proposals/upgrade-vaults.d.ts +19 -10
- package/src/proposals/upgrade-vaults.d.ts.map +1 -1
- package/src/proposals/upgrade-vaults.js +66 -80
- package/src/proposals/utils.d.ts +2 -0
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/proposals/utils.js +8 -0
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +1 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { E } from '@endo/far';
|
|
2
2
|
import { makeNotifierFromAsyncIterable } from '@agoric/notifier';
|
|
3
|
-
import { AmountMath } from '@agoric/ertp/src/index.js';
|
|
4
3
|
import { makeTracer } from '@agoric/internal/src/index.js';
|
|
5
4
|
import { Fail } from '@endo/errors';
|
|
6
5
|
import { TimeMath } from '@agoric/time';
|
|
@@ -9,6 +8,7 @@ const trace = makeTracer('upgrade Vaults proposal');
|
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* @typedef {PromiseSpaceOf<{
|
|
11
|
+
* priceAuthority8400: Instance;
|
|
12
12
|
* auctionUpgradeNewInstance: Instance;
|
|
13
13
|
* }>} interlockPowers
|
|
14
14
|
*/
|
|
@@ -16,7 +16,12 @@ const trace = makeTracer('upgrade Vaults proposal');
|
|
|
16
16
|
/**
|
|
17
17
|
* @param {import('../../src/proposals/econ-behaviors').EconomyBootstrapPowers &
|
|
18
18
|
* interlockPowers} powers
|
|
19
|
-
* @param {{
|
|
19
|
+
* @param {{
|
|
20
|
+
* options: {
|
|
21
|
+
* VaultFactoryBundle: { bundleID: string };
|
|
22
|
+
* contractGovernorBundle: { bundleID: string };
|
|
23
|
+
* };
|
|
24
|
+
* }} options
|
|
20
25
|
*/
|
|
21
26
|
export const upgradeVaults = async (
|
|
22
27
|
{
|
|
@@ -27,33 +32,21 @@ export const upgradeVaults = async (
|
|
|
27
32
|
reserveKit,
|
|
28
33
|
vaultFactoryKit,
|
|
29
34
|
zoe,
|
|
35
|
+
priceAuthority8400,
|
|
30
36
|
},
|
|
31
37
|
produce: { auctionUpgradeNewInstance: auctionUpgradeNewInstanceProducer },
|
|
32
|
-
installation: {
|
|
33
|
-
produce: { VaultFactory: produceVaultInstallation },
|
|
34
|
-
},
|
|
35
38
|
instance: {
|
|
36
39
|
consume: { auctioneer: auctioneerInstanceP },
|
|
37
40
|
},
|
|
38
41
|
},
|
|
39
|
-
{ options },
|
|
42
|
+
{ options: { VaultFactoryBundle: vaultBundleRef, contractGovernorBundle } },
|
|
40
43
|
) => {
|
|
41
|
-
const { vaultsRef } = options;
|
|
42
44
|
const kit = await vaultFactoryKit;
|
|
43
45
|
const { instance: directorInstance } = kit;
|
|
44
46
|
const allBrands = await E(zoe).getBrands(directorInstance);
|
|
45
47
|
const { Minted: _istBrand, ...vaultBrands } = allBrands;
|
|
46
48
|
|
|
47
|
-
|
|
48
|
-
console.log(`upgradeVaults: bundleId`, bundleID);
|
|
49
|
-
/**
|
|
50
|
-
* @type {Promise<
|
|
51
|
-
* Installation<import('../../src/vaultFactory/vaultFactory.js')['start']>
|
|
52
|
-
* >}
|
|
53
|
-
*/
|
|
54
|
-
const installationP = E(zoe).installBundleID(bundleID);
|
|
55
|
-
produceVaultInstallation.reset();
|
|
56
|
-
produceVaultInstallation.resolve(installationP);
|
|
49
|
+
await priceAuthority8400;
|
|
57
50
|
|
|
58
51
|
const [auctionOldInstance, auctionNewInstance] = await Promise.all([
|
|
59
52
|
auctioneerInstanceP,
|
|
@@ -77,24 +70,21 @@ export const upgradeVaults = async (
|
|
|
77
70
|
|
|
78
71
|
const subscription = E(directorPF).getElectorateSubscription();
|
|
79
72
|
const notifier = makeNotifierFromAsyncIterable(subscription);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
`minInitialDebt was empty, retried`,
|
|
86
|
-
value.current.MinInitialDebt.value,
|
|
87
|
-
);
|
|
88
|
-
}
|
|
73
|
+
const { updateCount } = await notifier.getUpdateSince();
|
|
74
|
+
|
|
75
|
+
// subscribeAfter(<some known state>) retrieves the latest value.
|
|
76
|
+
const after = await E(subscription).subscribeAfter(updateCount);
|
|
77
|
+
const { current } = after.head.value;
|
|
89
78
|
|
|
90
79
|
return harden({
|
|
91
|
-
MinInitialDebt:
|
|
92
|
-
ReferencedUI:
|
|
93
|
-
RecordingPeriod:
|
|
94
|
-
ChargingPeriod:
|
|
80
|
+
MinInitialDebt: current.MinInitialDebt.value,
|
|
81
|
+
ReferencedUI: current.ReferencedUI.value,
|
|
82
|
+
RecordingPeriod: current.RecordingPeriod.value,
|
|
83
|
+
ChargingPeriod: current.ChargingPeriod.value,
|
|
95
84
|
});
|
|
96
85
|
};
|
|
97
86
|
const directorParamOverrides = await readCurrentDirectorParams();
|
|
87
|
+
trace({ directorParamOverrides });
|
|
98
88
|
|
|
99
89
|
const readManagerParams = async () => {
|
|
100
90
|
const { publicFacet: directorPF } = kit;
|
|
@@ -104,34 +94,22 @@ export const upgradeVaults = async (
|
|
|
104
94
|
const params = {};
|
|
105
95
|
for (const kwd of Object.keys(vaultBrands)) {
|
|
106
96
|
const collateralBrand = vaultBrands[kwd];
|
|
107
|
-
|
|
97
|
+
|
|
98
|
+
/** @type {any} */
|
|
99
|
+
const governedParams = await E(directorPF).getGovernedParams({
|
|
108
100
|
collateralBrand,
|
|
109
101
|
});
|
|
110
|
-
|
|
111
|
-
let { value, updateCount } = await notifier.getUpdateSince(0n);
|
|
112
|
-
// @ts-expect-error It's an amount.
|
|
113
|
-
if (AmountMath.isEmpty(value.current.DebtLimit.value)) {
|
|
114
|
-
// The parameters might have been empty at start, and the notifier might
|
|
115
|
-
// give the first state before the current state.
|
|
116
|
-
trace(`debtLimit was empty, retrying`, value.current.DebtLimit.value);
|
|
117
|
-
({ value, updateCount } = await notifier.getUpdateSince(updateCount));
|
|
118
|
-
|
|
119
|
-
// @ts-expect-error It's an amount.
|
|
120
|
-
if (AmountMath.isEmpty(value.current.DebtLimit.value)) {
|
|
121
|
-
trace('debtLimit was empty after retrying');
|
|
122
|
-
throw Error('🚨Governed parameters empty after retry, Giving up');
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
trace(kwd, 'params at', updateCount, 'are', value.current);
|
|
102
|
+
trace({ kwd, governedParams });
|
|
126
103
|
params[kwd] = harden({
|
|
127
104
|
brand: collateralBrand,
|
|
128
|
-
debtLimit:
|
|
129
|
-
interestRate:
|
|
130
|
-
liquidationMargin:
|
|
131
|
-
liquidationPadding:
|
|
132
|
-
liquidationPenalty:
|
|
133
|
-
mintFee:
|
|
105
|
+
debtLimit: governedParams.DebtLimit.value,
|
|
106
|
+
interestRate: governedParams.InterestRate.value,
|
|
107
|
+
liquidationMargin: governedParams.LiquidationMargin.value,
|
|
108
|
+
liquidationPadding: governedParams.LiquidationPadding.value,
|
|
109
|
+
liquidationPenalty: governedParams.LiquidationPenalty.value,
|
|
110
|
+
mintFee: governedParams.MintFee.value,
|
|
134
111
|
});
|
|
112
|
+
trace(kwd, params[kwd]);
|
|
135
113
|
}
|
|
136
114
|
return params;
|
|
137
115
|
};
|
|
@@ -161,58 +139,66 @@ export const upgradeVaults = async (
|
|
|
161
139
|
});
|
|
162
140
|
|
|
163
141
|
const upgradeResult = await E(kit.adminFacet).upgradeContract(
|
|
164
|
-
bundleID,
|
|
142
|
+
vaultBundleRef.bundleID,
|
|
165
143
|
newPrivateArgs,
|
|
166
144
|
);
|
|
167
145
|
|
|
168
146
|
trace('upgraded vaultFactory.', upgradeResult);
|
|
169
147
|
};
|
|
170
|
-
|
|
171
148
|
await upgradeVaultFactory();
|
|
172
149
|
|
|
173
150
|
// @ts-expect-error It's saved in econ-behaviors.js:startVaultFactory()
|
|
174
151
|
const vaultFactoryPrivateArgs = kit.privateArgs;
|
|
175
|
-
|
|
152
|
+
trace('restarting governor');
|
|
176
153
|
|
|
177
154
|
const ecf = await electorateCreatorFacet;
|
|
178
|
-
//
|
|
179
|
-
await E(kit.governorAdminFacet).
|
|
155
|
+
// upgrade vaultFactory governor. Won't be needed next time: see #10063
|
|
156
|
+
await E(kit.governorAdminFacet).upgradeContract(
|
|
157
|
+
contractGovernorBundle.bundleID,
|
|
180
158
|
harden({
|
|
181
159
|
electorateCreatorFacet: ecf,
|
|
182
160
|
governed: vaultFactoryPrivateArgs,
|
|
183
161
|
}),
|
|
184
162
|
);
|
|
185
163
|
|
|
186
|
-
|
|
164
|
+
trace('restarted governor');
|
|
187
165
|
};
|
|
188
166
|
|
|
189
167
|
const uV = 'upgradeVaults';
|
|
190
168
|
/**
|
|
191
169
|
* Return the manifest, installations, and options for upgrading Vaults.
|
|
192
170
|
*
|
|
193
|
-
* @param {object}
|
|
171
|
+
* @param {object} utils
|
|
172
|
+
* @param {any} utils.restoreRef
|
|
194
173
|
* @param {any} vaultUpgradeOptions
|
|
195
174
|
*/
|
|
196
175
|
export const getManifestForUpgradeVaults = async (
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
) =>
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
produce: {
|
|
176
|
+
{ restoreRef },
|
|
177
|
+
{ VaultFactoryRef, contractGovernorRef },
|
|
178
|
+
) => {
|
|
179
|
+
return {
|
|
180
|
+
manifest: {
|
|
181
|
+
[upgradeVaults.name]: {
|
|
182
|
+
consume: {
|
|
183
|
+
priceAuthority8400: uV,
|
|
184
|
+
auctionUpgradeNewInstance: uV,
|
|
185
|
+
chainTimerService: uV,
|
|
186
|
+
economicCommitteeCreatorFacet: uV,
|
|
187
|
+
reserveKit: uV,
|
|
188
|
+
vaultFactoryKit: uV,
|
|
189
|
+
zoe: uV,
|
|
190
|
+
},
|
|
191
|
+
produce: { auctionUpgradeNewInstance: uV },
|
|
192
|
+
instance: { consume: { auctioneer: uV } },
|
|
213
193
|
},
|
|
214
|
-
instance: { consume: { auctioneer: true } },
|
|
215
194
|
},
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
195
|
+
installations: {
|
|
196
|
+
VaultFactory: restoreRef(VaultFactoryRef),
|
|
197
|
+
contractGovernor: restoreRef(contractGovernorRef),
|
|
198
|
+
},
|
|
199
|
+
options: {
|
|
200
|
+
VaultFactoryBundle: VaultFactoryRef,
|
|
201
|
+
contractGovernorBundle: contractGovernorRef,
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
};
|
package/src/proposals/utils.d.ts
CHANGED
|
@@ -14,4 +14,6 @@ export function makeInstallCache(homeP: {
|
|
|
14
14
|
}>;
|
|
15
15
|
export function oracleBrandFeedName(inBrandName: any, outBrandName: any): string;
|
|
16
16
|
export function scaledPriceFeedName(issuerName: any): string;
|
|
17
|
+
/** @type {(name: string) => string} */
|
|
18
|
+
export const sanitizePathSegment: (name: string) => string;
|
|
17
19
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAYO,mDAHI,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,SACtC,MAAM,EAAE,EAAE,kBA+BpB;AAMM,+CAHI,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,SACtC,MAAM,EAAE,kBAMhB;AAQI,8CALI,MAAM,uBACN,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,QACtC,MAAM,YACN,IAAI,CAAC,OAAO,CAAC,EAAE,iBAuBzB;AA6BM,wCAPI;IACN,OAAO,EAAE,IAAI,CAAC,OAAO,iCAAiC,EAAE,UAAU,CAAC,CAAC;CACrE,mCAED;IAAkE,UAAU,EAApE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,eAAe;CAAC;;;GAoDxC;AAEM,iFACsC;AAEtC,6DAC+B;AAEtC,uCAAuC;AACvC,kCADW,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAKjC"}
|
package/src/proposals/utils.js
CHANGED
|
@@ -2,6 +2,7 @@ import { Fail } from '@endo/errors';
|
|
|
2
2
|
import { E } from '@endo/far';
|
|
3
3
|
import { WalletName } from '@agoric/internal';
|
|
4
4
|
import { getCopyMapEntries, makeCopyMap } from '@agoric/store';
|
|
5
|
+
import { assertPathSegment } from '@agoric/internal/src/lib-chainStorage.js';
|
|
5
6
|
|
|
6
7
|
/** @import {CopyMap} from '@endo/patterns'; */
|
|
7
8
|
|
|
@@ -163,3 +164,10 @@ export const oracleBrandFeedName = (inBrandName, outBrandName) =>
|
|
|
163
164
|
|
|
164
165
|
export const scaledPriceFeedName = issuerName =>
|
|
165
166
|
`scaledPriceAuthority-${issuerName}`;
|
|
167
|
+
|
|
168
|
+
/** @type {(name: string) => string} */
|
|
169
|
+
export const sanitizePathSegment = name => {
|
|
170
|
+
const candidate = name.replace(/ /g, '_');
|
|
171
|
+
assertPathSegment(candidate);
|
|
172
|
+
return candidate;
|
|
173
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultManager.d.ts","sourceRoot":"","sources":["vaultManager.js"],"names":[],"mappings":"AAqFO,mCANM,CAAC,EACQ,CAAC,SAAT,GAAG,EAAG,yBACT,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WACpB,OAAO,4BAA4B,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,WACzD,CAAC,iBAqBX;AAwHM,gDATI,OAAO,4BAA4B,EAAE,OAAO,uDAC5C;IACN,GAAG,EAAE,OAAO,mBAAmB,EAAE,eAAe,CAAC;IACjD,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,eAAe,EAAE,OAAO,6CAA6C,EAAE,eAAe,CAAC;IACvF,gBAAgB,EAAE,OAAO,6CAA6C,EAAE,gBAAgB,CAAC;IACzF,aAAa,EAAE,OAAO,oBAAoB,EAAE,kBAAkB,CAAC;CAChE,
|
|
1
|
+
{"version":3,"file":"vaultManager.d.ts","sourceRoot":"","sources":["vaultManager.js"],"names":[],"mappings":"AAqFO,mCANM,CAAC,EACQ,CAAC,SAAT,GAAG,EAAG,yBACT,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WACpB,OAAO,4BAA4B,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,WACzD,CAAC,iBAqBX;AAwHM,gDATI,OAAO,4BAA4B,EAAE,OAAO,uDAC5C;IACN,GAAG,EA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AS,CAAC;IAChC,wBAAwB,EAAE,MAAM,CAAC;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,mBAAmB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACpC,qBAAqB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACrC,sBAAsB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,UAAU,GAAG,SAAS,CAAC;CACrC;8BAikCU,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC;;;;;;;;2BAE/D,eAAe,CAAC,MAAM,CAAC;gCAMtB,eAAe,CAAC,YAAY,CAAC;oCAxqCT,iBAAiB;gCArC0C,4BAA4B;kCAsCzF,cAAc"}
|
|
@@ -455,6 +455,7 @@ export const prepareVaultManagerKit = (
|
|
|
455
455
|
// will throw. See https://github.com/Agoric/agoric-sdk/issues/4317
|
|
456
456
|
const quoteWatcher = harden({
|
|
457
457
|
onFulfilled(value) {
|
|
458
|
+
trace('watcher updated price', value);
|
|
458
459
|
ephemera.storedCollateralQuote = value;
|
|
459
460
|
},
|
|
460
461
|
onRejected() {
|