@agoric/inter-protocol 0.16.2-dev-f1638f9.0 → 0.16.2-dev-fa844b5.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 +17 -17
- package/src/auction/auctionBook.d.ts +2 -2
- package/src/auction/auctioneer.d.ts +4 -4
- package/src/auction/offerBook.d.ts +2 -2
- package/src/auction/params.d.ts +4 -4
- package/src/contractSupport.d.ts +3 -3
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +2 -2
- package/src/feeDistributor.d.ts +47 -31
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +5 -1
- package/src/price/fluxAggregatorContract.d.ts +6 -6
- package/src/price/fluxAggregatorKit.d.ts +4 -4
- package/src/price/priceOracleKit.d.ts +1 -1
- package/src/price/roundsManager.d.ts +7 -7
- package/src/proposals/econ-behaviors.d.ts +83 -83
- package/src/proposals/price-feed-proposal.d.ts +2 -2
- package/src/proposals/utils.d.ts +1 -1
- package/src/provisionPool.d.ts +22 -22
- package/src/provisionPoolKit.d.ts +120 -118
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +7 -2
- package/src/psm/psm.d.ts +7 -7
- package/src/reserve/assetReserve.d.ts +6 -6
- package/src/reserve/assetReserveKit.d.ts +2 -2
- package/src/vaultFactory/burn.d.ts +1 -1
- package/src/vaultFactory/burn.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.d.ts +32 -32
- package/src/vaultFactory/math.d.ts +4 -4
- package/src/vaultFactory/orderedVaultStore.d.ts +55 -55
- package/src/vaultFactory/params.d.ts +18 -18
- package/src/vaultFactory/prioritizedVaults.d.ts +132 -132
- package/src/vaultFactory/types.d.ts +15 -15
- package/src/vaultFactory/vault.d.ts +24 -24
- package/src/vaultFactory/vaultDirector.d.ts +49 -49
- package/src/vaultFactory/vaultFactory.d.ts +37 -37
- package/src/vaultFactory/vaultHolder.d.ts +36 -36
- package/src/vaultFactory/vaultKit.d.ts +15 -15
- package/src/vaultFactory/vaultManager.d.ts +89 -89
|
@@ -14,7 +14,7 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
14
14
|
storageNode: StorageNode;
|
|
15
15
|
}> & {
|
|
16
16
|
metricsStorageNode: StorageNode;
|
|
17
|
-
}, "metricsStorageNode">) => Promise<import("@endo/exo
|
|
17
|
+
}, "metricsStorageNode">) => Promise<import("@endo/exo").GuardedKit<{
|
|
18
18
|
collateral: {
|
|
19
19
|
makeVaultInvitation(): Promise<Invitation<{
|
|
20
20
|
publicSubscribers: {
|
|
@@ -24,12 +24,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
24
24
|
storagePath: Promise<string>;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
invitationMakers: import("@endo/exo
|
|
27
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
28
28
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
29
29
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
30
30
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
31
31
|
}>;
|
|
32
|
-
vault: import("@endo/exo
|
|
32
|
+
vault: import("@endo/exo").Guarded<{
|
|
33
33
|
getPublicTopics(): {
|
|
34
34
|
vault: {
|
|
35
35
|
description: string;
|
|
@@ -40,8 +40,8 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
40
40
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
41
41
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
42
42
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
43
|
-
getCollateralAmount(): Amount<"nat">;
|
|
44
|
-
getCurrentDebt(): Amount<"nat">;
|
|
43
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
44
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
45
45
|
getNormalizedDebt(): NormalizedDebt;
|
|
46
46
|
}>;
|
|
47
47
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -86,7 +86,7 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
86
86
|
* >} vaultData
|
|
87
87
|
* @param {Amount<'nat'>} totalCollateral
|
|
88
88
|
*/
|
|
89
|
-
planProceedsDistribution(proceeds: AmountKeywordRecord, totalDebt: Amount<'nat'>, oraclePriceAtStart: Pick<PriceQuote, 'quoteAmount'>, vaultData: globalThis.MapStore<import("@endo/exo
|
|
89
|
+
planProceedsDistribution(proceeds: AmountKeywordRecord, totalDebt: Amount<'nat'>, oraclePriceAtStart: Pick<PriceQuote, 'quoteAmount'>, vaultData: globalThis.MapStore<import("@endo/exo").Guarded<{
|
|
90
90
|
getVaultSeat(): ZCFSeat;
|
|
91
91
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
92
92
|
publicSubscribers: {
|
|
@@ -96,12 +96,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
96
96
|
storagePath: Promise<string>;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
invitationMakers: import("@endo/exo
|
|
99
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
100
100
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
101
101
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
102
102
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
103
103
|
}>;
|
|
104
|
-
vault: import("@endo/exo
|
|
104
|
+
vault: import("@endo/exo").Guarded<{
|
|
105
105
|
getPublicTopics(): {
|
|
106
106
|
vault: {
|
|
107
107
|
description: string;
|
|
@@ -112,8 +112,8 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
112
112
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
113
113
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
114
114
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
115
|
-
getCollateralAmount(): Amount<"nat">;
|
|
116
|
-
getCurrentDebt(): Amount<"nat">;
|
|
115
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
116
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
117
117
|
getNormalizedDebt(): NormalizedDebt;
|
|
118
118
|
}>;
|
|
119
119
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -131,12 +131,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
131
131
|
storagePath: Promise<string>;
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
invitationMakers: import("@endo/exo
|
|
134
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
135
135
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
136
136
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
137
137
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
138
138
|
}>;
|
|
139
|
-
vault: import("@endo/exo
|
|
139
|
+
vault: import("@endo/exo").Guarded<{
|
|
140
140
|
getPublicTopics(): {
|
|
141
141
|
vault: {
|
|
142
142
|
description: string;
|
|
@@ -147,21 +147,21 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
147
147
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
148
148
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
149
149
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
150
|
-
getCollateralAmount(): Amount<"nat">;
|
|
151
|
-
getCurrentDebt(): Amount<"nat">;
|
|
150
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
151
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
152
152
|
getNormalizedDebt(): NormalizedDebt;
|
|
153
153
|
}>;
|
|
154
154
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
155
155
|
}, undefined>>;
|
|
156
|
-
getCollateralAmount(): Amount<"nat">;
|
|
157
|
-
getCurrentDebt(): Amount<"nat">;
|
|
156
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
157
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
158
158
|
getNormalizedDebt(): NormalizedDebt;
|
|
159
159
|
}>, {
|
|
160
160
|
collateralAmount: Amount<'nat'>;
|
|
161
161
|
debtAmount: Amount<'nat'>;
|
|
162
162
|
}>, totalCollateral: Amount<'nat'>): {
|
|
163
163
|
plan: import("./proceeds.js").DistributionPlan;
|
|
164
|
-
vaultsInPlan: import("@endo/exo
|
|
164
|
+
vaultsInPlan: import("@endo/exo").Guarded<{
|
|
165
165
|
getVaultSeat(): ZCFSeat;
|
|
166
166
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
167
167
|
publicSubscribers: {
|
|
@@ -171,12 +171,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
171
171
|
storagePath: Promise<string>;
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
invitationMakers: import("@endo/exo
|
|
174
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
175
175
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
176
176
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
177
177
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
178
178
|
}>;
|
|
179
|
-
vault: import("@endo/exo
|
|
179
|
+
vault: import("@endo/exo").Guarded<{
|
|
180
180
|
getPublicTopics(): {
|
|
181
181
|
vault: {
|
|
182
182
|
description: string;
|
|
@@ -187,8 +187,8 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
187
187
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
188
188
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
189
189
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
190
|
-
getCollateralAmount(): Amount<"nat">;
|
|
191
|
-
getCurrentDebt(): Amount<"nat">;
|
|
190
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
191
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
192
192
|
getNormalizedDebt(): NormalizedDebt;
|
|
193
193
|
}>;
|
|
194
194
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -206,12 +206,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
206
206
|
storagePath: Promise<string>;
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
invitationMakers: import("@endo/exo
|
|
209
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
210
210
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
211
211
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
212
212
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
213
213
|
}>;
|
|
214
|
-
vault: import("@endo/exo
|
|
214
|
+
vault: import("@endo/exo").Guarded<{
|
|
215
215
|
getPublicTopics(): {
|
|
216
216
|
vault: {
|
|
217
217
|
description: string;
|
|
@@ -222,14 +222,14 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
222
222
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
223
223
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
224
224
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
225
|
-
getCollateralAmount(): Amount<"nat">;
|
|
226
|
-
getCurrentDebt(): Amount<"nat">;
|
|
225
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
226
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
227
227
|
getNormalizedDebt(): NormalizedDebt;
|
|
228
228
|
}>;
|
|
229
229
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
230
230
|
}, undefined>>;
|
|
231
|
-
getCollateralAmount(): Amount<"nat">;
|
|
232
|
-
getCurrentDebt(): Amount<"nat">;
|
|
231
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
232
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
233
233
|
getNormalizedDebt(): NormalizedDebt;
|
|
234
234
|
}>[];
|
|
235
235
|
};
|
|
@@ -249,7 +249,7 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
249
249
|
*/
|
|
250
250
|
distributeProceeds({ plan, vaultsInPlan, liqSeat, totalCollateral, totalDebt, }: {
|
|
251
251
|
plan: import('./proceeds.js').DistributionPlan;
|
|
252
|
-
vaultsInPlan: import("@endo/exo
|
|
252
|
+
vaultsInPlan: import("@endo/exo").Guarded<{
|
|
253
253
|
getVaultSeat(): ZCFSeat;
|
|
254
254
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
255
255
|
publicSubscribers: {
|
|
@@ -259,12 +259,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
259
259
|
storagePath: Promise<string>;
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
|
-
invitationMakers: import("@endo/exo
|
|
262
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
263
263
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
264
264
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
265
265
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
266
266
|
}>;
|
|
267
|
-
vault: import("@endo/exo
|
|
267
|
+
vault: import("@endo/exo").Guarded<{
|
|
268
268
|
getPublicTopics(): {
|
|
269
269
|
vault: {
|
|
270
270
|
description: string;
|
|
@@ -275,8 +275,8 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
275
275
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
276
276
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
277
277
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
278
|
-
getCollateralAmount(): Amount<"nat">;
|
|
279
|
-
getCurrentDebt(): Amount<"nat">;
|
|
278
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
279
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
280
280
|
getNormalizedDebt(): NormalizedDebt;
|
|
281
281
|
}>;
|
|
282
282
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -294,12 +294,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
294
294
|
storagePath: Promise<string>;
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
|
-
invitationMakers: import("@endo/exo
|
|
297
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
298
298
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
299
299
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
300
300
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
301
301
|
}>;
|
|
302
|
-
vault: import("@endo/exo
|
|
302
|
+
vault: import("@endo/exo").Guarded<{
|
|
303
303
|
getPublicTopics(): {
|
|
304
304
|
vault: {
|
|
305
305
|
description: string;
|
|
@@ -310,14 +310,14 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
310
310
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
311
311
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
312
312
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
313
|
-
getCollateralAmount(): Amount<"nat">;
|
|
314
|
-
getCurrentDebt(): Amount<"nat">;
|
|
313
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
314
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
315
315
|
getNormalizedDebt(): NormalizedDebt;
|
|
316
316
|
}>;
|
|
317
317
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
318
318
|
}, undefined>>;
|
|
319
|
-
getCollateralAmount(): Amount<"nat">;
|
|
320
|
-
getCurrentDebt(): Amount<"nat">;
|
|
319
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
320
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
321
321
|
getNormalizedDebt(): NormalizedDebt;
|
|
322
322
|
}>[];
|
|
323
323
|
liqSeat: ZCFSeat;
|
|
@@ -333,17 +333,17 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
333
333
|
*
|
|
334
334
|
* @param {Amount<'nat'>} collateralAmount
|
|
335
335
|
*/
|
|
336
|
-
maxDebtFor(collateralAmount: Amount<'nat'>): Amount<"nat">;
|
|
336
|
+
maxDebtFor(collateralAmount: Amount<'nat'>): globalThis.Amount<"nat">;
|
|
337
337
|
/** @type {MintAndTransfer} */
|
|
338
|
-
mintAndTransfer(mintReceiver: ZCFSeat, toMint: Amount<"nat">, fee: Amount<"nat">, transfers: TransferPart[]): void;
|
|
338
|
+
mintAndTransfer(mintReceiver: ZCFSeat, toMint: globalThis.Amount<"nat">, fee: globalThis.Amount<"nat">, transfers: TransferPart[]): void;
|
|
339
339
|
/**
|
|
340
340
|
* @param {Amount<'nat'>} toBurn
|
|
341
341
|
* @param {ZCFSeat} seat
|
|
342
342
|
*/
|
|
343
343
|
burn(toBurn: Amount<'nat'>, seat: ZCFSeat): void;
|
|
344
344
|
getAssetSubscriber(): Subscriber<AssetState>;
|
|
345
|
-
getCollateralBrand(): Brand<"nat">;
|
|
346
|
-
getDebtBrand(): Brand<"nat">;
|
|
345
|
+
getCollateralBrand(): globalThis.Brand<"nat">;
|
|
346
|
+
getDebtBrand(): globalThis.Brand<"nat">;
|
|
347
347
|
/**
|
|
348
348
|
* Prepend with an identifier of this vault manager
|
|
349
349
|
*
|
|
@@ -363,7 +363,7 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
363
363
|
* @param {Vault} vault
|
|
364
364
|
* @returns {void}
|
|
365
365
|
*/
|
|
366
|
-
handleBalanceChange(oldDebtNormalized: NormalizedDebt, oldCollateral: Amount<'nat'>, vaultId: VaultId, vaultPhase: import('./vault.js').VaultPhase, vault: import("@endo/exo
|
|
366
|
+
handleBalanceChange(oldDebtNormalized: NormalizedDebt, oldCollateral: Amount<'nat'>, vaultId: VaultId, vaultPhase: import('./vault.js').VaultPhase, vault: import("@endo/exo").Guarded<{
|
|
367
367
|
getVaultSeat(): ZCFSeat;
|
|
368
368
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
369
369
|
publicSubscribers: {
|
|
@@ -373,12 +373,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
373
373
|
storagePath: Promise<string>;
|
|
374
374
|
};
|
|
375
375
|
};
|
|
376
|
-
invitationMakers: import("@endo/exo
|
|
376
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
377
377
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
378
378
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
379
379
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
380
380
|
}>;
|
|
381
|
-
vault: import("@endo/exo
|
|
381
|
+
vault: import("@endo/exo").Guarded<{
|
|
382
382
|
getPublicTopics(): {
|
|
383
383
|
vault: {
|
|
384
384
|
description: string;
|
|
@@ -389,8 +389,8 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
389
389
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
390
390
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
391
391
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
392
|
-
getCollateralAmount(): Amount<"nat">;
|
|
393
|
-
getCurrentDebt(): Amount<"nat">;
|
|
392
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
393
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
394
394
|
getNormalizedDebt(): NormalizedDebt;
|
|
395
395
|
}>;
|
|
396
396
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -408,12 +408,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
408
408
|
storagePath: Promise<string>;
|
|
409
409
|
};
|
|
410
410
|
};
|
|
411
|
-
invitationMakers: import("@endo/exo
|
|
411
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
412
412
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
413
413
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
414
414
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
415
415
|
}>;
|
|
416
|
-
vault: import("@endo/exo
|
|
416
|
+
vault: import("@endo/exo").Guarded<{
|
|
417
417
|
getPublicTopics(): {
|
|
418
418
|
vault: {
|
|
419
419
|
description: string;
|
|
@@ -424,14 +424,14 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
424
424
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
425
425
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
426
426
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
427
|
-
getCollateralAmount(): Amount<"nat">;
|
|
428
|
-
getCurrentDebt(): Amount<"nat">;
|
|
427
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
428
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
429
429
|
getNormalizedDebt(): NormalizedDebt;
|
|
430
430
|
}>;
|
|
431
431
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
432
432
|
}, undefined>>;
|
|
433
|
-
getCollateralAmount(): Amount<"nat">;
|
|
434
|
-
getCurrentDebt(): Amount<"nat">;
|
|
433
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
434
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
435
435
|
getNormalizedDebt(): NormalizedDebt;
|
|
436
436
|
}>): void;
|
|
437
437
|
};
|
|
@@ -446,12 +446,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
446
446
|
storagePath: Promise<string>;
|
|
447
447
|
};
|
|
448
448
|
};
|
|
449
|
-
invitationMakers: import("@endo/exo
|
|
449
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
450
450
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
451
451
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
452
452
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
453
453
|
}>;
|
|
454
|
-
vault: import("@endo/exo
|
|
454
|
+
vault: import("@endo/exo").Guarded<{
|
|
455
455
|
getPublicTopics(): {
|
|
456
456
|
vault: {
|
|
457
457
|
description: string;
|
|
@@ -462,14 +462,14 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
462
462
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
463
463
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
464
464
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
465
|
-
getCollateralAmount(): Amount<"nat">;
|
|
466
|
-
getCurrentDebt(): Amount<"nat">;
|
|
465
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
466
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
467
467
|
getNormalizedDebt(): NormalizedDebt;
|
|
468
468
|
}>;
|
|
469
469
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
470
470
|
}>;
|
|
471
471
|
getCollateralQuote(): PriceQuote;
|
|
472
|
-
getPublicFacet(): import("@endo/exo
|
|
472
|
+
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
473
473
|
makeVaultInvitation(): Promise<Invitation<{
|
|
474
474
|
publicSubscribers: {
|
|
475
475
|
vault: {
|
|
@@ -478,12 +478,12 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
478
478
|
storagePath: Promise<string>;
|
|
479
479
|
};
|
|
480
480
|
};
|
|
481
|
-
invitationMakers: import("@endo/exo
|
|
481
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
482
482
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
483
483
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
484
484
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
485
485
|
}>;
|
|
486
|
-
vault: import("@endo/exo
|
|
486
|
+
vault: import("@endo/exo").Guarded<{
|
|
487
487
|
getPublicTopics(): {
|
|
488
488
|
vault: {
|
|
489
489
|
description: string;
|
|
@@ -494,8 +494,8 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
494
494
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
495
495
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
496
496
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
497
|
-
getCollateralAmount(): Amount<"nat">;
|
|
498
|
-
getCurrentDebt(): Amount<"nat">;
|
|
497
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
498
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
499
499
|
getNormalizedDebt(): NormalizedDebt;
|
|
500
500
|
}>;
|
|
501
501
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -510,7 +510,7 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
510
510
|
lockOraclePrices(): PriceQuote;
|
|
511
511
|
/** @param {ERef<AuctioneerPublicFacet>} auctionPF */
|
|
512
512
|
liquidateVaults(auctionPF: ERef<GovernedPublicFacet<{
|
|
513
|
-
getElectorate: () => Amount<"set">;
|
|
513
|
+
getElectorate: () => globalThis.Amount<"set">;
|
|
514
514
|
getStartFrequency: () => RelativeTime;
|
|
515
515
|
getClockStep: () => RelativeTime;
|
|
516
516
|
getStartingRate: () => bigint;
|
|
@@ -518,14 +518,14 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
518
518
|
getDiscountStep: () => bigint;
|
|
519
519
|
getAuctionStartDelay: () => RelativeTime;
|
|
520
520
|
getPriceLockPeriod: () => RelativeTime;
|
|
521
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
522
|
-
maxBuy: Amount<"nat">;
|
|
521
|
+
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
522
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
523
523
|
} & {
|
|
524
524
|
exitAfterBuy?: boolean | undefined;
|
|
525
525
|
} & {
|
|
526
526
|
offerPrice: Ratio;
|
|
527
527
|
}) | ({
|
|
528
|
-
maxBuy: Amount<"nat">;
|
|
528
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
529
529
|
} & {
|
|
530
530
|
exitAfterBuy?: boolean | undefined;
|
|
531
531
|
} & {
|
|
@@ -543,7 +543,7 @@ export function prepareVaultManagerKit(baggage: MapStore<string, any>, { zcf, ma
|
|
|
543
543
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
544
544
|
};
|
|
545
545
|
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
546
|
-
goal: Amount<"nat">;
|
|
546
|
+
goal: globalThis.Amount<"nat">;
|
|
547
547
|
}>>;
|
|
548
548
|
}>>): Promise<void>;
|
|
549
549
|
};
|
|
@@ -653,7 +653,7 @@ export type HeldParams = {
|
|
|
653
653
|
export type ImmutableState = {
|
|
654
654
|
assetTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<AssetState>;
|
|
655
655
|
debtBrand: Brand<'nat'>;
|
|
656
|
-
liquidatingVaults: globalThis.SetStore<import("@endo/exo
|
|
656
|
+
liquidatingVaults: globalThis.SetStore<import("@endo/exo").Guarded<{
|
|
657
657
|
getVaultSeat(): ZCFSeat;
|
|
658
658
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
659
659
|
publicSubscribers: {
|
|
@@ -663,12 +663,12 @@ export type ImmutableState = {
|
|
|
663
663
|
storagePath: Promise<string>;
|
|
664
664
|
};
|
|
665
665
|
};
|
|
666
|
-
invitationMakers: import("@endo/exo
|
|
666
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
667
667
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
668
668
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
669
669
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
670
670
|
}>;
|
|
671
|
-
vault: import("@endo/exo
|
|
671
|
+
vault: import("@endo/exo").Guarded<{
|
|
672
672
|
getPublicTopics(): {
|
|
673
673
|
vault: {
|
|
674
674
|
description: string;
|
|
@@ -679,8 +679,8 @@ export type ImmutableState = {
|
|
|
679
679
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
680
680
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
681
681
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
682
|
-
getCollateralAmount(): Amount<"nat">;
|
|
683
|
-
getCurrentDebt(): Amount<"nat">;
|
|
682
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
683
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
684
684
|
getNormalizedDebt(): NormalizedDebt;
|
|
685
685
|
}>;
|
|
686
686
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -698,12 +698,12 @@ export type ImmutableState = {
|
|
|
698
698
|
storagePath: Promise<string>;
|
|
699
699
|
};
|
|
700
700
|
};
|
|
701
|
-
invitationMakers: import("@endo/exo
|
|
701
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
702
702
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
703
703
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
704
704
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
705
705
|
}>;
|
|
706
|
-
vault: import("@endo/exo
|
|
706
|
+
vault: import("@endo/exo").Guarded<{
|
|
707
707
|
getPublicTopics(): {
|
|
708
708
|
vault: {
|
|
709
709
|
description: string;
|
|
@@ -714,20 +714,20 @@ export type ImmutableState = {
|
|
|
714
714
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
715
715
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
716
716
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
717
|
-
getCollateralAmount(): Amount<"nat">;
|
|
718
|
-
getCurrentDebt(): Amount<"nat">;
|
|
717
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
718
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
719
719
|
getNormalizedDebt(): NormalizedDebt;
|
|
720
720
|
}>;
|
|
721
721
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
722
722
|
}, undefined>>;
|
|
723
|
-
getCollateralAmount(): Amount<"nat">;
|
|
724
|
-
getCurrentDebt(): Amount<"nat">;
|
|
723
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
724
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
725
725
|
getNormalizedDebt(): NormalizedDebt;
|
|
726
726
|
}>>;
|
|
727
727
|
metricsTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<MetricsNotification>;
|
|
728
728
|
poolIncrementSeat: ZCFSeat;
|
|
729
729
|
retainedCollateralSeat: ZCFSeat;
|
|
730
|
-
unsettledVaults: globalThis.MapStore<string, import("@endo/exo
|
|
730
|
+
unsettledVaults: globalThis.MapStore<string, import("@endo/exo").Guarded<{
|
|
731
731
|
getVaultSeat(): ZCFSeat;
|
|
732
732
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
733
733
|
publicSubscribers: {
|
|
@@ -737,12 +737,12 @@ export type ImmutableState = {
|
|
|
737
737
|
storagePath: Promise<string>;
|
|
738
738
|
};
|
|
739
739
|
};
|
|
740
|
-
invitationMakers: import("@endo/exo
|
|
740
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
741
741
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
742
742
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
743
743
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
744
744
|
}>;
|
|
745
|
-
vault: import("@endo/exo
|
|
745
|
+
vault: import("@endo/exo").Guarded<{
|
|
746
746
|
getPublicTopics(): {
|
|
747
747
|
vault: {
|
|
748
748
|
description: string;
|
|
@@ -753,8 +753,8 @@ export type ImmutableState = {
|
|
|
753
753
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
754
754
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
755
755
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
756
|
-
getCollateralAmount(): Amount<"nat">;
|
|
757
|
-
getCurrentDebt(): Amount<"nat">;
|
|
756
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
757
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
758
758
|
getNormalizedDebt(): NormalizedDebt;
|
|
759
759
|
}>;
|
|
760
760
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -772,12 +772,12 @@ export type ImmutableState = {
|
|
|
772
772
|
storagePath: Promise<string>;
|
|
773
773
|
};
|
|
774
774
|
};
|
|
775
|
-
invitationMakers: import("@endo/exo
|
|
775
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
776
776
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
777
777
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
778
778
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
779
779
|
}>;
|
|
780
|
-
vault: import("@endo/exo
|
|
780
|
+
vault: import("@endo/exo").Guarded<{
|
|
781
781
|
getPublicTopics(): {
|
|
782
782
|
vault: {
|
|
783
783
|
description: string;
|
|
@@ -788,14 +788,14 @@ export type ImmutableState = {
|
|
|
788
788
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
789
789
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
790
790
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
791
|
-
getCollateralAmount(): Amount<"nat">;
|
|
792
|
-
getCurrentDebt(): Amount<"nat">;
|
|
791
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
792
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
793
793
|
getNormalizedDebt(): NormalizedDebt;
|
|
794
794
|
}>;
|
|
795
795
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
796
796
|
}, undefined>>;
|
|
797
|
-
getCollateralAmount(): Amount<"nat">;
|
|
798
|
-
getCurrentDebt(): Amount<"nat">;
|
|
797
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
798
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
799
799
|
getNormalizedDebt(): NormalizedDebt;
|
|
800
800
|
}>>;
|
|
801
801
|
};
|