@agoric/inter-protocol 0.16.2-dev-75b00b2.0 → 0.16.2-dev-bef63e5.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 +25 -25
- package/src/auction/auctionBook.d.ts +2 -2
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/offerBook.d.ts +2 -29
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/params.d.ts +2 -2
- package/src/clientSupport.d.ts +1 -1
- package/src/clientSupport.d.ts.map +1 -1
- package/src/clientSupport.js +1 -1
- package/src/econCommitteeCharter.d.ts +1 -9
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.d.ts +5 -50
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.d.ts +2 -176
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.d.ts +1 -15
- package/src/price/priceOracleKit.d.ts.map +1 -1
- package/src/price/roundsManager.d.ts +1 -129
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +20 -14
- package/src/proposals/committee-proposal.d.ts +4 -4
- package/src/proposals/committee-proposal.d.ts.map +1 -1
- package/src/proposals/committee-proposal.js +5 -5
- package/src/proposals/econ-behaviors.d.ts +11 -11
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.js +1 -1
- package/src/proposals/price-feed-proposal.d.ts +1 -1
- package/src/proposals/price-feed-proposal.d.ts.map +1 -1
- package/src/proposals/price-feed-proposal.js +1 -1
- package/src/proposals/startEconCommittee.d.ts +1 -1
- package/src/proposals/startEconCommittee.d.ts.map +1 -1
- package/src/proposals/startEconCommittee.js +1 -1
- package/src/provisionPool.d.ts +60 -64
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPool.js +1 -1
- package/src/provisionPoolKit.d.ts +133 -158
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +2 -2
- package/src/psm/psm.d.ts +4 -59
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/types.d.ts +1 -1
- package/src/psm/types.d.ts.map +1 -1
- package/src/psm/types.js +1 -1
- package/src/reserve/assetReserve.d.ts +4 -4
- package/src/reserve/assetReserveKit.d.ts +1 -46
- package/src/reserve/assetReserveKit.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +20 -20
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.js +2 -2
- package/src/vaultFactory/params.d.ts +6 -6
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +1 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +55 -55
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +1 -1
- package/src/vaultFactory/types.d.ts +5 -5
- package/src/vaultFactory/types.d.ts.map +1 -1
- package/src/vaultFactory/types.js +5 -5
- package/src/vaultFactory/vault.d.ts +7 -212
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +1 -1
- package/src/vaultFactory/vaultDirector.d.ts +23 -272
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +18 -18
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -1
- package/src/vaultFactory/vaultHolder.d.ts +12 -87
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.d.ts +4 -4
- package/src/vaultFactory/vaultManager.d.ts +12 -211
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
|
@@ -16,7 +16,7 @@ export namespace Phase {
|
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
18
|
* @typedef {object} VaultManager
|
|
19
|
-
* @property {() => Subscriber<import('./vaultManager').AssetState>} getAssetSubscriber
|
|
19
|
+
* @property {() => Subscriber<import('./vaultManager.js').AssetState>} getAssetSubscriber
|
|
20
20
|
* @property {(collateralAmount: Amount) => Amount<'nat'>} maxDebtFor
|
|
21
21
|
* @property {() => Brand} getCollateralBrand
|
|
22
22
|
* @property {(base: string) => string} scopeDescription
|
|
@@ -55,7 +55,7 @@ export namespace Phase {
|
|
|
55
55
|
* }} MutableState
|
|
56
56
|
*/
|
|
57
57
|
export const VaultI: any;
|
|
58
|
-
export function prepareVault(baggage: import('@agoric/ertp').Baggage, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit, zcf: ZCF): (manager: VaultManager, idInManager: string, storageNode: StorageNode) => {
|
|
58
|
+
export function prepareVault(baggage: import('@agoric/ertp').Baggage, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit, zcf: ZCF): (manager: VaultManager, idInManager: string, storageNode: StorageNode) => import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
59
59
|
helper: {
|
|
60
60
|
collateralBrand(): Brand<AssetKind>;
|
|
61
61
|
debtBrand(): Brand<"nat">;
|
|
@@ -191,217 +191,12 @@ export function prepareVault(baggage: import('@agoric/ertp').Baggage, makeRecord
|
|
|
191
191
|
storagePath: Promise<string>;
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
-
invitationMakers: {
|
|
194
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
195
195
|
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
196
196
|
CloseVault(): Promise<Invitation<R, A>>;
|
|
197
197
|
TransferVault(): Promise<Invitation<R, A>>;
|
|
198
|
-
}
|
|
199
|
-
vault: {
|
|
200
|
-
getPublicTopics(): {
|
|
201
|
-
vault: {
|
|
202
|
-
description: string;
|
|
203
|
-
subscriber: Subscriber<VaultNotification>;
|
|
204
|
-
storagePath: Promise<string>;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
208
|
-
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
209
|
-
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
210
|
-
getCollateralAmount(): Amount<"nat">;
|
|
211
|
-
getCurrentDebt(): Amount<"nat">;
|
|
212
|
-
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
213
|
-
};
|
|
214
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
215
|
-
}>;
|
|
216
|
-
/** Called by manager at start of liquidation. */
|
|
217
|
-
liquidating(): void;
|
|
218
|
-
/**
|
|
219
|
-
* Called by manager at end of liquidation, at which point all debts
|
|
220
|
-
* have been covered.
|
|
221
|
-
*/
|
|
222
|
-
liquidated(): void;
|
|
223
|
-
/**
|
|
224
|
-
* Called by vaultManager when the auction wasn't able to sell the
|
|
225
|
-
* collateral. The liquidation fee was charged against the collateral,
|
|
226
|
-
* but the debt will be restored and the vault will be active again.
|
|
227
|
-
* Liquidation.md has details on the liquidation approach.
|
|
228
|
-
*/
|
|
229
|
-
abortLiquidation(): string;
|
|
230
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
231
|
-
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
232
|
-
/** @returns {Promise<Invitation>} */
|
|
233
|
-
makeTransferInvitation(): Promise<Invitation>;
|
|
234
|
-
/** @returns {Amount<'nat'>} */
|
|
235
|
-
getCollateralAmount(): Amount<'nat'>;
|
|
236
|
-
/**
|
|
237
|
-
* The actual current debt, including accrued interest.
|
|
238
|
-
*
|
|
239
|
-
* This looks like a simple getter but it does a lot of the heavy
|
|
240
|
-
* lifting for interest accrual. Rather than updating all records when
|
|
241
|
-
* interest accrues, the vault manager updates just its rolling
|
|
242
|
-
* compounded interest. Here we calculate what the current debt is given
|
|
243
|
-
* what's recorded in this vault and what interest has compounded since
|
|
244
|
-
* this vault record was written.
|
|
245
|
-
*
|
|
246
|
-
* @returns {Amount<'nat'>}
|
|
247
|
-
* @see getNormalizedDebt
|
|
248
|
-
*/
|
|
249
|
-
getCurrentDebt(): Amount<'nat'>;
|
|
250
|
-
/**
|
|
251
|
-
* The normalization puts all debts on a common time-independent scale
|
|
252
|
-
* since the launch of this vault manager. This allows the manager to
|
|
253
|
-
* order vaults by their debt-to-collateral ratios without having to
|
|
254
|
-
* mutate the debts as the interest accrues.
|
|
255
|
-
*
|
|
256
|
-
* @returns {import('./storeUtils.js').NormalizedDebt} as if the vault
|
|
257
|
-
* was open at the launch of this manager, before any interest
|
|
258
|
-
* accrued
|
|
259
|
-
* @see getActualDebAmount
|
|
260
|
-
*/
|
|
261
|
-
getNormalizedDebt(): import('./storeUtils.js').NormalizedDebt;
|
|
262
|
-
};
|
|
263
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
264
|
-
helper: {
|
|
265
|
-
collateralBrand(): Brand<AssetKind>;
|
|
266
|
-
debtBrand(): Brand<"nat">;
|
|
267
|
-
emptyCollateral(): Amount<"nat">;
|
|
268
|
-
emptyDebt(): Amount<"nat">;
|
|
269
|
-
/**
|
|
270
|
-
* @typedef {{
|
|
271
|
-
* give: { Collateral: Amount<'nat'>; Minted: Amount<'nat'> };
|
|
272
|
-
* want: { Collateral: Amount<'nat'>; Minted: Amount<'nat'> };
|
|
273
|
-
* }} FullProposal
|
|
274
|
-
*/
|
|
275
|
-
/**
|
|
276
|
-
* @param {ProposalRecord} partial
|
|
277
|
-
* @returns {FullProposal}
|
|
278
|
-
*/
|
|
279
|
-
fullProposal(partial: ProposalRecord): {
|
|
280
|
-
give: {
|
|
281
|
-
Collateral: Amount<'nat'>;
|
|
282
|
-
Minted: Amount<'nat'>;
|
|
283
|
-
};
|
|
284
|
-
want: {
|
|
285
|
-
Collateral: Amount<'nat'>;
|
|
286
|
-
Minted: Amount<'nat'>;
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
/** @param {VaultPhase} newPhase */
|
|
290
|
-
assignPhase(newPhase: VaultPhase): void;
|
|
291
|
-
assertActive(): void;
|
|
292
|
-
assertCloseable(): void;
|
|
293
|
-
/**
|
|
294
|
-
* Called whenever the debt is paid or created through a transaction,
|
|
295
|
-
* but not for interest accrual.
|
|
296
|
-
*
|
|
297
|
-
* @param {Amount<'nat'>} newDebt - principal and all accrued interest
|
|
298
|
-
*/
|
|
299
|
-
updateDebtSnapshot(newDebt: Amount<'nat'>): void;
|
|
300
|
-
/**
|
|
301
|
-
* Update the debt balance and propagate upwards to maintain aggregate
|
|
302
|
-
* debt and liquidation order.
|
|
303
|
-
*
|
|
304
|
-
* @param {NormalizedDebt} oldDebtNormalized - prior principal and all
|
|
305
|
-
* accrued interest, normalized to the launch of the vaultManager
|
|
306
|
-
* @param {Amount<'nat'>} oldCollateral - actual collateral
|
|
307
|
-
* @param {Amount<'nat'>} newDebtActual - actual principal and all
|
|
308
|
-
* accrued interest
|
|
309
|
-
*/
|
|
310
|
-
updateDebtAccounting(oldDebtNormalized: NormalizedDebt, oldCollateral: Amount<'nat'>, newDebtActual: Amount<'nat'>): void;
|
|
311
|
-
/** @param {ZCFSeat} seat */
|
|
312
|
-
getCollateralAllocated(seat: ZCFSeat): Amount<any>;
|
|
313
|
-
getMintedAllocated(seat: any): any;
|
|
314
|
-
assertVaultHoldsNoMinted(): void;
|
|
315
|
-
/**
|
|
316
|
-
* @param {Amount<'nat'>} collateralAmount
|
|
317
|
-
* @param {Amount<'nat'>} proposedDebt
|
|
318
|
-
*/
|
|
319
|
-
assertSufficientCollateral(collateralAmount: Amount<'nat'>, proposedDebt: Amount<'nat'>): void;
|
|
320
|
-
/** @param {HolderPhase} newPhase */
|
|
321
|
-
getStateSnapshot(newPhase: HolderPhase): {
|
|
322
|
-
debtSnapshot: {
|
|
323
|
-
debt: Amount<"nat">;
|
|
324
|
-
interest: Ratio;
|
|
325
|
-
};
|
|
326
|
-
locked: Amount<"nat">;
|
|
327
|
-
vaultState: HolderPhase;
|
|
328
|
-
};
|
|
329
|
-
/** call this whenever anything changes! */
|
|
330
|
-
updateUiState(): void;
|
|
331
|
-
/** @param {ZCFSeat} seat */
|
|
332
|
-
closeHook(seat: ZCFSeat): Promise<string>;
|
|
333
|
-
/**
|
|
334
|
-
* Calculate the fee, the amount to mint and the resulting debt. The
|
|
335
|
-
* give and the want together reflect a delta, where typically one is
|
|
336
|
-
* zero because they come from the gave/want of an offer proposal. If
|
|
337
|
-
* the `want` is zero, the `fee` will also be zero, so the simple math
|
|
338
|
-
* works.
|
|
339
|
-
*
|
|
340
|
-
* @param {Amount<'nat'>} currentDebt
|
|
341
|
-
* @param {Amount<'nat'>} giveAmount
|
|
342
|
-
* @param {Amount<'nat'>} wantAmount
|
|
343
|
-
*/
|
|
344
|
-
debtFee(currentDebt: Amount<'nat'>, giveAmount: Amount<'nat'>, wantAmount: Amount<'nat'>): {
|
|
345
|
-
newDebt: Amount<"nat">;
|
|
346
|
-
toMint: Amount<"nat">;
|
|
347
|
-
fee: Amount<"nat">;
|
|
348
|
-
surplus: Amount<"nat">;
|
|
349
|
-
};
|
|
350
|
-
/**
|
|
351
|
-
* Adjust principal and collateral (atomically for offer safety)
|
|
352
|
-
*
|
|
353
|
-
* @param {ZCFSeat} clientSeat
|
|
354
|
-
* @returns {string} success message
|
|
355
|
-
*/
|
|
356
|
-
adjustBalancesHook(clientSeat: ZCFSeat): string;
|
|
357
|
-
/**
|
|
358
|
-
* @param {ZCFSeat} clientSeat
|
|
359
|
-
* @param {FullProposal} fp
|
|
360
|
-
* @param {ReturnType<typeof calculateDebtCosts>} costs
|
|
361
|
-
* @param {object} accounting
|
|
362
|
-
* @param {NormalizedDebt} accounting.normalizedDebtPre
|
|
363
|
-
* @param {Amount<'nat'>} accounting.collateralPre
|
|
364
|
-
* @returns {string} success message
|
|
365
|
-
*/
|
|
366
|
-
commitBalanceAdjustment(clientSeat: ZCFSeat, fp: {
|
|
367
|
-
give: {
|
|
368
|
-
Collateral: Amount<'nat'>;
|
|
369
|
-
Minted: Amount<'nat'>;
|
|
370
|
-
};
|
|
371
|
-
want: {
|
|
372
|
-
Collateral: Amount<'nat'>;
|
|
373
|
-
Minted: Amount<'nat'>;
|
|
374
|
-
};
|
|
375
|
-
}, { newDebt, fee, surplus, toMint }: ReturnType<typeof calculateDebtCosts>, { normalizedDebtPre, collateralPre }: {
|
|
376
|
-
normalizedDebtPre: NormalizedDebt;
|
|
377
|
-
collateralPre: Amount<'nat'>;
|
|
378
|
-
}): string;
|
|
379
|
-
/**
|
|
380
|
-
* @param {ZCFSeat} seat
|
|
381
|
-
* @returns {VaultKit}
|
|
382
|
-
*/
|
|
383
|
-
makeTransferInvitationHook(seat: ZCFSeat): VaultKit;
|
|
384
|
-
};
|
|
385
|
-
self: {
|
|
386
|
-
getVaultSeat(): ZCFSeat;
|
|
387
|
-
/**
|
|
388
|
-
* @param {ZCFSeat} seat
|
|
389
|
-
* @param {StorageNode} storageNode
|
|
390
|
-
*/
|
|
391
|
-
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
392
|
-
publicSubscribers: {
|
|
393
|
-
vault: {
|
|
394
|
-
description: string;
|
|
395
|
-
subscriber: Subscriber<VaultNotification>;
|
|
396
|
-
storagePath: Promise<string>;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
invitationMakers: {
|
|
400
|
-
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
401
|
-
CloseVault(): Promise<Invitation<R, A>>;
|
|
402
|
-
TransferVault(): Promise<Invitation<R, A>>;
|
|
403
|
-
};
|
|
404
|
-
vault: {
|
|
198
|
+
}>;
|
|
199
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
405
200
|
getPublicTopics(): {
|
|
406
201
|
vault: {
|
|
407
202
|
description: string;
|
|
@@ -415,7 +210,7 @@ export function prepareVault(baggage: import('@agoric/ertp').Baggage, makeRecord
|
|
|
415
210
|
getCollateralAmount(): Amount<"nat">;
|
|
416
211
|
getCurrentDebt(): Amount<"nat">;
|
|
417
212
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
418
|
-
}
|
|
213
|
+
}>;
|
|
419
214
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
420
215
|
}>;
|
|
421
216
|
/** Called by manager at start of liquidation. */
|
|
@@ -497,7 +292,7 @@ export type VaultNotification = {
|
|
|
497
292
|
vaultState: HolderPhase;
|
|
498
293
|
};
|
|
499
294
|
export type VaultManager = {
|
|
500
|
-
getAssetSubscriber: () => Subscriber<import('./vaultManager').AssetState>;
|
|
295
|
+
getAssetSubscriber: () => Subscriber<import('./vaultManager.js').AssetState>;
|
|
501
296
|
maxDebtFor: (collateralAmount: Amount) => Amount<'nat'>;
|
|
502
297
|
getCollateralBrand: () => Brand;
|
|
503
298
|
scopeDescription: (base: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["vault.js"],"names":[],"mappings":";;;;;;;AA0EA;;;;;;;;GAQG;AAGH;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AAEH,yBAYG;AAkBI,sCAJI,OAAO,cAAc,EAAE,OAAO,mBAC9B,OAAO,6CAA6C,EAAE,eAAe,OACrE,GAAG;;;;;;QAuDN;;;;;WAKG;QACH;;;WAGG;8BAFQ,cAAc;kBALd;gBAAE,UAAU,EAAE,OAAO,KAAK,CAAC,CAAC;gBAAC,MAAM,EAAE,OAAO,KAAK,CAAC,CAAA;aAAE;kBACpD;gBAAE,UAAU,EAAE,OAAO,KAAK,CAAC,CAAC;gBAAC,MAAM,EAAE,OAAO,KAAK,CAAC,CAAA;aAAE;;QA0B/D,mCAAmC;8BAAvB,UAAU;;;QAwBtB;;;;;WAKG;oCADQ,OAAO,KAAK,CAAC;QAUxB;;;;;;;;;WASG;gDALQ,cAAc,iB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C;IAC5B,KAAS,EAAE,UAAU,CAAC;IACtB,YAAgB,EAAE,OAAO,KAAK,CAAC,CAAC;IAChC,YAAgB,EACR,OAAO,6CAA6C,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GACjF,IAAI,CAAC;CACV;oBAwuBU,WAAW,WAAW,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC;mCAz1B9B,WAAW"}
|
|
@@ -85,7 +85,7 @@ const validTransitions = {
|
|
|
85
85
|
// XXX masks typedef from types.js, but using that causes circular def problems
|
|
86
86
|
/**
|
|
87
87
|
* @typedef {object} VaultManager
|
|
88
|
-
* @property {() => Subscriber<import('./vaultManager').AssetState>} getAssetSubscriber
|
|
88
|
+
* @property {() => Subscriber<import('./vaultManager.js').AssetState>} getAssetSubscriber
|
|
89
89
|
* @property {(collateralAmount: Amount) => Amount<'nat'>} maxDebtFor
|
|
90
90
|
* @property {() => Brand} getCollateralBrand
|
|
91
91
|
* @property {(base: string) => string} scopeDescription
|